Merge pull request #674 from Adyen/develop

Release 8.0.0
This commit is contained in:
Wouter Boereboom
2021-04-30 15:59:36 +02:00
committed by GitHub
166 changed files with 15741 additions and 5795 deletions

2
.github/CODEOWNERS vendored
View File

@@ -1 +1 @@
* @zaiddreakh @maassenbas @msilvagarcia @AlexandrosMor @peterojo
* @zaiddreakh @maassenbas @msilvagarcia @AlexandrosMor @peterojo @wboereboom

View File

@@ -3,7 +3,7 @@ name: Bug report
about: Create a report to help us improve
title: '[BUG]'
labels: 'bug'
assignees: 'KadoBOT'
assignees: ''
---

View File

@@ -3,7 +3,7 @@ name: Feature request
about: Suggest an idea for this project
title: '[FEATURE]'
labels: 'feature'
assignees: 'KadoBOT'
assignees: ''
---

View File

@@ -7,4 +7,9 @@ updates:
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- KadoBOT
- zaiddreakh
maassenbas
msilvagarcia
AlexandrosMor
peterojo
wboereboom

View File

@@ -18,11 +18,6 @@ jobs:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1

21
.github/workflows/sonarcloud.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: "Sonarcloud Analysis"
on: ["push", "pull_request"]
jobs:
sonarcloud-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Disabling shallow clone to improve relevancy of SonarCloud reporting
fetch-depth: 0
- name: SonarCloud integration
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

View File

