mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Fix swagger (#5380)
This commit is contained in:
parent
ef03497350
commit
9e76b4d28e
9 changed files with 66 additions and 34 deletions
|
@ -788,11 +788,17 @@
|
|||
},
|
||||
"depositablePaymentMethods": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "A list of payment methods (crypto code + network) you can deposit to the custodian.",
|
||||
"nullable": false
|
||||
},
|
||||
"withdrawablePaymentMethods": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "A list of payment methods (crypto code + network) you can withdraw from the custodian.",
|
||||
"nullable": false
|
||||
},
|
||||
|
|
|
@ -793,7 +793,11 @@
|
|||
"status": {
|
||||
"nullable": false,
|
||||
"description": "Mark an invoice as completed or invalid.",
|
||||
"$ref": "#/components/schemas/InvoiceStatusMark"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/InvoiceStatusMark"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -811,7 +815,7 @@
|
|||
},
|
||||
"InvoiceStatus": {
|
||||
"type": "string",
|
||||
"description": "",
|
||||
"description": "The status of the invoice",
|
||||
"x-enumNames": [
|
||||
"New",
|
||||
"Processing",
|
||||
|
@ -854,13 +858,21 @@
|
|||
},
|
||||
"checkout": {
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/CheckoutOptions",
|
||||
"description": "Additional settings to customize the checkout flow"
|
||||
"description": "Additional settings to customize the checkout flow",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CheckoutOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"receipt": {
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/ReceiptOptions",
|
||||
"description": "Additional settings to customize the public receipt"
|
||||
"description": "Additional settings to customize the public receipt",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ReceiptOptions"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -893,8 +905,7 @@
|
|||
"example": "USD"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/components/schemas/InvoiceType",
|
||||
"description": "The type of invoice"
|
||||
"$ref": "#/components/schemas/InvoiceType"
|
||||
},
|
||||
"checkoutLink": {
|
||||
"type": "string",
|
||||
|
@ -925,12 +936,10 @@
|
|||
]
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/InvoiceStatus",
|
||||
"description": "The status of the invoice"
|
||||
"$ref": "#/components/schemas/InvoiceStatus"
|
||||
},
|
||||
"additionalStatus": {
|
||||
"$ref": "#/components/schemas/InvoiceAdditionalStatus",
|
||||
"description": "a secondary status of the invoice"
|
||||
"$ref": "#/components/schemas/InvoiceAdditionalStatus"
|
||||
},
|
||||
"availableStatusesForManualMarking": {
|
||||
"type": "array",
|
||||
|
@ -1167,8 +1176,11 @@
|
|||
"properties": {
|
||||
"speedPolicy": {
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/SpeedPolicy",
|
||||
"description": "This is a risk mitigation parameter for the merchant to configure how they want to fulfill orders depending on the number of block confirmations for the transaction made by the consumer on the selected cryptocurrency"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/SpeedPolicy"
|
||||
}
|
||||
]
|
||||
},
|
||||
"paymentMethods": {
|
||||
"type": "array",
|
||||
|
@ -1239,11 +1251,8 @@
|
|||
"description": "`\"V1\"`: The original checkout form \n`\"V2\"`: The new experimental checkout form. \nIf `null` or unspecified, the store's settings will be used.",
|
||||
"nullable": true,
|
||||
"default": null,
|
||||
"x-enumNames": [
|
||||
"V1",
|
||||
"V2"
|
||||
],
|
||||
"enum": [
|
||||
null,
|
||||
"V1",
|
||||
"V2"
|
||||
]
|
||||
|
@ -1398,8 +1407,7 @@
|
|||
"description": "The fee paid for the payment"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/PaymentStatus",
|
||||
"description": "The status of the payment"
|
||||
"$ref": "#/components/schemas/PaymentStatus"
|
||||
},
|
||||
"destination": {
|
||||
"type": "string",
|
||||
|
@ -1409,7 +1417,7 @@
|
|||
},
|
||||
"PaymentStatus": {
|
||||
"type": "string",
|
||||
"description": "",
|
||||
"description": "The status of the payment",
|
||||
"x-enumNames": [
|
||||
"Invalid",
|
||||
"Processing",
|
||||
|
@ -1423,7 +1431,7 @@
|
|||
},
|
||||
"InvoiceType": {
|
||||
"type": "string",
|
||||
"description": "",
|
||||
"description": "The type of the invoice",
|
||||
"x-enumNames": [
|
||||
"Standard",
|
||||
"TopUp"
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
},
|
||||
"SpeedPolicy": {
|
||||
"type": "string",
|
||||
"description": "`\"HighSpeed\"`: 0 confirmations (1 confirmation if RBF enabled in transaction) \n`\"MediumSpeed\"`: 1 confirmation \n`\"LowMediumSpeed\"`: 2 confirmations \n`\"LowSpeed\"`: 6 confirmations\n",
|
||||
"description": "This is a risk mitigation parameter for the merchant to configure how they want to fulfill orders depending on the number of block confirmations for the transaction made by the consumer on the selected cryptocurrency.\n`\"HighSpeed\"`: 0 confirmations (1 confirmation if RBF enabled in transaction) \n`\"MediumSpeed\"`: 1 confirmation \n`\"LowMediumSpeed\"`: 2 confirmations \n`\"LowSpeed\"`: 6 confirmations\n",
|
||||
"x-enumNames": [
|
||||
"HighSpeed",
|
||||
"MediumSpeed",
|
||||
|
|
|
@ -250,16 +250,22 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"onchain": {
|
||||
"type": "object",
|
||||
"description": "On-chain balance of the Lightning node",
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/OnchainBalanceData"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/OnchainBalanceData"
|
||||
}
|
||||
]
|
||||
},
|
||||
"offchain": {
|
||||
"type": "object",
|
||||
"description": "Off-chain balance of the Lightning node",
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/OffchainBalanceData"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/OffchainBalanceData"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -301,6 +301,7 @@
|
|||
"schema": { "type": "string" }
|
||||
}
|
||||
],
|
||||
"operationId": "PaymentRequests_Pay",
|
||||
"description": "Create a new invoice for the payment request, or reuse an existing one",
|
||||
"requestBody": {
|
||||
"description": "Invoice creation request",
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "userId",
|
||||
"name": "idOrEmail",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"description": "The user's id or email",
|
||||
|
|
|
@ -695,7 +695,6 @@
|
|||
},
|
||||
"TransactionStatus": {
|
||||
"type": "string",
|
||||
"description": "",
|
||||
"x-enumNames": [
|
||||
"Unconfirmed",
|
||||
"Confirmed"
|
||||
|
@ -758,8 +757,12 @@
|
|||
"allOf": [ {"$ref": "#/components/schemas/UnixTimestamp"}]
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/TransactionStatus",
|
||||
"description": "The status for this transaction"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/TransactionStatus"
|
||||
}
|
||||
],
|
||||
"description": "The status of this transaction"
|
||||
},
|
||||
"labels": {
|
||||
"description": "Labels linked to this transaction",
|
||||
|
|
|
@ -477,8 +477,12 @@
|
|||
},
|
||||
"receipt": {
|
||||
"nullable": true,
|
||||
"$ref": "#/components/schemas/ReceiptOptions",
|
||||
"description": "Additional settings to customize the public receipt"
|
||||
"description": "Additional settings to customize the public receipt",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ReceiptOptions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lightningAmountInSatoshi": {
|
||||
"type": "boolean",
|
||||
|
|
|
@ -790,7 +790,11 @@
|
|||
},
|
||||
"payment": {
|
||||
"description": "Details about the payment",
|
||||
"$ref": "#/components/schemas/Payment"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Payment"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue