Skip to content

Commit

Permalink
[reformat][adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Nov 11, 2024
1 parent fd0f0f4 commit 6453bee
Show file tree
Hide file tree
Showing 119 changed files with 983 additions and 1,587 deletions.
3 changes: 2 additions & 1 deletion src/services/balancePlatform/accountHoldersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
AccountHolderUpdateRequest,
GetTaxFormResponse,
PaginatedBalanceAccountsResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down Expand Up @@ -102,7 +103,7 @@ export class AccountHoldersApi extends Service {
* @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve
* @return {@link GetTaxFormResponse }
*/
public async getTaxForm(id: string, formType?: "US1099k" | "US1099nec", year?: number, requestOptions?: IRequest.Options): Promise<GetTaxFormResponse> {
public async getTaxForm(id: string, formType?: 'US1099k' | 'US1099nec', year?: number, requestOptions?: IRequest.Options): Promise<GetTaxFormResponse> {
const endpoint = `${this.baseUrl}/accountHolders/{id}/taxForms`
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
const resource = new Resource(this, endpoint);
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/balanceAccountsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
BalanceSweepConfigurationsResponse,
CreateSweepConfigurationV2,
PaginatedPaymentInstrumentsResponse,
RestServiceError,
SweepConfigurationV2,
UpdateSweepConfigurationV2,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/bankAccountValidationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Service from "../../service";
import Client from "../../client";
import {
BankAccountIdentificationValidationRequest,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/cardOrdersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
PaginatedGetCardOrderItemResponse,
PaginatedGetCardOrderResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/grantAccountsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Service from "../../service";
import Client from "../../client";
import {
CapitalGrantAccount,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/grantOffersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
GrantOffer,
GrantOffers,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/manageCardPINApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
PinChangeRequest,
PinChangeResponse,
PublicKeyResponse,
RestServiceError,
RevealPinRequest,
RevealPinResponse,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/manageSCADevicesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
RegisterSCAFinalResponse,
RegisterSCARequest,
RegisterSCAResponse,
RestServiceError,
SearchRegisteredDevicesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/networkTokensApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Service from "../../service";
import Client from "../../client";
import {
GetNetworkTokenResponse,
RestServiceError,
UpdateNetworkTokenRequest,
ObjectSerializer
} from "../../typings/balancePlatform/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/paymentInstrumentGroupsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
PaymentInstrumentGroup,
PaymentInstrumentGroupInfo,
RestServiceError,
TransactionRulesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/paymentInstrumentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
PaymentInstrumentRevealRequest,
PaymentInstrumentRevealResponse,
PaymentInstrumentUpdateRequest,
RestServiceError,
TransactionRulesResponse,
UpdatePaymentInstrument,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/balancePlatform/platformApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
BalancePlatform,
PaginatedAccountHoldersResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
3 changes: 2 additions & 1 deletion src/services/balancePlatform/transactionRulesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import Client from "../../client";
import {
import {
RestServiceError,
TransactionRule,
TransactionRuleInfo,
TransactionRuleResponse,
Expand Down
3 changes: 2 additions & 1 deletion src/services/balancePlatform/transferRoutesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import Client from "../../client";
import {
import {
RestServiceError,
TransferRouteRequest,
TransferRouteResponse,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/binLookupApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import getJsonResponse from "../helpers/getJsonResponse";
import Service from "../service";
import { CostEstimateRequest } from "../typings/binLookup/models";
import { CostEstimateResponse } from "../typings/binLookup/models";
import { ServiceError } from "../typings/binLookup/models";
import { ThreeDSAvailabilityRequest } from "../typings/binLookup/models";
import { ThreeDSAvailabilityResponse } from "../typings/binLookup/models";
import { IRequest } from "../typings/requestOptions";
Expand Down
72 changes: 0 additions & 72 deletions src/services/checkout/classicCheckoutSDKApi.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/services/checkout/donationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
DonationCampaignsResponse,
DonationPaymentRequest,
DonationPaymentResponse,
ServiceError,
ObjectSerializer
} from "../../typings/checkout/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
5 changes: 0 additions & 5 deletions src/services/checkout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Do not edit this class manually.
*/

import { ClassicCheckoutSDKApi } from "./classicCheckoutSDKApi";
import { DonationsApi } from "./donationsApi";
import { ModificationsApi } from "./modificationsApi";
import { OrdersApi } from "./ordersApi";
Expand All @@ -25,10 +24,6 @@ export default class CheckoutAPI extends Service {
super(client);
}

public get ClassicCheckoutSDKApi() {
return new ClassicCheckoutSDKApi(this.client);
}

public get DonationsApi() {
return new DonationsApi(this.client);
}
Expand Down
1 change: 1 addition & 0 deletions src/services/checkout/modificationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
PaymentRefundResponse,
PaymentReversalRequest,
PaymentReversalResponse,
ServiceError,
StandalonePaymentCancelRequest,
StandalonePaymentCancelResponse,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/checkout/ordersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
CancelOrderResponse,
CreateOrderRequest,
CreateOrderResponse,
ServiceError,
ObjectSerializer
} from "../../typings/checkout/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/checkout/paymentLinksApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
PaymentLinkRequest,
PaymentLinkResponse,
ServiceError,
UpdatePaymentLinkRequest,
ObjectSerializer
} from "../../typings/checkout/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/checkout/paymentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
PaymentMethodsResponse,
PaymentRequest,
PaymentResponse,
ServiceError,
SessionResultResponse,
ObjectSerializer
} from "../../typings/checkout/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/checkout/utilityApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
ApplePaySessionResponse,
PaypalUpdateOrderRequest,
PaypalUpdateOrderResponse,
ServiceError,
UtilityRequest,
UtilityResponse,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/dataProtectionApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import Client from "../client";
import getJsonResponse from "../helpers/getJsonResponse";
import Service from "../service";
import { ServiceError } from "../typings/dataProtection/models";
import { SubjectErasureByPspReferenceRequest } from "../typings/dataProtection/models";
import { SubjectErasureResponse } from "../typings/dataProtection/models";
import { IRequest } from "../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/disputesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { DefenseReasonsRequest } from "../typings/disputes/models";
import { DefenseReasonsResponse } from "../typings/disputes/models";
import { DeleteDefenseDocumentRequest } from "../typings/disputes/models";
import { DeleteDefenseDocumentResponse } from "../typings/disputes/models";
import { ServiceError } from "../typings/disputes/models";
import { SupplyDefenseDocumentRequest } from "../typings/disputes/models";
import { SupplyDefenseDocumentResponse } from "../typings/disputes/models";
import { IRequest } from "../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/businessLinesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
BusinessLine,
BusinessLineInfo,
BusinessLineInfoUpdate,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/documentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Service from "../../service";
import Client from "../../client";
import {
Document,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/hostedOnboardingApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
OnboardingLinkInfo,
OnboardingTheme,
OnboardingThemes,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/legalEntitiesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
LegalEntity,
LegalEntityInfo,
LegalEntityInfoRequiredType,
ServiceError,
VerificationErrors,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/pCIQuestionnairesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
GetPciQuestionnaireResponse,
PciSigningRequest,
PciSigningResponse,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Service from "../../service";
import Client from "../../client";
import {
CheckTaxElectronicDeliveryConsentResponse,
ServiceError,
SetTaxElectronicDeliveryConsentRequest,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
Expand Down
29 changes: 29 additions & 0 deletions src/services/legalEntityManagement/termsOfServiceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import {
AcceptTermsOfServiceRequest,
AcceptTermsOfServiceResponse,
CalculateTermsOfServiceStatusResponse,
GetAcceptedTermsOfServiceDocumentResponse,
GetTermsOfServiceAcceptanceInfosResponse,
GetTermsOfServiceDocumentRequest,
GetTermsOfServiceDocumentResponse,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down Expand Up @@ -54,6 +56,33 @@ export class TermsOfServiceApi extends Service {
return ObjectSerializer.deserialize(response, "AcceptTermsOfServiceResponse");
}

/**
* @summary Get accepted Terms of Service document
* @param id {@link string } The unique identifier of the legal entity. For sole proprietorship, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization.
* @param termsofserviceacceptancereference {@link string } An Adyen-generated reference for the accepted Terms of Service.
* @param requestOptions {@link IRequest.Options }
* @param termsOfServiceDocumentFormat {@link string } The format of the Terms of Service document. Possible values: **JSON**, **PDF**, or **TXT**
* @return {@link GetAcceptedTermsOfServiceDocumentResponse }
*/
public async getAcceptedTermsOfServiceDocument(id: string, termsofserviceacceptancereference: string, termsOfServiceDocumentFormat?: string, requestOptions?: IRequest.Options): Promise<GetAcceptedTermsOfServiceDocumentResponse> {
const endpoint = `${this.baseUrl}/legalEntities/{id}/acceptedTermsOfServiceDocument/{termsofserviceacceptancereference}`
.replace("{" + "id" + "}", encodeURIComponent(String(id)))
.replace("{" + "termsofserviceacceptancereference" + "}", encodeURIComponent(String(termsofserviceacceptancereference)));
const resource = new Resource(this, endpoint);
const hasDefinedQueryParams = termsOfServiceDocumentFormat;
if(hasDefinedQueryParams) {
if(!requestOptions) requestOptions = {};
if(!requestOptions.params) requestOptions.params = {};
if(termsOfServiceDocumentFormat) requestOptions.params["termsOfServiceDocumentFormat"] = termsOfServiceDocumentFormat;
}
const response = await getJsonResponse<string, GetAcceptedTermsOfServiceDocumentResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "GetAcceptedTermsOfServiceDocumentResponse");
}

/**
* @summary Get Terms of Service document
* @param id {@link string } The unique identifier of the legal entity. For sole proprietorships, this is the individual legal entity ID of the owner. For organizations, this is the ID of the organization.
Expand Down
3 changes: 2 additions & 1 deletion src/services/legalEntityManagement/transferInstrumentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import Client from "../../client";
import {
import {
ServiceError,
TransferInstrument,
TransferInstrumentInfo,
ObjectSerializer
Expand Down
Loading

0 comments on commit 6453bee

Please sign in to comment.