Skip to content

Commit

Permalink
spec release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adyen Automation committed Feb 27, 2024
1 parent 6715bb5 commit 4a17315
Show file tree
Hide file tree
Showing 8 changed files with 293 additions and 261 deletions.
24 changes: 0 additions & 24 deletions json/ManagementNotificationService-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"merchant.created" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/AccountNotificationResponse"
}
Expand Down Expand Up @@ -109,14 +104,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"merchant-updated-valid" : {
"$ref" : "#/components/examples/WebhookAck"
},
"merchant-updated-with-errors" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/AccountNotificationResponse"
}
Expand Down Expand Up @@ -162,11 +149,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"paymentMethod.created" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/PaymentMethodNotificationResponse"
}
Expand Down Expand Up @@ -616,12 +598,6 @@
}
},
"examples" : {
"WebhookAck" : {
"summary" : "Acknowledge Webhook",
"value" : {
"notificationResponse" : "[accepted]"
}
},
"post-merchant.created-merchant.created" : {
"summary" : "Merchant account created",
"description" : "Example webhook when a merchant account was created",
Expand Down
34 changes: 0 additions & 34 deletions json/ManagementNotificationService-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"merchant.created" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/AccountNotificationResponse"
}
Expand Down Expand Up @@ -109,14 +104,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"merchant-updated-valid" : {
"$ref" : "#/components/examples/WebhookAck"
},
"merchant-updated-with-errors" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/AccountNotificationResponse"
}
Expand Down Expand Up @@ -162,11 +149,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"paymentMethod.created" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/PaymentMethodNotificationResponse"
}
Expand Down Expand Up @@ -212,11 +194,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"paymentMethod.requestRemoved" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/PaymentMethodNotificationResponse"
}
Expand Down Expand Up @@ -262,11 +239,6 @@
"200" : {
"content" : {
"application/json" : {
"examples" : {
"paymentMethod.requestScheduledForRemoval" : {
"$ref" : "#/components/examples/WebhookAck"
}
},
"schema" : {
"$ref" : "#/components/schemas/PaymentMethodNotificationResponse"
}
Expand Down Expand Up @@ -782,12 +754,6 @@
}
},
"examples" : {
"WebhookAck" : {
"summary" : "Acknowledge Webhook",
"value" : {
"notificationResponse" : "[accepted]"
}
},
"post-merchant.created-merchant.created" : {
"summary" : "Merchant account created",
"description" : "Example webhook when a merchant account was created",
Expand Down
92 changes: 75 additions & 17 deletions json/ManagementService-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7376,6 +7376,16 @@
},
"description" : "Unprocessable Entity - a request validation error."
},
"429" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RestServiceError"
}
}
},
"description" : ""
},
"500" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -7497,6 +7507,16 @@
},
"description" : "Unprocessable Entity - a request validation error."
},
"429" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RestServiceError"
}
}
},
"description" : ""
},
"500" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -7604,6 +7624,16 @@
},
"description" : "Unprocessable Entity - a request validation error."
},
"429" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RestServiceError"
}
}
},
"description" : ""
},
"500" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -7718,6 +7748,16 @@
},
"description" : "Unprocessable Entity - a request validation error."
},
"429" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RestServiceError"
}
}
},
"description" : ""
},
"500" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -7829,6 +7869,16 @@
},
"description" : "Unprocessable Entity - a request validation error."
},
"429" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/RestServiceError"
}
}
},
"description" : ""
},
"500" : {
"content" : {
"application/json" : {
Expand Down Expand Up @@ -17361,10 +17411,12 @@
"properties" : {
"firstName" : {
"description" : "The first name.",
"maxLength" : 80,
"type" : "string"
},
"lastName" : {
"description" : "The last name.",
"maxLength" : 80,
"type" : "string"
}
},
Expand All @@ -17378,10 +17430,12 @@
"properties" : {
"firstName" : {
"description" : "The first name.",
"maxLength" : 80,
"type" : "string"
},
"lastName" : {
"description" : "The last name.",
"maxLength" : 80,
"type" : "string"
}
},
Expand Down Expand Up @@ -17424,7 +17478,8 @@
"description" : "The type of event notification sent when you select the notification button.",
"enum" : [
"SaleWakeUp",
"KeyPressed"
"KeyPressed",
""
],
"type" : "string"
},
Expand Down Expand Up @@ -17599,6 +17654,7 @@
"Cash",
"Card"
],
"nullable" : true,
"type" : "string"
}
},
Expand Down Expand Up @@ -19272,6 +19328,15 @@
},
"type" : "object"
},
"TerminalInstructions" : {
"properties" : {
"adyenAppRestart" : {
"description" : "Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated.",
"type" : "boolean"
}
},
"type" : "object"
},
"TerminalModelsResponse" : {
"properties" : {
"data" : {
Expand Down Expand Up @@ -19499,6 +19564,10 @@
"description" : "Settings for Tap to Pay.",
"$ref" : "#/components/schemas/TapToPay"
},
"terminalInstructions" : {
"description" : "Settings to define the behaviour of the payment terminal.",
"$ref" : "#/components/schemas/TerminalInstructions"
},
"timeouts" : {
"description" : "Settings for device [time-outs](https://docs.adyen.com/point-of-sale/pos-timeouts#device-time-out).",
"$ref" : "#/components/schemas/Timeouts"
Expand Down Expand Up @@ -24451,7 +24520,6 @@
"summary" : "Update a terminal order",
"description" : "Example request to update an order for terminal products",
"value" : {
"shippingLocation" : "S2-7973536B20662642215526704F302044452F714622375D476169",
"items" : [
{
"id" : "TBOX-V400m-684-EU",
Expand Down Expand Up @@ -25664,7 +25732,6 @@
"summary" : "Update a terminal order",
"description" : "Example request to update an order for terminal products",
"value" : {
"shippingLocation" : "S2-73536B20665526704F30792642212044452F714622375D477270",
"items" : [
{
"id" : "TBOX-V400m-684-EU",
Expand Down Expand Up @@ -27175,7 +27242,6 @@
"id" : "S2-5C334C6770",
"name" : {
"firstName" : "John",
"gender" : "UNKNOWN",
"lastName" : "Smith"
},
"email" : "[email protected]",
Expand Down Expand Up @@ -27354,23 +27420,23 @@
"data" : [
{
"merchantId" : "YOUR_MERCHANT_ACCOUNT_AU",
"output" : "[accepted]",
"output" : "",
"requestSent" : "{\"live\":\"false\",\"notificationItems\":[{\"NotificationRequestItem\":{\"amount\":{\"currency\":\"EUR\",\"value\":100},\"eventCode\":\"AUTHORISATION\",\"eventDate\":\"2022-05-10T16:57:19+02:00\",\"merchantAccountCode\":\"YOUR_MERCHANT_ACCOUNT_AU\",\"merchantReference\":\"6GZBF5ML\",\"operations\":[\"CANCEL\",\"CAPTURE\",\"REFUND\"],\"paymentMethod\":\"visa\",\"pspReference\":\"KDN7UP7S1JIK6XES\",\"reason\":\"\",\"success\":\"true\"}}]}",
"responseCode" : "200",
"responseTime" : "657 ms",
"status" : "success"
},
{
"merchantId" : "YOUR_MERCHANT_ACCOUNT_EU",
"output" : "[accepted]",
"output" : "",
"requestSent" : "{\"live\":\"false\",\"notificationItems\":[{\"NotificationRequestItem\":{\"amount\":{\"currency\":\"EUR\",\"value\":100},\"eventCode\":\"AUTHORISATION\",\"eventDate\":\"2022-05-10T16:57:19+02:00\",\"merchantAccountCode\":\"YOUR_MERCHANT_ACCOUNT_EU\",\"merchantReference\":\"6GZBF5ML\",\"operations\":[\"CANCEL\",\"CAPTURE\",\"REFUND\"],\"paymentMethod\":\"visa\",\"pspReference\":\"KDN7UP7S1JIK6XES\",\"reason\":\"\",\"success\":\"true\"}}]}",
"responseCode" : "200",
"responseTime" : "590 ms",
"status" : "success"
},
{
"merchantId" : "YOUR_MERCHANT_ACCOUNT_US",
"output" : "[accepted]",
"output" : "",
"requestSent" : "{\"live\":\"false\",\"notificationItems\":[{\"NotificationRequestItem\":{\"amount\":{\"currency\":\"EUR\",\"value\":100},\"eventCode\":\"AUTHORISATION\",\"eventDate\":\"2022-05-10T16:57:19+02:00\",\"merchantAccountCode\":\"YOUR_MERCHANT_ACCOUNT_US\",\"merchantReference\":\"6GZBF5ML\",\"operations\":[\"CANCEL\",\"CAPTURE\",\"REFUND\"],\"paymentMethod\":\"visa\",\"pspReference\":\"KDN7UP7S1JIK6XES\",\"reason\":\"\",\"success\":\"true\"}}]}",
"responseCode" : "200",
"responseTime" : "248 ms",
Expand All @@ -27390,7 +27456,6 @@
"summary" : "OK 200 - Add an allowed origin for the API credential",
"description" : "Example response for adding an allowed origin for the API credential.",
"value" : {
"id" : "YOUR_ALLOWED_ORIGIN",
"domain" : "https://www.eu.mystore.com",
"_links" : {
"self" : {
Expand Down Expand Up @@ -27906,9 +27971,6 @@
"timeZoneCode" : "Europe/Amsterdam",
"roles" : [
"Merchant standard role"
],
"associatedMerchantAccounts" : [
"YOUR_MERCHANT_ACCOUNT"
]
}
},
Expand All @@ -27919,7 +27981,6 @@
"id" : "S2-3B3C3C3B22",
"name" : {
"firstName" : "John",
"gender" : "UNKNOWN",
"lastName" : "Smith"
},
"email" : "[email protected]",
Expand All @@ -27933,10 +27994,7 @@
"self" : {
"href" : "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/users/S2-3B3C3C3B22"
}
},
"associatedMerchantAccounts" : [
"YOUR_MERCHANT_ACCOUNT"
]
}
}
},
"post-merchants-merchantId-webhooks-post-merchant-webhook" : {
Expand Down Expand Up @@ -28089,7 +28147,7 @@
"data" : [
{
"merchantId" : "YOUR_MERCHANT_ACCOUNT",
"output" : "[accepted]",
"output" : "",
"requestSent" : "{\"live\":\"false\",\"notificationItems\":[{\"NotificationRequestItem\":{\"amount\":{\"currency\":\"EUR\",\"value\":100},\"eventCode\":\"AUTHORISATION\",\"eventDate\":\"2022-05-10T17:02:03+02:00\",\"merchantAccountCode\":\"YOUR_MERCHANT_ACCOUNT\",\"merchantReference\":\"4TZLD23Y\",\"operations\":[\"CANCEL\",\"CAPTURE\",\"REFUND\"],\"paymentMethod\":\"visa\",\"pspReference\":\"E05WW50L6IOBRGA0\",\"reason\":\"\",\"success\":\"true\"}}]}",
"responseCode" : "200",
"responseTime" : "532 ms",
Expand Down
Loading

0 comments on commit 4a17315

Please sign in to comment.