spec release

This commit is contained in:
Adyen Automation
2024-11-20 11:58:55 +01:00
parent 559673ace3
commit d1f265ed37
8 changed files with 441 additions and 2 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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"
}
}
}
}
}

View File

@@ -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" : [
{
@@ -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,
@@ -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,
@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,175 @@
openapi: 3.1.0
info:
version: '1'
x-publicVersion: true
title: 'Negative balance compensation warning
'
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.
Possible 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

View File

@@ -3479,7 +3479,7 @@ paths:
specific payment instrument.
x-addedInVersion: '1'
operationId: delete-registeredDevices-id
x-sortIndex: 4
x-sortIndex: 6
x-methodName: deleteRegistrationOfScaDevice
security:
- clientKey: []
@@ -6007,6 +6007,10 @@ components:
- unknown
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
@@ -7910,6 +7914,10 @@ components:
- unknown
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
@@ -9126,6 +9134,10 @@ components:
- unknown
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