Renamed Payment Request "Created" field to "CreatedTime" for consistancy since we already have a breaking change (#3230)

This commit is contained in:
Wouter Samaey
2021-12-23 14:48:10 +01:00
committed by GitHub
parent 5f5f71bf37
commit 82b4debcac
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ namespace BTCPayServer.Client.Models
[JsonConverter(typeof(StringEnumConverter))]
public PaymentRequestData.PaymentRequestStatus Status { get; set; }
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTimeOffset Created { get; set; }
public DateTimeOffset CreatedTime { get; set; }
public string Id { get; set; }
public bool Archived { get; set; }

View File

@@ -148,7 +148,7 @@ namespace BTCPayServer.Controllers.GreenField
var blob = data.GetBlob();
return new Client.Models.PaymentRequestData()
{
Created = data.Created,
CreatedTime = data.Created,
Id = data.Id,
StoreId = data.StoreDataId,
Status = data.Status,

View File

@@ -299,7 +299,7 @@
"description": "The status of the payment request",
"nullable": false
},
"created": {
"createdTime": {
"description": "The creation date of the payment request",
"allOf": [ {"$ref": "#/components/schemas/UnixTimestamp"}],
"nullable": false