Skip to content

Commit 219f516

Browse files
Merge branch 'develop' into fix/metadata
2 parents 45ec478 + 371d910 commit 219f516

File tree

66 files changed

+1272
-4406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1272
-4406
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"acorn": "^8.0.1",
4343
"coveralls": "3.1.1",
4444
"dotenv": "^16.0.0",
45-
"eslint": "8.21.0",
45+
"eslint": "8.22.0",
4646
"jest": "^27.0.6",
4747
"jest-ts-auto-mock": "^2.0.0",
4848
"kind-of": "^6.0.3",

src/typings/payouts/splitAmount.ts renamed to src/typings/binlookup/amount.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* The version of the OpenAPI document: v68
2+
* The version of the OpenAPI document: v52
33
* Contact: developer-experience@adyen.com
44
*
55
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8,13 +8,13 @@
88
*/
99

1010

11-
export class SplitAmount {
11+
export class Amount {
1212
/**
13-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used.
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
1414
*/
15-
'currency'?: string;
15+
'currency': string;
1616
/**
17-
* The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes).
17+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
1818
*/
1919
'value': number;
2020

@@ -33,7 +33,7 @@ export class SplitAmount {
3333
} ];
3434

3535
static getAttributeTypeMap() {
36-
return SplitAmount.attributeTypeMap;
36+
return Amount.attributeTypeMap;
3737
}
3838
}
3939

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* The version of the OpenAPI document: v68
2+
* The version of the OpenAPI document: v52
33
* Contact: developer-experience@adyen.com
44
*
55
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8,32 +8,23 @@
88
*/
99

1010

11-
export class Phone {
11+
export class BinDetail {
1212
/**
13-
* Country code. Length: 1–3 characters.
13+
* The country where the card was issued.
1414
*/
15-
'cc'?: string;
16-
/**
17-
* Subscriber number. Maximum length: 15 characters.
18-
*/
19-
'subscriber'?: string;
15+
'issuerCountry'?: string;
2016

2117
static discriminator: string | undefined = undefined;
2218

2319
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
2420
{
25-
"name": "cc",
26-
"baseName": "cc",
27-
"type": "string"
28-
},
29-
{
30-
"name": "subscriber",
31-
"baseName": "subscriber",
21+
"name": "issuerCountry",
22+
"baseName": "issuerCountry",
3223
"type": "string"
3324
} ];
3425

3526
static getAttributeTypeMap() {
36-
return Phone.attributeTypeMap;
27+
return BinDetail.attributeTypeMap;
3728
}
3829
}
3930

