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 22, 2024
1 parent 316aec5 commit 4de4aea
Show file tree
Hide file tree
Showing 97 changed files with 624 additions and 25 deletions.
22 changes: 21 additions & 1 deletion src/services/balancePlatform/accountHoldersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
AccountHolderUpdateRequest,
GetTaxFormResponse,
PaginatedBalanceAccountsResponse,
RestServiceError,
TransactionRulesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down Expand Up @@ -94,6 +96,24 @@ export class AccountHoldersApi extends Service {
return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse");
}

/**
* @summary Get all transaction rules for an account holder
* @param id {@link string } The unique identifier of the account holder.
* @param requestOptions {@link IRequest.Options }
* @return {@link TransactionRulesResponse }
*/
public async getAllTransactionRulesForAccountHolder(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
const endpoint = `${this.baseUrl}/accountHolders/{id}/transactionRules`
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
const resource = new Resource(this, endpoint);
const response = await getJsonResponse<string, TransactionRulesResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
}

/**
* @summary Get a tax form
* @param id {@link string } The unique identifier of the account holder.
Expand All @@ -102,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
20 changes: 20 additions & 0 deletions src/services/balancePlatform/balanceAccountsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import {
BalanceSweepConfigurationsResponse,
CreateSweepConfigurationV2,
PaginatedPaymentInstrumentsResponse,
RestServiceError,
SweepConfigurationV2,
TransactionRulesResponse,
UpdateSweepConfigurationV2,
ObjectSerializer
} from "../../typings/balancePlatform/models";
Expand Down Expand Up @@ -117,6 +119,24 @@ export class BalanceAccountsApi extends Service {
return ObjectSerializer.deserialize(response, "BalanceSweepConfigurationsResponse");
}

/**
* @summary Get all transaction rules for a balance account
* @param id {@link string } The unique identifier of the balance account.
* @param requestOptions {@link IRequest.Options }
* @return {@link TransactionRulesResponse }
*/
public async getAllTransactionRulesForBalanceAccount(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
const endpoint = `${this.baseUrl}/balanceAccounts/{id}/transactionRules`
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
const resource = new Resource(this, endpoint);
const response = await getJsonResponse<string, TransactionRulesResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
}

/**
* @summary Get a balance account
* @param id {@link string } The unique identifier of the balance account.
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
20 changes: 20 additions & 0 deletions src/services/balancePlatform/platformApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import Client from "../../client";
import {
BalancePlatform,
PaginatedAccountHoldersResponse,
RestServiceError,
TransactionRulesResponse,
ObjectSerializer
} from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
Expand Down Expand Up @@ -55,6 +57,24 @@ export class PlatformApi extends Service {
return ObjectSerializer.deserialize(response, "PaginatedAccountHoldersResponse");
}

/**
* @summary Get all transaction rules for a balance platform
* @param id {@link string } The unique identifier of the balance platform.
* @param requestOptions {@link IRequest.Options }
* @return {@link TransactionRulesResponse }
*/
public async getAllTransactionRulesForBalancePlatform(id: string, requestOptions?: IRequest.Options): Promise<TransactionRulesResponse> {
const endpoint = `${this.baseUrl}/balancePlatforms/{id}/transactionRules`
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
const resource = new Resource(this, endpoint);
const response = await getJsonResponse<string, TransactionRulesResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
}

/**
* @summary Get a balance platform
* @param id {@link string } The unique identifier of the balance platform.
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
3 changes: 2 additions & 1 deletion 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 All @@ -38,7 +39,7 @@ export class PaymentsApi extends Service {
}

/**
* @summary Get the list of brands on the card
* @summary Get the brands and other details of a card
* @param cardDetailsRequest {@link CardDetailsRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link CardDetailsResponse }
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
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
Loading

0 comments on commit 4de4aea

Please sign in to comment.