@@ -21,6 +21,7 @@ The Library supports all APIs under the following services:
* [x] recurring
* [x] notifications
* [x] BIN lookup
* [x] Terminal API
## Requirements
@@ -88,6 +89,9 @@ client.httpClient = httpClient;
...
```
## Testing
`$ npm run test`
## Support
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/hc/en-us/requests/new?ticket_form_id=360000705420).

875
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@adyen/api-library",
"version": "7.0.0",
"version": "8.0.0",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
@@ -35,7 +35,7 @@
"author": "Ricardo Ambrogi",
"license": "MIT",
"devDependencies": {
"@types/jest": "26.0.15",
"@types/jest": "26.0.23",
"@types/nock": "11.1.0",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
@@ -44,16 +44,16 @@
"dotenv": "^8.2.0",
"eslint": "6.8.0",
"jest": "25.5.4",
"jest-ts-auto-mock": "^1.0.11",
"jest-ts-auto-mock": "^2.0.0",
"kind-of": "^6.0.3",
"minimist": ">=1.2.3",
"nock": "13.0.5",
"release-it": "14.2.1",
"nock": "13.0.11",
"release-it": "14.6.1",
"ts-auto-mock": "^2.6.5",
"ts-jest": "25.5.1",
"ts-loader": "8.0.10",
"ttypescript": "^1.5.10",
"typescript": "3.9.7"
"typescript": "3.9.9"
},
"dependencies": {
"https-proxy-agent": "5.0.0"

View File

@@ -1,10 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
# General settings
sonar.organization=adyen
sonar.projectKey=Adyen_adyen-node-api-library
# Path to sources
#sonar.sources=.
sonar.exclusions=src/__mocks__/*
sonar.exclusions=src/typings/*
sonar.exclusions=src/__mocks__/**/* , src/typings/**/* , src/__tests__/**/*
#sonar.inclusions=
# Path to tests

View File

@@ -18,47 +18,63 @@
*/
import nock from "nock";
import { createClient } from "../__mocks__/base";
import { paymentMethodsSuccess } from "../__mocks__/checkout/paymentMethodsSuccess";
import { paymentsSuccess } from "../__mocks__/checkout/paymentsSuccess";
import { paymentDetailsSuccess } from "../__mocks__/checkout/paymentsDetailsSuccess";
import { paymentSessionSuccess } from "../__mocks__/checkout/paymentSessionSucess";
import { originKeysSuccess } from "../__mocks__/checkout/originkeysSuccess";
import { paymentsResultMultibancoSuccess } from "../__mocks__/checkout/paymentsResultMultibancoSuccess";
import { paymentsResultSuccess } from "../__mocks__/checkout/paymentsResultSucess";
import {createClient} from "../__mocks__/base";
import {paymentMethodsSuccess} from "../__mocks__/checkout/paymentMethodsSuccess";
import {paymentsSuccess} from "../__mocks__/checkout/paymentsSuccess";
import {paymentDetailsSuccess} from "../__mocks__/checkout/paymentsDetailsSuccess";
import {paymentSessionSuccess} from "../__mocks__/checkout/paymentSessionSucess";
import {originKeysSuccess} from "../__mocks__/checkout/originkeysSuccess";
import {paymentsResultMultibancoSuccess} from "../__mocks__/checkout/paymentsResultMultibancoSuccess";
import {paymentsResultSuccess} from "../__mocks__/checkout/paymentsResultSucess";
import Client from "../client";
import Checkout from "../services/checkout";
import HttpClientException from "../httpClient/httpClientException";
import {
Amount,
CheckoutBalanceCheckRequest,
CheckoutBalanceCheckResponse,
CheckoutCancelOrderResponse,
CheckoutCreateOrderRequest,
CheckoutCreateOrderResponse,
CheckoutUtilityRequest,
CreatePaymentLinkRequest,
DetailsRequest,
PaymentLinkResource,
PaymentMethodsRequest,
PaymentRequest,
PaymentResponse,
PaymentSetupRequest,
PaymentVerificationRequest,
} from "../typings/checkout/models";
const merchantAccount = process.env.ADYEN_MERCHANT!;
const reference = "Your order number";
const isCI = process.env.CI === "true" || (typeof process.env.CI === "boolean" && process.env.CI);
function createAmountObject(currency: string, value: number): ICheckout.Amount {
function createAmountObject(currency: string, value: number): Amount {
return {
currency,
value,
};
}
function createPaymentsDetailsRequest(): ICheckout.DetailsRequest {
function createPaymentsDetailsRequest(): DetailsRequest {
return {
details: {
MD: "mdValue",
PaRes: "paResValue",
mD: "mdValue",
paRes: "paResValue",
},
paymentData: "Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...",
};
}
export function createPaymentsCheckoutRequest(): ICheckout.PaymentRequest {
export function createPaymentsCheckoutRequest(): PaymentRequest {
const paymentMethodDetails = {
cvc: "737",
expiryMonth: "03",
expiryYear: "2030",
holderName: "John Smith",
number: "4111111111111111",
type: "scheme",
encryptedCardNumber: "test_4111111111111111",
encryptedExpiryMonth: "test_03",
encryptedExpiryYear: "test_2030",
encryptedSecurityCode: "test_737"
};
return {
@@ -72,18 +88,18 @@ export function createPaymentsCheckoutRequest(): ICheckout.PaymentRequest {
};
}
function createPaymentSessionRequest(): ICheckout.PaymentSetupRequest {
function createPaymentSessionRequest(): PaymentSetupRequest {
return {
amount: createAmountObject("USD", 1000),
countryCode: "NL",
merchantAccount,
reference,
returnUrl: "https://your-company.com/...",
channel: "Web",
channel: PaymentSetupRequest.ChannelEnum.Web,
sdkVersion: "3.7.0"
};
}
function getPaymentLinkSuccess(expiresAt: string): ICheckout.PaymentLinkResource {
function getPaymentLinkSuccess(expiresAt: string): PaymentLinkResource {
return {
amount: createAmountObject("USD", 1000),
expiresAt,
@@ -91,11 +107,11 @@ function getPaymentLinkSuccess(expiresAt: string): ICheckout.PaymentLinkResource
url: "paymentLinkResponse.url",
id: "mocked_id",
merchantAccount,
status: "active"
status: PaymentLinkResource.StatusEnum.Active
};
}
function createPaymentLinkRequest(): ICheckout.CreatePaymentLinkRequest {
function createPaymentLinkRequest(): CreatePaymentLinkRequest {
return {
allowedPaymentMethods: ["scheme", "boletobancario"],
amount: createAmountObject("USD", 1000),
@@ -147,8 +163,8 @@ describe("Checkout", (): void => {
scope.post("/payments")
.reply(200, paymentsSuccess);
const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: ICheckout.PaymentResponse = await checkout.payments(paymentsRequest);
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toBeTruthy();
});
@@ -158,7 +174,7 @@ describe("Checkout", (): void => {
scope.post("/payments")
.reply(401);
const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
await checkout.payments(paymentsRequest);
} catch (e) {
expect(e instanceof HttpClientException).toBeTruthy();
@@ -167,7 +183,7 @@ describe("Checkout", (): void => {
test.each([false, true])("should have valid payment methods, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const paymentMethodsRequest: ICheckout.PaymentMethodsRequest = {merchantAccount: "MagentoMerchantTest"};
const paymentMethodsRequest: PaymentMethodsRequest = {merchantAccount: "MagentoMerchantTest"};
scope.post("/paymentMethods")
.reply(200, paymentMethodsSuccess);
@@ -183,7 +199,7 @@ describe("Checkout", (): void => {
test.each([false, true])("should have valid payment link, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: ICheckout.PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
const paymentLinkSuccess: PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
@@ -194,7 +210,7 @@ describe("Checkout", (): void => {
test.each([isCI, true])("should get payment link, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: ICheckout.PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
const paymentLinkSuccess: PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
@@ -208,7 +224,7 @@ describe("Checkout", (): void => {
test.each([isCI, true])("should patch payment link, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: ICheckout.PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
const paymentLinkSuccess: PaymentLinkResource = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
@@ -232,7 +248,7 @@ describe("Checkout", (): void => {
!isMock && nock.restore();
scope.post("/paymentSession")
.reply(200, paymentSessionSuccess);
const paymentSessionRequest: ICheckout.PaymentSetupRequest = createPaymentSessionRequest();
const paymentSessionRequest: PaymentSetupRequest = createPaymentSessionRequest();
const paymentSessionResponse = await checkout.paymentSession(paymentSessionRequest);
expect(paymentSessionResponse.paymentSession).not.toBeUndefined();
});
@@ -241,7 +257,7 @@ describe("Checkout", (): void => {
!isMock && nock.restore();
scope.post("/payments/result")
.reply(200, paymentsResultSuccess);
const paymentResultRequest: ICheckout.PaymentVerificationRequest = {
const paymentResultRequest: PaymentVerificationRequest = {
payload: "This is a test payload",
};
const paymentResultResponse = await checkout.paymentResult(paymentResultRequest);
@@ -265,8 +281,8 @@ describe("Checkout", (): void => {
scope.post("/payments")
.reply(200, paymentsResultMultibancoSuccess);
const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: ICheckout.PaymentResponse = await checkout.payments(paymentsRequest);
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toBeTruthy();
expect(paymentsResponse.additionalData).toBeTruthy();
@@ -275,7 +291,7 @@ describe("Checkout", (): void => {
test.each([false, true])("should get origin keys. isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const checkoutUtility = new Checkout(client);
const originKeysRequest: ICheckout.CheckoutUtilityRequest = {
const originKeysRequest: CheckoutUtilityRequest = {
originDomains: ["https://www.your-domain.com"],
};
@@ -293,61 +309,74 @@ describe("Checkout", (): void => {
// TODO: add gift card to PaymentMethod and unmock test
test.each([true, true])("should get payment methods balance", async (isMock): Promise<void> => {
!isMock && nock.restore();
const paymentMethodsRequest: ICheckout.CheckoutBalanceCheckRequest = {
const paymentMethodsRequest: CheckoutBalanceCheckRequest = {
merchantAccount,
amount: createAmountObject("USD", 1000),
paymentMethod: { },
reference: "mocked_reference"
};
const paymentMethodsBalanceResponse: ICheckout.CheckoutBalanceCheckResponse = { balance: {currency: "USD", value: 1000}};
const paymentMethodsBalanceResponse: CheckoutBalanceCheckResponse = {
balance: {currency: "USD", value: 1000},
resultCode: CheckoutBalanceCheckResponse.ResultCodeEnum.Success
};
scope.post("/paymentMethods/balance")
.reply(200, paymentMethodsBalanceResponse);
const paymentsResponse: ICheckout.CheckoutBalanceCheckResponse = await checkout.paymentMethodsBalance(paymentMethodsRequest);
const paymentsResponse: CheckoutBalanceCheckResponse = await checkout.paymentMethodsBalance(paymentMethodsRequest);
expect(paymentsResponse.balance.value).toEqual(1000);
});
test.each([false, true])("should create order", async (isMock): Promise<void> => {
!isMock && nock.restore();
const expiresAt = "2019-12-17T10:05:29Z";
const orderRequest: ICheckout.CheckoutCreateOrderRequest = {
const orderRequest: CheckoutCreateOrderRequest = {
amount: createAmountObject("USD", 1000),
merchantAccount,
reference
};
const orderResponse: ICheckout.CheckoutCreateOrderResponse = {expiresAt, orderData: "mocked_order_data", remainingAmount: {currency: "USD", value: 500} };
const orderResponse: CheckoutCreateOrderResponse = {
expiresAt,
orderData: "mocked_order_data",
remainingAmount: {currency: "USD", value: 500} ,
resultCode: CheckoutCreateOrderResponse.ResultCodeEnum.Success
};
scope.post("/orders")
.reply(200, orderResponse);
const response: ICheckout.CheckoutCreateOrderResponse = await checkout.orders(orderRequest);
const response: CheckoutCreateOrderResponse = await checkout.orders(orderRequest);
expect(response).toBeTruthy();
});
test.each([false, true])("should cancel order", async (isMock): Promise<void> => {
!isMock && nock.restore();
const expiresAt = "2019-12-17T10:05:29Z";
const orderRequest: ICheckout.CheckoutCreateOrderRequest = {
const orderRequest: CheckoutCreateOrderRequest = {
amount: createAmountObject("USD", 1000),
merchantAccount,
reference
};
const orderResponse: ICheckout.CheckoutCreateOrderResponse = {expiresAt, orderData: "mocked_order_data", remainingAmount: {currency: "USD", value: 500} };
const orderResponse: CheckoutCreateOrderResponse = {
expiresAt,
orderData: "mocked_order_data",
remainingAmount: {currency: "USD", value: 500},
resultCode: CheckoutCreateOrderResponse.ResultCodeEnum.Success
};
scope.post("/orders")
.reply(200, orderResponse);
const createOrderResponse: ICheckout.CheckoutCreateOrderResponse = await checkout.orders(orderRequest);
const createOrderResponse: CheckoutCreateOrderResponse = await checkout.orders(orderRequest);
const orderCancelResponse: ICheckout.CheckoutCancelOrderResponse = {
const orderCancelResponse: CheckoutCancelOrderResponse = {
pspReference: "mocked_psp_ref",
resultCode: "CANCELLED"
resultCode: CheckoutCancelOrderResponse.ResultCodeEnum.Received
};
scope.post("/orders/cancel")
.reply(200, orderCancelResponse);
const response: ICheckout.CheckoutCancelOrderResponse = await checkout.ordersCancel({
const response: CheckoutCancelOrderResponse = await checkout.ordersCancel({
order: {
orderData: createOrderResponse.orderData,
pspReference: createOrderResponse.pspReference!

View File

@@ -84,6 +84,28 @@ describe("HMAC Validator", function (): void {
expect(result).toBeFalsy();
});
it("should throw error with missing hmac signature", function(): void {
expect.assertions(1);
const notificationRequestItemNoAdditionalData: NotificationRequestItem = {
pspReference: "pspReference",
originalReference: "originalReference",
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: NotificationRequestItem.EventCodeEnum.REPORTAVAILABLE,
eventDate: "2019-09-21T11:45:24.637Z",
paymentMethod: "VISA",
reason: "reason",
success: NotificationRequestItem.SuccessEnum.True,
additionalData: { },
};
try {
hmacValidator.validateHMAC(notificationRequestItemNoAdditionalData, key);
} catch(error) {
expect(error.message).toEqual(`Missing ${ApiConstants.HMAC_SIGNATURE}`);
}
});
it("should test hmac", function () {
const data = "countryCode:currencyCode:merchantAccount:merchantReference:paymentAmount:sessionValidity:skinCode:NL:EUR:MagentoMerchantTest2:TEST-PAYMENT-2017-02-01-14\\:02\\:05:199:2017-02-02T14\\:02\\:05+01\\:00:PKz2KML1";
const key = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00";

View File

@@ -26,6 +26,7 @@ import Client from "../client";
import { paymentsSuccess } from "../__mocks__/checkout/paymentsSuccess";
import { createPaymentsCheckoutRequest } from "./checkout.spec";
import Checkout from "../services/checkout";
import { PaymentRequest } from "../typings/checkout/models";
const createRecurringDetailsRequest = (): IRecurring.RecurringDetailsRequest => {
return {
@@ -75,7 +76,7 @@ describe("Recurring", (): void => {
scope.post("/payments")
.reply(200, paymentsSuccess);
const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
const res = await checkout.payments(paymentsRequest);
scope.post("/disable")

View File

@@ -52,7 +52,7 @@ class Client {
public static HPP_LIVE = "https://live.adyen.com/hpp";
public static MARKETPAY_ENDPOINT_TEST = "https://cal-test.adyen.com/cal/services";
public static MARKETPAY_ENDPOINT_LIVE = "https://cal-live.adyen.com/cal/services";
public static CHECKOUT_API_VERSION = "v66";
public static CHECKOUT_API_VERSION = "v67";
public static API_VERSION = "v64";
public static RECURRING_API_VERSION = "v49";
public static MARKETPAY_ACCOUNT_API_VERSION = "v6";

View File

@@ -17,7 +17,7 @@
* See the LICENSE file for more info.
*/
import { Cipher, createCipheriv, createDecipheriv, createHmac, randomBytes } from "crypto";
import { Cipher, createCipheriv, createDecipheriv, createHmac, randomBytes, timingSafeEqual } from "crypto";
import NexoCryptoException from "../services/exception/nexoCryptoException";
import {
MessageHeader,
@@ -115,9 +115,7 @@ class NexoCrypto {
private validateHmac(receivedHmac: Buffer, decryptedMessage: Buffer, derivedKey: NexoDerivedKey): void {
const hmac = NexoCrypto.hmac(decryptedMessage, derivedKey);
const isValid = hmac.every((item, index): boolean => item === receivedHmac[index]);
if (!isValid) {
if (!timingSafeEqual(hmac, receivedHmac)) {
throw new NexoCryptoException("Hmac validation failed");
}
}

View File

@@ -29,6 +29,28 @@ import PaymentLinks from "./resource/checkout/paymentLinks";
import OriginKeys from "./resource/checkout/originKeys";
import setApplicationInfo from "../helpers/setApplicationInfo";
import { IRequest } from "../typings/requestOptions";
import {
PaymentRequest,
PaymentResponse,
PaymentMethodsRequest,
PaymentMethodsResponse,
PaymentLinkResource,
CreatePaymentLinkRequest,
DetailsRequest,
PaymentSetupRequest,
PaymentSetupResponse,
PaymentVerificationRequest,
PaymentVerificationResponse,
CheckoutUtilityRequest,
CheckoutUtilityResponse,
CheckoutBalanceCheckRequest,
CheckoutBalanceCheckResponse,
CheckoutCreateOrderRequest,
CheckoutCreateOrderResponse,
CheckoutCancelOrderRequest,
CheckoutCancelOrderResponse
} from "../typings/checkout/models";
import PaymentLinksId from "./resource/checkout/paymentLinksId";
import PaymentMethodsBalance from "./resource/checkout/paymentMethodsBalance";
import Orders from "./resource/checkout/orders";
@@ -62,48 +84,48 @@ class Checkout extends ApiKeyAuthenticatedService {
this._ordersCancel = new OrdersCancel(this);
}
public payments(paymentsRequest: ICheckout.PaymentRequest, requestOptions?: IRequest.Options): Promise<ICheckout.PaymentResponse> {
return getJsonResponse<ICheckout.PaymentRequest, ICheckout.PaymentResponse>(
public payments(paymentsRequest: PaymentRequest, requestOptions?: IRequest.Options): Promise<PaymentResponse> {
return getJsonResponse<PaymentRequest, PaymentResponse>(
this._payments,
setApplicationInfo(paymentsRequest),
requestOptions,
);
}
public paymentMethods(paymentMethodsRequest: ICheckout.PaymentMethodsRequest): Promise<ICheckout.PaymentMethodsResponse> {
return getJsonResponse<ICheckout.PaymentMethodsRequest, ICheckout.PaymentMethodsResponse>(
public paymentMethods(paymentMethodsRequest: PaymentMethodsRequest): Promise<PaymentMethodsResponse> {
return getJsonResponse<PaymentMethodsRequest, PaymentMethodsResponse>(
this._paymentMethods,
paymentMethodsRequest,
);
}
public paymentLinks(paymentLinkRequest: ICheckout.CreatePaymentLinkRequest): Promise<ICheckout.PaymentLinkResource> {
return getJsonResponse<ICheckout.CreatePaymentLinkRequest, ICheckout.PaymentLinkResource>(
public paymentLinks(paymentLinkRequest: CreatePaymentLinkRequest): Promise<PaymentLinkResource> {
return getJsonResponse<CreatePaymentLinkRequest, PaymentLinkResource>(
this._paymentLinks,
paymentLinkRequest
);
}
public getPaymentLinks(linkId: string): Promise<ICheckout.PaymentLinkResource> {
public getPaymentLinks(linkId: string): Promise<PaymentLinkResource> {
this._paymentLinksId.id = linkId;
return getJsonResponse<{}, ICheckout.PaymentLinkResource>(
return getJsonResponse<{}, PaymentLinkResource>(
this._paymentLinksId,
{},
{ method: "GET" }
);
}
public updatePaymentLinks(linkId: string, status: "expired"): Promise<ICheckout.PaymentLinkResource> {
public updatePaymentLinks(linkId: string, status: "expired"): Promise<PaymentLinkResource> {
this._paymentLinksId.id = linkId;
return getJsonResponse<{}, ICheckout.PaymentLinkResource>(
return getJsonResponse<{}, PaymentLinkResource>(
this._paymentLinksId,
{ status },
{ method: "PATCH" }
);
}
public paymentsDetails(paymentsDetailsRequest: ICheckout.DetailsRequest, requestOptions?: IRequest.Options): Promise<ICheckout.PaymentResponse> {
return getJsonResponse<ICheckout.DetailsRequest, ICheckout.PaymentResponse>(
public paymentsDetails(paymentsDetailsRequest: DetailsRequest, requestOptions?: IRequest.Options): Promise<PaymentResponse> {
return getJsonResponse<DetailsRequest, PaymentResponse>(
this._paymentsDetails,
paymentsDetailsRequest,
requestOptions
@@ -111,46 +133,46 @@ class Checkout extends ApiKeyAuthenticatedService {
}
public paymentSession(
paymentSessionRequest: ICheckout.PaymentSetupRequest,
paymentSessionRequest: PaymentSetupRequest,
requestOptions?: IRequest.Options,
): Promise<ICheckout.PaymentSetupResponse> {
return getJsonResponse<ICheckout.PaymentSetupRequest, ICheckout.PaymentSetupResponse>(
): Promise<PaymentSetupResponse> {
return getJsonResponse<PaymentSetupRequest, PaymentSetupResponse>(
this._paymentSession,
paymentSessionRequest,
requestOptions,
);
}
public paymentResult(paymentResultRequest: ICheckout.PaymentVerificationRequest): Promise<ICheckout.PaymentVerificationResponse> {
return getJsonResponse<ICheckout.PaymentVerificationRequest, ICheckout.PaymentVerificationResponse>(
public paymentResult(paymentResultRequest: PaymentVerificationRequest): Promise<PaymentVerificationResponse> {
return getJsonResponse<PaymentVerificationRequest, PaymentVerificationResponse>(
this._paymentsResult,
paymentResultRequest,
);
}
public originKeys(originKeysRequest: ICheckout.CheckoutUtilityRequest): Promise<ICheckout.CheckoutUtilityResponse> {
return getJsonResponse<ICheckout.CheckoutUtilityRequest, ICheckout.CheckoutUtilityResponse>(
public originKeys(originKeysRequest: CheckoutUtilityRequest): Promise<CheckoutUtilityResponse> {
return getJsonResponse<CheckoutUtilityRequest, CheckoutUtilityResponse>(
this._originKeys,
originKeysRequest,
);
}
public paymentMethodsBalance(paymentMethodsBalanceRequest: ICheckout.CheckoutBalanceCheckRequest): Promise<ICheckout.CheckoutBalanceCheckResponse> {
return getJsonResponse<ICheckout.CheckoutBalanceCheckRequest, ICheckout.CheckoutBalanceCheckResponse>(
public paymentMethodsBalance(paymentMethodsBalanceRequest: CheckoutBalanceCheckRequest): Promise<CheckoutBalanceCheckResponse> {
return getJsonResponse<CheckoutBalanceCheckRequest, CheckoutBalanceCheckResponse>(
this._paymentMethodsBalance,
paymentMethodsBalanceRequest,
);
}
public orders(ordersRequest: ICheckout.CheckoutCreateOrderRequest): Promise<ICheckout.CheckoutCreateOrderResponse> {
return getJsonResponse<ICheckout.CheckoutCreateOrderRequest, ICheckout.CheckoutCreateOrderResponse>(
public orders(ordersRequest: CheckoutCreateOrderRequest): Promise<CheckoutCreateOrderResponse> {
return getJsonResponse<CheckoutCreateOrderRequest, CheckoutCreateOrderResponse>(
this._orders,
ordersRequest,
);
}
public ordersCancel(ordersCancelRequest: ICheckout.CheckoutCancelOrderRequest): Promise<ICheckout.CheckoutCancelOrderResponse> {
return getJsonResponse<ICheckout.CheckoutCancelOrderRequest, ICheckout.CheckoutCancelOrderResponse>(
public ordersCancel(ordersCancelRequest: CheckoutCancelOrderRequest): Promise<CheckoutCancelOrderResponse> {
return getJsonResponse<CheckoutCancelOrderRequest, CheckoutCancelOrderResponse>(
this._ordersCancel,
ordersCancelRequest,
);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,234 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AccountInfo {
/**
* Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
*/
'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum;
/**
* Date when the shopper\'s account was last changed.
*/
'accountChangeDate'?: Date;
/**
* Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
*/
'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum;
/**
* Date when the shopper\'s account was created.
*/
'accountCreationDate'?: Date;
/**
* Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit
*/
'accountType'?: AccountInfo.AccountTypeEnum;
/**
* Number of attempts the shopper tried to add a card to their account in the last day.
*/
'addCardAttemptsDay'?: number;
/**
* Date the selected delivery address was first used.
*/
'deliveryAddressUsageDate'?: Date;
/**
* Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
*/
'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum;
/**
* Shopper\'s home phone number (including the country code).
*/
'homePhone'?: string;
/**
* Shopper\'s mobile phone number (including the country code).
*/
'mobilePhone'?: string;
/**
* Date when the shopper last changed their password.
*/
'passwordChangeDate'?: Date;
/**
* Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
*/
'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum;
/**
* Number of all transactions (successful and abandoned) from this shopper in the past 24 hours.
*/
'pastTransactionsDay'?: number;
/**
* Number of all transactions (successful and abandoned) from this shopper in the past year.
*/
'pastTransactionsYear'?: number;
/**
* Date this payment method was added to the shopper\'s account.
*/
'paymentAccountAge'?: Date;
/**
* Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days
*/
'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum;
/**
* Number of successful purchases in the last six months.
*/
'purchasesLast6Months'?: number;
/**
* Whether suspicious activity was recorded on this account.
*/
'suspiciousActivity'?: boolean;
/**
* Shopper\'s work phone number (including the country code).
*/
'workPhone'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountAgeIndicator",
"baseName": "accountAgeIndicator",
"type": "AccountInfo.AccountAgeIndicatorEnum"
},
{
"name": "accountChangeDate",
"baseName": "accountChangeDate",
"type": "Date"
},
{
"name": "accountChangeIndicator",
"baseName": "accountChangeIndicator",
"type": "AccountInfo.AccountChangeIndicatorEnum"
},
{
"name": "accountCreationDate",
"baseName": "accountCreationDate",
"type": "Date"
},
{
"name": "accountType",
"baseName": "accountType",
"type": "AccountInfo.AccountTypeEnum"
},
{
"name": "addCardAttemptsDay",
"baseName": "addCardAttemptsDay",
"type": "number"
},
{
"name": "deliveryAddressUsageDate",
"baseName": "deliveryAddressUsageDate",
"type": "Date"
},
{
"name": "deliveryAddressUsageIndicator",
"baseName": "deliveryAddressUsageIndicator",
"type": "AccountInfo.DeliveryAddressUsageIndicatorEnum"
},
{
"name": "homePhone",
"baseName": "homePhone",
"type": "string"
},
{
"name": "mobilePhone",
"baseName": "mobilePhone",
"type": "string"
},
{
"name": "passwordChangeDate",
"baseName": "passwordChangeDate",
"type": "Date"
},
{
"name": "passwordChangeIndicator",
"baseName": "passwordChangeIndicator",
"type": "AccountInfo.PasswordChangeIndicatorEnum"
},
{
"name": "pastTransactionsDay",
"baseName": "pastTransactionsDay",
"type": "number"
},
{
"name": "pastTransactionsYear",
"baseName": "pastTransactionsYear",
"type": "number"
},
{
"name": "paymentAccountAge",
"baseName": "paymentAccountAge",
"type": "Date"
},
{
"name": "paymentAccountIndicator",
"baseName": "paymentAccountIndicator",
"type": "AccountInfo.PaymentAccountIndicatorEnum"
},
{
"name": "purchasesLast6Months",
"baseName": "purchasesLast6Months",
"type": "number"
},
{
"name": "suspiciousActivity",
"baseName": "suspiciousActivity",
"type": "boolean"
},
{
"name": "workPhone",
"baseName": "workPhone",
"type": "string"
} ];
static getAttributeTypeMap() {
return AccountInfo.attributeTypeMap;
}
}
export namespace AccountInfo {
export enum AccountAgeIndicatorEnum {
NotApplicable = <any> 'notApplicable',
ThisTransaction = <any> 'thisTransaction',
LessThan30Days = <any> 'lessThan30Days',
From30To60Days = <any> 'from30To60Days',
MoreThan60Days = <any> 'moreThan60Days'
}
export enum AccountChangeIndicatorEnum {
ThisTransaction = <any> 'thisTransaction',
LessThan30Days = <any> 'lessThan30Days',
From30To60Days = <any> 'from30To60Days',
MoreThan60Days = <any> 'moreThan60Days'
}
export enum AccountTypeEnum {
NotApplicable = <any> 'notApplicable',
Credit = <any> 'credit',
Debit = <any> 'debit'
}
export enum DeliveryAddressUsageIndicatorEnum {
ThisTransaction = <any> 'thisTransaction',
LessThan30Days = <any> 'lessThan30Days',
From30To60Days = <any> 'from30To60Days',
MoreThan60Days = <any> 'moreThan60Days'
}
export enum PasswordChangeIndicatorEnum {
NotApplicable = <any> 'notApplicable',
ThisTransaction = <any> 'thisTransaction',
LessThan30Days = <any> 'lessThan30Days',
From30To60Days = <any> 'from30To60Days',
MoreThan60Days = <any> 'moreThan60Days'
}
export enum PaymentAccountIndicatorEnum {
NotApplicable = <any> 'notApplicable',
ThisTransaction = <any> 'thisTransaction',
LessThan30Days = <any> 'lessThan30Days',
From30To60Days = <any> 'from30To60Days',
MoreThan60Days = <any> 'moreThan60Days'
}
}

View File

@@ -0,0 +1,100 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AchDetails {
/**
* The bank account number (without separators).
*/
'bankAccountNumber': string;
/**
* The bank routing number of the account. The field value is `nil` in most cases.
*/
'bankLocationId'?: string;
/**
* Encrypted bank account number. The bank account number (without separators).
*/
'encryptedBankAccountNumber'?: string;
/**
* Encrypted location id. The bank routing number of the account. The field value is `nil` in most cases.
*/
'encryptedBankLocationId'?: string;
/**
* The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'.
*/
'ownerName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **ach**
*/
'type'?: AchDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "bankAccountNumber",
"baseName": "bankAccountNumber",
"type": "string"
},
{
"name": "bankLocationId",
"baseName": "bankLocationId",
"type": "string"
},
{
"name": "encryptedBankAccountNumber",
"baseName": "encryptedBankAccountNumber",
"type": "string"
},
{
"name": "encryptedBankLocationId",
"baseName": "encryptedBankLocationId",
"type": "string"
},
{
"name": "ownerName",
"baseName": "ownerName",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "AchDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return AchDetails.attributeTypeMap;
}
}
export namespace AchDetails {
export enum TypeEnum {
Ach = <any> 'ach'
}
}

View File

@@ -0,0 +1,68 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalData3DSecure {
/**
* Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration.
*/
'allow3DS2'?: string;
/**
* Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** Perform 3D Secure authentication. * **false** Don\'t perform 3D Secure authentication.
*/
'executeThreeD'?: string;
/**
* In case of Secure+, this field must be set to **CUPSecurePlus**.
*/
'mpiImplementationType'?: string;
/**
* Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis**
*/
'scaExemption'?: string;
/**
* Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.
*/
'threeDSVersion'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "allow3DS2",
"baseName": "allow3DS2",
"type": "string"
},
{
"name": "executeThreeD",
"baseName": "executeThreeD",
"type": "string"
},
{
"name": "mpiImplementationType",
"baseName": "mpiImplementationType",
"type": "string"
},
{
"name": "scaExemption",
"baseName": "scaExemption",
"type": "string"
},
{
"name": "threeDSVersion",
"baseName": "threeDSVersion",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalData3DSecure.attributeTypeMap;
}
}

View File

@@ -0,0 +1,275 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataAirline {
/**
* Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6
*/
'airlineAgencyInvoiceNumber'?: string;
/**
* 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2
*/
'airlineAgencyPlanName'?: string;
/**
* [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3
*/
'airlineAirlineCode'?: string;
/**
* [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2
*/
'airlineAirlineDesignatorCode'?: string;
/**
* Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18
*/
'airlineBoardingFee'?: string;
/**
* The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4
*/
'airlineComputerizedReservationSystem'?: string;
/**
* Reference number; alphanumeric. * minLength: 0 * maxLength: 20
*/
'airlineCustomerReferenceNumber'?: string;
/**
* Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. * Format: 2-digit code * Example: Passenger ticket = 01 * minLength: 2 * maxLength: 2
*/
'airlineDocumentType'?: string;
/**
* Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16
*/
'airlineFlightDate'?: string;
/**
* [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2
*/
'airlineLegCarrierCode'?: string;
/**
* 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1
*/
'airlineLegClassOfTravel'?: string;
/**
* Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16
*/
'airlineLegDateOfTravel'?: string;
/**
* Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3
*/
'airlineLegDepartAirport'?: string;
/**
* [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12
*/
'airlineLegDepartTax'?: string;
/**
* Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3
*/
'airlineLegDestinationCode'?: string;
/**
* [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7
*/
'airlineLegFareBaseCode'?: string;
/**
* The flight identifier. * minLength: 1 * maxLength: 5
*/
'airlineLegFlightNumber'?: string;
/**
* 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1
*/
'airlineLegStopOverCode'?: string;
/**
* Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10
*/
'airlinePassengerDateOfBirth'?: string;
/**
* Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details.
*/
'airlinePassengerFirstName'?: string;
/**
* Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details.
*/
'airlinePassengerLastName'?: string;
/**
* Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30
*/
'airlinePassengerTelephoneNumber'?: string;
/**
* Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6
*/
'airlinePassengerTravellerType'?: string;
/**
* Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49
*/
'airlinePassengerName': string;
/**
* Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16
*/
'airlineTicketIssueAddress'?: string;
/**
* The ticket\'s unique identifier. * minLength: 1 * maxLength: 150
*/
'airlineTicketNumber'?: string;
/**
* IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8
*/
'airlineTravelAgencyCode'?: string;
/**
* The name of the travel agency. * minLength: 1 * maxLength: 25
*/
'airlineTravelAgencyName'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "airlineAgencyInvoiceNumber",
"baseName": "airline.agency_invoice_number",
"type": "string"
},
{
"name": "airlineAgencyPlanName",
"baseName": "airline.agency_plan_name",
"type": "string"
},
{
"name": "airlineAirlineCode",
"baseName": "airline.airline_code",
"type": "string"
},
{
"name": "airlineAirlineDesignatorCode",
"baseName": "airline.airline_designator_code",
"type": "string"
},
{
"name": "airlineBoardingFee",
"baseName": "airline.boarding_fee",
"type": "string"
},
{
"name": "airlineComputerizedReservationSystem",
"baseName": "airline.computerized_reservation_system",
"type": "string"
},
{
"name": "airlineCustomerReferenceNumber",
"baseName": "airline.customer_reference_number",
"type": "string"
},
{
"name": "airlineDocumentType",
"baseName": "airline.document_type",
"type": "string"
},
{
"name": "airlineFlightDate",
"baseName": "airline.flight_date",
"type": "string"
},
{
"name": "airlineLegCarrierCode",
"baseName": "airline.leg.carrier_code",
"type": "string"
},
{
"name": "airlineLegClassOfTravel",
"baseName": "airline.leg.class_of_travel",
"type": "string"
},
{
"name": "airlineLegDateOfTravel",
"baseName": "airline.leg.date_of_travel",
"type": "string"
},
{
"name": "airlineLegDepartAirport",
"baseName": "airline.leg.depart_airport",
"type": "string"
},
{
"name": "airlineLegDepartTax",
"baseName": "airline.leg.depart_tax",
"type": "string"
},
{
"name": "airlineLegDestinationCode",
"baseName": "airline.leg.destination_code",
"type": "string"
},
{
"name": "airlineLegFareBaseCode",
"baseName": "airline.leg.fare_base_code",
"type": "string"
},
{
"name": "airlineLegFlightNumber",
"baseName": "airline.leg.flight_number",
"type": "string"
},
{
"name": "airlineLegStopOverCode",
"baseName": "airline.leg.stop_over_code",
"type": "string"
},
{
"name": "airlinePassengerDateOfBirth",
"baseName": "airline.passenger.date_of_birth",
"type": "string"
},
{
"name": "airlinePassengerFirstName",
"baseName": "airline.passenger.first_name",
"type": "string"
},
{
"name": "airlinePassengerLastName",
"baseName": "airline.passenger.last_name",
"type": "string"
},
{
"name": "airlinePassengerTelephoneNumber",
"baseName": "airline.passenger.telephone_number",
"type": "string"
},
{
"name": "airlinePassengerTravellerType",
"baseName": "airline.passenger.traveller_type",
"type": "string"
},
{
"name": "airlinePassengerName",
"baseName": "airline.passenger_name",
"type": "string"
},
{
"name": "airlineTicketIssueAddress",
"baseName": "airline.ticket_issue_address",
"type": "string"
},
{
"name": "airlineTicketNumber",
"baseName": "airline.ticket_number",
"type": "string"
},
{
"name": "airlineTravelAgencyCode",
"baseName": "airline.travel_agency_code",
"type": "string"
},
{
"name": "airlineTravelAgencyName",
"baseName": "airline.travel_agency_name",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataAirline.attributeTypeMap;
}
}

View File

@@ -0,0 +1,230 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataCarRental {
/**
* Pick-up date. * Date format: `yyyyMMdd`
*/
'carRentalCheckOutDate'?: string;
/**
* The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17
*/
'carRentalCustomerServiceTollFreeNumber'?: string;
/**
* Number of days for which the car is being rented. * Format: Numeric * maxLength: 19
*/
'carRentalDaysRented'?: string;
/**
* Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12
*/
'carRentalFuelCharges'?: string;
/**
* Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12
*/
'carRentalInsuranceCharges'?: string;
/**
* The city from which the car is rented. * Format: Alphanumeric * maxLength: 18
*/
'carRentalLocationCity'?: string;
/**
* The country from which the car is rented. * Format: Alphanumeric * maxLength: 2
*/
'carRentalLocationCountry'?: string;
/**
* The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3
*/
'carRentalLocationStateProvince'?: string;
/**
* Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable.
*/
'carRentalNoShowIndicator'?: string;
/**
* Charge associated with not returning a vehicle to the original rental location.
*/
'carRentalOneWayDropOffCharges'?: string;
/**
* Daily rental rate. * Format: Alphanumeric * maxLength: 12
*/
'carRentalRate'?: string;
/**
* Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate.
*/
'carRentalRateIndicator'?: string;
/**
* The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9
*/
'carRentalRentalAgreementNumber'?: string;
/**
* Daily rental rate. * Format: Alphanumeric * maxLength: 12
*/
'carRentalRentalClassId'?: string;
/**
* The name of the person renting the car. * Format: Alphanumeric * maxLength: 26
*/
'carRentalRenterName'?: string;
/**
* The city where the car must be returned. * Format: Alphanumeric * maxLength: 18
*/
'carRentalReturnCity'?: string;
/**
* The country where the car must be returned. * Format: Alphanumeric * maxLength: 2
*/
'carRentalReturnCountry'?: string;
/**
* The last date to return the car by. * Date format: `yyyyMMdd`
*/
'carRentalReturnDate'?: string;
/**
* Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10
*/
'carRentalReturnLocationId'?: string;
/**
* The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3
*/
'carRentalReturnStateProvince'?: string;
/**
* Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * Y - Goods or services were tax exempt * N - Tax was not collected
*/
'carRentalTaxExemptIndicator'?: string;
/**
* Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2
*/
'travelEntertainmentAuthDataDuration'?: string;
/**
* Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1
*/
'travelEntertainmentAuthDataMarket'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "carRentalCheckOutDate",
"baseName": "carRental.checkOutDate",
"type": "string"
},
{
"name": "carRentalCustomerServiceTollFreeNumber",
"baseName": "carRental.customerServiceTollFreeNumber",
"type": "string"
},
{
"name": "carRentalDaysRented",
"baseName": "carRental.daysRented",
"type": "string"
},
{
"name": "carRentalFuelCharges",
"baseName": "carRental.fuelCharges",
"type": "string"
},
{
"name": "carRentalInsuranceCharges",
"baseName": "carRental.insuranceCharges",
"type": "string"
},
{
"name": "carRentalLocationCity",
"baseName": "carRental.locationCity",
"type": "string"
},
{
"name": "carRentalLocationCountry",
"baseName": "carRental.locationCountry",
"type": "string"
},
{
"name": "carRentalLocationStateProvince",
"baseName": "carRental.locationStateProvince",
"type": "string"
},
{
"name": "carRentalNoShowIndicator",
"baseName": "carRental.noShowIndicator",
"type": "string"
},
{
"name": "carRentalOneWayDropOffCharges",
"baseName": "carRental.oneWayDropOffCharges",
"type": "string"
},
{
"name": "carRentalRate",
"baseName": "carRental.rate",
"type": "string"
},
{
"name": "carRentalRateIndicator",
"baseName": "carRental.rateIndicator",
"type": "string"
},
{
"name": "carRentalRentalAgreementNumber",
"baseName": "carRental.rentalAgreementNumber",
"type": "string"
},
{
"name": "carRentalRentalClassId",
"baseName": "carRental.rentalClassId",
"type": "string"
},
{
"name": "carRentalRenterName",
"baseName": "carRental.renterName",
"type": "string"
},
{
"name": "carRentalReturnCity",
"baseName": "carRental.returnCity",
"type": "string"
},
{
"name": "carRentalReturnCountry",
"baseName": "carRental.returnCountry",
"type": "string"
},
{
"name": "carRentalReturnDate",
"baseName": "carRental.returnDate",
"type": "string"
},
{
"name": "carRentalReturnLocationId",
"baseName": "carRental.returnLocationId",
"type": "string"
},
{
"name": "carRentalReturnStateProvince",
"baseName": "carRental.returnStateProvince",
"type": "string"
},
{
"name": "carRentalTaxExemptIndicator",
"baseName": "carRental.taxExemptIndicator",
"type": "string"
},
{
"name": "travelEntertainmentAuthDataDuration",
"baseName": "travelEntertainmentAuthData.duration",
"type": "string"
},
{
"name": "travelEntertainmentAuthDataMarket",
"baseName": "travelEntertainmentAuthData.market",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataCarRental.attributeTypeMap;
}
}

View File

@@ -0,0 +1,155 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataCommon {
/**
* Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response.
*/
'requestedTestErrorResponseCode'?: string;
/**
* Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** flags the payment request to be handled as a pre-authorisation. * **FinalAuth** flags the payment request to be handled as a final authorisation.
*/
'authorisationType'?: string;
/**
* Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new).
*/
'customRoutingFlag'?: string;
/**
* In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed.
*/
'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum;
/**
* Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT.
*/
'networkTxReference'?: string;
/**
* Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction.
*/
'overwriteBrand'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 13 characters.
*/
'subMerchantCity'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant\'s address. * Format: alpha-numeric. * Fixed length: 3 characters.
*/
'subMerchantCountry'?: string;
/**
* This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters.
*/
'subMerchantID'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters.
*/
'subMerchantName'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters.
*/
'subMerchantPostalCode'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 3 characters.
*/
'subMerchantState'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 60 characters.
*/
'subMerchantStreet'?: string;
/**
* This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters.
*/
'subMerchantTaxId'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "requestedTestErrorResponseCode",
"baseName": "RequestedTestErrorResponseCode",
"type": "string"
},
{
"name": "authorisationType",
"baseName": "authorisationType",
"type": "string"
},
{
"name": "customRoutingFlag",
"baseName": "customRoutingFlag",
"type": "string"
},
{
"name": "industryUsage",
"baseName": "industryUsage",
"type": "AdditionalDataCommon.IndustryUsageEnum"
},
{
"name": "networkTxReference",
"baseName": "networkTxReference",
"type": "string"
},
{
"name": "overwriteBrand",
"baseName": "overwriteBrand",
"type": "string"
},
{
"name": "subMerchantCity",
"baseName": "subMerchantCity",
"type": "string"
},
{
"name": "subMerchantCountry",
"baseName": "subMerchantCountry",
"type": "string"
},
{
"name": "subMerchantID",
"baseName": "subMerchantID",
"type": "string"
},
{
"name": "subMerchantName",
"baseName": "subMerchantName",
"type": "string"
},
{
"name": "subMerchantPostalCode",
"baseName": "subMerchantPostalCode",
"type": "string"
},
{
"name": "subMerchantState",
"baseName": "subMerchantState",
"type": "string"
},
{
"name": "subMerchantStreet",
"baseName": "subMerchantStreet",
"type": "string"
},
{
"name": "subMerchantTaxId",
"baseName": "subMerchantTaxId",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataCommon.attributeTypeMap;
}
}
export namespace AdditionalDataCommon {
export enum IndustryUsageEnum {
NoShow = <any> 'NoShow',
DelayedCharge = <any> 'DelayedCharge'
}
}

View File

@@ -0,0 +1,176 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataLevel23 {
/**
* Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data.
*/
'enhancedSchemeDataCustomerReference'?: string;
/**
* Destination country code. Encoding: ASCII. Max length: 3 characters.
*/
'enhancedSchemeDataDestinationCountryCode'?: string;
/**
* The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express.
*/
'enhancedSchemeDataDestinationPostalCode'?: string;
/**
* Destination state or province code. Encoding: ASCII.Max length: 3 characters.
*/
'enhancedSchemeDataDestinationStateProvinceCode'?: string;
/**
* Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters.
*/
'enhancedSchemeDataDutyAmount'?: string;
/**
* Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters.
*/
'enhancedSchemeDataFreightAmount'?: string;
/**
* Item commodity code. Encoding: ASCII. Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string;
/**
* Item description. Encoding: ASCII. Max length: 26 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrDescription'?: string;
/**
* Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: string;
/**
* Product code. Encoding: ASCII. Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string;
/**
* Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrQuantity'?: string;
/**
* Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: string;
/**
* Item unit of measurement. Encoding: ASCII. Max length: 3 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string;
/**
* Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters.
*/
'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: string;
/**
* Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters.
*/
'enhancedSchemeDataOrderDate'?: string;
/**
* The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters.
*/
'enhancedSchemeDataShipFromPostalCode'?: string;
/**
* Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data.
*/
'enhancedSchemeDataTotalTaxAmount'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "enhancedSchemeDataCustomerReference",
"baseName": "enhancedSchemeData.customerReference",
"type": "string"
},
{
"name": "enhancedSchemeDataDestinationCountryCode",
"baseName": "enhancedSchemeData.destinationCountryCode",
"type": "string"
},
{
"name": "enhancedSchemeDataDestinationPostalCode",
"baseName": "enhancedSchemeData.destinationPostalCode",
"type": "string"
},
{
"name": "enhancedSchemeDataDestinationStateProvinceCode",
"baseName": "enhancedSchemeData.destinationStateProvinceCode",
"type": "string"
},
{
"name": "enhancedSchemeDataDutyAmount",
"baseName": "enhancedSchemeData.dutyAmount",
"type": "string"
},
{
"name": "enhancedSchemeDataFreightAmount",
"baseName": "enhancedSchemeData.freightAmount",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrDescription",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].description",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrProductCode",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrQuantity",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure",
"type": "string"
},
{
"name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice",
"baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice",
"type": "string"
},
{
"name": "enhancedSchemeDataOrderDate",
"baseName": "enhancedSchemeData.orderDate",
"type": "string"
},
{
"name": "enhancedSchemeDataShipFromPostalCode",
"baseName": "enhancedSchemeData.shipFromPostalCode",
"type": "string"
},
{
"name": "enhancedSchemeDataTotalTaxAmount",
"baseName": "enhancedSchemeData.totalTaxAmount",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataLevel23.attributeTypeMap;
}
}

View File

@@ -0,0 +1,176 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataLodging {
/**
* The arrival date. * Date format: `yyyyMMdd`
*/
'lodgingCheckInDate'?: string;
/**
* The departure date. * Date format: `yyyyMMdd`
*/
'lodgingCheckOutDate'?: string;
/**
* The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17
*/
'lodgingCustomerServiceTollFreeNumber'?: string;
/**
* Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1
*/
'lodgingFireSafetyActIndicator'?: string;
/**
* The folio cash advances. * Format: Numeric * maxLength: 12
*/
'lodgingFolioCashAdvances'?: string;
/**
* Card acceptors internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25
*/
'lodgingFolioNumber'?: string;
/**
* Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12
*/
'lodgingFoodBeverageCharges'?: string;
/**
* Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1
*/
'lodgingNoShowIndicator'?: string;
/**
* Prepaid expenses for the booking. * Format: Numeric * maxLength: 12
*/
'lodgingPrepaidExpenses'?: string;
/**
* Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17
*/
'lodgingPropertyPhoneNumber'?: string;
/**
* Total number of nights the room will be rented. * Format: Numeric * maxLength: 4
*/
'lodgingRoom1NumberOfNights'?: string;
/**
* The rate of the room. * Format: Numeric * maxLength: 12
*/
'lodgingRoom1Rate'?: string;
/**
* The total amount of tax to be paid. * Format: Numeric * maxLength: 12
*/
'lodgingRoom1Tax'?: string;
/**
* Total room tax amount. * Format: Numeric * maxLength: 12
*/
'lodgingTotalRoomTax'?: string;
/**
* Total tax amount. * Format: Numeric * maxLength: 12
*/
'lodgingTotalTax'?: string;
/**
* Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2
*/
'travelEntertainmentAuthDataDuration'?: string;
/**
* Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1
*/
'travelEntertainmentAuthDataMarket'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "lodgingCheckInDate",
"baseName": "lodging.checkInDate",
"type": "string"
},
{
"name": "lodgingCheckOutDate",
"baseName": "lodging.checkOutDate",
"type": "string"
},
{
"name": "lodgingCustomerServiceTollFreeNumber",
"baseName": "lodging.customerServiceTollFreeNumber",
"type": "string"
},
{
"name": "lodgingFireSafetyActIndicator",
"baseName": "lodging.fireSafetyActIndicator",
"type": "string"
},
{
"name": "lodgingFolioCashAdvances",
"baseName": "lodging.folioCashAdvances",
"type": "string"
},
{
"name": "lodgingFolioNumber",
"baseName": "lodging.folioNumber",
"type": "string"
},
{
"name": "lodgingFoodBeverageCharges",
"baseName": "lodging.foodBeverageCharges",
"type": "string"
},
{
"name": "lodgingNoShowIndicator",
"baseName": "lodging.noShowIndicator",
"type": "string"
},
{
"name": "lodgingPrepaidExpenses",
"baseName": "lodging.prepaidExpenses",
"type": "string"
},
{
"name": "lodgingPropertyPhoneNumber",
"baseName": "lodging.propertyPhoneNumber",
"type": "string"
},
{
"name": "lodgingRoom1NumberOfNights",
"baseName": "lodging.room1.numberOfNights",
"type": "string"
},
{
"name": "lodgingRoom1Rate",
"baseName": "lodging.room1.rate",
"type": "string"
},
{
"name": "lodgingRoom1Tax",
"baseName": "lodging.room1.tax",
"type": "string"
},
{
"name": "lodgingTotalRoomTax",
"baseName": "lodging.totalRoomTax",
"type": "string"
},
{
"name": "lodgingTotalTax",
"baseName": "lodging.totalTax",
"type": "string"
},
{
"name": "travelEntertainmentAuthDataDuration",
"baseName": "travelEntertainmentAuthData.duration",
"type": "string"
},
{
"name": "travelEntertainmentAuthDataMarket",
"baseName": "travelEntertainmentAuthData.market",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataLodging.attributeTypeMap;
}
}

View File

@@ -0,0 +1,176 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataOpenInvoice {
/**
* Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string.
*/
'openinvoicedataMerchantData'?: string;
/**
* The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1.
*/
'openinvoicedataNumberOfLines'?: string;
/**
* The three-character ISO currency code.
*/
'openinvoicedataLineItemNrCurrencyCode'?: string;
/**
* A text description of the product the invoice line refers to.
*/
'openinvoicedataLineItemNrDescription'?: string;
/**
* The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded.
*/
'openinvoicedataLineItemNrItemAmount'?: string;
/**
* A unique id for this item. Required for RatePay if the description of each item is not unique.
*/
'openinvoicedataLineItemNrItemId'?: string;
/**
* The VAT due for one item in the invoice line, represented in minor units.
*/
'openinvoicedataLineItemNrItemVatAmount'?: string;
/**
* The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900.
*/
'openinvoicedataLineItemNrItemVatPercentage'?: string;
/**
* The number of units purchased of a specific product.
*/
'openinvoicedataLineItemNrNumberOfItems'?: string;
/**
* Name of the shipping company handling the the return shipment.
*/
'openinvoicedataLineItemNrReturnShippingCompany'?: string;
/**
* The tracking number for the return of the shipment.
*/
'openinvoicedataLineItemNrReturnTrackingNumber'?: string;
/**
* URI where the customer can track the return of their shipment.
*/
'openinvoicedataLineItemNrReturnTrackingUri'?: string;
/**
* Name of the shipping company handling the delivery.
*/
'openinvoicedataLineItemNrShippingCompany'?: string;
/**
* Shipping method.
*/
'openinvoicedataLineItemNrShippingMethod'?: string;
/**
* The tracking number for the shipment.
*/
'openinvoicedataLineItemNrTrackingNumber'?: string;
/**
* URI where the customer can track their shipment.
*/
'openinvoicedataLineItemNrTrackingUri'?: string;
/**
* Required for AfterPay. The country-specific VAT category a product falls under. Allowed values: * High * Low * None.
*/
'openinvoicedataLineItemNrVatCategory'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "openinvoicedataMerchantData",
"baseName": "openinvoicedata.merchantData",
"type": "string"
},
{
"name": "openinvoicedataNumberOfLines",
"baseName": "openinvoicedata.numberOfLines",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrCurrencyCode",
"baseName": "openinvoicedataLine[itemNr].currencyCode",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrDescription",
"baseName": "openinvoicedataLine[itemNr].description",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrItemAmount",
"baseName": "openinvoicedataLine[itemNr].itemAmount",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrItemId",
"baseName": "openinvoicedataLine[itemNr].itemId",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrItemVatAmount",
"baseName": "openinvoicedataLine[itemNr].itemVatAmount",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrItemVatPercentage",
"baseName": "openinvoicedataLine[itemNr].itemVatPercentage",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrNumberOfItems",
"baseName": "openinvoicedataLine[itemNr].numberOfItems",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrReturnShippingCompany",
"baseName": "openinvoicedataLine[itemNr].returnShippingCompany",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrReturnTrackingNumber",
"baseName": "openinvoicedataLine[itemNr].returnTrackingNumber",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrReturnTrackingUri",
"baseName": "openinvoicedataLine[itemNr].returnTrackingUri",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrShippingCompany",
"baseName": "openinvoicedataLine[itemNr].shippingCompany",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrShippingMethod",
"baseName": "openinvoicedataLine[itemNr].shippingMethod",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrTrackingNumber",
"baseName": "openinvoicedataLine[itemNr].trackingNumber",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrTrackingUri",
"baseName": "openinvoicedataLine[itemNr].trackingUri",
"type": "string"
},
{
"name": "openinvoicedataLineItemNrVatCategory",
"baseName": "openinvoicedataLine[itemNr].vatCategory",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataOpenInvoice.attributeTypeMap;
}
}

View File

@@ -0,0 +1,32 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataOpi {
/**
* Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce).
*/
'opiIncludeTransToken'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "opiIncludeTransToken",
"baseName": "opi.includeTransToken",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataOpi.attributeTypeMap;
}
}

View File

@@ -0,0 +1,95 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataRatepay {
/**
* Amount the customer has to pay each month.
*/
'ratepayInstallmentAmount'?: string;
/**
* Interest rate of this installment.
*/
'ratepayInterestRate'?: string;
/**
* Amount of the last installment.
*/
'ratepayLastInstallmentAmount'?: string;
/**
* Calendar day of the first payment.
*/
'ratepayPaymentFirstday'?: string;
/**
* Date the merchant delivered the goods to the customer.
*/
'ratepaydataDeliveryDate'?: string;
/**
* Date by which the customer must settle the payment.
*/
'ratepaydataDueDate'?: string;
/**
* Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date.
*/
'ratepaydataInvoiceDate'?: string;
/**
* Identification name or number for the invoice, defined by the merchant.
*/
'ratepaydataInvoiceId'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "ratepayInstallmentAmount",
"baseName": "ratepay.installmentAmount",
"type": "string"
},
{
"name": "ratepayInterestRate",
"baseName": "ratepay.interestRate",
"type": "string"
},
{
"name": "ratepayLastInstallmentAmount",
"baseName": "ratepay.lastInstallmentAmount",
"type": "string"
},
{
"name": "ratepayPaymentFirstday",
"baseName": "ratepay.paymentFirstday",
"type": "string"
},
{
"name": "ratepaydataDeliveryDate",
"baseName": "ratepaydata.deliveryDate",
"type": "string"
},
{
"name": "ratepaydataDueDate",
"baseName": "ratepaydata.dueDate",
"type": "string"
},
{
"name": "ratepaydataInvoiceDate",
"baseName": "ratepaydata.invoiceDate",
"type": "string"
},
{
"name": "ratepaydataInvoiceId",
"baseName": "ratepaydata.invoiceId",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataRatepay.attributeTypeMap;
}
}

View File

@@ -0,0 +1,50 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataRetry {
/**
* The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.
*/
'retryChainAttemptNumber'?: string;
/**
* The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.
*/
'retryOrderAttemptNumber'?: string;
/**
* The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.
*/
'retrySkipRetry'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "retryChainAttemptNumber",
"baseName": "retry.chainAttemptNumber",
"type": "string"
},
{
"name": "retryOrderAttemptNumber",
"baseName": "retry.orderAttemptNumber",
"type": "string"
},
{
"name": "retrySkipRetry",
"baseName": "retry.skipRetry",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataRetry.attributeTypeMap;
}
}

View File

@@ -0,0 +1,203 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataRisk {
/**
* The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields).
*/
'riskdataCustomFieldName'?: string;
/**
* The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes).
*/
'riskdataBasketItemItemNrAmountPerItem'?: string;
/**
* Brand of the item.
*/
'riskdataBasketItemItemNrBrand'?: string;
/**
* Category of the item.
*/
'riskdataBasketItemItemNrCategory'?: string;
/**
* Color of the item.
*/
'riskdataBasketItemItemNrColor'?: string;
/**
* The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217).
*/
'riskdataBasketItemItemNrCurrency'?: string;
/**
* ID of the item.
*/
'riskdataBasketItemItemNrItemID'?: string;
/**
* Manufacturer of the item.
*/
'riskdataBasketItemItemNrManufacturer'?: string;
/**
* A text description of the product the invoice line refers to.
*/
'riskdataBasketItemItemNrProductTitle'?: string;
/**
* Quantity of the item purchased.
*/
'riskdataBasketItemItemNrQuantity'?: string;
/**
* Email associated with the given product in the basket (usually in electronic gift cards).
*/
'riskdataBasketItemItemNrReceiverEmail'?: string;
/**
* Size of the item.
*/
'riskdataBasketItemItemNrSize'?: string;
/**
* [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit).
*/
'riskdataBasketItemItemNrSku'?: string;
/**
* [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code).
*/
'riskdataBasketItemItemNrUpc'?: string;
/**
* Code of the promotion.
*/
'riskdataPromotionsPromotionItemNrPromotionCode'?: string;
/**
* The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes).
*/
'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string;
/**
* The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217).
*/
'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string;
/**
* Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30.
*/
'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string;
/**
* Name of the promotion.
*/
'riskdataPromotionsPromotionItemNrPromotionName'?: string;
/**
* Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account\'s default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment).
*/
'riskdataRiskProfileReference'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "riskdataCustomFieldName",
"baseName": "riskdata.[customFieldName]",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrAmountPerItem",
"baseName": "riskdata.basket.item[itemNr].amountPerItem",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrBrand",
"baseName": "riskdata.basket.item[itemNr].brand",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrCategory",
"baseName": "riskdata.basket.item[itemNr].category",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrColor",
"baseName": "riskdata.basket.item[itemNr].color",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrCurrency",
"baseName": "riskdata.basket.item[itemNr].currency",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrItemID",
"baseName": "riskdata.basket.item[itemNr].itemID",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrManufacturer",
"baseName": "riskdata.basket.item[itemNr].manufacturer",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrProductTitle",
"baseName": "riskdata.basket.item[itemNr].productTitle",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrQuantity",
"baseName": "riskdata.basket.item[itemNr].quantity",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrReceiverEmail",
"baseName": "riskdata.basket.item[itemNr].receiverEmail",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrSize",
"baseName": "riskdata.basket.item[itemNr].size",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrSku",
"baseName": "riskdata.basket.item[itemNr].sku",
"type": "string"
},
{
"name": "riskdataBasketItemItemNrUpc",
"baseName": "riskdata.basket.item[itemNr].upc",
"type": "string"
},
{
"name": "riskdataPromotionsPromotionItemNrPromotionCode",
"baseName": "riskdata.promotions.promotion[itemNr].promotionCode",
"type": "string"
},
{
"name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount",
"baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount",
"type": "string"
},
{
"name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency",
"baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency",
"type": "string"
},
{
"name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage",
"baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage",
"type": "string"
},
{
"name": "riskdataPromotionsPromotionItemNrPromotionName",
"baseName": "riskdata.promotions.promotion[itemNr].promotionName",
"type": "string"
},
{
"name": "riskdataRiskProfileReference",
"baseName": "riskdata.riskProfileReference",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataRisk.attributeTypeMap;
}
}

View File

@@ -0,0 +1,158 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataRiskStandalone {
/**
* Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes.
*/
'payPalCountryCode'?: string;
/**
* Shopper\'s email.
*/
'payPalEmailId'?: string;
/**
* Shopper\'s first name.
*/
'payPalFirstName'?: string;
/**
* Shopper\'s last name.
*/
'payPalLastName'?: string;
/**
* Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters.
*/
'payPalPayerId'?: string;
/**
* Shopper\'s phone number.
*/
'payPalPhone'?: string;
/**
* Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy.
*/
'payPalProtectionEligibility'?: string;
/**
* Unique transaction ID of the payment.
*/
'payPalTransactionId'?: string;
/**
* Raw AVS result received from the acquirer, where available. Example: D
*/
'avsResultRaw'?: string;
/**
* The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/risk-management/standalone-risk#tokenised-pan-request).
*/
'bin'?: string;
/**
* Raw CVC result received from the acquirer, where available. Example: 1
*/
'cvcResultRaw'?: string;
/**
* Unique identifier or token for the shopper\'s card details.
*/
'riskToken'?: string;
/**
* A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true
*/
'threeDAuthenticated'?: string;
/**
* A Boolean value indicating whether 3DS was offered for this payment. Example: true
*/
'threeDOffered'?: string;
/**
* Required for PayPal payments only. The only supported value is: **paypal**.
*/
'tokenDataType'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "payPalCountryCode",
"baseName": "PayPal.CountryCode",
"type": "string"
},
{
"name": "payPalEmailId",
"baseName": "PayPal.EmailId",
"type": "string"
},
{
"name": "payPalFirstName",
"baseName": "PayPal.FirstName",
"type": "string"
},
{
"name": "payPalLastName",
"baseName": "PayPal.LastName",
"type": "string"
},
{
"name": "payPalPayerId",
"baseName": "PayPal.PayerId",
"type": "string"
},
{
"name": "payPalPhone",
"baseName": "PayPal.Phone",
"type": "string"
},
{
"name": "payPalProtectionEligibility",
"baseName": "PayPal.ProtectionEligibility",
"type": "string"
},
{
"name": "payPalTransactionId",
"baseName": "PayPal.TransactionId",
"type": "string"
},
{
"name": "avsResultRaw",
"baseName": "avsResultRaw",
"type": "string"
},
{
"name": "bin",
"baseName": "bin",
"type": "string"
},
{
"name": "cvcResultRaw",
"baseName": "cvcResultRaw",
"type": "string"
},
{
"name": "riskToken",
"baseName": "riskToken",
"type": "string"
},
{
"name": "threeDAuthenticated",
"baseName": "threeDAuthenticated",
"type": "string"
},
{
"name": "threeDOffered",
"baseName": "threeDOffered",
"type": "string"
},
{
"name": "tokenDataType",
"baseName": "tokenDataType",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataRiskStandalone.attributeTypeMap;
}
}

View File

@@ -0,0 +1,185 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataSubMerchant {
/**
* Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**.
*/
'subMerchantNumberOfSubSellers'?: string;
/**
* Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters
*/
'subMerchantSubSellerSubSellerNrCity'?: string;
/**
* Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters
*/
'subMerchantSubSellerSubSellerNrCountry'?: string;
/**
* The sub-merchant\'s bank account number with the check digit number and without punctuations or dashes. * Format: Numeric * Maximum length: 12 digits
*/
'subMerchantSubSellerSubSellerNrCreditSettlementAccount'?: string;
/**
* A two-letter indicator of the type of the sub-merchant\'s bank account. Possible values: - **CC** - Checking account - **CD** - Deposit account - **PG** - Payments account - **PP** - Savings account
*/
'subMerchantSubSellerSubSellerNrCreditSettlementAccountType'?: string;
/**
* The four-digit branch code of the sub-merchant\'s bank, without the check digit, slashes, or dashes. * Format: Numeric * Fixed length: 4 digits
*/
'subMerchantSubSellerSubSellerNrCreditSettlementAgency'?: string;
/**
* The identifier of the sub-merchant\'s bank. In Brazil, this is the three-digit bank number format specified by the Central Bank of Brazil (BACEN). * Format: Numeric * Fixed length: 3 digits
*/
'subMerchantSubSellerSubSellerNrCreditSettlementBank'?: string;
/**
* The sub-merchant\'s bank account number with the check digit number and without punctuations or dashes. * Format: Numeric * Maximum length: 12 digits
*/
'subMerchantSubSellerSubSellerNrDebitSettlementAccount'?: string;
/**
* A two-letter indicator of the type of the sub-merchant\'s bank account. Possible values: - **CC** - Checking account - **CD** - Deposit account - **PG** - Payments account - **PP** - Savings account
*/
'subMerchantSubSellerSubSellerNrDebitSettlementAccountType'?: string;
/**
* The four-digit branch code of the sub-merchant\'s bank, without the check digit, slashes, or dashes. * Format: Numeric * Fixed length: 4 digits
*/
'subMerchantSubSellerSubSellerNrDebitSettlementAgency'?: string;
/**
* The identifier of the sub-merchant\'s bank. In Brazil, this is the three-digit bank number format specified by the Central Bank of Brazil (BACEN). * Format: Numeric * Fixed length: 3 digits
*/
'subMerchantSubSellerSubSellerNrDebitSettlementBank'?: string;
/**
* Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters
*/
'subMerchantSubSellerSubSellerNrId'?: string;
/**
* Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits
*/
'subMerchantSubSellerSubSellerNrMcc'?: string;
/**
* Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters
*/
'subMerchantSubSellerSubSellerNrName'?: string;
/**
* Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits
*/
'subMerchantSubSellerSubSellerNrPostalCode'?: string;
/**
* Required for transactions performed by registered payment facilitators. The state code of the sub-merchant\'s address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters
*/
'subMerchantSubSellerSubSellerNrState'?: string;
/**
* Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 60 characters
*/
'subMerchantSubSellerSubSellerNrStreet'?: string;
/**
* Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ
*/
'subMerchantSubSellerSubSellerNrTaxId'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "subMerchantNumberOfSubSellers",
"baseName": "subMerchant.numberOfSubSellers",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCity",
"baseName": "subMerchant.subSeller[subSellerNr].city",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCountry",
"baseName": "subMerchant.subSeller[subSellerNr].country",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCreditSettlementAccount",
"baseName": "subMerchant.subSeller[subSellerNr].creditSettlementAccount",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCreditSettlementAccountType",
"baseName": "subMerchant.subSeller[subSellerNr].creditSettlementAccountType",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCreditSettlementAgency",
"baseName": "subMerchant.subSeller[subSellerNr].creditSettlementAgency",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrCreditSettlementBank",
"baseName": "subMerchant.subSeller[subSellerNr].creditSettlementBank",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrDebitSettlementAccount",
"baseName": "subMerchant.subSeller[subSellerNr].debitSettlementAccount",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrDebitSettlementAccountType",
"baseName": "subMerchant.subSeller[subSellerNr].debitSettlementAccountType",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrDebitSettlementAgency",
"baseName": "subMerchant.subSeller[subSellerNr].debitSettlementAgency",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrDebitSettlementBank",
"baseName": "subMerchant.subSeller[subSellerNr].debitSettlementBank",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrId",
"baseName": "subMerchant.subSeller[subSellerNr].id",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrMcc",
"baseName": "subMerchant.subSeller[subSellerNr].mcc",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrName",
"baseName": "subMerchant.subSeller[subSellerNr].name",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrPostalCode",
"baseName": "subMerchant.subSeller[subSellerNr].postalCode",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrState",
"baseName": "subMerchant.subSeller[subSellerNr].state",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrStreet",
"baseName": "subMerchant.subSeller[subSellerNr].street",
"type": "string"
},
{
"name": "subMerchantSubSellerSubSellerNrTaxId",
"baseName": "subMerchant.subSeller[subSellerNr].taxId",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataSubMerchant.attributeTypeMap;
}
}

View File

@@ -0,0 +1,104 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataTemporaryServices {
/**
* Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25
*/
'enhancedSchemeDataCustomerReference'?: string;
/**
* Name or ID associated with the individual working in a temporary capacity. * maxLength: 40
*/
'enhancedSchemeDataEmployeeName'?: string;
/**
* Description of the job or task of the individual working in a temporary capacity. * maxLength: 40
*/
'enhancedSchemeDataJobDescription'?: string;
/**
* Amount paid per regular hours worked, minor units. * maxLength: 7
*/
'enhancedSchemeDataRegularHoursRate'?: string;
/**
* Amount of time worked during a normal operation for the task or job. * maxLength: 7
*/
'enhancedSchemeDataRegularHoursWorked'?: string;
/**
* Name of the individual requesting temporary services. * maxLength: 40
*/
'enhancedSchemeDataRequestName'?: string;
/**
* Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6
*/
'enhancedSchemeDataTempStartDate'?: string;
/**
* Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6
*/
'enhancedSchemeDataTempWeekEnding'?: string;
/**
* Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12
*/
'enhancedSchemeDataTotalTaxAmount'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "enhancedSchemeDataCustomerReference",
"baseName": "enhancedSchemeData.customerReference",
"type": "string"
},
{
"name": "enhancedSchemeDataEmployeeName",
"baseName": "enhancedSchemeData.employeeName",
"type": "string"
},
{
"name": "enhancedSchemeDataJobDescription",
"baseName": "enhancedSchemeData.jobDescription",
"type": "string"
},
{
"name": "enhancedSchemeDataRegularHoursRate",
"baseName": "enhancedSchemeData.regularHoursRate",
"type": "string"
},
{
"name": "enhancedSchemeDataRegularHoursWorked",
"baseName": "enhancedSchemeData.regularHoursWorked",
"type": "string"
},
{
"name": "enhancedSchemeDataRequestName",
"baseName": "enhancedSchemeData.requestName",
"type": "string"
},
{
"name": "enhancedSchemeDataTempStartDate",
"baseName": "enhancedSchemeData.tempStartDate",
"type": "string"
},
{
"name": "enhancedSchemeDataTempWeekEnding",
"baseName": "enhancedSchemeData.tempWeekEnding",
"type": "string"
},
{
"name": "enhancedSchemeDataTotalTaxAmount",
"baseName": "enhancedSchemeData.totalTaxAmount",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataTemporaryServices.attributeTypeMap;
}
}

View File

@@ -0,0 +1,77 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AdditionalDataWallets {
/**
* The Android Pay token retrieved from the SDK.
*/
'androidpayToken'?: string;
/**
* The Mastercard Masterpass Transaction ID retrieved from the SDK.
*/
'masterpassTransactionId'?: string;
/**
* The Apple Pay token retrieved from the SDK.
*/
'paymentToken'?: string;
/**
* The Google Pay token retrieved from the SDK.
*/
'paywithgoogleToken'?: string;
/**
* The Samsung Pay token retrieved from the SDK.
*/
'samsungpayToken'?: string;
/**
* The Visa Checkout Call ID retrieved from the SDK.
*/
'visacheckoutCallId'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "androidpayToken",
"baseName": "androidpay.token",
"type": "string"
},
{
"name": "masterpassTransactionId",
"baseName": "masterpass.transactionId",
"type": "string"
},
{
"name": "paymentToken",
"baseName": "payment.token",
"type": "string"
},
{
"name": "paywithgoogleToken",
"baseName": "paywithgoogle.token",
"type": "string"
},
{
"name": "samsungpayToken",
"baseName": "samsungpay.token",
"type": "string"
},
{
"name": "visacheckoutCallId",
"baseName": "visacheckout.callId",
"type": "string"
} ];
static getAttributeTypeMap() {
return AdditionalDataWallets.attributeTypeMap;
}
}

View File

@@ -0,0 +1,77 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Address {
/**
* The name of the city.
*/
'city': string;
/**
* The two-character country code as defined in ISO-3166-1 alpha-2. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
*/
'country': string;
/**
* The number or name of the house.
*/
'houseNumberOrName': string;
/**
* A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries.
*/
'postalCode': string;
/**
* State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
*/
'stateOrProvince'?: string;
/**
* The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.
*/
'street': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "city",
"baseName": "city",
"type": "string"
},
{
"name": "country",
"baseName": "country",
"type": "string"
},
{
"name": "houseNumberOrName",
"baseName": "houseNumberOrName",
"type": "string"
},
{
"name": "postalCode",
"baseName": "postalCode",
"type": "string"
},
{
"name": "stateOrProvince",
"baseName": "stateOrProvince",
"type": "string"
},
{
"name": "street",
"baseName": "street",
"type": "string"
} ];
static getAttributeTypeMap() {
return Address.attributeTypeMap;
}
}

View File

@@ -0,0 +1,84 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AfterpayDetails {
/**
* The address where to send the invoice.
*/
'billingAddress'?: string;
/**
* The address where the goods should be delivered.
*/
'deliveryAddress'?: string;
/**
* Shopper name, date of birth, phone number, and email address.
*/
'personalDetails'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **afterpay_default**
*/
'type': AfterpayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "billingAddress",
"baseName": "billingAddress",
"type": "string"
},
{
"name": "deliveryAddress",
"baseName": "deliveryAddress",
"type": "string"
},
{
"name": "personalDetails",
"baseName": "personalDetails",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "AfterpayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return AfterpayDetails.attributeTypeMap;
}
}
export namespace AfterpayDetails {
export enum TypeEnum {
AfterpayDefault = <any> 'afterpay_default',
Afterpaytouch = <any> 'afterpaytouch',
AfterpayB2b = <any> 'afterpay_b2b'
}
}

View File

@@ -0,0 +1,46 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AmazonPayDetails {
/**
* This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response.
*/
'amazonPayToken'?: string;
/**
* **amazonpay**
*/
'type'?: AmazonPayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amazonPayToken",
"baseName": "amazonPayToken",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "AmazonPayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return AmazonPayDetails.attributeTypeMap;
}
}
export namespace AmazonPayDetails {
export enum TypeEnum {
Amazonpay = <any> 'amazonpay'
}
}

View File

@@ -0,0 +1,41 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Amount {
/**
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
*/
'currency': string;
/**
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
*/
'value': number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "currency",
"baseName": "currency",
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "number"
} ];
static getAttributeTypeMap() {
return Amount.attributeTypeMap;
}
}

View File

@@ -0,0 +1,37 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class AndroidPayDetails {
/**
* **androidpay**
*/
'type'?: AndroidPayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "type",
"baseName": "type",
"type": "AndroidPayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return AndroidPayDetails.attributeTypeMap;
}
}
export namespace AndroidPayDetails {
export enum TypeEnum {
Androidpay = <any> 'androidpay'
}
}

View File

@@ -0,0 +1,76 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class ApplePayDetails {
/**
* The stringified and base64 encoded `paymentData` you retrieved from the Apple framework.
*/
'applePayToken': string;
/**
* The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
*/
'fundingSource'?: ApplePayDetails.FundingSourceEnum;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **applepay**
*/
'type'?: ApplePayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "applePayToken",
"baseName": "applePayToken",
"type": "string"
},
{
"name": "fundingSource",
"baseName": "fundingSource",
"type": "ApplePayDetails.FundingSourceEnum"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "ApplePayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return ApplePayDetails.attributeTypeMap;
}
}
export namespace ApplePayDetails {
export enum FundingSourceEnum {
Debit = <any> 'debit'
}
export enum TypeEnum {
Applepay = <any> 'applepay'
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CommonField } from './commonField';
import { ExternalPlatform } from './externalPlatform';
import { MerchantDevice } from './merchantDevice';
import { ShopperInteractionDevice } from './shopperInteractionDevice';
export class ApplicationInfo {
'adyenLibrary'?: CommonField;
'adyenPaymentSource'?: CommonField;
'externalPlatform'?: ExternalPlatform;
'merchantApplication'?: CommonField;
'merchantDevice'?: MerchantDevice;
'shopperInteractionDevice'?: ShopperInteractionDevice;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "adyenLibrary",
"baseName": "adyenLibrary",
"type": "CommonField"
},
{
"name": "adyenPaymentSource",
"baseName": "adyenPaymentSource",
"type": "CommonField"
},
{
"name": "externalPlatform",
"baseName": "externalPlatform",
"type": "ExternalPlatform"
},
{
"name": "merchantApplication",
"baseName": "merchantApplication",
"type": "CommonField"
},
{
"name": "merchantDevice",
"baseName": "merchantDevice",
"type": "MerchantDevice"
},
{
"name": "shopperInteractionDevice",
"baseName": "shopperInteractionDevice",
"type": "ShopperInteractionDevice"
} ];
static getAttributeTypeMap() {
return ApplicationInfo.attributeTypeMap;
}
}

View File

@@ -0,0 +1,48 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Avs {
/**
* Indicates whether the shopper is allowed to modify the billing address for the current payment request.
*/
'addressEditable'?: boolean;
/**
* Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks.
*/
'enabled'?: Avs.EnabledEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "addressEditable",
"baseName": "addressEditable",
"type": "boolean"
},
{
"name": "enabled",
"baseName": "enabled",
"type": "Avs.EnabledEnum"
} ];
static getAttributeTypeMap() {
return Avs.attributeTypeMap;
}
}
export namespace Avs {
export enum EnabledEnum {
Yes = <any> 'yes',
No = <any> 'no',
Automatic = <any> 'automatic'
}
}

View File

@@ -0,0 +1,82 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class BacsDirectDebitDetails {
/**
* The bank account number (without separators).
*/
'bankAccountNumber'?: string;
/**
* The bank routing number of the account.
*/
'bankLocationId'?: string;
/**
* The name of the bank account holder.
*/
'holderName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **directdebit_GB**
*/
'type'?: BacsDirectDebitDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "bankAccountNumber",
"baseName": "bankAccountNumber",
"type": "string"
},
{
"name": "bankLocationId",
"baseName": "bankLocationId",
"type": "string"
},
{
"name": "holderName",
"baseName": "holderName",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "BacsDirectDebitDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return BacsDirectDebitDetails.attributeTypeMap;
}
}
export namespace BacsDirectDebitDetails {
export enum TypeEnum {
DirectdebitGb = <any> 'directdebit_GB'
}
}

View File

@@ -0,0 +1,104 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class BankAccount {
/**
* The bank account number (without separators).
*/
'bankAccountNumber'?: string;
/**
* The bank city.
*/
'bankCity'?: string;
/**
* The location id of the bank. The field value is `nil` in most cases.
*/
'bankLocationId'?: string;
/**
* The name of the bank.
*/
'bankName'?: string;
/**
* The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases.
*/
'bic'?: string;
/**
* Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\').
*/
'countryCode'?: string;
/**
* The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).
*/
'iban'?: string;
/**
* The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'.
*/
'ownerName'?: string;
/**
* The bank account holder\'s tax ID.
*/
'taxId'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "bankAccountNumber",
"baseName": "bankAccountNumber",
"type": "string"
},
{
"name": "bankCity",
"baseName": "bankCity",
"type": "string"
},
{
"name": "bankLocationId",
"baseName": "bankLocationId",
"type": "string"
},
{
"name": "bankName",
"baseName": "bankName",
"type": "string"
},
{
"name": "bic",
"baseName": "bic",
"type": "string"
},
{
"name": "countryCode",
"baseName": "countryCode",
"type": "string"
},
{
"name": "iban",
"baseName": "iban",
"type": "string"
},
{
"name": "ownerName",
"baseName": "ownerName",
"type": "string"
},
{
"name": "taxId",
"baseName": "taxId",
"type": "string"
} ];
static getAttributeTypeMap() {
return BankAccount.attributeTypeMap;
}
}

View File

@@ -0,0 +1,47 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class BillDeskDetails {
/**
* The issuer id of the shopper\'s selected bank.
*/
'issuer': string;
/**
* **billdesk**
*/
'type': BillDeskDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "BillDeskDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return BillDeskDetails.attributeTypeMap;
}
}
export namespace BillDeskDetails {
export enum TypeEnum {
Online = <any> 'billdesk_online',
Wallet = <any> 'billdesk_wallet'
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class BlikDetails {
/**
* BLIK code consisting of 6 digits.
*/
'blikCode'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **blik**
*/
'type'?: BlikDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "blikCode",
"baseName": "blikCode",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "BlikDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return BlikDetails.attributeTypeMap;
}
}
export namespace BlikDetails {
export enum TypeEnum {
Blik = <any> 'blik'
}
}

View File

@@ -0,0 +1,104 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class BrowserInfo {
/**
* The accept header value of the shopper\'s browser.
*/
'acceptHeader': string;
/**
* The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth.
*/
'colorDepth': number;
/**
* Boolean value indicating if the shopper\'s browser is able to execute Java.
*/
'javaEnabled': boolean;
/**
* Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present.
*/
'javaScriptEnabled'?: boolean;
/**
* The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47).
*/
'language': string;
/**
* The total height of the shopper\'s device screen in pixels.
*/
'screenHeight': number;
/**
* The total width of the shopper\'s device screen in pixels.
*/
'screenWidth': number;
/**
* Time difference between UTC time and the shopper\'s browser local time, in minutes.
*/
'timeZoneOffset': number;
/**
* The user agent value of the shopper\'s browser.
*/
'userAgent': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "acceptHeader",
"baseName": "acceptHeader",
"type": "string"
},
{
"name": "colorDepth",
"baseName": "colorDepth",
"type": "number"
},
{
"name": "javaEnabled",
"baseName": "javaEnabled",
"type": "boolean"
},
{
"name": "javaScriptEnabled",
"baseName": "javaScriptEnabled",
"type": "boolean"
},
{
"name": "language",
"baseName": "language",
"type": "string"
},
{
"name": "screenHeight",
"baseName": "screenHeight",
"type": "number"
},
{
"name": "screenWidth",
"baseName": "screenWidth",
"type": "number"
},
{
"name": "timeZoneOffset",
"baseName": "timeZoneOffset",
"type": "number"
},
{
"name": "userAgent",
"baseName": "userAgent",
"type": "string"
} ];
static getAttributeTypeMap() {
return BrowserInfo.attributeTypeMap;
}
}

View File

@@ -0,0 +1,95 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Card {
/**
* The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 length: 3 digits * CID length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored.
*/
'cvc'?: string;
/**
* The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November
*/
'expiryMonth': string;
/**
* The card expiry year. Format: 4 digits. For example: 2020
*/
'expiryYear': string;
/**
* The name of the cardholder, as printed on the card.
*/
'holderName': string;
/**
* The issue number of the card (for some UK debit cards only).
*/
'issueNumber'?: string;
/**
* The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned.
*/
'number': string;
/**
* The month component of the start date (for some UK debit cards only).
*/
'startMonth'?: string;
/**
* The year component of the start date (for some UK debit cards only).
*/
'startYear'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "cvc",
"baseName": "cvc",
"type": "string"
},
{
"name": "expiryMonth",
"baseName": "expiryMonth",
"type": "string"
},
{
"name": "expiryYear",
"baseName": "expiryYear",
"type": "string"
},
{
"name": "holderName",
"baseName": "holderName",
"type": "string"
},
{
"name": "issueNumber",
"baseName": "issueNumber",
"type": "string"
},
{
"name": "number",
"baseName": "number",
"type": "string"
},
{
"name": "startMonth",
"baseName": "startMonth",
"type": "string"
},
{
"name": "startYear",
"baseName": "startYear",
"type": "string"
} ];
static getAttributeTypeMap() {
return Card.attributeTypeMap;
}
}

View File

@@ -0,0 +1,151 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CardDetails {
'cupsecureplusSmscode'?: string;
/**
* The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
*/
'cvc'?: string;
/**
* The encrypted card number.
*/
'encryptedCardNumber'?: string;
/**
* The encrypted card expiry month.
*/
'encryptedExpiryMonth'?: string;
/**
* The encrypted card expiry year.
*/
'encryptedExpiryYear'?: string;
/**
* The encrypted card verification code.
*/
'encryptedSecurityCode'?: string;
/**
* The card expiry month. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
*/
'expiryMonth'?: string;
/**
* The card expiry year. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
*/
'expiryYear'?: string;
/**
* The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
*/
'fundingSource'?: CardDetails.FundingSourceEnum;
/**
* The name of the card holder.
*/
'holderName'?: string;
/**
* The card number. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
*/
'number'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* Default payment method details. Common for scheme payment methods, and for simple payment method details.
*/
'type'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "cupsecureplusSmscode",
"baseName": "cupsecureplus.smscode",
"type": "string"
},
{
"name": "cvc",
"baseName": "cvc",
"type": "string"
},
{
"name": "encryptedCardNumber",
"baseName": "encryptedCardNumber",
"type": "string"
},
{
"name": "encryptedExpiryMonth",
"baseName": "encryptedExpiryMonth",
"type": "string"
},
{
"name": "encryptedExpiryYear",
"baseName": "encryptedExpiryYear",
"type": "string"
},
{
"name": "encryptedSecurityCode",
"baseName": "encryptedSecurityCode",
"type": "string"
},
{
"name": "expiryMonth",
"baseName": "expiryMonth",
"type": "string"
},
{
"name": "expiryYear",
"baseName": "expiryYear",
"type": "string"
},
{
"name": "fundingSource",
"baseName": "fundingSource",
"type": "CardDetails.FundingSourceEnum"
},
{
"name": "holderName",
"baseName": "holderName",
"type": "string"
},
{
"name": "number",
"baseName": "number",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CardDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return CardDetails.attributeTypeMap;
}
}
export namespace CardDetails {
export enum FundingSourceEnum {
Debit = <any> 'debit'
}
}

View File

@@ -0,0 +1,46 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CellulantDetails {
/**
* The Cellulant issuer.
*/
'issuer'?: string;
/**
* **Cellulant**
*/
'type'?: CellulantDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CellulantDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return CellulantDetails.attributeTypeMap;
}
}
export namespace CellulantDetails {
export enum TypeEnum {
Cellulant = <any> 'cellulant'
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutAwaitAction {
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* **await**
*/
'type': CheckoutAwaitAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutAwaitAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutAwaitAction.attributeTypeMap;
}
}
export namespace CheckoutAwaitAction {
export enum TypeEnum {
Await = <any> 'await'
}
}

View File

@@ -0,0 +1,397 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AccountInfo } from './accountInfo';
import { Address } from './address';
import { Amount } from './amount';
import { ApplicationInfo } from './applicationInfo';
import { BrowserInfo } from './browserInfo';
import { ForexQuote } from './forexQuote';
import { Installments } from './installments';
import { MerchantRiskIndicator } from './merchantRiskIndicator';
import { Name } from './name';
import { Recurring } from './recurring';
import { Split } from './split';
import { ThreeDS2RequestData } from './threeDS2RequestData';
export class CheckoutBalanceCheckRequest {
'accountInfo'?: AccountInfo;
'additionalAmount'?: Amount;
/**
* This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value.
*/
'additionalData'?: { [key: string]: string; };
'amount': Amount;
'applicationInfo'?: ApplicationInfo;
'billingAddress'?: Address;
'browserInfo'?: BrowserInfo;
/**
* The delay between the authorisation and scheduled auto-capture, specified in hours.
*/
'captureDelayHours'?: number;
/**
* The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD
*/
'dateOfBirth'?: Date;
'dccQuote'?: ForexQuote;
'deliveryAddress'?: Address;
/**
* The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00
*/
'deliveryDate'?: Date;
/**
* A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).
*/
'deviceFingerprint'?: string;
/**
* An integer value that is added to the normal fraud score. The value can be either positive or negative.
*/
'fraudOffset'?: number;
'installments'?: Installments;
/**
* The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.
*/
'mcc'?: string;
/**
* The merchant account identifier, with which you want to process the transaction.
*/
'merchantAccount': string;
/**
* This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`.
*/
'merchantOrderReference'?: string;
'merchantRiskIndicator'?: MerchantRiskIndicator;
/**
* Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value.
*/
'metadata'?: { [key: string]: string; };
/**
* When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead.
*/
'orderReference'?: string;
/**
* The collection that contains the type of the payment method and its specific information.
*/
'paymentMethod': { [key: string]: string; };
'recurring'?: Recurring;
/**
* Defines a recurring payment type. Allowed values: * `Subscription` A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount.
*/
'recurringProcessingModel'?: CheckoutBalanceCheckRequest.RecurringProcessingModelEnum;
/**
* The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters.
*/
'reference': string;
/**
* Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card.
*/
'selectedBrand'?: string;
/**
* The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.
*/
'selectedRecurringDetailReference'?: string;
/**
* A session ID used to identify a payment session.
*/
'sessionId'?: string;
/**
* The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations.
*/
'shopperEmail'?: string;
/**
* The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new).
*/
'shopperIP'?: string;
/**
* Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.
*/
'shopperInteraction'?: CheckoutBalanceCheckRequest.ShopperInteractionEnum;
/**
* The combination of a language code and a country code to specify the language to be used in the payment.
*/
'shopperLocale'?: string;
'shopperName'?: Name;
/**
* Your reference to uniquely identify this shopper (for example, user ID or account ID). Minimum length: 3 characters. > This field is required for recurring payments.
*/
'shopperReference'?: string;
/**
* The text to be shown on the shopper\'s bank statement. To enable this field, contact our [Support Team](https://support.adyen.com/hc/en-us/requests/new). We recommend sending a maximum of 25 characters, otherwise banks might truncate the string.
*/
'shopperStatement'?: string;
/**
* The shopper\'s social security number.
*/
'socialSecurityNumber'?: string;
/**
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
*/
'splits'?: Array<Split>;
/**
* The physical store, for which this payment is processed.
*/
'store'?: string;
/**
* The shopper\'s telephone number.
*/
'telephoneNumber'?: string;
'threeDS2RequestData'?: ThreeDS2RequestData;
/**
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
*/
'threeDSAuthenticationOnly'?: boolean;
/**
* The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available).
*/
'totalsGroup'?: string;
/**
* Set to true if the payment should be routed to a trusted MID.
*/
'trustedShopper'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountInfo",
"baseName": "accountInfo",
"type": "AccountInfo"
},
{
"name": "additionalAmount",
"baseName": "additionalAmount",
"type": "Amount"
},
{
"name": "additionalData",
"baseName": "additionalData",
"type": "{ [key: string]: string; }"
},
{
"name": "amount",
"baseName": "amount",
"type": "Amount"
},
{
"name": "applicationInfo",
"baseName": "applicationInfo",
"type": "ApplicationInfo"
},
{
"name": "billingAddress",
"baseName": "billingAddress",
"type": "Address"
},
{
"name": "browserInfo",
"baseName": "browserInfo",
"type": "BrowserInfo"
},
{
"name": "captureDelayHours",
"baseName": "captureDelayHours",
"type": "number"
},
{
"name": "dateOfBirth",
"baseName": "dateOfBirth",
"type": "Date"
},
{
"name": "dccQuote",
"baseName": "dccQuote",
"type": "ForexQuote"
},
{
"name": "deliveryAddress",
"baseName": "deliveryAddress",
"type": "Address"
},
{
"name": "deliveryDate",
"baseName": "deliveryDate",
"type": "Date"
},
{
"name": "deviceFingerprint",
"baseName": "deviceFingerprint",
"type": "string"
},
{
"name": "fraudOffset",
"baseName": "fraudOffset",
"type": "number"
},
{
"name": "installments",
"baseName": "installments",
"type": "Installments"
},
{
"name": "mcc",
"baseName": "mcc",
"type": "string"
},
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "merchantOrderReference",
"baseName": "merchantOrderReference",
"type": "string"
},
{
"name": "merchantRiskIndicator",
"baseName": "merchantRiskIndicator",
"type": "MerchantRiskIndicator"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "orderReference",
"baseName": "orderReference",
"type": "string"
},
{
"name": "paymentMethod",
"baseName": "paymentMethod",
"type": "{ [key: string]: string; }"
},
{
"name": "recurring",
"baseName": "recurring",
"type": "Recurring"
},
{
"name": "recurringProcessingModel",
"baseName": "recurringProcessingModel",
"type": "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "selectedBrand",
"baseName": "selectedBrand",
"type": "string"
},
{
"name": "selectedRecurringDetailReference",
"baseName": "selectedRecurringDetailReference",
"type": "string"
},
{
"name": "sessionId",
"baseName": "sessionId",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "shopperIP",
"baseName": "shopperIP",
"type": "string"
},
{
"name": "shopperInteraction",
"baseName": "shopperInteraction",
"type": "CheckoutBalanceCheckRequest.ShopperInteractionEnum"
},
{
"name": "shopperLocale",
"baseName": "shopperLocale",
"type": "string"
},
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name"
},
{
"name": "shopperReference",
"baseName": "shopperReference",
"type": "string"
},
{
"name": "shopperStatement",
"baseName": "shopperStatement",
"type": "string"
},
{
"name": "socialSecurityNumber",
"baseName": "socialSecurityNumber",
"type": "string"
},
{
"name": "splits",
"baseName": "splits",
"type": "Array<Split>"
},
{
"name": "store",
"baseName": "store",
"type": "string"
},
{
"name": "telephoneNumber",
"baseName": "telephoneNumber",
"type": "string"
},
{
"name": "threeDS2RequestData",
"baseName": "threeDS2RequestData",
"type": "ThreeDS2RequestData"
},
{
"name": "threeDSAuthenticationOnly",
"baseName": "threeDSAuthenticationOnly",
"type": "boolean"
},
{
"name": "totalsGroup",
"baseName": "totalsGroup",
"type": "string"
},
{
"name": "trustedShopper",
"baseName": "trustedShopper",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return CheckoutBalanceCheckRequest.attributeTypeMap;
}
}
export namespace CheckoutBalanceCheckRequest {
export enum RecurringProcessingModelEnum {
CardOnFile = <any> 'CardOnFile',
Subscription = <any> 'Subscription',
UnscheduledCardOnFile = <any> 'UnscheduledCardOnFile'
}
export enum ShopperInteractionEnum {
Ecommerce = <any> 'Ecommerce',
ContAuth = <any> 'ContAuth',
Moto = <any> 'Moto',
Pos = <any> 'POS'
}
}

View File

@@ -0,0 +1,87 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
import { FraudResult } from './fraudResult';
export class CheckoutBalanceCheckResponse {
/**
* Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**.
*/
'additionalData'?: { [key: string]: string; };
'balance': Amount;
'fraudResult'?: FraudResult;
/**
* Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
*/
'pspReference'?: string;
/**
* If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).
*/
'refusalReason'?: string;
/**
* The result of the cancellation request. Possible values: * **Success** Indicates that the balance check was successful. * **NotEnoughBalance** Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** Indicates that the balance check failed.
*/
'resultCode': CheckoutBalanceCheckResponse.ResultCodeEnum;
'transactionLimit'?: Amount;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "additionalData",
"baseName": "additionalData",
"type": "{ [key: string]: string; }"
},
{
"name": "balance",
"baseName": "balance",
"type": "Amount"
},
{
"name": "fraudResult",
"baseName": "fraudResult",
"type": "FraudResult"
},
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
},
{
"name": "refusalReason",
"baseName": "refusalReason",
"type": "string"
},
{
"name": "resultCode",
"baseName": "resultCode",
"type": "CheckoutBalanceCheckResponse.ResultCodeEnum"
},
{
"name": "transactionLimit",
"baseName": "transactionLimit",
"type": "Amount"
} ];
static getAttributeTypeMap() {
return CheckoutBalanceCheckResponse.attributeTypeMap;
}
}
export namespace CheckoutBalanceCheckResponse {
export enum ResultCodeEnum {
Success = <any> 'Success',
NotEnoughBalance = <any> 'NotEnoughBalance',
Failed = <any> 'Failed'
}
}

