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 Dec 6, 2024
1 parent 38fd8e8 commit e70dd3d
Show file tree
Hide file tree
Showing 129 changed files with 1,425 additions and 82 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,
TransactionRulesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
Expand Down Expand Up @@ -121,7 +122,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,
TransactionRulesResponse,
UpdateSweepConfigurationV2,
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,
TransactionRulesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
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
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
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
23 changes: 23 additions & 0 deletions src/services/legalEntityManagement/pCIQuestionnairesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import Client from "../../client";
import {
CalculatePciStatusRequest,
CalculatePciStatusResponse,
GeneratePciDescriptionRequest,
GeneratePciDescriptionResponse,
GetPciQuestionnaireInfosResponse,
GetPciQuestionnaireResponse,
PciSigningRequest,
PciSigningResponse,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
Expand All @@ -32,6 +35,26 @@ export class PCIQuestionnairesApi extends Service {
this.baseUrl = this.createBaseUrl(this.API_BASEPATH);
}

/**
* @summary Calculate PCI status of a legal entity
* @param id {@link string } The unique identifier of the legal entity to calculate PCI status.
* @param calculatePciStatusRequest {@link CalculatePciStatusRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link CalculatePciStatusResponse }
*/
public async calculatePciStatusOfLegalEntity(id: string, calculatePciStatusRequest: CalculatePciStatusRequest, requestOptions?: IRequest.Options): Promise<CalculatePciStatusResponse> {
const endpoint = `${this.baseUrl}/legalEntities/{id}/pciQuestionnaires/signingRequired`
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
const resource = new Resource(this, endpoint);
const request: CalculatePciStatusRequest = ObjectSerializer.serialize(calculatePciStatusRequest, "CalculatePciStatusRequest");
const response = await getJsonResponse<CalculatePciStatusRequest, CalculatePciStatusResponse>(
resource,
request,
{ ...requestOptions, method: "POST" }
);
return ObjectSerializer.deserialize(response, "CalculatePciStatusResponse");
}

/**
* @summary Generate PCI questionnaire
* @param id {@link string } The unique identifier of the legal entity to get PCI questionnaire information.
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
1 change: 1 addition & 0 deletions src/services/legalEntityManagement/termsOfServiceApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
GetTermsOfServiceAcceptanceInfosResponse,
GetTermsOfServiceDocumentRequest,
GetTermsOfServiceDocumentResponse,
ServiceError,
ObjectSerializer
} from "../../typings/legalEntityManagement/models";
import { IRequest } from "../../typings/requestOptions";
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
1 change: 1 addition & 0 deletions src/services/management/aPICredentialsCompanyLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
CreateCompanyApiCredentialRequest,
CreateCompanyApiCredentialResponse,
ListCompanyApiCredentialsResponse,
RestServiceError,
UpdateCompanyApiCredentialRequest,
ObjectSerializer
} from "../../typings/management/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/aPICredentialsMerchantLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
CreateApiCredentialResponse,
CreateMerchantApiCredentialRequest,
ListMerchantApiCredentialsResponse,
RestServiceError,
UpdateMerchantApiCredentialRequest,
ObjectSerializer
} from "../../typings/management/models";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/aPIKeyCompanyLevelApi.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 {
GenerateApiKeyResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/aPIKeyMerchantLevelApi.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 {
GenerateApiKeyResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/accountCompanyLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
Company,
ListCompanyResponse,
ListMerchantResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/accountMerchantLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
ListMerchantResponse,
Merchant,
RequestActivationResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/accountStoreLevelApi.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 {
ListStoresResponse,
RestServiceError,
Store,
StoreCreationRequest,
StoreCreationWithMerchantCodeRequest,
Expand Down
1 change: 1 addition & 0 deletions src/services/management/allowedOriginsCompanyLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
AllowedOrigin,
AllowedOriginsResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/allowedOriginsMerchantLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Client from "../../client";
import {
AllowedOrigin,
AllowedOriginsResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/androidFilesCompanyLevelApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
AndroidAppsResponse,
AndroidCertificatesResponse,
ReprocessAndroidAppResponse,
RestServiceError,
UploadAndroidAppResponse,
UploadAndroidCertificateResponse,
ObjectSerializer
Expand Down
1 change: 1 addition & 0 deletions src/services/management/clientKeyCompanyLevelApi.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 {
GenerateClientKeyResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
1 change: 1 addition & 0 deletions src/services/management/clientKeyMerchantLevelApi.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 {
GenerateClientKeyResponse,
RestServiceError,
ObjectSerializer
} from "../../typings/management/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down
Loading

0 comments on commit e70dd3d

Please sign in to comment.