Skip to content

Commit

Permalink
spec release
Browse files Browse the repository at this point in the history
  • Loading branch information
Adyen Automation committed Nov 20, 2024
1 parent 559673a commit d1f265e
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 2 deletions.
4 changes: 4 additions & 0 deletions json/BalancePlatformConfigurationNotification-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,10 @@
],
"type" : "string"
},
"reasonDetail" : {
"description" : "The human readable reason for disabling the sweep.",
"type" : "string"
},
"reference" : {
"description" : "Your reference for the sweep configuration.",
"maxLength" : 80,
Expand Down
4 changes: 4 additions & 0 deletions json/BalancePlatformConfigurationNotification-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,10 @@
],
"type" : "string"
},
"reasonDetail" : {
"description" : "The human readable reason for disabling the sweep.",
"type" : "string"
},
"reference" : {
"description" : "Your reference for the sweep configuration.",
"maxLength" : 80,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
{
"openapi" : "3.1.0",
"info" : {
"version" : "1",
"x-publicVersion" : true,
"title" : "Negative balance compensation warning\n",
"description" : "Adyen sends webhooks to inform you about balance accounts whose balance has been negative for 20 or more days. If you do not transfer funds to that balance account to cover the negative balance before the scheduled compensation date, a transfer is made from your liable balance account on that date.",
"termsOfService" : "https://www.adyen.com/legal/terms-and-conditions",
"contact" : {
"name" : "Adyen Developer Experience team",
"url" : "https://github.com/Adyen/adyen-openapi"
}
},
"tags" : [
{
"name" : "General"
},
{
"name" : "Balance account"
}
],
"webhooks" : {
"balancePlatform.negativeBalanceCompensationWarning.scheduled" : {
"post" : {
"tags" : [
"General"
],
"summary" : "Negative balance compensation scheduled",
"description" : "Adyen sends this webhook to inform you about a balance account whose balance has been negative for 20 or more days. If you do not transfer funds to that balance account to cover the negative balance before the scheduled compensation date, a transfer is made from your liable balance account on that date.",
"operationId" : "post-balancePlatform.negativeBalanceCompensationWarning.scheduled",
"x-sortIndex" : 0,
"x-methodName" : "negativeBalanceCompensationScheduled",
"security" : [
{
"BasicAuth" : [
]
}
],
"requestBody" : {
"content" : {
"application/json" : {
"examples" : {
"balancePlatform.negativeBalanceCompensationWarning.scheduled" : {
"$ref" : "#/components/examples/post-balancePlatform.negativeBalanceCompensationWarning.scheduled-balancePlatform.negativeBalanceCompensationWarning.scheduled"
}
},
"schema" : {
"$ref" : "#/components/schemas/NegativeBalanceCompensationWarningNotificationRequest"
}
}
}
},
"responses" : {
"200" : {
"description" : "No Content - webhook events are accepted on the basis of the HTTP status code."
}
}
}
}
},
"components" : {
"schemas" : {
"Amount" : {
"additionalProperties" : false,
"properties" : {
"currency" : {
"description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).",
"maxLength" : 3,
"minLength" : 3,
"type" : "string"
},
"value" : {
"description" : "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).",
"format" : "int64",
"type" : "integer"
}
},
"required" : [
"value",
"currency"
],
"type" : "object"
},
"NegativeBalanceCompensationWarningNotificationData" : {
"additionalProperties" : false,
"properties" : {
"accountHolder" : {
"description" : "The details of the account holder who owns the balance account with a negative balance.",
"$ref" : "#/components/schemas/ResourceReference"
},
"amount" : {
"description" : "The negative balance amount of the balance account.",
"$ref" : "#/components/schemas/Amount"
},
"balancePlatform" : {
"description" : "The unique identifier of the balance platform.",
"type" : "string"
},
"creationDate" : {
"description" : "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.",
"format" : "date-time",
"type" : "string"
},
"id" : {
"description" : "The ID of the resource.",
"type" : "string"
},
"liableBalanceAccountId" : {
"description" : "The balance account ID of the account that will be used to compensate the balance account whose balance is negative.",
"type" : "string"
},
"negativeBalanceSince" : {
"description" : "The date the balance for the account became negative.",
"format" : "date-time",
"type" : "string"
},
"scheduledCompensationAt" : {
"description" : "The date when a compensation transfer to the account is scheduled to happen.",
"format" : "date-time",
"type" : "string"
}
},
"type" : "object"
},
"NegativeBalanceCompensationWarningNotificationRequest" : {
"additionalProperties" : false,
"properties" : {
"data" : {
"description" : "Contains event details.",
"$ref" : "#/components/schemas/NegativeBalanceCompensationWarningNotificationData"
},
"environment" : {
"description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**.",
"type" : "string"
},
"type" : {
"description" : "Type of webhook.",
"enum" : [
"balancePlatform.negativeBalanceCompensationWarning.scheduled"
],
"type" : "string"
}
},
"required" : [
"environment",
"type",
"data"
],
"type" : "object"
},
"Resource" : {
"additionalProperties" : false,
"properties" : {
"balancePlatform" : {
"description" : "The unique identifier of the balance platform.",
"type" : "string"
},
"creationDate" : {
"description" : "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.",
"format" : "date-time",
"type" : "string"
},
"id" : {
"description" : "The ID of the resource.",
"type" : "string"
}
},
"type" : "object"
},
"ResourceReference" : {
"additionalProperties" : false,
"properties" : {
"description" : {
"description" : "The description of the resource.",
"type" : "string"
},
"id" : {
"description" : "The unique identifier of the resource.",
"type" : "string"
},
"reference" : {
"description" : "The reference for the resource.",
"type" : "string"
}
},
"type" : "object"
}
},
"securitySchemes" : {
"BasicAuth" : {
"scheme" : "basic",
"type" : "http"
}
},
"examples" : {
"post-balancePlatform.negativeBalanceCompensationWarning.scheduled-balancePlatform.negativeBalanceCompensationWarning.scheduled" : {
"summary" : "Negative balance compensation scheduled",
"description" : "Example webhook sent as warning when a negative balance compensation is scheduled.",
"value" : {
"data" : {
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
"creationDate" : "2024-10-22T00:00:00+02:00",
"id" : "BA00000000000000000001",
"accountHolder" : {
"description" : "Description for the account holder.",
"reference" : "YOUR_REFERENCE",
"id" : "AH00000000000000000001"
},
"amount" : {
"currency" : "EUR",
"value" : -145050
},
"liableBalanceAccountId" : "BA11111111111111111111",
"negativeBalanceSince" : "2024-10-19T00:33:13+02:00",
"scheduledCompensationAt" : "2024-12-01T01:00:00+01:00"
},
"environment" : "test",
"type" : "balancePlatform.negativeBalanceCompensationWarning.scheduled"
}
}
}
}
}
17 changes: 16 additions & 1 deletion json/BalancePlatformService-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5666,7 +5666,7 @@
"description" : "Deletes an SCA device from the list of registered devices of a specific payment instrument.",
"x-addedInVersion" : "1",
"operationId" : "delete-registeredDevices-id",
"x-sortIndex" : 4,
"x-sortIndex" : 6,
"x-methodName" : "deleteRegistrationOfScaDevice",
"security" : [
{
Expand Down Expand Up @@ -8659,6 +8659,11 @@
"readOnly" : true,
"type" : "string"
},
"reasonDetail" : {
"description" : "The human readable reason for disabling the sweep.",
"readOnly" : true,
"type" : "string"
},
"reference" : {
"description" : "Your reference for the sweep configuration.",
"maxLength" : 80,
Expand Down Expand Up @@ -10755,6 +10760,11 @@
"readOnly" : true,
"type" : "string"
},
"reasonDetail" : {
"description" : "The human readable reason for disabling the sweep.",
"readOnly" : true,
"type" : "string"
},
"reference" : {
"description" : "Your reference for the sweep configuration.",
"maxLength" : 80,
Expand Down Expand Up @@ -11701,6 +11711,11 @@
"readOnly" : true,
"type" : "string"
},
"reasonDetail" : {
"description" : "The human readable reason for disabling the sweep.",
"readOnly" : true,
"type" : "string"
},
"reference" : {
"description" : "Your reference for the sweep configuration.",
"maxLength" : 80,
Expand Down
3 changes: 3 additions & 0 deletions yaml/BalancePlatformConfigurationNotification-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1697,6 +1697,9 @@ components:
- transferInstrumentDoesNotExist
- unknown
type: string
reasonDetail:
description: The human readable reason for disabling the sweep.
type: string
reference:
description: Your reference for the sweep configuration.
maxLength: 80
Expand Down
3 changes: 3 additions & 0 deletions yaml/BalancePlatformConfigurationNotification-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,9 @@ components:
- transferInstrumentDoesNotExist
- unknown
type: string
reasonDetail:
description: The human readable reason for disabling the sweep.
type: string
reference:
description: Your reference for the sweep configuration.
maxLength: 80
Expand Down
Loading

0 comments on commit d1f265e

Please sign in to comment.