File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ paths:
580580 content :
581581 application/json :
582582 schema :
583- $ref : ' #/components/schemas/any '
583+ $ref : ' #/components/schemas/PaymentIntentResponse '
584584
585585 " 400 " :
586586 description : |-
@@ -2236,6 +2236,21 @@ components:
22362236 cancelPayment : " [Cancels](ctp:checkout:type:PaymentIntentCancelAction) an authorized
22372237 Payment.n"
22382238 reversePayment : " [Reverses](ctp:checkout:type:PaymentIntentReverseAction) a Payment.n"
2239+ PaymentIntentOutcome :
2240+ type : " string"
2241+ enum :
2242+ - approved
2243+ - rejected
2244+ - received
2245+ x-annotation-package : " PaymentIntents"
2246+ x-annotation-ignoreValidators :
2247+ - " EnumValuePascalCaseRule"
2248+ x-annotation-enumDescriptions :
2249+ approved : " The Payment Intent was processed and approved by the payment service provider
2250+ (PSP).n"
2251+ rejected : " The Payment Intent was rejected by the payment service provider (PSP).n"
2252+ received : " The Payment Intent was received and is being processed asynchronously by
2253+ the payment service provider (PSP).n"
22392254 PaymentIntentRefundAction :
22402255 allOf :
22412256 - $ref : ' #/components/schemas/PaymentIntentAction'
@@ -2251,6 +2266,13 @@ components:
22512266 type : " string"
22522267 merchantReference :
22532268 type : " string"
2269+ PaymentIntentResponse :
2270+ type : " object"
2271+ required :
2272+ - outcome
2273+ properties :
2274+ outcome :
2275+ $ref : ' #/components/schemas/PaymentIntentOutcome'
22542276 PaymentIntentReverseAction :
22552277 allOf :
22562278 - $ref : ' #/components/schemas/PaymentIntentAction'
You can’t perform that action at this time.
0 commit comments