Skip to content

Commit 22895e2

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1373)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * Update transferRoute.ts --------- Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]> Co-authored-by: Djoyke Reijans <[email protected]>
1 parent 7fe6dc5 commit 22895e2

27 files changed

+754
-7
lines changed

src/services/paymentsApp/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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 { PaymentsAppApi } from "./paymentsAppApi";
11+
12+
import Service from "../../service";
13+
import Client from "../../client";
14+
15+
export default class PaymentsAppAPI extends Service {
16+
17+
public constructor(client: Client) {
18+
super(client);
19+
}
20+
21+
public get PaymentsAppApi() {
22+
return new PaymentsAppApi(this.client);
23+
}
24+
}
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
/*
2+
* The version of the OpenAPI document: v1
3+
*
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 getJsonResponse from "../../helpers/getJsonResponse";
11+
import Service from "../../service";
12+
import Client from "../../client";
13+
import {
14+
BoardingTokenRequest,
15+
BoardingTokenResponse,
16+
PaymentsAppResponse,
17+
ObjectSerializer
18+
} from "../../typings/paymentsApp/models";
19+
import { IRequest } from "../../typings/requestOptions";
20+
import Resource from "../resource";
21+
22+
export class PaymentsAppApi extends Service {
23+
24+
private readonly API_BASEPATH: string = "https://management-live.adyen.com/v1";
25+
private baseUrl: string;
26+
27+
public constructor(client: Client){
28+
super(client);
29+
this.baseUrl = this.createBaseUrl(this.API_BASEPATH);
30+
}
31+
32+
/**
33+
* @summary Create a boarding token - merchant level
34+
* @param merchantId {@link string } The unique identifier of the merchant account.
35+
* @param boardingTokenRequest {@link BoardingTokenRequest }
36+
* @param requestOptions {@link IRequest.Options }
37+
* @return {@link BoardingTokenResponse }
38+
*/
39+
public async generatePaymentsAppBoardingTokenForMerchant(merchantId: string, boardingTokenRequest: BoardingTokenRequest, requestOptions?: IRequest.Options): Promise<BoardingTokenResponse> {
40+
const endpoint = `${this.baseUrl}/merchants/{merchantId}/generatePaymentsAppBoardingToken`
41+
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)));
42+
const resource = new Resource(this, endpoint);
43+
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest");
44+
const response = await getJsonResponse<BoardingTokenRequest, BoardingTokenResponse>(
45+
resource,
46+
request,
47+
{ ...requestOptions, method: "POST" }
48+
);
49+
return ObjectSerializer.deserialize(response, "BoardingTokenResponse");
50+
}
51+
52+
/**
53+
* @summary Create a boarding token - store level
54+
* @param merchantId {@link string } The unique identifier of the merchant account.
55+
* @param storeId {@link string } The unique identifier of the store.
56+
* @param boardingTokenRequest {@link BoardingTokenRequest }
57+
* @param requestOptions {@link IRequest.Options }
58+
* @return {@link BoardingTokenResponse }
59+
*/
60+
public async generatePaymentsAppBoardingTokenForStore(merchantId: string, storeId: string, boardingTokenRequest: BoardingTokenRequest, requestOptions?: IRequest.Options): Promise<BoardingTokenResponse> {
61+
const endpoint = `${this.baseUrl}/merchants/{merchantId}/stores/{storeId}/generatePaymentsAppBoardingToken`
62+
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)))
63+
.replace("{" + "storeId" + "}", encodeURIComponent(String(storeId)));
64+
const resource = new Resource(this, endpoint);
65+
const request: BoardingTokenRequest = ObjectSerializer.serialize(boardingTokenRequest, "BoardingTokenRequest");
66+
const response = await getJsonResponse<BoardingTokenRequest, BoardingTokenResponse>(
67+
resource,
68+
request,
69+
{ ...requestOptions, method: "POST" }
70+
);
71+
return ObjectSerializer.deserialize(response, "BoardingTokenResponse");
72+
}
73+
74+
/**
75+
* @summary Get a list of Payments Apps - merchant level
76+
* @param merchantId {@link string } The unique identifier of the merchant account.
77+
* @param requestOptions {@link IRequest.Options }
78+
* @param statuses {@link string } The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDED** * **REVOKED**
79+
* @param limit {@link number } The number of items to return.
80+
* @param offset {@link number } The number of items to skip.
81+
* @return {@link PaymentsAppResponse }
82+
*/
83+
public async listPaymentsAppForMerchant(merchantId: string, statuses?: string, limit?: number, offset?: number, requestOptions?: IRequest.Options): Promise<PaymentsAppResponse> {
84+
const endpoint = `${this.baseUrl}/merchants/{merchantId}/paymentsApps`
85+
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)));
86+
const resource = new Resource(this, endpoint);
87+
const hasDefinedQueryParams = statuses ?? limit ?? offset;
88+
if(hasDefinedQueryParams) {
89+
if(!requestOptions) requestOptions = {};
90+
if(!requestOptions.params) requestOptions.params = {};
91+
if(statuses) requestOptions.params["statuses"] = statuses;
92+
if(limit) requestOptions.params["limit"] = limit;
93+
if(offset) requestOptions.params["offset"] = offset;
94+
}
95+
const response = await getJsonResponse<string, PaymentsAppResponse>(
96+
resource,
97+
"",
98+
{ ...requestOptions, method: "GET" }
99+
);
100+
return ObjectSerializer.deserialize(response, "PaymentsAppResponse");
101+
}
102+
103+
/**
104+
* @summary Get a list of Payments Apps - store level
105+
* @param merchantId {@link string } The unique identifier of the merchant account.
106+
* @param storeId {@link string } The unique identifier of the store.
107+
* @param requestOptions {@link IRequest.Options }
108+
* @param statuses {@link string } The status of the Payments App. Comma-separated list of one or more values. If no value is provided, the list returns all statuses. Possible values: * **BOARDED** * **REVOKED**
109+
* @param limit {@link number } The number of items to return.
110+
* @param offset {@link number } The number of items to skip.
111+
* @return {@link PaymentsAppResponse }
112+
*/
113+
public async listPaymentsAppForStore(merchantId: string, storeId: string, statuses?: string, limit?: number, offset?: number, requestOptions?: IRequest.Options): Promise<PaymentsAppResponse> {
114+
const endpoint = `${this.baseUrl}/merchants/{merchantId}/stores/{storeId}/paymentsApps`
115+
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)))
116+
.replace("{" + "storeId" + "}", encodeURIComponent(String(storeId)));
117+
const resource = new Resource(this, endpoint);
118+
const hasDefinedQueryParams = statuses ?? limit ?? offset;
119+
if(hasDefinedQueryParams) {
120+
if(!requestOptions) requestOptions = {};
121+
if(!requestOptions.params) requestOptions.params = {};
122+
if(statuses) requestOptions.params["statuses"] = statuses;
123+
if(limit) requestOptions.params["limit"] = limit;
124+
if(offset) requestOptions.params["offset"] = offset;
125+
}
126+
const response = await getJsonResponse<string, PaymentsAppResponse>(
127+
resource,
128+
"",
129+
{ ...requestOptions, method: "GET" }
130+
);
131+
return ObjectSerializer.deserialize(response, "PaymentsAppResponse");
132+
}
133+
134+
/**
135+
* @summary Revoke Payments App instance authentication
136+
* @param merchantId {@link string } The unique identifier of the merchant account.
137+
* @param installationId {@link string } The unique identifier of the Payments App instance on a device.
138+
* @param requestOptions {@link IRequest.Options }
139+
*/
140+
public async revokePaymentsApp(merchantId: string, installationId: string, requestOptions?: IRequest.Options): Promise<void> {
141+
const endpoint = `${this.baseUrl}/merchants/{merchantId}/paymentsApps/{installationId}/revoke`
142+
.replace("{" + "merchantId" + "}", encodeURIComponent(String(merchantId)))
143+
.replace("{" + "installationId" + "}", encodeURIComponent(String(installationId)));
144+
const resource = new Resource(this, endpoint);
145+
await getJsonResponse<string, void>(
146+
resource,
147+
"",
148+
{ ...requestOptions, method: "POST" }
149+
);
150+
}
151+
}