src/typings/binlookup/cardBin.ts

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* The version of the OpenAPI document: v52
3+
* Contact: developer-experience@adyen.com
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class CardBin {
12+
/**
13+
* The first 6 digit of the card number. Enable this field via merchant account settings.
14+
*/
15+
'bin'?: string;
16+
/**
17+
* If true, it indicates a commercial card. Enable this field via merchant account settings.
18+
*/
19+
'commercial'?: boolean;
20+
/**
21+
* The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings.
22+
*/
23+
'fundingSource'?: string;
24+
/**
25+
* Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\".
26+
*/
27+
'fundsAvailability'?: string;
28+
/**
29+
* The issuing bank of the card.
30+
*/
31+
'issuingBank'?: string;
32+
/**
33+
* The country where the card was issued from.
34+
*/
35+
'issuingCountry'?: string;
36+
/**
37+
* The currency of the card.
38+
*/
39+
'issuingCurrency'?: string;
40+
/**
41+
* The payment method associated with the card (e.g. visa, mc, or amex).
42+
*/
43+
'paymentMethod'?: string;
44+
/**
45+
* Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\".
46+
*/
47+
'payoutEligible'?: string;
48+
/**
49+
* The last four digits of the card number.
50+
*/
51+
'summary'?: string;
52+
53+
static discriminator: string | undefined = undefined;
54+
55+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
56+
{
57+
"name": "bin",
58+
"baseName": "bin",
59+
"type": "string"
60+
},
61+
{
62+
"name": "commercial",
63+
"baseName": "commercial",
64+
"type": "boolean"
65+
},
66+
{
67+
"name": "fundingSource",
68+
"baseName": "fundingSource",
69+
"type": "string"
70+
},
71+
{
72+
"name": "fundsAvailability",
73+
"baseName": "fundsAvailability",
74+
"type": "string"
75+
},
76+
{
77+
"name": "issuingBank",
78+
"baseName": "issuingBank",
79+
"type": "string"
80+
},
81+
{
82+
"name": "issuingCountry",
83+
"baseName": "issuingCountry",
84+
"type": "string"
85+
},
86+
{
87+
"name": "issuingCurrency",
88+
"baseName": "issuingCurrency",
89+
"type": "string"
90+
},
91+
{
92+
"name": "paymentMethod",
93+
"baseName": "paymentMethod",
94+
"type": "string"
95+
},
96+
{
97+
"name": "payoutEligible",
98+
"baseName": "payoutEligible",
99+
"type": "string"
100+
},
101+
{
102+
"name": "summary",
103+
"baseName": "summary",
104+
"type": "string"
105+
} ];
106+
107+
static getAttributeTypeMap() {
108+
return CardBin.attributeTypeMap;
109+
}
110+
}
111+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* The version of the OpenAPI document: v52
3+
* Contact: developer-experience@adyen.com
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
11+
export class CostEstimateAssumptions {
12+
/**
13+
* If true, the cardholder is expected to successfully authorise via 3D Secure.
14+
*/
15+
'assume3DSecureAuthenticated'?: boolean;
16+
/**
17+
* If true, the transaction is expected to have valid Level 3 data.
18+
*/
19+
'assumeLevel3Data'?: boolean;
20+
/**
21+
* If not zero, the number of installments.
22+
*/
23+
'installments'?: number;
24+
25+
static discriminator: string | undefined = undefined;
26+
27+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28+
{
29+
"name": "assume3DSecureAuthenticated",
30+
"baseName": "assume3DSecureAuthenticated",
31+
"type": "boolean"
32+
},
33+
{
34+
"name": "assumeLevel3Data",
35+
"baseName": "assumeLevel3Data",
36+
"type": "boolean"
37+
},
38+
{
39+
"name": "installments",
40+
"baseName": "installments",
41+
"type": "number"
42+
} ];
43+
44+
static getAttributeTypeMap() {
45+
return CostEstimateAssumptions.attributeTypeMap;
46+
}
47+
}
48+
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* The version of the OpenAPI document: v52
3+
* Contact: developer-experience@adyen.com
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
import { Amount } from './amount';
11+
import { CostEstimateAssumptions } from './costEstimateAssumptions';
12+
import { MerchantDetails } from './merchantDetails';
13+
import { Recurring } from './recurring';
14+
15+
export class CostEstimateRequest {
16+
'amount': Amount;
17+
'assumptions'?: CostEstimateAssumptions;
18+
/**
19+
* The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
20+
*/
21+
'cardNumber'?: string;
22+
/**
23+
* Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request.
24+
*/
25+
'encryptedCardNumber'?: string;
26+
/**
27+
* The merchant account identifier you want to process the (transaction) request with.
28+
*/
29+
'merchantAccount': string;
30+
'merchantDetails'?: MerchantDetails;
31+
'recurring'?: Recurring;
32+
/**
33+
* The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail.
34+
*/
35+
'selectedRecurringDetailReference'?: string;
36+
/**
37+
* 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 card holder 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.
38+
*/
39+
'shopperInteraction'?: CostEstimateRequest.ShopperInteractionEnum;
40+
/**
41+
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
42+
*/
43+
'shopperReference'?: string;
44+
45+
static discriminator: string | undefined = undefined;
46+
47+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
48+
{
49+
"name": "amount",
50+
"baseName": "amount",
51+
"type": "Amount"
52+
},
53+
{
54+
"name": "assumptions",
55+
"baseName": "assumptions",
56+
"type": "CostEstimateAssumptions"
57+
},
58+
{
59+
"name": "cardNumber",
60+
"baseName": "cardNumber",
61+
"type": "string"
62+
},
63+
{
64+
"name": "encryptedCardNumber",
65+
"baseName": "encryptedCardNumber",
66+
"type": "string"
67+
},
68+
{
69+
"name": "merchantAccount",
70+
"baseName": "merchantAccount",
71+
"type": "string"
72+
},
73+
{
74+
"name": "merchantDetails",
75+
"baseName": "merchantDetails",
76+
"type": "MerchantDetails"
77+
},
78+
{
79+
"name": "recurring",
80+
"baseName": "recurring",
81+
"type": "Recurring"
82+
},
83+
{
84+
"name": "selectedRecurringDetailReference",
85+
"baseName": "selectedRecurringDetailReference",
86+
"type": "string"
87+
},
88+
{
89+
"name": "shopperInteraction",
90+
"baseName": "shopperInteraction",
91+
"type": "CostEstimateRequest.ShopperInteractionEnum"
92+
},
93+
{
94+
"name": "shopperReference",
95+
"baseName": "shopperReference",
96+
"type": "string"
97+
} ];
98+
99+
static getAttributeTypeMap() {
100+
return CostEstimateRequest.attributeTypeMap;
101+
}
102+
}
103+
104+
export namespace CostEstimateRequest {
105+
export enum ShopperInteractionEnum {
106+
Ecommerce = <any> 'Ecommerce',
107+
ContAuth = <any> 'ContAuth',
108+
Moto = <any> 'Moto',
109+
Pos = <any> 'POS'
110+
}
111+
}

0 commit comments

Comments
 (0)