View File

@@ -0,0 +1,117 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
export class CheckoutBankTransferAction {
/**
* The name of the account holder.
*/
'beneficiary'?: string;
/**
* The BIC of the IBAN.
*/
'bic'?: string;
/**
* The url to download payment details with.
*/
'downloadUrl'?: string;
/**
* The IBAN of the bank transfer.
*/
'iban'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The transfer reference.
*/
'reference'?: string;
/**
* The e-mail of the shopper, included if an e-mail was sent to the shopper.
*/
'shopperEmail'?: string;
'totalAmount'?: Amount;
/**
* The type of the action.
*/
'type': CheckoutBankTransferAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "beneficiary",
"baseName": "beneficiary",
"type": "string"
},
{
"name": "bic",
"baseName": "bic",
"type": "string"
},
{
"name": "downloadUrl",
"baseName": "downloadUrl",
"type": "string"
},
{
"name": "iban",
"baseName": "iban",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "totalAmount",
"baseName": "totalAmount",
"type": "Amount"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutBankTransferAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutBankTransferAction.attributeTypeMap;
}
}
export namespace CheckoutBankTransferAction {
export enum TypeEnum {
BankTransfer = <any> 'bankTransfer'
}
}

View File

@@ -0,0 +1,40 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CheckoutOrder } from './checkoutOrder';
export class CheckoutCancelOrderRequest {
/**
* The merchant account identifier that orderData belongs to.
*/
'merchantAccount': string;
'order': CheckoutOrder;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "order",
"baseName": "order",
"type": "CheckoutOrder"
} ];
static getAttributeTypeMap() {
return CheckoutCancelOrderRequest.attributeTypeMap;
}
}

