diff --git a/json/Webhooks-v1.json b/json/Webhooks-v1.json index fb290596..30db36df 100644 --- a/json/Webhooks-v1.json +++ b/json/Webhooks-v1.json @@ -2370,15 +2370,15 @@ }, "operations" : { "description" : "The operations indicate the supported follow-up actions concerning the payment.\n> This is an **experimental field**. Do not base your code on this field. Not all specific cases are covered yet. It's possible that the field is empty or contains generic information.", - "enum" : [ - "CAPTURE", - "CANCEL", - "REFUND" - ], "items" : { + "enum" : [ + "CAPTURE", + "CANCEL", + "REFUND" + ], "type" : "string" }, - "type" : "string" + "type" : "array" }, "paymentMethod" : { "description" : "The payment method used in the transaction.", @@ -2404,8 +2404,7 @@ "merchantAccountCode", "eventDate", "eventCode", - "amount", - "paymentMethod" + "amount" ], "type" : "object" }, @@ -2975,8 +2974,7 @@ "merchantAccountCode", "eventDate", "eventCode", - "amount", - "paymentMethod" + "amount" ], "type" : "object" }, @@ -3063,8 +3061,7 @@ "merchantAccountCode", "eventDate", "eventCode", - "amount", - "paymentMethod" + "amount" ], "type" : "object" }, @@ -3643,7 +3640,6 @@ "eventDate", "eventCode", "amount", - "paymentMethod", "originalPsp", "pspReference" ], @@ -3724,7 +3720,6 @@ "eventDate", "eventCode", "amount", - "paymentMethod", "reason", "success" ], @@ -3747,7 +3742,9 @@ "examples" : { "WebhookAck" : { "summary" : "Acknowledge Webhook", - "value" : "[accepted]" + "value" : { + "notificationResponse" : "[accepted]" + } }, "post-AUTHORISATION-authorisation" : { "summary" : "AUTHORISATION example", diff --git a/yaml/Webhooks-v1.yaml b/yaml/Webhooks-v1.yaml index ba99a3d9..fd7b34f9 100644 --- a/yaml/Webhooks-v1.yaml +++ b/yaml/Webhooks-v1.yaml @@ -1635,13 +1635,13 @@ components: > This is an **experimental field**. Do not base your code on this field. Not all specific cases are covered yet. It''s possible that the field is empty or contains generic information.' - enum: - - CAPTURE - - CANCEL - - REFUND items: + enum: + - CAPTURE + - CANCEL + - REFUND type: string - type: string + type: array paymentMethod: description: The payment method used in the transaction. example: visa, mc, iDeal @@ -1669,7 +1669,6 @@ components: - eventDate - eventCode - amount - - paymentMethod type: object AuthorisationNotificationRequestItemWrapper: properties: @@ -2145,7 +2144,6 @@ components: - eventDate - eventCode - amount - - paymentMethod type: object NotificationRequestItemWrapper: properties: @@ -2217,7 +2215,6 @@ components: - eventDate - eventCode - amount - - paymentMethod type: object PaidoutReversedNotificationRequestItemWrapper: properties: @@ -2699,7 +2696,6 @@ components: - eventDate - eventCode - amount - - paymentMethod - originalPsp - pspReference type: object @@ -2764,7 +2760,6 @@ components: - eventDate - eventCode - amount - - paymentMethod - reason - success type: object @@ -2779,7 +2774,8 @@ components: examples: WebhookAck: summary: Acknowledge Webhook - value: '[accepted]' + value: + notificationResponse: '[accepted]' post-AUTHORISATION-authorisation: summary: AUTHORISATION example value: