Skip to content

Commit

Permalink
spec release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adyen Automation committed Sep 4, 2023
1 parent c94bd35 commit 8dc3d63
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 187 deletions.
137 changes: 74 additions & 63 deletions json/ManagementNotificationService-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}
},
"schema" : {
"$ref" : "#/components/schemas/NotificationDataMessage"
"$ref" : "#/components/schemas/MerchantCreatedNotificationRequest"
}
}
}
Expand Down Expand Up @@ -100,7 +100,7 @@
}
},
"schema" : {
"$ref" : "#/components/schemas/NotificationDataMessage-type2"
"$ref" : "#/components/schemas/MerchantUpdatedNotificationRequest"
}
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@
}
},
"schema" : {
"$ref" : "#/components/schemas/NotificationDataMessage-type3"
"$ref" : "#/components/schemas/PaymentMethodCreatedNotificationRequest"
}
}
}
Expand Down Expand Up @@ -365,6 +365,68 @@
],
"type" : "object"
},
"MerchantCreatedNotificationRequest" : {
"properties" : {
"createdAt" : {
"description" : "Timestamp for when the webhook was created.",
"format" : "date-time",
"type" : "string"
},
"data" : {
"description" : "Contains event details.",
"$ref" : "#/components/schemas/AccountCreateNotificationData"
},
"environment" : {
"description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**.",
"type" : "string"
},
"type" : {
"description" : "Type of notification.",
"enum" : [
"merchant.created"
],
"type" : "string"
}
},
"required" : [
"environment",
"createdAt",
"data",
"type"
],
"type" : "object"
},
"MerchantUpdatedNotificationRequest" : {
"properties" : {
"createdAt" : {
"description" : "Timestamp for when the webhook was created.",
"format" : "date-time",
"type" : "string"
},
"data" : {
"description" : "Contains event details.",
"$ref" : "#/components/schemas/AccountUpdateNotificationData"
},
"environment" : {
"description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**.",
"type" : "string"
},
"type" : {
"description" : "Type of notification.",
"enum" : [
"merchant.updated"
],
"type" : "string"
}
},
"required" : [
"environment",
"createdAt",
"data",
"type"
],
"type" : "object"
},
"MidServiceNotificationData" : {
"properties" : {
"allowed" : {
Expand Down Expand Up @@ -422,63 +484,7 @@
],
"type" : "object"
},
"NotificationDataMessage" : {
"properties" : {
"createdAt" : {
"description" : "Timestamp for when the webhook was created.",
"format" : "date-time",
"type" : "string"
},
"data" : {
"description" : "Contains event details.",
"$ref" : "#/components/schemas/AccountCreateNotificationData"
},
"environment" : {
"description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**.",
"type" : "string"
},
"type" : {
"description" : "Type of notification.",
"type" : "string"
}
},
"required" : [
"type",
"environment",
"createdAt",
"data"
],
"type" : "object"
},
"NotificationDataMessage-type2" : {
"properties" : {
"createdAt" : {
"description" : "Timestamp for when the webhook was created.",
"format" : "date-time",
"type" : "string"
},
"data" : {
"description" : "Contains event details.",
"$ref" : "#/components/schemas/AccountUpdateNotificationData"
},
"environment" : {
"description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**.",
"type" : "string"
},
"type" : {
"description" : "Type of notification.",
"type" : "string"
}
},
"required" : [
"type",
"environment",
"createdAt",
"data"
],
"type" : "object"
},
"NotificationDataMessage-type3" : {
"PaymentMethodCreatedNotificationRequest" : {
"properties" : {
"createdAt" : {
"description" : "Timestamp for when the webhook was created.",
Expand All @@ -495,14 +501,17 @@
},
"type" : {
"description" : "Type of notification.",
"enum" : [
"paymentMethod.created"
],
"type" : "string"
}
},
"required" : [
"type",
"environment",
"createdAt",
"data"
"data",
"type"
],
"type" : "object"
},
Expand Down Expand Up @@ -605,7 +614,9 @@
"examples" : {
"WebhookAck" : {
"summary" : "Acknowledge Webhook",
"value" : "[accepted]"
"value" : {
"notificationResponse" : "[accepted]"
}
},
"post-merchant.created-merchant.created" : {
"summary" : "Merchant account created",
Expand Down
Loading

0 comments on commit 8dc3d63

Please sign in to comment.