View File

@@ -0,0 +1,46 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutCancelOrderResponse {
/**
* A unique reference of the cancellation request.
*/
'pspReference': string;
/**
* The result of the cancellation request. Possible values: * **Received** Indicates the cancellation has successfully been received by Adyen, and will be processed.
*/
'resultCode': CheckoutCancelOrderResponse.ResultCodeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
},
{
"name": "resultCode",
"baseName": "resultCode",
"type": "CheckoutCancelOrderResponse.ResultCodeEnum"
} ];
static getAttributeTypeMap() {
return CheckoutCancelOrderResponse.attributeTypeMap;
}
}
export namespace CheckoutCancelOrderResponse {
export enum ResultCodeEnum {
Received = <any> 'Received'
}
}

View File

@@ -0,0 +1,58 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
export class CheckoutCreateOrderRequest {
'amount': Amount;
/**
* The date that order expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day.
*/
'expiresAt'?: string;
/**
* The merchant account identifier, with which you want to process the order.
*/
'merchantAccount': string;
/**
* A custom reference identifying the order.
*/
'reference': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "Amount"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "string"
},
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutCreateOrderRequest.attributeTypeMap;
}
}

View File

@@ -0,0 +1,106 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
import { FraudResult } from './fraudResult';
export class CheckoutCreateOrderResponse {
/**
* Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**.
*/
'additionalData'?: { [key: string]: string; };
/**
* The date that the order will expire.
*/
'expiresAt': string;
'fraudResult'?: FraudResult;
/**
* The encrypted data that will be used by merchant for adding payments to the order.
*/
'orderData': string;
/**
* Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.
*/
'pspReference'?: string;
/**
* The reference provided by merchant for creating the order.
*/
'reference'?: string;
/**
* If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).
*/
'refusalReason'?: string;
'remainingAmount': Amount;
/**
* The result of the order creation request. The value is always **Success**.
*/
'resultCode': CheckoutCreateOrderResponse.ResultCodeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "additionalData",
"baseName": "additionalData",
"type": "{ [key: string]: string; }"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "string"
},
{
"name": "fraudResult",
"baseName": "fraudResult",
"type": "FraudResult"
},
{
"name": "orderData",
"baseName": "orderData",
"type": "string"
},
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "refusalReason",
"baseName": "refusalReason",
"type": "string"
},
{
"name": "remainingAmount",
"baseName": "remainingAmount",
"type": "Amount"
},
{
"name": "resultCode",
"baseName": "resultCode",
"type": "CheckoutCreateOrderResponse.ResultCodeEnum"
} ];
static getAttributeTypeMap() {
return CheckoutCreateOrderResponse.attributeTypeMap;
}
}
export namespace CheckoutCreateOrderResponse {
export enum ResultCodeEnum {
Success = <any> 'Success'
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutDonationAction {
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The type of the action.
*/
'type': CheckoutDonationAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutDonationAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutDonationAction.attributeTypeMap;
}
}
export namespace CheckoutDonationAction {
export enum TypeEnum {
Donate = <any> 'donate'
}
}

View File

@@ -0,0 +1,99 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Redirect } from './redirect';
export class CheckoutOneTimePasscodeAction {
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
'redirect'?: Redirect;
/**
* The interval in second between OTP resend.
*/
'resendInterval'?: number;
/**
* The maximum number of OTP resend attempts.
*/
'resendMaxAttempts'?: number;
/**
* The URL, to which you make POST request to trigger OTP resend.
*/
'resendUrl'?: string;
/**
* The type of the action.
*/
'type': CheckoutOneTimePasscodeAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "redirect",
"baseName": "redirect",
"type": "Redirect"
},
{
"name": "resendInterval",
"baseName": "resendInterval",
"type": "number"
},
{
"name": "resendMaxAttempts",
"baseName": "resendMaxAttempts",
"type": "number"
},
{
"name": "resendUrl",
"baseName": "resendUrl",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutOneTimePasscodeAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutOneTimePasscodeAction.attributeTypeMap;
}
}
export namespace CheckoutOneTimePasscodeAction {
export enum TypeEnum {
OneTimePasscode = <any> 'oneTimePasscode'
}
}

View File

@@ -0,0 +1,41 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutOrder {
/**
* The encrypted order data.
*/
'orderData': string;
/**
* The `pspReference` that belongs to the order.
*/
'pspReference': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "orderData",
"baseName": "orderData",
"type": "string"
},
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutOrder.attributeTypeMap;
}
}

View File

@@ -0,0 +1,73 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
export class CheckoutOrderResponse {
'amount'?: Amount;
/**
* The expiry date for the order.
*/
'expiresAt'?: string;
/**
* The encrypted order data.
*/
'orderData'?: string;
/**
* The `pspReference` that belongs to the order.
*/
'pspReference': string;
/**
* The merchant reference for the order.
*/
'reference'?: string;
'remainingAmount'?: Amount;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "Amount"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "string"
},
{
"name": "orderData",
"baseName": "orderData",
"type": "string"
},
{
"name": "pspReference",
"baseName": "pspReference",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "remainingAmount",
"baseName": "remainingAmount",
"type": "Amount"
} ];
static getAttributeTypeMap() {
return CheckoutOrderResponse.attributeTypeMap;
}
}

View File

@@ -0,0 +1,73 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutQrCodeAction {
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The contents of the QR code as a UTF8 string.
*/
'qrCodeData'?: string;
/**
* **qrCode**
*/
'type': CheckoutQrCodeAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "qrCodeData",
"baseName": "qrCodeData",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutQrCodeAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutQrCodeAction.attributeTypeMap;
}
}
export namespace CheckoutQrCodeAction {
export enum TypeEnum {
QrCode = <any> 'qrCode'
}
}

View File

@@ -0,0 +1,73 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutRedirectAction {
/**
* When the redirect URL must be accessed via POST, use this data to post to the redirect URL.
*/
'data'?: { [key: string]: string; };
/**
* Specifies the HTTP method, for example GET or POST.
*/
'method'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* **redirect**
*/
'type': CheckoutRedirectAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "data",
"baseName": "data",
"type": "{ [key: string]: string; }"
},
{
"name": "method",
"baseName": "method",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutRedirectAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutRedirectAction.attributeTypeMap;
}
}
export namespace CheckoutRedirectAction {
export enum TypeEnum {
Redirect = <any> 'redirect'
}
}

View File

@@ -0,0 +1,74 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutSDKAction {
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The data to pass to the SDK.
*/
'sdkData'?: { [key: string]: string; };
/**
* The type of the action.
*/
'type': CheckoutSDKAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "sdkData",
"baseName": "sdkData",
"type": "{ [key: string]: string; }"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutSDKAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutSDKAction.attributeTypeMap;
}
}
export namespace CheckoutSDKAction {
export enum TypeEnum {
Sdk = <any> 'sdk',
WechatpaySdk = <any> 'wechatpaySDK'
}
}

View File

@@ -0,0 +1,91 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutThreeDS2Action {
/**
* A token needed to authorise a payment.
*/
'authorisationToken'?: string;
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* A subtype of the token.
*/
'subtype'?: string;
/**
* A token to pass to the 3DS2 Component to get the fingerprint.
*/
'token'?: string;
/**
* **threeDS2**
*/
'type': CheckoutThreeDS2Action.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "authorisationToken",
"baseName": "authorisationToken",
"type": "string"
},
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "subtype",
"baseName": "subtype",
"type": "string"
},
{
"name": "token",
"baseName": "token",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutThreeDS2Action.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutThreeDS2Action.attributeTypeMap;
}
}
export namespace CheckoutThreeDS2Action {
export enum TypeEnum {
ThreeDs2 = <any> 'threeDS2'
}
}

View File

@@ -0,0 +1,32 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutUtilityRequest {
/**
* The list of origin domains, for which origin keys are requested.
*/
'originDomains': Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "originDomains",
"baseName": "originDomains",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return CheckoutUtilityRequest.attributeTypeMap;
}
}

View File

@@ -0,0 +1,32 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CheckoutUtilityResponse {
/**
* The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key.
*/
'originKeys'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "originKeys",
"baseName": "originKeys",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return CheckoutUtilityResponse.attributeTypeMap;
}
}

View File

@@ -0,0 +1,201 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
export class CheckoutVoucherAction {
/**
* The voucher alternative reference code.
*/
'alternativeReference'?: string;
/**
* A collection institution number (store number) for Econtext Pay-Easy ATM.
*/
'collectionInstitutionNumber'?: string;
/**
* The URL to download the voucher.
*/
'downloadUrl'?: string;
/**
* An entity number of Multibanco.
*/
'entity'?: string;
/**
* The date time of the voucher expiry.
*/
'expiresAt'?: string;
'initialAmount'?: Amount;
/**
* The URL to the detailed instructions to make payment using the voucher.
*/
'instructionsUrl'?: string;
/**
* The issuer of the voucher.
*/
'issuer'?: string;
/**
* The shopper telephone number (partially masked).
*/
'maskedTelephoneNumber'?: string;
/**
* The merchant name.
*/
'merchantName'?: string;
/**
* The merchant reference.
*/
'merchantReference'?: string;
/**
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
*/
'paymentData'?: string;
/**
* Specifies the payment method.
*/
'paymentMethodType'?: string;
/**
* The voucher reference code.
*/
'reference'?: string;
/**
* The shopper email.
*/
'shopperEmail'?: string;
/**
* The shopper name.
*/
'shopperName'?: string;
'surcharge'?: Amount;
'totalAmount'?: Amount;
/**
* **voucher**
*/
'type': CheckoutVoucherAction.TypeEnum;
/**
* Specifies the URL to redirect to.
*/
'url'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "alternativeReference",
"baseName": "alternativeReference",
"type": "string"
},
{
"name": "collectionInstitutionNumber",
"baseName": "collectionInstitutionNumber",
"type": "string"
},
{
"name": "downloadUrl",
"baseName": "downloadUrl",
"type": "string"
},
{
"name": "entity",
"baseName": "entity",
"type": "string"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "string"
},
{
"name": "initialAmount",
"baseName": "initialAmount",
"type": "Amount"
},
{
"name": "instructionsUrl",
"baseName": "instructionsUrl",
"type": "string"
},
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "maskedTelephoneNumber",
"baseName": "maskedTelephoneNumber",
"type": "string"
},
{
"name": "merchantName",
"baseName": "merchantName",
"type": "string"
},
{
"name": "merchantReference",
"baseName": "merchantReference",
"type": "string"
},
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "paymentMethodType",
"baseName": "paymentMethodType",
"type": "string"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "shopperName",
"baseName": "shopperName",
"type": "string"
},
{
"name": "surcharge",
"baseName": "surcharge",
"type": "Amount"
},
{
"name": "totalAmount",
"baseName": "totalAmount",
"type": "Amount"
},
{
"name": "type",
"baseName": "type",
"type": "CheckoutVoucherAction.TypeEnum"
},
{
"name": "url",
"baseName": "url",
"type": "string"
} ];
static getAttributeTypeMap() {
return CheckoutVoucherAction.attributeTypeMap;
}
}
export namespace CheckoutVoucherAction {
export enum TypeEnum {
Voucher = <any> 'voucher'
}
}

View File

@@ -0,0 +1,41 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class CommonField {
/**
* Name of the field. For example, Name of External Platform.
*/
'name'?: string;
/**
* Version of the field. For example, Version of External Platform.
*/
'version'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "version",
"baseName": "version",
"type": "string"
} ];
static getAttributeTypeMap() {
return CommonField.attributeTypeMap;
}
}

View File

@@ -0,0 +1,77 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Company {
/**
* The company website\'s home page.
*/
'homepage'?: string;
/**
* The company name.
*/
'name'?: string;
/**
* Registration number of the company.
*/
'registrationNumber'?: string;
/**
* Registry location of the company.
*/
'registryLocation'?: string;
/**
* Tax ID of the company.
*/
'taxId'?: string;
/**
* The company type.
*/
'type'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "homepage",
"baseName": "homepage",
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "registrationNumber",
"baseName": "registrationNumber",
"type": "string"
},
{
"name": "registryLocation",
"baseName": "registryLocation",
"type": "string"
},
{
"name": "taxId",
"baseName": "taxId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string"
} ];
static getAttributeTypeMap() {
return Company.attributeTypeMap;
}
}

View File

@@ -0,0 +1,61 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Avs } from './avs';
import { Installments2 } from './installments2';
import { ShopperInput } from './shopperInput';
export class Configuration {
'avs'?: Avs;
/**
* Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED
*/
'cardHolderName'?: Configuration.CardHolderNameEnum;
'installments'?: Installments2;
'shopperInput'?: ShopperInput;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "avs",
"baseName": "avs",
"type": "Avs"
},
{
"name": "cardHolderName",
"baseName": "cardHolderName",
"type": "Configuration.CardHolderNameEnum"
},
{
"name": "installments",
"baseName": "installments",
"type": "Installments2"
},
{
"name": "shopperInput",
"baseName": "shopperInput",
"type": "ShopperInput"
} ];
static getAttributeTypeMap() {
return Configuration.attributeTypeMap;
}
}
export namespace Configuration {
export enum CardHolderNameEnum {
None = <any> 'NONE',
Optional = <any> 'OPTIONAL',
Required = <any> 'REQUIRED'
}
}

View File

@@ -0,0 +1,280 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Address } from './address';
import { Amount } from './amount';
import { ApplicationInfo } from './applicationInfo';
import { InstallmentOption } from './installmentOption';
import { LineItem } from './lineItem';
import { Name } from './name';
import { RiskData } from './riskData';
import { Split } from './split';
export class CreatePaymentLinkRequest {
/**
* List of payment methods to be presented to the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]`
*/
'allowedPaymentMethods'?: Array<string>;
'amount': Amount;
'applicationInfo'?: ApplicationInfo;
'billingAddress'?: Address;
/**
* List of payment methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]`
*/
'blockedPaymentMethods'?: Array<string>;
/**
* The shopper\'s two-letter country code.
*/
'countryCode'?: string;
/**
* The date and time the purchased goods should be delivered.
*/
'deliverAt'?: Date;
'deliveryAddress'?: Address;
/**
* A short description visible on the payment page. Maximum length: 280 characters.
*/
'description'?: string;
/**
* The date that the payment link expires, in ISO 8601 format. For example `2019-11-23T12:25:28Z`, or `2020-05-27T20:25:28+08:00`. Maximum expiry date should be 70 days from when the payment link is created. If not provided, the default expiry is set to 24 hours after the payment link is created.
*/
'expiresAt'?: string;
/**
* A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.
*/
'installmentOptions'?: { [key: string]: InstallmentOption; };
/**
* Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such AfterPay, Klarna, RatePay, and Zip.
*/
'lineItems'?: Array<LineItem>;
/**
* The merchant account identifier for which the payment link is created.
*/
'merchantAccount': string;
/**
* This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle.
*/
'merchantOrderReference'?: string;
/**
* Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. When exceeding, the \"178\" error occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Whatever value is present under that key is going to be replaced by the real link id
*/
'metadata'?: { [key: string]: string; };
/**
* Defines a recurring payment type. Allowed values: * `Subscription` A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount.
*/
'recurringProcessingModel'?: CreatePaymentLinkRequest.RecurringProcessingModelEnum;
/**
* A reference that is used to uniquely identify the payment in future communications about the payment status.
*/
'reference': string;
/**
* The fields that have to be filled in by the shopper before completing the payment. Possible values: * `billingAddress` The address where to send the invoice. * `deliveryAddress` The address where the purchased goods should be delivered. * `shopperEmail` The shopper\'s email address. * `shopperName` The shopper\'s full name. * `telephoneNumber` The shopper\'s phone number.
*/
'requiredShopperFields'?: Array<CreatePaymentLinkRequest.RequiredShopperFieldsEnum>;
/**
* Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL.
*/
'returnUrl'?: string;
/**
* Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only.
*/
'reusable'?: boolean;
'riskData'?: RiskData;
/**
* The shopper\'s email address.
*/
'shopperEmail'?: string;
/**
* The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/online-payments/pay-by-link#language-and-localization).
*/
'shopperLocale'?: string;
'shopperName'?: Name;
/**
* Your reference to uniquely identify this shopper (for example, user ID or account ID). Minimum length: 3 characters.
*/
'shopperReference'?: string;
/**
* An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information).
*/
'splits'?: Array<Split>;
/**
* The physical store, for which this payment is processed.
*/
'store'?: string;
/**
* When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.
*/
'storePaymentMethod'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "allowedPaymentMethods",
"baseName": "allowedPaymentMethods",
"type": "Array<string>"
},
{
"name": "amount",
"baseName": "amount",
"type": "Amount"
},
{
"name": "applicationInfo",
"baseName": "applicationInfo",
"type": "ApplicationInfo"
},
{
"name": "billingAddress",
"baseName": "billingAddress",
"type": "Address"
},
{
"name": "blockedPaymentMethods",
"baseName": "blockedPaymentMethods",
"type": "Array<string>"
},
{
"name": "countryCode",
"baseName": "countryCode",
"type": "string"
},
{
"name": "deliverAt",
"baseName": "deliverAt",
"type": "Date"
},
{
"name": "deliveryAddress",
"baseName": "deliveryAddress",
"type": "Address"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "expiresAt",
"baseName": "expiresAt",
"type": "string"
},
{
"name": "installmentOptions",
"baseName": "installmentOptions",
"type": "{ [key: string]: InstallmentOption; }"
},
{
"name": "lineItems",
"baseName": "lineItems",
"type": "Array<LineItem>"
},
{
"name": "merchantAccount",
"baseName": "merchantAccount",
"type": "string"
},
{
"name": "merchantOrderReference",
"baseName": "merchantOrderReference",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "{ [key: string]: string; }"
},
{
"name": "recurringProcessingModel",
"baseName": "recurringProcessingModel",
"type": "CreatePaymentLinkRequest.RecurringProcessingModelEnum"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "requiredShopperFields",
"baseName": "requiredShopperFields",
"type": "Array<CreatePaymentLinkRequest.RequiredShopperFieldsEnum>"
},
{
"name": "returnUrl",
"baseName": "returnUrl",
"type": "string"
},
{
"name": "reusable",
"baseName": "reusable",
"type": "boolean"
},
{
"name": "riskData",
"baseName": "riskData",
"type": "RiskData"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "shopperLocale",
"baseName": "shopperLocale",
"type": "string"
},
{
"name": "shopperName",
"baseName": "shopperName",
"type": "Name"
},
{
"name": "shopperReference",
"baseName": "shopperReference",
"type": "string"
},
{
"name": "splits",
"baseName": "splits",
"type": "Array<Split>"
},
{
"name": "store",
"baseName": "store",
"type": "string"
},
{
"name": "storePaymentMethod",
"baseName": "storePaymentMethod",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return CreatePaymentLinkRequest.attributeTypeMap;
}
}
export namespace CreatePaymentLinkRequest {
export enum RecurringProcessingModelEnum {
CardOnFile = <any> 'CardOnFile',
Subscription = <any> 'Subscription',
UnscheduledCardOnFile = <any> 'UnscheduledCardOnFile'
}
export enum RequiredShopperFieldsEnum {
BillingAddress = <any> 'billingAddress',
DeliveryAddress = <any> 'deliveryAddress',
ShopperEmail = <any> 'shopperEmail',
ShopperName = <any> 'shopperName',
TelephoneNumber = <any> 'telephoneNumber'
}
}

View File

@@ -0,0 +1,49 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { PaymentCompletionDetails } from './paymentCompletionDetails';
export class DetailsRequest {
'details': PaymentCompletionDetails;
/**
* The `paymentData` value from the `/payments` response. Required if the `/payments` response returns this value. In v67 and later, you will always get this value from the Component.
*/
'paymentData'?: string;
/**
* Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously.
*/
'threeDSAuthenticationOnly'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "details",
"baseName": "details",
"type": "PaymentCompletionDetails"
},
{
"name": "paymentData",
"baseName": "paymentData",
"type": "string"
},
{
"name": "threeDSAuthenticationOnly",
"baseName": "threeDSAuthenticationOnly",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return DetailsRequest.attributeTypeMap;
}
}

View File

@@ -0,0 +1,55 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DeviceRenderOptions {
/**
* Supported SDK interface types. Allowed values: * native * html * both
*/
'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum;
/**
* UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect
*/
'sdkUiType'?: Array<DeviceRenderOptions.SdkUiTypeEnum>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "sdkInterface",
"baseName": "sdkInterface",
"type": "DeviceRenderOptions.SdkInterfaceEnum"
},
{
"name": "sdkUiType",
"baseName": "sdkUiType",
"type": "Array<DeviceRenderOptions.SdkUiTypeEnum>"
} ];
static getAttributeTypeMap() {
return DeviceRenderOptions.attributeTypeMap;
}
}
export namespace DeviceRenderOptions {
export enum SdkInterfaceEnum {
Native = <any> 'native',
Html = <any> 'html',
Both = <any> 'both'
}
export enum SdkUiTypeEnum {
MultiSelect = <any> 'multiSelect',
OtherHtml = <any> 'otherHtml',
OutOfBand = <any> 'outOfBand',
SingleSelect = <any> 'singleSelect',
Text = <any> 'text'
}
}

View File

@@ -0,0 +1,72 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DokuDetails {
/**
* The shopper\'s first name.
*/
'firstName': string;
/**
* The shopper\'s last name.
*/
'lastName': string;
/**
* The shopper\'s email.
*/
'shopperEmail': string;
/**
* **doku**
*/
'type': DokuDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "firstName",
"baseName": "firstName",
"type": "string"
},
{
"name": "lastName",
"baseName": "lastName",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "DokuDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return DokuDetails.attributeTypeMap;
}
}
export namespace DokuDetails {
export enum TypeEnum {
MandiriVa = <any> 'doku_mandiri_va',
CimbVa = <any> 'doku_cimb_va',
DanamonVa = <any> 'doku_danamon_va',
BniVa = <any> 'doku_bni_va',
PermataLiteAtm = <any> 'doku_permata_lite_atm',
BriVa = <any> 'doku_bri_va',
BcaVa = <any> 'doku_bca_va',
Alfamart = <any> 'doku_alfamart',
Indomaret = <any> 'doku_indomaret'
}
}

View File

@@ -0,0 +1,46 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DotpayDetails {
/**
* The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it.
*/
'issuer': string;
/**
* **dotpay**
*/
'type'?: DotpayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "DotpayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return DotpayDetails.attributeTypeMap;
}
}
export namespace DotpayDetails {
export enum TypeEnum {
Dotpay = <any> 'dotpay'
}
}

View File

@@ -0,0 +1,58 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DragonpayDetails {
/**
* The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it.
*/
'issuer': string;
/**
* The shoppers email address.
*/
'shopperEmail'?: string;
/**
* **dragonpay**
*/
'type': DragonpayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "DragonpayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return DragonpayDetails.attributeTypeMap;
}
}
export namespace DragonpayDetails {
export enum TypeEnum {
Ebanking = <any> 'dragonpay_ebanking',
OtcBanking = <any> 'dragonpay_otc_banking',
OtcNonBanking = <any> 'dragonpay_otc_non_banking',
OtcPhilippines = <any> 'dragonpay_otc_philippines'
}
}

View File

