Skip to content

Commit

Permalink
Merge pull request #1423 from Adyen/sdk-automation/models
Browse files Browse the repository at this point in the history
Update all services
  • Loading branch information
gcatanese authored Oct 24, 2024
2 parents b9e0df2 + f55e06f commit 112be8b
Show file tree
Hide file tree
Showing 71 changed files with 252 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/checkout/classicCheckoutSDKApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class ClassicCheckoutSDKApi extends Service {
* @param paymentSetupRequest {@link PaymentSetupRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentSetupResponse }
*
* @deprecated since Adyen Checkout API v37
*/
public async paymentSession(paymentSetupRequest: PaymentSetupRequest, requestOptions?: IRequest.Options): Promise<PaymentSetupResponse> {
const endpoint = `${this.baseUrl}/paymentSession`;
Expand All @@ -53,6 +55,8 @@ export class ClassicCheckoutSDKApi extends Service {
* @param paymentVerificationRequest {@link PaymentVerificationRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link PaymentVerificationResponse }
*
* @deprecated since Adyen Checkout API v37
*/
public async verifyPaymentResult(paymentVerificationRequest: PaymentVerificationRequest, requestOptions?: IRequest.Options): Promise<PaymentVerificationResponse> {
const endpoint = `${this.baseUrl}/payments/result`;
Expand Down
2 changes: 2 additions & 0 deletions src/services/checkout/utilityApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class UtilityApi extends Service {
* @param utilityRequest {@link UtilityRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link UtilityResponse }
*
* @deprecated since Adyen Checkout API v67
*/
public async originKeys(utilityRequest: UtilityRequest, requestOptions?: IRequest.Options): Promise<UtilityResponse> {
const endpoint = `${this.baseUrl}/originKeys`;
Expand Down
2 changes: 2 additions & 0 deletions src/services/paymentApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ export class PaymentAPI extends Service {
* @param donationRequest {@link DonationRequest }
* @param requestOptions {@link IRequest.Options }
* @return {@link ModificationResult }
*
* @deprecated
*/
public async donate(donationRequest: DonationRequest, requestOptions?: IRequest.Options): Promise<ModificationResult> {
const endpoint = `${this.baseUrl}/donate`;
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/accountHolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export class AccountHolder {
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
*/
'capabilities'?: { [key: string]: AccountHolderCapability; };
/**
* @deprecated
*/
'contactDetails'?: ContactDetails;
/**
* Your description for the account holder.
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/accountHolderInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class AccountHolderInfo {
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
*/
'capabilities'?: { [key: string]: AccountHolderCapability; };
/**
* @deprecated
*/
'contactDetails'?: ContactDetails;
/**
* Your description for the account holder.
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/accountHolderUpdateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export class AccountHolderUpdateRequest {
* Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.
*/
'capabilities'?: { [key: string]: AccountHolderCapability; };
/**
* @deprecated
*/
'contactDetails'?: ContactDetails;
/**
* Your description for the account holder.
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/paymentInstrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { IbanAccountIdentification } from './ibanAccountIdentification';
export class PaymentInstrument {
/**
* Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
*
* @deprecated since Configuration API v2
* Please use `bankAccount` object instead
*/
'additionalBankAccountIdentifications'?: Array<IbanAccountIdentification>;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/balancePlatform/updatePaymentInstrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { IbanAccountIdentification } from './ibanAccountIdentification';
export class UpdatePaymentInstrument {
/**
* Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
*
* @deprecated since Configuration API v2
* Please use `bankAccount` object instead
*/
'additionalBankAccountIdentifications'?: Array<IbanAccountIdentification>;
/**
Expand Down
9 changes: 9 additions & 0 deletions src/typings/checkout/accountInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ export class AccountInfo {
'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum;
/**
* Shopper\'s home phone number (including the country code).
*
* @deprecated since Adyen Checkout API v68
* Use `ThreeDS2RequestData.homePhone` instead.
*/
'homePhone'?: string;
/**
* Shopper\'s mobile phone number (including the country code).
*
* @deprecated since Adyen Checkout API v68
* Use `ThreeDS2RequestData.mobilePhone` instead.
*/
'mobilePhone'?: string;
/**
Expand Down Expand Up @@ -83,6 +89,9 @@ export class AccountInfo {
'suspiciousActivity'?: boolean;
/**
* Shopper\'s work phone number (including the country code).
*
* @deprecated since Adyen Checkout API v68
* Use `ThreeDS2RequestData.workPhone` instead.
*/
'workPhone'?: string;

Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/achDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export class AchDetails {
'ownerName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
6 changes: 6 additions & 0 deletions src/typings/checkout/additionalData3DSecure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
export class AdditionalData3DSecure {
/**
* Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration.
*
* @deprecated since Adyen Checkout API v69
* Use `authenticationData.threeDSRequestData.nativeThreeDS` instead.
*/
'allow3DS2'?: string;
/**
Expand All @@ -19,6 +22,9 @@ export class AdditionalData3DSecure {
'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum;
/**
* Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations.
*
* @deprecated since Adyen Checkout API v69
* Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead
*/
'executeThreeD'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/afterpayDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class AfterpayDetails {
'personalDetails'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/ancvDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class AncvDetails {
'checkoutAttemptId'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/applePayDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class ApplePayDetails {
'fundingSource'?: ApplePayDetails.FundingSourceEnum;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/applePayDonations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export class ApplePayDonations {
'fundingSource'?: ApplePayDonations.FundingSourceEnum;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/bacsDirectDebitDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class BacsDirectDebitDetails {
'holderName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/balanceCheckRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ export class BalanceCheckRequest {
'threeDS2RequestData'?: ThreeDS2RequestData;
/**
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
*
* @deprecated since Adyen Checkout API v69
* Use `authenticationData.authenticationOnly` instead.
*/
'threeDSAuthenticationOnly'?: boolean;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/blikDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class BlikDetails {
'checkoutAttemptId'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
6 changes: 6 additions & 0 deletions src/typings/checkout/cardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export class CardDetails {
* The checkout attempt identifier.
*/
'checkoutAttemptId'?: string;
/**
* @deprecated
*/
'cupsecureplus_smscode'?: string;
/**
* The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
Expand Down Expand Up @@ -64,6 +67,9 @@ export class CardDetails {
'number'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
6 changes: 6 additions & 0 deletions src/typings/checkout/cardDonations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export class CardDonations {
* The checkout attempt identifier.
*/
'checkoutAttemptId'?: string;
/**
* @deprecated
*/
'cupsecureplus_smscode'?: string;
/**
* The card verification code. Only collect raw card data if you are [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide).
Expand Down Expand Up @@ -64,6 +67,9 @@ export class CardDonations {
'number'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/cashAppDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export class CashAppDetails {
'onFileGrantId'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/createCheckoutSessionRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ export class CreateCheckoutSessionRequest {
'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData;
/**
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
*
* @deprecated since Adyen Checkout API v69
* Use `authenticationData.authenticationOnly` instead.
*/
'threeDSAuthenticationOnly'?: boolean;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/createCheckoutSessionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export class CreateCheckoutSessionResponse {
'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData;
/**
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
*
* @deprecated since Adyen Checkout API v69
* Use `authenticationData.authenticationOnly` instead.
*/
'threeDSAuthenticationOnly'?: boolean;
/**
Expand Down
6 changes: 6 additions & 0 deletions src/typings/checkout/donationPaymentRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export class DonationPaymentRequest {
'checkoutAttemptId'?: string;
/**
* Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey.
*
* @deprecated since Adyen Checkout API v68
* Use `checkoutAttemptId` instead
*/
'conversionId'?: string;
/**
Expand Down Expand Up @@ -159,6 +162,9 @@ export class DonationPaymentRequest {
'threeDS2RequestData'?: ThreeDS2RequestFields;
/**
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
*
* @deprecated since Adyen Checkout API v69
* Use `authenticationData.authenticationOnly` instead.
*/
'threeDSAuthenticationOnly'?: boolean;

Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/eftDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export class EftDetails {
'ownerName'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/genericIssuerPaymentMethodDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class GenericIssuerPaymentMethodDetails {
'issuer': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/giropayDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export class GiropayDetails {
'checkoutAttemptId'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/googlePayDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class GooglePayDetails {
'googlePayToken': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/googlePayDonations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class GooglePayDonations {
'googlePayToken': string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/idealDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class IdealDetails {
'issuer'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/idealDonations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export class IdealDonations {
'issuer'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
2 changes: 2 additions & 0 deletions src/typings/checkout/inputDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export class InputDetail {
'details'?: Array<SubInputDetail>;
/**
* Input details can also be provided recursively (deprecated).
*
* @deprecated
*/
'inputDetails'?: Array<SubInputDetail>;
/**
Expand Down
3 changes: 3 additions & 0 deletions src/typings/checkout/klarnaDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class KlarnaDetails {
'personalDetails'?: string;
/**
* This is the `recurringDetailReference` returned in the response when you created the token.
*
* @deprecated since Adyen Checkout API v49
* Use `storedPaymentMethodId` instead.
*/
'recurringDetailReference'?: string;
/**
Expand Down
Loading

0 comments on commit 112be8b

Please sign in to comment.