mirror of
https://github.com/gcatanese/adyen-openapi.git
synced 2026-03-10 08:01:24 +00:00
Updated specification for the Recurring API
This commit is contained in:
@@ -75,29 +75,37 @@ components:
|
|||||||
Address:
|
Address:
|
||||||
properties:
|
properties:
|
||||||
city:
|
city:
|
||||||
description: The city name.
|
description: |-
|
||||||
|
The name of the city.
|
||||||
|
>Required if either houseNumberOrName, street, postalCode, or stateOrProvince are provided.
|
||||||
type: string
|
type: string
|
||||||
country:
|
country:
|
||||||
description: A valid value is an ISO two-character country code (e.g. 'NL').
|
description: |-
|
||||||
|
The two-character country code of the address
|
||||||
|
>The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').
|
||||||
type: string
|
type: string
|
||||||
houseNumberOrName:
|
houseNumberOrName:
|
||||||
description: The house number or name.
|
description: The number or name of the house.
|
||||||
type: string
|
type: string
|
||||||
postalCode:
|
postalCode:
|
||||||
description: The postal code with a maximum of 5 characters for USA and maximum of 10 characters for any other country.
|
description: |-
|
||||||
|
The postal code.
|
||||||
|
>A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries.
|
||||||
|
>Required if either houseNumberOrName, street, city, or stateOrProvince are provided.
|
||||||
type: string
|
type: string
|
||||||
stateOrProvince:
|
stateOrProvince:
|
||||||
description: 'For USA or Canada, a valid 2-character abbreviation for the state or province respectively. For other countries any abbreviation with maximum 3 characters for the state or province.'
|
description: |-
|
||||||
|
The abbreviation of the state or province.
|
||||||
|
>Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries.
|
||||||
|
>Required for an address in the USA or Canada if either houseNumberOrName, street, city, or postalCode are provided.
|
||||||
type: string
|
type: string
|
||||||
street:
|
street:
|
||||||
description: |
|
description: |-
|
||||||
The street name.
|
The name of the street.
|
||||||
> Don't append the house number to this field. Instead, pass the house number separately as `houseNumberOrName`.
|
>The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.
|
||||||
|
>Required if either houseNumberOrName, city, postalCode, or stateOrProvince are provided.
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- street
|
|
||||||
- houseNumberOrName
|
|
||||||
- city
|
|
||||||
- country
|
- country
|
||||||
BankAccount:
|
BankAccount:
|
||||||
properties:
|
properties:
|
||||||
@@ -234,33 +242,18 @@ components:
|
|||||||
- shopperReference
|
- shopperReference
|
||||||
DisableResult:
|
DisableResult:
|
||||||
properties:
|
properties:
|
||||||
details:
|
|
||||||
description: A list of one or more recurring payment details that were disabled.
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/RecurringDetail'
|
|
||||||
type: array
|
|
||||||
response:
|
response:
|
||||||
description: 'Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled].'
|
description: 'Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled].'
|
||||||
type: string
|
type: string
|
||||||
ELV:
|
|
||||||
properties:
|
|
||||||
accountHolderName:
|
|
||||||
type: string
|
|
||||||
bankAccountNumber:
|
|
||||||
type: string
|
|
||||||
bankLocation:
|
|
||||||
type: string
|
|
||||||
bankLocationId:
|
|
||||||
type: string
|
|
||||||
bankName:
|
|
||||||
type: string
|
|
||||||
Name:
|
Name:
|
||||||
properties:
|
properties:
|
||||||
firstName:
|
firstName:
|
||||||
description: A person's first name.
|
description: The first name.
|
||||||
type: string
|
type: string
|
||||||
gender:
|
gender:
|
||||||
description: A person's gender (can be unknown).
|
description: |-
|
||||||
|
The gender.
|
||||||
|
>The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.
|
||||||
enum:
|
enum:
|
||||||
- MALE
|
- MALE
|
||||||
- FEMALE
|
- FEMALE
|
||||||
@@ -269,10 +262,12 @@ components:
|
|||||||
minLength: 1
|
minLength: 1
|
||||||
type: string
|
type: string
|
||||||
infix:
|
infix:
|
||||||
description: 'A person name''s infix, if applicable. Maximum length: 20 characters.'
|
description: |-
|
||||||
|
The name's infix, if applicable.
|
||||||
|
>A maximum length of twenty (20) characters is imposed.
|
||||||
type: string
|
type: string
|
||||||
lastName:
|
lastName:
|
||||||
description: A person's last name.
|
description: The last name.
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- firstName
|
- firstName
|
||||||
@@ -284,9 +279,10 @@ components:
|
|||||||
description: |-
|
description: |-
|
||||||
The type of recurring contract to be used.
|
The type of recurring contract to be used.
|
||||||
Possible values:
|
Possible values:
|
||||||
* `ONECLICK` – The shopper opts to store their card details for future use. The shopper is present for the subsequent transaction, for cards the security code (CVC/CVV) is required.
|
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/developers/payment-glossary#cardsecuritycodecvccvvcid).
|
||||||
* `RECURRING` – Payment details are stored for future use. For cards, the security code (CVC/CVV) is not required for subsequent payments. This is used for shopper not present transactions.
|
* `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/developers/payment-glossary#cardnotpresentcnp).
|
||||||
* `ONECLICK,RECURRING` – Payment details are stored for future use. This allows the use of the stored payment details regardless of whether the shopper is on your site or not.
|
* `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not.
|
||||||
|
* `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/developers/features/third-party-payouts).
|
||||||
enum:
|
enum:
|
||||||
- ONECLICK
|
- ONECLICK
|
||||||
- RECURRING
|
- RECURRING
|
||||||
@@ -299,54 +295,72 @@ components:
|
|||||||
description: The name of the token service.
|
description: The name of the token service.
|
||||||
enum:
|
enum:
|
||||||
- VISATOKENSERVICE
|
- VISATOKENSERVICE
|
||||||
|
- MCTOKENSERVICE
|
||||||
type: string
|
type: string
|
||||||
RecurringDetail:
|
RecurringDetail:
|
||||||
properties:
|
properties:
|
||||||
acquirer:
|
|
||||||
type: string
|
|
||||||
acquirerAccount:
|
|
||||||
type: string
|
|
||||||
additionalData:
|
additionalData:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
description: |-
|
||||||
|
This field contains additional data, which may be returned in a particular response.
|
||||||
|
|
||||||
|
The additionalData object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to [RecurringDetail.additionalData](https://docs.adyen.com/developers/api-reference/recurring-api#recurringdetailadditionaldata).
|
||||||
type: object
|
type: object
|
||||||
alias:
|
alias:
|
||||||
|
description: |-
|
||||||
|
The alias of the credit card number.
|
||||||
|
|
||||||
|
Applies only to recurring contracts storing credit card details
|
||||||
type: string
|
type: string
|
||||||
aliasType:
|
aliasType:
|
||||||
|
description: |-
|
||||||
|
The alias type of the credit card number.
|
||||||
|
|
||||||
|
Applies only to recurring contracts storing credit card details.
|
||||||
type: string
|
type: string
|
||||||
bank:
|
bank:
|
||||||
|
description: A container for bank account data.
|
||||||
$ref: '#/components/schemas/BankAccount'
|
$ref: '#/components/schemas/BankAccount'
|
||||||
billingAddress:
|
billingAddress:
|
||||||
|
description: The billing address.
|
||||||
$ref: '#/components/schemas/Address'
|
$ref: '#/components/schemas/Address'
|
||||||
card:
|
card:
|
||||||
|
description: A container for card data.
|
||||||
$ref: '#/components/schemas/Card'
|
$ref: '#/components/schemas/Card'
|
||||||
contractTypes:
|
contractTypes:
|
||||||
|
description: Types of recurring contracts.
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
creationDate:
|
creationDate:
|
||||||
|
description: The date when the recurring details were created.
|
||||||
format: date-time
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
elv:
|
|
||||||
$ref: '#/components/schemas/ELV'
|
|
||||||
firstPspReference:
|
firstPspReference:
|
||||||
|
description: The `pspReference` of the first recurring payment that created the recurring detail.
|
||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
description: An optional descriptive name for this recurring detail
|
description: An optional descriptive name for this recurring detail.
|
||||||
type: string
|
type: string
|
||||||
paymentMethodVariant:
|
paymentMethodVariant:
|
||||||
|
description: 'The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/developers/api-reference/common-api/paymentmethodvariant).'
|
||||||
type: string
|
type: string
|
||||||
recurringDetailReference:
|
recurringDetailReference:
|
||||||
description: The reference that uniquely identifies the recurring detail
|
description: The reference that uniquely identifies the recurring detail.
|
||||||
type: string
|
type: string
|
||||||
shopperName:
|
shopperName:
|
||||||
|
description: The name of the shopper.
|
||||||
$ref: '#/components/schemas/Name'
|
$ref: '#/components/schemas/Name'
|
||||||
socialSecurityNumber:
|
socialSecurityNumber:
|
||||||
|
description: A shopper's social security number (only in countries where it is legal to collect).
|
||||||
type: string
|
type: string
|
||||||
tokenDetails:
|
|
||||||
$ref: '#/components/schemas/TokenDetails'
|
|
||||||
variant:
|
variant:
|
||||||
|
description: 'The payment method, such as “mc", "visa", "ideal", "paypal".'
|
||||||
type: string
|
type: string
|
||||||
|
required:
|
||||||
|
- recurringDetailReference
|
||||||
|
- variant
|
||||||
RecurringDetailsRequest:
|
RecurringDetailsRequest:
|
||||||
properties:
|
properties:
|
||||||
merchantAccount:
|
merchantAccount:
|
||||||
@@ -372,23 +386,13 @@ components:
|
|||||||
format: date-time
|
format: date-time
|
||||||
type: string
|
type: string
|
||||||
details:
|
details:
|
||||||
description: A list of one or more recurring payment details.
|
description: Payment details stored for recurring payments.
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/RecurringDetail'
|
$ref: '#/components/schemas/RecurringDetail'
|
||||||
type: array
|
type: array
|
||||||
invalidOneclickContracts:
|
|
||||||
type: boolean
|
|
||||||
lastKnownShopperEmail:
|
lastKnownShopperEmail:
|
||||||
description: The most recent email for this shopper (if available).
|
description: The most recent email for this shopper (if available).
|
||||||
type: string
|
type: string
|
||||||
shopperReference:
|
shopperReference:
|
||||||
description: The reference you use to uniquely identify the shopper (e.g. user ID or account ID).
|
description: The reference you use to uniquely identify the shopper (e.g. user ID or account ID).
|
||||||
type: string
|
type: string
|
||||||
TokenDetails:
|
|
||||||
properties:
|
|
||||||
tokenData:
|
|
||||||
additionalProperties:
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
tokenDataType:
|
|
||||||
type: string
|
|
||||||
|
|||||||
Reference in New Issue
Block a user