mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Renamed Payment Request "Created" field to "CreatedTime" for consistancy since we already have a breaking change (#3230)
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BTCPayServer.Client.Models
|
|||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public PaymentRequestData.PaymentRequestStatus Status { get; set; }
|
public PaymentRequestData.PaymentRequestStatus Status { get; set; }
|
||||||
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
||||||
public DateTimeOffset Created { get; set; }
|
public DateTimeOffset CreatedTime { get; set; }
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
public bool Archived { get; set; }
|
public bool Archived { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ namespace BTCPayServer.Controllers.GreenField
|
|||||||
var blob = data.GetBlob();
|
var blob = data.GetBlob();
|
||||||
return new Client.Models.PaymentRequestData()
|
return new Client.Models.PaymentRequestData()
|
||||||
{
|
{
|
||||||
Created = data.Created,
|
CreatedTime = data.Created,
|
||||||
Id = data.Id,
|
Id = data.Id,
|
||||||
StoreId = data.StoreDataId,
|
StoreId = data.StoreDataId,
|
||||||
Status = data.Status,
|
Status = data.Status,
|
||||||
|
|||||||
@@ -299,7 +299,7 @@
|
|||||||
"description": "The status of the payment request",
|
"description": "The status of the payment request",
|
||||||
"nullable": false
|
"nullable": false
|
||||||
},
|
},
|
||||||
"created": {
|
"createdTime": {
|
||||||
"description": "The creation date of the payment request",
|
"description": "The creation date of the payment request",
|
||||||
"allOf": [ {"$ref": "#/components/schemas/UnixTimestamp"}],
|
"allOf": [ {"$ref": "#/components/schemas/UnixTimestamp"}],
|
||||||
"nullable": false
|
"nullable": false
|
||||||
|
|||||||
Reference in New Issue
Block a user