mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
GreenField: Add StoreId to Invoice model (#2592)
This commit is contained in:
parent
dca376cb46
commit
cb2dd464f1
@ -7,6 +7,7 @@ namespace BTCPayServer.Client.Models
|
||||
public class InvoiceData : CreateInvoiceRequest
|
||||
{
|
||||
public string Id { get; set; }
|
||||
public string StoreId { get; set; }
|
||||
public string CheckoutLink { get; set; }
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public InvoiceStatus Status { get; set; }
|
||||
|
@ -1019,7 +1019,7 @@ namespace BTCPayServer.Tests
|
||||
RedirectAutomatically = true
|
||||
}});
|
||||
Assert.True(newInvoice.Checkout.RedirectAutomatically);
|
||||
|
||||
Assert.Equal(user.StoreId, newInvoice.StoreId);
|
||||
//list
|
||||
var invoices = await viewOnly.GetInvoices(user.StoreId);
|
||||
|
||||
|
@ -385,6 +385,7 @@ namespace BTCPayServer.Controllers.GreenField
|
||||
{
|
||||
return new InvoiceData()
|
||||
{
|
||||
StoreId = entity.StoreId,
|
||||
ExpirationTime = entity.ExpirationTime,
|
||||
MonitoringExpiration = entity.MonitoringExpiration,
|
||||
CreatedTime = entity.InvoiceTime,
|
||||
|
@ -749,6 +749,10 @@
|
||||
"type": "string",
|
||||
"description": "The identifier of the invoice"
|
||||
},
|
||||
"storeId": {
|
||||
"type": "string",
|
||||
"description": "The store identifier that the invoice belongs to"
|
||||
},
|
||||
"checkoutLink": {
|
||||
"type": "string",
|
||||
"description": "The link to the checkout page, where you can redirect the customer"
|
||||
|
Loading…
Reference in New Issue
Block a user