diff --git a/openapi.json b/openapi.json index fcd24939..89a74be4 100755 --- a/openapi.json +++ b/openapi.json @@ -2363,10 +2363,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -2378,7 +2378,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } @@ -13807,10 +13807,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -13822,7 +13822,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } diff --git a/openapi.yaml b/openapi.yaml index 82b4cdbb..b2c07238 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1690,10 +1690,10 @@ paths: description: Optional amount for partial refunds of transactions. properties: amount: - type: number - format: float - description: Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. - example: 5 + type: integer + description: Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. + example: 500 + minimum: 0 examples: FullRefund: summary: Full refund @@ -1701,7 +1701,7 @@ paths: PartialRefund: summary: Partial refund value: - amount: 24.42 + amount: 2442 responses: '201': description: The transaction was refunded in full or partially based on the request. @@ -10670,10 +10670,10 @@ components: description: Optional amount for partial refunds of transactions. properties: amount: - type: number - format: float - description: Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. - example: 5 + type: integer + description: Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. + example: 500 + minimum: 0 examples: FullRefund: summary: Full refund @@ -10681,7 +10681,7 @@ components: PartialRefund: summary: Partial refund value: - amount: 24.42 + amount: 2442 responses: {} parameters: CheckoutReference: diff --git a/openapi31.json b/openapi31.json index 67b90679..a841579e 100644 --- a/openapi31.json +++ b/openapi31.json @@ -2363,10 +2363,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -2378,7 +2378,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } @@ -14104,10 +14104,10 @@ "description": "Optional amount for partial refunds of transactions.", "properties": { "amount": { - "type": "number", - "format": "float", - "description": "Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", - "example": 5 + "type": "integer", + "description": "Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund.", + "example": 500, + "minimum": 0 } } }, @@ -14119,7 +14119,7 @@ "PartialRefund": { "summary": "Partial refund", "value": { - "amount": 24.42 + "amount": 2442 } } } diff --git a/openapi31.yaml b/openapi31.yaml index 0ef975d4..195f642e 100644 --- a/openapi31.yaml +++ b/openapi31.yaml @@ -1690,10 +1690,10 @@ paths: description: Optional amount for partial refunds of transactions. properties: amount: - type: number - format: float - description: Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. - example: 5 + type: integer + description: Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. + example: 500 + minimum: 0 examples: FullRefund: summary: Full refund @@ -1701,7 +1701,7 @@ paths: PartialRefund: summary: Partial refund value: - amount: 24.42 + amount: 2442 responses: '201': description: The transaction was refunded in full or partially based on the request. @@ -10906,10 +10906,10 @@ components: description: Optional amount for partial refunds of transactions. properties: amount: - type: number - format: float - description: Amount to refund in major units of the transaction's currency, for example `5` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. - example: 5 + type: integer + description: Amount to refund in minor units of the transaction's currency, for example `500` for EUR 5.00. It must be greater than zero and cannot exceed the amount eligible for a refund. Eligibility depends on the transaction and country/currency rules. If omitted, the system requests a full refund. + example: 500 + minimum: 0 examples: FullRefund: summary: Full refund @@ -10917,7 +10917,7 @@ components: PartialRefund: summary: Partial refund value: - amount: 24.42 + amount: 2442 responses: {} parameters: CheckoutReference: