Greenfield: Remove unused checkout type setting from POS (#5512)

Cam across this while browsing the API docs: The checkout type setting isn't used for the POS, so we should simply remove it as this is configured on the store-level.
This commit is contained in:
d11n 2023-11-30 10:05:35 +01:00 committed by GitHub
parent 04292d09e1
commit b31f1812d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 7 deletions

View file

@ -42,7 +42,6 @@ namespace BTCPayServer.Client.Models
public bool? Archived { get; set; } = null; public bool? Archived { get; set; } = null;
public string FormId { get; set; } = null; public string FormId { get; set; } = null;
public string EmbeddedCSS { get; set; } = null; public string EmbeddedCSS { get; set; } = null;
public CheckoutType? CheckoutType { get; set; } = null;
} }
public enum CrowdfundResetEvery public enum CrowdfundResetEvery

View file

@ -291,8 +291,7 @@ namespace BTCPayServer.Controllers.Greenfield
EmbeddedCSS = request.EmbeddedCSS, EmbeddedCSS = request.EmbeddedCSS,
RedirectAutomatically = request.RedirectAutomatically, RedirectAutomatically = request.RedirectAutomatically,
RequiresRefundEmail = BoolToRequiresRefundEmail(request.RequiresRefundEmail) ?? RequiresRefundEmail.InheritFromStore, RequiresRefundEmail = BoolToRequiresRefundEmail(request.RequiresRefundEmail) ?? RequiresRefundEmail.InheritFromStore,
FormId = request.FormId, FormId = request.FormId
CheckoutType = request.CheckoutType ?? CheckoutType.V1
}; };
} }

View file

@ -113,6 +113,5 @@ namespace BTCPayServer.Services.Apps
public string NotificationUrl { get; set; } public string NotificationUrl { get; set; }
public string RedirectUrl { get; set; } public string RedirectUrl { get; set; }
public bool? RedirectAutomatically { get; set; } public bool? RedirectAutomatically { get; set; }
public CheckoutType CheckoutType { get; internal set; }
} }
} }

View file

@ -903,9 +903,6 @@
"description": "Whether refund email is required when paying the invoice. Defaults to what is set in the store settings", "description": "Whether refund email is required when paying the invoice. Defaults to what is set in the store settings",
"nullable": true "nullable": true
}, },
"checkoutType": {
"$ref": "#/components/schemas/CheckoutType"
},
"formId": { "formId": {
"type": "string", "type": "string",
"description": "Form ID to request customer data", "description": "Form ID to request customer data",