@@ -0,0 +1,74 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class EcontextVoucherDetails {
/**
* The shopper\'s first name.
*/
'firstName': string;
/**
* The shopper\'s last name.
*/
'lastName': string;
/**
* The shopper\'s email.
*/
'shopperEmail': string;
/**
* The shopper\'s contact number. It must have an international number format, for example **+31 20 779 1846**. Formats like **+31 (0)20 779 1846** or **0031 20 779 1846** are not accepted.
*/
'telephoneNumber': string;
/**
* **econtextvoucher**
*/
'type': EcontextVoucherDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "firstName",
"baseName": "firstName",
"type": "string"
},
{
"name": "lastName",
"baseName": "lastName",
"type": "string"
},
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "telephoneNumber",
"baseName": "telephoneNumber",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "EcontextVoucherDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return EcontextVoucherDetails.attributeTypeMap;
}
}
export namespace EcontextVoucherDetails {
export enum TypeEnum {
Seveneleven = <any> 'econtext_seveneleven',
Stores = <any> 'econtext_stores'
}
}

View File

@@ -0,0 +1,46 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class EntercashDetails {
/**
* The issuer id of the shopper\'s selected bank.
*/
'issuer': string;
/**
* **entercash**
*/
'type': EntercashDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "EntercashDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return EntercashDetails.attributeTypeMap;
}
}
export namespace EntercashDetails {
export enum TypeEnum {
Entercash = <any> 'entercash'
}
}

View File

@@ -0,0 +1,50 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class ExternalPlatform {
/**
* External platform integrator.
*/
'integrator'?: string;
/**
* Name of the field. For example, Name of External Platform.
*/
'name'?: string;
/**
* Version of the field. For example, Version of External Platform.
*/
'version'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "integrator",
"baseName": "integrator",
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "version",
"baseName": "version",
"type": "string"
} ];
static getAttributeTypeMap() {
return ExternalPlatform.attributeTypeMap;
}
}

View File

@@ -0,0 +1,121 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Amount } from './amount';
export class ForexQuote {
/**
* The account name.
*/
'account'?: string;
/**
* The account type.
*/
'accountType'?: string;
'baseAmount'?: Amount;
/**
* The base points.
*/
'basePoints': number;
'buy'?: Amount;
'interbank'?: Amount;
/**
* The reference assigned to the forex quote request.
*/
'reference'?: string;
'sell'?: Amount;
/**
* The signature to validate the integrity.
*/
'signature'?: string;
/**
* The source of the forex quote.
*/
'source'?: string;
/**
* The type of forex.
*/
'type'?: string;
/**
* The date until which the forex quote is valid.
*/
'validTill': Date;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "account",
"baseName": "account",
"type": "string"
},
{
"name": "accountType",
"baseName": "accountType",
"type": "string"
},
{
"name": "baseAmount",
"baseName": "baseAmount",
"type": "Amount"
},
{
"name": "basePoints",
"baseName": "basePoints",
"type": "number"
},
{
"name": "buy",
"baseName": "buy",
"type": "Amount"
},
{
"name": "interbank",
"baseName": "interbank",
"type": "Amount"
},
{
"name": "reference",
"baseName": "reference",
"type": "string"
},
{
"name": "sell",
"baseName": "sell",
"type": "Amount"
},
{
"name": "signature",
"baseName": "signature",
"type": "string"
},
{
"name": "source",
"baseName": "source",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string"
},
{
"name": "validTill",
"baseName": "validTill",
"type": "Date"
} ];
static getAttributeTypeMap() {
return ForexQuote.attributeTypeMap;
}
}

View File

@@ -0,0 +1,50 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class FraudCheckResult {
/**
* The fraud score generated by the risk check.
*/
'accountScore': number;
/**
* The ID of the risk check.
*/
'checkId': number;
/**
* The name of the risk check.
*/
'name': string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountScore",
"baseName": "accountScore",
"type": "number"
},
{
"name": "checkId",
"baseName": "checkId",
"type": "number"
},
{
"name": "name",
"baseName": "name",
"type": "string"
} ];
static getAttributeTypeMap() {
return FraudCheckResult.attributeTypeMap;
}
}

View File

@@ -0,0 +1,43 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { FraudCheckResult } from './fraudCheckResult';
export class FraudResult {
/**
* The total fraud score generated by the risk checks.
*/
'accountScore': number;
/**
* The result of the individual risk checks.
*/
'results'?: Array<FraudCheckResult>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "accountScore",
"baseName": "accountScore",
"type": "number"
},
{
"name": "results",
"baseName": "results",
"type": "Array<FraudCheckResult>"
} ];
static getAttributeTypeMap() {
return FraudResult.attributeTypeMap;
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class GenericIssuerPaymentMethodDetails {
/**
* The issuer id of the shopper\'s selected bank.
*/
'issuer': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **genericissuer**
*/
'type': GenericIssuerPaymentMethodDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "GenericIssuerPaymentMethodDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return GenericIssuerPaymentMethodDetails.attributeTypeMap;
}
}
export namespace GenericIssuerPaymentMethodDetails {
export enum TypeEnum {
Eps = <any> 'eps'
}
}

View File

@@ -0,0 +1,55 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class GiropayDetails {
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **giropay**
*/
'type'?: GiropayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "GiropayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return GiropayDetails.attributeTypeMap;
}
}
export namespace GiropayDetails {
export enum TypeEnum {
Giropay = <any> 'giropay'
}
}

View File

@@ -0,0 +1,76 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class GooglePayDetails {
/**
* The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
*/
'fundingSource'?: GooglePayDetails.FundingSourceEnum;
/**
* The `token` that you obtained from the [Google Pay API](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) `PaymentData` response.
*/
'googlePayToken': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **paywithgoogle**
*/
'type'?: GooglePayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fundingSource",
"baseName": "fundingSource",
"type": "GooglePayDetails.FundingSourceEnum"
},
{
"name": "googlePayToken",
"baseName": "googlePayToken",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "GooglePayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return GooglePayDetails.attributeTypeMap;
}
}
export namespace GooglePayDetails {
export enum FundingSourceEnum {
Debit = <any> 'debit'
}
export enum TypeEnum {
Paywithgoogle = <any> 'paywithgoogle'
}
}

View File

@@ -0,0 +1,64 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class IdealDetails {
/**
* The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
*/
'issuer': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **ideal**
*/
'type'?: IdealDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "issuer",
"baseName": "issuer",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "IdealDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return IdealDetails.attributeTypeMap;
}
}
export namespace IdealDetails {
export enum TypeEnum {
Ideal = <any> 'ideal'
}
}

View File

@@ -0,0 +1,107 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Item } from './item';
import { SubInputDetail } from './subInputDetail';
export class InputDetail {
/**
* Configuration parameters for the required input.
*/
'configuration'?: { [key: string]: string; };
/**
* Input details can also be provided recursively.
*/
'details'?: Array<SubInputDetail>;
/**
* Input details can also be provided recursively (deprecated).
*/
'inputDetails'?: Array<SubInputDetail>;
/**
* In case of a select, the URL from which to query the items.
*/
'itemSearchUrl'?: string;
/**
* In case of a select, the items to choose from.
*/
'items'?: Array<Item>;
/**
* The value to provide in the result.
*/
'key'?: string;
/**
* True if this input value is optional.
*/
'optional'?: boolean;
/**
* The type of the required input.
*/
'type'?: string;
/**
* The value can be pre-filled, if available.
*/
'value'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "configuration",
"baseName": "configuration",
"type": "{ [key: string]: string; }"
},
{
"name": "details",
"baseName": "details",
"type": "Array<SubInputDetail>"
},
{
"name": "inputDetails",
"baseName": "inputDetails",
"type": "Array<SubInputDetail>"
},
{
"name": "itemSearchUrl",
"baseName": "itemSearchUrl",
"type": "string"
},
{
"name": "items",
"baseName": "items",
"type": "Array<Item>"
},
{
"name": "key",
"baseName": "key",
"type": "string"
},
{
"name": "optional",
"baseName": "optional",
"type": "boolean"
},
{
"name": "type",
"baseName": "type",
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "string"
} ];
static getAttributeTypeMap() {
return InputDetail.attributeTypeMap;
}
}

View File

@@ -0,0 +1,65 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class InstallmentOption {
/**
* The maximum number of installments offered for this payment method.
*/
'maxValue'?: number;
/**
* Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving**
*/
'plans'?: Array<InstallmentOption.PlansEnum>;
/**
* Preselected number of installments offered for this payment method.
*/
'preselectedValue'?: number;
/**
* An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`.
*/
'values'?: Array<number>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "maxValue",
"baseName": "maxValue",
"type": "number"
},
{
"name": "plans",
"baseName": "plans",
"type": "Array<InstallmentOption.PlansEnum>"
},
{
"name": "preselectedValue",
"baseName": "preselectedValue",
"type": "number"
},
{
"name": "values",
"baseName": "values",
"type": "Array<number>"
} ];
static getAttributeTypeMap() {
return InstallmentOption.attributeTypeMap;
}
}
export namespace InstallmentOption {
export enum PlansEnum {
Regular = <any> 'regular',
Revolving = <any> 'revolving'
}
}

View File

@@ -0,0 +1,47 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Installments {
/**
* Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving**
*/
'plan'?: Installments.PlanEnum;
/**
* Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.
*/
'value': number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "plan",
"baseName": "plan",
"type": "Installments.PlanEnum"
},
{
"name": "value",
"baseName": "value",
"type": "number"
} ];
static getAttributeTypeMap() {
return Installments.attributeTypeMap;
}
}
export namespace Installments {
export enum PlanEnum {
Regular = <any> 'regular',
Revolving = <any> 'revolving'
}
}

View File

@@ -0,0 +1,32 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Installments2 {
/**
* Maximum number of installments
*/
'maxNumberOfInstallments': number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "maxNumberOfInstallments",
"baseName": "maxNumberOfInstallments",
"type": "number"
} ];
static getAttributeTypeMap() {
return Installments2.attributeTypeMap;
}
}

View File

@@ -0,0 +1,41 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Item {
/**
* The value to provide in the result.
*/
'id'?: string;
/**
* The display name.
*/
'name'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string"
} ];
static getAttributeTypeMap() {
return Item.attributeTypeMap;
}
}

View File

@@ -0,0 +1,88 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class KlarnaDetails {
/**
* The address where to send the invoice.
*/
'billingAddress'?: string;
/**
* The address where the goods should be delivered.
*/
'deliveryAddress'?: string;
/**
* Shopper name, date of birth, phone number, and email address.
*/
'personalDetails'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'recurringDetailReference'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*/
'storedPaymentMethodId'?: string;
/**
* **klarna**
*/
'type': KlarnaDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "billingAddress",
"baseName": "billingAddress",
"type": "string"
},
{
"name": "deliveryAddress",
"baseName": "deliveryAddress",
"type": "string"
},
{
"name": "personalDetails",
"baseName": "personalDetails",
"type": "string"
},
{
"name": "recurringDetailReference",
"baseName": "recurringDetailReference",
"type": "string"
},
{
"name": "storedPaymentMethodId",
"baseName": "storedPaymentMethodId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "KlarnaDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return KlarnaDetails.attributeTypeMap;
}
}
export namespace KlarnaDetails {
export enum TypeEnum {
Klarna = <any> 'klarna',
Klarnapayments = <any> 'klarnapayments',
KlarnapaymentsAccount = <any> 'klarnapayments_account',
KlarnapaymentsB2b = <any> 'klarnapayments_b2b',
KlarnaPaynow = <any> 'klarna_paynow',
KlarnaAccount = <any> 'klarna_account',
KlarnaB2b = <any> 'klarna_b2b'
}
}

View File

@@ -0,0 +1,45 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class LianLianPayDetails {
'telephoneNumber': string;
/**
* **lianlianpay**
*/
'type': LianLianPayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "telephoneNumber",
"baseName": "telephoneNumber",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "LianLianPayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return LianLianPayDetails.attributeTypeMap;
}
}
export namespace LianLianPayDetails {
export enum TypeEnum {
Enterprise = <any> 'lianlianpay_ebanking_enterprise',
Credit = <any> 'lianlianpay_ebanking_credit',
Debit = <any> 'lianlianpay_ebanking_debit'
}
}

View File

@@ -0,0 +1,121 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class LineItem {
/**
* Item amount excluding the tax, in minor units.
*/
'amountExcludingTax'?: number;
/**
* Item amount including the tax, in minor units.
*/
'amountIncludingTax'?: number;
/**
* Description of the line item.
*/
'description'?: string;
/**
* ID of the line item.
*/
'id'?: string;
/**
* Link to the picture of the purchased item.
*/
'imageUrl'?: string;
/**
* Link to the purchased item.
*/
'productUrl'?: string;
/**
* Number of items.
*/
'quantity'?: number;
/**
* Tax amount, in minor units.
*/
'taxAmount'?: number;
/**
* Required for AfterPay. Tax category: High, Low, None, Zero
*/
'taxCategory'?: LineItem.TaxCategoryEnum;
/**
* Tax percentage, in minor units.
*/
'taxPercentage'?: number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amountExcludingTax",
"baseName": "amountExcludingTax",
"type": "number"
},
{
"name": "amountIncludingTax",
"baseName": "amountIncludingTax",
"type": "number"
},
{
"name": "description",
"baseName": "description",
"type": "string"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "imageUrl",
"baseName": "imageUrl",
"type": "string"
},
{
"name": "productUrl",
"baseName": "productUrl",
"type": "string"
},
{
"name": "quantity",
"baseName": "quantity",
"type": "number"
},
{
"name": "taxAmount",
"baseName": "taxAmount",
"type": "number"
},
{
"name": "taxCategory",
"baseName": "taxCategory",
"type": "LineItem.TaxCategoryEnum"
},
{
"name": "taxPercentage",
"baseName": "taxPercentage",
"type": "number"
} ];
static getAttributeTypeMap() {
return LineItem.attributeTypeMap;
}
}
export namespace LineItem {
export enum TaxCategoryEnum {
High = <any> 'High',
Low = <any> 'Low',
None = <any> 'None',
Zero = <any> 'Zero'
}
}

View File

@@ -0,0 +1,116 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class Mandate {
/**
* The billing amount of the recurring transactions.
*/
'amount': string;
/**
* The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`.
*/
'amountRule'?: Mandate.AmountRuleEnum;
/**
* The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date.
*/
'billingAttemptsRule'?: Mandate.BillingAttemptsRuleEnum;
/**
* The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`.
*/
'billingDay'?: string;
/**
* End date of the billing plan, in YYYY-MM-DD format.
*/
'endsAt': string;
/**
* The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**.
*/
'frequency': Mandate.FrequencyEnum;
/**
* The message shown by UPI to the shopper on the approval screen.
*/
'remarks'?: string;
/**
* Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date.
*/
'startsAt'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "amount",
"baseName": "amount",
"type": "string"
},
{
"name": "amountRule",
"baseName": "amountRule",
"type": "Mandate.AmountRuleEnum"
},
{
"name": "billingAttemptsRule",
"baseName": "billingAttemptsRule",
"type": "Mandate.BillingAttemptsRuleEnum"
},
{
"name": "billingDay",
"baseName": "billingDay",
"type": "string"
},
{
"name": "endsAt",
"baseName": "endsAt",
"type": "string"
},
{
"name": "frequency",
"baseName": "frequency",
"type": "Mandate.FrequencyEnum"
},
{
"name": "remarks",
"baseName": "remarks",
"type": "string"
},
{
"name": "startsAt",
"baseName": "startsAt",
"type": "string"
} ];
static getAttributeTypeMap() {
return Mandate.attributeTypeMap;
}
}
export namespace Mandate {
export enum AmountRuleEnum {
Max = <any> 'max',
Exact = <any> 'exact'
}
export enum BillingAttemptsRuleEnum {
On = <any> 'on',
Before = <any> 'before',
After = <any> 'after'
}
export enum FrequencyEnum {
Adhoc = <any> 'adhoc',
Daily = <any> 'daily',
Weekly = <any> 'weekly',
BiWeekly = <any> 'biWeekly',
Monthly = <any> 'monthly',
Quarterly = <any> 'quarterly',
HalfYearly = <any> 'halfYearly',
Yearly = <any> 'yearly'
}
}

View File

@@ -0,0 +1,58 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class MasterpassDetails {
/**
* The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.
*/
'fundingSource'?: MasterpassDetails.FundingSourceEnum;
/**
* The Masterpass transaction ID.
*/
'masterpassTransactionId': string;
/**
* **masterpass**
*/
'type'?: MasterpassDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fundingSource",
"baseName": "fundingSource",
"type": "MasterpassDetails.FundingSourceEnum"
},
{
"name": "masterpassTransactionId",
"baseName": "masterpassTransactionId",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "MasterpassDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return MasterpassDetails.attributeTypeMap;
}
}
export namespace MasterpassDetails {
export enum FundingSourceEnum {
Debit = <any> 'debit'
}
export enum TypeEnum {
Masterpass = <any> 'masterpass'
}
}

View File

@@ -0,0 +1,49 @@
/**
* Adyen Checkout API
* Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including 3D Secure), mobile wallets, and local payment methods (for example, iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/online-payments). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v67/payments ```
*
* The version of the OpenAPI document: 67
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class MbwayDetails {
'shopperEmail': string;
'telephoneNumber': string;
/**
* **mbway**
*/
'type'?: MbwayDetails.TypeEnum;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "shopperEmail",
"baseName": "shopperEmail",
"type": "string"
},
{
"name": "telephoneNumber",
"baseName": "telephoneNumber",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "MbwayDetails.TypeEnum"
} ];
static getAttributeTypeMap() {
return MbwayDetails.attributeTypeMap;
}
}
export namespace MbwayDetails {
export enum TypeEnum {
Mbway = <any> 'mbway'
}
}

Some files were not shown because too many files have changed in this diff Show More