src/typings/checkout/cardDetails.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ export class CardDetails {
7575
*/
7676
'srcCorrelationId'?: string;
7777
/**
78+
* The SRC reference for the Click to Pay token.
79+
*/
80+
'srcDigitalCardId'?: string;
81+
/**
7882
* The scheme that is being used for Click to Pay.
7983
*/
8084
'srcScheme'?: string;
@@ -183,6 +187,11 @@ export class CardDetails {
183187
"baseName": "srcCorrelationId",
184188
"type": "string"
185189
},
190+
{
191+
"name": "srcDigitalCardId",
192+
"baseName": "srcDigitalCardId",
193+
"type": "string"
194+
},
186195
{
187196
"name": "srcScheme",
188197
"baseName": "srcScheme",

src/typings/checkout/cardDonations.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ export class CardDonations {
7575
*/
7676
'srcCorrelationId'?: string;
7777
/**
78+
* The SRC reference for the Click to Pay token.
79+
*/
80+
'srcDigitalCardId'?: string;
81+
/**
7882
* The scheme that is being used for Click to Pay.
7983
*/
8084
'srcScheme'?: string;
@@ -183,6 +187,11 @@ export class CardDonations {
183187
"baseName": "srcCorrelationId",
184188
"type": "string"
185189
},
190+
{
191+
"name": "srcDigitalCardId",
192+
"baseName": "srcDigitalCardId",
193+
"type": "string"
194+
},
186195
{
187196
"name": "srcScheme",
188197
"baseName": "srcScheme",

src/typings/legalEntityManagement/document.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Document {
5454
'number'?: string;
5555
'owner'?: OwnerEntity;
5656
/**
57-
* Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, or **proofOfFundingOrWealthSource**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
57+
* Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value can be **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
5858
*/
5959
'type': Document.TypeEnum;
6060

@@ -151,6 +151,7 @@ export namespace Document {
151151
LiveSelfie = 'liveSelfie',
152152
ProofOfIndustry = 'proofOfIndustry',
153153
ConstitutionalDocument = 'constitutionalDocument',
154-
ProofOfFundingOrWealthSource = 'proofOfFundingOrWealthSource'
154+
ProofOfFundingOrWealthSource = 'proofOfFundingOrWealthSource',
155+
ProofOfRelationship = 'proofOfRelationship'
155156
}
156157
}

src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export class GetTermsOfServiceDocumentRequest {
1414
*/
1515
'language': string;
1616
/**
17+
* The requested format for the Terms of Service document. Default value: JSON.
18+
*/
19+
'termsOfServiceDocumentFormat'?: string;
20+
/**
1721
* The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr**
1822
*/
1923
'type': GetTermsOfServiceDocumentRequest.TypeEnum;
@@ -26,6 +30,11 @@ export class GetTermsOfServiceDocumentRequest {
2630
"baseName": "language",
2731
"type": "string"
2832
},
33+
{
34+
"name": "termsOfServiceDocumentFormat",
35+
"baseName": "termsOfServiceDocumentFormat",
36+
"type": "string"
37+
},
2938
{
3039
"name": "type",
3140
"baseName": "type",

src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export class GetTermsOfServiceDocumentResponse {
2222
*/
2323
'language'?: string;
2424
/**
25+
* The format of the Terms of Service document.
26+
*/
27+
'termsOfServiceDocumentFormat'?: string;
28+
/**
2529
* The unique identifier of the Terms of Service document.
2630
*/
2731
'termsOfServiceDocumentId'?: string;
@@ -48,6 +52,11 @@ export class GetTermsOfServiceDocumentResponse {
4852
"baseName": "language",
4953
"type": "string"
5054
},
55+
{
56+
"name": "termsOfServiceDocumentFormat",
57+
"baseName": "termsOfServiceDocumentFormat",
58+
"type": "string"
59+
},
5160
{
5261
"name": "termsOfServiceDocumentId",
5362
"baseName": "termsOfServiceDocumentId",

src/typings/legalEntityManagement/identificationData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class IdentificationData {
3434
*/
3535
'number'?: string;
3636
/**
37-
* Type of identity data. For individuals, the `type` value is **nationalIdNumber**. For individuals in these countries, the following types are supported. - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport**
37+
* Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber
3838
*/
3939
'type': IdentificationData.TypeEnum;
4040

src/typings/legalEntityManagement/legalEntity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class LegalEntity {
6565
*/
6666
'verificationDeadlines'?: Array<VerificationDeadline>;
6767
/**
68-
* A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/onboard-users#upfront).
68+
* A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification).
6969
*/
7070
'verificationPlan'?: string;
7171

src/typings/legalEntityManagement/legalEntityAssociation.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ export class LegalEntityAssociation {
3030
*/
3131
'name'?: string;
3232
/**
33+
* The individual\'s relationship to a legal representative if the `type` is **legalRepresentative**. Possible values: **parent**, **guardian**.
34+
*/
35+
'relationship'?: string;
36+
/**
3337
* Defines the Kyc Exemption Reason for a Settlor associated with a trust. For example, **professionalServiceProvider**, **deceased**, or **contributionBelowThreshold**.
3438
*/
3539
'settlorExemptionReason'?: Array<string>;
3640
/**
37-
* Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust** Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
41+
* Defines the relationship of the legal entity to the current legal entity. Possible value for individuals: **legalRepresentative**. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **director**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. Possible value for trusts: **trust**. Possible values for trust members: **definedBeneficiary**, **protector**, **secondaryTrustee**, **settlor**, **uboThroughControl**, or **uboThroughOwnership**.
3842
*/
3943
'type': LegalEntityAssociation.TypeEnum;
4044

@@ -66,6 +70,11 @@ export class LegalEntityAssociation {
6670
"baseName": "name",
6771
"type": "string"
6872
},
73+
{
74+
"name": "relationship",
75+
"baseName": "relationship",
76+
"type": "string"
77+
},
6978
{
7079
"name": "settlorExemptionReason",
7180
"baseName": "settlorExemptionReason",
@@ -87,6 +96,7 @@ export namespace LegalEntityAssociation {
8796
DefinedBeneficiary = 'definedBeneficiary',
8897
Director = 'director',
8998
ImmediateParentCompany = 'immediateParentCompany',
99+
LegalRepresentative = 'legalRepresentative',
90100
PciSignatory = 'pciSignatory',
91101
Protector = 'protector',
92102
SecondaryTrustee = 'secondaryTrustee',

0 commit comments

Comments
 (0)