diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3eaa58b..e45cb67 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,22 +11,28 @@ api/giftCardServiceDefinitionsApi.ts api/giftCardServicesApi.ts api/giftCardsApi.ts api/merchantAccountsApi.ts +api/paymentLinksApi.ts api/paymentMethodDefinitionsApi.ts api/paymentMethodsApi.ts api/paymentOptionsApi.ts api/paymentServiceDefinitionsApi.ts api/paymentServicesApi.ts +api/payoutsApi.ts api/reportsApi.ts api/rolesApi.ts api/tokensApi.ts api/transactionsApi.ts api/vaultForwardApi.ts +api/webhookSubscriptionsApi.ts model/aPIKeyPairCreate.ts model/aPIKeyPairUpdate.ts model/accountUpdaterInquirySummary.ts model/accountUpdaterJob.ts model/accountUpdaterJobCreate.ts model/address.ts +model/airline.ts +model/airlineLeg.ts +model/airlinePassenger.ts model/antiFraudDecisionErrorEvent.ts model/antiFraudDecisionErrorEventContext.ts model/antiFraudDecisionEvent.ts @@ -84,7 +90,9 @@ model/cardSchemeDefinition.ts model/cardSchemeDefinitions.ts model/cartItem.ts model/checkoutSession.ts +model/checkoutSessionAirline.ts model/checkoutSessionCreateRequest.ts +model/checkoutSessionCreateRequestAirline.ts model/checkoutSessionPaymentMethod.ts model/checkoutSessionPaymentMethodDetails.ts model/checkoutSessionRequest.ts @@ -95,10 +103,13 @@ model/connectionDefinition.ts model/connectionDefinitions.ts model/connectionOptions.ts model/connectionOptionsAdyenCard.ts +model/connectionOptionsAdyenSepa.ts model/connectionOptionsCybersourceAntiFraud.ts model/connectionOptionsCybersourceCard.ts model/connectionOptionsCybersourceIdeal.ts model/connectionOptionsCybersourceKcp.ts +model/connectionOptionsFiservCard.ts +model/connectionOptionsFiservCardInstallmentOptions.ts model/connectionOptionsForterAntiFraud.ts model/connectionOptionsForterAntiFraudCartItemsInner.ts model/connectionOptionsForterAntiFraudCartItemsInnerBasicItemData.ts @@ -111,12 +122,18 @@ model/connectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails.ts model/connectionOptionsForterAntiFraudTotalDiscount.ts model/connectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount.ts model/connectionOptionsGivingblockGivingblock.ts +model/connectionOptionsLatitudeLatitude.ts model/connectionOptionsPaypalPaypal.ts model/connectionOptionsPaypalPaypalAdditionalDataInner.ts +model/connectionOptionsPowertranzCard.ts model/connectionOptionsStripeCard.ts model/connectionOptionsStripeCardStripeConnect.ts model/connections.ts model/cryptogram.ts +model/detailedSettlementReportSpec.ts +model/detailedSettlementReportSpecParams.ts +model/detailedSettlementReportSpecParamsFilters.ts +model/detailedSettlementReportSpecParamsFiltersIngestedAt.ts model/digitalWallet.ts model/digitalWalletApplePayTokenDecrypted.ts model/digitalWalletApplePayTokenDecryptedContext.ts @@ -169,10 +186,12 @@ model/googlePayRequest.ts model/googlePayRequestAssuranceDetails.ts model/googlePaySessionRequest.ts model/issueCryptogramRequest.ts +model/merchant.ts model/merchantAccount.ts model/merchantAccountCreate.ts model/merchantAccountUpdate.ts model/merchantAccounts.ts +model/merchantAddress.ts model/merchantProfile.ts model/merchantProfileAmex.ts model/merchantProfileDankort.ts @@ -191,6 +210,7 @@ model/merchantProfileSummaryUnionpay.ts model/merchantProfileSummaryVisa.ts model/merchantProfileUnionpay.ts model/merchantProfileVisa.ts +model/merchantRequest.ts model/models.ts model/networkToken.ts model/networkTokenCryptogramProvisionFailed.ts @@ -204,6 +224,8 @@ model/networkTokenRequest.ts model/networkTokens.ts model/paymentConnectorExternalTransactionRequest.ts model/paymentConnectorExternalTransactionRequestContext.ts +model/paymentConnectorReportTransactionSettled.ts +model/paymentConnectorReportTransactionSettledContext.ts model/paymentConnectorResponseTransactionAuthorizationFailedEvent.ts model/paymentConnectorResponseTransactionAuthorizationFailedEventContext.ts model/paymentConnectorResponseTransactionAuthorizationSucceededEvent.ts @@ -221,6 +243,13 @@ model/paymentConnectorResponseTransactionVoidFailedEvent.ts model/paymentConnectorResponseTransactionVoidFailedEventContext.ts model/paymentConnectorResponseTransactionVoidSucceededEvent.ts model/paymentConnectorResponseTransactionVoidSucceededEventContext.ts +model/paymentLink.ts +model/paymentLinkBuyer.ts +model/paymentLinkRequest.ts +model/paymentLinkRequestConnectionOptions.ts +model/paymentLinkShippingDetails.ts +model/paymentLinkStatementDescriptor.ts +model/paymentLinks.ts model/paymentMethod.ts model/paymentMethodDefinition.ts model/paymentMethodDefinitions.ts @@ -238,20 +267,40 @@ model/paymentOptionsRequest.ts model/paymentService.ts model/paymentServiceDefinition.ts model/paymentServiceDefinitionConfiguration.ts +model/paymentServiceDefinitionReportingFieldsInner.ts model/paymentServiceDefinitionSupportedFeatures.ts model/paymentServiceDefinitions.ts model/paymentServiceMerchantProfile.ts +model/paymentServiceReportingFieldsInner.ts model/paymentServiceRequest.ts model/paymentServiceRequestFieldsInner.ts model/paymentServiceRequestMerchantProfile.ts +model/paymentServiceRequestReportingFieldsInner.ts model/paymentServiceSession.ts model/paymentServiceSnapshot.ts model/paymentServiceToken.ts model/paymentServiceTokenRequest.ts model/paymentServiceTokens.ts model/paymentServiceUpdate.ts +model/paymentServiceUpdateFieldsInner.ts model/paymentServiceUpdateMerchantProfile.ts +model/paymentServiceUpdateReportingFieldsInner.ts model/paymentServices.ts +model/payout.ts +model/payoutConnectionOptionsRequest.ts +model/payoutConnectionOptionsRequestCheckoutCard.ts +model/payoutInlineCardRequest.ts +model/payoutMerchant.ts +model/payoutPaymentMethodRequest.ts +model/payoutRequest.ts +model/payoutRequestBuyer.ts +model/payoutRequestConnectionOptions.ts +model/payoutRequestMerchant.ts +model/payoutStoredCardRequest.ts +model/payouts.ts +model/recipient.ts +model/recipientAddress.ts +model/recipientSnapshot.ts model/redirectRequest.ts model/refund.ts model/refunds.ts @@ -263,8 +312,6 @@ model/reportExecutionSummaryContext.ts model/reportExecutionUrl.ts model/reportExecutions.ts model/reportSpec.ts -model/reportSpecParams.ts -model/reportSpecParamsFilters.ts model/reportSummary.ts model/reportUpdate.ts model/reports.ts @@ -281,9 +328,12 @@ model/roleAssignments.ts model/rolePermissions.ts model/roles.ts model/setPasswordRequest.ts +model/settlement.ts +model/settlements.ts model/shippingDetail.ts model/shippingDetailAddress.ts model/shippingDetailRequest.ts +model/shippingDetailRequestAddress.ts model/shippingDetailUpdateRequest.ts model/shippingDetails.ts model/statementDescriptor.ts @@ -313,6 +363,7 @@ model/transactionBuyerRequest.ts model/transactionBuyerRequestBillingDetails.ts model/transactionBuyerRequestShippingDetails.ts model/transactionCaptureRequest.ts +model/transactionCaptureRequestAirline.ts model/transactionCardRequest.ts model/transactionCheckoutSessionRequest.ts model/transactionGiftCardNewRequest.ts @@ -326,19 +377,36 @@ model/transactionNetworkTokenRequest.ts model/transactionPaymentMethod.ts model/transactionPaymentMethodRequest.ts model/transactionPaymentService.ts +model/transactionRecipient.ts model/transactionRedirectRequest.ts model/transactionRefundAllRequest.ts model/transactionRefundRequest.ts model/transactionRequest.ts model/transactionRequestBrowserInfo.ts -model/transactionRequestConnectionOptions.ts -model/transactionRequestStatementDescriptor.ts +model/transactionRequestRecipient.ts +model/transactionRetriesReportSpec.ts +model/transactionRetriesReportSpecParams.ts +model/transactionRetriesReportSpecParamsFilters.ts +model/transactionRetriesReportSpecParamsFiltersCreatedAt.ts model/transactionShippingDetails.ts model/transactionStatusSummary.ts model/transactionSummary.ts model/transactions.ts model/transactionsBatchCaptureRequest.ts +model/transactionsReportSpec.ts +model/transactionsReportSpecParams.ts +model/transactionsReportSpecParamsFilters.ts +model/transactionsReportSpecParamsFiltersAuthorizedAt.ts +model/transactionsReportSpecParamsFiltersCapturedAt.ts +model/transactionsReportSpecParamsFiltersUpdatedAt.ts +model/transactionsReportSpecParamsFiltersVoidedAt.ts model/userCurrentUpdate.ts model/userRequest.ts model/userRole.ts model/userUpdate.ts +model/webhookSubscription.ts +model/webhookSubscriptionAuthentication.ts +model/webhookSubscriptionRequest.ts +model/webhookSubscriptionRotateSecretRequest.ts +model/webhookSubscriptionUpdateRequest.ts +model/webhookSubscriptions.ts diff --git a/api/apis.ts b/api/apis.ts index 30c74b2..7450f40 100644 --- a/api/apis.ts +++ b/api/apis.ts @@ -22,6 +22,8 @@ export * from './giftCardsApi'; import { GiftCardsApi } from './giftCardsApi'; export * from './merchantAccountsApi'; import { MerchantAccountsApi } from './merchantAccountsApi'; +export * from './paymentLinksApi'; +import { PaymentLinksApi } from './paymentLinksApi'; export * from './paymentMethodDefinitionsApi'; import { PaymentMethodDefinitionsApi } from './paymentMethodDefinitionsApi'; export * from './paymentMethodsApi'; @@ -32,6 +34,8 @@ export * from './paymentServiceDefinitionsApi'; import { PaymentServiceDefinitionsApi } from './paymentServiceDefinitionsApi'; export * from './paymentServicesApi'; import { PaymentServicesApi } from './paymentServicesApi'; +export * from './payoutsApi'; +import { PayoutsApi } from './payoutsApi'; export * from './reportsApi'; import { ReportsApi } from './reportsApi'; export * from './rolesApi'; @@ -42,6 +46,8 @@ export * from './transactionsApi'; import { TransactionsApi } from './transactionsApi'; export * from './vaultForwardApi'; import { VaultForwardApi } from './vaultForwardApi'; +export * from './webhookSubscriptionsApi'; +import { WebhookSubscriptionsApi } from './webhookSubscriptionsApi'; import * as http from 'http'; export class HttpError extends Error { @@ -53,4 +59,4 @@ export class HttpError extends Error { export { RequestFile } from '../model/models'; -export const APIS = [APILogsApi, AccountUpdaterApi, AntiFraudServiceDefinitionsApi, AuditLogsApi, BuyersApi, CardSchemeDefinitionsApi, CheckoutSessionsApi, DigitalWalletsApi, GiftCardServiceDefinitionsApi, GiftCardServicesApi, GiftCardsApi, MerchantAccountsApi, PaymentMethodDefinitionsApi, PaymentMethodsApi, PaymentOptionsApi, PaymentServiceDefinitionsApi, PaymentServicesApi, ReportsApi, RolesApi, TokensApi, TransactionsApi, VaultForwardApi]; +export const APIS = [APILogsApi, AccountUpdaterApi, AntiFraudServiceDefinitionsApi, AuditLogsApi, BuyersApi, CardSchemeDefinitionsApi, CheckoutSessionsApi, DigitalWalletsApi, GiftCardServiceDefinitionsApi, GiftCardServicesApi, GiftCardsApi, MerchantAccountsApi, PaymentLinksApi, PaymentMethodDefinitionsApi, PaymentMethodsApi, PaymentOptionsApi, PaymentServiceDefinitionsApi, PaymentServicesApi, PayoutsApi, ReportsApi, RolesApi, TokensApi, TransactionsApi, VaultForwardApi, WebhookSubscriptionsApi]; diff --git a/api/buyersApi.ts b/api/buyersApi.ts index 58dc9f9..0824800 100644 --- a/api/buyersApi.ts +++ b/api/buyersApi.ts @@ -399,7 +399,7 @@ export class BuyersApi { /** * Returns a list of buyers. * @summary List buyers - * @param search Filters the results to only the buyers for which the `display_name` or `external_identifier` matches this value. This field allows for a partial match, matching any buyer for which either of the fields partially or completely matches. Please do not use this query parameter in a production application, as this API call is very inefficient and may negatively impact transaction performance. + * @param search ***Please do not use this query parameter in a production application, as this API call is very inefficient and may negatively impact transaction performance.*** Filters the results to only the buyers for which the `display_name`, `email_address` or `external_identifier` matches this value. This field allows for a case insensitive partial match, matching any buyer for which any of the fields partially or completely matches. * @param externalIdentifier Filters the results to only the items for which the `buyer` has an `external_identifier` that exactly matches this value. * @param limit Defines the maximum number of items to return for this request. * @param cursor A cursor that identifies the page of results to return. This is used to paginate the results of this API. For the first page of results, this parameter can be left out. For additional pages, use the value returned by the API in the `next_cursor` field. Similarly the `previous_cursor` can be used to reverse backwards in the list. diff --git a/api/paymentLinksApi.ts b/api/paymentLinksApi.ts new file mode 100644 index 0000000..0fcab87 --- /dev/null +++ b/api/paymentLinksApi.ts @@ -0,0 +1,375 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import localVarRequest from 'request'; +import http from 'http'; + +/* tslint:disable:no-unused-locals */ +import { Error400BadRequest } from '../model/error400BadRequest'; +import { Error401Unauthorized } from '../model/error401Unauthorized'; +import { Error404NotFound } from '../model/error404NotFound'; +import { PaymentLink } from '../model/paymentLink'; +import { PaymentLinkRequest } from '../model/paymentLinkRequest'; +import { PaymentLinks } from '../model/paymentLinks'; + +import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; +import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; + +import { HttpError, RequestFile } from './apis'; + +let defaultBasePath = 'https://api.plantly.gr4vy.app'; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum PaymentLinksApiApiKeys { +} + +export class PaymentLinksApi { + protected _basePath = defaultBasePath; + protected _defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'bearerAuth': new HttpBearerAuth(), + } + + protected interceptors: Interceptor[] = []; + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + set defaultHeaders(defaultHeaders: any) { + this._defaultHeaders = defaultHeaders; + } + + get defaultHeaders() { + return this._defaultHeaders; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: PaymentLinksApiApiKeys, value: string) { + (this.authentications as any)[PaymentLinksApiApiKeys[key]].apiKey = value; + } + + set accessToken(accessToken: string | (() => string)) { + this.authentications.bearerAuth.accessToken = accessToken; + } + + public addInterceptor(interceptor: Interceptor) { + this.interceptors.push(interceptor); + } + + /** + * Expires a payment link. + * @summary Expire payment link + * @param paymentLinkId The ID of the payment link to expire. + */ + public async expirePaymentLink (paymentLinkId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { + const localVarPath = this.basePath + '/payment-links/{payment_link_id}/expire' + .replace('{' + 'payment_link_id' + '}', encodeURIComponent(String(paymentLinkId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'paymentLinkId' is not null or undefined + if (paymentLinkId === null || paymentLinkId === undefined) { + throw new Error('Required parameter paymentLinkId was null or undefined when calling expirePaymentLink.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Gets information about a payment link. + * @summary Get payment link + * @param paymentLinkId The ID for the payment link to get the information for. + */ + public async getPaymentLink (paymentLinkId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentLink; }> { + const localVarPath = this.basePath + '/payment-links/{payment_link_id}' + .replace('{' + 'payment_link_id' + '}', encodeURIComponent(String(paymentLinkId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'paymentLinkId' is not null or undefined + if (paymentLinkId === null || paymentLinkId === undefined) { + throw new Error('Required parameter paymentLinkId was null or undefined when calling getPaymentLink.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: PaymentLink; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "PaymentLink"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Lists all payment links for an account. Sorted by last updated at. + * @summary List payment links + */ + public async listPaymentLinks (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentLinks; }> { + const localVarPath = this.basePath + '/payment-links'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: PaymentLinks; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "PaymentLinks"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Creates a new payment link. + * @summary Create payment link + * @param paymentLinkRequest + */ + public async newPaymentLink (paymentLinkRequest?: PaymentLinkRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentLink; }> { + const localVarPath = this.basePath + '/payment-links'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(paymentLinkRequest, "PaymentLinkRequest") + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: PaymentLink; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "PaymentLink"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } +} diff --git a/api/paymentMethodsApi.ts b/api/paymentMethodsApi.ts index d9498e2..35e7d60 100644 --- a/api/paymentMethodsApi.ts +++ b/api/paymentMethodsApi.ts @@ -249,8 +249,10 @@ export class PaymentMethodsApi { * @param buyerExternalIdentifier Filters the results to only the items for which the `buyer` has an `external_identifier` that matches this value. * @param country Filters the results to only the items which support this country code. A country is formatted as 2-letter ISO country code. * @param currency Filters the results to only the items which support this currency code. A currency is formatted as 3-letter ISO currency code. + * @param sortBy Used by the payment method filter to sort the results by an specific usage field. + * @param orderBy Used to show the results ascending or descending order. */ - public async listBuyerPaymentMethods (buyerId?: string, buyerExternalIdentifier?: string, country?: string, currency?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentMethodsTokenized; }> { + public async listBuyerPaymentMethods (buyerId?: string, buyerExternalIdentifier?: string, country?: string, currency?: string, sortBy?: 'last_used_at' | 'usage_count' | 'cit_last_used_at' | 'cit_usage_count', orderBy?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentMethodsTokenized; }> { const localVarPath = this.basePath + '/buyers/payment-methods'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); @@ -279,6 +281,14 @@ export class PaymentMethodsApi { localVarQueryParameters['currency'] = ObjectSerializer.serialize(currency, "string"); } + if (sortBy !== undefined) { + localVarQueryParameters['sort_by'] = ObjectSerializer.serialize(sortBy, "'last_used_at' | 'usage_count' | 'cit_last_used_at' | 'cit_usage_count'"); + } + + if (orderBy !== undefined) { + localVarQueryParameters['order_by'] = ObjectSerializer.serialize(orderBy, "'asc' | 'desc'"); + } + (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/api/paymentServicesApi.ts b/api/paymentServicesApi.ts index cfe8d7c..5bbbfe0 100644 --- a/api/paymentServicesApi.ts +++ b/api/paymentServicesApi.ts @@ -324,7 +324,7 @@ export class PaymentServicesApi { * @param method Filters the results to only the items for which the `method` has been set to this value. For example `card`. * @param deleted Filters the results to only show items which have been deleted. By default, deleted items will not be returned. */ - public async listPaymentServices (limit?: number, cursor?: string, method?: 'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'eps' | 'everydaypay' | 'gcash' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'multibanco' | 'multipago' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'vipps' | 'waave' | 'wechat' | 'zippay', deleted?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentServices; }> { + public async listPaymentServices (limit?: number, cursor?: string, method?: 'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'efecty' | 'eps' | 'everydaypay' | 'gcash' | 'gem' | 'gemds' | 'gift-card' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'latitude' | 'latitudeds' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'mercadopago' | 'multibanco' | 'multipago' | 'netbanking' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'pse' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'upi' | 'vipps' | 'waave' | 'webpay' | 'wechat' | 'zippay', deleted?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaymentServices; }> { const localVarPath = this.basePath + '/payment-services'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); @@ -346,7 +346,7 @@ export class PaymentServicesApi { } if (method !== undefined) { - localVarQueryParameters['method'] = ObjectSerializer.serialize(method, "'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'eps' | 'everydaypay' | 'gcash' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'multibanco' | 'multipago' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'vipps' | 'waave' | 'wechat' | 'zippay'"); + localVarQueryParameters['method'] = ObjectSerializer.serialize(method, "'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'efecty' | 'eps' | 'everydaypay' | 'gcash' | 'gem' | 'gemds' | 'gift-card' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'latitude' | 'latitudeds' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'mercadopago' | 'multibanco' | 'multipago' | 'netbanking' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'pse' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'upi' | 'vipps' | 'waave' | 'webpay' | 'wechat' | 'zippay'"); } if (deleted !== undefined) { diff --git a/api/payoutsApi.ts b/api/payoutsApi.ts new file mode 100644 index 0000000..6c271b6 --- /dev/null +++ b/api/payoutsApi.ts @@ -0,0 +1,304 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import localVarRequest from 'request'; +import http from 'http'; + +/* tslint:disable:no-unused-locals */ +import { Error400BadRequest } from '../model/error400BadRequest'; +import { Error401Unauthorized } from '../model/error401Unauthorized'; +import { Error404NotFound } from '../model/error404NotFound'; +import { Payout } from '../model/payout'; +import { PayoutRequest } from '../model/payoutRequest'; +import { Payouts } from '../model/payouts'; + +import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; +import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; + +import { HttpError, RequestFile } from './apis'; + +let defaultBasePath = 'https://api.plantly.gr4vy.app'; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum PayoutsApiApiKeys { +} + +export class PayoutsApi { + protected _basePath = defaultBasePath; + protected _defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'bearerAuth': new HttpBearerAuth(), + } + + protected interceptors: Interceptor[] = []; + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + set defaultHeaders(defaultHeaders: any) { + this._defaultHeaders = defaultHeaders; + } + + get defaultHeaders() { + return this._defaultHeaders; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: PayoutsApiApiKeys, value: string) { + (this.authentications as any)[PayoutsApiApiKeys[key]].apiKey = value; + } + + set accessToken(accessToken: string | (() => string)) { + this.authentications.bearerAuth.accessToken = accessToken; + } + + public addInterceptor(interceptor: Interceptor) { + this.interceptors.push(interceptor); + } + + /** + * Gets information about a payout. + * @summary Get payout + * @param payoutId The ID for the payout to get the information for. + */ + public async getSinglePayout (payoutId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Payout; }> { + const localVarPath = this.basePath + '/payouts/{payout_id}' + .replace('{' + 'payout_id' + '}', encodeURIComponent(String(payoutId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'payoutId' is not null or undefined + if (payoutId === null || payoutId === undefined) { + throw new Error('Required parameter payoutId was null or undefined when calling getSinglePayout.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: Payout; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "Payout"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Lists all payouts for an account. Sorted by last updated at. + * @summary List payouts + */ + public async listPayouts (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Payouts; }> { + const localVarPath = this.basePath + '/payouts'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: Payouts; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "Payouts"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Creates a new payout. + * @summary Create payout + * @param payoutRequest + */ + public async newPayout (payoutRequest?: PayoutRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Payout; }> { + const localVarPath = this.basePath + '/payouts'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(payoutRequest, "PayoutRequest") + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: Payout; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "Payout"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } +} diff --git a/api/transactionsApi.ts b/api/transactionsApi.ts index 19f0fbd..edb530b 100644 --- a/api/transactionsApi.ts +++ b/api/transactionsApi.ts @@ -22,6 +22,8 @@ import { Error409DuplicateRecord } from '../model/error409DuplicateRecord'; import { Error429TooManyRequests } from '../model/error429TooManyRequests'; import { Refund } from '../model/refund'; import { Refunds } from '../model/refunds'; +import { Settlement } from '../model/settlement'; +import { Settlements } from '../model/settlements'; import { Transaction } from '../model/transaction'; import { TransactionCaptureRequest } from '../model/transactionCaptureRequest'; import { TransactionRefundAllRequest } from '../model/transactionRefundAllRequest'; @@ -401,6 +403,157 @@ export class TransactionsApi { }); }); } + /** + * Gets information about a settlement associated with a certain transaction. + * @summary Get settlement + * @param transactionId The ID for the transaction to get the information for. + * @param settlementId The unique ID of the settlement. + */ + public async getTransactionSettlement (transactionId: string, settlementId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Settlement; }> { + const localVarPath = this.basePath + '/transactions/{transaction_id}/settlements/{settlement_id}' + .replace('{' + 'transaction_id' + '}', encodeURIComponent(String(transactionId))) + .replace('{' + 'settlement_id' + '}', encodeURIComponent(String(settlementId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'transactionId' is not null or undefined + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling getTransactionSettlement.'); + } + + // verify required parameter 'settlementId' is not null or undefined + if (settlementId === null || settlementId === undefined) { + throw new Error('Required parameter settlementId was null or undefined when calling getTransactionSettlement.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: Settlement; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "Settlement"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Gets settlements for a given transaction. + * @summary List settlements for transaction + * @param transactionId The ID for the transaction to get the information for. + */ + public async getTransactionSettlements (transactionId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Settlements; }> { + const localVarPath = this.basePath + '/transactions/{transaction_id}/settlements' + .replace('{' + 'transaction_id' + '}', encodeURIComponent(String(transactionId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'transactionId' is not null or undefined + if (transactionId === null || transactionId === undefined) { + throw new Error('Required parameter transactionId was null or undefined when calling getTransactionSettlements.'); + } + + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: Settlements; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "Settlements"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } /** * Lists all refunds associated with a certain transaction. * @summary List refunds @@ -492,6 +645,7 @@ export class TransactionsApi { * @param giftCardLast4 Filters for transactions that have at least one gift card redemption where the last 4 digits of its gift card number matches exactly with the provided value. * @param hasGiftCardRedemptions When set to `true`, filters for transactions that have at least one gift card redemption associated with it. When set to `false`, filter for transactions that have no gift card redemptions. * @param hasRefunds When set to `true`, filter for transactions that have at least one completed refund (including gift card refunds) associated with it. When set to `false`, filter for transactions that have no completed refunds. + * @param hasSettlements When set to `true`, filter for transactions that have at least one settlement. When set to `false`, filter for transactions that have no settlements. * @param id Filters for the transaction that has a matching `id` value. * @param metadata Filters for transactions where their `metadata` values contain all of the provided `metadata` keys. The value sent for `metadata` must be formatted as a JSON string, and all keys and values must be strings. This value should also be URL encoded. Duplicate keys are not supported. If a key is duplicated, only the last appearing value will be used. * @param method Filters the results to only the items for which the `method` has been set to this value. @@ -505,8 +659,12 @@ export class TransactionsApi { * @param status Filters the results to only the transactions that have a `status` that matches with any of the provided status values. * @param updatedAtGte Filters the results to only transactions last updated after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. * @param updatedAtLte Filters the results to only transactions last updated before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. + * @param isSubsequentPayment When set to `true`, filter for transactions that are a subsequent payment. When set to `false`, filter for transactions that are not an initial payment. + * @param merchantInitiated When set to `true`, filter for transactions that are merchant initiated. When set to `false`, filter for transactions that are not merchant initiated. + * @param paymentMethodBin Filter for transactions that have a card with a BIN that matches exactly with the provided value. + * @param paymentSource Filters the results to only the transactions that have a payment source that matches with any of the provided values. */ - public async listTransactions (buyerExternalIdentifier?: string, buyerId?: string, cursor?: string, limit?: number, amountEq?: number, amountGte?: number, amountLte?: number, checkoutSessionId?: string, createdAtGte?: Date, createdAtLte?: Date, currency?: Array, externalIdentifier?: string, giftCardId?: string, giftCardLast4?: string, hasGiftCardRedemptions?: boolean, hasRefunds?: boolean, id?: string, metadata?: Array, method?: Array<'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'eps' | 'everydaypay' | 'gcash' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'multibanco' | 'multipago' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'vipps' | 'waave' | 'wechat' | 'zippay'>, paymentMethodId?: string, paymentMethodLabel?: string, paymentServiceId?: Array, paymentServiceTransactionId?: string, pendingReview?: boolean, reconciliationId?: string, search?: string, status?: Array<'processing' | 'buyer_approval_pending' | 'authorization_succeeded' | 'authorization_failed' | 'authorization_declined' | 'capture_pending' | 'capture_succeeded' | 'authorization_void_pending' | 'authorization_voided'>, updatedAtGte?: Date, updatedAtLte?: Date, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Transactions; }> { + public async listTransactions (buyerExternalIdentifier?: string, buyerId?: string, cursor?: string, limit?: number, amountEq?: number, amountGte?: number, amountLte?: number, checkoutSessionId?: string, createdAtGte?: Date, createdAtLte?: Date, currency?: Array, externalIdentifier?: string, giftCardId?: string, giftCardLast4?: string, hasGiftCardRedemptions?: boolean, hasRefunds?: boolean, hasSettlements?: boolean, id?: string, metadata?: Array, method?: Array<'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'efecty' | 'eps' | 'everydaypay' | 'gcash' | 'gem' | 'gemds' | 'gift-card' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'latitude' | 'latitudeds' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'mercadopago' | 'multibanco' | 'multipago' | 'netbanking' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'pse' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'upi' | 'vipps' | 'waave' | 'webpay' | 'wechat' | 'zippay'>, paymentMethodId?: string, paymentMethodLabel?: string, paymentServiceId?: Array, paymentServiceTransactionId?: string, pendingReview?: boolean, reconciliationId?: string, search?: string, status?: Array<'processing' | 'buyer_approval_pending' | 'authorization_succeeded' | 'authorization_failed' | 'authorization_declined' | 'capture_pending' | 'capture_succeeded' | 'authorization_void_pending' | 'authorization_voided'>, updatedAtGte?: Date, updatedAtLte?: Date, isSubsequentPayment?: boolean, merchantInitiated?: boolean, paymentMethodBin?: string, paymentSource?: Array<'ecommerce' | 'moto' | 'recurring' | 'installment' | 'card_on_file'>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Transactions; }> { const localVarPath = this.basePath + '/transactions'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); @@ -583,6 +741,10 @@ export class TransactionsApi { localVarQueryParameters['has_refunds'] = ObjectSerializer.serialize(hasRefunds, "boolean"); } + if (hasSettlements !== undefined) { + localVarQueryParameters['has_settlements'] = ObjectSerializer.serialize(hasSettlements, "boolean"); + } + if (id !== undefined) { localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); } @@ -592,7 +754,7 @@ export class TransactionsApi { } if (method !== undefined) { - localVarQueryParameters['method'] = ObjectSerializer.serialize(method, "Array<'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'eps' | 'everydaypay' | 'gcash' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'multibanco' | 'multipago' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'vipps' | 'waave' | 'wechat' | 'zippay'>"); + localVarQueryParameters['method'] = ObjectSerializer.serialize(method, "Array<'afterpay' | 'alipay' | 'alipayhk' | 'applepay' | 'bacs' | 'bancontact' | 'banked' | 'becs' | 'bitpay' | 'boleto' | 'boost' | 'card' | 'cashapp' | 'chaseorbital' | 'checkout-session' | 'clearpay' | 'click-to-pay' | 'dana' | 'dcb' | 'dlocal' | 'ebanx' | 'efecty' | 'eps' | 'everydaypay' | 'gcash' | 'gem' | 'gemds' | 'gift-card' | 'giropay' | 'givingblock' | 'gocardless' | 'googlepay' | 'googlepay_pan_only' | 'gopay' | 'grabpay' | 'id' | 'ideal' | 'kakaopay' | 'kcp' | 'klarna' | 'latitude' | 'latitudeds' | 'laybuy' | 'linepay' | 'linkaja' | 'maybankqrpay' | 'mercadopago' | 'multibanco' | 'multipago' | 'netbanking' | 'network-token' | 'oney_3x' | 'oney_4x' | 'oney_6x' | 'oney_10x' | 'oney_12x' | 'ovo' | 'oxxo' | 'payid' | 'paymaya' | 'paypal' | 'paypalpaylater' | 'payto' | 'venmo' | 'pix' | 'pse' | 'rabbitlinepay' | 'razorpay' | 'scalapay' | 'sepa' | 'shopeepay' | 'singteldash' | 'smartpay' | 'sofort' | 'spei' | 'stripedd' | 'thaiqr' | 'touchngo' | 'truemoney' | 'trustly' | 'trustlyeurope' | 'upi' | 'vipps' | 'waave' | 'webpay' | 'wechat' | 'zippay'>"); } if (paymentMethodId !== undefined) { @@ -635,6 +797,22 @@ export class TransactionsApi { localVarQueryParameters['updated_at_lte'] = ObjectSerializer.serialize(updatedAtLte, "Date"); } + if (isSubsequentPayment !== undefined) { + localVarQueryParameters['is_subsequent_payment'] = ObjectSerializer.serialize(isSubsequentPayment, "boolean"); + } + + if (merchantInitiated !== undefined) { + localVarQueryParameters['merchant_initiated'] = ObjectSerializer.serialize(merchantInitiated, "boolean"); + } + + if (paymentMethodBin !== undefined) { + localVarQueryParameters['payment_method_bin'] = ObjectSerializer.serialize(paymentMethodBin, "string"); + } + + if (paymentSource !== undefined) { + localVarQueryParameters['payment_source'] = ObjectSerializer.serialize(paymentSource, "Array<'ecommerce' | 'moto' | 'recurring' | 'installment' | 'card_on_file'>"); + } + (Object).assign(localVarHeaderParams, options.headers); let localVarUseFormData = false; diff --git a/api/vaultForwardApi.ts b/api/vaultForwardApi.ts index bebc95b..3f506dc 100644 --- a/api/vaultForwardApi.ts +++ b/api/vaultForwardApi.ts @@ -97,6 +97,7 @@ export class VaultForwardApi { * Forward an API call to a PCI endpoint. The request body is evaluated and any template fields are replaced by the card data before the request is sent to the given destination. * @summary Forward PCI data * @param xVaultForwardPaymentMethods A comma-separated list of Payment Method IDs that can be used to fill in the request template. At least 1 must be given, and a maximum of 100 are accepted. + * @param xVaultForwardCheckoutSession A Checkout Session IDs that can be used to fill in the request template. At most 1 can be provided. * @param xVaultForwardUrl The URL to forward card data to. * @param xVaultForwardHttpMethod The HTTP method that is used when forwarding the request to the `x-vault-forward-url`. * @param xVaultForwardAuthentications A comma-separated list of IDs for the authentication methods that will be applied to a Vault Forward request. @@ -104,7 +105,7 @@ export class VaultForwardApi { * @param xVaultForwardTimeout The number of seconds to wait before timing out when forwarding the request. * @param body Payload to forward in the request. */ - public async makeVaultForward (xVaultForwardPaymentMethods: string, xVaultForwardUrl: string, xVaultForwardHttpMethod: 'POST' | 'PUT' | 'PATCH', xVaultForwardAuthentications?: string, xVaultForwardHeaderHEADERNAME?: string, xVaultForwardTimeout?: number, body?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> { + public async makeVaultForward (xVaultForwardPaymentMethods: string, xVaultForwardCheckoutSession: string, xVaultForwardUrl: string, xVaultForwardHttpMethod: 'POST' | 'PUT' | 'PATCH', xVaultForwardAuthentications?: string, xVaultForwardHeaderHEADERNAME?: string, xVaultForwardTimeout?: number, body?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: string; }> { const localVarPath = this.basePath + '/vault-forward'; let localVarQueryParameters: any = {}; let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); @@ -122,6 +123,11 @@ export class VaultForwardApi { throw new Error('Required parameter xVaultForwardPaymentMethods was null or undefined when calling makeVaultForward.'); } + // verify required parameter 'xVaultForwardCheckoutSession' is not null or undefined + if (xVaultForwardCheckoutSession === null || xVaultForwardCheckoutSession === undefined) { + throw new Error('Required parameter xVaultForwardCheckoutSession was null or undefined when calling makeVaultForward.'); + } + // verify required parameter 'xVaultForwardUrl' is not null or undefined if (xVaultForwardUrl === null || xVaultForwardUrl === undefined) { throw new Error('Required parameter xVaultForwardUrl was null or undefined when calling makeVaultForward.'); @@ -133,6 +139,7 @@ export class VaultForwardApi { } localVarHeaderParams['x-vault-forward-payment-methods'] = ObjectSerializer.serialize(xVaultForwardPaymentMethods, "string"); + localVarHeaderParams['x-vault-forward-checkout-session'] = ObjectSerializer.serialize(xVaultForwardCheckoutSession, "string"); localVarHeaderParams['x-vault-forward-authentications'] = ObjectSerializer.serialize(xVaultForwardAuthentications, "string"); localVarHeaderParams['x-vault-forward-url'] = ObjectSerializer.serialize(xVaultForwardUrl, "string"); localVarHeaderParams['x-vault-forward-http-method'] = ObjectSerializer.serialize(xVaultForwardHttpMethod, "'POST' | 'PUT' | 'PATCH'"); diff --git a/api/webhookSubscriptionsApi.ts b/api/webhookSubscriptionsApi.ts new file mode 100644 index 0000000..f5e5291 --- /dev/null +++ b/api/webhookSubscriptionsApi.ts @@ -0,0 +1,537 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import localVarRequest from 'request'; +import http from 'http'; + +/* tslint:disable:no-unused-locals */ +import { Error400BadRequest } from '../model/error400BadRequest'; +import { Error401Unauthorized } from '../model/error401Unauthorized'; +import { Error404NotFound } from '../model/error404NotFound'; +import { WebhookSubscription } from '../model/webhookSubscription'; +import { WebhookSubscriptionRequest } from '../model/webhookSubscriptionRequest'; +import { WebhookSubscriptionRotateSecretRequest } from '../model/webhookSubscriptionRotateSecretRequest'; +import { WebhookSubscriptionUpdateRequest } from '../model/webhookSubscriptionUpdateRequest'; +import { WebhookSubscriptions } from '../model/webhookSubscriptions'; + +import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models'; +import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models'; + +import { HttpError, RequestFile } from './apis'; + +let defaultBasePath = 'https://api.plantly.gr4vy.app'; + +// =============================================== +// This file is autogenerated - Please do not edit +// =============================================== + +export enum WebhookSubscriptionsApiApiKeys { +} + +export class WebhookSubscriptionsApi { + protected _basePath = defaultBasePath; + protected _defaultHeaders : any = {}; + protected _useQuerystring : boolean = false; + + protected authentications = { + 'default': new VoidAuth(), + 'bearerAuth': new HttpBearerAuth(), + } + + protected interceptors: Interceptor[] = []; + + constructor(basePath?: string); + constructor(basePathOrUsername: string, password?: string, basePath?: string) { + if (password) { + if (basePath) { + this.basePath = basePath; + } + } else { + if (basePathOrUsername) { + this.basePath = basePathOrUsername + } + } + } + + set useQuerystring(value: boolean) { + this._useQuerystring = value; + } + + set basePath(basePath: string) { + this._basePath = basePath; + } + + set defaultHeaders(defaultHeaders: any) { + this._defaultHeaders = defaultHeaders; + } + + get defaultHeaders() { + return this._defaultHeaders; + } + + get basePath() { + return this._basePath; + } + + public setDefaultAuthentication(auth: Authentication) { + this.authentications.default = auth; + } + + public setApiKey(key: WebhookSubscriptionsApiApiKeys, value: string) { + (this.authentications as any)[WebhookSubscriptionsApiApiKeys[key]].apiKey = value; + } + + set accessToken(accessToken: string | (() => string)) { + this.authentications.bearerAuth.accessToken = accessToken; + } + + public addInterceptor(interceptor: Interceptor) { + this.interceptors.push(interceptor); + } + + /** + * Deletes a webhook subscription, removing any delivery of webhooks to the associated endpoint. + * @summary Delete a webhook subscription + * @param webhookSubscriptionId The ID for the webhook subscription. + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + */ + public async deleteWebhookSubscription (webhookSubscriptionId: string, xGr4vyMerchantAccountID?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> { + const localVarPath = this.basePath + '/webhook-subscriptions/{webhook_subscription_id}' + .replace('{' + 'webhook_subscription_id' + '}', encodeURIComponent(String(webhookSubscriptionId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'webhookSubscriptionId' is not null or undefined + if (webhookSubscriptionId === null || webhookSubscriptionId === undefined) { + throw new Error('Required parameter webhookSubscriptionId was null or undefined when calling deleteWebhookSubscription.'); + } + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'DELETE', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Returns a single endpoint that we will send webhooks to. + * @summary Get webhook subscription + * @param webhookSubscriptionId The ID for the webhook subscription. + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + */ + public async getWebhookSubscription (webhookSubscriptionId: string, xGr4vyMerchantAccountID?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }> { + const localVarPath = this.basePath + '/webhook-subscriptions/{webhook_subscription_id}' + .replace('{' + 'webhook_subscription_id' + '}', encodeURIComponent(String(webhookSubscriptionId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'webhookSubscriptionId' is not null or undefined + if (webhookSubscriptionId === null || webhookSubscriptionId === undefined) { + throw new Error('Required parameter webhookSubscriptionId was null or undefined when calling getWebhookSubscription.'); + } + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "WebhookSubscription"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Returns a list of endpoints that we will send webhooks to. + * @summary List webhook subscriptions + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + */ + public async listWebhookSubscriptions (xGr4vyMerchantAccountID?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WebhookSubscriptions; }> { + const localVarPath = this.basePath + '/webhook-subscriptions'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'GET', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: WebhookSubscriptions; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "WebhookSubscriptions"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Adds a new endpoint to send webhooks to. + * @summary New webhook subscription + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + * @param webhookSubscriptionRequest + */ + public async newWebhookSubscription (xGr4vyMerchantAccountID?: string, webhookSubscriptionRequest?: WebhookSubscriptionRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }> { + const localVarPath = this.basePath + '/webhook-subscriptions'; + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(webhookSubscriptionRequest, "WebhookSubscriptionRequest") + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "WebhookSubscription"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Rotate the webhook subscription secret. + * @summary Rotate the webhook subscription secret. + * @param webhookSubscriptionId The ID for the webhook subscription. + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + * @param webhookSubscriptionRotateSecretRequest + */ + public async rotateWebhookSubscriptionSecret (webhookSubscriptionId: string, xGr4vyMerchantAccountID?: string, webhookSubscriptionRotateSecretRequest?: WebhookSubscriptionRotateSecretRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }> { + const localVarPath = this.basePath + '/webhook-subscriptions/{webhook_subscription_id}/rotate-secret' + .replace('{' + 'webhook_subscription_id' + '}', encodeURIComponent(String(webhookSubscriptionId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'webhookSubscriptionId' is not null or undefined + if (webhookSubscriptionId === null || webhookSubscriptionId === undefined) { + throw new Error('Required parameter webhookSubscriptionId was null or undefined when calling rotateWebhookSubscriptionSecret.'); + } + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'POST', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(webhookSubscriptionRotateSecretRequest, "WebhookSubscriptionRotateSecretRequest") + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "WebhookSubscription"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } + /** + * Updates a webhook subscription. + * @summary Update webhook subscription + * @param webhookSubscriptionId The ID for the webhook subscription. + * @param xGr4vyMerchantAccountID The ID of the merchant account to act upon. When not or provided, this value will default to the first merchant account a user has access to. This value can be set to `*` on some APIs to fetch resources from all merchant accounts. + * @param webhookSubscriptionUpdateRequest + */ + public async updateWebhookSubscription (webhookSubscriptionId: string, xGr4vyMerchantAccountID?: string, webhookSubscriptionUpdateRequest?: WebhookSubscriptionUpdateRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }> { + const localVarPath = this.basePath + '/webhook-subscriptions/{webhook_subscription_id}' + .replace('{' + 'webhook_subscription_id' + '}', encodeURIComponent(String(webhookSubscriptionId))); + let localVarQueryParameters: any = {}; + let localVarHeaderParams: any = (Object).assign({}, this._defaultHeaders); + const produces = ['application/json']; + // give precedence to 'application/json' + if (produces.indexOf('application/json') >= 0) { + localVarHeaderParams.Accept = 'application/json'; + } else { + localVarHeaderParams.Accept = produces.join(','); + } + let localVarFormParams: any = {}; + + // verify required parameter 'webhookSubscriptionId' is not null or undefined + if (webhookSubscriptionId === null || webhookSubscriptionId === undefined) { + throw new Error('Required parameter webhookSubscriptionId was null or undefined when calling updateWebhookSubscription.'); + } + + localVarHeaderParams['X-Gr4vy-Merchant-Account-ID'] = ObjectSerializer.serialize(xGr4vyMerchantAccountID, "string"); + (Object).assign(localVarHeaderParams, options.headers); + + let localVarUseFormData = false; + + let localVarRequestOptions: localVarRequest.Options = { + method: 'PUT', + qs: localVarQueryParameters, + headers: localVarHeaderParams, + uri: localVarPath, + useQuerystring: this._useQuerystring, + json: true, + body: ObjectSerializer.serialize(webhookSubscriptionUpdateRequest, "WebhookSubscriptionUpdateRequest") + }; + + let authenticationPromise = Promise.resolve(); + if (this.authentications.bearerAuth.accessToken) { + authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions)); + } + authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); + + let interceptorPromise = authenticationPromise; + for (const interceptor of this.interceptors) { + interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions)); + } + + return interceptorPromise.then(() => { + if (Object.keys(localVarFormParams).length) { + if (localVarUseFormData) { + (localVarRequestOptions).formData = localVarFormParams; + } else { + localVarRequestOptions.form = localVarFormParams; + } + } + return new Promise<{ response: http.IncomingMessage; body: WebhookSubscription; }>((resolve, reject) => { + localVarRequest(localVarRequestOptions, (error, response, body) => { + if (error) { + reject(error); + } else { + if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { + body = ObjectSerializer.deserialize(body, "WebhookSubscription"); + resolve({ response: response, body: body }); + } else { + reject(new HttpError(response, body, response.statusCode)); + } + } + }); + }); + }); + } +} diff --git a/esm/package-lock.json b/esm/package-lock.json new file mode 100644 index 0000000..503716f --- /dev/null +++ b/esm/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "esm", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/model/airline.ts b/model/airline.ts new file mode 100644 index 0000000..f97f811 --- /dev/null +++ b/model/airline.ts @@ -0,0 +1,171 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { AirlineLeg } from './airlineLeg'; +import { AirlinePassenger } from './airlinePassenger'; + +/** +* Information about an airline travel. +*/ +export class Airline { + /** + * The Passenger Name Record (PNR) in the airline reservation system. + */ + 'passengerNameRecord'?: string | null; + /** + * The unique identifier of the reservation in the global distribution system. + */ + 'bookingCode'?: string | null; + /** + * The airline\'s unique ticket number. + */ + 'ticketNumber'?: string | null; + /** + * The delivery method of the ticket. + */ + 'ticketDeliveryMethod'?: Airline.TicketDeliveryMethodEnum = Airline.TicketDeliveryMethodEnum.Electronic; + /** + * The date that the ticket was last issued in the airline reservation system. + */ + 'issuedAt'?: Date | null; + /** + * The address of the place/agency that issued the ticket. + */ + 'issuedAddress'?: string | null; + /** + * The IATA travel agency code. + */ + 'travelAgencyCode'?: string | null; + /** + * The name of the travel agency. + */ + 'travelAgencyName'?: string | null; + /** + * The reference number of the invoice that was issued by the travel agency. + */ + 'travelAgencyInvoiceNumber'?: string | null; + /** + * The name of the travel agency plan. + */ + 'travelAgencyPlanName'?: string | null; + /** + * Indicates whether the ticket is restricted (refundable). + */ + 'restrictedTicket'?: boolean | null; + /** + * For airline aggregators, two-character IATA code of the airline issuing the ticket. + */ + 'issuingCarrierCode'?: string | null; + /** + * The name of the reservation system. + */ + 'reservationSystem'?: string | null; + /** + * An array of the travelling passengers. + */ + 'passengers'?: Array | null; + /** + * An array of separate trip segments. Each leg contains detailed itinerary information. + */ + 'legs'?: Array | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "passengerNameRecord", + "baseName": "passenger_name_record", + "type": "string" + }, + { + "name": "bookingCode", + "baseName": "booking_code", + "type": "string" + }, + { + "name": "ticketNumber", + "baseName": "ticket_number", + "type": "string" + }, + { + "name": "ticketDeliveryMethod", + "baseName": "ticket_delivery_method", + "type": "Airline.TicketDeliveryMethodEnum" + }, + { + "name": "issuedAt", + "baseName": "issued_at", + "type": "Date" + }, + { + "name": "issuedAddress", + "baseName": "issued_address", + "type": "string" + }, + { + "name": "travelAgencyCode", + "baseName": "travel_agency_code", + "type": "string" + }, + { + "name": "travelAgencyName", + "baseName": "travel_agency_name", + "type": "string" + }, + { + "name": "travelAgencyInvoiceNumber", + "baseName": "travel_agency_invoice_number", + "type": "string" + }, + { + "name": "travelAgencyPlanName", + "baseName": "travel_agency_plan_name", + "type": "string" + }, + { + "name": "restrictedTicket", + "baseName": "restricted_ticket", + "type": "boolean" + }, + { + "name": "issuingCarrierCode", + "baseName": "issuing_carrier_code", + "type": "string" + }, + { + "name": "reservationSystem", + "baseName": "reservation_system", + "type": "string" + }, + { + "name": "passengers", + "baseName": "passengers", + "type": "Array" + }, + { + "name": "legs", + "baseName": "legs", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return Airline.attributeTypeMap; + } +} + +export namespace Airline { + export enum TicketDeliveryMethodEnum { + Electronic = 'electronic', + Other = 'other' + } +} diff --git a/model/airlineLeg.ts b/model/airlineLeg.ts new file mode 100644 index 0000000..62e4e43 --- /dev/null +++ b/model/airlineLeg.ts @@ -0,0 +1,205 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Each of the separate trip segment, contains detailed itinerary information. +*/ +export class AirlineLeg { + /** + * 2 character airline code as set by IATA. + */ + 'carrierCode'?: string | null; + /** + * Unique identifier of the flight number. + */ + 'flightNumber'?: string | null; + /** + * The date and time of travel in local time at the departure airport. + */ + 'departureAt'?: Date | null; + /** + * Departure country code in ISO 3166 format. + */ + 'departureCountry'?: string | null; + /** + * Departure city name. + */ + 'departureCity'?: string | null; + /** + * Departure airport code of leg. 3-letter ISO code according to IATA official directory. + */ + 'departureAirport'?: string | null; + /** + * The date and time of travel in local time at the arrival airport. + */ + 'arrivalAt'?: Date | null; + /** + * Arrival country code in ISO 3166 format. + */ + 'arrivalCountry'?: string | null; + /** + * Arrival city name. + */ + 'arrivalCity'?: string | null; + /** + * Arrival airport code of leg. 3-letter ISO code according to IATA official directory. + */ + 'arrivalAirport'?: string | null; + /** + * The alphanumeric code for the \"booking class\" of a ticket. + */ + 'fareBasisCode'?: string | null; + /** + * Indicates service class (first class, business class, etc.). + */ + 'flightClass'?: string | null; + /** + * Indicates whether a stopover is allowed on this ticket. + */ + 'stopOver'?: boolean | null; + /** + * The route type of the flight. + */ + 'routeType'?: AirlineLeg.RouteTypeEnum; + /** + * Coupon number associated with the leg. + */ + 'couponNumber'?: string | null; + /** + * Amount of the ticket, for current leg of the trip, excluding taxes and fees. + */ + 'fareAmount'?: number | null; + /** + * Fee amount for current leg of the trip. + */ + 'feeAmount'?: number | null; + /** + * Amount of the taxes for current leg of the trip. + */ + 'taxAmount'?: number | null; + /** + * Departure tax amount charged by a country when a person is leaving the country. + */ + 'departureTaxAmount'?: number | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carrierCode", + "baseName": "carrier_code", + "type": "string" + }, + { + "name": "flightNumber", + "baseName": "flight_number", + "type": "string" + }, + { + "name": "departureAt", + "baseName": "departure_at", + "type": "Date" + }, + { + "name": "departureCountry", + "baseName": "departure_country", + "type": "string" + }, + { + "name": "departureCity", + "baseName": "departure_city", + "type": "string" + }, + { + "name": "departureAirport", + "baseName": "departure_airport", + "type": "string" + }, + { + "name": "arrivalAt", + "baseName": "arrival_at", + "type": "Date" + }, + { + "name": "arrivalCountry", + "baseName": "arrival_country", + "type": "string" + }, + { + "name": "arrivalCity", + "baseName": "arrival_city", + "type": "string" + }, + { + "name": "arrivalAirport", + "baseName": "arrival_airport", + "type": "string" + }, + { + "name": "fareBasisCode", + "baseName": "fare_basis_code", + "type": "string" + }, + { + "name": "flightClass", + "baseName": "flight_class", + "type": "string" + }, + { + "name": "stopOver", + "baseName": "stop_over", + "type": "boolean" + }, + { + "name": "routeType", + "baseName": "route_type", + "type": "AirlineLeg.RouteTypeEnum" + }, + { + "name": "couponNumber", + "baseName": "coupon_number", + "type": "string" + }, + { + "name": "fareAmount", + "baseName": "fare_amount", + "type": "number" + }, + { + "name": "feeAmount", + "baseName": "fee_amount", + "type": "number" + }, + { + "name": "taxAmount", + "baseName": "tax_amount", + "type": "number" + }, + { + "name": "departureTaxAmount", + "baseName": "departure_tax_amount", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return AirlineLeg.attributeTypeMap; + } +} + +export namespace AirlineLeg { + export enum RouteTypeEnum { + RoundTrip = 'round_trip', + OneWay = 'one_way' + } +} diff --git a/model/airlinePassenger.ts b/model/airlinePassenger.ts new file mode 100644 index 0000000..821862f --- /dev/null +++ b/model/airlinePassenger.ts @@ -0,0 +1,121 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Information of the travelling passenger. +*/ +export class AirlinePassenger { + /** + * Title of the passenger. + */ + 'title'?: string | null; + /** + * The first name(s) or given name of the passenger. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the passenger. + */ + 'lastName'?: string | null; + /** + * The email address of the passenger. + */ + 'emailAddress'?: string | null; + /** + * The phone number of the passenger. This number is formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber'?: string | null; + /** + * The passenger\'s unique passport number. + */ + 'passportNumber'?: string | null; + /** + * The ticket number for a flight. + */ + 'ticketNumber'?: string | null; + /** + * The passenger\'s frequent flyer number. + */ + 'frequentFlyerNumber'?: string | null; + /** + * The passenger\'s date of birth. + */ + 'dateOfBirth'?: string | null; + 'ageGroup'?: AirlinePassenger.AgeGroupEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "title", + "baseName": "title", + "type": "string" + }, + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "emailAddress", + "baseName": "email_address", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "passportNumber", + "baseName": "passport_number", + "type": "string" + }, + { + "name": "ticketNumber", + "baseName": "ticket_number", + "type": "string" + }, + { + "name": "frequentFlyerNumber", + "baseName": "frequent_flyer_number", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "date_of_birth", + "type": "string" + }, + { + "name": "ageGroup", + "baseName": "age_group", + "type": "AirlinePassenger.AgeGroupEnum" + } ]; + + static getAttributeTypeMap() { + return AirlinePassenger.attributeTypeMap; + } +} + +export namespace AirlinePassenger { + export enum AgeGroupEnum { + Adult = 'adult', + Infant = 'infant' + } +} diff --git a/model/buyer.ts b/model/buyer.ts index 0418aef..fede025 100644 --- a/model/buyer.ts +++ b/model/buyer.ts @@ -43,6 +43,10 @@ export class Buyer { * The date and time when this buyer was last updated in our system. */ 'updatedAt'?: Date; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -86,6 +90,11 @@ export class Buyer { "name": "updatedAt", "baseName": "updated_at", "type": "Date" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/buyerRequest.ts b/model/buyerRequest.ts index 8989605..7532292 100644 --- a/model/buyerRequest.ts +++ b/model/buyerRequest.ts @@ -26,6 +26,10 @@ export class BuyerRequest { */ 'displayName'?: string | null; 'billingDetails'?: BuyerRequestBillingDetails | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -44,6 +48,11 @@ export class BuyerRequest { "name": "billingDetails", "baseName": "billing_details", "type": "BuyerRequestBillingDetails" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/buyerSnapshot.ts b/model/buyerSnapshot.ts index acad47d..e4e8cd6 100644 --- a/model/buyerSnapshot.ts +++ b/model/buyerSnapshot.ts @@ -34,6 +34,10 @@ export class BuyerSnapshot { * An external identifier that can be used to match the buyer against your own records. */ 'externalIdentifier'?: string | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -62,6 +66,11 @@ export class BuyerSnapshot { "name": "externalIdentifier", "baseName": "external_identifier", "type": "string" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/cartItem.ts b/model/cartItem.ts index 00e4856..0d9f869 100644 --- a/model/cartItem.ts +++ b/model/cartItem.ts @@ -60,6 +60,10 @@ export class CartItem { * The product type of the cart item. */ 'productType'?: CartItem.ProductTypeEnum; + /** + * The country code of the seller of the item. For some connectors, if this country code does not match the `country` then the transaction will be marked to Visa as a foreign seller transaction to meet Marketplace reporting requirements. + */ + 'sellerCountry'?: string | null; static discriminator: string | undefined = undefined; @@ -118,6 +122,11 @@ export class CartItem { "name": "productType", "baseName": "product_type", "type": "CartItem.ProductTypeEnum" + }, + { + "name": "sellerCountry", + "baseName": "seller_country", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/checkoutSession.ts b/model/checkoutSession.ts index eb1b75c..8ba2bb7 100644 --- a/model/checkoutSession.ts +++ b/model/checkoutSession.ts @@ -12,6 +12,7 @@ import { RequestFile } from './models'; import { CartItem } from './cartItem'; +import { CheckoutSessionAirline } from './checkoutSessionAirline'; import { CheckoutSessionPaymentMethod } from './checkoutSessionPaymentMethod'; /** @@ -38,6 +39,7 @@ export class CheckoutSession { * Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. */ 'metadata'?: { [key: string]: string; } | null; + 'airline'?: CheckoutSessionAirline | null; 'paymentMethod'?: CheckoutSessionPaymentMethod | null; static discriminator: string | undefined = undefined; @@ -68,6 +70,11 @@ export class CheckoutSession { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "airline", + "baseName": "airline", + "type": "CheckoutSessionAirline" + }, { "name": "paymentMethod", "baseName": "payment_method", diff --git a/model/checkoutSessionAirline.ts b/model/checkoutSessionAirline.ts new file mode 100644 index 0000000..9566aec --- /dev/null +++ b/model/checkoutSessionAirline.ts @@ -0,0 +1,171 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { AirlineLeg } from './airlineLeg'; +import { AirlinePassenger } from './airlinePassenger'; + +/** +* Contains information about an airline travel, if applicable. +*/ +export class CheckoutSessionAirline { + /** + * The Passenger Name Record (PNR) in the airline reservation system. + */ + 'passengerNameRecord'?: string | null; + /** + * The unique identifier of the reservation in the global distribution system. + */ + 'bookingCode'?: string | null; + /** + * The airline\'s unique ticket number. + */ + 'ticketNumber'?: string | null; + /** + * The delivery method of the ticket. + */ + 'ticketDeliveryMethod'?: CheckoutSessionAirline.TicketDeliveryMethodEnum = CheckoutSessionAirline.TicketDeliveryMethodEnum.Electronic; + /** + * The date that the ticket was last issued in the airline reservation system. + */ + 'issuedAt'?: Date | null; + /** + * The address of the place/agency that issued the ticket. + */ + 'issuedAddress'?: string | null; + /** + * The IATA travel agency code. + */ + 'travelAgencyCode'?: string | null; + /** + * The name of the travel agency. + */ + 'travelAgencyName'?: string | null; + /** + * The reference number of the invoice that was issued by the travel agency. + */ + 'travelAgencyInvoiceNumber'?: string | null; + /** + * The name of the travel agency plan. + */ + 'travelAgencyPlanName'?: string | null; + /** + * Indicates whether the ticket is restricted (refundable). + */ + 'restrictedTicket'?: boolean | null; + /** + * For airline aggregators, two-character IATA code of the airline issuing the ticket. + */ + 'issuingCarrierCode'?: string | null; + /** + * The name of the reservation system. + */ + 'reservationSystem'?: string | null; + /** + * An array of the travelling passengers. + */ + 'passengers'?: Array | null; + /** + * An array of separate trip segments. Each leg contains detailed itinerary information. + */ + 'legs'?: Array | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "passengerNameRecord", + "baseName": "passenger_name_record", + "type": "string" + }, + { + "name": "bookingCode", + "baseName": "booking_code", + "type": "string" + }, + { + "name": "ticketNumber", + "baseName": "ticket_number", + "type": "string" + }, + { + "name": "ticketDeliveryMethod", + "baseName": "ticket_delivery_method", + "type": "CheckoutSessionAirline.TicketDeliveryMethodEnum" + }, + { + "name": "issuedAt", + "baseName": "issued_at", + "type": "Date" + }, + { + "name": "issuedAddress", + "baseName": "issued_address", + "type": "string" + }, + { + "name": "travelAgencyCode", + "baseName": "travel_agency_code", + "type": "string" + }, + { + "name": "travelAgencyName", + "baseName": "travel_agency_name", + "type": "string" + }, + { + "name": "travelAgencyInvoiceNumber", + "baseName": "travel_agency_invoice_number", + "type": "string" + }, + { + "name": "travelAgencyPlanName", + "baseName": "travel_agency_plan_name", + "type": "string" + }, + { + "name": "restrictedTicket", + "baseName": "restricted_ticket", + "type": "boolean" + }, + { + "name": "issuingCarrierCode", + "baseName": "issuing_carrier_code", + "type": "string" + }, + { + "name": "reservationSystem", + "baseName": "reservation_system", + "type": "string" + }, + { + "name": "passengers", + "baseName": "passengers", + "type": "Array" + }, + { + "name": "legs", + "baseName": "legs", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutSessionAirline.attributeTypeMap; + } +} + +export namespace CheckoutSessionAirline { + export enum TicketDeliveryMethodEnum { + Electronic = 'electronic', + Other = 'other' + } +} diff --git a/model/checkoutSessionCreateRequest.ts b/model/checkoutSessionCreateRequest.ts index 0cf77b4..c7c6584 100644 --- a/model/checkoutSessionCreateRequest.ts +++ b/model/checkoutSessionCreateRequest.ts @@ -12,12 +12,17 @@ import { RequestFile } from './models'; import { CartItem } from './cartItem'; +import { CheckoutSessionCreateRequestAirline } from './checkoutSessionCreateRequestAirline'; import { TransactionBuyerRequest } from './transactionBuyerRequest'; /** * A request to create a checkout session. */ export class CheckoutSessionCreateRequest { + /** + * Defines when the checkout session will expire (in seconds). Defaults to an hour (3600 seconds). + */ + 'expiresIn'?: number = 3600; /** * An array of cart items that represents the line items of a transaction. */ @@ -26,11 +31,17 @@ export class CheckoutSessionCreateRequest { * Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. */ 'metadata'?: { [key: string]: string; } | null; + 'airline'?: CheckoutSessionCreateRequestAirline | null; 'buyer'?: TransactionBuyerRequest; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "expiresIn", + "baseName": "expires_in", + "type": "number" + }, { "name": "cartItems", "baseName": "cart_items", @@ -41,6 +52,11 @@ export class CheckoutSessionCreateRequest { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "airline", + "baseName": "airline", + "type": "CheckoutSessionCreateRequestAirline" + }, { "name": "buyer", "baseName": "buyer", diff --git a/model/checkoutSessionCreateRequestAirline.ts b/model/checkoutSessionCreateRequestAirline.ts new file mode 100644 index 0000000..9f0abb9 --- /dev/null +++ b/model/checkoutSessionCreateRequestAirline.ts @@ -0,0 +1,171 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { AirlineLeg } from './airlineLeg'; +import { AirlinePassenger } from './airlinePassenger'; + +/** +* The airline addendum data which describes the airline booking associated with this transaction. +*/ +export class CheckoutSessionCreateRequestAirline { + /** + * The Passenger Name Record (PNR) in the airline reservation system. + */ + 'passengerNameRecord'?: string | null; + /** + * The unique identifier of the reservation in the global distribution system. + */ + 'bookingCode'?: string | null; + /** + * The airline\'s unique ticket number. + */ + 'ticketNumber'?: string | null; + /** + * The delivery method of the ticket. + */ + 'ticketDeliveryMethod'?: CheckoutSessionCreateRequestAirline.TicketDeliveryMethodEnum = CheckoutSessionCreateRequestAirline.TicketDeliveryMethodEnum.Electronic; + /** + * The date that the ticket was last issued in the airline reservation system. + */ + 'issuedAt'?: Date | null; + /** + * The address of the place/agency that issued the ticket. + */ + 'issuedAddress'?: string | null; + /** + * The IATA travel agency code. + */ + 'travelAgencyCode'?: string | null; + /** + * The name of the travel agency. + */ + 'travelAgencyName'?: string | null; + /** + * The reference number of the invoice that was issued by the travel agency. + */ + 'travelAgencyInvoiceNumber'?: string | null; + /** + * The name of the travel agency plan. + */ + 'travelAgencyPlanName'?: string | null; + /** + * Indicates whether the ticket is restricted (refundable). + */ + 'restrictedTicket'?: boolean | null; + /** + * For airline aggregators, two-character IATA code of the airline issuing the ticket. + */ + 'issuingCarrierCode'?: string | null; + /** + * The name of the reservation system. + */ + 'reservationSystem'?: string | null; + /** + * An array of the travelling passengers. + */ + 'passengers'?: Array | null; + /** + * An array of separate trip segments. Each leg contains detailed itinerary information. + */ + 'legs'?: Array | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "passengerNameRecord", + "baseName": "passenger_name_record", + "type": "string" + }, + { + "name": "bookingCode", + "baseName": "booking_code", + "type": "string" + }, + { + "name": "ticketNumber", + "baseName": "ticket_number", + "type": "string" + }, + { + "name": "ticketDeliveryMethod", + "baseName": "ticket_delivery_method", + "type": "CheckoutSessionCreateRequestAirline.TicketDeliveryMethodEnum" + }, + { + "name": "issuedAt", + "baseName": "issued_at", + "type": "Date" + }, + { + "name": "issuedAddress", + "baseName": "issued_address", + "type": "string" + }, + { + "name": "travelAgencyCode", + "baseName": "travel_agency_code", + "type": "string" + }, + { + "name": "travelAgencyName", + "baseName": "travel_agency_name", + "type": "string" + }, + { + "name": "travelAgencyInvoiceNumber", + "baseName": "travel_agency_invoice_number", + "type": "string" + }, + { + "name": "travelAgencyPlanName", + "baseName": "travel_agency_plan_name", + "type": "string" + }, + { + "name": "restrictedTicket", + "baseName": "restricted_ticket", + "type": "boolean" + }, + { + "name": "issuingCarrierCode", + "baseName": "issuing_carrier_code", + "type": "string" + }, + { + "name": "reservationSystem", + "baseName": "reservation_system", + "type": "string" + }, + { + "name": "passengers", + "baseName": "passengers", + "type": "Array" + }, + { + "name": "legs", + "baseName": "legs", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutSessionCreateRequestAirline.attributeTypeMap; + } +} + +export namespace CheckoutSessionCreateRequestAirline { + export enum TicketDeliveryMethodEnum { + Electronic = 'electronic', + Other = 'other' + } +} diff --git a/model/checkoutSessionPaymentMethodDetails.ts b/model/checkoutSessionPaymentMethodDetails.ts index 47b0dc7..b40b94c 100644 --- a/model/checkoutSessionPaymentMethodDetails.ts +++ b/model/checkoutSessionPaymentMethodDetails.ts @@ -22,6 +22,10 @@ export class CheckoutSessionPaymentMethodDetails { * ISO 3166 two letter country code. */ 'cardCountry'?: string | null; + /** + * The name of the card issuer. + */ + 'cardIssuerName'?: string | null; static discriminator: string | undefined = undefined; @@ -40,6 +44,11 @@ export class CheckoutSessionPaymentMethodDetails { "name": "cardCountry", "baseName": "card_country", "type": "string" + }, + { + "name": "cardIssuerName", + "baseName": "card_issuer_name", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/checkoutSessionUpdateRequest.ts b/model/checkoutSessionUpdateRequest.ts index 01c542f..8729755 100644 --- a/model/checkoutSessionUpdateRequest.ts +++ b/model/checkoutSessionUpdateRequest.ts @@ -12,6 +12,7 @@ import { RequestFile } from './models'; import { CartItem } from './cartItem'; +import { CheckoutSessionCreateRequestAirline } from './checkoutSessionCreateRequestAirline'; /** * A request to update a checkout session. @@ -25,6 +26,7 @@ export class CheckoutSessionUpdateRequest { * Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. */ 'metadata'?: { [key: string]: string; } | null; + 'airline'?: CheckoutSessionCreateRequestAirline | null; static discriminator: string | undefined = undefined; @@ -38,6 +40,11 @@ export class CheckoutSessionUpdateRequest { "name": "metadata", "baseName": "metadata", "type": "{ [key: string]: string; }" + }, + { + "name": "airline", + "baseName": "airline", + "type": "CheckoutSessionCreateRequestAirline" } ]; static getAttributeTypeMap() { diff --git a/model/connectionOptions.ts b/model/connectionOptions.ts index 501a5cf..f337412 100644 --- a/model/connectionOptions.ts +++ b/model/connectionOptions.ts @@ -12,13 +12,17 @@ import { RequestFile } from './models'; import { ConnectionOptionsAdyenCard } from './connectionOptionsAdyenCard'; +import { ConnectionOptionsAdyenSepa } from './connectionOptionsAdyenSepa'; import { ConnectionOptionsCybersourceAntiFraud } from './connectionOptionsCybersourceAntiFraud'; import { ConnectionOptionsCybersourceCard } from './connectionOptionsCybersourceCard'; import { ConnectionOptionsCybersourceIdeal } from './connectionOptionsCybersourceIdeal'; import { ConnectionOptionsCybersourceKcp } from './connectionOptionsCybersourceKcp'; +import { ConnectionOptionsFiservCard } from './connectionOptionsFiservCard'; import { ConnectionOptionsForterAntiFraud } from './connectionOptionsForterAntiFraud'; import { ConnectionOptionsGivingblockGivingblock } from './connectionOptionsGivingblockGivingblock'; +import { ConnectionOptionsLatitudeLatitude } from './connectionOptionsLatitudeLatitude'; import { ConnectionOptionsPaypalPaypal } from './connectionOptionsPaypalPaypal'; +import { ConnectionOptionsPowertranzCard } from './connectionOptionsPowertranzCard'; import { ConnectionOptionsStripeCard } from './connectionOptionsStripeCard'; export class ConnectionOptions { @@ -29,9 +33,16 @@ export class ConnectionOptions { 'givingblockGivingblock'?: ConnectionOptionsGivingblockGivingblock | null; 'forterAntiFraud'?: ConnectionOptionsForterAntiFraud | null; 'adyenCard'?: ConnectionOptionsAdyenCard | null; + 'adyenSepa'?: ConnectionOptionsAdyenSepa | null; 'paypalPaypal'?: ConnectionOptionsPaypalPaypal | null; 'paypalPaypalpaylater'?: ConnectionOptionsPaypalPaypal | null; + 'powertranzCard'?: ConnectionOptionsPowertranzCard | null; 'stripeCard'?: ConnectionOptionsStripeCard | null; + 'fiservCard'?: ConnectionOptionsFiservCard | null; + 'latitudeLatitude'?: ConnectionOptionsLatitudeLatitude | null; + 'latitudeLatitudeds'?: ConnectionOptionsLatitudeLatitude | null; + 'gemGem'?: ConnectionOptionsLatitudeLatitude | null; + 'gemGemds'?: ConnectionOptionsLatitudeLatitude | null; static discriminator: string | undefined = undefined; @@ -71,6 +82,11 @@ export class ConnectionOptions { "baseName": "adyen-card", "type": "ConnectionOptionsAdyenCard" }, + { + "name": "adyenSepa", + "baseName": "adyen-sepa", + "type": "ConnectionOptionsAdyenSepa" + }, { "name": "paypalPaypal", "baseName": "paypal-paypal", @@ -81,10 +97,40 @@ export class ConnectionOptions { "baseName": "paypal-paypalpaylater", "type": "ConnectionOptionsPaypalPaypal" }, + { + "name": "powertranzCard", + "baseName": "powertranz-card", + "type": "ConnectionOptionsPowertranzCard" + }, { "name": "stripeCard", "baseName": "stripe-card", "type": "ConnectionOptionsStripeCard" + }, + { + "name": "fiservCard", + "baseName": "fiserv-card", + "type": "ConnectionOptionsFiservCard" + }, + { + "name": "latitudeLatitude", + "baseName": "latitude-latitude", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "latitudeLatitudeds", + "baseName": "latitude-latitudeds", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "gemGem", + "baseName": "gem-gem", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "gemGemds", + "baseName": "gem-gemds", + "type": "ConnectionOptionsLatitudeLatitude" } ]; static getAttributeTypeMap() { diff --git a/model/connectionOptionsAdyenCard.ts b/model/connectionOptionsAdyenCard.ts index 2ba8382..9a8a886 100644 --- a/model/connectionOptionsAdyenCard.ts +++ b/model/connectionOptionsAdyenCard.ts @@ -20,6 +20,18 @@ export class ConnectionOptionsAdyenCard { * A key-value object representing additional data to be passed to Adyen. */ 'additionalData'?: { [key: string]: string; }; + /** + * Enabled Adyen\'s auto-rescue feature. + */ + 'autoRescue'?: boolean = false; + /** + * Defines the number of days to auto-retry a payment for if `autoRescue` is enabled. + */ + 'maxDaysToRescue'?: number | null; + /** + * Defines the Adyen auto-rescue test scenario to invoke. + */ + 'autoRescueScenario'?: string | null; static discriminator: string | undefined = undefined; @@ -28,6 +40,21 @@ export class ConnectionOptionsAdyenCard { "name": "additionalData", "baseName": "additionalData", "type": "{ [key: string]: string; }" + }, + { + "name": "autoRescue", + "baseName": "autoRescue", + "type": "boolean" + }, + { + "name": "maxDaysToRescue", + "baseName": "maxDaysToRescue", + "type": "number" + }, + { + "name": "autoRescueScenario", + "baseName": "autoRescueScenario", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/connectionOptionsAdyenSepa.ts b/model/connectionOptionsAdyenSepa.ts new file mode 100644 index 0000000..9c2393d --- /dev/null +++ b/model/connectionOptionsAdyenSepa.ts @@ -0,0 +1,64 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Additional options to be passed through to Adyen when processing SEPA transactions. +*/ +export class ConnectionOptionsAdyenSepa { + /** + * Enabled Adyen\'s auto-rescue feature. + */ + 'autoRescue'?: boolean = false; + /** + * Defines the number of days to auto-retry a payment for if `autoRescue` is enabled. + */ + 'maxDaysToRescue'?: number | null; + /** + * Defines the Adyen auto-rescue test scenario to invoke. + */ + 'autoRescueSepaScenario'?: string | null; + /** + * Defines the type of chargeback that you want to simulate. + */ + 'ownerName'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "autoRescue", + "baseName": "autoRescue", + "type": "boolean" + }, + { + "name": "maxDaysToRescue", + "baseName": "maxDaysToRescue", + "type": "number" + }, + { + "name": "autoRescueSepaScenario", + "baseName": "autoRescueSepaScenario", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ConnectionOptionsAdyenSepa.attributeTypeMap; + } +} + diff --git a/model/connectionOptionsCybersourceAntiFraud.ts b/model/connectionOptionsCybersourceAntiFraud.ts index 6385b1d..744fd3e 100644 --- a/model/connectionOptionsCybersourceAntiFraud.ts +++ b/model/connectionOptionsCybersourceAntiFraud.ts @@ -21,7 +21,7 @@ export class ConnectionOptionsCybersourceAntiFraud { */ 'metaKeyMerchantId'?: string | null; /** - * This is a key-value object for merchant defined data. Each key needs to be a numeric string identifying the MDD field to set. For example, for field 1 set the key to \"1\". + * This is a key-value object for merchant defined data. Each key needs to be a numeric string identifying the MDD field to set. For example, for field 1 set the key to \"1\". Please avoid fields \"31\", \"48\", \"50\"-\"56\" and \"63\"-\"76\" as these are auto-populated based on the transaction profile. */ 'merchantDefinedData'?: { [key: string]: string; }; /** diff --git a/model/connectionOptionsFiservCard.ts b/model/connectionOptionsFiservCard.ts new file mode 100644 index 0000000..66eeeb9 --- /dev/null +++ b/model/connectionOptionsFiservCard.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { ConnectionOptionsFiservCardInstallmentOptions } from './connectionOptionsFiservCardInstallmentOptions'; + +/** +* Additional options for Fiserv IPG payment gateway. +*/ +export class ConnectionOptionsFiservCard { + 'installmentOptions'?: ConnectionOptionsFiservCardInstallmentOptions | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "ConnectionOptionsFiservCardInstallmentOptions" + } ]; + + static getAttributeTypeMap() { + return ConnectionOptionsFiservCard.attributeTypeMap; + } +} + diff --git a/model/connectionOptionsFiservCardInstallmentOptions.ts b/model/connectionOptionsFiservCardInstallmentOptions.ts new file mode 100644 index 0000000..132a8ee --- /dev/null +++ b/model/connectionOptionsFiservCardInstallmentOptions.ts @@ -0,0 +1,64 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Fiserv installment options. +*/ +export class ConnectionOptionsFiservCardInstallmentOptions { + /** + * Number of installments for a sale transaction if the customer pays the total amount in multiple transactions. + */ + 'numberOfInstallments'?: number | null; + /** + * Indicates whether the installment interest amount has been applied. + */ + 'installmentsInterest'?: boolean | null; + /** + * The number of months the first installment payment will be delayed. + */ + 'installmentDelayMonths'?: number | null; + /** + * Indicates if the merchant supports merchant advice code (MAC) in order to receive table 55 code for a declined recurring transaction. + */ + 'merchantAdviceCodeSupported'?: boolean | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "numberOfInstallments", + "baseName": "numberOfInstallments", + "type": "number" + }, + { + "name": "installmentsInterest", + "baseName": "installmentsInterest", + "type": "boolean" + }, + { + "name": "installmentDelayMonths", + "baseName": "installmentDelayMonths", + "type": "number" + }, + { + "name": "merchantAdviceCodeSupported", + "baseName": "merchantAdviceCodeSupported", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ConnectionOptionsFiservCardInstallmentOptions.attributeTypeMap; + } +} + diff --git a/model/connectionOptionsLatitudeLatitude.ts b/model/connectionOptionsLatitudeLatitude.ts new file mode 100644 index 0000000..7047892 --- /dev/null +++ b/model/connectionOptionsLatitudeLatitude.ts @@ -0,0 +1,37 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Additional options to be passed through to Latitude/Gem when processing transactions. +*/ +export class ConnectionOptionsLatitudeLatitude { + /** + * The promotion reference. + */ + 'promotionReference'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "promotionReference", + "baseName": "promotion_reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ConnectionOptionsLatitudeLatitude.attributeTypeMap; + } +} + diff --git a/model/connectionOptionsPowertranzCard.ts b/model/connectionOptionsPowertranzCard.ts new file mode 100644 index 0000000..21a9832 --- /dev/null +++ b/model/connectionOptionsPowertranzCard.ts @@ -0,0 +1,37 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Additional options to be passed through to Powertranz when processing transactions. +*/ +export class ConnectionOptionsPowertranzCard { + /** + * Allows skipping of 3DS. Without this, every transaction will be sent via Powertranz\'s 3DS server, even though 3DS might not be triggered. + */ + 'skipThreeDSecure'?: boolean = false; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "skipThreeDSecure", + "baseName": "skipThreeDSecure", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ConnectionOptionsPowertranzCard.attributeTypeMap; + } +} + diff --git a/model/detailedSettlementReportSpec.ts b/model/detailedSettlementReportSpec.ts new file mode 100644 index 0000000..a79c711 --- /dev/null +++ b/model/detailedSettlementReportSpec.ts @@ -0,0 +1,49 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { DetailedSettlementReportSpecParams } from './detailedSettlementReportSpecParams'; + +/** +* The specification of a detailed settlement report. +*/ +export class DetailedSettlementReportSpec { + /** + * The model (dataset) that the data used for the report is retrieved from. + */ + 'model': DetailedSettlementReportSpec.ModelEnum; + 'params': DetailedSettlementReportSpecParams; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "model", + "baseName": "model", + "type": "DetailedSettlementReportSpec.ModelEnum" + }, + { + "name": "params", + "baseName": "params", + "type": "DetailedSettlementReportSpecParams" + } ]; + + static getAttributeTypeMap() { + return DetailedSettlementReportSpec.attributeTypeMap; + } +} + +export namespace DetailedSettlementReportSpec { + export enum ModelEnum { + DetailedSettlement = 'detailed_settlement' + } +} diff --git a/model/detailedSettlementReportSpecParams.ts b/model/detailedSettlementReportSpecParams.ts new file mode 100644 index 0000000..5f9728c --- /dev/null +++ b/model/detailedSettlementReportSpecParams.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { DetailedSettlementReportSpecParamsFilters } from './detailedSettlementReportSpecParamsFilters'; + +/** +* Parameters used to configure the report. +*/ +export class DetailedSettlementReportSpecParams { + 'filters'?: DetailedSettlementReportSpecParamsFilters; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "filters", + "baseName": "filters", + "type": "DetailedSettlementReportSpecParamsFilters" + } ]; + + static getAttributeTypeMap() { + return DetailedSettlementReportSpecParams.attributeTypeMap; + } +} + diff --git a/model/detailedSettlementReportSpecParamsFilters.ts b/model/detailedSettlementReportSpecParamsFilters.ts new file mode 100644 index 0000000..cf526fa --- /dev/null +++ b/model/detailedSettlementReportSpecParamsFilters.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { DetailedSettlementReportSpecParamsFiltersIngestedAt } from './detailedSettlementReportSpecParamsFiltersIngestedAt'; + +/** +* The filters for the report. +*/ +export class DetailedSettlementReportSpecParamsFilters { + 'ingestedAt'?: DetailedSettlementReportSpecParamsFiltersIngestedAt; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ingestedAt", + "baseName": "ingested_at", + "type": "DetailedSettlementReportSpecParamsFiltersIngestedAt" + } ]; + + static getAttributeTypeMap() { + return DetailedSettlementReportSpecParamsFilters.attributeTypeMap; + } +} + diff --git a/model/detailedSettlementReportSpecParamsFiltersIngestedAt.ts b/model/detailedSettlementReportSpecParamsFiltersIngestedAt.ts new file mode 100644 index 0000000..1987ae9 --- /dev/null +++ b/model/detailedSettlementReportSpecParamsFiltersIngestedAt.ts @@ -0,0 +1,54 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the data was ingested to filter by. +*/ +export class DetailedSettlementReportSpecParamsFiltersIngestedAt { + /** + * The starting boundary for when the data was ingested as a date-time placeholder value. + */ + 'start'?: DetailedSettlementReportSpecParamsFiltersIngestedAt.StartEnum; + /** + * The ending boundary for when the data was ingested as a date-time placeholder value. + */ + 'end'?: DetailedSettlementReportSpecParamsFiltersIngestedAt.EndEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "DetailedSettlementReportSpecParamsFiltersIngestedAt.StartEnum" + }, + { + "name": "end", + "baseName": "end", + "type": "DetailedSettlementReportSpecParamsFiltersIngestedAt.EndEnum" + } ]; + + static getAttributeTypeMap() { + return DetailedSettlementReportSpecParamsFiltersIngestedAt.attributeTypeMap; + } +} + +export namespace DetailedSettlementReportSpecParamsFiltersIngestedAt { + export enum StartEnum { + DayStart = 'day_start' + } + export enum EndEnum { + DayEnd = 'day_end' + } +} diff --git a/model/giftCardBuyer.ts b/model/giftCardBuyer.ts index 97aa6b8..a4c7ca9 100644 --- a/model/giftCardBuyer.ts +++ b/model/giftCardBuyer.ts @@ -46,6 +46,10 @@ export class GiftCardBuyer { * The date and time when this buyer was last updated in our system. */ 'updatedAt'?: Date; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -89,6 +93,11 @@ export class GiftCardBuyer { "name": "updatedAt", "baseName": "updated_at", "type": "Date" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/merchant.ts b/model/merchant.ts new file mode 100644 index 0000000..c4d20cd --- /dev/null +++ b/model/merchant.ts @@ -0,0 +1,100 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { MerchantAddress } from './merchantAddress'; + +export class Merchant { + /** + * The type of this resource. Is always `merchant`. + */ + 'type'?: Merchant.TypeEnum; + /** + * The name of the merchant. + */ + 'name'?: string; + /** + * Unique value which identifies a merchant for processing transactions, also known as a MID. + */ + 'identificationNumber'?: string; + /** + * The phone number for the merchant which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber'?: string; + /** + * Merchant website URL. + */ + 'url'?: string; + /** + * Value to explain charges or payments on bank statements. + */ + 'statementDescriptor'?: string; + /** + * Merchant classification for the type of goods or services it provides. + */ + 'merchantCategoryCode'?: string; + 'address'?: MerchantAddress | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "Merchant.TypeEnum" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "identificationNumber", + "baseName": "identification_number", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "string" + }, + { + "name": "merchantCategoryCode", + "baseName": "merchant_category_code", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "MerchantAddress" + } ]; + + static getAttributeTypeMap() { + return Merchant.attributeTypeMap; + } +} + +export namespace Merchant { + export enum TypeEnum { + Merchant = 'merchant' + } +} diff --git a/model/merchantAccount.ts b/model/merchantAccount.ts index 3ee99a7..91d6cd6 100644 --- a/model/merchantAccount.ts +++ b/model/merchantAccount.ts @@ -74,6 +74,26 @@ export class MerchantAccount { */ 'loonAcceptedSchemes'?: Array; /** + * Whether the Realtime Account Updater service is enabled for this merchant account. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `false`, the Account Updater service doesn\'t get called if a payment fails with expired or invalid card details. * If the field is set to `true`, the service is called. Please note that for this to work the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterEnabled'?: boolean = false; + /** + * The public key used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKey'?: string | null; + /** + * The public key ID used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKeyId'?: string | null; + /** + * The private key used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKey'?: string | null; + /** + * The private key ID used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKeyId'?: string | null; + /** * The date and time when this merchant account was created. */ 'createdAt'?: Date; @@ -81,6 +101,14 @@ export class MerchantAccount { * The date and time when this merchant account was updated. */ 'updatedAt'?: Date; + /** + * The maximum monetary amount allowed for over-capture, in the smallest currency unit, for example `1299` cents to allow for an over-capture of `$12.99`. + */ + 'overCaptureAmount'?: number | null; + /** + * The maximum percentage allowed for over-capture, for example `25` to allow for an over-capture of 25% of the original transaction amount. + */ + 'overCapturePercentage'?: number | null; static discriminator: string | undefined = undefined; @@ -160,6 +188,31 @@ export class MerchantAccount { "baseName": "loon_accepted_schemes", "type": "Array" }, + { + "name": "accountUpdaterEnabled", + "baseName": "account_updater_enabled", + "type": "boolean" + }, + { + "name": "accountUpdaterRequestEncryptionKey", + "baseName": "account_updater_request_encryption_key", + "type": "string" + }, + { + "name": "accountUpdaterRequestEncryptionKeyId", + "baseName": "account_updater_request_encryption_key_id", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKey", + "baseName": "account_updater_response_decryption_key", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKeyId", + "baseName": "account_updater_response_decryption_key_id", + "type": "string" + }, { "name": "createdAt", "baseName": "created_at", @@ -169,6 +222,16 @@ export class MerchantAccount { "name": "updatedAt", "baseName": "updated_at", "type": "Date" + }, + { + "name": "overCaptureAmount", + "baseName": "over_capture_amount", + "type": "number" + }, + { + "name": "overCapturePercentage", + "baseName": "over_capture_percentage", + "type": "number" } ]; static getAttributeTypeMap() { diff --git a/model/merchantAccountCreate.ts b/model/merchantAccountCreate.ts index 3f454fb..f55225b 100644 --- a/model/merchantAccountCreate.ts +++ b/model/merchantAccountCreate.ts @@ -72,6 +72,34 @@ export class MerchantAccountCreate { * Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service used by Gr4vy. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get configured. * If the field is set to `null`, the other `loon_*` fields must be set to `null` as well. */ 'loonAcceptedSchemes'?: Array; + /** + * The maximum monetary amount allowed for over-capture, in the smallest currency unit, for example `1299` cents to allow for an over-capture of `$12.99`. + */ + 'overCaptureAmount'?: number | null; + /** + * The maximum percentage allowed for over-capture, for example `25` to allow for an over-capture of 25% of the original transaction amount. + */ + 'overCapturePercentage'?: number | null; + /** + * Whether the Realtime Account Updater service is enabled for this merchant account. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `false`, the Account Updater service doesn\'t get called if a payment fails with expired or invalid card details. * If the field is set to `true`, the service is called. Please note that for this to work the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterEnabled'?: boolean = false; + /** + * The public key used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKey'?: string | null; + /** + * The public key ID used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKeyId'?: string | null; + /** + * The private key used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKey'?: string | null; + /** + * The private key ID used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKeyId'?: string | null; static discriminator: string | undefined = undefined; @@ -145,6 +173,41 @@ export class MerchantAccountCreate { "name": "loonAcceptedSchemes", "baseName": "loon_accepted_schemes", "type": "Array" + }, + { + "name": "overCaptureAmount", + "baseName": "over_capture_amount", + "type": "number" + }, + { + "name": "overCapturePercentage", + "baseName": "over_capture_percentage", + "type": "number" + }, + { + "name": "accountUpdaterEnabled", + "baseName": "account_updater_enabled", + "type": "boolean" + }, + { + "name": "accountUpdaterRequestEncryptionKey", + "baseName": "account_updater_request_encryption_key", + "type": "string" + }, + { + "name": "accountUpdaterRequestEncryptionKeyId", + "baseName": "account_updater_request_encryption_key_id", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKey", + "baseName": "account_updater_response_decryption_key", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKeyId", + "baseName": "account_updater_response_decryption_key_id", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/merchantAccountUpdate.ts b/model/merchantAccountUpdate.ts index a5ce601..5348160 100644 --- a/model/merchantAccountUpdate.ts +++ b/model/merchantAccountUpdate.ts @@ -68,6 +68,34 @@ export class MerchantAccountUpdate { * Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service used by Gr4vy. * If the field is not set, the Account Updater service configuration is not updated. * If the field is set to `null`, the Account Updater service is disabled. * If the field is set to `null`, the other `loon_*` fields must be set to `null` as well. */ 'loonAcceptedSchemes'?: Array; + /** + * The maximum monetary amount allowed for over-capture, in the smallest currency unit, for example `1299` cents to allow for an over-capture of `$12.99`. + */ + 'overCaptureAmount'?: number | null; + /** + * The maximum percentage allowed for over-capture, for example `25` to allow for an over-capture of 25% of the original transaction amount. + */ + 'overCapturePercentage'?: number | null; + /** + * Whether the Realtime Account Updater service is enabled for this merchant account. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `false`, the Account Updater service doesn\'t get called if a payment fails with expired or invalid card details. * If the field is set to `true`, the service is called. Please note that for this to work the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterEnabled'?: boolean = false; + /** + * The public key used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKey'?: string | null; + /** + * The public key ID used to encrypt the request to the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterRequestEncryptionKeyId'?: string | null; + /** + * The private key used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKey'?: string | null; + /** + * The private key ID used to decrypt the response from the Realtime Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. * If the field is not set or if it\'s set to `null`, the Account Updater service doesn\'t get called. * If the field is set, the other `account_updater_*` fields must be set as well. + */ + 'accountUpdaterResponseDecryptionKeyId'?: string | null; static discriminator: string | undefined = undefined; @@ -136,6 +164,41 @@ export class MerchantAccountUpdate { "name": "loonAcceptedSchemes", "baseName": "loon_accepted_schemes", "type": "Array" + }, + { + "name": "overCaptureAmount", + "baseName": "over_capture_amount", + "type": "number" + }, + { + "name": "overCapturePercentage", + "baseName": "over_capture_percentage", + "type": "number" + }, + { + "name": "accountUpdaterEnabled", + "baseName": "account_updater_enabled", + "type": "boolean" + }, + { + "name": "accountUpdaterRequestEncryptionKey", + "baseName": "account_updater_request_encryption_key", + "type": "string" + }, + { + "name": "accountUpdaterRequestEncryptionKeyId", + "baseName": "account_updater_request_encryption_key_id", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKey", + "baseName": "account_updater_response_decryption_key", + "type": "string" + }, + { + "name": "accountUpdaterResponseDecryptionKeyId", + "baseName": "account_updater_response_decryption_key_id", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/merchantAddress.ts b/model/merchantAddress.ts new file mode 100644 index 0000000..f906dd7 --- /dev/null +++ b/model/merchantAddress.ts @@ -0,0 +1,109 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The address for the merchant. +*/ +export class MerchantAddress { + /** + * The city for the address. + */ + 'city'?: string | null; + /** + * The country for the address in ISO 3166 format. + */ + 'country'?: string | null; + /** + * The postal code or zip code for the address. + */ + 'postalCode'?: string | null; + /** + * The state, county, or province for the address. + */ + 'state'?: string | null; + /** + * The code of state, county, or province for the address in ISO 3166-2 format. + */ + 'stateCode'?: string | null; + /** + * The house number or name for the address. Not all payment services use this field but some do. + */ + 'houseNumberOrName'?: string | null; + /** + * The first line of the address. + */ + 'line1'?: string | null; + /** + * The second line of the address. + */ + 'line2'?: string | null; + /** + * The optional name of the company or organisation to add to the address. + */ + 'organization'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postal_code", + "type": "string" + }, + { + "name": "state", + "baseName": "state", + "type": "string" + }, + { + "name": "stateCode", + "baseName": "state_code", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "house_number_or_name", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "organization", + "baseName": "organization", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantAddress.attributeTypeMap; + } +} + diff --git a/model/merchantRequest.ts b/model/merchantRequest.ts new file mode 100644 index 0000000..f6070eb --- /dev/null +++ b/model/merchantRequest.ts @@ -0,0 +1,89 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { MerchantAddress } from './merchantAddress'; + +/** +* Details of the merchant. +*/ +export class MerchantRequest { + /** + * The name of the merchant. + */ + 'name': string; + /** + * Unique value which identifies a merchant for processing transactions, also known as a MID. + */ + 'identificationNumber': string; + /** + * The phone number for the merchant which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber': string; + /** + * Merchant website URL. + */ + 'url': string; + /** + * Value to explain charges or payments on bank statements. + */ + 'statementDescriptor': string; + /** + * Merchant classification for the type of goods or services it provides. + */ + 'merchantCategoryCode': string; + 'address'?: MerchantAddress | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "identificationNumber", + "baseName": "identification_number", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "string" + }, + { + "name": "merchantCategoryCode", + "baseName": "merchant_category_code", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "MerchantAddress" + } ]; + + static getAttributeTypeMap() { + return MerchantRequest.attributeTypeMap; + } +} + diff --git a/model/models.ts b/model/models.ts index 75f726c..a6ed167 100644 --- a/model/models.ts +++ b/model/models.ts @@ -1,1466 +1,1934 @@ -import localVarRequest from 'request'; +import localVarRequest from 'request' -export * from './aPIKeyPairCreate'; -export * from './aPIKeyPairUpdate'; -export * from './accountUpdaterInquirySummary'; -export * from './accountUpdaterJob'; -export * from './accountUpdaterJobCreate'; -export * from './address'; -export * from './antiFraudDecisionErrorEvent'; -export * from './antiFraudDecisionErrorEventContext'; -export * from './antiFraudDecisionEvent'; -export * from './antiFraudDecisionEventContext'; -export * from './antiFraudDecisionSkippedEvent'; -export * from './antiFraudDecisionSkippedEventContext'; -export * from './antiFraudDecisionUpdateErrorEvent'; -export * from './antiFraudDecisionUpdateErrorEventContext'; -export * from './antiFraudDecisionUpdateEvent'; -export * from './antiFraudDecisionUpdateEventContext'; -export * from './antiFraudServiceCreate'; -export * from './antiFraudServiceDefinition'; -export * from './antiFraudServiceDefinitionFieldsInner'; -export * from './antiFraudServiceUpdate'; -export * from './antiFraudServiceUpdateFieldsInner'; -export * from './antiFraudTransactionStatusUpdateErrorEvent'; -export * from './antiFraudTransactionStatusUpdateErrorEventContext'; -export * from './antiFraudTransactionStatusUpdateEvent'; -export * from './antiFraudTransactionStatusUpdateEventContext'; -export * from './antiFraudWebhookEvent'; -export * from './antiFraudWebhookEventContext'; -export * from './apiLog'; -export * from './apiLogResponseBody'; -export * from './apiLogResponseBodyDetails'; -export * from './apiLogs'; -export * from './applePayRequest'; -export * from './applePaySessionRequest'; -export * from './auditLog'; -export * from './auditLogResource'; -export * from './auditLogUser'; -export * from './auditLogs'; -export * from './bINLookupRequest'; -export * from './bINLookupRequestContext'; -export * from './billingDetails'; -export * from './billingDetailsAddress'; -export * from './billingDetailsRequest'; -export * from './billingDetailsRequestAddress'; -export * from './billingDetailsRequestTaxId'; -export * from './billingDetailsTaxId'; -export * from './billingDetailsUpdateRequest'; -export * from './billingDetailsUpdateRequestAddress'; -export * from './browserInfo'; -export * from './buyer'; -export * from './buyerBillingDetails'; -export * from './buyerRequest'; -export * from './buyerRequestBillingDetails'; -export * from './buyerSnapshot'; -export * from './buyerSnapshotBillingDetails'; -export * from './buyerUpdate'; -export * from './buyerUpdateBillingDetails'; -export * from './buyers'; -export * from './cardDetails'; -export * from './cardRequest'; -export * from './cardSchemeDefinition'; -export * from './cardSchemeDefinitions'; -export * from './cartItem'; -export * from './checkoutSession'; -export * from './checkoutSessionCreateRequest'; -export * from './checkoutSessionPaymentMethod'; -export * from './checkoutSessionPaymentMethodDetails'; -export * from './checkoutSessionRequest'; -export * from './checkoutSessionUpdateRequest'; -export * from './clickToPaySessionRequest'; -export * from './connection'; -export * from './connectionDefinition'; -export * from './connectionDefinitions'; -export * from './connectionOptions'; -export * from './connectionOptionsAdyenCard'; -export * from './connectionOptionsCybersourceAntiFraud'; -export * from './connectionOptionsCybersourceCard'; -export * from './connectionOptionsCybersourceIdeal'; -export * from './connectionOptionsCybersourceKcp'; -export * from './connectionOptionsForterAntiFraud'; -export * from './connectionOptionsForterAntiFraudCartItemsInner'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBasicItemData'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner'; -export * from './connectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails'; -export * from './connectionOptionsForterAntiFraudTotalDiscount'; -export * from './connectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount'; -export * from './connectionOptionsGivingblockGivingblock'; -export * from './connectionOptionsPaypalPaypal'; -export * from './connectionOptionsPaypalPaypalAdditionalDataInner'; -export * from './connectionOptionsStripeCard'; -export * from './connectionOptionsStripeCardStripeConnect'; -export * from './connections'; -export * from './cryptogram'; -export * from './digitalWallet'; -export * from './digitalWalletApplePayTokenDecrypted'; -export * from './digitalWalletApplePayTokenDecryptedContext'; -export * from './digitalWalletClickToPayFields'; -export * from './digitalWalletClickToPayTokenDecrypted'; -export * from './digitalWalletClickToPayTokenDecryptedContext'; -export * from './digitalWalletDomain'; -export * from './digitalWalletGooglePayTokenDecrypted'; -export * from './digitalWalletGooglePayTokenDecryptedContext'; -export * from './digitalWalletRequest'; -export * from './digitalWalletUpdate'; -export * from './digitalWallets'; -export * from './error400BadRequest'; -export * from './error401Unauthorized'; -export * from './error403Forbidden'; -export * from './error404NotFound'; -export * from './error409DuplicateRecord'; -export * from './error429TooManyRequests'; -export * from './errorDetail'; -export * from './giftCard'; -export * from './giftCardBalanceNewRequest'; -export * from './giftCardBalanceRequest'; -export * from './giftCardBalanceStoredRequest'; -export * from './giftCardBalancesRequest'; -export * from './giftCardBuyer'; -export * from './giftCardRedemption'; -export * from './giftCardRedemptionFailed'; -export * from './giftCardRedemptionFailedContext'; -export * from './giftCardRedemptionSucceeded'; -export * from './giftCardRedemptionSucceededContext'; -export * from './giftCardRefundFailed'; -export * from './giftCardRefundFailedContext'; -export * from './giftCardRefundSucceeded'; -export * from './giftCardService'; -export * from './giftCardServiceCreateRequest'; -export * from './giftCardServiceCreateRequestFieldsInner'; -export * from './giftCardServiceDefinition'; -export * from './giftCardServiceFieldsInner'; -export * from './giftCardServiceSnapshot'; -export * from './giftCardServiceUpdateRequest'; -export * from './giftCardServiceUpdateRequestFieldsInner'; -export * from './giftCardServiceVerifyRequest'; -export * from './giftCardServiceVerifyRequestFieldsInner'; -export * from './giftCardSnapshot'; -export * from './giftCardStoreRequest'; -export * from './giftCardSummary'; -export * from './giftCards'; -export * from './giftCardsSummary'; -export * from './googlePayRequest'; -export * from './googlePayRequestAssuranceDetails'; -export * from './googlePaySessionRequest'; -export * from './issueCryptogramRequest'; -export * from './merchantAccount'; -export * from './merchantAccountCreate'; -export * from './merchantAccountUpdate'; -export * from './merchantAccounts'; -export * from './merchantProfile'; -export * from './merchantProfileAmex'; -export * from './merchantProfileDankort'; -export * from './merchantProfileDiscover'; -export * from './merchantProfileJcb'; -export * from './merchantProfileMastercard'; -export * from './merchantProfileScheme'; -export * from './merchantProfileSchemeSummary'; -export * from './merchantProfileSummary'; -export * from './merchantProfileSummaryAmex'; -export * from './merchantProfileSummaryDankort'; -export * from './merchantProfileSummaryDiscover'; -export * from './merchantProfileSummaryJcb'; -export * from './merchantProfileSummaryMastercard'; -export * from './merchantProfileSummaryUnionpay'; -export * from './merchantProfileSummaryVisa'; -export * from './merchantProfileUnionpay'; -export * from './merchantProfileVisa'; -export * from './networkToken'; -export * from './networkTokenCryptogramProvisionFailed'; -export * from './networkTokenCryptogramProvisionFailedContext'; -export * from './networkTokenCryptogramProvisionSucceeded'; -export * from './networkTokenCryptogramProvisionSucceededContext'; -export * from './networkTokenProvisionFailed'; -export * from './networkTokenProvisionFailedContext'; -export * from './networkTokenProvisionSucceeded'; -export * from './networkTokenRequest'; -export * from './networkTokens'; -export * from './paymentConnectorExternalTransactionRequest'; -export * from './paymentConnectorExternalTransactionRequestContext'; -export * from './paymentConnectorResponseTransactionAuthorizationFailedEvent'; -export * from './paymentConnectorResponseTransactionAuthorizationFailedEventContext'; -export * from './paymentConnectorResponseTransactionAuthorizationSucceededEvent'; -export * from './paymentConnectorResponseTransactionAuthorizationSucceededEventContext'; -export * from './paymentConnectorResponseTransactionCaptureDeclinedEvent'; -export * from './paymentConnectorResponseTransactionCaptureDeclinedEventContext'; -export * from './paymentConnectorResponseTransactionCaptureFailedEvent'; -export * from './paymentConnectorResponseTransactionCaptureSucceededEvent'; -export * from './paymentConnectorResponseTransactionCaptureSucceededEventContext'; -export * from './paymentConnectorResponseTransactionDeclinedEvent'; -export * from './paymentConnectorResponseTransactionDeclinedEventContext'; -export * from './paymentConnectorResponseTransactionVoidDeclinedEvent'; -export * from './paymentConnectorResponseTransactionVoidDeclinedEventContext'; -export * from './paymentConnectorResponseTransactionVoidFailedEvent'; -export * from './paymentConnectorResponseTransactionVoidFailedEventContext'; -export * from './paymentConnectorResponseTransactionVoidSucceededEvent'; -export * from './paymentConnectorResponseTransactionVoidSucceededEventContext'; -export * from './paymentMethod'; -export * from './paymentMethodDefinition'; -export * from './paymentMethodDefinitions'; -export * from './paymentMethodDetailsCard'; -export * from './paymentMethodRequest'; -export * from './paymentMethodSnapshot'; -export * from './paymentMethodTokenized'; -export * from './paymentMethods'; -export * from './paymentMethodsTokenized'; -export * from './paymentOption'; -export * from './paymentOptionApprovalUI'; -export * from './paymentOptionContext'; -export * from './paymentOptions'; -export * from './paymentOptionsRequest'; -export * from './paymentService'; -export * from './paymentServiceDefinition'; -export * from './paymentServiceDefinitionConfiguration'; -export * from './paymentServiceDefinitionSupportedFeatures'; -export * from './paymentServiceDefinitions'; -export * from './paymentServiceMerchantProfile'; -export * from './paymentServiceRequest'; -export * from './paymentServiceRequestFieldsInner'; -export * from './paymentServiceRequestMerchantProfile'; -export * from './paymentServiceSession'; -export * from './paymentServiceSnapshot'; -export * from './paymentServiceToken'; -export * from './paymentServiceTokenRequest'; -export * from './paymentServiceTokens'; -export * from './paymentServiceUpdate'; -export * from './paymentServiceUpdateMerchantProfile'; -export * from './paymentServices'; -export * from './redirectRequest'; -export * from './refund'; -export * from './refunds'; -export * from './report'; -export * from './reportCreate'; -export * from './reportExecution'; -export * from './reportExecutionSummary'; -export * from './reportExecutionSummaryContext'; -export * from './reportExecutionUrl'; -export * from './reportExecutions'; -export * from './reportSpec'; -export * from './reportSpecParams'; -export * from './reportSpecParamsFilters'; -export * from './reportSummary'; -export * from './reportUpdate'; -export * from './reports'; -export * from './requiredFields'; -export * from './requiredFieldsAddress'; -export * from './resetPasswordRequest'; -export * from './role'; -export * from './roleAssignment'; -export * from './roleAssignmentAssignee'; -export * from './roleAssignmentRequest'; -export * from './roleAssignmentRequestAssignee'; -export * from './roleAssignmentRequestRole'; -export * from './roleAssignments'; -export * from './rolePermissions'; -export * from './roles'; -export * from './setPasswordRequest'; -export * from './shippingDetail'; -export * from './shippingDetailAddress'; -export * from './shippingDetailRequest'; -export * from './shippingDetailUpdateRequest'; -export * from './shippingDetails'; -export * from './statementDescriptor'; -export * from './taxId'; -export * from './threeDSecureAuthenticationRequestEvent'; -export * from './threeDSecureAuthenticationRequestEventContext'; -export * from './threeDSecureData'; -export * from './threeDSecureDataV1'; -export * from './threeDSecureDataV1V2'; -export * from './threeDSecureDataV2'; -export * from './threeDSecureError'; -export * from './threeDSecurePreparationRequestEvent'; -export * from './threeDSecurePreparationRequestEventContext'; -export * from './threeDSecureRequestErrorEvent'; -export * from './threeDSecureRequestErrorEventContext'; -export * from './threeDSecureResultRequestEvent'; -export * from './threeDSecureResultRequestEventContext'; -export * from './threeDSecureSuccessEvent'; -export * from './threeDSecureSuccessEventContext'; -export * from './threeDSecureSummary'; -export * from './threeDSecureSummaryErrorData'; -export * from './threeDSecureV2'; -export * from './tokenizedRequest'; -export * from './transaction'; -export * from './transactionBuyer'; -export * from './transactionBuyerRequest'; -export * from './transactionBuyerRequestBillingDetails'; -export * from './transactionBuyerRequestShippingDetails'; -export * from './transactionCaptureRequest'; -export * from './transactionCardRequest'; -export * from './transactionCheckoutSessionRequest'; -export * from './transactionGiftCardNewRequest'; -export * from './transactionGiftCardRequest'; -export * from './transactionGiftCardStoredRequest'; -export * from './transactionHistoryEvent'; -export * from './transactionHistoryEvents'; -export * from './transactionNetworkTokenApplePayRequest'; -export * from './transactionNetworkTokenGooglePayRequest'; -export * from './transactionNetworkTokenRequest'; -export * from './transactionPaymentMethod'; -export * from './transactionPaymentMethodRequest'; -export * from './transactionPaymentService'; -export * from './transactionRedirectRequest'; -export * from './transactionRefundAllRequest'; -export * from './transactionRefundRequest'; -export * from './transactionRequest'; -export * from './transactionRequestBrowserInfo'; -export * from './transactionRequestConnectionOptions'; -export * from './transactionRequestStatementDescriptor'; -export * from './transactionShippingDetails'; -export * from './transactionStatusSummary'; -export * from './transactionSummary'; -export * from './transactions'; -export * from './transactionsBatchCaptureRequest'; -export * from './userCurrentUpdate'; -export * from './userRequest'; -export * from './userRole'; -export * from './userUpdate'; +export * from './aPIKeyPairCreate' +export * from './aPIKeyPairUpdate' +export * from './accountUpdaterInquirySummary' +export * from './accountUpdaterJob' +export * from './accountUpdaterJobCreate' +export * from './address' +export * from './airline' +export * from './airlineLeg' +export * from './airlinePassenger' +export * from './antiFraudDecisionErrorEvent' +export * from './antiFraudDecisionErrorEventContext' +export * from './antiFraudDecisionEvent' +export * from './antiFraudDecisionEventContext' +export * from './antiFraudDecisionSkippedEvent' +export * from './antiFraudDecisionSkippedEventContext' +export * from './antiFraudDecisionUpdateErrorEvent' +export * from './antiFraudDecisionUpdateErrorEventContext' +export * from './antiFraudDecisionUpdateEvent' +export * from './antiFraudDecisionUpdateEventContext' +export * from './antiFraudServiceCreate' +export * from './antiFraudServiceDefinition' +export * from './antiFraudServiceDefinitionFieldsInner' +export * from './antiFraudServiceUpdate' +export * from './antiFraudServiceUpdateFieldsInner' +export * from './antiFraudTransactionStatusUpdateErrorEvent' +export * from './antiFraudTransactionStatusUpdateErrorEventContext' +export * from './antiFraudTransactionStatusUpdateEvent' +export * from './antiFraudTransactionStatusUpdateEventContext' +export * from './antiFraudWebhookEvent' +export * from './antiFraudWebhookEventContext' +export * from './apiLog' +export * from './apiLogResponseBody' +export * from './apiLogResponseBodyDetails' +export * from './apiLogs' +export * from './applePayRequest' +export * from './applePaySessionRequest' +export * from './auditLog' +export * from './auditLogResource' +export * from './auditLogUser' +export * from './auditLogs' +export * from './bINLookupRequest' +export * from './bINLookupRequestContext' +export * from './billingDetails' +export * from './billingDetailsAddress' +export * from './billingDetailsRequest' +export * from './billingDetailsRequestAddress' +export * from './billingDetailsRequestTaxId' +export * from './billingDetailsTaxId' +export * from './billingDetailsUpdateRequest' +export * from './billingDetailsUpdateRequestAddress' +export * from './browserInfo' +export * from './buyer' +export * from './buyerBillingDetails' +export * from './buyerRequest' +export * from './buyerRequestBillingDetails' +export * from './buyerSnapshot' +export * from './buyerSnapshotBillingDetails' +export * from './buyerUpdate' +export * from './buyerUpdateBillingDetails' +export * from './buyers' +export * from './cardDetails' +export * from './cardRequest' +export * from './cardSchemeDefinition' +export * from './cardSchemeDefinitions' +export * from './cartItem' +export * from './checkoutSession' +export * from './checkoutSessionAirline' +export * from './checkoutSessionCreateRequest' +export * from './checkoutSessionCreateRequestAirline' +export * from './checkoutSessionPaymentMethod' +export * from './checkoutSessionPaymentMethodDetails' +export * from './checkoutSessionRequest' +export * from './checkoutSessionUpdateRequest' +export * from './clickToPaySessionRequest' +export * from './connection' +export * from './connectionDefinition' +export * from './connectionDefinitions' +export * from './connectionOptions' +export * from './connectionOptionsAdyenCard' +export * from './connectionOptionsAdyenSepa' +export * from './connectionOptionsCybersourceAntiFraud' +export * from './connectionOptionsCybersourceCard' +export * from './connectionOptionsCybersourceIdeal' +export * from './connectionOptionsCybersourceKcp' +export * from './connectionOptionsFiservCard' +export * from './connectionOptionsFiservCardInstallmentOptions' +export * from './connectionOptionsForterAntiFraud' +export * from './connectionOptionsForterAntiFraudCartItemsInner' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBasicItemData' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails' +export * from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner' +export * from './connectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails' +export * from './connectionOptionsForterAntiFraudTotalDiscount' +export * from './connectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount' +export * from './connectionOptionsGivingblockGivingblock' +export * from './connectionOptionsLatitudeLatitude' +export * from './connectionOptionsPaypalPaypal' +export * from './connectionOptionsPaypalPaypalAdditionalDataInner' +export * from './connectionOptionsPowertranzCard' +export * from './connectionOptionsStripeCard' +export * from './connectionOptionsStripeCardStripeConnect' +export * from './connections' +export * from './cryptogram' +export * from './detailedSettlementReportSpec' +export * from './detailedSettlementReportSpecParams' +export * from './detailedSettlementReportSpecParamsFilters' +export * from './detailedSettlementReportSpecParamsFiltersIngestedAt' +export * from './digitalWallet' +export * from './digitalWalletApplePayTokenDecrypted' +export * from './digitalWalletApplePayTokenDecryptedContext' +export * from './digitalWalletClickToPayFields' +export * from './digitalWalletClickToPayTokenDecrypted' +export * from './digitalWalletClickToPayTokenDecryptedContext' +export * from './digitalWalletDomain' +export * from './digitalWalletGooglePayTokenDecrypted' +export * from './digitalWalletGooglePayTokenDecryptedContext' +export * from './digitalWalletRequest' +export * from './digitalWalletUpdate' +export * from './digitalWallets' +export * from './error400BadRequest' +export * from './error401Unauthorized' +export * from './error403Forbidden' +export * from './error404NotFound' +export * from './error409DuplicateRecord' +export * from './error429TooManyRequests' +export * from './errorDetail' +export * from './giftCard' +export * from './giftCardBalanceNewRequest' +export * from './giftCardBalanceRequest' +export * from './giftCardBalanceStoredRequest' +export * from './giftCardBalancesRequest' +export * from './giftCardBuyer' +export * from './giftCardRedemption' +export * from './giftCardRedemptionFailed' +export * from './giftCardRedemptionFailedContext' +export * from './giftCardRedemptionSucceeded' +export * from './giftCardRedemptionSucceededContext' +export * from './giftCardRefundFailed' +export * from './giftCardRefundFailedContext' +export * from './giftCardRefundSucceeded' +export * from './giftCardService' +export * from './giftCardServiceCreateRequest' +export * from './giftCardServiceCreateRequestFieldsInner' +export * from './giftCardServiceDefinition' +export * from './giftCardServiceFieldsInner' +export * from './giftCardServiceSnapshot' +export * from './giftCardServiceUpdateRequest' +export * from './giftCardServiceUpdateRequestFieldsInner' +export * from './giftCardServiceVerifyRequest' +export * from './giftCardServiceVerifyRequestFieldsInner' +export * from './giftCardSnapshot' +export * from './giftCardStoreRequest' +export * from './giftCardSummary' +export * from './giftCards' +export * from './giftCardsSummary' +export * from './googlePayRequest' +export * from './googlePayRequestAssuranceDetails' +export * from './googlePaySessionRequest' +export * from './issueCryptogramRequest' +export * from './merchant' +export * from './merchantAccount' +export * from './merchantAccountCreate' +export * from './merchantAccountUpdate' +export * from './merchantAccounts' +export * from './merchantAddress' +export * from './merchantProfile' +export * from './merchantProfileAmex' +export * from './merchantProfileDankort' +export * from './merchantProfileDiscover' +export * from './merchantProfileJcb' +export * from './merchantProfileMastercard' +export * from './merchantProfileScheme' +export * from './merchantProfileSchemeSummary' +export * from './merchantProfileSummary' +export * from './merchantProfileSummaryAmex' +export * from './merchantProfileSummaryDankort' +export * from './merchantProfileSummaryDiscover' +export * from './merchantProfileSummaryJcb' +export * from './merchantProfileSummaryMastercard' +export * from './merchantProfileSummaryUnionpay' +export * from './merchantProfileSummaryVisa' +export * from './merchantProfileUnionpay' +export * from './merchantProfileVisa' +export * from './merchantRequest' +export * from './networkToken' +export * from './networkTokenCryptogramProvisionFailed' +export * from './networkTokenCryptogramProvisionFailedContext' +export * from './networkTokenCryptogramProvisionSucceeded' +export * from './networkTokenCryptogramProvisionSucceededContext' +export * from './networkTokenProvisionFailed' +export * from './networkTokenProvisionFailedContext' +export * from './networkTokenProvisionSucceeded' +export * from './networkTokenRequest' +export * from './networkTokens' +export * from './paymentConnectorExternalTransactionRequest' +export * from './paymentConnectorExternalTransactionRequestContext' +export * from './paymentConnectorReportTransactionSettled' +export * from './paymentConnectorReportTransactionSettledContext' +export * from './paymentConnectorResponseTransactionAuthorizationFailedEvent' +export * from './paymentConnectorResponseTransactionAuthorizationFailedEventContext' +export * from './paymentConnectorResponseTransactionAuthorizationSucceededEvent' +export * from './paymentConnectorResponseTransactionAuthorizationSucceededEventContext' +export * from './paymentConnectorResponseTransactionCaptureDeclinedEvent' +export * from './paymentConnectorResponseTransactionCaptureDeclinedEventContext' +export * from './paymentConnectorResponseTransactionCaptureFailedEvent' +export * from './paymentConnectorResponseTransactionCaptureSucceededEvent' +export * from './paymentConnectorResponseTransactionCaptureSucceededEventContext' +export * from './paymentConnectorResponseTransactionDeclinedEvent' +export * from './paymentConnectorResponseTransactionDeclinedEventContext' +export * from './paymentConnectorResponseTransactionVoidDeclinedEvent' +export * from './paymentConnectorResponseTransactionVoidDeclinedEventContext' +export * from './paymentConnectorResponseTransactionVoidFailedEvent' +export * from './paymentConnectorResponseTransactionVoidFailedEventContext' +export * from './paymentConnectorResponseTransactionVoidSucceededEvent' +export * from './paymentConnectorResponseTransactionVoidSucceededEventContext' +export * from './paymentLink' +export * from './paymentLinkBuyer' +export * from './paymentLinkRequest' +export * from './paymentLinkRequestConnectionOptions' +export * from './paymentLinkShippingDetails' +export * from './paymentLinkStatementDescriptor' +export * from './paymentLinks' +export * from './paymentMethod' +export * from './paymentMethodDefinition' +export * from './paymentMethodDefinitions' +export * from './paymentMethodDetailsCard' +export * from './paymentMethodRequest' +export * from './paymentMethodSnapshot' +export * from './paymentMethodTokenized' +export * from './paymentMethods' +export * from './paymentMethodsTokenized' +export * from './paymentOption' +export * from './paymentOptionApprovalUI' +export * from './paymentOptionContext' +export * from './paymentOptions' +export * from './paymentOptionsRequest' +export * from './paymentService' +export * from './paymentServiceDefinition' +export * from './paymentServiceDefinitionConfiguration' +export * from './paymentServiceDefinitionReportingFieldsInner' +export * from './paymentServiceDefinitionSupportedFeatures' +export * from './paymentServiceDefinitions' +export * from './paymentServiceMerchantProfile' +export * from './paymentServiceReportingFieldsInner' +export * from './paymentServiceRequest' +export * from './paymentServiceRequestFieldsInner' +export * from './paymentServiceRequestMerchantProfile' +export * from './paymentServiceRequestReportingFieldsInner' +export * from './paymentServiceSession' +export * from './paymentServiceSnapshot' +export * from './paymentServiceToken' +export * from './paymentServiceTokenRequest' +export * from './paymentServiceTokens' +export * from './paymentServiceUpdate' +export * from './paymentServiceUpdateFieldsInner' +export * from './paymentServiceUpdateMerchantProfile' +export * from './paymentServiceUpdateReportingFieldsInner' +export * from './paymentServices' +export * from './payout' +export * from './payoutConnectionOptionsRequest' +export * from './payoutConnectionOptionsRequestCheckoutCard' +export * from './payoutInlineCardRequest' +export * from './payoutMerchant' +export * from './payoutPaymentMethodRequest' +export * from './payoutRequest' +export * from './payoutRequestBuyer' +export * from './payoutRequestConnectionOptions' +export * from './payoutRequestMerchant' +export * from './payoutStoredCardRequest' +export * from './payouts' +export * from './recipient' +export * from './recipientAddress' +export * from './recipientSnapshot' +export * from './redirectRequest' +export * from './refund' +export * from './refunds' +export * from './report' +export * from './reportCreate' +export * from './reportExecution' +export * from './reportExecutionSummary' +export * from './reportExecutionSummaryContext' +export * from './reportExecutionUrl' +export * from './reportExecutions' +export * from './reportSpec' +export * from './reportSummary' +export * from './reportUpdate' +export * from './reports' +export * from './requiredFields' +export * from './requiredFieldsAddress' +export * from './resetPasswordRequest' +export * from './role' +export * from './roleAssignment' +export * from './roleAssignmentAssignee' +export * from './roleAssignmentRequest' +export * from './roleAssignmentRequestAssignee' +export * from './roleAssignmentRequestRole' +export * from './roleAssignments' +export * from './rolePermissions' +export * from './roles' +export * from './setPasswordRequest' +export * from './settlement' +export * from './settlements' +export * from './shippingDetail' +export * from './shippingDetailAddress' +export * from './shippingDetailRequest' +export * from './shippingDetailRequestAddress' +export * from './shippingDetailUpdateRequest' +export * from './shippingDetails' +export * from './statementDescriptor' +export * from './taxId' +export * from './threeDSecureAuthenticationRequestEvent' +export * from './threeDSecureAuthenticationRequestEventContext' +export * from './threeDSecureData' +export * from './threeDSecureDataV1' +export * from './threeDSecureDataV1V2' +export * from './threeDSecureDataV2' +export * from './threeDSecureError' +export * from './threeDSecurePreparationRequestEvent' +export * from './threeDSecurePreparationRequestEventContext' +export * from './threeDSecureRequestErrorEvent' +export * from './threeDSecureRequestErrorEventContext' +export * from './threeDSecureResultRequestEvent' +export * from './threeDSecureResultRequestEventContext' +export * from './threeDSecureSuccessEvent' +export * from './threeDSecureSuccessEventContext' +export * from './threeDSecureSummary' +export * from './threeDSecureSummaryErrorData' +export * from './threeDSecureV2' +export * from './tokenizedRequest' +export * from './transaction' +export * from './transactionBuyer' +export * from './transactionBuyerRequest' +export * from './transactionBuyerRequestBillingDetails' +export * from './transactionBuyerRequestShippingDetails' +export * from './transactionCaptureRequest' +export * from './transactionCaptureRequestAirline' +export * from './transactionCardRequest' +export * from './transactionCheckoutSessionRequest' +export * from './transactionGiftCardNewRequest' +export * from './transactionGiftCardRequest' +export * from './transactionGiftCardStoredRequest' +export * from './transactionHistoryEvent' +export * from './transactionHistoryEvents' +export * from './transactionNetworkTokenApplePayRequest' +export * from './transactionNetworkTokenGooglePayRequest' +export * from './transactionNetworkTokenRequest' +export * from './transactionPaymentMethod' +export * from './transactionPaymentMethodRequest' +export * from './transactionPaymentService' +export * from './transactionRecipient' +export * from './transactionRedirectRequest' +export * from './transactionRefundAllRequest' +export * from './transactionRefundRequest' +export * from './transactionRequest' +export * from './transactionRequestBrowserInfo' +export * from './transactionRequestRecipient' +export * from './transactionRetriesReportSpec' +export * from './transactionRetriesReportSpecParams' +export * from './transactionRetriesReportSpecParamsFilters' +export * from './transactionRetriesReportSpecParamsFiltersCreatedAt' +export * from './transactionShippingDetails' +export * from './transactionStatusSummary' +export * from './transactionSummary' +export * from './transactions' +export * from './transactionsBatchCaptureRequest' +export * from './transactionsReportSpec' +export * from './transactionsReportSpecParams' +export * from './transactionsReportSpecParamsFilters' +export * from './transactionsReportSpecParamsFiltersAuthorizedAt' +export * from './transactionsReportSpecParamsFiltersCapturedAt' +export * from './transactionsReportSpecParamsFiltersUpdatedAt' +export * from './transactionsReportSpecParamsFiltersVoidedAt' +export * from './userCurrentUpdate' +export * from './userRequest' +export * from './userRole' +export * from './userUpdate' +export * from './webhookSubscription' +export * from './webhookSubscriptionAuthentication' +export * from './webhookSubscriptionRequest' +export * from './webhookSubscriptionRotateSecretRequest' +export * from './webhookSubscriptionUpdateRequest' +export * from './webhookSubscriptions' -import * as fs from 'fs'; +import * as fs from 'fs' export interface RequestDetailedFile { - value: Buffer; - options?: { - filename?: string; - contentType?: string; - } + value: Buffer + options?: { + filename?: string + contentType?: string + } } -export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile; - +export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile -import { APIKeyPairCreate } from './aPIKeyPairCreate'; -import { APIKeyPairUpdate } from './aPIKeyPairUpdate'; -import { AccountUpdaterInquirySummary } from './accountUpdaterInquirySummary'; -import { AccountUpdaterJob } from './accountUpdaterJob'; -import { AccountUpdaterJobCreate } from './accountUpdaterJobCreate'; -import { Address } from './address'; -import { AntiFraudDecisionErrorEvent } from './antiFraudDecisionErrorEvent'; -import { AntiFraudDecisionErrorEventContext } from './antiFraudDecisionErrorEventContext'; -import { AntiFraudDecisionEvent } from './antiFraudDecisionEvent'; -import { AntiFraudDecisionEventContext } from './antiFraudDecisionEventContext'; -import { AntiFraudDecisionSkippedEvent } from './antiFraudDecisionSkippedEvent'; -import { AntiFraudDecisionSkippedEventContext } from './antiFraudDecisionSkippedEventContext'; -import { AntiFraudDecisionUpdateErrorEvent } from './antiFraudDecisionUpdateErrorEvent'; -import { AntiFraudDecisionUpdateErrorEventContext } from './antiFraudDecisionUpdateErrorEventContext'; -import { AntiFraudDecisionUpdateEvent } from './antiFraudDecisionUpdateEvent'; -import { AntiFraudDecisionUpdateEventContext } from './antiFraudDecisionUpdateEventContext'; -import { AntiFraudServiceCreate } from './antiFraudServiceCreate'; -import { AntiFraudServiceDefinition } from './antiFraudServiceDefinition'; -import { AntiFraudServiceDefinitionFieldsInner } from './antiFraudServiceDefinitionFieldsInner'; -import { AntiFraudServiceUpdate } from './antiFraudServiceUpdate'; -import { AntiFraudServiceUpdateFieldsInner } from './antiFraudServiceUpdateFieldsInner'; -import { AntiFraudTransactionStatusUpdateErrorEvent } from './antiFraudTransactionStatusUpdateErrorEvent'; -import { AntiFraudTransactionStatusUpdateErrorEventContext } from './antiFraudTransactionStatusUpdateErrorEventContext'; -import { AntiFraudTransactionStatusUpdateEvent } from './antiFraudTransactionStatusUpdateEvent'; -import { AntiFraudTransactionStatusUpdateEventContext } from './antiFraudTransactionStatusUpdateEventContext'; -import { AntiFraudWebhookEvent } from './antiFraudWebhookEvent'; -import { AntiFraudWebhookEventContext } from './antiFraudWebhookEventContext'; -import { ApiLog } from './apiLog'; -import { ApiLogResponseBody } from './apiLogResponseBody'; -import { ApiLogResponseBodyDetails } from './apiLogResponseBodyDetails'; -import { ApiLogs } from './apiLogs'; -import { ApplePayRequest } from './applePayRequest'; -import { ApplePaySessionRequest } from './applePaySessionRequest'; -import { AuditLog } from './auditLog'; -import { AuditLogResource } from './auditLogResource'; -import { AuditLogUser } from './auditLogUser'; -import { AuditLogs } from './auditLogs'; -import { BINLookupRequest } from './bINLookupRequest'; -import { BINLookupRequestContext } from './bINLookupRequestContext'; -import { BillingDetails } from './billingDetails'; -import { BillingDetailsAddress } from './billingDetailsAddress'; -import { BillingDetailsRequest } from './billingDetailsRequest'; -import { BillingDetailsRequestAddress } from './billingDetailsRequestAddress'; -import { BillingDetailsRequestTaxId } from './billingDetailsRequestTaxId'; -import { BillingDetailsTaxId } from './billingDetailsTaxId'; -import { BillingDetailsUpdateRequest } from './billingDetailsUpdateRequest'; -import { BillingDetailsUpdateRequestAddress } from './billingDetailsUpdateRequestAddress'; -import { BrowserInfo } from './browserInfo'; -import { Buyer } from './buyer'; -import { BuyerBillingDetails } from './buyerBillingDetails'; -import { BuyerRequest } from './buyerRequest'; -import { BuyerRequestBillingDetails } from './buyerRequestBillingDetails'; -import { BuyerSnapshot } from './buyerSnapshot'; -import { BuyerSnapshotBillingDetails } from './buyerSnapshotBillingDetails'; -import { BuyerUpdate } from './buyerUpdate'; -import { BuyerUpdateBillingDetails } from './buyerUpdateBillingDetails'; -import { Buyers } from './buyers'; -import { CardDetails } from './cardDetails'; -import { CardRequest } from './cardRequest'; -import { CardSchemeDefinition } from './cardSchemeDefinition'; -import { CardSchemeDefinitions } from './cardSchemeDefinitions'; -import { CartItem } from './cartItem'; -import { CheckoutSession } from './checkoutSession'; -import { CheckoutSessionCreateRequest } from './checkoutSessionCreateRequest'; -import { CheckoutSessionPaymentMethod } from './checkoutSessionPaymentMethod'; -import { CheckoutSessionPaymentMethodDetails } from './checkoutSessionPaymentMethodDetails'; -import { CheckoutSessionRequest } from './checkoutSessionRequest'; -import { CheckoutSessionUpdateRequest } from './checkoutSessionUpdateRequest'; -import { ClickToPaySessionRequest } from './clickToPaySessionRequest'; -import { Connection } from './connection'; -import { ConnectionDefinition } from './connectionDefinition'; -import { ConnectionDefinitions } from './connectionDefinitions'; -import { ConnectionOptions } from './connectionOptions'; -import { ConnectionOptionsAdyenCard } from './connectionOptionsAdyenCard'; -import { ConnectionOptionsCybersourceAntiFraud } from './connectionOptionsCybersourceAntiFraud'; -import { ConnectionOptionsCybersourceCard } from './connectionOptionsCybersourceCard'; -import { ConnectionOptionsCybersourceIdeal } from './connectionOptionsCybersourceIdeal'; -import { ConnectionOptionsCybersourceKcp } from './connectionOptionsCybersourceKcp'; -import { ConnectionOptionsForterAntiFraud } from './connectionOptionsForterAntiFraud'; -import { ConnectionOptionsForterAntiFraudCartItemsInner } from './connectionOptionsForterAntiFraudCartItemsInner'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData } from './connectionOptionsForterAntiFraudCartItemsInnerBasicItemData'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner'; -import { ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails } from './connectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails'; -import { ConnectionOptionsForterAntiFraudTotalDiscount } from './connectionOptionsForterAntiFraudTotalDiscount'; -import { ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount } from './connectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount'; -import { ConnectionOptionsGivingblockGivingblock } from './connectionOptionsGivingblockGivingblock'; -import { ConnectionOptionsPaypalPaypal } from './connectionOptionsPaypalPaypal'; -import { ConnectionOptionsPaypalPaypalAdditionalDataInner } from './connectionOptionsPaypalPaypalAdditionalDataInner'; -import { ConnectionOptionsStripeCard } from './connectionOptionsStripeCard'; -import { ConnectionOptionsStripeCardStripeConnect } from './connectionOptionsStripeCardStripeConnect'; -import { Connections } from './connections'; -import { Cryptogram } from './cryptogram'; -import { DigitalWallet } from './digitalWallet'; -import { DigitalWalletApplePayTokenDecrypted } from './digitalWalletApplePayTokenDecrypted'; -import { DigitalWalletApplePayTokenDecryptedContext } from './digitalWalletApplePayTokenDecryptedContext'; -import { DigitalWalletClickToPayFields } from './digitalWalletClickToPayFields'; -import { DigitalWalletClickToPayTokenDecrypted } from './digitalWalletClickToPayTokenDecrypted'; -import { DigitalWalletClickToPayTokenDecryptedContext } from './digitalWalletClickToPayTokenDecryptedContext'; -import { DigitalWalletDomain } from './digitalWalletDomain'; -import { DigitalWalletGooglePayTokenDecrypted } from './digitalWalletGooglePayTokenDecrypted'; -import { DigitalWalletGooglePayTokenDecryptedContext } from './digitalWalletGooglePayTokenDecryptedContext'; -import { DigitalWalletRequest } from './digitalWalletRequest'; -import { DigitalWalletUpdate } from './digitalWalletUpdate'; -import { DigitalWallets } from './digitalWallets'; -import { Error400BadRequest } from './error400BadRequest'; -import { Error401Unauthorized } from './error401Unauthorized'; -import { Error403Forbidden } from './error403Forbidden'; -import { Error404NotFound } from './error404NotFound'; -import { Error409DuplicateRecord } from './error409DuplicateRecord'; -import { Error429TooManyRequests } from './error429TooManyRequests'; -import { ErrorDetail } from './errorDetail'; -import { GiftCard } from './giftCard'; -import { GiftCardBalanceNewRequest } from './giftCardBalanceNewRequest'; -import { GiftCardBalanceRequest } from './giftCardBalanceRequest'; -import { GiftCardBalanceStoredRequest } from './giftCardBalanceStoredRequest'; -import { GiftCardBalancesRequest } from './giftCardBalancesRequest'; -import { GiftCardBuyer } from './giftCardBuyer'; -import { GiftCardRedemption } from './giftCardRedemption'; -import { GiftCardRedemptionFailed } from './giftCardRedemptionFailed'; -import { GiftCardRedemptionFailedContext } from './giftCardRedemptionFailedContext'; -import { GiftCardRedemptionSucceeded } from './giftCardRedemptionSucceeded'; -import { GiftCardRedemptionSucceededContext } from './giftCardRedemptionSucceededContext'; -import { GiftCardRefundFailed } from './giftCardRefundFailed'; -import { GiftCardRefundFailedContext } from './giftCardRefundFailedContext'; -import { GiftCardRefundSucceeded } from './giftCardRefundSucceeded'; -import { GiftCardService } from './giftCardService'; -import { GiftCardServiceCreateRequest } from './giftCardServiceCreateRequest'; -import { GiftCardServiceCreateRequestFieldsInner } from './giftCardServiceCreateRequestFieldsInner'; -import { GiftCardServiceDefinition } from './giftCardServiceDefinition'; -import { GiftCardServiceFieldsInner } from './giftCardServiceFieldsInner'; -import { GiftCardServiceSnapshot } from './giftCardServiceSnapshot'; -import { GiftCardServiceUpdateRequest } from './giftCardServiceUpdateRequest'; -import { GiftCardServiceUpdateRequestFieldsInner } from './giftCardServiceUpdateRequestFieldsInner'; -import { GiftCardServiceVerifyRequest } from './giftCardServiceVerifyRequest'; -import { GiftCardServiceVerifyRequestFieldsInner } from './giftCardServiceVerifyRequestFieldsInner'; -import { GiftCardSnapshot } from './giftCardSnapshot'; -import { GiftCardStoreRequest } from './giftCardStoreRequest'; -import { GiftCardSummary } from './giftCardSummary'; -import { GiftCards } from './giftCards'; -import { GiftCardsSummary } from './giftCardsSummary'; -import { GooglePayRequest } from './googlePayRequest'; -import { GooglePayRequestAssuranceDetails } from './googlePayRequestAssuranceDetails'; -import { GooglePaySessionRequest } from './googlePaySessionRequest'; -import { IssueCryptogramRequest } from './issueCryptogramRequest'; -import { MerchantAccount } from './merchantAccount'; -import { MerchantAccountCreate } from './merchantAccountCreate'; -import { MerchantAccountUpdate } from './merchantAccountUpdate'; -import { MerchantAccounts } from './merchantAccounts'; -import { MerchantProfile } from './merchantProfile'; -import { MerchantProfileAmex } from './merchantProfileAmex'; -import { MerchantProfileDankort } from './merchantProfileDankort'; -import { MerchantProfileDiscover } from './merchantProfileDiscover'; -import { MerchantProfileJcb } from './merchantProfileJcb'; -import { MerchantProfileMastercard } from './merchantProfileMastercard'; -import { MerchantProfileScheme } from './merchantProfileScheme'; -import { MerchantProfileSchemeSummary } from './merchantProfileSchemeSummary'; -import { MerchantProfileSummary } from './merchantProfileSummary'; -import { MerchantProfileSummaryAmex } from './merchantProfileSummaryAmex'; -import { MerchantProfileSummaryDankort } from './merchantProfileSummaryDankort'; -import { MerchantProfileSummaryDiscover } from './merchantProfileSummaryDiscover'; -import { MerchantProfileSummaryJcb } from './merchantProfileSummaryJcb'; -import { MerchantProfileSummaryMastercard } from './merchantProfileSummaryMastercard'; -import { MerchantProfileSummaryUnionpay } from './merchantProfileSummaryUnionpay'; -import { MerchantProfileSummaryVisa } from './merchantProfileSummaryVisa'; -import { MerchantProfileUnionpay } from './merchantProfileUnionpay'; -import { MerchantProfileVisa } from './merchantProfileVisa'; -import { NetworkToken } from './networkToken'; -import { NetworkTokenCryptogramProvisionFailed } from './networkTokenCryptogramProvisionFailed'; -import { NetworkTokenCryptogramProvisionFailedContext } from './networkTokenCryptogramProvisionFailedContext'; -import { NetworkTokenCryptogramProvisionSucceeded } from './networkTokenCryptogramProvisionSucceeded'; -import { NetworkTokenCryptogramProvisionSucceededContext } from './networkTokenCryptogramProvisionSucceededContext'; -import { NetworkTokenProvisionFailed } from './networkTokenProvisionFailed'; -import { NetworkTokenProvisionFailedContext } from './networkTokenProvisionFailedContext'; -import { NetworkTokenProvisionSucceeded } from './networkTokenProvisionSucceeded'; -import { NetworkTokenRequest } from './networkTokenRequest'; -import { NetworkTokens } from './networkTokens'; -import { PaymentConnectorExternalTransactionRequest } from './paymentConnectorExternalTransactionRequest'; -import { PaymentConnectorExternalTransactionRequestContext } from './paymentConnectorExternalTransactionRequestContext'; -import { PaymentConnectorResponseTransactionAuthorizationFailedEvent } from './paymentConnectorResponseTransactionAuthorizationFailedEvent'; -import { PaymentConnectorResponseTransactionAuthorizationFailedEventContext } from './paymentConnectorResponseTransactionAuthorizationFailedEventContext'; -import { PaymentConnectorResponseTransactionAuthorizationSucceededEvent } from './paymentConnectorResponseTransactionAuthorizationSucceededEvent'; -import { PaymentConnectorResponseTransactionAuthorizationSucceededEventContext } from './paymentConnectorResponseTransactionAuthorizationSucceededEventContext'; -import { PaymentConnectorResponseTransactionCaptureDeclinedEvent } from './paymentConnectorResponseTransactionCaptureDeclinedEvent'; -import { PaymentConnectorResponseTransactionCaptureDeclinedEventContext } from './paymentConnectorResponseTransactionCaptureDeclinedEventContext'; -import { PaymentConnectorResponseTransactionCaptureFailedEvent } from './paymentConnectorResponseTransactionCaptureFailedEvent'; -import { PaymentConnectorResponseTransactionCaptureSucceededEvent } from './paymentConnectorResponseTransactionCaptureSucceededEvent'; -import { PaymentConnectorResponseTransactionCaptureSucceededEventContext } from './paymentConnectorResponseTransactionCaptureSucceededEventContext'; -import { PaymentConnectorResponseTransactionDeclinedEvent } from './paymentConnectorResponseTransactionDeclinedEvent'; -import { PaymentConnectorResponseTransactionDeclinedEventContext } from './paymentConnectorResponseTransactionDeclinedEventContext'; -import { PaymentConnectorResponseTransactionVoidDeclinedEvent } from './paymentConnectorResponseTransactionVoidDeclinedEvent'; -import { PaymentConnectorResponseTransactionVoidDeclinedEventContext } from './paymentConnectorResponseTransactionVoidDeclinedEventContext'; -import { PaymentConnectorResponseTransactionVoidFailedEvent } from './paymentConnectorResponseTransactionVoidFailedEvent'; -import { PaymentConnectorResponseTransactionVoidFailedEventContext } from './paymentConnectorResponseTransactionVoidFailedEventContext'; -import { PaymentConnectorResponseTransactionVoidSucceededEvent } from './paymentConnectorResponseTransactionVoidSucceededEvent'; -import { PaymentConnectorResponseTransactionVoidSucceededEventContext } from './paymentConnectorResponseTransactionVoidSucceededEventContext'; -import { PaymentMethod } from './paymentMethod'; -import { PaymentMethodDefinition } from './paymentMethodDefinition'; -import { PaymentMethodDefinitions } from './paymentMethodDefinitions'; -import { PaymentMethodDetailsCard } from './paymentMethodDetailsCard'; -import { PaymentMethodRequest } from './paymentMethodRequest'; -import { PaymentMethodSnapshot } from './paymentMethodSnapshot'; -import { PaymentMethodTokenized } from './paymentMethodTokenized'; -import { PaymentMethods } from './paymentMethods'; -import { PaymentMethodsTokenized } from './paymentMethodsTokenized'; -import { PaymentOption } from './paymentOption'; -import { PaymentOptionApprovalUI } from './paymentOptionApprovalUI'; -import { PaymentOptionContext } from './paymentOptionContext'; -import { PaymentOptions } from './paymentOptions'; -import { PaymentOptionsRequest } from './paymentOptionsRequest'; -import { PaymentService } from './paymentService'; -import { PaymentServiceDefinition } from './paymentServiceDefinition'; -import { PaymentServiceDefinitionConfiguration } from './paymentServiceDefinitionConfiguration'; -import { PaymentServiceDefinitionSupportedFeatures } from './paymentServiceDefinitionSupportedFeatures'; -import { PaymentServiceDefinitions } from './paymentServiceDefinitions'; -import { PaymentServiceMerchantProfile } from './paymentServiceMerchantProfile'; -import { PaymentServiceRequest } from './paymentServiceRequest'; -import { PaymentServiceRequestFieldsInner } from './paymentServiceRequestFieldsInner'; -import { PaymentServiceRequestMerchantProfile } from './paymentServiceRequestMerchantProfile'; -import { PaymentServiceSession } from './paymentServiceSession'; -import { PaymentServiceSnapshot } from './paymentServiceSnapshot'; -import { PaymentServiceToken } from './paymentServiceToken'; -import { PaymentServiceTokenRequest } from './paymentServiceTokenRequest'; -import { PaymentServiceTokens } from './paymentServiceTokens'; -import { PaymentServiceUpdate } from './paymentServiceUpdate'; -import { PaymentServiceUpdateMerchantProfile } from './paymentServiceUpdateMerchantProfile'; -import { PaymentServices } from './paymentServices'; -import { RedirectRequest } from './redirectRequest'; -import { Refund } from './refund'; -import { Refunds } from './refunds'; -import { Report } from './report'; -import { ReportCreate } from './reportCreate'; -import { ReportExecution } from './reportExecution'; -import { ReportExecutionSummary } from './reportExecutionSummary'; -import { ReportExecutionSummaryContext } from './reportExecutionSummaryContext'; -import { ReportExecutionUrl } from './reportExecutionUrl'; -import { ReportExecutions } from './reportExecutions'; -import { ReportSpec } from './reportSpec'; -import { ReportSpecParams } from './reportSpecParams'; -import { ReportSpecParamsFilters } from './reportSpecParamsFilters'; -import { ReportSummary } from './reportSummary'; -import { ReportUpdate } from './reportUpdate'; -import { Reports } from './reports'; -import { RequiredFields } from './requiredFields'; -import { RequiredFieldsAddress } from './requiredFieldsAddress'; -import { ResetPasswordRequest } from './resetPasswordRequest'; -import { Role } from './role'; -import { RoleAssignment } from './roleAssignment'; -import { RoleAssignmentAssignee } from './roleAssignmentAssignee'; -import { RoleAssignmentRequest } from './roleAssignmentRequest'; -import { RoleAssignmentRequestAssignee } from './roleAssignmentRequestAssignee'; -import { RoleAssignmentRequestRole } from './roleAssignmentRequestRole'; -import { RoleAssignments } from './roleAssignments'; -import { RolePermissions } from './rolePermissions'; -import { Roles } from './roles'; -import { SetPasswordRequest } from './setPasswordRequest'; -import { ShippingDetail } from './shippingDetail'; -import { ShippingDetailAddress } from './shippingDetailAddress'; -import { ShippingDetailRequest } from './shippingDetailRequest'; -import { ShippingDetailUpdateRequest } from './shippingDetailUpdateRequest'; -import { ShippingDetails } from './shippingDetails'; -import { StatementDescriptor } from './statementDescriptor'; -import { TaxId } from './taxId'; -import { ThreeDSecureAuthenticationRequestEvent } from './threeDSecureAuthenticationRequestEvent'; -import { ThreeDSecureAuthenticationRequestEventContext } from './threeDSecureAuthenticationRequestEventContext'; -import { ThreeDSecureData } from './threeDSecureData'; -import { ThreeDSecureDataV1 } from './threeDSecureDataV1'; -import { ThreeDSecureDataV1V2 } from './threeDSecureDataV1V2'; -import { ThreeDSecureDataV2 } from './threeDSecureDataV2'; -import { ThreeDSecureError } from './threeDSecureError'; -import { ThreeDSecurePreparationRequestEvent } from './threeDSecurePreparationRequestEvent'; -import { ThreeDSecurePreparationRequestEventContext } from './threeDSecurePreparationRequestEventContext'; -import { ThreeDSecureRequestErrorEvent } from './threeDSecureRequestErrorEvent'; -import { ThreeDSecureRequestErrorEventContext } from './threeDSecureRequestErrorEventContext'; -import { ThreeDSecureResultRequestEvent } from './threeDSecureResultRequestEvent'; -import { ThreeDSecureResultRequestEventContext } from './threeDSecureResultRequestEventContext'; -import { ThreeDSecureSuccessEvent } from './threeDSecureSuccessEvent'; -import { ThreeDSecureSuccessEventContext } from './threeDSecureSuccessEventContext'; -import { ThreeDSecureSummary } from './threeDSecureSummary'; -import { ThreeDSecureSummaryErrorData } from './threeDSecureSummaryErrorData'; -import { ThreeDSecureV2 } from './threeDSecureV2'; -import { TokenizedRequest } from './tokenizedRequest'; -import { Transaction } from './transaction'; -import { TransactionBuyer } from './transactionBuyer'; -import { TransactionBuyerRequest } from './transactionBuyerRequest'; -import { TransactionBuyerRequestBillingDetails } from './transactionBuyerRequestBillingDetails'; -import { TransactionBuyerRequestShippingDetails } from './transactionBuyerRequestShippingDetails'; -import { TransactionCaptureRequest } from './transactionCaptureRequest'; -import { TransactionCardRequest } from './transactionCardRequest'; -import { TransactionCheckoutSessionRequest } from './transactionCheckoutSessionRequest'; -import { TransactionGiftCardNewRequest } from './transactionGiftCardNewRequest'; -import { TransactionGiftCardRequest } from './transactionGiftCardRequest'; -import { TransactionGiftCardStoredRequest } from './transactionGiftCardStoredRequest'; -import { TransactionHistoryEvent } from './transactionHistoryEvent'; -import { TransactionHistoryEvents } from './transactionHistoryEvents'; -import { TransactionNetworkTokenApplePayRequest } from './transactionNetworkTokenApplePayRequest'; -import { TransactionNetworkTokenGooglePayRequest } from './transactionNetworkTokenGooglePayRequest'; -import { TransactionNetworkTokenRequest } from './transactionNetworkTokenRequest'; -import { TransactionPaymentMethod } from './transactionPaymentMethod'; -import { TransactionPaymentMethodRequest } from './transactionPaymentMethodRequest'; -import { TransactionPaymentService } from './transactionPaymentService'; -import { TransactionRedirectRequest } from './transactionRedirectRequest'; -import { TransactionRefundAllRequest } from './transactionRefundAllRequest'; -import { TransactionRefundRequest } from './transactionRefundRequest'; -import { TransactionRequest } from './transactionRequest'; -import { TransactionRequestBrowserInfo } from './transactionRequestBrowserInfo'; -import { TransactionRequestConnectionOptions } from './transactionRequestConnectionOptions'; -import { TransactionRequestStatementDescriptor } from './transactionRequestStatementDescriptor'; -import { TransactionShippingDetails } from './transactionShippingDetails'; -import { TransactionStatusSummary } from './transactionStatusSummary'; -import { TransactionSummary } from './transactionSummary'; -import { Transactions } from './transactions'; -import { TransactionsBatchCaptureRequest } from './transactionsBatchCaptureRequest'; -import { UserCurrentUpdate } from './userCurrentUpdate'; -import { UserRequest } from './userRequest'; -import { UserRole } from './userRole'; -import { UserUpdate } from './userUpdate'; +import { APIKeyPairCreate } from './aPIKeyPairCreate' +import { APIKeyPairUpdate } from './aPIKeyPairUpdate' +import { AccountUpdaterInquirySummary } from './accountUpdaterInquirySummary' +import { AccountUpdaterJob } from './accountUpdaterJob' +import { AccountUpdaterJobCreate } from './accountUpdaterJobCreate' +import { Address } from './address' +import { Airline } from './airline' +import { AirlineLeg } from './airlineLeg' +import { AirlinePassenger } from './airlinePassenger' +import { AntiFraudDecisionErrorEvent } from './antiFraudDecisionErrorEvent' +import { AntiFraudDecisionErrorEventContext } from './antiFraudDecisionErrorEventContext' +import { AntiFraudDecisionEvent } from './antiFraudDecisionEvent' +import { AntiFraudDecisionEventContext } from './antiFraudDecisionEventContext' +import { AntiFraudDecisionSkippedEvent } from './antiFraudDecisionSkippedEvent' +import { AntiFraudDecisionSkippedEventContext } from './antiFraudDecisionSkippedEventContext' +import { AntiFraudDecisionUpdateErrorEvent } from './antiFraudDecisionUpdateErrorEvent' +import { AntiFraudDecisionUpdateErrorEventContext } from './antiFraudDecisionUpdateErrorEventContext' +import { AntiFraudDecisionUpdateEvent } from './antiFraudDecisionUpdateEvent' +import { AntiFraudDecisionUpdateEventContext } from './antiFraudDecisionUpdateEventContext' +import { AntiFraudServiceCreate } from './antiFraudServiceCreate' +import { AntiFraudServiceDefinition } from './antiFraudServiceDefinition' +import { AntiFraudServiceDefinitionFieldsInner } from './antiFraudServiceDefinitionFieldsInner' +import { AntiFraudServiceUpdate } from './antiFraudServiceUpdate' +import { AntiFraudServiceUpdateFieldsInner } from './antiFraudServiceUpdateFieldsInner' +import { AntiFraudTransactionStatusUpdateErrorEvent } from './antiFraudTransactionStatusUpdateErrorEvent' +import { AntiFraudTransactionStatusUpdateErrorEventContext } from './antiFraudTransactionStatusUpdateErrorEventContext' +import { AntiFraudTransactionStatusUpdateEvent } from './antiFraudTransactionStatusUpdateEvent' +import { AntiFraudTransactionStatusUpdateEventContext } from './antiFraudTransactionStatusUpdateEventContext' +import { AntiFraudWebhookEvent } from './antiFraudWebhookEvent' +import { AntiFraudWebhookEventContext } from './antiFraudWebhookEventContext' +import { ApiLog } from './apiLog' +import { ApiLogResponseBody } from './apiLogResponseBody' +import { ApiLogResponseBodyDetails } from './apiLogResponseBodyDetails' +import { ApiLogs } from './apiLogs' +import { ApplePayRequest } from './applePayRequest' +import { ApplePaySessionRequest } from './applePaySessionRequest' +import { AuditLog } from './auditLog' +import { AuditLogResource } from './auditLogResource' +import { AuditLogUser } from './auditLogUser' +import { AuditLogs } from './auditLogs' +import { BINLookupRequest } from './bINLookupRequest' +import { BINLookupRequestContext } from './bINLookupRequestContext' +import { BillingDetails } from './billingDetails' +import { BillingDetailsAddress } from './billingDetailsAddress' +import { BillingDetailsRequest } from './billingDetailsRequest' +import { BillingDetailsRequestAddress } from './billingDetailsRequestAddress' +import { BillingDetailsRequestTaxId } from './billingDetailsRequestTaxId' +import { BillingDetailsTaxId } from './billingDetailsTaxId' +import { BillingDetailsUpdateRequest } from './billingDetailsUpdateRequest' +import { BillingDetailsUpdateRequestAddress } from './billingDetailsUpdateRequestAddress' +import { BrowserInfo } from './browserInfo' +import { Buyer } from './buyer' +import { BuyerBillingDetails } from './buyerBillingDetails' +import { BuyerRequest } from './buyerRequest' +import { BuyerRequestBillingDetails } from './buyerRequestBillingDetails' +import { BuyerSnapshot } from './buyerSnapshot' +import { BuyerSnapshotBillingDetails } from './buyerSnapshotBillingDetails' +import { BuyerUpdate } from './buyerUpdate' +import { BuyerUpdateBillingDetails } from './buyerUpdateBillingDetails' +import { Buyers } from './buyers' +import { CardDetails } from './cardDetails' +import { CardRequest } from './cardRequest' +import { CardSchemeDefinition } from './cardSchemeDefinition' +import { CardSchemeDefinitions } from './cardSchemeDefinitions' +import { CartItem } from './cartItem' +import { CheckoutSession } from './checkoutSession' +import { CheckoutSessionAirline } from './checkoutSessionAirline' +import { CheckoutSessionCreateRequest } from './checkoutSessionCreateRequest' +import { CheckoutSessionCreateRequestAirline } from './checkoutSessionCreateRequestAirline' +import { CheckoutSessionPaymentMethod } from './checkoutSessionPaymentMethod' +import { CheckoutSessionPaymentMethodDetails } from './checkoutSessionPaymentMethodDetails' +import { CheckoutSessionRequest } from './checkoutSessionRequest' +import { CheckoutSessionUpdateRequest } from './checkoutSessionUpdateRequest' +import { ClickToPaySessionRequest } from './clickToPaySessionRequest' +import { Connection } from './connection' +import { ConnectionDefinition } from './connectionDefinition' +import { ConnectionDefinitions } from './connectionDefinitions' +import { ConnectionOptions } from './connectionOptions' +import { ConnectionOptionsAdyenCard } from './connectionOptionsAdyenCard' +import { ConnectionOptionsAdyenSepa } from './connectionOptionsAdyenSepa' +import { ConnectionOptionsCybersourceAntiFraud } from './connectionOptionsCybersourceAntiFraud' +import { ConnectionOptionsCybersourceCard } from './connectionOptionsCybersourceCard' +import { ConnectionOptionsCybersourceIdeal } from './connectionOptionsCybersourceIdeal' +import { ConnectionOptionsCybersourceKcp } from './connectionOptionsCybersourceKcp' +import { ConnectionOptionsFiservCard } from './connectionOptionsFiservCard' +import { ConnectionOptionsFiservCardInstallmentOptions } from './connectionOptionsFiservCardInstallmentOptions' +import { ConnectionOptionsForterAntiFraud } from './connectionOptionsForterAntiFraud' +import { ConnectionOptionsForterAntiFraudCartItemsInner } from './connectionOptionsForterAntiFraudCartItemsInner' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData } from './connectionOptionsForterAntiFraudCartItemsInnerBasicItemData' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails' +import { ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner } from './connectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner' +import { ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails } from './connectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails' +import { ConnectionOptionsForterAntiFraudTotalDiscount } from './connectionOptionsForterAntiFraudTotalDiscount' +import { ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount } from './connectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount' +import { ConnectionOptionsGivingblockGivingblock } from './connectionOptionsGivingblockGivingblock' +import { ConnectionOptionsLatitudeLatitude } from './connectionOptionsLatitudeLatitude' +import { ConnectionOptionsPaypalPaypal } from './connectionOptionsPaypalPaypal' +import { ConnectionOptionsPaypalPaypalAdditionalDataInner } from './connectionOptionsPaypalPaypalAdditionalDataInner' +import { ConnectionOptionsPowertranzCard } from './connectionOptionsPowertranzCard' +import { ConnectionOptionsStripeCard } from './connectionOptionsStripeCard' +import { ConnectionOptionsStripeCardStripeConnect } from './connectionOptionsStripeCardStripeConnect' +import { Connections } from './connections' +import { Cryptogram } from './cryptogram' +import { DetailedSettlementReportSpec } from './detailedSettlementReportSpec' +import { DetailedSettlementReportSpecParams } from './detailedSettlementReportSpecParams' +import { DetailedSettlementReportSpecParamsFilters } from './detailedSettlementReportSpecParamsFilters' +import { DetailedSettlementReportSpecParamsFiltersIngestedAt } from './detailedSettlementReportSpecParamsFiltersIngestedAt' +import { DigitalWallet } from './digitalWallet' +import { DigitalWalletApplePayTokenDecrypted } from './digitalWalletApplePayTokenDecrypted' +import { DigitalWalletApplePayTokenDecryptedContext } from './digitalWalletApplePayTokenDecryptedContext' +import { DigitalWalletClickToPayFields } from './digitalWalletClickToPayFields' +import { DigitalWalletClickToPayTokenDecrypted } from './digitalWalletClickToPayTokenDecrypted' +import { DigitalWalletClickToPayTokenDecryptedContext } from './digitalWalletClickToPayTokenDecryptedContext' +import { DigitalWalletDomain } from './digitalWalletDomain' +import { DigitalWalletGooglePayTokenDecrypted } from './digitalWalletGooglePayTokenDecrypted' +import { DigitalWalletGooglePayTokenDecryptedContext } from './digitalWalletGooglePayTokenDecryptedContext' +import { DigitalWalletRequest } from './digitalWalletRequest' +import { DigitalWalletUpdate } from './digitalWalletUpdate' +import { DigitalWallets } from './digitalWallets' +import { Error400BadRequest } from './error400BadRequest' +import { Error401Unauthorized } from './error401Unauthorized' +import { Error403Forbidden } from './error403Forbidden' +import { Error404NotFound } from './error404NotFound' +import { Error409DuplicateRecord } from './error409DuplicateRecord' +import { Error429TooManyRequests } from './error429TooManyRequests' +import { ErrorDetail } from './errorDetail' +import { GiftCard } from './giftCard' +import { GiftCardBalanceNewRequest } from './giftCardBalanceNewRequest' +import { GiftCardBalanceRequest } from './giftCardBalanceRequest' +import { GiftCardBalanceStoredRequest } from './giftCardBalanceStoredRequest' +import { GiftCardBalancesRequest } from './giftCardBalancesRequest' +import { GiftCardBuyer } from './giftCardBuyer' +import { GiftCardRedemption } from './giftCardRedemption' +import { GiftCardRedemptionFailed } from './giftCardRedemptionFailed' +import { GiftCardRedemptionFailedContext } from './giftCardRedemptionFailedContext' +import { GiftCardRedemptionSucceeded } from './giftCardRedemptionSucceeded' +import { GiftCardRedemptionSucceededContext } from './giftCardRedemptionSucceededContext' +import { GiftCardRefundFailed } from './giftCardRefundFailed' +import { GiftCardRefundFailedContext } from './giftCardRefundFailedContext' +import { GiftCardRefundSucceeded } from './giftCardRefundSucceeded' +import { GiftCardService } from './giftCardService' +import { GiftCardServiceCreateRequest } from './giftCardServiceCreateRequest' +import { GiftCardServiceCreateRequestFieldsInner } from './giftCardServiceCreateRequestFieldsInner' +import { GiftCardServiceDefinition } from './giftCardServiceDefinition' +import { GiftCardServiceFieldsInner } from './giftCardServiceFieldsInner' +import { GiftCardServiceSnapshot } from './giftCardServiceSnapshot' +import { GiftCardServiceUpdateRequest } from './giftCardServiceUpdateRequest' +import { GiftCardServiceUpdateRequestFieldsInner } from './giftCardServiceUpdateRequestFieldsInner' +import { GiftCardServiceVerifyRequest } from './giftCardServiceVerifyRequest' +import { GiftCardServiceVerifyRequestFieldsInner } from './giftCardServiceVerifyRequestFieldsInner' +import { GiftCardSnapshot } from './giftCardSnapshot' +import { GiftCardStoreRequest } from './giftCardStoreRequest' +import { GiftCardSummary } from './giftCardSummary' +import { GiftCards } from './giftCards' +import { GiftCardsSummary } from './giftCardsSummary' +import { GooglePayRequest } from './googlePayRequest' +import { GooglePayRequestAssuranceDetails } from './googlePayRequestAssuranceDetails' +import { GooglePaySessionRequest } from './googlePaySessionRequest' +import { IssueCryptogramRequest } from './issueCryptogramRequest' +import { Merchant } from './merchant' +import { MerchantAccount } from './merchantAccount' +import { MerchantAccountCreate } from './merchantAccountCreate' +import { MerchantAccountUpdate } from './merchantAccountUpdate' +import { MerchantAccounts } from './merchantAccounts' +import { MerchantAddress } from './merchantAddress' +import { MerchantProfile } from './merchantProfile' +import { MerchantProfileAmex } from './merchantProfileAmex' +import { MerchantProfileDankort } from './merchantProfileDankort' +import { MerchantProfileDiscover } from './merchantProfileDiscover' +import { MerchantProfileJcb } from './merchantProfileJcb' +import { MerchantProfileMastercard } from './merchantProfileMastercard' +import { MerchantProfileScheme } from './merchantProfileScheme' +import { MerchantProfileSchemeSummary } from './merchantProfileSchemeSummary' +import { MerchantProfileSummary } from './merchantProfileSummary' +import { MerchantProfileSummaryAmex } from './merchantProfileSummaryAmex' +import { MerchantProfileSummaryDankort } from './merchantProfileSummaryDankort' +import { MerchantProfileSummaryDiscover } from './merchantProfileSummaryDiscover' +import { MerchantProfileSummaryJcb } from './merchantProfileSummaryJcb' +import { MerchantProfileSummaryMastercard } from './merchantProfileSummaryMastercard' +import { MerchantProfileSummaryUnionpay } from './merchantProfileSummaryUnionpay' +import { MerchantProfileSummaryVisa } from './merchantProfileSummaryVisa' +import { MerchantProfileUnionpay } from './merchantProfileUnionpay' +import { MerchantProfileVisa } from './merchantProfileVisa' +import { MerchantRequest } from './merchantRequest' +import { NetworkToken } from './networkToken' +import { NetworkTokenCryptogramProvisionFailed } from './networkTokenCryptogramProvisionFailed' +import { NetworkTokenCryptogramProvisionFailedContext } from './networkTokenCryptogramProvisionFailedContext' +import { NetworkTokenCryptogramProvisionSucceeded } from './networkTokenCryptogramProvisionSucceeded' +import { NetworkTokenCryptogramProvisionSucceededContext } from './networkTokenCryptogramProvisionSucceededContext' +import { NetworkTokenProvisionFailed } from './networkTokenProvisionFailed' +import { NetworkTokenProvisionFailedContext } from './networkTokenProvisionFailedContext' +import { NetworkTokenProvisionSucceeded } from './networkTokenProvisionSucceeded' +import { NetworkTokenRequest } from './networkTokenRequest' +import { NetworkTokens } from './networkTokens' +import { PaymentConnectorExternalTransactionRequest } from './paymentConnectorExternalTransactionRequest' +import { PaymentConnectorExternalTransactionRequestContext } from './paymentConnectorExternalTransactionRequestContext' +import { PaymentConnectorReportTransactionSettled } from './paymentConnectorReportTransactionSettled' +import { PaymentConnectorReportTransactionSettledContext } from './paymentConnectorReportTransactionSettledContext' +import { PaymentConnectorResponseTransactionAuthorizationFailedEvent } from './paymentConnectorResponseTransactionAuthorizationFailedEvent' +import { PaymentConnectorResponseTransactionAuthorizationFailedEventContext } from './paymentConnectorResponseTransactionAuthorizationFailedEventContext' +import { PaymentConnectorResponseTransactionAuthorizationSucceededEvent } from './paymentConnectorResponseTransactionAuthorizationSucceededEvent' +import { PaymentConnectorResponseTransactionAuthorizationSucceededEventContext } from './paymentConnectorResponseTransactionAuthorizationSucceededEventContext' +import { PaymentConnectorResponseTransactionCaptureDeclinedEvent } from './paymentConnectorResponseTransactionCaptureDeclinedEvent' +import { PaymentConnectorResponseTransactionCaptureDeclinedEventContext } from './paymentConnectorResponseTransactionCaptureDeclinedEventContext' +import { PaymentConnectorResponseTransactionCaptureFailedEvent } from './paymentConnectorResponseTransactionCaptureFailedEvent' +import { PaymentConnectorResponseTransactionCaptureSucceededEvent } from './paymentConnectorResponseTransactionCaptureSucceededEvent' +import { PaymentConnectorResponseTransactionCaptureSucceededEventContext } from './paymentConnectorResponseTransactionCaptureSucceededEventContext' +import { PaymentConnectorResponseTransactionDeclinedEvent } from './paymentConnectorResponseTransactionDeclinedEvent' +import { PaymentConnectorResponseTransactionDeclinedEventContext } from './paymentConnectorResponseTransactionDeclinedEventContext' +import { PaymentConnectorResponseTransactionVoidDeclinedEvent } from './paymentConnectorResponseTransactionVoidDeclinedEvent' +import { PaymentConnectorResponseTransactionVoidDeclinedEventContext } from './paymentConnectorResponseTransactionVoidDeclinedEventContext' +import { PaymentConnectorResponseTransactionVoidFailedEvent } from './paymentConnectorResponseTransactionVoidFailedEvent' +import { PaymentConnectorResponseTransactionVoidFailedEventContext } from './paymentConnectorResponseTransactionVoidFailedEventContext' +import { PaymentConnectorResponseTransactionVoidSucceededEvent } from './paymentConnectorResponseTransactionVoidSucceededEvent' +import { PaymentConnectorResponseTransactionVoidSucceededEventContext } from './paymentConnectorResponseTransactionVoidSucceededEventContext' +import { PaymentLink } from './paymentLink' +import { PaymentLinkBuyer } from './paymentLinkBuyer' +import { PaymentLinkRequest } from './paymentLinkRequest' +import { PaymentLinkRequestConnectionOptions } from './paymentLinkRequestConnectionOptions' +import { PaymentLinkShippingDetails } from './paymentLinkShippingDetails' +import { PaymentLinkStatementDescriptor } from './paymentLinkStatementDescriptor' +import { PaymentLinks } from './paymentLinks' +import { PaymentMethod } from './paymentMethod' +import { PaymentMethodDefinition } from './paymentMethodDefinition' +import { PaymentMethodDefinitions } from './paymentMethodDefinitions' +import { PaymentMethodDetailsCard } from './paymentMethodDetailsCard' +import { PaymentMethodRequest } from './paymentMethodRequest' +import { PaymentMethodSnapshot } from './paymentMethodSnapshot' +import { PaymentMethodTokenized } from './paymentMethodTokenized' +import { PaymentMethods } from './paymentMethods' +import { PaymentMethodsTokenized } from './paymentMethodsTokenized' +import { PaymentOption } from './paymentOption' +import { PaymentOptionApprovalUI } from './paymentOptionApprovalUI' +import { PaymentOptionContext } from './paymentOptionContext' +import { PaymentOptions } from './paymentOptions' +import { PaymentOptionsRequest } from './paymentOptionsRequest' +import { PaymentService } from './paymentService' +import { PaymentServiceDefinition } from './paymentServiceDefinition' +import { PaymentServiceDefinitionConfiguration } from './paymentServiceDefinitionConfiguration' +import { PaymentServiceDefinitionReportingFieldsInner } from './paymentServiceDefinitionReportingFieldsInner' +import { PaymentServiceDefinitionSupportedFeatures } from './paymentServiceDefinitionSupportedFeatures' +import { PaymentServiceDefinitions } from './paymentServiceDefinitions' +import { PaymentServiceMerchantProfile } from './paymentServiceMerchantProfile' +import { PaymentServiceReportingFieldsInner } from './paymentServiceReportingFieldsInner' +import { PaymentServiceRequest } from './paymentServiceRequest' +import { PaymentServiceRequestFieldsInner } from './paymentServiceRequestFieldsInner' +import { PaymentServiceRequestMerchantProfile } from './paymentServiceRequestMerchantProfile' +import { PaymentServiceRequestReportingFieldsInner } from './paymentServiceRequestReportingFieldsInner' +import { PaymentServiceSession } from './paymentServiceSession' +import { PaymentServiceSnapshot } from './paymentServiceSnapshot' +import { PaymentServiceToken } from './paymentServiceToken' +import { PaymentServiceTokenRequest } from './paymentServiceTokenRequest' +import { PaymentServiceTokens } from './paymentServiceTokens' +import { PaymentServiceUpdate } from './paymentServiceUpdate' +import { PaymentServiceUpdateFieldsInner } from './paymentServiceUpdateFieldsInner' +import { PaymentServiceUpdateMerchantProfile } from './paymentServiceUpdateMerchantProfile' +import { PaymentServiceUpdateReportingFieldsInner } from './paymentServiceUpdateReportingFieldsInner' +import { PaymentServices } from './paymentServices' +import { Payout } from './payout' +import { PayoutConnectionOptionsRequest } from './payoutConnectionOptionsRequest' +import { PayoutConnectionOptionsRequestCheckoutCard } from './payoutConnectionOptionsRequestCheckoutCard' +import { PayoutInlineCardRequest } from './payoutInlineCardRequest' +import { PayoutMerchant } from './payoutMerchant' +import { PayoutPaymentMethodRequest } from './payoutPaymentMethodRequest' +import { PayoutRequest } from './payoutRequest' +import { PayoutRequestBuyer } from './payoutRequestBuyer' +import { PayoutRequestConnectionOptions } from './payoutRequestConnectionOptions' +import { PayoutRequestMerchant } from './payoutRequestMerchant' +import { PayoutStoredCardRequest } from './payoutStoredCardRequest' +import { Payouts } from './payouts' +import { Recipient } from './recipient' +import { RecipientAddress } from './recipientAddress' +import { RecipientSnapshot } from './recipientSnapshot' +import { RedirectRequest } from './redirectRequest' +import { Refund } from './refund' +import { Refunds } from './refunds' +import { Report } from './report' +import { ReportCreate } from './reportCreate' +import { ReportExecution } from './reportExecution' +import { ReportExecutionSummary } from './reportExecutionSummary' +import { ReportExecutionSummaryContext } from './reportExecutionSummaryContext' +import { ReportExecutionUrl } from './reportExecutionUrl' +import { ReportExecutions } from './reportExecutions' +import { ReportSpec } from './reportSpec' +import { ReportSummary } from './reportSummary' +import { ReportUpdate } from './reportUpdate' +import { Reports } from './reports' +import { RequiredFields } from './requiredFields' +import { RequiredFieldsAddress } from './requiredFieldsAddress' +import { ResetPasswordRequest } from './resetPasswordRequest' +import { Role } from './role' +import { RoleAssignment } from './roleAssignment' +import { RoleAssignmentAssignee } from './roleAssignmentAssignee' +import { RoleAssignmentRequest } from './roleAssignmentRequest' +import { RoleAssignmentRequestAssignee } from './roleAssignmentRequestAssignee' +import { RoleAssignmentRequestRole } from './roleAssignmentRequestRole' +import { RoleAssignments } from './roleAssignments' +import { RolePermissions } from './rolePermissions' +import { Roles } from './roles' +import { SetPasswordRequest } from './setPasswordRequest' +import { Settlement } from './settlement' +import { Settlements } from './settlements' +import { ShippingDetail } from './shippingDetail' +import { ShippingDetailAddress } from './shippingDetailAddress' +import { ShippingDetailRequest } from './shippingDetailRequest' +import { ShippingDetailRequestAddress } from './shippingDetailRequestAddress' +import { ShippingDetailUpdateRequest } from './shippingDetailUpdateRequest' +import { ShippingDetails } from './shippingDetails' +import { StatementDescriptor } from './statementDescriptor' +import { TaxId } from './taxId' +import { ThreeDSecureAuthenticationRequestEvent } from './threeDSecureAuthenticationRequestEvent' +import { ThreeDSecureAuthenticationRequestEventContext } from './threeDSecureAuthenticationRequestEventContext' +import { ThreeDSecureData } from './threeDSecureData' +import { ThreeDSecureDataV1 } from './threeDSecureDataV1' +import { ThreeDSecureDataV1V2 } from './threeDSecureDataV1V2' +import { ThreeDSecureDataV2 } from './threeDSecureDataV2' +import { ThreeDSecureError } from './threeDSecureError' +import { ThreeDSecurePreparationRequestEvent } from './threeDSecurePreparationRequestEvent' +import { ThreeDSecurePreparationRequestEventContext } from './threeDSecurePreparationRequestEventContext' +import { ThreeDSecureRequestErrorEvent } from './threeDSecureRequestErrorEvent' +import { ThreeDSecureRequestErrorEventContext } from './threeDSecureRequestErrorEventContext' +import { ThreeDSecureResultRequestEvent } from './threeDSecureResultRequestEvent' +import { ThreeDSecureResultRequestEventContext } from './threeDSecureResultRequestEventContext' +import { ThreeDSecureSuccessEvent } from './threeDSecureSuccessEvent' +import { ThreeDSecureSuccessEventContext } from './threeDSecureSuccessEventContext' +import { ThreeDSecureSummary } from './threeDSecureSummary' +import { ThreeDSecureSummaryErrorData } from './threeDSecureSummaryErrorData' +import { ThreeDSecureV2 } from './threeDSecureV2' +import { TokenizedRequest } from './tokenizedRequest' +import { Transaction } from './transaction' +import { TransactionBuyer } from './transactionBuyer' +import { TransactionBuyerRequest } from './transactionBuyerRequest' +import { TransactionBuyerRequestBillingDetails } from './transactionBuyerRequestBillingDetails' +import { TransactionBuyerRequestShippingDetails } from './transactionBuyerRequestShippingDetails' +import { TransactionCaptureRequest } from './transactionCaptureRequest' +import { TransactionCaptureRequestAirline } from './transactionCaptureRequestAirline' +import { TransactionCardRequest } from './transactionCardRequest' +import { TransactionCheckoutSessionRequest } from './transactionCheckoutSessionRequest' +import { TransactionGiftCardNewRequest } from './transactionGiftCardNewRequest' +import { TransactionGiftCardRequest } from './transactionGiftCardRequest' +import { TransactionGiftCardStoredRequest } from './transactionGiftCardStoredRequest' +import { TransactionHistoryEvent } from './transactionHistoryEvent' +import { TransactionHistoryEvents } from './transactionHistoryEvents' +import { TransactionNetworkTokenApplePayRequest } from './transactionNetworkTokenApplePayRequest' +import { TransactionNetworkTokenGooglePayRequest } from './transactionNetworkTokenGooglePayRequest' +import { TransactionNetworkTokenRequest } from './transactionNetworkTokenRequest' +import { TransactionPaymentMethod } from './transactionPaymentMethod' +import { TransactionPaymentMethodRequest } from './transactionPaymentMethodRequest' +import { TransactionPaymentService } from './transactionPaymentService' +import { TransactionRecipient } from './transactionRecipient' +import { TransactionRedirectRequest } from './transactionRedirectRequest' +import { TransactionRefundAllRequest } from './transactionRefundAllRequest' +import { TransactionRefundRequest } from './transactionRefundRequest' +import { TransactionRequest } from './transactionRequest' +import { TransactionRequestBrowserInfo } from './transactionRequestBrowserInfo' +import { TransactionRequestRecipient } from './transactionRequestRecipient' +import { TransactionRetriesReportSpec } from './transactionRetriesReportSpec' +import { TransactionRetriesReportSpecParams } from './transactionRetriesReportSpecParams' +import { TransactionRetriesReportSpecParamsFilters } from './transactionRetriesReportSpecParamsFilters' +import { TransactionRetriesReportSpecParamsFiltersCreatedAt } from './transactionRetriesReportSpecParamsFiltersCreatedAt' +import { TransactionShippingDetails } from './transactionShippingDetails' +import { TransactionStatusSummary } from './transactionStatusSummary' +import { TransactionSummary } from './transactionSummary' +import { Transactions } from './transactions' +import { TransactionsBatchCaptureRequest } from './transactionsBatchCaptureRequest' +import { TransactionsReportSpec } from './transactionsReportSpec' +import { TransactionsReportSpecParams } from './transactionsReportSpecParams' +import { TransactionsReportSpecParamsFilters } from './transactionsReportSpecParamsFilters' +import { TransactionsReportSpecParamsFiltersAuthorizedAt } from './transactionsReportSpecParamsFiltersAuthorizedAt' +import { TransactionsReportSpecParamsFiltersCapturedAt } from './transactionsReportSpecParamsFiltersCapturedAt' +import { TransactionsReportSpecParamsFiltersUpdatedAt } from './transactionsReportSpecParamsFiltersUpdatedAt' +import { TransactionsReportSpecParamsFiltersVoidedAt } from './transactionsReportSpecParamsFiltersVoidedAt' +import { UserCurrentUpdate } from './userCurrentUpdate' +import { UserRequest } from './userRequest' +import { UserRole } from './userRole' +import { UserUpdate } from './userUpdate' +import { WebhookSubscription } from './webhookSubscription' +import { WebhookSubscriptionAuthentication } from './webhookSubscriptionAuthentication' +import { WebhookSubscriptionRequest } from './webhookSubscriptionRequest' +import { WebhookSubscriptionRotateSecretRequest } from './webhookSubscriptionRotateSecretRequest' +import { WebhookSubscriptionUpdateRequest } from './webhookSubscriptionUpdateRequest' +import { WebhookSubscriptions } from './webhookSubscriptions' /* tslint:disable:no-unused-variable */ let primitives = [ - "string", - "boolean", - "double", - "integer", - "long", - "float", - "number", - "any" - ]; + 'string', + 'boolean', + 'double', + 'integer', + 'long', + 'float', + 'number', + 'any', +] -let enumsMap: {[index: string]: any} = { - "APIKeyPairCreate.AlgorithmEnum": APIKeyPairCreate.AlgorithmEnum, - "AccountUpdaterInquirySummary.TypeEnum": AccountUpdaterInquirySummary.TypeEnum, - "AccountUpdaterJob.TypeEnum": AccountUpdaterJob.TypeEnum, - "AntiFraudDecisionErrorEvent.TypeEnum": AntiFraudDecisionErrorEvent.TypeEnum, - "AntiFraudDecisionErrorEvent.NameEnum": AntiFraudDecisionErrorEvent.NameEnum, - "AntiFraudDecisionEvent.TypeEnum": AntiFraudDecisionEvent.TypeEnum, - "AntiFraudDecisionEvent.NameEnum": AntiFraudDecisionEvent.NameEnum, - "AntiFraudDecisionSkippedEvent.TypeEnum": AntiFraudDecisionSkippedEvent.TypeEnum, - "AntiFraudDecisionSkippedEvent.NameEnum": AntiFraudDecisionSkippedEvent.NameEnum, - "AntiFraudDecisionUpdateErrorEvent.TypeEnum": AntiFraudDecisionUpdateErrorEvent.TypeEnum, - "AntiFraudDecisionUpdateErrorEvent.NameEnum": AntiFraudDecisionUpdateErrorEvent.NameEnum, - "AntiFraudDecisionUpdateEvent.TypeEnum": AntiFraudDecisionUpdateEvent.TypeEnum, - "AntiFraudDecisionUpdateEvent.NameEnum": AntiFraudDecisionUpdateEvent.NameEnum, - "AntiFraudServiceCreate.AntiFraudServiceDefinitionIdEnum": AntiFraudServiceCreate.AntiFraudServiceDefinitionIdEnum, - "AntiFraudServiceDefinition.TypeEnum": AntiFraudServiceDefinition.TypeEnum, - "AntiFraudServiceDefinitionFieldsInner.FormatEnum": AntiFraudServiceDefinitionFieldsInner.FormatEnum, - "AntiFraudServiceUpdate.AntiFraudServiceDefinitionIdEnum": AntiFraudServiceUpdate.AntiFraudServiceDefinitionIdEnum, - "AntiFraudTransactionStatusUpdateErrorEvent.TypeEnum": AntiFraudTransactionStatusUpdateErrorEvent.TypeEnum, - "AntiFraudTransactionStatusUpdateErrorEvent.NameEnum": AntiFraudTransactionStatusUpdateErrorEvent.NameEnum, - "AntiFraudTransactionStatusUpdateEvent.TypeEnum": AntiFraudTransactionStatusUpdateEvent.TypeEnum, - "AntiFraudTransactionStatusUpdateEvent.NameEnum": AntiFraudTransactionStatusUpdateEvent.NameEnum, - "AntiFraudWebhookEvent.TypeEnum": AntiFraudWebhookEvent.TypeEnum, - "AntiFraudWebhookEvent.NameEnum": AntiFraudWebhookEvent.NameEnum, - "ApiLog.TypeEnum": ApiLog.TypeEnum, - "ApplePayRequest.MethodEnum": ApplePayRequest.MethodEnum, - "AuditLog.TypeEnum": AuditLog.TypeEnum, - "AuditLog.ActionEnum": AuditLog.ActionEnum, - "AuditLogUser.StatusEnum": AuditLogUser.StatusEnum, - "BINLookupRequest.TypeEnum": BINLookupRequest.TypeEnum, - "BINLookupRequest.NameEnum": BINLookupRequest.NameEnum, - "BINLookupRequestContext.SchemeEnum": BINLookupRequestContext.SchemeEnum, - "BINLookupRequestContext.AdditionalSchemesEnum": BINLookupRequestContext.AdditionalSchemesEnum, - "BillingDetails.TypeEnum": BillingDetails.TypeEnum, - "BillingDetailsRequestTaxId.KindEnum": BillingDetailsRequestTaxId.KindEnum, - "BillingDetailsTaxId.KindEnum": BillingDetailsTaxId.KindEnum, - "BrowserInfo.UserDeviceEnum": BrowserInfo.UserDeviceEnum, - "Buyer.TypeEnum": Buyer.TypeEnum, - "BuyerBillingDetails.TypeEnum": BuyerBillingDetails.TypeEnum, - "BuyerSnapshot.TypeEnum": BuyerSnapshot.TypeEnum, - "BuyerSnapshotBillingDetails.TypeEnum": BuyerSnapshotBillingDetails.TypeEnum, - "CardDetails.TypeEnum": CardDetails.TypeEnum, - "CardDetails.CardTypeEnum": CardDetails.CardTypeEnum, - "CardDetails.SchemeEnum": CardDetails.SchemeEnum, - "CardRequest.MethodEnum": CardRequest.MethodEnum, - "CardSchemeDefinition.TypeEnum": CardSchemeDefinition.TypeEnum, - "CartItem.ProductTypeEnum": CartItem.ProductTypeEnum, - "CheckoutSession.TypeEnum": CheckoutSession.TypeEnum, - "CheckoutSessionPaymentMethod.MethodEnum": CheckoutSessionPaymentMethod.MethodEnum, - "CheckoutSessionPaymentMethod.SchemeEnum": CheckoutSessionPaymentMethod.SchemeEnum, - "CheckoutSessionPaymentMethodDetails.CardTypeEnum": CheckoutSessionPaymentMethodDetails.CardTypeEnum, - "CheckoutSessionRequest.MethodEnum": CheckoutSessionRequest.MethodEnum, - "ConnectionDefinition.GroupEnum": ConnectionDefinition.GroupEnum, - "ConnectionDefinition.CategoryEnum": ConnectionDefinition.CategoryEnum, - "ConnectionOptionsForterAntiFraud.DeliveryTypeEnum": ConnectionOptionsForterAntiFraud.DeliveryTypeEnum, - "ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData.TypeEnum": ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData.TypeEnum, - "ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails.DeliveryTypeEnum": ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails.DeliveryTypeEnum, - "DigitalWallet.TypeEnum": DigitalWallet.TypeEnum, - "DigitalWallet.ProviderEnum": DigitalWallet.ProviderEnum, - "DigitalWalletApplePayTokenDecrypted.TypeEnum": DigitalWalletApplePayTokenDecrypted.TypeEnum, - "DigitalWalletApplePayTokenDecrypted.NameEnum": DigitalWalletApplePayTokenDecrypted.NameEnum, - "DigitalWalletApplePayTokenDecryptedContext.TypeEnum": DigitalWalletApplePayTokenDecryptedContext.TypeEnum, - "DigitalWalletClickToPayTokenDecrypted.TypeEnum": DigitalWalletClickToPayTokenDecrypted.TypeEnum, - "DigitalWalletClickToPayTokenDecrypted.NameEnum": DigitalWalletClickToPayTokenDecrypted.NameEnum, - "DigitalWalletClickToPayTokenDecryptedContext.TypeEnum": DigitalWalletClickToPayTokenDecryptedContext.TypeEnum, - "DigitalWalletGooglePayTokenDecrypted.TypeEnum": DigitalWalletGooglePayTokenDecrypted.TypeEnum, - "DigitalWalletGooglePayTokenDecrypted.NameEnum": DigitalWalletGooglePayTokenDecrypted.NameEnum, - "DigitalWalletGooglePayTokenDecryptedContext.TypeEnum": DigitalWalletGooglePayTokenDecryptedContext.TypeEnum, - "DigitalWalletRequest.ProviderEnum": DigitalWalletRequest.ProviderEnum, - "Error400BadRequest.TypeEnum": Error400BadRequest.TypeEnum, - "Error400BadRequest.CodeEnum": Error400BadRequest.CodeEnum, - "Error400BadRequest.StatusEnum": Error400BadRequest.StatusEnum, - "Error401Unauthorized.TypeEnum": Error401Unauthorized.TypeEnum, - "Error401Unauthorized.CodeEnum": Error401Unauthorized.CodeEnum, - "Error401Unauthorized.StatusEnum": Error401Unauthorized.StatusEnum, - "Error401Unauthorized.MessageEnum": Error401Unauthorized.MessageEnum, - "Error403Forbidden.TypeEnum": Error403Forbidden.TypeEnum, - "Error403Forbidden.CodeEnum": Error403Forbidden.CodeEnum, - "Error403Forbidden.StatusEnum": Error403Forbidden.StatusEnum, - "Error403Forbidden.MessageEnum": Error403Forbidden.MessageEnum, - "Error404NotFound.TypeEnum": Error404NotFound.TypeEnum, - "Error404NotFound.CodeEnum": Error404NotFound.CodeEnum, - "Error404NotFound.StatusEnum": Error404NotFound.StatusEnum, - "Error409DuplicateRecord.TypeEnum": Error409DuplicateRecord.TypeEnum, - "Error409DuplicateRecord.CodeEnum": Error409DuplicateRecord.CodeEnum, - "Error409DuplicateRecord.StatusEnum": Error409DuplicateRecord.StatusEnum, - "Error429TooManyRequests.TypeEnum": Error429TooManyRequests.TypeEnum, - "Error429TooManyRequests.CodeEnum": Error429TooManyRequests.CodeEnum, - "Error429TooManyRequests.StatusEnum": Error429TooManyRequests.StatusEnum, - "ErrorDetail.LocationEnum": ErrorDetail.LocationEnum, - "GiftCard.TypeEnum": GiftCard.TypeEnum, - "GiftCardBuyer.TypeEnum": GiftCardBuyer.TypeEnum, - "GiftCardRedemption.TypeEnum": GiftCardRedemption.TypeEnum, - "GiftCardRedemption.StatusEnum": GiftCardRedemption.StatusEnum, - "GiftCardRedemption.ErrorCodeEnum": GiftCardRedemption.ErrorCodeEnum, - "GiftCardRedemptionFailed.TypeEnum": GiftCardRedemptionFailed.TypeEnum, - "GiftCardRedemptionFailed.NameEnum": GiftCardRedemptionFailed.NameEnum, - "GiftCardRedemptionSucceeded.TypeEnum": GiftCardRedemptionSucceeded.TypeEnum, - "GiftCardRedemptionSucceeded.NameEnum": GiftCardRedemptionSucceeded.NameEnum, - "GiftCardRefundFailed.TypeEnum": GiftCardRefundFailed.TypeEnum, - "GiftCardRefundFailed.NameEnum": GiftCardRefundFailed.NameEnum, - "GiftCardRefundSucceeded.TypeEnum": GiftCardRefundSucceeded.TypeEnum, - "GiftCardRefundSucceeded.NameEnum": GiftCardRefundSucceeded.NameEnum, - "GiftCardService.TypeEnum": GiftCardService.TypeEnum, - "GiftCardServiceDefinition.TypeEnum": GiftCardServiceDefinition.TypeEnum, - "GiftCardServiceSnapshot.TypeEnum": GiftCardServiceSnapshot.TypeEnum, - "GiftCardSnapshot.TypeEnum": GiftCardSnapshot.TypeEnum, - "GiftCardSummary.TypeEnum": GiftCardSummary.TypeEnum, - "GiftCardSummary.BalanceErrorCodeEnum": GiftCardSummary.BalanceErrorCodeEnum, - "GooglePayRequest.MethodEnum": GooglePayRequest.MethodEnum, - "MerchantAccount.TypeEnum": MerchantAccount.TypeEnum, - "MerchantAccount.LoonAcceptedSchemesEnum": MerchantAccount.LoonAcceptedSchemesEnum, - "MerchantAccountCreate.LoonAcceptedSchemesEnum": MerchantAccountCreate.LoonAcceptedSchemesEnum, - "MerchantAccountUpdate.LoonAcceptedSchemesEnum": MerchantAccountUpdate.LoonAcceptedSchemesEnum, - "NetworkToken.TypeEnum": NetworkToken.TypeEnum, - "NetworkToken.StatusEnum": NetworkToken.StatusEnum, - "NetworkTokenCryptogramProvisionFailed.TypeEnum": NetworkTokenCryptogramProvisionFailed.TypeEnum, - "NetworkTokenCryptogramProvisionFailed.NameEnum": NetworkTokenCryptogramProvisionFailed.NameEnum, - "NetworkTokenCryptogramProvisionSucceeded.TypeEnum": NetworkTokenCryptogramProvisionSucceeded.TypeEnum, - "NetworkTokenCryptogramProvisionSucceeded.NameEnum": NetworkTokenCryptogramProvisionSucceeded.NameEnum, - "NetworkTokenProvisionFailed.TypeEnum": NetworkTokenProvisionFailed.TypeEnum, - "NetworkTokenProvisionFailed.NameEnum": NetworkTokenProvisionFailed.NameEnum, - "NetworkTokenProvisionSucceeded.TypeEnum": NetworkTokenProvisionSucceeded.TypeEnum, - "NetworkTokenProvisionSucceeded.NameEnum": NetworkTokenProvisionSucceeded.NameEnum, - "PaymentConnectorExternalTransactionRequest.TypeEnum": PaymentConnectorExternalTransactionRequest.TypeEnum, - "PaymentConnectorExternalTransactionRequest.NameEnum": PaymentConnectorExternalTransactionRequest.NameEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEvent.TypeEnum": PaymentConnectorResponseTransactionAuthorizationFailedEvent.TypeEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEvent.NameEnum": PaymentConnectorResponseTransactionAuthorizationFailedEvent.NameEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.StatusEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.StatusEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.InstrumentTypeEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.InstrumentTypeEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.RetryRuleEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.RetryRuleEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.AvsResponseCodeEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.AvsResponseCodeEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.CvvResponseCodeEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.CvvResponseCodeEnum, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext.PaymentMethodSchemeEnum": PaymentConnectorResponseTransactionAuthorizationFailedEventContext.PaymentMethodSchemeEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEvent.TypeEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEvent.TypeEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEvent.NameEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEvent.NameEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.StatusEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.StatusEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.InstrumentTypeEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.InstrumentTypeEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.AvsResponseCodeEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.AvsResponseCodeEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.CvvResponseCodeEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.CvvResponseCodeEnum, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.PaymentMethodSchemeEnum": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.PaymentMethodSchemeEnum, - "PaymentConnectorResponseTransactionCaptureDeclinedEvent.TypeEnum": PaymentConnectorResponseTransactionCaptureDeclinedEvent.TypeEnum, - "PaymentConnectorResponseTransactionCaptureDeclinedEvent.NameEnum": PaymentConnectorResponseTransactionCaptureDeclinedEvent.NameEnum, - "PaymentConnectorResponseTransactionCaptureDeclinedEventContext.AvsResponseCodeEnum": PaymentConnectorResponseTransactionCaptureDeclinedEventContext.AvsResponseCodeEnum, - "PaymentConnectorResponseTransactionCaptureDeclinedEventContext.CvvResponseCodeEnum": PaymentConnectorResponseTransactionCaptureDeclinedEventContext.CvvResponseCodeEnum, - "PaymentConnectorResponseTransactionCaptureDeclinedEventContext.PaymentMethodSchemeEnum": PaymentConnectorResponseTransactionCaptureDeclinedEventContext.PaymentMethodSchemeEnum, - "PaymentConnectorResponseTransactionCaptureFailedEvent.TypeEnum": PaymentConnectorResponseTransactionCaptureFailedEvent.TypeEnum, - "PaymentConnectorResponseTransactionCaptureFailedEvent.NameEnum": PaymentConnectorResponseTransactionCaptureFailedEvent.NameEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEvent.TypeEnum": PaymentConnectorResponseTransactionCaptureSucceededEvent.TypeEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEvent.NameEnum": PaymentConnectorResponseTransactionCaptureSucceededEvent.NameEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext.StatusEnum": PaymentConnectorResponseTransactionCaptureSucceededEventContext.StatusEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext.InstrumentTypeEnum": PaymentConnectorResponseTransactionCaptureSucceededEventContext.InstrumentTypeEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext.AvsResponseCodeEnum": PaymentConnectorResponseTransactionCaptureSucceededEventContext.AvsResponseCodeEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext.CvvResponseCodeEnum": PaymentConnectorResponseTransactionCaptureSucceededEventContext.CvvResponseCodeEnum, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext.PaymentMethodSchemeEnum": PaymentConnectorResponseTransactionCaptureSucceededEventContext.PaymentMethodSchemeEnum, - "PaymentConnectorResponseTransactionDeclinedEvent.TypeEnum": PaymentConnectorResponseTransactionDeclinedEvent.TypeEnum, - "PaymentConnectorResponseTransactionDeclinedEvent.NameEnum": PaymentConnectorResponseTransactionDeclinedEvent.NameEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.StatusEnum": PaymentConnectorResponseTransactionDeclinedEventContext.StatusEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.InstrumentTypeEnum": PaymentConnectorResponseTransactionDeclinedEventContext.InstrumentTypeEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.RetryRuleEnum": PaymentConnectorResponseTransactionDeclinedEventContext.RetryRuleEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.AvsResponseCodeEnum": PaymentConnectorResponseTransactionDeclinedEventContext.AvsResponseCodeEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.CvvResponseCodeEnum": PaymentConnectorResponseTransactionDeclinedEventContext.CvvResponseCodeEnum, - "PaymentConnectorResponseTransactionDeclinedEventContext.PaymentMethodSchemeEnum": PaymentConnectorResponseTransactionDeclinedEventContext.PaymentMethodSchemeEnum, - "PaymentConnectorResponseTransactionVoidDeclinedEvent.TypeEnum": PaymentConnectorResponseTransactionVoidDeclinedEvent.TypeEnum, - "PaymentConnectorResponseTransactionVoidDeclinedEvent.NameEnum": PaymentConnectorResponseTransactionVoidDeclinedEvent.NameEnum, - "PaymentConnectorResponseTransactionVoidFailedEvent.TypeEnum": PaymentConnectorResponseTransactionVoidFailedEvent.TypeEnum, - "PaymentConnectorResponseTransactionVoidFailedEvent.NameEnum": PaymentConnectorResponseTransactionVoidFailedEvent.NameEnum, - "PaymentConnectorResponseTransactionVoidSucceededEvent.TypeEnum": PaymentConnectorResponseTransactionVoidSucceededEvent.TypeEnum, - "PaymentConnectorResponseTransactionVoidSucceededEvent.NameEnum": PaymentConnectorResponseTransactionVoidSucceededEvent.NameEnum, - "PaymentMethod.TypeEnum": PaymentMethod.TypeEnum, - "PaymentMethod.AdditionalSchemesEnum": PaymentMethod.AdditionalSchemesEnum, - "PaymentMethod.ApprovalTargetEnum": PaymentMethod.ApprovalTargetEnum, - "PaymentMethod.MethodEnum": PaymentMethod.MethodEnum, - "PaymentMethod.ModeEnum": PaymentMethod.ModeEnum, - "PaymentMethod.SchemeEnum": PaymentMethod.SchemeEnum, - "PaymentMethod.StatusEnum": PaymentMethod.StatusEnum, - "PaymentMethodDetailsCard.CardTypeEnum": PaymentMethodDetailsCard.CardTypeEnum, - "PaymentMethodSnapshot.TypeEnum": PaymentMethodSnapshot.TypeEnum, - "PaymentMethodSnapshot.ApprovalTargetEnum": PaymentMethodSnapshot.ApprovalTargetEnum, - "PaymentMethodSnapshot.MethodEnum": PaymentMethodSnapshot.MethodEnum, - "PaymentMethodSnapshot.SchemeEnum": PaymentMethodSnapshot.SchemeEnum, - "PaymentMethodTokenized.TypeEnum": PaymentMethodTokenized.TypeEnum, - "PaymentMethodTokenized.MethodEnum": PaymentMethodTokenized.MethodEnum, - "PaymentMethodTokenized.SchemeEnum": PaymentMethodTokenized.SchemeEnum, - "PaymentMethodTokenized.AdditionalSchemesEnum": PaymentMethodTokenized.AdditionalSchemesEnum, - "PaymentMethodTokenized.ApprovalTargetEnum": PaymentMethodTokenized.ApprovalTargetEnum, - "PaymentOption.TypeEnum": PaymentOption.TypeEnum, - "PaymentOption.MethodEnum": PaymentOption.MethodEnum, - "PaymentOption.ModeEnum": PaymentOption.ModeEnum, - "PaymentService.TypeEnum": PaymentService.TypeEnum, - "PaymentService.MethodEnum": PaymentService.MethodEnum, - "PaymentService.StatusEnum": PaymentService.StatusEnum, - "PaymentServiceDefinition.TypeEnum": PaymentServiceDefinition.TypeEnum, - "PaymentServiceDefinition.MethodEnum": PaymentServiceDefinition.MethodEnum, - "PaymentServiceDefinition.ModeEnum": PaymentServiceDefinition.ModeEnum, - "PaymentServiceDefinitionConfiguration.ApprovalUiTargetEnum": PaymentServiceDefinitionConfiguration.ApprovalUiTargetEnum, - "PaymentServiceSession.TypeEnum": PaymentServiceSession.TypeEnum, - "PaymentServiceSession.StatusEnum": PaymentServiceSession.StatusEnum, - "PaymentServiceSnapshot.TypeEnum": PaymentServiceSnapshot.TypeEnum, - "PaymentServiceSnapshot.MethodEnum": PaymentServiceSnapshot.MethodEnum, - "PaymentServiceToken.TypeEnum": PaymentServiceToken.TypeEnum, - "PaymentServiceToken.StatusEnum": PaymentServiceToken.StatusEnum, - "RedirectRequest.MethodEnum": RedirectRequest.MethodEnum, - "Refund.TypeEnum": Refund.TypeEnum, - "Refund.StatusEnum": Refund.StatusEnum, - "Refund.TargetTypeEnum": Refund.TargetTypeEnum, - "Report.ScheduleEnum": Report.ScheduleEnum, - "Report.TypeEnum": Report.TypeEnum, - "Report.CreatorTypeEnum": Report.CreatorTypeEnum, - "ReportCreate.ScheduleEnum": ReportCreate.ScheduleEnum, - "ReportExecution.TypeEnum": ReportExecution.TypeEnum, - "ReportExecution.StatusEnum": ReportExecution.StatusEnum, - "ReportExecutionSummary.TypeEnum": ReportExecutionSummary.TypeEnum, - "ReportExecutionSummary.StatusEnum": ReportExecutionSummary.StatusEnum, - "ReportSpec.ModelEnum": ReportSpec.ModelEnum, - "ReportSpecParams.FieldsEnum": ReportSpecParams.FieldsEnum, - "ReportSummary.TypeEnum": ReportSummary.TypeEnum, - "ReportSummary.CreatorTypeEnum": ReportSummary.CreatorTypeEnum, - "Role.TypeEnum": Role.TypeEnum, - "RoleAssignment.TypeEnum": RoleAssignment.TypeEnum, - "RoleAssignmentAssignee.TypeEnum": RoleAssignmentAssignee.TypeEnum, - "RoleAssignmentRequestAssignee.TypeEnum": RoleAssignmentRequestAssignee.TypeEnum, - "ShippingDetail.TypeEnum": ShippingDetail.TypeEnum, - "TaxId.KindEnum": TaxId.KindEnum, - "ThreeDSecureAuthenticationRequestEvent.TypeEnum": ThreeDSecureAuthenticationRequestEvent.TypeEnum, - "ThreeDSecureAuthenticationRequestEvent.NameEnum": ThreeDSecureAuthenticationRequestEvent.NameEnum, - "ThreeDSecureData.SchemeEnum": ThreeDSecureData.SchemeEnum, - "ThreeDSecureDataV1.SchemeEnum": ThreeDSecureDataV1.SchemeEnum, - "ThreeDSecureDataV1V2.DirectoryResponseEnum": ThreeDSecureDataV1V2.DirectoryResponseEnum, - "ThreeDSecureDataV1V2.SchemeEnum": ThreeDSecureDataV1V2.SchemeEnum, - "ThreeDSecureDataV1V2.AuthenticationResponseEnum": ThreeDSecureDataV1V2.AuthenticationResponseEnum, - "ThreeDSecureDataV2.DirectoryResponseEnum": ThreeDSecureDataV2.DirectoryResponseEnum, - "ThreeDSecureDataV2.SchemeEnum": ThreeDSecureDataV2.SchemeEnum, - "ThreeDSecureDataV2.AuthenticationResponseEnum": ThreeDSecureDataV2.AuthenticationResponseEnum, - "ThreeDSecurePreparationRequestEvent.TypeEnum": ThreeDSecurePreparationRequestEvent.TypeEnum, - "ThreeDSecurePreparationRequestEvent.NameEnum": ThreeDSecurePreparationRequestEvent.NameEnum, - "ThreeDSecureRequestErrorEvent.TypeEnum": ThreeDSecureRequestErrorEvent.TypeEnum, - "ThreeDSecureRequestErrorEvent.NameEnum": ThreeDSecureRequestErrorEvent.NameEnum, - "ThreeDSecureResultRequestEvent.TypeEnum": ThreeDSecureResultRequestEvent.TypeEnum, - "ThreeDSecureResultRequestEvent.NameEnum": ThreeDSecureResultRequestEvent.NameEnum, - "ThreeDSecureSuccessEvent.TypeEnum": ThreeDSecureSuccessEvent.TypeEnum, - "ThreeDSecureSuccessEvent.NameEnum": ThreeDSecureSuccessEvent.NameEnum, - "ThreeDSecureSuccessEventContext.MethodEnum": ThreeDSecureSuccessEventContext.MethodEnum, - "ThreeDSecureSummary.StatusEnum": ThreeDSecureSummary.StatusEnum, - "ThreeDSecureSummary.MethodEnum": ThreeDSecureSummary.MethodEnum, - "ThreeDSecureV2.AuthenticationResponseEnum": ThreeDSecureV2.AuthenticationResponseEnum, - "ThreeDSecureV2.DirectoryResponseEnum": ThreeDSecureV2.DirectoryResponseEnum, - "TokenizedRequest.MethodEnum": TokenizedRequest.MethodEnum, - "Transaction.TypeEnum": Transaction.TypeEnum, - "Transaction.AvsResponseCodeEnum": Transaction.AvsResponseCodeEnum, - "Transaction.CvvResponseCodeEnum": Transaction.CvvResponseCodeEnum, - "Transaction.InstrumentTypeEnum": Transaction.InstrumentTypeEnum, - "Transaction.IntentEnum": Transaction.IntentEnum, - "Transaction.IntentOutcomeEnum": Transaction.IntentOutcomeEnum, - "Transaction.MethodEnum": Transaction.MethodEnum, - "Transaction.PaymentSourceEnum": Transaction.PaymentSourceEnum, - "Transaction.StatusEnum": Transaction.StatusEnum, - "TransactionBuyer.TypeEnum": TransactionBuyer.TypeEnum, - "TransactionCardRequest.MethodEnum": TransactionCardRequest.MethodEnum, - "TransactionCheckoutSessionRequest.MethodEnum": TransactionCheckoutSessionRequest.MethodEnum, - "TransactionHistoryEvent.TypeEnum": TransactionHistoryEvent.TypeEnum, - "TransactionHistoryEvent.NameEnum": TransactionHistoryEvent.NameEnum, - "TransactionNetworkTokenApplePayRequest.MethodEnum": TransactionNetworkTokenApplePayRequest.MethodEnum, - "TransactionNetworkTokenApplePayRequest.CardSourceEnum": TransactionNetworkTokenApplePayRequest.CardSourceEnum, - "TransactionNetworkTokenGooglePayRequest.MethodEnum": TransactionNetworkTokenGooglePayRequest.MethodEnum, - "TransactionNetworkTokenGooglePayRequest.CardSourceEnum": TransactionNetworkTokenGooglePayRequest.CardSourceEnum, - "TransactionNetworkTokenRequest.MethodEnum": TransactionNetworkTokenRequest.MethodEnum, - "TransactionPaymentMethod.TypeEnum": TransactionPaymentMethod.TypeEnum, - "TransactionPaymentMethod.ApprovalTargetEnum": TransactionPaymentMethod.ApprovalTargetEnum, - "TransactionPaymentMethod.MethodEnum": TransactionPaymentMethod.MethodEnum, - "TransactionPaymentMethod.SchemeEnum": TransactionPaymentMethod.SchemeEnum, - "TransactionPaymentMethodRequest.MethodEnum": TransactionPaymentMethodRequest.MethodEnum, - "TransactionPaymentService.TypeEnum": TransactionPaymentService.TypeEnum, - "TransactionPaymentService.MethodEnum": TransactionPaymentService.MethodEnum, - "TransactionRedirectRequest.MethodEnum": TransactionRedirectRequest.MethodEnum, - "TransactionRefundRequest.TargetTypeEnum": TransactionRefundRequest.TargetTypeEnum, - "TransactionRequest.IntentEnum": TransactionRequest.IntentEnum, - "TransactionRequest.PaymentSourceEnum": TransactionRequest.PaymentSourceEnum, - "TransactionRequestBrowserInfo.UserDeviceEnum": TransactionRequestBrowserInfo.UserDeviceEnum, - "TransactionShippingDetails.TypeEnum": TransactionShippingDetails.TypeEnum, - "TransactionStatusSummary.TypeEnum": TransactionStatusSummary.TypeEnum, - "TransactionStatusSummary.StatusEnum": TransactionStatusSummary.StatusEnum, - "TransactionSummary.TypeEnum": TransactionSummary.TypeEnum, - "TransactionSummary.InstrumentTypeEnum": TransactionSummary.InstrumentTypeEnum, - "TransactionSummary.IntentEnum": TransactionSummary.IntentEnum, - "TransactionSummary.MethodEnum": TransactionSummary.MethodEnum, - "TransactionSummary.StatusEnum": TransactionSummary.StatusEnum, - "UserRole.TypeEnum": UserRole.TypeEnum, +let enumsMap: { [index: string]: any } = { + 'APIKeyPairCreate.AlgorithmEnum': APIKeyPairCreate.AlgorithmEnum, + 'AccountUpdaterInquirySummary.TypeEnum': + AccountUpdaterInquirySummary.TypeEnum, + 'AccountUpdaterJob.TypeEnum': AccountUpdaterJob.TypeEnum, + 'Airline.TicketDeliveryMethodEnum': Airline.TicketDeliveryMethodEnum, + 'AirlineLeg.RouteTypeEnum': AirlineLeg.RouteTypeEnum, + 'AirlinePassenger.AgeGroupEnum': AirlinePassenger.AgeGroupEnum, + 'AntiFraudDecisionErrorEvent.TypeEnum': AntiFraudDecisionErrorEvent.TypeEnum, + 'AntiFraudDecisionErrorEvent.NameEnum': AntiFraudDecisionErrorEvent.NameEnum, + 'AntiFraudDecisionEvent.TypeEnum': AntiFraudDecisionEvent.TypeEnum, + 'AntiFraudDecisionEvent.NameEnum': AntiFraudDecisionEvent.NameEnum, + 'AntiFraudDecisionSkippedEvent.TypeEnum': + AntiFraudDecisionSkippedEvent.TypeEnum, + 'AntiFraudDecisionSkippedEvent.NameEnum': + AntiFraudDecisionSkippedEvent.NameEnum, + 'AntiFraudDecisionUpdateErrorEvent.TypeEnum': + AntiFraudDecisionUpdateErrorEvent.TypeEnum, + 'AntiFraudDecisionUpdateErrorEvent.NameEnum': + AntiFraudDecisionUpdateErrorEvent.NameEnum, + 'AntiFraudDecisionUpdateEvent.TypeEnum': + AntiFraudDecisionUpdateEvent.TypeEnum, + 'AntiFraudDecisionUpdateEvent.NameEnum': + AntiFraudDecisionUpdateEvent.NameEnum, + 'AntiFraudServiceCreate.AntiFraudServiceDefinitionIdEnum': + AntiFraudServiceCreate.AntiFraudServiceDefinitionIdEnum, + 'AntiFraudServiceDefinition.TypeEnum': AntiFraudServiceDefinition.TypeEnum, + 'AntiFraudServiceDefinitionFieldsInner.FormatEnum': + AntiFraudServiceDefinitionFieldsInner.FormatEnum, + 'AntiFraudServiceUpdate.AntiFraudServiceDefinitionIdEnum': + AntiFraudServiceUpdate.AntiFraudServiceDefinitionIdEnum, + 'AntiFraudTransactionStatusUpdateErrorEvent.TypeEnum': + AntiFraudTransactionStatusUpdateErrorEvent.TypeEnum, + 'AntiFraudTransactionStatusUpdateErrorEvent.NameEnum': + AntiFraudTransactionStatusUpdateErrorEvent.NameEnum, + 'AntiFraudTransactionStatusUpdateEvent.TypeEnum': + AntiFraudTransactionStatusUpdateEvent.TypeEnum, + 'AntiFraudTransactionStatusUpdateEvent.NameEnum': + AntiFraudTransactionStatusUpdateEvent.NameEnum, + 'AntiFraudWebhookEvent.TypeEnum': AntiFraudWebhookEvent.TypeEnum, + 'AntiFraudWebhookEvent.NameEnum': AntiFraudWebhookEvent.NameEnum, + 'ApiLog.TypeEnum': ApiLog.TypeEnum, + 'ApplePayRequest.MethodEnum': ApplePayRequest.MethodEnum, + 'AuditLog.TypeEnum': AuditLog.TypeEnum, + 'AuditLog.ActionEnum': AuditLog.ActionEnum, + 'AuditLogUser.StatusEnum': AuditLogUser.StatusEnum, + 'BINLookupRequest.TypeEnum': BINLookupRequest.TypeEnum, + 'BINLookupRequest.NameEnum': BINLookupRequest.NameEnum, + 'BINLookupRequestContext.SchemeEnum': BINLookupRequestContext.SchemeEnum, + 'BINLookupRequestContext.AdditionalSchemesEnum': + BINLookupRequestContext.AdditionalSchemesEnum, + 'BillingDetails.TypeEnum': BillingDetails.TypeEnum, + 'BillingDetailsRequestTaxId.KindEnum': BillingDetailsRequestTaxId.KindEnum, + 'BillingDetailsTaxId.KindEnum': BillingDetailsTaxId.KindEnum, + 'BrowserInfo.UserDeviceEnum': BrowserInfo.UserDeviceEnum, + 'Buyer.TypeEnum': Buyer.TypeEnum, + 'BuyerBillingDetails.TypeEnum': BuyerBillingDetails.TypeEnum, + 'BuyerSnapshot.TypeEnum': BuyerSnapshot.TypeEnum, + 'BuyerSnapshotBillingDetails.TypeEnum': BuyerSnapshotBillingDetails.TypeEnum, + 'CardDetails.TypeEnum': CardDetails.TypeEnum, + 'CardDetails.CardTypeEnum': CardDetails.CardTypeEnum, + 'CardDetails.SchemeEnum': CardDetails.SchemeEnum, + 'CardRequest.MethodEnum': CardRequest.MethodEnum, + 'CardSchemeDefinition.TypeEnum': CardSchemeDefinition.TypeEnum, + 'CartItem.ProductTypeEnum': CartItem.ProductTypeEnum, + 'CheckoutSession.TypeEnum': CheckoutSession.TypeEnum, + 'CheckoutSessionAirline.TicketDeliveryMethodEnum': + CheckoutSessionAirline.TicketDeliveryMethodEnum, + 'CheckoutSessionCreateRequestAirline.TicketDeliveryMethodEnum': + CheckoutSessionCreateRequestAirline.TicketDeliveryMethodEnum, + 'CheckoutSessionPaymentMethod.MethodEnum': + CheckoutSessionPaymentMethod.MethodEnum, + 'CheckoutSessionPaymentMethod.SchemeEnum': + CheckoutSessionPaymentMethod.SchemeEnum, + 'CheckoutSessionPaymentMethodDetails.CardTypeEnum': + CheckoutSessionPaymentMethodDetails.CardTypeEnum, + 'CheckoutSessionRequest.MethodEnum': CheckoutSessionRequest.MethodEnum, + 'ConnectionDefinition.GroupEnum': ConnectionDefinition.GroupEnum, + 'ConnectionDefinition.CategoryEnum': ConnectionDefinition.CategoryEnum, + 'ConnectionOptionsForterAntiFraud.DeliveryTypeEnum': + ConnectionOptionsForterAntiFraud.DeliveryTypeEnum, + 'ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData.TypeEnum': + ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData.TypeEnum, + 'ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails.DeliveryTypeEnum': + ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails.DeliveryTypeEnum, + 'DetailedSettlementReportSpec.ModelEnum': + DetailedSettlementReportSpec.ModelEnum, + 'DetailedSettlementReportSpecParamsFiltersIngestedAt.StartEnum': + DetailedSettlementReportSpecParamsFiltersIngestedAt.StartEnum, + 'DetailedSettlementReportSpecParamsFiltersIngestedAt.EndEnum': + DetailedSettlementReportSpecParamsFiltersIngestedAt.EndEnum, + 'DigitalWallet.TypeEnum': DigitalWallet.TypeEnum, + 'DigitalWallet.ProviderEnum': DigitalWallet.ProviderEnum, + 'DigitalWalletApplePayTokenDecrypted.TypeEnum': + DigitalWalletApplePayTokenDecrypted.TypeEnum, + 'DigitalWalletApplePayTokenDecrypted.NameEnum': + DigitalWalletApplePayTokenDecrypted.NameEnum, + 'DigitalWalletApplePayTokenDecryptedContext.TypeEnum': + DigitalWalletApplePayTokenDecryptedContext.TypeEnum, + 'DigitalWalletClickToPayTokenDecrypted.TypeEnum': + DigitalWalletClickToPayTokenDecrypted.TypeEnum, + 'DigitalWalletClickToPayTokenDecrypted.NameEnum': + DigitalWalletClickToPayTokenDecrypted.NameEnum, + 'DigitalWalletClickToPayTokenDecryptedContext.TypeEnum': + DigitalWalletClickToPayTokenDecryptedContext.TypeEnum, + 'DigitalWalletGooglePayTokenDecrypted.TypeEnum': + DigitalWalletGooglePayTokenDecrypted.TypeEnum, + 'DigitalWalletGooglePayTokenDecrypted.NameEnum': + DigitalWalletGooglePayTokenDecrypted.NameEnum, + 'DigitalWalletGooglePayTokenDecryptedContext.TypeEnum': + DigitalWalletGooglePayTokenDecryptedContext.TypeEnum, + 'DigitalWalletRequest.ProviderEnum': DigitalWalletRequest.ProviderEnum, + 'Error400BadRequest.TypeEnum': Error400BadRequest.TypeEnum, + 'Error400BadRequest.CodeEnum': Error400BadRequest.CodeEnum, + 'Error400BadRequest.StatusEnum': Error400BadRequest.StatusEnum, + 'Error401Unauthorized.TypeEnum': Error401Unauthorized.TypeEnum, + 'Error401Unauthorized.CodeEnum': Error401Unauthorized.CodeEnum, + 'Error401Unauthorized.StatusEnum': Error401Unauthorized.StatusEnum, + 'Error401Unauthorized.MessageEnum': Error401Unauthorized.MessageEnum, + 'Error403Forbidden.TypeEnum': Error403Forbidden.TypeEnum, + 'Error403Forbidden.CodeEnum': Error403Forbidden.CodeEnum, + 'Error403Forbidden.StatusEnum': Error403Forbidden.StatusEnum, + 'Error403Forbidden.MessageEnum': Error403Forbidden.MessageEnum, + 'Error404NotFound.TypeEnum': Error404NotFound.TypeEnum, + 'Error404NotFound.CodeEnum': Error404NotFound.CodeEnum, + 'Error404NotFound.StatusEnum': Error404NotFound.StatusEnum, + 'Error409DuplicateRecord.TypeEnum': Error409DuplicateRecord.TypeEnum, + 'Error409DuplicateRecord.CodeEnum': Error409DuplicateRecord.CodeEnum, + 'Error409DuplicateRecord.StatusEnum': Error409DuplicateRecord.StatusEnum, + 'Error429TooManyRequests.TypeEnum': Error429TooManyRequests.TypeEnum, + 'Error429TooManyRequests.CodeEnum': Error429TooManyRequests.CodeEnum, + 'Error429TooManyRequests.StatusEnum': Error429TooManyRequests.StatusEnum, + 'ErrorDetail.LocationEnum': ErrorDetail.LocationEnum, + 'GiftCard.TypeEnum': GiftCard.TypeEnum, + 'GiftCardBuyer.TypeEnum': GiftCardBuyer.TypeEnum, + 'GiftCardRedemption.TypeEnum': GiftCardRedemption.TypeEnum, + 'GiftCardRedemption.StatusEnum': GiftCardRedemption.StatusEnum, + 'GiftCardRedemption.ErrorCodeEnum': GiftCardRedemption.ErrorCodeEnum, + 'GiftCardRedemptionFailed.TypeEnum': GiftCardRedemptionFailed.TypeEnum, + 'GiftCardRedemptionFailed.NameEnum': GiftCardRedemptionFailed.NameEnum, + 'GiftCardRedemptionSucceeded.TypeEnum': GiftCardRedemptionSucceeded.TypeEnum, + 'GiftCardRedemptionSucceeded.NameEnum': GiftCardRedemptionSucceeded.NameEnum, + 'GiftCardRefundFailed.TypeEnum': GiftCardRefundFailed.TypeEnum, + 'GiftCardRefundFailed.NameEnum': GiftCardRefundFailed.NameEnum, + 'GiftCardRefundSucceeded.TypeEnum': GiftCardRefundSucceeded.TypeEnum, + 'GiftCardRefundSucceeded.NameEnum': GiftCardRefundSucceeded.NameEnum, + 'GiftCardService.TypeEnum': GiftCardService.TypeEnum, + 'GiftCardServiceDefinition.TypeEnum': GiftCardServiceDefinition.TypeEnum, + 'GiftCardServiceSnapshot.TypeEnum': GiftCardServiceSnapshot.TypeEnum, + 'GiftCardSnapshot.TypeEnum': GiftCardSnapshot.TypeEnum, + 'GiftCardSummary.TypeEnum': GiftCardSummary.TypeEnum, + 'GiftCardSummary.BalanceErrorCodeEnum': GiftCardSummary.BalanceErrorCodeEnum, + 'GooglePayRequest.MethodEnum': GooglePayRequest.MethodEnum, + 'Merchant.TypeEnum': Merchant.TypeEnum, + 'MerchantAccount.TypeEnum': MerchantAccount.TypeEnum, + 'MerchantAccount.LoonAcceptedSchemesEnum': + MerchantAccount.LoonAcceptedSchemesEnum, + 'MerchantAccountCreate.LoonAcceptedSchemesEnum': + MerchantAccountCreate.LoonAcceptedSchemesEnum, + 'MerchantAccountUpdate.LoonAcceptedSchemesEnum': + MerchantAccountUpdate.LoonAcceptedSchemesEnum, + 'NetworkToken.TypeEnum': NetworkToken.TypeEnum, + 'NetworkToken.StatusEnum': NetworkToken.StatusEnum, + 'NetworkTokenCryptogramProvisionFailed.TypeEnum': + NetworkTokenCryptogramProvisionFailed.TypeEnum, + 'NetworkTokenCryptogramProvisionFailed.NameEnum': + NetworkTokenCryptogramProvisionFailed.NameEnum, + 'NetworkTokenCryptogramProvisionSucceeded.TypeEnum': + NetworkTokenCryptogramProvisionSucceeded.TypeEnum, + 'NetworkTokenCryptogramProvisionSucceeded.NameEnum': + NetworkTokenCryptogramProvisionSucceeded.NameEnum, + 'NetworkTokenProvisionFailed.TypeEnum': NetworkTokenProvisionFailed.TypeEnum, + 'NetworkTokenProvisionFailed.NameEnum': NetworkTokenProvisionFailed.NameEnum, + 'NetworkTokenProvisionSucceeded.TypeEnum': + NetworkTokenProvisionSucceeded.TypeEnum, + 'NetworkTokenProvisionSucceeded.NameEnum': + NetworkTokenProvisionSucceeded.NameEnum, + 'PaymentConnectorExternalTransactionRequest.TypeEnum': + PaymentConnectorExternalTransactionRequest.TypeEnum, + 'PaymentConnectorExternalTransactionRequest.NameEnum': + PaymentConnectorExternalTransactionRequest.NameEnum, + 'PaymentConnectorReportTransactionSettled.TypeEnum': + PaymentConnectorReportTransactionSettled.TypeEnum, + 'PaymentConnectorReportTransactionSettled.NameEnum': + PaymentConnectorReportTransactionSettled.NameEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEvent.TypeEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEvent.NameEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEvent.NameEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.StatusEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.StatusEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.InstrumentTypeEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.InstrumentTypeEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.RetryRuleEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.RetryRuleEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.AvsResponseCodeEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.AvsResponseCodeEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.CvvResponseCodeEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.CvvResponseCodeEnum, + 'PaymentConnectorResponseTransactionAuthorizationFailedEventContext.PaymentMethodSchemeEnum': + PaymentConnectorResponseTransactionAuthorizationFailedEventContext.PaymentMethodSchemeEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEvent.TypeEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEvent.TypeEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEvent.NameEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEvent.NameEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.StatusEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.StatusEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.InstrumentTypeEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.InstrumentTypeEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.AvsResponseCodeEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.AvsResponseCodeEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.CvvResponseCodeEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.CvvResponseCodeEnum, + 'PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.PaymentMethodSchemeEnum': + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.PaymentMethodSchemeEnum, + 'PaymentConnectorResponseTransactionCaptureDeclinedEvent.TypeEnum': + PaymentConnectorResponseTransactionCaptureDeclinedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionCaptureDeclinedEvent.NameEnum': + PaymentConnectorResponseTransactionCaptureDeclinedEvent.NameEnum, + 'PaymentConnectorResponseTransactionCaptureDeclinedEventContext.AvsResponseCodeEnum': + PaymentConnectorResponseTransactionCaptureDeclinedEventContext.AvsResponseCodeEnum, + 'PaymentConnectorResponseTransactionCaptureDeclinedEventContext.CvvResponseCodeEnum': + PaymentConnectorResponseTransactionCaptureDeclinedEventContext.CvvResponseCodeEnum, + 'PaymentConnectorResponseTransactionCaptureDeclinedEventContext.PaymentMethodSchemeEnum': + PaymentConnectorResponseTransactionCaptureDeclinedEventContext.PaymentMethodSchemeEnum, + 'PaymentConnectorResponseTransactionCaptureFailedEvent.TypeEnum': + PaymentConnectorResponseTransactionCaptureFailedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionCaptureFailedEvent.NameEnum': + PaymentConnectorResponseTransactionCaptureFailedEvent.NameEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEvent.TypeEnum': + PaymentConnectorResponseTransactionCaptureSucceededEvent.TypeEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEvent.NameEnum': + PaymentConnectorResponseTransactionCaptureSucceededEvent.NameEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEventContext.StatusEnum': + PaymentConnectorResponseTransactionCaptureSucceededEventContext.StatusEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEventContext.InstrumentTypeEnum': + PaymentConnectorResponseTransactionCaptureSucceededEventContext.InstrumentTypeEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEventContext.AvsResponseCodeEnum': + PaymentConnectorResponseTransactionCaptureSucceededEventContext.AvsResponseCodeEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEventContext.CvvResponseCodeEnum': + PaymentConnectorResponseTransactionCaptureSucceededEventContext.CvvResponseCodeEnum, + 'PaymentConnectorResponseTransactionCaptureSucceededEventContext.PaymentMethodSchemeEnum': + PaymentConnectorResponseTransactionCaptureSucceededEventContext.PaymentMethodSchemeEnum, + 'PaymentConnectorResponseTransactionDeclinedEvent.TypeEnum': + PaymentConnectorResponseTransactionDeclinedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionDeclinedEvent.NameEnum': + PaymentConnectorResponseTransactionDeclinedEvent.NameEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.StatusEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.StatusEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.InstrumentTypeEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.InstrumentTypeEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.RetryRuleEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.RetryRuleEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.AvsResponseCodeEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.AvsResponseCodeEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.CvvResponseCodeEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.CvvResponseCodeEnum, + 'PaymentConnectorResponseTransactionDeclinedEventContext.PaymentMethodSchemeEnum': + PaymentConnectorResponseTransactionDeclinedEventContext.PaymentMethodSchemeEnum, + 'PaymentConnectorResponseTransactionVoidDeclinedEvent.TypeEnum': + PaymentConnectorResponseTransactionVoidDeclinedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionVoidDeclinedEvent.NameEnum': + PaymentConnectorResponseTransactionVoidDeclinedEvent.NameEnum, + 'PaymentConnectorResponseTransactionVoidFailedEvent.TypeEnum': + PaymentConnectorResponseTransactionVoidFailedEvent.TypeEnum, + 'PaymentConnectorResponseTransactionVoidFailedEvent.NameEnum': + PaymentConnectorResponseTransactionVoidFailedEvent.NameEnum, + 'PaymentConnectorResponseTransactionVoidSucceededEvent.TypeEnum': + PaymentConnectorResponseTransactionVoidSucceededEvent.TypeEnum, + 'PaymentConnectorResponseTransactionVoidSucceededEvent.NameEnum': + PaymentConnectorResponseTransactionVoidSucceededEvent.NameEnum, + 'PaymentLink.TypeEnum': PaymentLink.TypeEnum, + 'PaymentLink.StatusEnum': PaymentLink.StatusEnum, + 'PaymentLink.LocaleEnum': PaymentLink.LocaleEnum, + 'PaymentLink.IntentEnum': PaymentLink.IntentEnum, + 'PaymentLink.PaymentSourceEnum': PaymentLink.PaymentSourceEnum, + 'PaymentLinkBuyer.TypeEnum': PaymentLinkBuyer.TypeEnum, + 'PaymentLinkRequest.LocaleEnum': PaymentLinkRequest.LocaleEnum, + 'PaymentLinkRequest.IntentEnum': PaymentLinkRequest.IntentEnum, + 'PaymentLinkRequest.PaymentSourceEnum': PaymentLinkRequest.PaymentSourceEnum, + 'PaymentLinkShippingDetails.TypeEnum': PaymentLinkShippingDetails.TypeEnum, + 'PaymentMethod.TypeEnum': PaymentMethod.TypeEnum, + 'PaymentMethod.AdditionalSchemesEnum': PaymentMethod.AdditionalSchemesEnum, + 'PaymentMethod.ApprovalTargetEnum': PaymentMethod.ApprovalTargetEnum, + 'PaymentMethod.MethodEnum': PaymentMethod.MethodEnum, + 'PaymentMethod.ModeEnum': PaymentMethod.ModeEnum, + 'PaymentMethod.SchemeEnum': PaymentMethod.SchemeEnum, + 'PaymentMethod.StatusEnum': PaymentMethod.StatusEnum, + 'PaymentMethodDetailsCard.CardTypeEnum': + PaymentMethodDetailsCard.CardTypeEnum, + 'PaymentMethodSnapshot.TypeEnum': PaymentMethodSnapshot.TypeEnum, + 'PaymentMethodSnapshot.ApprovalTargetEnum': + PaymentMethodSnapshot.ApprovalTargetEnum, + 'PaymentMethodSnapshot.MethodEnum': PaymentMethodSnapshot.MethodEnum, + 'PaymentMethodSnapshot.SchemeEnum': PaymentMethodSnapshot.SchemeEnum, + 'PaymentMethodTokenized.TypeEnum': PaymentMethodTokenized.TypeEnum, + 'PaymentMethodTokenized.MethodEnum': PaymentMethodTokenized.MethodEnum, + 'PaymentMethodTokenized.SchemeEnum': PaymentMethodTokenized.SchemeEnum, + 'PaymentMethodTokenized.AdditionalSchemesEnum': + PaymentMethodTokenized.AdditionalSchemesEnum, + 'PaymentMethodTokenized.ApprovalTargetEnum': + PaymentMethodTokenized.ApprovalTargetEnum, + 'PaymentOption.TypeEnum': PaymentOption.TypeEnum, + 'PaymentOption.MethodEnum': PaymentOption.MethodEnum, + 'PaymentOption.ModeEnum': PaymentOption.ModeEnum, + 'PaymentService.TypeEnum': PaymentService.TypeEnum, + 'PaymentService.MethodEnum': PaymentService.MethodEnum, + 'PaymentService.StatusEnum': PaymentService.StatusEnum, + 'PaymentServiceDefinition.TypeEnum': PaymentServiceDefinition.TypeEnum, + 'PaymentServiceDefinition.MethodEnum': PaymentServiceDefinition.MethodEnum, + 'PaymentServiceDefinition.ModeEnum': PaymentServiceDefinition.ModeEnum, + 'PaymentServiceDefinitionConfiguration.ApprovalUiTargetEnum': + PaymentServiceDefinitionConfiguration.ApprovalUiTargetEnum, + 'PaymentServiceDefinitionReportingFieldsInner.FormatEnum': + PaymentServiceDefinitionReportingFieldsInner.FormatEnum, + 'PaymentServiceSession.TypeEnum': PaymentServiceSession.TypeEnum, + 'PaymentServiceSession.StatusEnum': PaymentServiceSession.StatusEnum, + 'PaymentServiceSnapshot.TypeEnum': PaymentServiceSnapshot.TypeEnum, + 'PaymentServiceSnapshot.MethodEnum': PaymentServiceSnapshot.MethodEnum, + 'PaymentServiceToken.TypeEnum': PaymentServiceToken.TypeEnum, + 'PaymentServiceToken.StatusEnum': PaymentServiceToken.StatusEnum, + 'Payout.TypeEnum': Payout.TypeEnum, + 'Payout.CategoryEnum': Payout.CategoryEnum, + 'Payout.StatusEnum': Payout.StatusEnum, + 'PayoutInlineCardRequest.MethodEnum': PayoutInlineCardRequest.MethodEnum, + 'PayoutInlineCardRequest.SchemeEnum': PayoutInlineCardRequest.SchemeEnum, + 'PayoutMerchant.TypeEnum': PayoutMerchant.TypeEnum, + 'PayoutPaymentMethodRequest.MethodEnum': + PayoutPaymentMethodRequest.MethodEnum, + 'PayoutPaymentMethodRequest.SchemeEnum': + PayoutPaymentMethodRequest.SchemeEnum, + 'PayoutRequest.CategoryEnum': PayoutRequest.CategoryEnum, + 'PayoutStoredCardRequest.MethodEnum': PayoutStoredCardRequest.MethodEnum, + 'RedirectRequest.MethodEnum': RedirectRequest.MethodEnum, + 'Refund.TypeEnum': Refund.TypeEnum, + 'Refund.StatusEnum': Refund.StatusEnum, + 'Refund.TargetTypeEnum': Refund.TargetTypeEnum, + 'Report.ScheduleEnum': Report.ScheduleEnum, + 'Report.TypeEnum': Report.TypeEnum, + 'Report.CreatorTypeEnum': Report.CreatorTypeEnum, + 'ReportCreate.ScheduleEnum': ReportCreate.ScheduleEnum, + 'ReportExecution.TypeEnum': ReportExecution.TypeEnum, + 'ReportExecution.StatusEnum': ReportExecution.StatusEnum, + 'ReportExecutionSummary.TypeEnum': ReportExecutionSummary.TypeEnum, + 'ReportExecutionSummary.StatusEnum': ReportExecutionSummary.StatusEnum, + 'ReportSpec.ModelEnum': ReportSpec.ModelEnum, + 'ReportSummary.TypeEnum': ReportSummary.TypeEnum, + 'ReportSummary.CreatorTypeEnum': ReportSummary.CreatorTypeEnum, + 'Role.TypeEnum': Role.TypeEnum, + 'RoleAssignment.TypeEnum': RoleAssignment.TypeEnum, + 'RoleAssignmentAssignee.TypeEnum': RoleAssignmentAssignee.TypeEnum, + 'RoleAssignmentRequestAssignee.TypeEnum': + RoleAssignmentRequestAssignee.TypeEnum, + 'Settlement.TypeEnum': Settlement.TypeEnum, + 'ShippingDetail.TypeEnum': ShippingDetail.TypeEnum, + 'TaxId.KindEnum': TaxId.KindEnum, + 'ThreeDSecureAuthenticationRequestEvent.TypeEnum': + ThreeDSecureAuthenticationRequestEvent.TypeEnum, + 'ThreeDSecureAuthenticationRequestEvent.NameEnum': + ThreeDSecureAuthenticationRequestEvent.NameEnum, + 'ThreeDSecureData.SchemeEnum': ThreeDSecureData.SchemeEnum, + 'ThreeDSecureDataV1.SchemeEnum': ThreeDSecureDataV1.SchemeEnum, + 'ThreeDSecureDataV1V2.DirectoryResponseEnum': + ThreeDSecureDataV1V2.DirectoryResponseEnum, + 'ThreeDSecureDataV1V2.SchemeEnum': ThreeDSecureDataV1V2.SchemeEnum, + 'ThreeDSecureDataV1V2.AuthenticationResponseEnum': + ThreeDSecureDataV1V2.AuthenticationResponseEnum, + 'ThreeDSecureDataV2.DirectoryResponseEnum': + ThreeDSecureDataV2.DirectoryResponseEnum, + 'ThreeDSecureDataV2.SchemeEnum': ThreeDSecureDataV2.SchemeEnum, + 'ThreeDSecureDataV2.AuthenticationResponseEnum': + ThreeDSecureDataV2.AuthenticationResponseEnum, + 'ThreeDSecurePreparationRequestEvent.TypeEnum': + ThreeDSecurePreparationRequestEvent.TypeEnum, + 'ThreeDSecurePreparationRequestEvent.NameEnum': + ThreeDSecurePreparationRequestEvent.NameEnum, + 'ThreeDSecureRequestErrorEvent.TypeEnum': + ThreeDSecureRequestErrorEvent.TypeEnum, + 'ThreeDSecureRequestErrorEvent.NameEnum': + ThreeDSecureRequestErrorEvent.NameEnum, + 'ThreeDSecureResultRequestEvent.TypeEnum': + ThreeDSecureResultRequestEvent.TypeEnum, + 'ThreeDSecureResultRequestEvent.NameEnum': + ThreeDSecureResultRequestEvent.NameEnum, + 'ThreeDSecureSuccessEvent.TypeEnum': ThreeDSecureSuccessEvent.TypeEnum, + 'ThreeDSecureSuccessEvent.NameEnum': ThreeDSecureSuccessEvent.NameEnum, + 'ThreeDSecureSuccessEventContext.MethodEnum': + ThreeDSecureSuccessEventContext.MethodEnum, + 'ThreeDSecureSummary.StatusEnum': ThreeDSecureSummary.StatusEnum, + 'ThreeDSecureSummary.MethodEnum': ThreeDSecureSummary.MethodEnum, + 'ThreeDSecureV2.AuthenticationResponseEnum': + ThreeDSecureV2.AuthenticationResponseEnum, + 'ThreeDSecureV2.DirectoryResponseEnum': ThreeDSecureV2.DirectoryResponseEnum, + 'TokenizedRequest.MethodEnum': TokenizedRequest.MethodEnum, + 'Transaction.TypeEnum': Transaction.TypeEnum, + 'Transaction.AvsResponseCodeEnum': Transaction.AvsResponseCodeEnum, + 'Transaction.CvvResponseCodeEnum': Transaction.CvvResponseCodeEnum, + 'Transaction.InstrumentTypeEnum': Transaction.InstrumentTypeEnum, + 'Transaction.IntentEnum': Transaction.IntentEnum, + 'Transaction.IntentOutcomeEnum': Transaction.IntentOutcomeEnum, + 'Transaction.MethodEnum': Transaction.MethodEnum, + 'Transaction.PaymentSourceEnum': Transaction.PaymentSourceEnum, + 'Transaction.StatusEnum': Transaction.StatusEnum, + 'TransactionBuyer.TypeEnum': TransactionBuyer.TypeEnum, + 'TransactionBuyerRequestShippingDetails.TypeEnum': + TransactionBuyerRequestShippingDetails.TypeEnum, + 'TransactionCaptureRequestAirline.TicketDeliveryMethodEnum': + TransactionCaptureRequestAirline.TicketDeliveryMethodEnum, + 'TransactionCardRequest.MethodEnum': TransactionCardRequest.MethodEnum, + 'TransactionCheckoutSessionRequest.MethodEnum': + TransactionCheckoutSessionRequest.MethodEnum, + 'TransactionHistoryEvent.TypeEnum': TransactionHistoryEvent.TypeEnum, + 'TransactionHistoryEvent.NameEnum': TransactionHistoryEvent.NameEnum, + 'TransactionNetworkTokenApplePayRequest.MethodEnum': + TransactionNetworkTokenApplePayRequest.MethodEnum, + 'TransactionNetworkTokenApplePayRequest.CardSourceEnum': + TransactionNetworkTokenApplePayRequest.CardSourceEnum, + 'TransactionNetworkTokenGooglePayRequest.MethodEnum': + TransactionNetworkTokenGooglePayRequest.MethodEnum, + 'TransactionNetworkTokenGooglePayRequest.CardSourceEnum': + TransactionNetworkTokenGooglePayRequest.CardSourceEnum, + 'TransactionNetworkTokenRequest.MethodEnum': + TransactionNetworkTokenRequest.MethodEnum, + 'TransactionPaymentMethod.TypeEnum': TransactionPaymentMethod.TypeEnum, + 'TransactionPaymentMethod.ApprovalTargetEnum': + TransactionPaymentMethod.ApprovalTargetEnum, + 'TransactionPaymentMethod.MethodEnum': TransactionPaymentMethod.MethodEnum, + 'TransactionPaymentMethod.SchemeEnum': TransactionPaymentMethod.SchemeEnum, + 'TransactionPaymentMethodRequest.MethodEnum': + TransactionPaymentMethodRequest.MethodEnum, + 'TransactionPaymentService.TypeEnum': TransactionPaymentService.TypeEnum, + 'TransactionPaymentService.MethodEnum': TransactionPaymentService.MethodEnum, + 'TransactionRedirectRequest.MethodEnum': + TransactionRedirectRequest.MethodEnum, + 'TransactionRefundRequest.TargetTypeEnum': + TransactionRefundRequest.TargetTypeEnum, + 'TransactionRequest.IntentEnum': TransactionRequest.IntentEnum, + 'TransactionRequest.PaymentSourceEnum': TransactionRequest.PaymentSourceEnum, + 'TransactionRequestBrowserInfo.UserDeviceEnum': + TransactionRequestBrowserInfo.UserDeviceEnum, + 'TransactionRetriesReportSpec.ModelEnum': + TransactionRetriesReportSpec.ModelEnum, + 'TransactionShippingDetails.TypeEnum': TransactionShippingDetails.TypeEnum, + 'TransactionStatusSummary.TypeEnum': TransactionStatusSummary.TypeEnum, + 'TransactionStatusSummary.StatusEnum': TransactionStatusSummary.StatusEnum, + 'TransactionSummary.TypeEnum': TransactionSummary.TypeEnum, + 'TransactionSummary.InstrumentTypeEnum': + TransactionSummary.InstrumentTypeEnum, + 'TransactionSummary.IntentEnum': TransactionSummary.IntentEnum, + 'TransactionSummary.MethodEnum': TransactionSummary.MethodEnum, + 'TransactionSummary.StatusEnum': TransactionSummary.StatusEnum, + 'TransactionsReportSpec.ModelEnum': TransactionsReportSpec.ModelEnum, + 'TransactionsReportSpecParams.FieldsEnum': + TransactionsReportSpecParams.FieldsEnum, + 'TransactionsReportSpecParamsFilters.StatusEnum': + TransactionsReportSpecParamsFilters.StatusEnum, + 'TransactionsReportSpecParamsFilters.MethodEnum': + TransactionsReportSpecParamsFilters.MethodEnum, + 'TransactionsReportSpecParamsFilters.SchemeEnum': + TransactionsReportSpecParamsFilters.SchemeEnum, + 'TransactionsReportSpecParamsFilters.ThreeDSecureStatusEnum': + TransactionsReportSpecParamsFilters.ThreeDSecureStatusEnum, + 'TransactionsReportSpecParamsFilters.PaymentSourceEnum': + TransactionsReportSpecParamsFilters.PaymentSourceEnum, + 'UserRole.TypeEnum': UserRole.TypeEnum, + 'WebhookSubscription.TypeEnum': WebhookSubscription.TypeEnum, + 'WebhookSubscriptionAuthentication.KindEnum': + WebhookSubscriptionAuthentication.KindEnum, } -let typeMap: {[index: string]: any} = { - "APIKeyPairCreate": APIKeyPairCreate, - "APIKeyPairUpdate": APIKeyPairUpdate, - "AccountUpdaterInquirySummary": AccountUpdaterInquirySummary, - "AccountUpdaterJob": AccountUpdaterJob, - "AccountUpdaterJobCreate": AccountUpdaterJobCreate, - "Address": Address, - "AntiFraudDecisionErrorEvent": AntiFraudDecisionErrorEvent, - "AntiFraudDecisionErrorEventContext": AntiFraudDecisionErrorEventContext, - "AntiFraudDecisionEvent": AntiFraudDecisionEvent, - "AntiFraudDecisionEventContext": AntiFraudDecisionEventContext, - "AntiFraudDecisionSkippedEvent": AntiFraudDecisionSkippedEvent, - "AntiFraudDecisionSkippedEventContext": AntiFraudDecisionSkippedEventContext, - "AntiFraudDecisionUpdateErrorEvent": AntiFraudDecisionUpdateErrorEvent, - "AntiFraudDecisionUpdateErrorEventContext": AntiFraudDecisionUpdateErrorEventContext, - "AntiFraudDecisionUpdateEvent": AntiFraudDecisionUpdateEvent, - "AntiFraudDecisionUpdateEventContext": AntiFraudDecisionUpdateEventContext, - "AntiFraudServiceCreate": AntiFraudServiceCreate, - "AntiFraudServiceDefinition": AntiFraudServiceDefinition, - "AntiFraudServiceDefinitionFieldsInner": AntiFraudServiceDefinitionFieldsInner, - "AntiFraudServiceUpdate": AntiFraudServiceUpdate, - "AntiFraudServiceUpdateFieldsInner": AntiFraudServiceUpdateFieldsInner, - "AntiFraudTransactionStatusUpdateErrorEvent": AntiFraudTransactionStatusUpdateErrorEvent, - "AntiFraudTransactionStatusUpdateErrorEventContext": AntiFraudTransactionStatusUpdateErrorEventContext, - "AntiFraudTransactionStatusUpdateEvent": AntiFraudTransactionStatusUpdateEvent, - "AntiFraudTransactionStatusUpdateEventContext": AntiFraudTransactionStatusUpdateEventContext, - "AntiFraudWebhookEvent": AntiFraudWebhookEvent, - "AntiFraudWebhookEventContext": AntiFraudWebhookEventContext, - "ApiLog": ApiLog, - "ApiLogResponseBody": ApiLogResponseBody, - "ApiLogResponseBodyDetails": ApiLogResponseBodyDetails, - "ApiLogs": ApiLogs, - "ApplePayRequest": ApplePayRequest, - "ApplePaySessionRequest": ApplePaySessionRequest, - "AuditLog": AuditLog, - "AuditLogResource": AuditLogResource, - "AuditLogUser": AuditLogUser, - "AuditLogs": AuditLogs, - "BINLookupRequest": BINLookupRequest, - "BINLookupRequestContext": BINLookupRequestContext, - "BillingDetails": BillingDetails, - "BillingDetailsAddress": BillingDetailsAddress, - "BillingDetailsRequest": BillingDetailsRequest, - "BillingDetailsRequestAddress": BillingDetailsRequestAddress, - "BillingDetailsRequestTaxId": BillingDetailsRequestTaxId, - "BillingDetailsTaxId": BillingDetailsTaxId, - "BillingDetailsUpdateRequest": BillingDetailsUpdateRequest, - "BillingDetailsUpdateRequestAddress": BillingDetailsUpdateRequestAddress, - "BrowserInfo": BrowserInfo, - "Buyer": Buyer, - "BuyerBillingDetails": BuyerBillingDetails, - "BuyerRequest": BuyerRequest, - "BuyerRequestBillingDetails": BuyerRequestBillingDetails, - "BuyerSnapshot": BuyerSnapshot, - "BuyerSnapshotBillingDetails": BuyerSnapshotBillingDetails, - "BuyerUpdate": BuyerUpdate, - "BuyerUpdateBillingDetails": BuyerUpdateBillingDetails, - "Buyers": Buyers, - "CardDetails": CardDetails, - "CardRequest": CardRequest, - "CardSchemeDefinition": CardSchemeDefinition, - "CardSchemeDefinitions": CardSchemeDefinitions, - "CartItem": CartItem, - "CheckoutSession": CheckoutSession, - "CheckoutSessionCreateRequest": CheckoutSessionCreateRequest, - "CheckoutSessionPaymentMethod": CheckoutSessionPaymentMethod, - "CheckoutSessionPaymentMethodDetails": CheckoutSessionPaymentMethodDetails, - "CheckoutSessionRequest": CheckoutSessionRequest, - "CheckoutSessionUpdateRequest": CheckoutSessionUpdateRequest, - "ClickToPaySessionRequest": ClickToPaySessionRequest, - "Connection": Connection, - "ConnectionDefinition": ConnectionDefinition, - "ConnectionDefinitions": ConnectionDefinitions, - "ConnectionOptions": ConnectionOptions, - "ConnectionOptionsAdyenCard": ConnectionOptionsAdyenCard, - "ConnectionOptionsCybersourceAntiFraud": ConnectionOptionsCybersourceAntiFraud, - "ConnectionOptionsCybersourceCard": ConnectionOptionsCybersourceCard, - "ConnectionOptionsCybersourceIdeal": ConnectionOptionsCybersourceIdeal, - "ConnectionOptionsCybersourceKcp": ConnectionOptionsCybersourceKcp, - "ConnectionOptionsForterAntiFraud": ConnectionOptionsForterAntiFraud, - "ConnectionOptionsForterAntiFraudCartItemsInner": ConnectionOptionsForterAntiFraudCartItemsInner, - "ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData": ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData, - "ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner": ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner, - "ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress": ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress, - "ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments": ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments, - "ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails": ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails, - "ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner": ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner, - "ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails": ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails, - "ConnectionOptionsForterAntiFraudTotalDiscount": ConnectionOptionsForterAntiFraudTotalDiscount, - "ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount": ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount, - "ConnectionOptionsGivingblockGivingblock": ConnectionOptionsGivingblockGivingblock, - "ConnectionOptionsPaypalPaypal": ConnectionOptionsPaypalPaypal, - "ConnectionOptionsPaypalPaypalAdditionalDataInner": ConnectionOptionsPaypalPaypalAdditionalDataInner, - "ConnectionOptionsStripeCard": ConnectionOptionsStripeCard, - "ConnectionOptionsStripeCardStripeConnect": ConnectionOptionsStripeCardStripeConnect, - "Connections": Connections, - "Cryptogram": Cryptogram, - "DigitalWallet": DigitalWallet, - "DigitalWalletApplePayTokenDecrypted": DigitalWalletApplePayTokenDecrypted, - "DigitalWalletApplePayTokenDecryptedContext": DigitalWalletApplePayTokenDecryptedContext, - "DigitalWalletClickToPayFields": DigitalWalletClickToPayFields, - "DigitalWalletClickToPayTokenDecrypted": DigitalWalletClickToPayTokenDecrypted, - "DigitalWalletClickToPayTokenDecryptedContext": DigitalWalletClickToPayTokenDecryptedContext, - "DigitalWalletDomain": DigitalWalletDomain, - "DigitalWalletGooglePayTokenDecrypted": DigitalWalletGooglePayTokenDecrypted, - "DigitalWalletGooglePayTokenDecryptedContext": DigitalWalletGooglePayTokenDecryptedContext, - "DigitalWalletRequest": DigitalWalletRequest, - "DigitalWalletUpdate": DigitalWalletUpdate, - "DigitalWallets": DigitalWallets, - "Error400BadRequest": Error400BadRequest, - "Error401Unauthorized": Error401Unauthorized, - "Error403Forbidden": Error403Forbidden, - "Error404NotFound": Error404NotFound, - "Error409DuplicateRecord": Error409DuplicateRecord, - "Error429TooManyRequests": Error429TooManyRequests, - "ErrorDetail": ErrorDetail, - "GiftCard": GiftCard, - "GiftCardBalanceNewRequest": GiftCardBalanceNewRequest, - "GiftCardBalanceRequest": GiftCardBalanceRequest, - "GiftCardBalanceStoredRequest": GiftCardBalanceStoredRequest, - "GiftCardBalancesRequest": GiftCardBalancesRequest, - "GiftCardBuyer": GiftCardBuyer, - "GiftCardRedemption": GiftCardRedemption, - "GiftCardRedemptionFailed": GiftCardRedemptionFailed, - "GiftCardRedemptionFailedContext": GiftCardRedemptionFailedContext, - "GiftCardRedemptionSucceeded": GiftCardRedemptionSucceeded, - "GiftCardRedemptionSucceededContext": GiftCardRedemptionSucceededContext, - "GiftCardRefundFailed": GiftCardRefundFailed, - "GiftCardRefundFailedContext": GiftCardRefundFailedContext, - "GiftCardRefundSucceeded": GiftCardRefundSucceeded, - "GiftCardService": GiftCardService, - "GiftCardServiceCreateRequest": GiftCardServiceCreateRequest, - "GiftCardServiceCreateRequestFieldsInner": GiftCardServiceCreateRequestFieldsInner, - "GiftCardServiceDefinition": GiftCardServiceDefinition, - "GiftCardServiceFieldsInner": GiftCardServiceFieldsInner, - "GiftCardServiceSnapshot": GiftCardServiceSnapshot, - "GiftCardServiceUpdateRequest": GiftCardServiceUpdateRequest, - "GiftCardServiceUpdateRequestFieldsInner": GiftCardServiceUpdateRequestFieldsInner, - "GiftCardServiceVerifyRequest": GiftCardServiceVerifyRequest, - "GiftCardServiceVerifyRequestFieldsInner": GiftCardServiceVerifyRequestFieldsInner, - "GiftCardSnapshot": GiftCardSnapshot, - "GiftCardStoreRequest": GiftCardStoreRequest, - "GiftCardSummary": GiftCardSummary, - "GiftCards": GiftCards, - "GiftCardsSummary": GiftCardsSummary, - "GooglePayRequest": GooglePayRequest, - "GooglePayRequestAssuranceDetails": GooglePayRequestAssuranceDetails, - "GooglePaySessionRequest": GooglePaySessionRequest, - "IssueCryptogramRequest": IssueCryptogramRequest, - "MerchantAccount": MerchantAccount, - "MerchantAccountCreate": MerchantAccountCreate, - "MerchantAccountUpdate": MerchantAccountUpdate, - "MerchantAccounts": MerchantAccounts, - "MerchantProfile": MerchantProfile, - "MerchantProfileAmex": MerchantProfileAmex, - "MerchantProfileDankort": MerchantProfileDankort, - "MerchantProfileDiscover": MerchantProfileDiscover, - "MerchantProfileJcb": MerchantProfileJcb, - "MerchantProfileMastercard": MerchantProfileMastercard, - "MerchantProfileScheme": MerchantProfileScheme, - "MerchantProfileSchemeSummary": MerchantProfileSchemeSummary, - "MerchantProfileSummary": MerchantProfileSummary, - "MerchantProfileSummaryAmex": MerchantProfileSummaryAmex, - "MerchantProfileSummaryDankort": MerchantProfileSummaryDankort, - "MerchantProfileSummaryDiscover": MerchantProfileSummaryDiscover, - "MerchantProfileSummaryJcb": MerchantProfileSummaryJcb, - "MerchantProfileSummaryMastercard": MerchantProfileSummaryMastercard, - "MerchantProfileSummaryUnionpay": MerchantProfileSummaryUnionpay, - "MerchantProfileSummaryVisa": MerchantProfileSummaryVisa, - "MerchantProfileUnionpay": MerchantProfileUnionpay, - "MerchantProfileVisa": MerchantProfileVisa, - "NetworkToken": NetworkToken, - "NetworkTokenCryptogramProvisionFailed": NetworkTokenCryptogramProvisionFailed, - "NetworkTokenCryptogramProvisionFailedContext": NetworkTokenCryptogramProvisionFailedContext, - "NetworkTokenCryptogramProvisionSucceeded": NetworkTokenCryptogramProvisionSucceeded, - "NetworkTokenCryptogramProvisionSucceededContext": NetworkTokenCryptogramProvisionSucceededContext, - "NetworkTokenProvisionFailed": NetworkTokenProvisionFailed, - "NetworkTokenProvisionFailedContext": NetworkTokenProvisionFailedContext, - "NetworkTokenProvisionSucceeded": NetworkTokenProvisionSucceeded, - "NetworkTokenRequest": NetworkTokenRequest, - "NetworkTokens": NetworkTokens, - "PaymentConnectorExternalTransactionRequest": PaymentConnectorExternalTransactionRequest, - "PaymentConnectorExternalTransactionRequestContext": PaymentConnectorExternalTransactionRequestContext, - "PaymentConnectorResponseTransactionAuthorizationFailedEvent": PaymentConnectorResponseTransactionAuthorizationFailedEvent, - "PaymentConnectorResponseTransactionAuthorizationFailedEventContext": PaymentConnectorResponseTransactionAuthorizationFailedEventContext, - "PaymentConnectorResponseTransactionAuthorizationSucceededEvent": PaymentConnectorResponseTransactionAuthorizationSucceededEvent, - "PaymentConnectorResponseTransactionAuthorizationSucceededEventContext": PaymentConnectorResponseTransactionAuthorizationSucceededEventContext, - "PaymentConnectorResponseTransactionCaptureDeclinedEvent": PaymentConnectorResponseTransactionCaptureDeclinedEvent, - "PaymentConnectorResponseTransactionCaptureDeclinedEventContext": PaymentConnectorResponseTransactionCaptureDeclinedEventContext, - "PaymentConnectorResponseTransactionCaptureFailedEvent": PaymentConnectorResponseTransactionCaptureFailedEvent, - "PaymentConnectorResponseTransactionCaptureSucceededEvent": PaymentConnectorResponseTransactionCaptureSucceededEvent, - "PaymentConnectorResponseTransactionCaptureSucceededEventContext": PaymentConnectorResponseTransactionCaptureSucceededEventContext, - "PaymentConnectorResponseTransactionDeclinedEvent": PaymentConnectorResponseTransactionDeclinedEvent, - "PaymentConnectorResponseTransactionDeclinedEventContext": PaymentConnectorResponseTransactionDeclinedEventContext, - "PaymentConnectorResponseTransactionVoidDeclinedEvent": PaymentConnectorResponseTransactionVoidDeclinedEvent, - "PaymentConnectorResponseTransactionVoidDeclinedEventContext": PaymentConnectorResponseTransactionVoidDeclinedEventContext, - "PaymentConnectorResponseTransactionVoidFailedEvent": PaymentConnectorResponseTransactionVoidFailedEvent, - "PaymentConnectorResponseTransactionVoidFailedEventContext": PaymentConnectorResponseTransactionVoidFailedEventContext, - "PaymentConnectorResponseTransactionVoidSucceededEvent": PaymentConnectorResponseTransactionVoidSucceededEvent, - "PaymentConnectorResponseTransactionVoidSucceededEventContext": PaymentConnectorResponseTransactionVoidSucceededEventContext, - "PaymentMethod": PaymentMethod, - "PaymentMethodDefinition": PaymentMethodDefinition, - "PaymentMethodDefinitions": PaymentMethodDefinitions, - "PaymentMethodDetailsCard": PaymentMethodDetailsCard, - "PaymentMethodRequest": PaymentMethodRequest, - "PaymentMethodSnapshot": PaymentMethodSnapshot, - "PaymentMethodTokenized": PaymentMethodTokenized, - "PaymentMethods": PaymentMethods, - "PaymentMethodsTokenized": PaymentMethodsTokenized, - "PaymentOption": PaymentOption, - "PaymentOptionApprovalUI": PaymentOptionApprovalUI, - "PaymentOptionContext": PaymentOptionContext, - "PaymentOptions": PaymentOptions, - "PaymentOptionsRequest": PaymentOptionsRequest, - "PaymentService": PaymentService, - "PaymentServiceDefinition": PaymentServiceDefinition, - "PaymentServiceDefinitionConfiguration": PaymentServiceDefinitionConfiguration, - "PaymentServiceDefinitionSupportedFeatures": PaymentServiceDefinitionSupportedFeatures, - "PaymentServiceDefinitions": PaymentServiceDefinitions, - "PaymentServiceMerchantProfile": PaymentServiceMerchantProfile, - "PaymentServiceRequest": PaymentServiceRequest, - "PaymentServiceRequestFieldsInner": PaymentServiceRequestFieldsInner, - "PaymentServiceRequestMerchantProfile": PaymentServiceRequestMerchantProfile, - "PaymentServiceSession": PaymentServiceSession, - "PaymentServiceSnapshot": PaymentServiceSnapshot, - "PaymentServiceToken": PaymentServiceToken, - "PaymentServiceTokenRequest": PaymentServiceTokenRequest, - "PaymentServiceTokens": PaymentServiceTokens, - "PaymentServiceUpdate": PaymentServiceUpdate, - "PaymentServiceUpdateMerchantProfile": PaymentServiceUpdateMerchantProfile, - "PaymentServices": PaymentServices, - "RedirectRequest": RedirectRequest, - "Refund": Refund, - "Refunds": Refunds, - "Report": Report, - "ReportCreate": ReportCreate, - "ReportExecution": ReportExecution, - "ReportExecutionSummary": ReportExecutionSummary, - "ReportExecutionSummaryContext": ReportExecutionSummaryContext, - "ReportExecutionUrl": ReportExecutionUrl, - "ReportExecutions": ReportExecutions, - "ReportSpec": ReportSpec, - "ReportSpecParams": ReportSpecParams, - "ReportSpecParamsFilters": ReportSpecParamsFilters, - "ReportSummary": ReportSummary, - "ReportUpdate": ReportUpdate, - "Reports": Reports, - "RequiredFields": RequiredFields, - "RequiredFieldsAddress": RequiredFieldsAddress, - "ResetPasswordRequest": ResetPasswordRequest, - "Role": Role, - "RoleAssignment": RoleAssignment, - "RoleAssignmentAssignee": RoleAssignmentAssignee, - "RoleAssignmentRequest": RoleAssignmentRequest, - "RoleAssignmentRequestAssignee": RoleAssignmentRequestAssignee, - "RoleAssignmentRequestRole": RoleAssignmentRequestRole, - "RoleAssignments": RoleAssignments, - "RolePermissions": RolePermissions, - "Roles": Roles, - "SetPasswordRequest": SetPasswordRequest, - "ShippingDetail": ShippingDetail, - "ShippingDetailAddress": ShippingDetailAddress, - "ShippingDetailRequest": ShippingDetailRequest, - "ShippingDetailUpdateRequest": ShippingDetailUpdateRequest, - "ShippingDetails": ShippingDetails, - "StatementDescriptor": StatementDescriptor, - "TaxId": TaxId, - "ThreeDSecureAuthenticationRequestEvent": ThreeDSecureAuthenticationRequestEvent, - "ThreeDSecureAuthenticationRequestEventContext": ThreeDSecureAuthenticationRequestEventContext, - "ThreeDSecureData": ThreeDSecureData, - "ThreeDSecureDataV1": ThreeDSecureDataV1, - "ThreeDSecureDataV1V2": ThreeDSecureDataV1V2, - "ThreeDSecureDataV2": ThreeDSecureDataV2, - "ThreeDSecureError": ThreeDSecureError, - "ThreeDSecurePreparationRequestEvent": ThreeDSecurePreparationRequestEvent, - "ThreeDSecurePreparationRequestEventContext": ThreeDSecurePreparationRequestEventContext, - "ThreeDSecureRequestErrorEvent": ThreeDSecureRequestErrorEvent, - "ThreeDSecureRequestErrorEventContext": ThreeDSecureRequestErrorEventContext, - "ThreeDSecureResultRequestEvent": ThreeDSecureResultRequestEvent, - "ThreeDSecureResultRequestEventContext": ThreeDSecureResultRequestEventContext, - "ThreeDSecureSuccessEvent": ThreeDSecureSuccessEvent, - "ThreeDSecureSuccessEventContext": ThreeDSecureSuccessEventContext, - "ThreeDSecureSummary": ThreeDSecureSummary, - "ThreeDSecureSummaryErrorData": ThreeDSecureSummaryErrorData, - "ThreeDSecureV2": ThreeDSecureV2, - "TokenizedRequest": TokenizedRequest, - "Transaction": Transaction, - "TransactionBuyer": TransactionBuyer, - "TransactionBuyerRequest": TransactionBuyerRequest, - "TransactionBuyerRequestBillingDetails": TransactionBuyerRequestBillingDetails, - "TransactionBuyerRequestShippingDetails": TransactionBuyerRequestShippingDetails, - "TransactionCaptureRequest": TransactionCaptureRequest, - "TransactionCardRequest": TransactionCardRequest, - "TransactionCheckoutSessionRequest": TransactionCheckoutSessionRequest, - "TransactionGiftCardNewRequest": TransactionGiftCardNewRequest, - "TransactionGiftCardRequest": TransactionGiftCardRequest, - "TransactionGiftCardStoredRequest": TransactionGiftCardStoredRequest, - "TransactionHistoryEvent": TransactionHistoryEvent, - "TransactionHistoryEvents": TransactionHistoryEvents, - "TransactionNetworkTokenApplePayRequest": TransactionNetworkTokenApplePayRequest, - "TransactionNetworkTokenGooglePayRequest": TransactionNetworkTokenGooglePayRequest, - "TransactionNetworkTokenRequest": TransactionNetworkTokenRequest, - "TransactionPaymentMethod": TransactionPaymentMethod, - "TransactionPaymentMethodRequest": TransactionPaymentMethodRequest, - "TransactionPaymentService": TransactionPaymentService, - "TransactionRedirectRequest": TransactionRedirectRequest, - "TransactionRefundAllRequest": TransactionRefundAllRequest, - "TransactionRefundRequest": TransactionRefundRequest, - "TransactionRequest": TransactionRequest, - "TransactionRequestBrowserInfo": TransactionRequestBrowserInfo, - "TransactionRequestConnectionOptions": TransactionRequestConnectionOptions, - "TransactionRequestStatementDescriptor": TransactionRequestStatementDescriptor, - "TransactionShippingDetails": TransactionShippingDetails, - "TransactionStatusSummary": TransactionStatusSummary, - "TransactionSummary": TransactionSummary, - "Transactions": Transactions, - "TransactionsBatchCaptureRequest": TransactionsBatchCaptureRequest, - "UserCurrentUpdate": UserCurrentUpdate, - "UserRequest": UserRequest, - "UserRole": UserRole, - "UserUpdate": UserUpdate, +let typeMap: { [index: string]: any } = { + APIKeyPairCreate: APIKeyPairCreate, + APIKeyPairUpdate: APIKeyPairUpdate, + AccountUpdaterInquirySummary: AccountUpdaterInquirySummary, + AccountUpdaterJob: AccountUpdaterJob, + AccountUpdaterJobCreate: AccountUpdaterJobCreate, + Address: Address, + Airline: Airline, + AirlineLeg: AirlineLeg, + AirlinePassenger: AirlinePassenger, + AntiFraudDecisionErrorEvent: AntiFraudDecisionErrorEvent, + AntiFraudDecisionErrorEventContext: AntiFraudDecisionErrorEventContext, + AntiFraudDecisionEvent: AntiFraudDecisionEvent, + AntiFraudDecisionEventContext: AntiFraudDecisionEventContext, + AntiFraudDecisionSkippedEvent: AntiFraudDecisionSkippedEvent, + AntiFraudDecisionSkippedEventContext: AntiFraudDecisionSkippedEventContext, + AntiFraudDecisionUpdateErrorEvent: AntiFraudDecisionUpdateErrorEvent, + AntiFraudDecisionUpdateErrorEventContext: + AntiFraudDecisionUpdateErrorEventContext, + AntiFraudDecisionUpdateEvent: AntiFraudDecisionUpdateEvent, + AntiFraudDecisionUpdateEventContext: AntiFraudDecisionUpdateEventContext, + AntiFraudServiceCreate: AntiFraudServiceCreate, + AntiFraudServiceDefinition: AntiFraudServiceDefinition, + AntiFraudServiceDefinitionFieldsInner: AntiFraudServiceDefinitionFieldsInner, + AntiFraudServiceUpdate: AntiFraudServiceUpdate, + AntiFraudServiceUpdateFieldsInner: AntiFraudServiceUpdateFieldsInner, + AntiFraudTransactionStatusUpdateErrorEvent: + AntiFraudTransactionStatusUpdateErrorEvent, + AntiFraudTransactionStatusUpdateErrorEventContext: + AntiFraudTransactionStatusUpdateErrorEventContext, + AntiFraudTransactionStatusUpdateEvent: AntiFraudTransactionStatusUpdateEvent, + AntiFraudTransactionStatusUpdateEventContext: + AntiFraudTransactionStatusUpdateEventContext, + AntiFraudWebhookEvent: AntiFraudWebhookEvent, + AntiFraudWebhookEventContext: AntiFraudWebhookEventContext, + ApiLog: ApiLog, + ApiLogResponseBody: ApiLogResponseBody, + ApiLogResponseBodyDetails: ApiLogResponseBodyDetails, + ApiLogs: ApiLogs, + ApplePayRequest: ApplePayRequest, + ApplePaySessionRequest: ApplePaySessionRequest, + AuditLog: AuditLog, + AuditLogResource: AuditLogResource, + AuditLogUser: AuditLogUser, + AuditLogs: AuditLogs, + BINLookupRequest: BINLookupRequest, + BINLookupRequestContext: BINLookupRequestContext, + BillingDetails: BillingDetails, + BillingDetailsAddress: BillingDetailsAddress, + BillingDetailsRequest: BillingDetailsRequest, + BillingDetailsRequestAddress: BillingDetailsRequestAddress, + BillingDetailsRequestTaxId: BillingDetailsRequestTaxId, + BillingDetailsTaxId: BillingDetailsTaxId, + BillingDetailsUpdateRequest: BillingDetailsUpdateRequest, + BillingDetailsUpdateRequestAddress: BillingDetailsUpdateRequestAddress, + BrowserInfo: BrowserInfo, + Buyer: Buyer, + BuyerBillingDetails: BuyerBillingDetails, + BuyerRequest: BuyerRequest, + BuyerRequestBillingDetails: BuyerRequestBillingDetails, + BuyerSnapshot: BuyerSnapshot, + BuyerSnapshotBillingDetails: BuyerSnapshotBillingDetails, + BuyerUpdate: BuyerUpdate, + BuyerUpdateBillingDetails: BuyerUpdateBillingDetails, + Buyers: Buyers, + CardDetails: CardDetails, + CardRequest: CardRequest, + CardSchemeDefinition: CardSchemeDefinition, + CardSchemeDefinitions: CardSchemeDefinitions, + CartItem: CartItem, + CheckoutSession: CheckoutSession, + CheckoutSessionAirline: CheckoutSessionAirline, + CheckoutSessionCreateRequest: CheckoutSessionCreateRequest, + CheckoutSessionCreateRequestAirline: CheckoutSessionCreateRequestAirline, + CheckoutSessionPaymentMethod: CheckoutSessionPaymentMethod, + CheckoutSessionPaymentMethodDetails: CheckoutSessionPaymentMethodDetails, + CheckoutSessionRequest: CheckoutSessionRequest, + CheckoutSessionUpdateRequest: CheckoutSessionUpdateRequest, + ClickToPaySessionRequest: ClickToPaySessionRequest, + Connection: Connection, + ConnectionDefinition: ConnectionDefinition, + ConnectionDefinitions: ConnectionDefinitions, + ConnectionOptions: ConnectionOptions, + ConnectionOptionsAdyenCard: ConnectionOptionsAdyenCard, + ConnectionOptionsAdyenSepa: ConnectionOptionsAdyenSepa, + ConnectionOptionsCybersourceAntiFraud: ConnectionOptionsCybersourceAntiFraud, + ConnectionOptionsCybersourceCard: ConnectionOptionsCybersourceCard, + ConnectionOptionsCybersourceIdeal: ConnectionOptionsCybersourceIdeal, + ConnectionOptionsCybersourceKcp: ConnectionOptionsCybersourceKcp, + ConnectionOptionsFiservCard: ConnectionOptionsFiservCard, + ConnectionOptionsFiservCardInstallmentOptions: + ConnectionOptionsFiservCardInstallmentOptions, + ConnectionOptionsForterAntiFraud: ConnectionOptionsForterAntiFraud, + ConnectionOptionsForterAntiFraudCartItemsInner: + ConnectionOptionsForterAntiFraudCartItemsInner, + ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData: + ConnectionOptionsForterAntiFraudCartItemsInnerBasicItemData, + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner: + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInner, + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress: + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerAddress, + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments: + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerComments, + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails: + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPersonalDetails, + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner: + ConnectionOptionsForterAntiFraudCartItemsInnerBeneficiariesInnerPhoneInner, + ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails: + ConnectionOptionsForterAntiFraudCartItemsInnerDeliveryDetails, + ConnectionOptionsForterAntiFraudTotalDiscount: + ConnectionOptionsForterAntiFraudTotalDiscount, + ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount: + ConnectionOptionsForterAntiFraudTotalDiscountCouponDiscountAmount, + ConnectionOptionsGivingblockGivingblock: + ConnectionOptionsGivingblockGivingblock, + ConnectionOptionsLatitudeLatitude: ConnectionOptionsLatitudeLatitude, + ConnectionOptionsPaypalPaypal: ConnectionOptionsPaypalPaypal, + ConnectionOptionsPaypalPaypalAdditionalDataInner: + ConnectionOptionsPaypalPaypalAdditionalDataInner, + ConnectionOptionsPowertranzCard: ConnectionOptionsPowertranzCard, + ConnectionOptionsStripeCard: ConnectionOptionsStripeCard, + ConnectionOptionsStripeCardStripeConnect: + ConnectionOptionsStripeCardStripeConnect, + Connections: Connections, + Cryptogram: Cryptogram, + DetailedSettlementReportSpec: DetailedSettlementReportSpec, + DetailedSettlementReportSpecParams: DetailedSettlementReportSpecParams, + DetailedSettlementReportSpecParamsFilters: + DetailedSettlementReportSpecParamsFilters, + DetailedSettlementReportSpecParamsFiltersIngestedAt: + DetailedSettlementReportSpecParamsFiltersIngestedAt, + DigitalWallet: DigitalWallet, + DigitalWalletApplePayTokenDecrypted: DigitalWalletApplePayTokenDecrypted, + DigitalWalletApplePayTokenDecryptedContext: + DigitalWalletApplePayTokenDecryptedContext, + DigitalWalletClickToPayFields: DigitalWalletClickToPayFields, + DigitalWalletClickToPayTokenDecrypted: DigitalWalletClickToPayTokenDecrypted, + DigitalWalletClickToPayTokenDecryptedContext: + DigitalWalletClickToPayTokenDecryptedContext, + DigitalWalletDomain: DigitalWalletDomain, + DigitalWalletGooglePayTokenDecrypted: DigitalWalletGooglePayTokenDecrypted, + DigitalWalletGooglePayTokenDecryptedContext: + DigitalWalletGooglePayTokenDecryptedContext, + DigitalWalletRequest: DigitalWalletRequest, + DigitalWalletUpdate: DigitalWalletUpdate, + DigitalWallets: DigitalWallets, + Error400BadRequest: Error400BadRequest, + Error401Unauthorized: Error401Unauthorized, + Error403Forbidden: Error403Forbidden, + Error404NotFound: Error404NotFound, + Error409DuplicateRecord: Error409DuplicateRecord, + Error429TooManyRequests: Error429TooManyRequests, + ErrorDetail: ErrorDetail, + GiftCard: GiftCard, + GiftCardBalanceNewRequest: GiftCardBalanceNewRequest, + GiftCardBalanceRequest: GiftCardBalanceRequest, + GiftCardBalanceStoredRequest: GiftCardBalanceStoredRequest, + GiftCardBalancesRequest: GiftCardBalancesRequest, + GiftCardBuyer: GiftCardBuyer, + GiftCardRedemption: GiftCardRedemption, + GiftCardRedemptionFailed: GiftCardRedemptionFailed, + GiftCardRedemptionFailedContext: GiftCardRedemptionFailedContext, + GiftCardRedemptionSucceeded: GiftCardRedemptionSucceeded, + GiftCardRedemptionSucceededContext: GiftCardRedemptionSucceededContext, + GiftCardRefundFailed: GiftCardRefundFailed, + GiftCardRefundFailedContext: GiftCardRefundFailedContext, + GiftCardRefundSucceeded: GiftCardRefundSucceeded, + GiftCardService: GiftCardService, + GiftCardServiceCreateRequest: GiftCardServiceCreateRequest, + GiftCardServiceCreateRequestFieldsInner: + GiftCardServiceCreateRequestFieldsInner, + GiftCardServiceDefinition: GiftCardServiceDefinition, + GiftCardServiceFieldsInner: GiftCardServiceFieldsInner, + GiftCardServiceSnapshot: GiftCardServiceSnapshot, + GiftCardServiceUpdateRequest: GiftCardServiceUpdateRequest, + GiftCardServiceUpdateRequestFieldsInner: + GiftCardServiceUpdateRequestFieldsInner, + GiftCardServiceVerifyRequest: GiftCardServiceVerifyRequest, + GiftCardServiceVerifyRequestFieldsInner: + GiftCardServiceVerifyRequestFieldsInner, + GiftCardSnapshot: GiftCardSnapshot, + GiftCardStoreRequest: GiftCardStoreRequest, + GiftCardSummary: GiftCardSummary, + GiftCards: GiftCards, + GiftCardsSummary: GiftCardsSummary, + GooglePayRequest: GooglePayRequest, + GooglePayRequestAssuranceDetails: GooglePayRequestAssuranceDetails, + GooglePaySessionRequest: GooglePaySessionRequest, + IssueCryptogramRequest: IssueCryptogramRequest, + Merchant: Merchant, + MerchantAccount: MerchantAccount, + MerchantAccountCreate: MerchantAccountCreate, + MerchantAccountUpdate: MerchantAccountUpdate, + MerchantAccounts: MerchantAccounts, + MerchantAddress: MerchantAddress, + MerchantProfile: MerchantProfile, + MerchantProfileAmex: MerchantProfileAmex, + MerchantProfileDankort: MerchantProfileDankort, + MerchantProfileDiscover: MerchantProfileDiscover, + MerchantProfileJcb: MerchantProfileJcb, + MerchantProfileMastercard: MerchantProfileMastercard, + MerchantProfileScheme: MerchantProfileScheme, + MerchantProfileSchemeSummary: MerchantProfileSchemeSummary, + MerchantProfileSummary: MerchantProfileSummary, + MerchantProfileSummaryAmex: MerchantProfileSummaryAmex, + MerchantProfileSummaryDankort: MerchantProfileSummaryDankort, + MerchantProfileSummaryDiscover: MerchantProfileSummaryDiscover, + MerchantProfileSummaryJcb: MerchantProfileSummaryJcb, + MerchantProfileSummaryMastercard: MerchantProfileSummaryMastercard, + MerchantProfileSummaryUnionpay: MerchantProfileSummaryUnionpay, + MerchantProfileSummaryVisa: MerchantProfileSummaryVisa, + MerchantProfileUnionpay: MerchantProfileUnionpay, + MerchantProfileVisa: MerchantProfileVisa, + MerchantRequest: MerchantRequest, + NetworkToken: NetworkToken, + NetworkTokenCryptogramProvisionFailed: NetworkTokenCryptogramProvisionFailed, + NetworkTokenCryptogramProvisionFailedContext: + NetworkTokenCryptogramProvisionFailedContext, + NetworkTokenCryptogramProvisionSucceeded: + NetworkTokenCryptogramProvisionSucceeded, + NetworkTokenCryptogramProvisionSucceededContext: + NetworkTokenCryptogramProvisionSucceededContext, + NetworkTokenProvisionFailed: NetworkTokenProvisionFailed, + NetworkTokenProvisionFailedContext: NetworkTokenProvisionFailedContext, + NetworkTokenProvisionSucceeded: NetworkTokenProvisionSucceeded, + NetworkTokenRequest: NetworkTokenRequest, + NetworkTokens: NetworkTokens, + PaymentConnectorExternalTransactionRequest: + PaymentConnectorExternalTransactionRequest, + PaymentConnectorExternalTransactionRequestContext: + PaymentConnectorExternalTransactionRequestContext, + PaymentConnectorReportTransactionSettled: + PaymentConnectorReportTransactionSettled, + PaymentConnectorReportTransactionSettledContext: + PaymentConnectorReportTransactionSettledContext, + PaymentConnectorResponseTransactionAuthorizationFailedEvent: + PaymentConnectorResponseTransactionAuthorizationFailedEvent, + PaymentConnectorResponseTransactionAuthorizationFailedEventContext: + PaymentConnectorResponseTransactionAuthorizationFailedEventContext, + PaymentConnectorResponseTransactionAuthorizationSucceededEvent: + PaymentConnectorResponseTransactionAuthorizationSucceededEvent, + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext: + PaymentConnectorResponseTransactionAuthorizationSucceededEventContext, + PaymentConnectorResponseTransactionCaptureDeclinedEvent: + PaymentConnectorResponseTransactionCaptureDeclinedEvent, + PaymentConnectorResponseTransactionCaptureDeclinedEventContext: + PaymentConnectorResponseTransactionCaptureDeclinedEventContext, + PaymentConnectorResponseTransactionCaptureFailedEvent: + PaymentConnectorResponseTransactionCaptureFailedEvent, + PaymentConnectorResponseTransactionCaptureSucceededEvent: + PaymentConnectorResponseTransactionCaptureSucceededEvent, + PaymentConnectorResponseTransactionCaptureSucceededEventContext: + PaymentConnectorResponseTransactionCaptureSucceededEventContext, + PaymentConnectorResponseTransactionDeclinedEvent: + PaymentConnectorResponseTransactionDeclinedEvent, + PaymentConnectorResponseTransactionDeclinedEventContext: + PaymentConnectorResponseTransactionDeclinedEventContext, + PaymentConnectorResponseTransactionVoidDeclinedEvent: + PaymentConnectorResponseTransactionVoidDeclinedEvent, + PaymentConnectorResponseTransactionVoidDeclinedEventContext: + PaymentConnectorResponseTransactionVoidDeclinedEventContext, + PaymentConnectorResponseTransactionVoidFailedEvent: + PaymentConnectorResponseTransactionVoidFailedEvent, + PaymentConnectorResponseTransactionVoidFailedEventContext: + PaymentConnectorResponseTransactionVoidFailedEventContext, + PaymentConnectorResponseTransactionVoidSucceededEvent: + PaymentConnectorResponseTransactionVoidSucceededEvent, + PaymentConnectorResponseTransactionVoidSucceededEventContext: + PaymentConnectorResponseTransactionVoidSucceededEventContext, + PaymentLink: PaymentLink, + PaymentLinkBuyer: PaymentLinkBuyer, + PaymentLinkRequest: PaymentLinkRequest, + PaymentLinkRequestConnectionOptions: PaymentLinkRequestConnectionOptions, + PaymentLinkShippingDetails: PaymentLinkShippingDetails, + PaymentLinkStatementDescriptor: PaymentLinkStatementDescriptor, + PaymentLinks: PaymentLinks, + PaymentMethod: PaymentMethod, + PaymentMethodDefinition: PaymentMethodDefinition, + PaymentMethodDefinitions: PaymentMethodDefinitions, + PaymentMethodDetailsCard: PaymentMethodDetailsCard, + PaymentMethodRequest: PaymentMethodRequest, + PaymentMethodSnapshot: PaymentMethodSnapshot, + PaymentMethodTokenized: PaymentMethodTokenized, + PaymentMethods: PaymentMethods, + PaymentMethodsTokenized: PaymentMethodsTokenized, + PaymentOption: PaymentOption, + PaymentOptionApprovalUI: PaymentOptionApprovalUI, + PaymentOptionContext: PaymentOptionContext, + PaymentOptions: PaymentOptions, + PaymentOptionsRequest: PaymentOptionsRequest, + PaymentService: PaymentService, + PaymentServiceDefinition: PaymentServiceDefinition, + PaymentServiceDefinitionConfiguration: PaymentServiceDefinitionConfiguration, + PaymentServiceDefinitionReportingFieldsInner: + PaymentServiceDefinitionReportingFieldsInner, + PaymentServiceDefinitionSupportedFeatures: + PaymentServiceDefinitionSupportedFeatures, + PaymentServiceDefinitions: PaymentServiceDefinitions, + PaymentServiceMerchantProfile: PaymentServiceMerchantProfile, + PaymentServiceReportingFieldsInner: PaymentServiceReportingFieldsInner, + PaymentServiceRequest: PaymentServiceRequest, + PaymentServiceRequestFieldsInner: PaymentServiceRequestFieldsInner, + PaymentServiceRequestMerchantProfile: PaymentServiceRequestMerchantProfile, + PaymentServiceRequestReportingFieldsInner: + PaymentServiceRequestReportingFieldsInner, + PaymentServiceSession: PaymentServiceSession, + PaymentServiceSnapshot: PaymentServiceSnapshot, + PaymentServiceToken: PaymentServiceToken, + PaymentServiceTokenRequest: PaymentServiceTokenRequest, + PaymentServiceTokens: PaymentServiceTokens, + PaymentServiceUpdate: PaymentServiceUpdate, + PaymentServiceUpdateFieldsInner: PaymentServiceUpdateFieldsInner, + PaymentServiceUpdateMerchantProfile: PaymentServiceUpdateMerchantProfile, + PaymentServiceUpdateReportingFieldsInner: + PaymentServiceUpdateReportingFieldsInner, + PaymentServices: PaymentServices, + Payout: Payout, + PayoutConnectionOptionsRequest: PayoutConnectionOptionsRequest, + PayoutConnectionOptionsRequestCheckoutCard: + PayoutConnectionOptionsRequestCheckoutCard, + PayoutInlineCardRequest: PayoutInlineCardRequest, + PayoutMerchant: PayoutMerchant, + PayoutPaymentMethodRequest: PayoutPaymentMethodRequest, + PayoutRequest: PayoutRequest, + PayoutRequestBuyer: PayoutRequestBuyer, + PayoutRequestConnectionOptions: PayoutRequestConnectionOptions, + PayoutRequestMerchant: PayoutRequestMerchant, + PayoutStoredCardRequest: PayoutStoredCardRequest, + Payouts: Payouts, + Recipient: Recipient, + RecipientAddress: RecipientAddress, + RecipientSnapshot: RecipientSnapshot, + RedirectRequest: RedirectRequest, + Refund: Refund, + Refunds: Refunds, + Report: Report, + ReportCreate: ReportCreate, + ReportExecution: ReportExecution, + ReportExecutionSummary: ReportExecutionSummary, + ReportExecutionSummaryContext: ReportExecutionSummaryContext, + ReportExecutionUrl: ReportExecutionUrl, + ReportExecutions: ReportExecutions, + ReportSpec: ReportSpec, + ReportSummary: ReportSummary, + ReportUpdate: ReportUpdate, + Reports: Reports, + RequiredFields: RequiredFields, + RequiredFieldsAddress: RequiredFieldsAddress, + ResetPasswordRequest: ResetPasswordRequest, + Role: Role, + RoleAssignment: RoleAssignment, + RoleAssignmentAssignee: RoleAssignmentAssignee, + RoleAssignmentRequest: RoleAssignmentRequest, + RoleAssignmentRequestAssignee: RoleAssignmentRequestAssignee, + RoleAssignmentRequestRole: RoleAssignmentRequestRole, + RoleAssignments: RoleAssignments, + RolePermissions: RolePermissions, + Roles: Roles, + SetPasswordRequest: SetPasswordRequest, + Settlement: Settlement, + Settlements: Settlements, + ShippingDetail: ShippingDetail, + ShippingDetailAddress: ShippingDetailAddress, + ShippingDetailRequest: ShippingDetailRequest, + ShippingDetailRequestAddress: ShippingDetailRequestAddress, + ShippingDetailUpdateRequest: ShippingDetailUpdateRequest, + ShippingDetails: ShippingDetails, + StatementDescriptor: StatementDescriptor, + TaxId: TaxId, + ThreeDSecureAuthenticationRequestEvent: + ThreeDSecureAuthenticationRequestEvent, + ThreeDSecureAuthenticationRequestEventContext: + ThreeDSecureAuthenticationRequestEventContext, + ThreeDSecureData: ThreeDSecureData, + ThreeDSecureDataV1: ThreeDSecureDataV1, + ThreeDSecureDataV1V2: ThreeDSecureDataV1V2, + ThreeDSecureDataV2: ThreeDSecureDataV2, + ThreeDSecureError: ThreeDSecureError, + ThreeDSecurePreparationRequestEvent: ThreeDSecurePreparationRequestEvent, + ThreeDSecurePreparationRequestEventContext: + ThreeDSecurePreparationRequestEventContext, + ThreeDSecureRequestErrorEvent: ThreeDSecureRequestErrorEvent, + ThreeDSecureRequestErrorEventContext: ThreeDSecureRequestErrorEventContext, + ThreeDSecureResultRequestEvent: ThreeDSecureResultRequestEvent, + ThreeDSecureResultRequestEventContext: ThreeDSecureResultRequestEventContext, + ThreeDSecureSuccessEvent: ThreeDSecureSuccessEvent, + ThreeDSecureSuccessEventContext: ThreeDSecureSuccessEventContext, + ThreeDSecureSummary: ThreeDSecureSummary, + ThreeDSecureSummaryErrorData: ThreeDSecureSummaryErrorData, + ThreeDSecureV2: ThreeDSecureV2, + TokenizedRequest: TokenizedRequest, + Transaction: Transaction, + TransactionBuyer: TransactionBuyer, + TransactionBuyerRequest: TransactionBuyerRequest, + TransactionBuyerRequestBillingDetails: TransactionBuyerRequestBillingDetails, + TransactionBuyerRequestShippingDetails: + TransactionBuyerRequestShippingDetails, + TransactionCaptureRequest: TransactionCaptureRequest, + TransactionCaptureRequestAirline: TransactionCaptureRequestAirline, + TransactionCardRequest: TransactionCardRequest, + TransactionCheckoutSessionRequest: TransactionCheckoutSessionRequest, + TransactionGiftCardNewRequest: TransactionGiftCardNewRequest, + TransactionGiftCardRequest: TransactionGiftCardRequest, + TransactionGiftCardStoredRequest: TransactionGiftCardStoredRequest, + TransactionHistoryEvent: TransactionHistoryEvent, + TransactionHistoryEvents: TransactionHistoryEvents, + TransactionNetworkTokenApplePayRequest: + TransactionNetworkTokenApplePayRequest, + TransactionNetworkTokenGooglePayRequest: + TransactionNetworkTokenGooglePayRequest, + TransactionNetworkTokenRequest: TransactionNetworkTokenRequest, + TransactionPaymentMethod: TransactionPaymentMethod, + TransactionPaymentMethodRequest: TransactionPaymentMethodRequest, + TransactionPaymentService: TransactionPaymentService, + TransactionRecipient: TransactionRecipient, + TransactionRedirectRequest: TransactionRedirectRequest, + TransactionRefundAllRequest: TransactionRefundAllRequest, + TransactionRefundRequest: TransactionRefundRequest, + TransactionRequest: TransactionRequest, + TransactionRequestBrowserInfo: TransactionRequestBrowserInfo, + TransactionRequestRecipient: TransactionRequestRecipient, + TransactionRetriesReportSpec: TransactionRetriesReportSpec, + TransactionRetriesReportSpecParams: TransactionRetriesReportSpecParams, + TransactionRetriesReportSpecParamsFilters: + TransactionRetriesReportSpecParamsFilters, + TransactionRetriesReportSpecParamsFiltersCreatedAt: + TransactionRetriesReportSpecParamsFiltersCreatedAt, + TransactionShippingDetails: TransactionShippingDetails, + TransactionStatusSummary: TransactionStatusSummary, + TransactionSummary: TransactionSummary, + Transactions: Transactions, + TransactionsBatchCaptureRequest: TransactionsBatchCaptureRequest, + TransactionsReportSpec: TransactionsReportSpec, + TransactionsReportSpecParams: TransactionsReportSpecParams, + TransactionsReportSpecParamsFilters: TransactionsReportSpecParamsFilters, + TransactionsReportSpecParamsFiltersAuthorizedAt: + TransactionsReportSpecParamsFiltersAuthorizedAt, + TransactionsReportSpecParamsFiltersCapturedAt: + TransactionsReportSpecParamsFiltersCapturedAt, + TransactionsReportSpecParamsFiltersUpdatedAt: + TransactionsReportSpecParamsFiltersUpdatedAt, + TransactionsReportSpecParamsFiltersVoidedAt: + TransactionsReportSpecParamsFiltersVoidedAt, + UserCurrentUpdate: UserCurrentUpdate, + UserRequest: UserRequest, + UserRole: UserRole, + UserUpdate: UserUpdate, + WebhookSubscription: WebhookSubscription, + WebhookSubscriptionAuthentication: WebhookSubscriptionAuthentication, + WebhookSubscriptionRequest: WebhookSubscriptionRequest, + WebhookSubscriptionRotateSecretRequest: + WebhookSubscriptionRotateSecretRequest, + WebhookSubscriptionUpdateRequest: WebhookSubscriptionUpdateRequest, + WebhookSubscriptions: WebhookSubscriptions, } export class ObjectSerializer { - public static findCorrectType(data: any, expectedType: string) { - if (data == undefined) { - return expectedType; - } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { - return expectedType; - } else if (expectedType === "Date") { - return expectedType; - } else { - if (enumsMap[expectedType]) { - return expectedType; - } + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType + } else if (expectedType === 'Date') { + return expectedType + } else { + if (enumsMap[expectedType]) { + return expectedType + } - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } + if (!typeMap[expectedType]) { + return expectedType // w/e we don't know the type + } - // Check the discriminator - let discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } else { - if (data[discriminatorProperty]) { - var discriminatorType = data[discriminatorProperty]; - if(typeMap[discriminatorType]){ - return discriminatorType; // use the type given in the discriminator - } else { - return expectedType; // discriminator did not map to a type - } - } else { - return expectedType; // discriminator was not present (or an empty string) - } - } + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator + if (discriminatorProperty == null) { + return expectedType // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty] + if (typeMap[discriminatorType]) { + return discriminatorType // use the type given in the discriminator + } else { + return expectedType // discriminator did not map to a type + } + } else { + return expectedType // discriminator was not present (or an empty string) } + } } + } - public static serialize(data: any, type: string) { - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 - let subType: string = type.replace("Array<", ""); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - let transformedData: any[] = []; - for (let index = 0; index < data.length; index++) { - let datum = data[index]; - transformedData.push(ObjectSerializer.serialize(datum, subType)); - } - return transformedData; - } else if (type === "Date") { - return data.toISOString(); - } else { - if (enumsMap[type]) { - return data; - } - if (!typeMap[type]) { // in case we dont know the type - return data; - } + public static serialize(data: any, type: string) { + if (data == undefined) { + return data + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data + } else if (type.lastIndexOf('Array<', 0) === 0) { + // string.startsWith pre es6 + let subType: string = type.replace('Array<', '') // Array => Type> + subType = subType.substring(0, subType.length - 1) // Type> => Type + let transformedData: any[] = [] + for (let index = 0; index < data.length; index++) { + let datum = data[index] + transformedData.push(ObjectSerializer.serialize(datum, subType)) + } + return transformedData + } else if (type === 'Date') { + return data.toISOString() + } else { + if (enumsMap[type]) { + return data + } + if (!typeMap[type]) { + // in case we dont know the type + return data + } - // Get the actual type of this object - type = this.findCorrectType(data, type); + // Get the actual type of this object + type = this.findCorrectType(data, type) - // get the map for the correct type. - let attributeTypes = typeMap[type].getAttributeTypeMap(); - let instance: {[index: string]: any} = {}; - for (let index = 0; index < attributeTypes.length; index++) { - let attributeType = attributeTypes[index]; - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); - } - return instance; - } + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap() + let instance: { [index: string]: any } = {} + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index] + instance[attributeType.baseName] = ObjectSerializer.serialize( + data[attributeType.name], + attributeType.type + ) + } + return instance } + } - public static deserialize(data: any, type: string) { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 - let subType: string = type.replace("Array<", ""); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - let transformedData: any[] = []; - for (let index = 0; index < data.length; index++) { - let datum = data[index]; - transformedData.push(ObjectSerializer.deserialize(datum, subType)); - } - return transformedData; - } else if (type === "Date") { - return new Date(data); - } else { - if (enumsMap[type]) {// is Enum - return data; - } + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type) + if (data == undefined) { + return data + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data + } else if (type.lastIndexOf('Array<', 0) === 0) { + // string.startsWith pre es6 + let subType: string = type.replace('Array<', '') // Array => Type> + subType = subType.substring(0, subType.length - 1) // Type> => Type + let transformedData: any[] = [] + for (let index = 0; index < data.length; index++) { + let datum = data[index] + transformedData.push(ObjectSerializer.deserialize(datum, subType)) + } + return transformedData + } else if (type === 'Date') { + return new Date(data) + } else { + if (enumsMap[type]) { + // is Enum + return data + } - if (!typeMap[type]) { // dont know the type - return data; - } - let instance = new typeMap[type](); - let attributeTypes = typeMap[type].getAttributeTypeMap(); - for (let index = 0; index < attributeTypes.length; index++) { - let attributeType = attributeTypes[index]; - instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); - } - return instance; - } + if (!typeMap[type]) { + // dont know the type + return data + } + let instance = new typeMap[type]() + let attributeTypes = typeMap[type].getAttributeTypeMap() + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index] + instance[attributeType.name] = ObjectSerializer.deserialize( + data[attributeType.baseName], + attributeType.type + ) + } + return instance } + } } export interface Authentication { - /** - * Apply authentication settings to header and query params. - */ - applyToRequest(requestOptions: localVarRequest.Options): Promise | void; + /** + * Apply authentication settings to header and query params. + */ + applyToRequest(requestOptions: localVarRequest.Options): Promise | void } export class HttpBasicAuth implements Authentication { - public username: string = ''; - public password: string = ''; + public username: string = '' + public password: string = '' - applyToRequest(requestOptions: localVarRequest.Options): void { - requestOptions.auth = { - username: this.username, password: this.password - } + applyToRequest(requestOptions: localVarRequest.Options): void { + requestOptions.auth = { + username: this.username, + password: this.password, } + } } export class HttpBearerAuth implements Authentication { - public accessToken: string | (() => string) = ''; + public accessToken: string | (() => string) = '' - applyToRequest(requestOptions: localVarRequest.Options): void { - if (requestOptions && requestOptions.headers) { - const accessToken = typeof this.accessToken === 'function' - ? this.accessToken() - : this.accessToken; - requestOptions.headers["Authorization"] = "Bearer " + accessToken; - } + applyToRequest(requestOptions: localVarRequest.Options): void { + if (requestOptions && requestOptions.headers) { + const accessToken = + typeof this.accessToken === 'function' + ? this.accessToken() + : this.accessToken + requestOptions.headers['Authorization'] = 'Bearer ' + accessToken } + } } export class ApiKeyAuth implements Authentication { - public apiKey: string = ''; + public apiKey: string = '' - constructor(private location: string, private paramName: string) { - } + constructor( + private location: string, + private paramName: string + ) {} - applyToRequest(requestOptions: localVarRequest.Options): void { - if (this.location == "query") { - (requestOptions.qs)[this.paramName] = this.apiKey; - } else if (this.location == "header" && requestOptions && requestOptions.headers) { - requestOptions.headers[this.paramName] = this.apiKey; - } else if (this.location == 'cookie' && requestOptions && requestOptions.headers) { - if (requestOptions.headers['Cookie']) { - requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey); - } - else { - requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey); - } - } + applyToRequest(requestOptions: localVarRequest.Options): void { + if (this.location == 'query') { + ;(requestOptions.qs)[this.paramName] = this.apiKey + } else if ( + this.location == 'header' && + requestOptions && + requestOptions.headers + ) { + requestOptions.headers[this.paramName] = this.apiKey + } else if ( + this.location == 'cookie' && + requestOptions && + requestOptions.headers + ) { + if (requestOptions.headers['Cookie']) { + requestOptions.headers['Cookie'] += + '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey) + } else { + requestOptions.headers['Cookie'] = + this.paramName + '=' + encodeURIComponent(this.apiKey) + } } + } } export class OAuth implements Authentication { - public accessToken: string = ''; + public accessToken: string = '' - applyToRequest(requestOptions: localVarRequest.Options): void { - if (requestOptions && requestOptions.headers) { - requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; - } + applyToRequest(requestOptions: localVarRequest.Options): void { + if (requestOptions && requestOptions.headers) { + requestOptions.headers['Authorization'] = 'Bearer ' + this.accessToken } + } } export class VoidAuth implements Authentication { - public username: string = ''; - public password: string = ''; + public username: string = '' + public password: string = '' - applyToRequest(_: localVarRequest.Options): void { - // Do nothing - } + applyToRequest(_: localVarRequest.Options): void { + // Do nothing + } } -export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise | void); +export type Interceptor = ( + requestOptions: localVarRequest.Options +) => Promise | void diff --git a/model/paymentConnectorReportTransactionSettled.ts b/model/paymentConnectorReportTransactionSettled.ts new file mode 100644 index 0000000..e0b945d --- /dev/null +++ b/model/paymentConnectorReportTransactionSettled.ts @@ -0,0 +1,79 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { PaymentConnectorReportTransactionSettledContext } from './paymentConnectorReportTransactionSettledContext'; + +/** +* This event logs the exact details for the settlement of a transaction as sourced from a connector report. +*/ +export class PaymentConnectorReportTransactionSettled { + /** + * The type of this resource. Is always `transaction-event`. + */ + 'type'?: PaymentConnectorReportTransactionSettled.TypeEnum; + /** + * The unique identifier for this event. + */ + 'id'?: string; + /** + * The name of this resource. Is always `payment-connector-report-transaction-settled`. + */ + 'name'?: PaymentConnectorReportTransactionSettled.NameEnum; + /** + * The date and time when this transaction was settled. + */ + 'createdAt'?: Date; + 'context'?: PaymentConnectorReportTransactionSettledContext; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PaymentConnectorReportTransactionSettled.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "PaymentConnectorReportTransactionSettled.NameEnum" + }, + { + "name": "createdAt", + "baseName": "created_at", + "type": "Date" + }, + { + "name": "context", + "baseName": "context", + "type": "PaymentConnectorReportTransactionSettledContext" + } ]; + + static getAttributeTypeMap() { + return PaymentConnectorReportTransactionSettled.attributeTypeMap; + } +} + +export namespace PaymentConnectorReportTransactionSettled { + export enum TypeEnum { + TransactionEvent = 'transaction-event' + } + export enum NameEnum { + PaymentConnectorReportTransactionSettled = 'payment-connector-report-transaction-settled' + } +} diff --git a/model/paymentConnectorReportTransactionSettledContext.ts b/model/paymentConnectorReportTransactionSettledContext.ts new file mode 100644 index 0000000..3ed38e5 --- /dev/null +++ b/model/paymentConnectorReportTransactionSettledContext.ts @@ -0,0 +1,172 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Additional context for this event. +*/ +export class PaymentConnectorReportTransactionSettledContext { + /** + * The unique ID of this transaction\'s settlement. + */ + 'settlementId'?: string; + /** + * The date and time when this transaction was settled. + */ + 'postedAt'?: Date; + /** + * The date and time when information about this transaction\'s settlement was ingested into our system. + */ + 'ingestedAt'?: Date; + /** + * The currency of this transaction\'s settlement in ISO 4217 three-letter code format. + */ + 'currency'?: string; + /** + * The net amount settled for this transaction. + */ + 'amount'?: number; + /** + * The exchange rate used to convert amounts from the processing currency to the settlement currency. + */ + 'exchangeRate'?: number | null; + /** + * The total commission paid on this transaction, expressed in `currency`. + */ + 'commission'?: number; + /** + * The interchange fee for this transaction, expressed in `currency`. + */ + 'interchange'?: number | null; + /** + * The markup applied to this transaction by the acquirer, expressed in `currency`. + */ + 'markup'?: number | null; + /** + * The scheme fee for this transaction, expressed in `currency`. + */ + 'schemeFee'?: number | null; + /** + * The unique ID of the payment service used. + */ + 'paymentServiceId'?: string; + /** + * The payment service definition used. + */ + 'paymentServiceDefinitionId'?: string; + /** + * The display name of the payment service used. + */ + 'paymentServiceDisplayName'?: string; + /** + * The ID of the payment service report containing this transaction\'s settlement. + */ + 'paymentServiceReportId'?: string; + /** + * The list of payment service report file IDs that make up the payment service report containing this transaction\'s settlement. + */ + 'paymentServiceReportFileIds'?: Array; + /** + * The external ID of the transaction as set by the payment service. + */ + 'paymentServiceTransactionId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "settlementId", + "baseName": "settlement_id", + "type": "string" + }, + { + "name": "postedAt", + "baseName": "posted_at", + "type": "Date" + }, + { + "name": "ingestedAt", + "baseName": "ingested_at", + "type": "Date" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "exchangeRate", + "baseName": "exchange_rate", + "type": "number" + }, + { + "name": "commission", + "baseName": "commission", + "type": "number" + }, + { + "name": "interchange", + "baseName": "interchange", + "type": "number" + }, + { + "name": "markup", + "baseName": "markup", + "type": "number" + }, + { + "name": "schemeFee", + "baseName": "scheme_fee", + "type": "number" + }, + { + "name": "paymentServiceId", + "baseName": "payment_service_id", + "type": "string" + }, + { + "name": "paymentServiceDefinitionId", + "baseName": "payment_service_definition_id", + "type": "string" + }, + { + "name": "paymentServiceDisplayName", + "baseName": "payment_service_display_name", + "type": "string" + }, + { + "name": "paymentServiceReportId", + "baseName": "payment_service_report_id", + "type": "string" + }, + { + "name": "paymentServiceReportFileIds", + "baseName": "payment_service_report_file_ids", + "type": "Array" + }, + { + "name": "paymentServiceTransactionId", + "baseName": "payment_service_transaction_id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentConnectorReportTransactionSettledContext.attributeTypeMap; + } +} + diff --git a/model/paymentConnectorResponseTransactionAuthorizationFailedEventContext.ts b/model/paymentConnectorResponseTransactionAuthorizationFailedEventContext.ts index c1cc626..d7ee3a3 100644 --- a/model/paymentConnectorResponseTransactionAuthorizationFailedEventContext.ts +++ b/model/paymentConnectorResponseTransactionAuthorizationFailedEventContext.ts @@ -57,6 +57,10 @@ export class PaymentConnectorResponseTransactionAuthorizationFailedEventContext */ 'rawResponseDescription'?: string | null; /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null; + /** * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. */ 'avsResponseCode'?: PaymentConnectorResponseTransactionAuthorizationFailedEventContext.AvsResponseCodeEnum; @@ -122,6 +126,11 @@ export class PaymentConnectorResponseTransactionAuthorizationFailedEventContext "baseName": "raw_response_description", "type": "string" }, + { + "name": "authResponseCode", + "baseName": "auth_response_code", + "type": "string" + }, { "name": "avsResponseCode", "baseName": "avs_response_code", diff --git a/model/paymentConnectorResponseTransactionAuthorizationSucceededEventContext.ts b/model/paymentConnectorResponseTransactionAuthorizationSucceededEventContext.ts index e42dc42..dd485a1 100644 --- a/model/paymentConnectorResponseTransactionAuthorizationSucceededEventContext.ts +++ b/model/paymentConnectorResponseTransactionAuthorizationSucceededEventContext.ts @@ -53,6 +53,10 @@ export class PaymentConnectorResponseTransactionAuthorizationSucceededEventConte */ 'rawResponseDescription'?: string | null; /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null; + /** * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. */ 'avsResponseCode'?: PaymentConnectorResponseTransactionAuthorizationSucceededEventContext.AvsResponseCodeEnum; @@ -113,6 +117,11 @@ export class PaymentConnectorResponseTransactionAuthorizationSucceededEventConte "baseName": "raw_response_description", "type": "string" }, + { + "name": "authResponseCode", + "baseName": "auth_response_code", + "type": "string" + }, { "name": "avsResponseCode", "baseName": "avs_response_code", diff --git a/model/paymentConnectorResponseTransactionCaptureDeclinedEventContext.ts b/model/paymentConnectorResponseTransactionCaptureDeclinedEventContext.ts index a2e352c..692c2fd 100644 --- a/model/paymentConnectorResponseTransactionCaptureDeclinedEventContext.ts +++ b/model/paymentConnectorResponseTransactionCaptureDeclinedEventContext.ts @@ -45,6 +45,10 @@ export class PaymentConnectorResponseTransactionCaptureDeclinedEventContext { */ 'rawResponseDescription'?: string | null; /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null; + /** * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. */ 'avsResponseCode'?: PaymentConnectorResponseTransactionCaptureDeclinedEventContext.AvsResponseCodeEnum; @@ -95,6 +99,11 @@ export class PaymentConnectorResponseTransactionCaptureDeclinedEventContext { "baseName": "raw_response_description", "type": "string" }, + { + "name": "authResponseCode", + "baseName": "auth_response_code", + "type": "string" + }, { "name": "avsResponseCode", "baseName": "avs_response_code", diff --git a/model/paymentConnectorResponseTransactionCaptureSucceededEventContext.ts b/model/paymentConnectorResponseTransactionCaptureSucceededEventContext.ts index c9d003c..d65f88d 100644 --- a/model/paymentConnectorResponseTransactionCaptureSucceededEventContext.ts +++ b/model/paymentConnectorResponseTransactionCaptureSucceededEventContext.ts @@ -53,6 +53,10 @@ export class PaymentConnectorResponseTransactionCaptureSucceededEventContext { */ 'rawResponseDescription'?: string | null; /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null; + /** * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. */ 'avsResponseCode'?: PaymentConnectorResponseTransactionCaptureSucceededEventContext.AvsResponseCodeEnum; @@ -113,6 +117,11 @@ export class PaymentConnectorResponseTransactionCaptureSucceededEventContext { "baseName": "raw_response_description", "type": "string" }, + { + "name": "authResponseCode", + "baseName": "auth_response_code", + "type": "string" + }, { "name": "avsResponseCode", "baseName": "avs_response_code", diff --git a/model/paymentConnectorResponseTransactionDeclinedEventContext.ts b/model/paymentConnectorResponseTransactionDeclinedEventContext.ts index 8c57724..3a9e69b 100644 --- a/model/paymentConnectorResponseTransactionDeclinedEventContext.ts +++ b/model/paymentConnectorResponseTransactionDeclinedEventContext.ts @@ -57,6 +57,10 @@ export class PaymentConnectorResponseTransactionDeclinedEventContext { */ 'rawResponseDescription'?: string | null; /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null; + /** * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. */ 'avsResponseCode'?: PaymentConnectorResponseTransactionDeclinedEventContext.AvsResponseCodeEnum; @@ -122,6 +126,11 @@ export class PaymentConnectorResponseTransactionDeclinedEventContext { "baseName": "raw_response_description", "type": "string" }, + { + "name": "authResponseCode", + "baseName": "auth_response_code", + "type": "string" + }, { "name": "avsResponseCode", "baseName": "avs_response_code", diff --git a/model/paymentLink.ts b/model/paymentLink.ts new file mode 100644 index 0000000..1b4cca6 --- /dev/null +++ b/model/paymentLink.ts @@ -0,0 +1,278 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { CartItem } from './cartItem'; +import { PaymentLinkBuyer } from './paymentLinkBuyer'; +import { PaymentLinkShippingDetails } from './paymentLinkShippingDetails'; +import { PaymentLinkStatementDescriptor } from './paymentLinkStatementDescriptor'; + +export class PaymentLink { + /** + * The ID of a payment link. + */ + 'id'?: string; + /** + * The type of this resource. Is always `payment_link`. + */ + 'type'?: PaymentLink.TypeEnum; + /** + * The monetary amount for this payment link, in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`. + */ + 'amount'?: number; + /** + * A supported ISO-4217 currency code. + */ + 'currency'?: string; + /** + * The date and time when this payment link was created. + */ + 'createdAt'?: Date; + /** + * The date and time when this payment link was created. + */ + 'updatedAt'?: Date; + /** + * The date and time when this payment link expires. + */ + 'expiresAt'?: Date; + 'status'?: PaymentLink.StatusEnum; + /** + * A value that can be used to match the payment link against your own records. + */ + 'externalIdentifier'?: string | null; + 'statementDescriptor'?: PaymentLinkStatementDescriptor | null; + /** + * The locale used to translate text within the payment link. + */ + 'locale'?: PaymentLink.LocaleEnum; + /** + * The name of the merchant to display on the payment link. + */ + 'merchantName'?: string | null; + /** + * The URL of the merchant to display on the payment link. + */ + 'merchantUrl'?: string | null; + /** + * The URL of the merchant banner to display on the payment link. + */ + 'merchantBannerUrl'?: string | null; + /** + * The color code of the merchant to display on the payment link. + */ + 'merchantColor'?: string | null; + /** + * The message to display on the payment link. + */ + 'merchantMessage'?: string | null; + /** + * The URL of the merchant terms and conditions to display on the payment link. + */ + 'merchantTermsAndConditionsUrl'?: string | null; + /** + * The URL of the merchant favicon icon. + */ + 'merchantFaviconUrl'?: string | null; + /** + * The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction. + */ + 'country'?: string | null; + /** + * The intent of the payment link. + */ + 'intent'?: PaymentLink.IntentEnum; + /** + * The URL to redirect the buyer to after payment. + */ + 'returnUrl'?: string | null; + /** + * An array of cart items that represents the line items of a payment link. + */ + 'cartItems'?: Array; + /** + * Any additional information about the payment link that you would like to store as key-value pairs. This data is passed to payment service providers that support it. + */ + 'metadata'?: { [key: string]: string; } | null; + /** + * The source of the payment link. Defaults to `ecommerce`. + */ + 'paymentSource'?: PaymentLink.PaymentSourceEnum; + 'buyer'?: PaymentLinkBuyer | null; + 'shippingDetails'?: PaymentLinkShippingDetails | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PaymentLink.TypeEnum" + }, + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "createdAt", + "baseName": "created_at", + "type": "Date" + }, + { + "name": "updatedAt", + "baseName": "updated_at", + "type": "Date" + }, + { + "name": "expiresAt", + "baseName": "expires_at", + "type": "Date" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentLink.StatusEnum" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "PaymentLinkStatementDescriptor" + }, + { + "name": "locale", + "baseName": "locale", + "type": "PaymentLink.LocaleEnum" + }, + { + "name": "merchantName", + "baseName": "merchant_name", + "type": "string" + }, + { + "name": "merchantUrl", + "baseName": "merchant_url", + "type": "string" + }, + { + "name": "merchantBannerUrl", + "baseName": "merchant_banner_url", + "type": "string" + }, + { + "name": "merchantColor", + "baseName": "merchant_color", + "type": "string" + }, + { + "name": "merchantMessage", + "baseName": "merchant_message", + "type": "string" + }, + { + "name": "merchantTermsAndConditionsUrl", + "baseName": "merchant_terms_and_conditions_url", + "type": "string" + }, + { + "name": "merchantFaviconUrl", + "baseName": "merchant_favicon_url", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "intent", + "baseName": "intent", + "type": "PaymentLink.IntentEnum" + }, + { + "name": "returnUrl", + "baseName": "return_url", + "type": "string" + }, + { + "name": "cartItems", + "baseName": "cart_items", + "type": "Array" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "paymentSource", + "baseName": "payment_source", + "type": "PaymentLink.PaymentSourceEnum" + }, + { + "name": "buyer", + "baseName": "buyer", + "type": "PaymentLinkBuyer" + }, + { + "name": "shippingDetails", + "baseName": "shipping_details", + "type": "PaymentLinkShippingDetails" + } ]; + + static getAttributeTypeMap() { + return PaymentLink.attributeTypeMap; + } +} + +export namespace PaymentLink { + export enum TypeEnum { + PaymentLink = 'payment_link' + } + export enum StatusEnum { + Active = 'active', + Expired = 'expired' + } + export enum LocaleEnum { + En = 'en', + EnGb = 'en-GB', + Es = 'es', + Pt = 'pt', + PtBr = 'pt-BR' + } + export enum IntentEnum { + Authorize = 'authorize', + Capture = 'capture' + } + export enum PaymentSourceEnum { + Ecommerce = 'ecommerce', + Moto = 'moto', + Recurring = 'recurring', + Installment = 'installment', + CardOnFile = 'card_on_file' + } +} diff --git a/model/paymentLinkBuyer.ts b/model/paymentLinkBuyer.ts new file mode 100644 index 0000000..71b36c4 --- /dev/null +++ b/model/paymentLinkBuyer.ts @@ -0,0 +1,85 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { BuyerSnapshotBillingDetails } from './buyerSnapshotBillingDetails'; + +/** +* The buyer used for this transaction. +*/ +export class PaymentLinkBuyer { + /** + * The type of this resource. Is always `buyer`. + */ + 'type'?: PaymentLinkBuyer.TypeEnum; + /** + * The unique Gr4vy ID for this buyer. + */ + 'id'?: string | null; + 'billingDetails'?: BuyerSnapshotBillingDetails | null; + /** + * A unique name for this buyer which is used in the Gr4vy admin panel to give a buyer a human readable name. + */ + 'displayName'?: string | null; + /** + * An external identifier that can be used to match the buyer against your own records. + */ + 'externalIdentifier'?: string | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PaymentLinkBuyer.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "billingDetails", + "baseName": "billing_details", + "type": "BuyerSnapshotBillingDetails" + }, + { + "name": "displayName", + "baseName": "display_name", + "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentLinkBuyer.attributeTypeMap; + } +} + +export namespace PaymentLinkBuyer { + export enum TypeEnum { + Buyer = 'buyer' + } +} diff --git a/model/paymentLinkRequest.ts b/model/paymentLinkRequest.ts new file mode 100644 index 0000000..f95b3d2 --- /dev/null +++ b/model/paymentLinkRequest.ts @@ -0,0 +1,232 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { CartItem } from './cartItem'; +import { PaymentLinkRequestConnectionOptions } from './paymentLinkRequestConnectionOptions'; +import { PaymentLinkStatementDescriptor } from './paymentLinkStatementDescriptor'; +import { TransactionBuyerRequest } from './transactionBuyerRequest'; + +/** +* Request body for creating a new payment link. +*/ +export class PaymentLinkRequest { + /** + * The amount to request payment for. + */ + 'amount': number; + /** + * The ISO-4217 currency code for the payment. + */ + 'currency': string; + /** + * The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction. + */ + 'country': string; + 'buyer'?: TransactionBuyerRequest; + /** + * The date and time when this payment link expires. Defaults to 24 hours from creation. + */ + 'expiresAt'?: Date | null; + 'connectionOptions'?: PaymentLinkRequestConnectionOptions | null; + /** + * A value that can be used to match the payment link against your own records. This will also be applied to any transaction. + */ + 'externalIdentifier'?: string | null; + 'statementDescriptor'?: PaymentLinkStatementDescriptor | null; + /** + * The locale used to translate text within the payment link. + */ + 'locale'?: PaymentLinkRequest.LocaleEnum; + /** + * The name of the merchant to display on the payment link. + */ + 'merchantName'?: string | null; + /** + * The URL of the merchant to display on the payment link. + */ + 'merchantUrl'?: string | null; + /** + * The URL of the merchant banner to display on the payment link. + */ + 'merchantBannerUrl'?: string | null; + /** + * The color code of the merchant to display on the payment link. + */ + 'merchantColor'?: string | null; + /** + * The message to display on the payment link. + */ + 'merchantMessage'?: string | null; + /** + * The URL of the merchant terms and conditions to display on the payment link. + */ + 'merchantTermsAndConditionsUrl'?: string | null; + /** + * The URL of the merchant favicon icon. + */ + 'merchantFaviconUrl'?: string | null; + /** + * The intent of the payment link. + */ + 'intent'?: PaymentLinkRequest.IntentEnum = PaymentLinkRequest.IntentEnum.Authorize; + /** + * The URL to redirect the buyer to after payment. + */ + 'returnUrl'?: string | null; + /** + * An array of cart items that represents the line items of a payment link. + */ + 'cartItems'?: Array; + /** + * Any additional information about the payment link that you would like to store as key-value pairs. This data is passed to payment service providers that support it. + */ + 'metadata'?: { [key: string]: string; } | null; + /** + * The source of the payment link. + */ + 'paymentSource'?: PaymentLinkRequest.PaymentSourceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "buyer", + "baseName": "buyer", + "type": "TransactionBuyerRequest" + }, + { + "name": "expiresAt", + "baseName": "expires_at", + "type": "Date" + }, + { + "name": "connectionOptions", + "baseName": "connection_options", + "type": "PaymentLinkRequestConnectionOptions" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "PaymentLinkStatementDescriptor" + }, + { + "name": "locale", + "baseName": "locale", + "type": "PaymentLinkRequest.LocaleEnum" + }, + { + "name": "merchantName", + "baseName": "merchant_name", + "type": "string" + }, + { + "name": "merchantUrl", + "baseName": "merchant_url", + "type": "string" + }, + { + "name": "merchantBannerUrl", + "baseName": "merchant_banner_url", + "type": "string" + }, + { + "name": "merchantColor", + "baseName": "merchant_color", + "type": "string" + }, + { + "name": "merchantMessage", + "baseName": "merchant_message", + "type": "string" + }, + { + "name": "merchantTermsAndConditionsUrl", + "baseName": "merchant_terms_and_conditions_url", + "type": "string" + }, + { + "name": "merchantFaviconUrl", + "baseName": "merchant_favicon_url", + "type": "string" + }, + { + "name": "intent", + "baseName": "intent", + "type": "PaymentLinkRequest.IntentEnum" + }, + { + "name": "returnUrl", + "baseName": "return_url", + "type": "string" + }, + { + "name": "cartItems", + "baseName": "cart_items", + "type": "Array" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "paymentSource", + "baseName": "payment_source", + "type": "PaymentLinkRequest.PaymentSourceEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentLinkRequest.attributeTypeMap; + } +} + +export namespace PaymentLinkRequest { + export enum LocaleEnum { + En = 'en', + EnGb = 'en-GB', + Es = 'es', + Pt = 'pt', + PtBr = 'pt-BR' + } + export enum IntentEnum { + Authorize = 'authorize', + Capture = 'capture' + } + export enum PaymentSourceEnum { + Ecommerce = 'ecommerce', + Moto = 'moto', + Recurring = 'recurring', + Installment = 'installment', + CardOnFile = 'card_on_file' + } +} diff --git a/model/transactionRequestConnectionOptions.ts b/model/paymentLinkRequestConnectionOptions.ts similarity index 68% rename from model/transactionRequestConnectionOptions.ts rename to model/paymentLinkRequestConnectionOptions.ts index 5198dae..6317b41 100644 --- a/model/transactionRequestConnectionOptions.ts +++ b/model/paymentLinkRequestConnectionOptions.ts @@ -12,19 +12,23 @@ import { RequestFile } from './models'; import { ConnectionOptionsAdyenCard } from './connectionOptionsAdyenCard'; +import { ConnectionOptionsAdyenSepa } from './connectionOptionsAdyenSepa'; import { ConnectionOptionsCybersourceAntiFraud } from './connectionOptionsCybersourceAntiFraud'; import { ConnectionOptionsCybersourceCard } from './connectionOptionsCybersourceCard'; import { ConnectionOptionsCybersourceIdeal } from './connectionOptionsCybersourceIdeal'; import { ConnectionOptionsCybersourceKcp } from './connectionOptionsCybersourceKcp'; +import { ConnectionOptionsFiservCard } from './connectionOptionsFiservCard'; import { ConnectionOptionsForterAntiFraud } from './connectionOptionsForterAntiFraud'; import { ConnectionOptionsGivingblockGivingblock } from './connectionOptionsGivingblockGivingblock'; +import { ConnectionOptionsLatitudeLatitude } from './connectionOptionsLatitudeLatitude'; import { ConnectionOptionsPaypalPaypal } from './connectionOptionsPaypalPaypal'; +import { ConnectionOptionsPowertranzCard } from './connectionOptionsPowertranzCard'; import { ConnectionOptionsStripeCard } from './connectionOptionsStripeCard'; /** * Allows for passing optional configuration per connection to take advantage of connection specific features. When provided, the data is only passed to the target connection type to prevent sharing configuration across connections. Please note that each of the keys this object are in kebab-case, for example `cybersource-anti-fraud` as they represent the ID of the connector. All the other keys will be snake case, for example `merchant_defined_data` or camel case to match an external API that the connector uses. */ -export class TransactionRequestConnectionOptions { +export class PaymentLinkRequestConnectionOptions { 'cybersourceCard'?: ConnectionOptionsCybersourceCard | null; 'cybersourceKcp'?: ConnectionOptionsCybersourceKcp | null; 'cybersourceIdeal'?: ConnectionOptionsCybersourceIdeal | null; @@ -32,9 +36,16 @@ export class TransactionRequestConnectionOptions { 'givingblockGivingblock'?: ConnectionOptionsGivingblockGivingblock | null; 'forterAntiFraud'?: ConnectionOptionsForterAntiFraud | null; 'adyenCard'?: ConnectionOptionsAdyenCard | null; + 'adyenSepa'?: ConnectionOptionsAdyenSepa | null; 'paypalPaypal'?: ConnectionOptionsPaypalPaypal | null; 'paypalPaypalpaylater'?: ConnectionOptionsPaypalPaypal | null; + 'powertranzCard'?: ConnectionOptionsPowertranzCard | null; 'stripeCard'?: ConnectionOptionsStripeCard | null; + 'fiservCard'?: ConnectionOptionsFiservCard | null; + 'latitudeLatitude'?: ConnectionOptionsLatitudeLatitude | null; + 'latitudeLatitudeds'?: ConnectionOptionsLatitudeLatitude | null; + 'gemGem'?: ConnectionOptionsLatitudeLatitude | null; + 'gemGemds'?: ConnectionOptionsLatitudeLatitude | null; static discriminator: string | undefined = undefined; @@ -74,6 +85,11 @@ export class TransactionRequestConnectionOptions { "baseName": "adyen-card", "type": "ConnectionOptionsAdyenCard" }, + { + "name": "adyenSepa", + "baseName": "adyen-sepa", + "type": "ConnectionOptionsAdyenSepa" + }, { "name": "paypalPaypal", "baseName": "paypal-paypal", @@ -84,14 +100,44 @@ export class TransactionRequestConnectionOptions { "baseName": "paypal-paypalpaylater", "type": "ConnectionOptionsPaypalPaypal" }, + { + "name": "powertranzCard", + "baseName": "powertranz-card", + "type": "ConnectionOptionsPowertranzCard" + }, { "name": "stripeCard", "baseName": "stripe-card", "type": "ConnectionOptionsStripeCard" + }, + { + "name": "fiservCard", + "baseName": "fiserv-card", + "type": "ConnectionOptionsFiservCard" + }, + { + "name": "latitudeLatitude", + "baseName": "latitude-latitude", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "latitudeLatitudeds", + "baseName": "latitude-latitudeds", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "gemGem", + "baseName": "gem-gem", + "type": "ConnectionOptionsLatitudeLatitude" + }, + { + "name": "gemGemds", + "baseName": "gem-gemds", + "type": "ConnectionOptionsLatitudeLatitude" } ]; static getAttributeTypeMap() { - return TransactionRequestConnectionOptions.attributeTypeMap; + return PaymentLinkRequestConnectionOptions.attributeTypeMap; } } diff --git a/model/paymentLinkShippingDetails.ts b/model/paymentLinkShippingDetails.ts new file mode 100644 index 0000000..3ff85cd --- /dev/null +++ b/model/paymentLinkShippingDetails.ts @@ -0,0 +1,103 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { ShippingDetailAddress } from './shippingDetailAddress'; + +/** +* Shipping details for the payment link. +*/ +export class PaymentLinkShippingDetails { + /** + * The type of this resource. Is always `shipping-details`. + */ + 'type'?: PaymentLinkShippingDetails.TypeEnum; + /** + * The unique ID for a buyer\'s shipping detail. + */ + 'id'?: string; + /** + * The unique ID for a buyer. + */ + 'buyerId'?: string; + /** + * The first name(s) or given name of the buyer. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the buyer. + */ + 'lastName'?: string | null; + /** + * The email address of the buyer. + */ + 'emailAddress'?: string | null; + /** + * The phone number of the buyer. This number is formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber'?: string | null; + 'address'?: ShippingDetailAddress | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PaymentLinkShippingDetails.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "buyerId", + "baseName": "buyer_id", + "type": "string" + }, + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "emailAddress", + "baseName": "email_address", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "ShippingDetailAddress" + } ]; + + static getAttributeTypeMap() { + return PaymentLinkShippingDetails.attributeTypeMap; + } +} + +export namespace PaymentLinkShippingDetails { + export enum TypeEnum { + ShippingDetails = 'shipping-details' + } +} diff --git a/model/transactionRequestStatementDescriptor.ts b/model/paymentLinkStatementDescriptor.ts similarity index 81% rename from model/transactionRequestStatementDescriptor.ts rename to model/paymentLinkStatementDescriptor.ts index 56d5a05..9c3af5b 100644 --- a/model/transactionRequestStatementDescriptor.ts +++ b/model/paymentLinkStatementDescriptor.ts @@ -12,7 +12,7 @@ import { RequestFile } from './models'; -export class TransactionRequestStatementDescriptor { +export class PaymentLinkStatementDescriptor { /** * Reflects your doing business as (DBA) name. Other validations: 1. Contains only Latin characters. 2. Contain at least one letter 3. Does not contain any of the special characters `< > \\ \' \" *` 4. Supports: 1. Lower case: `a-z` 2. Upper case: `A-Z` 3. Numbers: `0-9` 4. Spaces: ` ` 5. Special characters: `. , _ - ? + /`. */ @@ -22,15 +22,19 @@ export class TransactionRequestStatementDescriptor { */ 'description'?: string | null; /** - * City from which the charge originated. + * The merchant\'s city to be displayed in a statement descriptor. */ 'city'?: string | null; /** + * The 2-letter ISO country code of the merchant to be displayed in a statement descriptor. + */ + 'country'?: string | null; + /** * The value in the phone number field of a customer\'s statement which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). */ 'phoneNumber'?: string | null; /** - * The value in the URL/web address field of a customer\'s statement. + * The merchant\'s URL to be displayed in a statement descriptor. */ 'url'?: string | null; @@ -52,6 +56,11 @@ export class TransactionRequestStatementDescriptor { "baseName": "city", "type": "string" }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, { "name": "phoneNumber", "baseName": "phone_number", @@ -64,7 +73,7 @@ export class TransactionRequestStatementDescriptor { } ]; static getAttributeTypeMap() { - return TransactionRequestStatementDescriptor.attributeTypeMap; + return PaymentLinkStatementDescriptor.attributeTypeMap; } } diff --git a/model/paymentLinks.ts b/model/paymentLinks.ts new file mode 100644 index 0000000..843e3bf --- /dev/null +++ b/model/paymentLinks.ts @@ -0,0 +1,65 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { PaymentLink } from './paymentLink'; + +/** +* A list of payment links. +*/ +export class PaymentLinks { + /** + * A list of payment links. + */ + 'items'?: Array; + /** + * The limit applied to request. This represents the number of items that are at maximum returned by this request. + */ + 'limit'?: number = 20; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'nextCursor'?: string | null; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'previousCursor'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "limit", + "baseName": "limit", + "type": "number" + }, + { + "name": "nextCursor", + "baseName": "next_cursor", + "type": "string" + }, + { + "name": "previousCursor", + "baseName": "previous_cursor", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentLinks.attributeTypeMap; + } +} + diff --git a/model/paymentMethod.ts b/model/paymentMethod.ts index 81fdcfd..679f551 100644 --- a/model/paymentMethod.ts +++ b/model/paymentMethod.ts @@ -100,6 +100,22 @@ export class PaymentMethod { * The unique hash derived from the payment method identifier (e.g. card number). */ 'fingerprint'?: string | null; + /** + * The timestamp when this payment method was last used in a transaction. + */ + 'lastUsedAt'?: Date | null; + /** + * The number of times this payment method has been used in transactions. + */ + 'usageCount'?: number; + /** + * The timestamp when this payment method was last used in a transaction for client initiated transactions. + */ + 'citLastUsedAt'?: Date | null; + /** + * The number of times this payment method has been used in transactions for client initiated transactions. + */ + 'citUsageCount'?: number; static discriminator: string | undefined = undefined; @@ -213,6 +229,26 @@ export class PaymentMethod { "name": "fingerprint", "baseName": "fingerprint", "type": "string" + }, + { + "name": "lastUsedAt", + "baseName": "last_used_at", + "type": "Date" + }, + { + "name": "usageCount", + "baseName": "usage_count", + "type": "number" + }, + { + "name": "citLastUsedAt", + "baseName": "cit_last_used_at", + "type": "Date" + }, + { + "name": "citUsageCount", + "baseName": "cit_usage_count", + "type": "number" } ]; static getAttributeTypeMap() { @@ -277,9 +313,13 @@ export namespace PaymentMethod { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -292,12 +332,16 @@ export namespace PaymentMethod { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -313,6 +357,7 @@ export namespace PaymentMethod { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -328,8 +373,10 @@ export namespace PaymentMethod { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentMethodDetailsCard.ts b/model/paymentMethodDetailsCard.ts index ec81dff..94c0bdb 100644 --- a/model/paymentMethodDetailsCard.ts +++ b/model/paymentMethodDetailsCard.ts @@ -16,26 +16,35 @@ import { RequestFile } from './models'; * A credit or debit card payment method. */ export class PaymentMethodDetailsCard { + /** + * The first 6 digits of the full card number (the BIN). + */ + 'bin'?: string; /** * The type of card, one of `credit`, `debit` or `prepaid`. */ 'cardType'?: PaymentMethodDetailsCard.CardTypeEnum; /** - * The first 6 digits of the full card number (the BIN). + * The name of the card issuer. */ - 'bin'?: string; + 'cardIssuerName'?: string; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, { "name": "cardType", "baseName": "card_type", "type": "PaymentMethodDetailsCard.CardTypeEnum" }, { - "name": "bin", - "baseName": "bin", + "name": "cardIssuerName", + "baseName": "card_issuer_name", "type": "string" } ]; diff --git a/model/paymentMethodSnapshot.ts b/model/paymentMethodSnapshot.ts index 092e615..20c5584 100644 --- a/model/paymentMethodSnapshot.ts +++ b/model/paymentMethodSnapshot.ts @@ -189,9 +189,13 @@ export namespace PaymentMethodSnapshot { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -204,12 +208,16 @@ export namespace PaymentMethodSnapshot { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -225,6 +233,7 @@ export namespace PaymentMethodSnapshot { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -240,8 +249,10 @@ export namespace PaymentMethodSnapshot { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentMethodTokenized.ts b/model/paymentMethodTokenized.ts index c1b8feb..8e4f14f 100644 --- a/model/paymentMethodTokenized.ts +++ b/model/paymentMethodTokenized.ts @@ -72,6 +72,22 @@ export class PaymentMethodTokenized { * Whether this card has a pending replacement that hasn\'t been applied yet. When the Account Updater determines that new card details are available, existing details are not changed immediately, but this field is set to `true`. There are three scenarios in which the actual replacement occurs: 1. When this card has expired. 2. When only the expiration date changed. 3. When a transaction using this card is declined with any of the following codes: * `canceled_payment_method` * `expired_payment_method` * `unavailable_payment_method` * `unknown_payment_method` When the replacement is applied, this field is set to `false`. For non-card payment methods, the value of this field is always set to `false`. */ 'hasReplacement'?: boolean; + /** + * The timestamp when this payment method was last used in a transaction. + */ + 'lastUsedAt'?: Date | null; + /** + * The number of times this payment method has been used in transactions. + */ + 'usageCount'?: number; + /** + * The timestamp when this payment method was last used in a transaction for client initiated transactions. + */ + 'citLastUsedAt'?: Date | null; + /** + * The number of times this payment method has been used in transactions for client initiated transactions. + */ + 'citUsageCount'?: number; static discriminator: string | undefined = undefined; @@ -145,6 +161,26 @@ export class PaymentMethodTokenized { "name": "hasReplacement", "baseName": "has_replacement", "type": "boolean" + }, + { + "name": "lastUsedAt", + "baseName": "last_used_at", + "type": "Date" + }, + { + "name": "usageCount", + "baseName": "usage_count", + "type": "number" + }, + { + "name": "citLastUsedAt", + "baseName": "cit_last_used_at", + "type": "Date" + }, + { + "name": "citUsageCount", + "baseName": "cit_usage_count", + "type": "number" } ]; static getAttributeTypeMap() { @@ -178,9 +214,13 @@ export namespace PaymentMethodTokenized { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -193,12 +233,16 @@ export namespace PaymentMethodTokenized { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -214,6 +258,7 @@ export namespace PaymentMethodTokenized { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -229,8 +274,10 @@ export namespace PaymentMethodTokenized { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentOption.ts b/model/paymentOption.ts index 320c285..55fd76b 100644 --- a/model/paymentOption.ts +++ b/model/paymentOption.ts @@ -122,9 +122,13 @@ export namespace PaymentOption { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -137,12 +141,16 @@ export namespace PaymentOption { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -158,6 +166,7 @@ export namespace PaymentOption { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -173,8 +182,10 @@ export namespace PaymentOption { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentService.ts b/model/paymentService.ts index d8ddb36..eb97fa3 100644 --- a/model/paymentService.ts +++ b/model/paymentService.ts @@ -13,6 +13,7 @@ import { RequestFile } from './models'; import { GiftCardServiceFieldsInner } from './giftCardServiceFieldsInner'; import { PaymentServiceMerchantProfile } from './paymentServiceMerchantProfile'; +import { PaymentServiceReportingFieldsInner } from './paymentServiceReportingFieldsInner'; /** * An active, configured payment service. @@ -51,6 +52,10 @@ export class PaymentService { */ 'fields'?: Array; /** + * A list of fields, each containing a key-value pair for each field configured for reporting for this payment service. Fields marked as `secret` (see Payment Service Definition) are not returned. + */ + 'reportingFields'?: Array; + /** * The unique ID for a merchant account. */ 'merchantAccountId'?: string; @@ -76,11 +81,15 @@ export class PaymentService { */ 'paymentServiceDefinitionId'?: string; /** + * Defines if settlement reporting is enabled for the service. This feature can only be enabled if the payment service definition supports the `settlement_reporting` feature. + */ + 'settlementReportingEnabled'?: boolean; + /** * The current status of this service. This will start off as pending, move to created, and might eventually move to an error status if and when the credentials are no longer valid. */ 'status'?: PaymentService.StatusEnum; /** - * Defines if 3-D Secure is enabled for the service (can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature). This does not affect pass through 3-D Secure data. + * Defines if 3-D Secure is enabled for the service. This feature can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature. This does not affect pass through 3-D Secure data. */ 'threeDSecureEnabled'?: boolean = false; /** @@ -135,6 +144,11 @@ export class PaymentService { "baseName": "fields", "type": "Array" }, + { + "name": "reportingFields", + "baseName": "reporting_fields", + "type": "Array" + }, { "name": "merchantAccountId", "baseName": "merchant_account_id", @@ -170,6 +184,11 @@ export class PaymentService { "baseName": "payment_service_definition_id", "type": "string" }, + { + "name": "settlementReportingEnabled", + "baseName": "settlement_reporting_enabled", + "type": "boolean" + }, { "name": "status", "baseName": "status", @@ -222,9 +241,13 @@ export namespace PaymentService { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -237,12 +260,16 @@ export namespace PaymentService { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -258,6 +285,7 @@ export namespace PaymentService { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -273,8 +301,10 @@ export namespace PaymentService { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentServiceDefinition.ts b/model/paymentServiceDefinition.ts index 99e89ca..a9d8a02 100644 --- a/model/paymentServiceDefinition.ts +++ b/model/paymentServiceDefinition.ts @@ -13,6 +13,7 @@ import { RequestFile } from './models'; import { AntiFraudServiceDefinitionFieldsInner } from './antiFraudServiceDefinitionFieldsInner'; import { PaymentServiceDefinitionConfiguration } from './paymentServiceDefinitionConfiguration'; +import { PaymentServiceDefinitionReportingFieldsInner } from './paymentServiceDefinitionReportingFieldsInner'; import { PaymentServiceDefinitionSupportedFeatures } from './paymentServiceDefinitionSupportedFeatures'; /** @@ -40,6 +41,10 @@ export class PaymentServiceDefinition { */ 'fields'?: Array; /** + * A list of fields that need to be submitted when enabling the payment service settlement reporting. + */ + 'reportingFields'?: Array; + /** * A list of three-letter ISO currency codes that this service supports. */ 'supportedCurrencies'?: Array; @@ -86,6 +91,11 @@ export class PaymentServiceDefinition { "baseName": "fields", "type": "Array" }, + { + "name": "reportingFields", + "baseName": "reporting_fields", + "type": "Array" + }, { "name": "supportedCurrencies", "baseName": "supported_currencies", @@ -148,9 +158,13 @@ export namespace PaymentServiceDefinition { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -163,12 +177,16 @@ export namespace PaymentServiceDefinition { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -184,6 +202,7 @@ export namespace PaymentServiceDefinition { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -199,8 +218,10 @@ export namespace PaymentServiceDefinition { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentServiceDefinitionReportingFieldsInner.ts b/model/paymentServiceDefinitionReportingFieldsInner.ts new file mode 100644 index 0000000..a4ef290 --- /dev/null +++ b/model/paymentServiceDefinitionReportingFieldsInner.ts @@ -0,0 +1,80 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A single field that needs to be submitted for a payment service when the settlement reporting is being enabled for it. +*/ +export class PaymentServiceDefinitionReportingFieldsInner { + /** + * The key of a field that needs to be submitted. + */ + 'key'?: string; + /** + * The name to display for a field in the dashboard. + */ + 'displayName'?: string; + /** + * Defines if this field is required when the reporting is being enabled. + */ + 'required'?: boolean; + /** + * Defines the type of input that needs to be rendered for this field. + */ + 'format'?: PaymentServiceDefinitionReportingFieldsInner.FormatEnum; + /** + * Defines if this field is secret. When `true` the field is not returned when querying the payment service. + */ + 'secret'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "displayName", + "baseName": "display_name", + "type": "string" + }, + { + "name": "required", + "baseName": "required", + "type": "boolean" + }, + { + "name": "format", + "baseName": "format", + "type": "PaymentServiceDefinitionReportingFieldsInner.FormatEnum" + }, + { + "name": "secret", + "baseName": "secret", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentServiceDefinitionReportingFieldsInner.attributeTypeMap; + } +} + +export namespace PaymentServiceDefinitionReportingFieldsInner { + export enum FormatEnum { + Text = 'text', + Multiline = 'multiline', + Number = 'number' + } +} diff --git a/model/paymentServiceReportingFieldsInner.ts b/model/paymentServiceReportingFieldsInner.ts new file mode 100644 index 0000000..dff2e01 --- /dev/null +++ b/model/paymentServiceReportingFieldsInner.ts @@ -0,0 +1,43 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +export class PaymentServiceReportingFieldsInner { + /** + * The key of the field. + */ + 'key'?: string; + /** + * The value of the field. + */ + 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentServiceReportingFieldsInner.attributeTypeMap; + } +} + diff --git a/model/paymentServiceRequest.ts b/model/paymentServiceRequest.ts index 1fc9924..0285e0b 100644 --- a/model/paymentServiceRequest.ts +++ b/model/paymentServiceRequest.ts @@ -13,6 +13,7 @@ import { RequestFile } from './models'; import { PaymentServiceRequestFieldsInner } from './paymentServiceRequestFieldsInner'; import { PaymentServiceRequestMerchantProfile } from './paymentServiceRequestMerchantProfile'; +import { PaymentServiceRequestReportingFieldsInner } from './paymentServiceRequestReportingFieldsInner'; /** * Request body for activating a payment service. @@ -31,6 +32,10 @@ export class PaymentServiceRequest { */ 'fields': Array; /** + * The `reporting_fields` field should contain a list of key-value pairs. Each key-value pair represents a reporting field defined by the payment service. For example, when enabling settlement reporting for `nuvei-card`, the `ssh_username` field is required and must be included in `reporting_fields`. + */ + 'reportingFields'?: Array; + /** * A list of countries that this payment service needs to support in ISO two-letter code format. */ 'acceptedCountries': Array; @@ -39,7 +44,7 @@ export class PaymentServiceRequest { */ 'acceptedCurrencies': Array; /** - * Defines if 3-D Secure is enabled for the service (can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature). This does not affect pass through 3-D Secure data. + * Defines if 3-D Secure is enabled for the service. This feature can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature. This does not affect pass through 3-D Secure data. */ 'threeDSecureEnabled'?: boolean = false; 'merchantProfile'?: PaymentServiceRequestMerchantProfile | null; @@ -59,6 +64,10 @@ export class PaymentServiceRequest { * Defines if network tokens are enabled for the service. This feature can only be enabled if the payment service is set as `open_loop` and the PSP is set up to accept network tokens. If this value is not provided or is set to `null`, it will be set to the value of `network_tokens_default` in the payment service definition. If `network_tokens_toggle` is `false` in the payment service definition, `network_tokens_enabled` should either not be provided or set to `null`, or it will fail with a validation error. */ 'networkTokensEnabled'?: boolean | null; + /** + * Defines if settlement reporting is enabled for the service. This feature can only be enabled if the payment service definition supports the `settlement_reporting` feature. + */ + 'settlementReportingEnabled'?: boolean = false; static discriminator: string | undefined = undefined; @@ -78,6 +87,11 @@ export class PaymentServiceRequest { "baseName": "fields", "type": "Array" }, + { + "name": "reportingFields", + "baseName": "reporting_fields", + "type": "Array" + }, { "name": "acceptedCountries", "baseName": "accepted_countries", @@ -117,6 +131,11 @@ export class PaymentServiceRequest { "name": "networkTokensEnabled", "baseName": "network_tokens_enabled", "type": "boolean" + }, + { + "name": "settlementReportingEnabled", + "baseName": "settlement_reporting_enabled", + "type": "boolean" } ]; static getAttributeTypeMap() { diff --git a/model/paymentServiceRequestFieldsInner.ts b/model/paymentServiceRequestFieldsInner.ts index 1be9608..8ca4e04 100644 --- a/model/paymentServiceRequestFieldsInner.ts +++ b/model/paymentServiceRequestFieldsInner.ts @@ -21,7 +21,7 @@ export class PaymentServiceRequestFieldsInner { */ 'key': string; /** - * The value of a field to set; you can unset optional fields by setting this to an empty string `\"\"`. + * The value of a field to set. */ 'value': string; diff --git a/model/paymentServiceRequestReportingFieldsInner.ts b/model/paymentServiceRequestReportingFieldsInner.ts new file mode 100644 index 0000000..e2e75c7 --- /dev/null +++ b/model/paymentServiceRequestReportingFieldsInner.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A key-value pair that represents a reporting field defined in the definition for this payment service. +*/ +export class PaymentServiceRequestReportingFieldsInner { + /** + * The key of the field to set a value for. + */ + 'key': string; + /** + * The value of a field to set. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentServiceRequestReportingFieldsInner.attributeTypeMap; + } +} + diff --git a/model/paymentServiceSnapshot.ts b/model/paymentServiceSnapshot.ts index 27bdfa9..b48b270 100644 --- a/model/paymentServiceSnapshot.ts +++ b/model/paymentServiceSnapshot.ts @@ -97,9 +97,13 @@ export namespace PaymentServiceSnapshot { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -112,12 +116,16 @@ export namespace PaymentServiceSnapshot { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -133,6 +141,7 @@ export namespace PaymentServiceSnapshot { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -148,8 +157,10 @@ export namespace PaymentServiceSnapshot { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/paymentServiceToken.ts b/model/paymentServiceToken.ts index cbfc8fd..012b928 100644 --- a/model/paymentServiceToken.ts +++ b/model/paymentServiceToken.ts @@ -41,9 +41,9 @@ export class PaymentServiceToken { */ 'approvalUrl'?: string | null; /** - * The token value. + * The token value. Will be present if succeeded. */ - 'token'?: string; + 'token'?: string | null; /** * The date and time when this token was first created in our system. */ diff --git a/model/paymentServiceUpdate.ts b/model/paymentServiceUpdate.ts index bb473b9..3821c6d 100644 --- a/model/paymentServiceUpdate.ts +++ b/model/paymentServiceUpdate.ts @@ -11,8 +11,9 @@ */ import { RequestFile } from './models'; -import { PaymentServiceRequestFieldsInner } from './paymentServiceRequestFieldsInner'; +import { PaymentServiceUpdateFieldsInner } from './paymentServiceUpdateFieldsInner'; import { PaymentServiceUpdateMerchantProfile } from './paymentServiceUpdateMerchantProfile'; +import { PaymentServiceUpdateReportingFieldsInner } from './paymentServiceUpdateReportingFieldsInner'; /** * Request body for updating an active payment service. @@ -25,7 +26,11 @@ export class PaymentServiceUpdate { /** * A list of fields, each containing a key-value pair for each field defined by the definition for this payment service e.g. for stripe-card `secret_key` is required and so must be sent within this field. */ - 'fields'?: Array; + 'fields'?: Array; + /** + * The `reporting_fields` field should contain a list of key-value pairs. Each key-value pair represents a reporting field defined by the payment service. For example, when enabling settlement reporting for `nuvei-card`, the `ssh_username` field is required and must be included in `reporting_fields`. + */ + 'reportingFields'?: Array; /** * A list of countries that this payment service needs to support in ISO two-letter code format. */ @@ -35,7 +40,7 @@ export class PaymentServiceUpdate { */ 'acceptedCurrencies'?: Array; /** - * Defines if 3-D Secure is enabled for the service (can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature). This does not affect pass through 3-D Secure data. + * Defines if 3-D Secure is enabled for the service. This feature can only be enabled if the payment service definition supports the `three_d_secure_hosted` feature. This does not affect pass through 3-D Secure data. */ 'threeDSecureEnabled'?: boolean = false; 'merchantProfile'?: PaymentServiceUpdateMerchantProfile | null; @@ -55,6 +60,10 @@ export class PaymentServiceUpdate { * Defines if network tokens are enabled for the service. This feature can only be enabled if the payment service is set as `open_loop` and the PSP is set up to accept network tokens. If this value is set to `null`, it will be set to the value of `network_tokens_default` in the payment service definition. If `network_tokens_toggle` is `false` in the payment service definition, `network_tokens_enabled` should either not be provided or set to `null`, or it will fail with a validation error. */ 'networkTokensEnabled'?: boolean | null; + /** + * Defines if settlement reporting is enabled for the service. This feature can only be enabled if the payment service definition supports the `settlement_reporting` feature. + */ + 'settlementReportingEnabled'?: boolean = false; static discriminator: string | undefined = undefined; @@ -67,7 +76,12 @@ export class PaymentServiceUpdate { { "name": "fields", "baseName": "fields", - "type": "Array" + "type": "Array" + }, + { + "name": "reportingFields", + "baseName": "reporting_fields", + "type": "Array" }, { "name": "acceptedCountries", @@ -108,6 +122,11 @@ export class PaymentServiceUpdate { "name": "networkTokensEnabled", "baseName": "network_tokens_enabled", "type": "boolean" + }, + { + "name": "settlementReportingEnabled", + "baseName": "settlement_reporting_enabled", + "type": "boolean" } ]; static getAttributeTypeMap() { diff --git a/model/paymentServiceUpdateFieldsInner.ts b/model/paymentServiceUpdateFieldsInner.ts new file mode 100644 index 0000000..840a327 --- /dev/null +++ b/model/paymentServiceUpdateFieldsInner.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A key-value pair that represents a field defined in the definition for this payment service. +*/ +export class PaymentServiceUpdateFieldsInner { + /** + * The key of the field to set a value for. + */ + 'key': string; + /** + * The value of a field to set; you can unset optional fields by setting this to an empty string `\"\"`. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentServiceUpdateFieldsInner.attributeTypeMap; + } +} + diff --git a/model/paymentServiceUpdateReportingFieldsInner.ts b/model/paymentServiceUpdateReportingFieldsInner.ts new file mode 100644 index 0000000..7f7d776 --- /dev/null +++ b/model/paymentServiceUpdateReportingFieldsInner.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A key-value pair that represents a reporting field defined in the definition for this payment service. +*/ +export class PaymentServiceUpdateReportingFieldsInner { + /** + * The key of the field to set a value for. + */ + 'key': string; + /** + * The value of a field to set; you can unset optional fields by setting this to an empty string `\"\"`. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentServiceUpdateReportingFieldsInner.attributeTypeMap; + } +} + diff --git a/model/payout.ts b/model/payout.ts new file mode 100644 index 0000000..4f47a85 --- /dev/null +++ b/model/payout.ts @@ -0,0 +1,175 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { BuyerSnapshot } from './buyerSnapshot'; +import { PaymentMethodSnapshot } from './paymentMethodSnapshot'; +import { PaymentServiceSnapshot } from './paymentServiceSnapshot'; +import { PayoutMerchant } from './payoutMerchant'; + +export class Payout { + /** + * The type of this resource. Is always `payout`. + */ + 'type'?: Payout.TypeEnum; + /** + * The ID of a payout. + */ + 'id'?: string; + /** + * The optional ID of the merchant account this payout should be assigned to. + */ + 'merchantAccountId'?: string | null; + /** + * The monetary amount for this payout, in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`. + */ + 'amount'?: number; + /** + * A supported ISO-4217 currency code. + */ + 'currency'?: string; + /** + * The date and time when this payout was created. + */ + 'createdAt'?: Date; + /** + * The date and time when this payout was created. + */ + 'updatedAt'?: Date; + /** + * The payment service used for this payout. + */ + 'paymentService'?: PaymentServiceSnapshot; + /** + * The ID of the payout in the underlying payment service. + */ + 'paymentServicePayoutId'?: string | null; + /** + * The type of payout to process. + */ + 'category'?: Payout.CategoryEnum; + /** + * The status of the payout. + */ + 'status'?: Payout.StatusEnum; + /** + * An external identifier that can be used to match the payout against your own records. This value needs to be unique for all buyers. + */ + 'externalIdentifier'?: string | null; + 'merchant'?: PayoutMerchant | null; + /** + * The buyer used for this transaction. + */ + 'buyer'?: BuyerSnapshot; + /** + * The payment method used for this payout. + */ + 'paymentMethod'?: PaymentMethodSnapshot; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "Payout.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantAccountId", + "baseName": "merchant_account_id", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "createdAt", + "baseName": "created_at", + "type": "Date" + }, + { + "name": "updatedAt", + "baseName": "updated_at", + "type": "Date" + }, + { + "name": "paymentService", + "baseName": "payment_service", + "type": "PaymentServiceSnapshot" + }, + { + "name": "paymentServicePayoutId", + "baseName": "payment_service_payout_id", + "type": "string" + }, + { + "name": "category", + "baseName": "category", + "type": "Payout.CategoryEnum" + }, + { + "name": "status", + "baseName": "status", + "type": "Payout.StatusEnum" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "merchant", + "baseName": "merchant", + "type": "PayoutMerchant" + }, + { + "name": "buyer", + "baseName": "buyer", + "type": "BuyerSnapshot" + }, + { + "name": "paymentMethod", + "baseName": "payment_method", + "type": "PaymentMethodSnapshot" + } ]; + + static getAttributeTypeMap() { + return Payout.attributeTypeMap; + } +} + +export namespace Payout { + export enum TypeEnum { + Payout = 'payout' + } + export enum CategoryEnum { + OnlineGambling = 'online_gambling' + } + export enum StatusEnum { + Pending = 'pending', + Failed = 'failed', + Declined = 'declined', + Succeeded = 'succeeded' + } +} diff --git a/model/payoutConnectionOptionsRequest.ts b/model/payoutConnectionOptionsRequest.ts new file mode 100644 index 0000000..f411dc7 --- /dev/null +++ b/model/payoutConnectionOptionsRequest.ts @@ -0,0 +1,32 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { PayoutConnectionOptionsRequestCheckoutCard } from './payoutConnectionOptionsRequestCheckoutCard'; + +export class PayoutConnectionOptionsRequest { + 'checkoutCard'?: PayoutConnectionOptionsRequestCheckoutCard | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutCard", + "baseName": "checkout-card", + "type": "PayoutConnectionOptionsRequestCheckoutCard" + } ]; + + static getAttributeTypeMap() { + return PayoutConnectionOptionsRequest.attributeTypeMap; + } +} + diff --git a/model/payoutConnectionOptionsRequestCheckoutCard.ts b/model/payoutConnectionOptionsRequestCheckoutCard.ts new file mode 100644 index 0000000..5ae9506 --- /dev/null +++ b/model/payoutConnectionOptionsRequestCheckoutCard.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Custom options for checkout-card payment service. +*/ +export class PayoutConnectionOptionsRequestCheckoutCard { + /** + * The ID of the currency account that will fund the payout. + */ + 'sourceId'?: string; + /** + * The processing channel to be used for the payment. + */ + 'processingChannelId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sourceId", + "baseName": "source_id", + "type": "string" + }, + { + "name": "processingChannelId", + "baseName": "processing_channel_id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutConnectionOptionsRequestCheckoutCard.attributeTypeMap; + } +} + diff --git a/model/payoutInlineCardRequest.ts b/model/payoutInlineCardRequest.ts new file mode 100644 index 0000000..78ebf57 --- /dev/null +++ b/model/payoutInlineCardRequest.ts @@ -0,0 +1,105 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Inline card details. +*/ +export class PayoutInlineCardRequest { + /** + * The method to use. + */ + 'method': PayoutInlineCardRequest.MethodEnum; + /** + * The 13-19 digit number for this card as it can be found on the front of the card. + */ + 'number': string; + /** + * The expiration date of the card, formatted `MM/YY`. + */ + 'expirationDate': string; + /** + * An external identifier that can be used to match the card against your own records. + */ + 'externalIdentifier'?: string | null; + /** + * The card scheme. + */ + 'scheme'?: PayoutInlineCardRequest.SchemeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "method", + "baseName": "method", + "type": "PayoutInlineCardRequest.MethodEnum" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "expirationDate", + "baseName": "expiration_date", + "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "scheme", + "baseName": "scheme", + "type": "PayoutInlineCardRequest.SchemeEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutInlineCardRequest.attributeTypeMap; + } +} + +export namespace PayoutInlineCardRequest { + export enum MethodEnum { + Card = 'card' + } + export enum SchemeEnum { + Accel = 'accel', + Amex = 'amex', + Bancontact = 'bancontact', + CarteBancaire = 'carte-bancaire', + Cirrus = 'cirrus', + Culiance = 'culiance', + Dankort = 'dankort', + DinersClub = 'diners-club', + Discover = 'discover', + EftposAustralia = 'eftpos-australia', + Elo = 'elo', + Hipercard = 'hipercard', + Jcb = 'jcb', + Maestro = 'maestro', + Mastercard = 'mastercard', + Mir = 'mir', + Nyce = 'nyce', + Other = 'other', + Pulse = 'pulse', + Rupay = 'rupay', + Star = 'star', + Uatp = 'uatp', + Unionpay = 'unionpay', + Visa = 'visa', + Null = 'null' + } +} diff --git a/model/payoutMerchant.ts b/model/payoutMerchant.ts new file mode 100644 index 0000000..bb090d9 --- /dev/null +++ b/model/payoutMerchant.ts @@ -0,0 +1,103 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { MerchantAddress } from './merchantAddress'; + +/** +* The merchant details associated to this payout. +*/ +export class PayoutMerchant { + /** + * The type of this resource. Is always `merchant`. + */ + 'type'?: PayoutMerchant.TypeEnum; + /** + * The name of the merchant. + */ + 'name'?: string; + /** + * Unique value which identifies a merchant for processing transactions, also known as a MID. + */ + 'identificationNumber'?: string; + /** + * The phone number for the merchant which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber'?: string; + /** + * Merchant website URL. + */ + 'url'?: string; + /** + * Value to explain charges or payments on bank statements. + */ + 'statementDescriptor'?: string; + /** + * Merchant classification for the type of goods or services it provides. + */ + 'merchantCategoryCode'?: string; + 'address'?: MerchantAddress | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PayoutMerchant.TypeEnum" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "identificationNumber", + "baseName": "identification_number", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "string" + }, + { + "name": "merchantCategoryCode", + "baseName": "merchant_category_code", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "MerchantAddress" + } ]; + + static getAttributeTypeMap() { + return PayoutMerchant.attributeTypeMap; + } +} + +export namespace PayoutMerchant { + export enum TypeEnum { + Merchant = 'merchant' + } +} diff --git a/model/payoutPaymentMethodRequest.ts b/model/payoutPaymentMethodRequest.ts new file mode 100644 index 0000000..f5de3d8 --- /dev/null +++ b/model/payoutPaymentMethodRequest.ts @@ -0,0 +1,115 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Payment method details for a payout. +*/ +export class PayoutPaymentMethodRequest { + /** + * The method to use. + */ + 'method': PayoutPaymentMethodRequest.MethodEnum; + /** + * The ID of the stored payment method. + */ + 'id'?: string | null; + /** + * The 13-19 digit number for this card as it can be found on the front of the card. + */ + 'number'?: string | null; + /** + * The expiration date of the card, formatted `MM/YY`. + */ + 'expirationDate'?: string | null; + /** + * An external identifier that can be used to match the card against your own records. + */ + 'externalIdentifier'?: string | null; + /** + * The card scheme. + */ + 'scheme'?: PayoutPaymentMethodRequest.SchemeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "method", + "baseName": "method", + "type": "PayoutPaymentMethodRequest.MethodEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "expirationDate", + "baseName": "expiration_date", + "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "scheme", + "baseName": "scheme", + "type": "PayoutPaymentMethodRequest.SchemeEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutPaymentMethodRequest.attributeTypeMap; + } +} + +export namespace PayoutPaymentMethodRequest { + export enum MethodEnum { + Card = 'card', + Id = 'id' + } + export enum SchemeEnum { + Accel = 'accel', + Amex = 'amex', + Bancontact = 'bancontact', + CarteBancaire = 'carte-bancaire', + Cirrus = 'cirrus', + Culiance = 'culiance', + Dankort = 'dankort', + DinersClub = 'diners-club', + Discover = 'discover', + EftposAustralia = 'eftpos-australia', + Elo = 'elo', + Hipercard = 'hipercard', + Jcb = 'jcb', + Maestro = 'maestro', + Mastercard = 'mastercard', + Mir = 'mir', + Nyce = 'nyce', + Other = 'other', + Pulse = 'pulse', + Rupay = 'rupay', + Star = 'star', + Uatp = 'uatp', + Unionpay = 'unionpay', + Visa = 'visa', + Null = 'null' + } +} diff --git a/model/payoutRequest.ts b/model/payoutRequest.ts new file mode 100644 index 0000000..2eeae49 --- /dev/null +++ b/model/payoutRequest.ts @@ -0,0 +1,124 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { PayoutPaymentMethodRequest } from './payoutPaymentMethodRequest'; +import { PayoutRequestBuyer } from './payoutRequestBuyer'; +import { PayoutRequestConnectionOptions } from './payoutRequestConnectionOptions'; +import { PayoutRequestMerchant } from './payoutRequestMerchant'; + +/** +* Request body for creating new payout. +*/ +export class PayoutRequest { + /** + * The amount to payout. + */ + 'amount': number; + /** + * The ISO-4217 currency code for the payout. + */ + 'currency': string; + /** + * The ID of the payment service to use for the payout. + */ + 'paymentServiceId': string; + /** + * The type of payout to process. + */ + 'category'?: PayoutRequest.CategoryEnum = PayoutRequest.CategoryEnum.OnlineGambling; + /** + * A value that can be used to match the payout against your own records. + */ + 'externalIdentifier'?: string | null; + /** + * The ID of the buyer to send the payout. + */ + 'buyerId'?: string | null; + /** + * The `external_identifier` of the buyer to send this payout to. + */ + 'buyerExternalIdentifier'?: string | null; + 'buyer'?: PayoutRequestBuyer | null; + 'merchant'?: PayoutRequestMerchant | null; + 'paymentMethod': PayoutPaymentMethodRequest; + 'connectionOptions'?: PayoutRequestConnectionOptions | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "paymentServiceId", + "baseName": "payment_service_id", + "type": "string" + }, + { + "name": "category", + "baseName": "category", + "type": "PayoutRequest.CategoryEnum" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "buyerId", + "baseName": "buyer_id", + "type": "string" + }, + { + "name": "buyerExternalIdentifier", + "baseName": "buyer_external_identifier", + "type": "string" + }, + { + "name": "buyer", + "baseName": "buyer", + "type": "PayoutRequestBuyer" + }, + { + "name": "merchant", + "baseName": "merchant", + "type": "PayoutRequestMerchant" + }, + { + "name": "paymentMethod", + "baseName": "payment_method", + "type": "PayoutPaymentMethodRequest" + }, + { + "name": "connectionOptions", + "baseName": "connection_options", + "type": "PayoutRequestConnectionOptions" + } ]; + + static getAttributeTypeMap() { + return PayoutRequest.attributeTypeMap; + } +} + +export namespace PayoutRequest { + export enum CategoryEnum { + OnlineGambling = 'online_gambling' + } +} diff --git a/model/payoutRequestBuyer.ts b/model/payoutRequestBuyer.ts new file mode 100644 index 0000000..3fce0fb --- /dev/null +++ b/model/payoutRequestBuyer.ts @@ -0,0 +1,69 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionBuyerRequestBillingDetails } from './transactionBuyerRequestBillingDetails'; +import { TransactionBuyerRequestShippingDetails } from './transactionBuyerRequestShippingDetails'; + +/** +* Inline buyer details for the payout. +*/ +export class PayoutRequestBuyer { + /** + * An external identifier that can be used to match the buyer against your own records. This value needs to be unique for all buyers. + */ + 'externalIdentifier'?: string | null; + /** + * A unique name for this buyer which is used in the Gr4vy admin panel to give a buyer a human readable name. + */ + 'displayName'?: string | null; + 'billingDetails'?: TransactionBuyerRequestBillingDetails | null; + 'shippingDetails'?: TransactionBuyerRequestShippingDetails | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "displayName", + "baseName": "display_name", + "type": "string" + }, + { + "name": "billingDetails", + "baseName": "billing_details", + "type": "TransactionBuyerRequestBillingDetails" + }, + { + "name": "shippingDetails", + "baseName": "shipping_details", + "type": "TransactionBuyerRequestShippingDetails" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutRequestBuyer.attributeTypeMap; + } +} + diff --git a/model/payoutRequestConnectionOptions.ts b/model/payoutRequestConnectionOptions.ts new file mode 100644 index 0000000..8bdf3cd --- /dev/null +++ b/model/payoutRequestConnectionOptions.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { PayoutConnectionOptionsRequestCheckoutCard } from './payoutConnectionOptionsRequestCheckoutCard'; + +/** +* Optional fields for processing payouts on specific payment services. +*/ +export class PayoutRequestConnectionOptions { + 'checkoutCard'?: PayoutConnectionOptionsRequestCheckoutCard | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checkoutCard", + "baseName": "checkout-card", + "type": "PayoutConnectionOptionsRequestCheckoutCard" + } ]; + + static getAttributeTypeMap() { + return PayoutRequestConnectionOptions.attributeTypeMap; + } +} + diff --git a/model/payoutRequestMerchant.ts b/model/payoutRequestMerchant.ts new file mode 100644 index 0000000..04918f7 --- /dev/null +++ b/model/payoutRequestMerchant.ts @@ -0,0 +1,89 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { MerchantAddress } from './merchantAddress'; + +/** +* Merchant information for the source of the payout. +*/ +export class PayoutRequestMerchant { + /** + * The name of the merchant. + */ + 'name': string; + /** + * Unique value which identifies a merchant for processing transactions, also known as a MID. + */ + 'identificationNumber': string; + /** + * The phone number for the merchant which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + */ + 'phoneNumber': string; + /** + * Merchant website URL. + */ + 'url': string; + /** + * Value to explain charges or payments on bank statements. + */ + 'statementDescriptor': string; + /** + * Merchant classification for the type of goods or services it provides. + */ + 'merchantCategoryCode': string; + 'address'?: MerchantAddress | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "identificationNumber", + "baseName": "identification_number", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phone_number", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "statementDescriptor", + "baseName": "statement_descriptor", + "type": "string" + }, + { + "name": "merchantCategoryCode", + "baseName": "merchant_category_code", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "MerchantAddress" + } ]; + + static getAttributeTypeMap() { + return PayoutRequestMerchant.attributeTypeMap; + } +} + diff --git a/model/payoutStoredCardRequest.ts b/model/payoutStoredCardRequest.ts new file mode 100644 index 0000000..3eac898 --- /dev/null +++ b/model/payoutStoredCardRequest.ts @@ -0,0 +1,51 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* Stored card reference. +*/ +export class PayoutStoredCardRequest { + /** + * The method to use. + */ + 'method': PayoutStoredCardRequest.MethodEnum; + /** + * The ID of the stored payment method. + */ + 'id': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "method", + "baseName": "method", + "type": "PayoutStoredCardRequest.MethodEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutStoredCardRequest.attributeTypeMap; + } +} + +export namespace PayoutStoredCardRequest { + export enum MethodEnum { + Id = 'id' + } +} diff --git a/model/payouts.ts b/model/payouts.ts new file mode 100644 index 0000000..c762a2c --- /dev/null +++ b/model/payouts.ts @@ -0,0 +1,65 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { Payout } from './payout'; + +/** +* A list of payouts. +*/ +export class Payouts { + /** + * A list of payouts. + */ + 'items'?: Array; + /** + * The limit applied to request. This represents the number of items that are at maximum returned by this request. + */ + 'limit'?: number = 20; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'nextCursor'?: string | null; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'previousCursor'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "limit", + "baseName": "limit", + "type": "number" + }, + { + "name": "nextCursor", + "baseName": "next_cursor", + "type": "string" + }, + { + "name": "previousCursor", + "baseName": "previous_cursor", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Payouts.attributeTypeMap; + } +} + diff --git a/model/recipient.ts b/model/recipient.ts new file mode 100644 index 0000000..cf9ad81 --- /dev/null +++ b/model/recipient.ts @@ -0,0 +1,71 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { RecipientAddress } from './recipientAddress'; + +/** +* The recipient of an account funding transaction. +*/ +export class Recipient { + /** + * The first name(s) or given name for the recipient. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the recipient. + */ + 'lastName'?: string | null; + 'address'?: RecipientAddress | null; + /** + * The destination account number to receive an account funding transaction. + */ + 'accountNumber'?: string | null; + /** + * The recipient\'s date of birth. + */ + 'dateOfBirth'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "RecipientAddress" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Recipient.attributeTypeMap; + } +} + diff --git a/model/recipientAddress.ts b/model/recipientAddress.ts new file mode 100644 index 0000000..e568795 --- /dev/null +++ b/model/recipientAddress.ts @@ -0,0 +1,109 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The billing address for the recipient. +*/ +export class RecipientAddress { + /** + * The city for the address. + */ + 'city': string | null; + /** + * The country for the address in ISO 3166 format. + */ + 'country': string | null; + /** + * The postal code or zip code for the address. + */ + 'postalCode': string | null; + /** + * The state, county, or province for the address. + */ + 'state': string | null; + /** + * The code of state, county, or province for the address in ISO 3166-2 format. + */ + 'stateCode'?: string | null; + /** + * The house number or name for the address. Not all payment services use this field but some do. + */ + 'houseNumberOrName'?: string | null; + /** + * The first line of the address. + */ + 'line1': string | null; + /** + * The second line of the address. + */ + 'line2'?: string | null; + /** + * The optional name of the company or organisation to add to the address. + */ + 'organization'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postal_code", + "type": "string" + }, + { + "name": "state", + "baseName": "state", + "type": "string" + }, + { + "name": "stateCode", + "baseName": "state_code", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "house_number_or_name", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "organization", + "baseName": "organization", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecipientAddress.attributeTypeMap; + } +} + diff --git a/model/recipientSnapshot.ts b/model/recipientSnapshot.ts new file mode 100644 index 0000000..17725b6 --- /dev/null +++ b/model/recipientSnapshot.ts @@ -0,0 +1,71 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { RecipientAddress } from './recipientAddress'; + +/** +* Snapshot of a recipient of an account funding transaction, as used when embedded inside other resources. +*/ +export class RecipientSnapshot { + /** + * The first name(s) or given name for the recipient. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the recipient. + */ + 'lastName'?: string | null; + 'address'?: RecipientAddress | null; + /** + * The destination account number to receive an account funding transaction. + */ + 'accountNumber'?: string | null; + /** + * The recipient\'s date of birth. + */ + 'dateOfBirth'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "RecipientAddress" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecipientSnapshot.attributeTypeMap; + } +} + diff --git a/model/redirectRequest.ts b/model/redirectRequest.ts index fc3f107..81140ed 100644 --- a/model/redirectRequest.ts +++ b/model/redirectRequest.ts @@ -91,10 +91,86 @@ export class RedirectRequest { export namespace RedirectRequest { export enum MethodEnum { - Paypal = 'paypal', + Afterpay = 'afterpay', + Alipay = 'alipay', + Alipayhk = 'alipayhk', + Bacs = 'bacs', + Bancontact = 'bancontact', Banked = 'banked', + Becs = 'becs', Bitpay = 'bitpay', + Boleto = 'boleto', + Boost = 'boost', + Cashapp = 'cashapp', + Chaseorbital = 'chaseorbital', + CheckoutSession = 'checkout-session', + Clearpay = 'clearpay', + Dana = 'dana', + Dcb = 'dcb', + Dlocal = 'dlocal', + Ebanx = 'ebanx', + Efecty = 'efecty', + Eps = 'eps', + Everydaypay = 'everydaypay', + Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', + Giropay = 'giropay', + Givingblock = 'givingblock', Gocardless = 'gocardless', - Stripedd = 'stripedd' + Gopay = 'gopay', + Grabpay = 'grabpay', + Ideal = 'ideal', + Kakaopay = 'kakaopay', + Kcp = 'kcp', + Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', + Laybuy = 'laybuy', + Linepay = 'linepay', + Linkaja = 'linkaja', + Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', + Multibanco = 'multibanco', + Multipago = 'multipago', + Netbanking = 'netbanking', + NetworkToken = 'network-token', + Oney10x = 'oney_10x', + Oney12x = 'oney_12x', + Oney3x = 'oney_3x', + Oney4x = 'oney_4x', + Oney6x = 'oney_6x', + Ovo = 'ovo', + Oxxo = 'oxxo', + Payid = 'payid', + Paymaya = 'paymaya', + Paypal = 'paypal', + Paypalpaylater = 'paypalpaylater', + Payto = 'payto', + Pix = 'pix', + Pse = 'pse', + Rabbitlinepay = 'rabbitlinepay', + Razorpay = 'razorpay', + Scalapay = 'scalapay', + Sepa = 'sepa', + Shopeepay = 'shopeepay', + Singteldash = 'singteldash', + Smartpay = 'smartpay', + Sofort = 'sofort', + Spei = 'spei', + Stripedd = 'stripedd', + Thaiqr = 'thaiqr', + Touchngo = 'touchngo', + Truemoney = 'truemoney', + Trustly = 'trustly', + Trustlyeurope = 'trustlyeurope', + Upi = 'upi', + Venmo = 'venmo', + Vipps = 'vipps', + Waave = 'waave', + Webpay = 'webpay', + Wechat = 'wechat', + Zippay = 'zippay' } } diff --git a/model/refund.ts b/model/refund.ts index a1cce21..c34f1ba 100644 --- a/model/refund.ts +++ b/model/refund.ts @@ -33,7 +33,7 @@ export class Refund { */ 'paymentServiceRefundId'?: string; /** - * The status of the refund. It may change over time as asynchronous processing events occur. - `processing` - The refund is being processed. - `succeeded` - The refund was successful. - `declined` - The refund was declined by the underlying PSP. - `failed` - The refund could not proceed due to a technical issue. - `voided` - The refund was voided and will not proceed. + * The status of the refund. It may change over time as asynchronous processing events occur. - `processing` - The refund is being processed. - `succeeded` - The refund was successful. - `declined` - The refund was declined by the underlying PSP. - `failed` - The refund could not proceed due to a technical issue. */ 'status'?: Refund.StatusEnum; /** @@ -64,6 +64,22 @@ export class Refund { * The optional ID of the instrument that was refunded. This may be `null` if the instrument was not stored. */ 'targetId'?: string | null; + /** + * An external identifier that can be used to match the refund against your own records. + */ + 'externalIdentifier'?: string | null; + /** + * The base62 encoded refund ID. This represents a shorter version of this refund\'s `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service\'s refund against our system. + */ + 'reconciliationId'?: string; + /** + * The external identifier of the related transaction. + */ + 'transactionExternalIdentifier'?: string | null; + /** + * The base62 encoded transaction ID. This represents a shorter version of the related transaction\'s `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service\'s transaction against our system. + */ + 'transactionReconciliationId'?: string; static discriminator: string | undefined = undefined; @@ -127,6 +143,26 @@ export class Refund { "name": "targetId", "baseName": "target_id", "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" + }, + { + "name": "reconciliationId", + "baseName": "reconciliation_id", + "type": "string" + }, + { + "name": "transactionExternalIdentifier", + "baseName": "transaction_external_identifier", + "type": "string" + }, + { + "name": "transactionReconciliationId", + "baseName": "transaction_reconciliation_id", + "type": "string" } ]; static getAttributeTypeMap() { @@ -142,8 +178,7 @@ export namespace Refund { Processing = 'processing', Succeeded = 'succeeded', Declined = 'declined', - Failed = 'failed', - Voided = 'voided' + Failed = 'failed' } export enum TargetTypeEnum { PaymentMethod = 'payment-method', diff --git a/model/report.ts b/model/report.ts index f75c067..391f09e 100644 --- a/model/report.ts +++ b/model/report.ts @@ -46,9 +46,6 @@ export class Report { * The time zone in which the next execution will be scheduled. This value is used to calculate this report\'s `next_execution_at` value and is only relevant if this is a recurring report. This time zone is also used to calculate the timestamp range for reports that use date-time placeholders. Date-time placeholders are dynamic timestamps that change with every report execution. */ 'scheduleTimezone'?: string; - /** - * The specifications of this report. - */ 'spec'?: ReportSpec; /** * Details of the latest execution of this report. diff --git a/model/reportCreate.ts b/model/reportCreate.ts index b7a5ae9..64d6807 100644 --- a/model/reportCreate.ts +++ b/model/reportCreate.ts @@ -37,9 +37,6 @@ export class ReportCreate { * The time zone in which the report\'s executions will be scheduled. This value is used to compute the report\'s `next_execution_at` value and is only relevant when this is a recurring report. This time zone is also used to calculate the timestamp range for reports that use date-time placeholders. Date-time placeholders are dynamic timestamps that change with every report execution. This value must be set to the time zone\'s name as presented in the IANA time zone database. For example, to schedule reports in the time zone of New York, set this value to `America/New_York`. */ 'scheduleTimezone'?: string = 'Etc/UTC'; - /** - * The specifications of the report. - */ 'spec': ReportSpec; static discriminator: string | undefined = undefined; diff --git a/model/reportSpec.ts b/model/reportSpec.ts index 5458d25..ab5909c 100644 --- a/model/reportSpec.ts +++ b/model/reportSpec.ts @@ -11,7 +11,6 @@ */ import { RequestFile } from './models'; -import { ReportSpecParams } from './reportSpecParams'; /** * The specification of a report. @@ -21,7 +20,10 @@ export class ReportSpec { * The model (dataset) that the data used for the report is retrieved from. */ 'model': ReportSpec.ModelEnum; - 'params': ReportSpecParams; + /** + * Parameters used to configure the report. Acceptable values for this property depend on the value specified for `model`. + */ + 'params': object; static discriminator: string | undefined = undefined; @@ -34,7 +36,7 @@ export class ReportSpec { { "name": "params", "baseName": "params", - "type": "ReportSpecParams" + "type": "object" } ]; static getAttributeTypeMap() { @@ -44,6 +46,8 @@ export class ReportSpec { export namespace ReportSpec { export enum ModelEnum { - Transactions = 'transactions' + Transactions = 'transactions', + DetailedSettlement = 'detailed_settlement', + TransactionRetries = 'transaction_retries' } } diff --git a/model/reportSpecParamsFilters.ts b/model/reportSpecParamsFilters.ts deleted file mode 100644 index 953d74e..0000000 --- a/model/reportSpecParamsFilters.ts +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Gr4vy API - * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. - * - * The version of the OpenAPI document: 1.1.0-beta - * Contact: code@gr4vy.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RequestFile } from './models'; - -/** -* The filters for the report. -*/ -export class ReportSpecParamsFilters { - /** - * A list of status\' to filter by. - */ - 'status'?: Array; - /** - * The created date and time to filter by. - */ - 'createdAt'?: string; - /** - * The updated date and time to filter by. - */ - 'updatedAt'?: string; - /** - * The authorized date and time to filter by. - */ - 'authorizedAt'?: string; - /** - * The captured date and time to filter by. - */ - 'capturedAt'?: string; - /** - * The voided date and time to filter by. - */ - 'voidedAt'?: string; - /** - * A list of currencies to filter by. - */ - 'currency'?: Array; - /** - * A list of methods to filter by. - */ - 'method'?: Array; - /** - * A list of schemes to filter by. - */ - 'scheme'?: Array; - /** - * A list of metadata to filter by. - */ - 'metadata'?: Array; - /** - * A boolean indicating transactions with subsequent payments to filter by. - */ - 'isSubsequentPayment'?: boolean; - /** - * A boolean indicating transactions initiated by the merchant to filter by. - */ - 'merchantInitiated'?: boolean; - /** - * A list of transaction sources to filter by. - */ - 'paymentSource'?: Array; - /** - * A list of 3DS status to filter by. - */ - 'threeDSecureStatus'?: Array; - /** - * A list of electric commerce indicators to filter by. - */ - 'threeDSecureEci'?: Array; - /** - * A list of 3DS responses to filter by. - */ - 'threeDSecureAuthResp'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "status", - "baseName": "status", - "type": "Array" - }, - { - "name": "createdAt", - "baseName": "created_at", - "type": "string" - }, - { - "name": "updatedAt", - "baseName": "updated_at", - "type": "string" - }, - { - "name": "authorizedAt", - "baseName": "authorized_at", - "type": "string" - }, - { - "name": "capturedAt", - "baseName": "captured_at", - "type": "string" - }, - { - "name": "voidedAt", - "baseName": "voided_at", - "type": "string" - }, - { - "name": "currency", - "baseName": "currency", - "type": "Array" - }, - { - "name": "method", - "baseName": "method", - "type": "Array" - }, - { - "name": "scheme", - "baseName": "scheme", - "type": "Array" - }, - { - "name": "metadata", - "baseName": "metadata", - "type": "Array" - }, - { - "name": "isSubsequentPayment", - "baseName": "is_subsequent_payment", - "type": "boolean" - }, - { - "name": "merchantInitiated", - "baseName": "merchant_initiated", - "type": "boolean" - }, - { - "name": "paymentSource", - "baseName": "payment_source", - "type": "Array" - }, - { - "name": "threeDSecureStatus", - "baseName": "three_d_secure_status", - "type": "Array" - }, - { - "name": "threeDSecureEci", - "baseName": "three_d_secure_eci", - "type": "Array" - }, - { - "name": "threeDSecureAuthResp", - "baseName": "three_d_secure_auth_resp", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return ReportSpecParamsFilters.attributeTypeMap; - } -} - diff --git a/model/settlement.ts b/model/settlement.ts new file mode 100644 index 0000000..858f457 --- /dev/null +++ b/model/settlement.ts @@ -0,0 +1,186 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A settlement record. +*/ +export class Settlement { + /** + * The type of this resource. Is always `settlement`. + */ + 'type'?: Settlement.TypeEnum; + /** + * The unique identifier for this settlement. + */ + 'id'?: string; + /** + * The ID of the merchant account to which this settlement belongs to. + */ + 'merchantAccountId'?: string; + /** + * The date and time when this settlement was created in our system. + */ + 'createdAt'?: Date; + /** + * The date and time when this settlement was last updated. + */ + 'updatedAt'?: Date; + /** + * The date and time when this settlement occurred. + */ + 'postedAt'?: Date; + /** + * The date and time when information about this settlement was ingested into our system. + */ + 'ingestedAt'?: Date; + /** + * The currency code of this settlement in ISO 4217 three-letter code format. + */ + 'currency'?: string; + /** + * The net amount of this settlement. + */ + 'amount'?: number; + /** + * The exchange rate used to convert amounts from the processing currency to the settlement currency. + */ + 'exchangeRate'?: number | null; + /** + * The total commission of this settlement, expressed in `currency`. + */ + 'commission'?: number; + /** + * The interchange fee of this settlement, expressed in `currency`. + */ + 'interchange'?: number | null; + /** + * The markup of this settlement by the acquirer, expressed in `currency`. + */ + 'markup'?: number | null; + /** + * The scheme fee of this settlement, expressed in `currency`. + */ + 'schemeFee'?: number | null; + /** + * The ID of the payment service report containing this settlement. + */ + 'paymentServiceReportId'?: string; + /** + * The list of payment service report file IDs that make up the payment service report containing this settlement. + */ + 'paymentServiceReportFileIds'?: Array; + /** + * The ID of the transaction associated with this settlement. + */ + 'transactionId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "Settlement.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantAccountId", + "baseName": "merchant_account_id", + "type": "string" + }, + { + "name": "createdAt", + "baseName": "created_at", + "type": "Date" + }, + { + "name": "updatedAt", + "baseName": "updated_at", + "type": "Date" + }, + { + "name": "postedAt", + "baseName": "posted_at", + "type": "Date" + }, + { + "name": "ingestedAt", + "baseName": "ingested_at", + "type": "Date" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "exchangeRate", + "baseName": "exchange_rate", + "type": "number" + }, + { + "name": "commission", + "baseName": "commission", + "type": "number" + }, + { + "name": "interchange", + "baseName": "interchange", + "type": "number" + }, + { + "name": "markup", + "baseName": "markup", + "type": "number" + }, + { + "name": "schemeFee", + "baseName": "scheme_fee", + "type": "number" + }, + { + "name": "paymentServiceReportId", + "baseName": "payment_service_report_id", + "type": "string" + }, + { + "name": "paymentServiceReportFileIds", + "baseName": "payment_service_report_file_ids", + "type": "Array" + }, + { + "name": "transactionId", + "baseName": "transaction_id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Settlement.attributeTypeMap; + } +} + +export namespace Settlement { + export enum TypeEnum { + Settlement = 'settlement' + } +} diff --git a/model/settlements.ts b/model/settlements.ts new file mode 100644 index 0000000..9cfadfa --- /dev/null +++ b/model/settlements.ts @@ -0,0 +1,38 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { Settlement } from './settlement'; + +/** +* A list of settlements. +*/ +export class Settlements { + /** + * A list of settlements. + */ + 'items'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "items", + "baseName": "items", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return Settlements.attributeTypeMap; + } +} + diff --git a/model/shippingDetailRequest.ts b/model/shippingDetailRequest.ts index 52afa62..1b6a3d3 100644 --- a/model/shippingDetailRequest.ts +++ b/model/shippingDetailRequest.ts @@ -11,7 +11,7 @@ */ import { RequestFile } from './models'; -import { ShippingDetailAddress } from './shippingDetailAddress'; +import { ShippingDetailRequestAddress } from './shippingDetailRequestAddress'; /** * Shipping detail associated to a buyer. @@ -33,7 +33,7 @@ export class ShippingDetailRequest { * The phone number for the buyer which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). */ 'phoneNumber'?: string | null; - 'address'?: ShippingDetailAddress | null; + 'address'?: ShippingDetailRequestAddress | null; static discriminator: string | undefined = undefined; @@ -61,7 +61,7 @@ export class ShippingDetailRequest { { "name": "address", "baseName": "address", - "type": "ShippingDetailAddress" + "type": "ShippingDetailRequestAddress" } ]; static getAttributeTypeMap() { diff --git a/model/shippingDetailRequestAddress.ts b/model/shippingDetailRequestAddress.ts new file mode 100644 index 0000000..1dc50b6 --- /dev/null +++ b/model/shippingDetailRequestAddress.ts @@ -0,0 +1,109 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The physical shipping address associated to this buyer. +*/ +export class ShippingDetailRequestAddress { + /** + * The city for the address. + */ + 'city'?: string | null; + /** + * The country for the address in ISO 3166 format. + */ + 'country'?: string | null; + /** + * The postal code or zip code for the address. + */ + 'postalCode'?: string | null; + /** + * The state, county, or province for the address. + */ + 'state'?: string | null; + /** + * The code of state, county, or province for the address in ISO 3166-2 format. + */ + 'stateCode'?: string | null; + /** + * The house number or name for the address. Not all payment services use this field but some do. + */ + 'houseNumberOrName'?: string | null; + /** + * The first line of the address. + */ + 'line1'?: string | null; + /** + * The second line of the address. + */ + 'line2'?: string | null; + /** + * The optional name of the company or organisation to add to the address. + */ + 'organization'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postal_code", + "type": "string" + }, + { + "name": "state", + "baseName": "state", + "type": "string" + }, + { + "name": "stateCode", + "baseName": "state_code", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "house_number_or_name", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "organization", + "baseName": "organization", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShippingDetailRequestAddress.attributeTypeMap; + } +} + diff --git a/model/shippingDetailUpdateRequest.ts b/model/shippingDetailUpdateRequest.ts index 3d0d8f7..a4b0ee8 100644 --- a/model/shippingDetailUpdateRequest.ts +++ b/model/shippingDetailUpdateRequest.ts @@ -11,7 +11,7 @@ */ import { RequestFile } from './models'; -import { ShippingDetailAddress } from './shippingDetailAddress'; +import { ShippingDetailRequestAddress } from './shippingDetailRequestAddress'; export class ShippingDetailUpdateRequest { /** @@ -30,7 +30,7 @@ export class ShippingDetailUpdateRequest { * The phone number for the buyer which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). */ 'phoneNumber'?: string | null; - 'address'?: ShippingDetailAddress | null; + 'address'?: ShippingDetailRequestAddress | null; static discriminator: string | undefined = undefined; @@ -58,7 +58,7 @@ export class ShippingDetailUpdateRequest { { "name": "address", "baseName": "address", - "type": "ShippingDetailAddress" + "type": "ShippingDetailRequestAddress" } ]; static getAttributeTypeMap() { diff --git a/model/statementDescriptor.ts b/model/statementDescriptor.ts index 80f42c8..0ef95de 100644 --- a/model/statementDescriptor.ts +++ b/model/statementDescriptor.ts @@ -25,15 +25,19 @@ export class StatementDescriptor { */ 'description'?: string | null; /** - * City from which the charge originated. + * The merchant\'s city to be displayed in a statement descriptor. */ 'city'?: string | null; /** + * The 2-letter ISO country code of the merchant to be displayed in a statement descriptor. + */ + 'country'?: string | null; + /** * The value in the phone number field of a customer\'s statement which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). */ 'phoneNumber'?: string | null; /** - * The value in the URL/web address field of a customer\'s statement. + * The merchant\'s URL to be displayed in a statement descriptor. */ 'url'?: string | null; @@ -55,6 +59,11 @@ export class StatementDescriptor { "baseName": "city", "type": "string" }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, { "name": "phoneNumber", "baseName": "phone_number", diff --git a/model/threeDSecureData.ts b/model/threeDSecureData.ts index b10f5c9..400fe2c 100644 --- a/model/threeDSecureData.ts +++ b/model/threeDSecureData.ts @@ -18,7 +18,7 @@ export class ThreeDSecureData { */ 'cavv': string; /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci': string; /** diff --git a/model/threeDSecureDataV1.ts b/model/threeDSecureDataV1.ts index b5f085c..9c3e8cf 100644 --- a/model/threeDSecureDataV1.ts +++ b/model/threeDSecureDataV1.ts @@ -18,7 +18,7 @@ export class ThreeDSecureDataV1 { */ 'cavv': string; /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci': string; /** diff --git a/model/threeDSecureDataV1V2.ts b/model/threeDSecureDataV1V2.ts index c2b3564..851d578 100644 --- a/model/threeDSecureDataV1V2.ts +++ b/model/threeDSecureDataV1V2.ts @@ -18,7 +18,7 @@ export class ThreeDSecureDataV1V2 { */ 'cavv': string; /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci': string; /** diff --git a/model/threeDSecureDataV2.ts b/model/threeDSecureDataV2.ts index 2c62a0f..5d9c62c 100644 --- a/model/threeDSecureDataV2.ts +++ b/model/threeDSecureDataV2.ts @@ -18,7 +18,7 @@ export class ThreeDSecureDataV2 { */ 'cavv': string; /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci': string; /** diff --git a/model/threeDSecureResultRequestEventContext.ts b/model/threeDSecureResultRequestEventContext.ts index 0693968..e5ac9b5 100644 --- a/model/threeDSecureResultRequestEventContext.ts +++ b/model/threeDSecureResultRequestEventContext.ts @@ -53,9 +53,9 @@ export class ThreeDSecureResultRequestEventContext { */ 'directoryTransactionId'?: string; /** - * The version of 3DS used. + * Flag to indicate whether the buyer cancelled 3DS authentication. */ - 'version'?: string; + 'isChallengeCancelled'?: boolean; static discriminator: string | undefined = undefined; @@ -106,9 +106,9 @@ export class ThreeDSecureResultRequestEventContext { "type": "string" }, { - "name": "version", - "baseName": "version", - "type": "string" + "name": "isChallengeCancelled", + "baseName": "is_challenge_cancelled", + "type": "boolean" } ]; static getAttributeTypeMap() { diff --git a/model/threeDSecureSuccessEventContext.ts b/model/threeDSecureSuccessEventContext.ts index 91c8530..3b3283b 100644 --- a/model/threeDSecureSuccessEventContext.ts +++ b/model/threeDSecureSuccessEventContext.ts @@ -17,7 +17,7 @@ import { RequestFile } from './models'; */ export class ThreeDSecureSuccessEventContext { /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci'?: string; /** diff --git a/model/threeDSecureV2.ts b/model/threeDSecureV2.ts index 8a75a47..09671c3 100644 --- a/model/threeDSecureV2.ts +++ b/model/threeDSecureV2.ts @@ -18,7 +18,7 @@ export class ThreeDSecureV2 { */ 'cavv'?: string | null; /** - * The electronic commerce indicator for the 3DS transaction. + * The ecommerce indicator for the 3DS transaction. */ 'eci'?: string | null; /** diff --git a/model/transaction.ts b/model/transaction.ts index 3298411..44c72ce 100644 --- a/model/transaction.ts +++ b/model/transaction.ts @@ -10,553 +10,637 @@ * Do not edit the class manually. */ -import { RequestFile } from './models'; -import { CartItem } from './cartItem'; -import { GiftCardRedemption } from './giftCardRedemption'; -import { GiftCardServiceSnapshot } from './giftCardServiceSnapshot'; -import { StatementDescriptor } from './statementDescriptor'; -import { ThreeDSecureSummary } from './threeDSecureSummary'; -import { TransactionBuyer } from './transactionBuyer'; -import { TransactionPaymentMethod } from './transactionPaymentMethod'; -import { TransactionPaymentService } from './transactionPaymentService'; -import { TransactionShippingDetails } from './transactionShippingDetails'; +import { RequestFile } from './models' +import { CartItem } from './cartItem' +import { CheckoutSessionAirline } from './checkoutSessionAirline' +import { GiftCardRedemption } from './giftCardRedemption' +import { GiftCardServiceSnapshot } from './giftCardServiceSnapshot' +import { StatementDescriptor } from './statementDescriptor' +import { ThreeDSecureSummary } from './threeDSecureSummary' +import { TransactionBuyer } from './transactionBuyer' +import { TransactionPaymentMethod } from './transactionPaymentMethod' +import { TransactionPaymentService } from './transactionPaymentService' +import { TransactionRecipient } from './transactionRecipient' +import { TransactionShippingDetails } from './transactionShippingDetails' /** -* A transaction record. -*/ + * A transaction record. + */ export class Transaction { - /** - * The type of this resource. Is always `transaction`. - */ - 'type'?: Transaction.TypeEnum; - /** - * The unique identifier for this transaction. - */ - 'id'?: string; - /** - * The total amount for this transaction across all funding sources including gift cards. - */ - 'amount'?: number; - /** - * This is the response description received from the processor. - */ - 'authResponseCode'?: string | null; - /** - * The amount for this transaction that has been authorized for the `payment_method`. This can be less than the `amount` if gift cards were used. - */ - 'authorizedAmount'?: number; - /** - * The date and time when this transaction was authorized in the payment service. Don\'t use this field to determine whether the transaction was authorized. A `null` value doesn\'t necessarily imply that the transaction wasn\'t authorized, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was authorized or that the transaction was authorized before the introduction of this field. - */ - 'authorizedAt'?: Date | null; - /** - * The date and time when this transaction will be marked as failed if it does not successfully gets captured, authorized or otherwise approved before. - */ - 'approvalExpiresAt'?: Date | null; - /** - * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. - */ - 'avsResponseCode'?: Transaction.AvsResponseCodeEnum; - 'buyer'?: TransactionBuyer | null; - /** - * The captured amount for this transaction. This can be the full value of the `authorized_amount` or less. - */ - 'capturedAmount'?: number; - /** - * The date and time when this transaction was captured in the payment service. Don\'t use this field to determine whether the transaction was captured. A `null` value doesn\'t necessarily imply that the transaction wasn\'t captured, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was captured or that the transaction was captured before the introduction of this field. - */ - 'capturedAt'?: Date | null; - /** - * An array of cart items that represents the line items of a transaction. - */ - 'cartItems'?: Array; - /** - * The identifier for the checkout session this transaction is associated with. - */ - 'checkoutSessionId'?: string | null; - /** - * The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction. - */ - 'country'?: string | null; - /** - * The date and time when this transaction was created in our system. - */ - 'createdAt'?: Date; - /** - * The currency code for this transaction. - */ - 'currency'?: string; - /** - * The response code received from the payment service for the Card Verification Value (CVV). This code is mapped to a standardized Gr4vy CVV response code. - `no_match` - the CVV does not match the expected value - `match` - the CVV matches the expected value - `unavailable ` - CVV check unavailable for card our country - `not_provided ` - CVV not provided The value of this field can be `null` if the payment service did not provide a response. - */ - 'cvvResponseCode'?: Transaction.CvvResponseCodeEnum; - /** - * This is an error code set by Gr4vy. - */ - 'errorCode'?: string | null; - /** - * An external identifier that can be used to match the transaction against your own records. - */ - 'externalIdentifier'?: string | null; - /** - * The gift card service used for this transaction. - */ - 'giftCardService'?: GiftCardServiceSnapshot; - /** - * The gift cards redeemed for this transaction. - */ - 'giftCardRedemptions'?: Array; - /** - * The name of the instrument used to process the transaction. - */ - 'instrumentType'?: Transaction.InstrumentTypeEnum; - /** - * The original `intent` used when the transaction was [created](#operation/authorize-new-transaction). - */ - 'intent'?: Transaction.IntentEnum; - /** - * The outcome of the original intent of a transaction. This allows you to understand if the intent of the transaction (e.g. `capture` or `authorize`) has been achieved when dealing with multiple payment instruments. If all payment instruments (`payment_method` and/or `gift_cards`) have succeeded to get an authorization or direct sale **at any point in time** then this will return a `succeeded` value. If any of the payment instruments fails or declines then this will return a `failed` value. If any payment instruments is still in a `pending` or `processing` state then the result will be `pending`. Please note that if any of the payment instruments are voided or refunded after the result reaches a `succeeded` state then the result will remain unchanged. - */ - 'intentOutcome'?: Transaction.IntentOutcomeEnum; - /** - * Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used. The flag can only be `false` (or not set) when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `card_on_file`. The flag can only be set to `true` when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`. * `payment_source` is set to `card_on_file`. - */ - 'isSubsequentPayment'?: boolean = false; - /** - * The ID of the merchant account to which this transaction belongs to. - */ - 'merchantAccountId'?: string; - /** - * Indicates whether the transaction was initiated by the merchant (true) or customer (false). - */ - 'merchantInitiated'?: boolean = false; - /** - * Additional information about the transaction stored as key-value pairs. - */ - 'metadata'?: { [key: string]: string; }; - 'method'?: Transaction.MethodEnum; - /** - * Defines if this transaction has been split across multiple payment instruments such as a `payment_method` and one or more `gift_cards`, or multiple `gift_cards` without a `payment_method`. - */ - 'multiTender'?: boolean; - 'paymentMethod'?: TransactionPaymentMethod | null; - 'paymentService'?: TransactionPaymentService | null; - /** - * The payment service\'s unique ID for the transaction. - */ - 'paymentServiceTransactionId'?: string; - /** - * The source of the transaction. Defaults to `ecommerce`. - */ - 'paymentSource'?: Transaction.PaymentSourceEnum; - /** - * Whether a manual review is pending. - */ - 'pendingReview'?: boolean; - /** - * This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services. - */ - 'rawResponseCode'?: string | null; - /** - * This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. - */ - 'rawResponseDescription'?: string | null; - /** - * The base62 encoded transaction ID. This represents a shorter version of this transaction\'s `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service\'s transaction against our system. This ID is sent instead of the transaction ID because not all services support 36 digit identifiers. - */ - 'reconciliationId'?: string; - /** - * The refunded amount for this transaction. This can be the full value of the `captured_amount` or less. - */ - 'refundedAmount'?: number; - /** - * An identifier for the transaction used by the scheme itself, when available. e.g. the Visa Transaction Identifier, or Mastercard Trace ID. - */ - 'schemeTransactionId'?: string | null; - 'shippingDetails'?: TransactionShippingDetails | null; - 'statementDescriptor'?: StatementDescriptor | null; - /** - * The status of the transaction for the `payment_method`. The status may change over time as asynchronous processing events occur. Please note that the possible statuses returned will depend on the operation performed. For example, a captured transaction will never move to a `authorization_voided` status. - */ - 'status'?: Transaction.StatusEnum; - 'threeDSecure'?: ThreeDSecureSummary; - /** - * Defines when the transaction was last updated. - */ - 'updatedAt'?: Date; - /** - * The date and time when this transaction was voided in the payment service. Don\'t use this field to determine whether the transaction was voided. A `null` value doesn\'t necessarily imply that the transaction wasn\'t voided, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was voided or that the transaction was voided before the introduction of this field. - */ - 'voidedAt'?: Date | null; + /** + * The type of this resource. Is always `transaction`. + */ + 'type'?: Transaction.TypeEnum + /** + * The unique identifier for this transaction. + */ + 'id'?: string + /** + * The total amount for this transaction across all funding sources including gift cards. + */ + 'amount'?: number + /** + * A list of additional identifiers that we may keep track of to manage this transaction. This may include the authorization ID, capture ID, and processor ID, as well as an undefined list of additional identifiers. + */ + 'additionalIdentifiers'?: Record + /** + * This is the response description received from the processor. + */ + 'authResponseCode'?: string | null + /** + * The amount for this transaction that has been authorized for the `payment_method`. This can be less than the `amount` if gift cards were used. + */ + 'authorizedAmount'?: number + /** + * The date and time when this transaction was authorized in the payment service. Don\'t use this field to determine whether the transaction was authorized. A `null` value doesn\'t necessarily imply that the transaction wasn\'t authorized, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was authorized or that the transaction was authorized before the introduction of this field. + */ + 'authorizedAt'?: Date | null + /** + * The date and time when this transaction will be marked as failed if it does not successfully gets captured, authorized or otherwise approved before. + */ + 'approvalExpiresAt'?: Date | null + /** + * The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. - `no_match` - neither address or postal code match - `match` - both address and postal code match - `partial_match_address` - address matches but postal code does not - `partial_match_postcode` - postal code matches but address does not - `unavailable ` - AVS is unavailable for card/country The value of this field can be `null` if the payment service did not provide a response. + */ + 'avsResponseCode'?: Transaction.AvsResponseCodeEnum + 'buyer'?: TransactionBuyer | null + /** + * The captured amount for this transaction. This can be the full value of the `authorized_amount` or less. + */ + 'capturedAmount'?: number + /** + * The date and time when this transaction was captured in the payment service. Don\'t use this field to determine whether the transaction was captured. A `null` value doesn\'t necessarily imply that the transaction wasn\'t captured, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was captured or that the transaction was captured before the introduction of this field. + */ + 'capturedAt'?: Date | null + /** + * An array of cart items that represents the line items of a transaction. + */ + 'cartItems'?: Array + /** + * The identifier for the checkout session this transaction is associated with. + */ + 'checkoutSessionId'?: string | null + /** + * The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction. + */ + 'country'?: string | null + /** + * The date and time when this transaction was created in our system. + */ + 'createdAt'?: Date + /** + * The currency code for this transaction. + */ + 'currency'?: string + /** + * The response code received from the payment service for the Card Verification Value (CVV). This code is mapped to a standardized Gr4vy CVV response code. - `no_match` - the CVV does not match the expected value - `match` - the CVV matches the expected value - `unavailable ` - CVV check unavailable for card our country - `not_provided ` - CVV not provided The value of this field can be `null` if the payment service did not provide a response. + */ + 'cvvResponseCode'?: Transaction.CvvResponseCodeEnum + /** + * This is an error code set by Gr4vy. + */ + 'errorCode'?: string | null + /** + * An external identifier that can be used to match the transaction against your own records. + */ + 'externalIdentifier'?: string | null + /** + * The gift card service used for this transaction. + */ + 'giftCardService'?: GiftCardServiceSnapshot + /** + * The gift cards redeemed for this transaction. + */ + 'giftCardRedemptions'?: Array + /** + * The name of the instrument used to process the transaction. + */ + 'instrumentType'?: Transaction.InstrumentTypeEnum + /** + * The original `intent` used when the transaction was [created](#operation/authorize-new-transaction). + */ + 'intent'?: Transaction.IntentEnum + /** + * The outcome of the original intent of a transaction. This allows you to understand if the intent of the transaction (e.g. `capture` or `authorize`) has been achieved when dealing with multiple payment instruments. If all payment instruments (`payment_method` and/or `gift_cards`) have succeeded to get an authorization or direct sale **at any point in time** then this will return a `succeeded` value. If any of the payment instruments fails or declines then this will return a `failed` value. If any payment instruments is still in a `pending` or `processing` state then the result will be `pending`. Please note that if any of the payment instruments are voided or refunded after the result reaches a `succeeded` state then the result will remain unchanged. + */ + 'intentOutcome'?: Transaction.IntentOutcomeEnum + /** + * Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used. The flag can only be `false` (or not set) when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `card_on_file`. The flag can only be set to `true` when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`. * `payment_source` is set to `card_on_file`. + */ + 'isSubsequentPayment'?: boolean = false + /** + * The ID of the merchant account to which this transaction belongs to. + */ + 'merchantAccountId'?: string + /** + * Indicates whether the transaction was initiated by the merchant (true) or customer (false). + */ + 'merchantInitiated'?: boolean = false + /** + * Additional information about the transaction stored as key-value pairs. + */ + 'metadata'?: { [key: string]: string } + 'method'?: Transaction.MethodEnum + /** + * Defines if this transaction has been split across multiple payment instruments such as a `payment_method` and one or more `gift_cards`, or multiple `gift_cards` without a `payment_method`. + */ + 'multiTender'?: boolean + 'paymentMethod'?: TransactionPaymentMethod | null + 'paymentService'?: TransactionPaymentService | null + /** + * The payment service\'s unique ID for the transaction. + */ + 'paymentServiceTransactionId'?: string + /** + * The source of the transaction. Defaults to `ecommerce`. + */ + 'paymentSource'?: Transaction.PaymentSourceEnum + /** + * Whether a manual review is pending. + */ + 'pendingReview'?: boolean + /** + * This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services. + */ + 'rawResponseCode'?: string | null + /** + * This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. + */ + 'rawResponseDescription'?: string | null + /** + * The base62 encoded transaction ID. This represents a shorter version of this transaction\'s `id` which is sent to payment services, anti-fraud services, and other connectors. You can use this ID to reconcile a payment service\'s transaction against our system. This ID is sent instead of the transaction ID because not all services support 36 digit identifiers. + */ + 'reconciliationId'?: string + /** + * The refunded amount for this transaction. This can be the full value of the `captured_amount` or less. + */ + 'refundedAmount'?: number + /** + * An identifier for the transaction used by the scheme itself, when available. e.g. the Visa Transaction Identifier, or Mastercard Trace ID. + */ + 'schemeTransactionId'?: string | null + 'shippingDetails'?: TransactionShippingDetails | null + 'statementDescriptor'?: StatementDescriptor | null + /** + * The status of the transaction for the `payment_method`. The status may change over time as asynchronous processing events occur. Please note that the possible statuses returned will depend on the operation performed. For example, a captured transaction will never move to a `authorization_voided` status. + */ + 'status'?: Transaction.StatusEnum + 'threeDSecure'?: ThreeDSecureSummary + 'airline'?: CheckoutSessionAirline | null + /** + * Defines when the transaction was last updated. + */ + 'updatedAt'?: Date + /** + * The date and time when this transaction was voided in the payment service. Don\'t use this field to determine whether the transaction was voided. A `null` value doesn\'t necessarily imply that the transaction wasn\'t voided, it can mean that the payment service doesn\'t provide this value, that it didn\'t provide it at the time the transaction was voided or that the transaction was voided before the introduction of this field. + */ + 'voidedAt'?: Date | null + /** + * The currency of this transaction\'s settlement in ISO 4217 three-letter code format. + */ + 'settledCurrency'?: string | null + /** + * The net amount settled for this transaction. + */ + 'settledAmount'?: number + /** + * Indicates whether this transaction has been settled. + */ + 'settled'?: boolean + /** + * Whether or not the transaction is an account funding transaction. + */ + 'accountFundingTransaction'?: boolean | null = false + 'recipient'?: TransactionRecipient | null + /** + * The merchant advice code received from the payment service. This code is used to provide additional information about the card used. + */ + 'merchantAdviceCode'?: string | null - static discriminator: string | undefined = undefined; + static discriminator: string | undefined = undefined - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "Transaction.TypeEnum" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "number" - }, - { - "name": "authResponseCode", - "baseName": "auth_response_code", - "type": "string" - }, - { - "name": "authorizedAmount", - "baseName": "authorized_amount", - "type": "number" - }, - { - "name": "authorizedAt", - "baseName": "authorized_at", - "type": "Date" - }, - { - "name": "approvalExpiresAt", - "baseName": "approval_expires_at", - "type": "Date" - }, - { - "name": "avsResponseCode", - "baseName": "avs_response_code", - "type": "Transaction.AvsResponseCodeEnum" - }, - { - "name": "buyer", - "baseName": "buyer", - "type": "TransactionBuyer" - }, - { - "name": "capturedAmount", - "baseName": "captured_amount", - "type": "number" - }, - { - "name": "capturedAt", - "baseName": "captured_at", - "type": "Date" - }, - { - "name": "cartItems", - "baseName": "cart_items", - "type": "Array" - }, - { - "name": "checkoutSessionId", - "baseName": "checkout_session_id", - "type": "string" - }, - { - "name": "country", - "baseName": "country", - "type": "string" - }, - { - "name": "createdAt", - "baseName": "created_at", - "type": "Date" - }, - { - "name": "currency", - "baseName": "currency", - "type": "string" - }, - { - "name": "cvvResponseCode", - "baseName": "cvv_response_code", - "type": "Transaction.CvvResponseCodeEnum" - }, - { - "name": "errorCode", - "baseName": "error_code", - "type": "string" - }, - { - "name": "externalIdentifier", - "baseName": "external_identifier", - "type": "string" - }, - { - "name": "giftCardService", - "baseName": "gift_card_service", - "type": "GiftCardServiceSnapshot" - }, - { - "name": "giftCardRedemptions", - "baseName": "gift_card_redemptions", - "type": "Array" - }, - { - "name": "instrumentType", - "baseName": "instrument_type", - "type": "Transaction.InstrumentTypeEnum" - }, - { - "name": "intent", - "baseName": "intent", - "type": "Transaction.IntentEnum" - }, - { - "name": "intentOutcome", - "baseName": "intent_outcome", - "type": "Transaction.IntentOutcomeEnum" - }, - { - "name": "isSubsequentPayment", - "baseName": "is_subsequent_payment", - "type": "boolean" - }, - { - "name": "merchantAccountId", - "baseName": "merchant_account_id", - "type": "string" - }, - { - "name": "merchantInitiated", - "baseName": "merchant_initiated", - "type": "boolean" - }, - { - "name": "metadata", - "baseName": "metadata", - "type": "{ [key: string]: string; }" - }, - { - "name": "method", - "baseName": "method", - "type": "Transaction.MethodEnum" - }, - { - "name": "multiTender", - "baseName": "multi_tender", - "type": "boolean" - }, - { - "name": "paymentMethod", - "baseName": "payment_method", - "type": "TransactionPaymentMethod" - }, - { - "name": "paymentService", - "baseName": "payment_service", - "type": "TransactionPaymentService" - }, - { - "name": "paymentServiceTransactionId", - "baseName": "payment_service_transaction_id", - "type": "string" - }, - { - "name": "paymentSource", - "baseName": "payment_source", - "type": "Transaction.PaymentSourceEnum" - }, - { - "name": "pendingReview", - "baseName": "pending_review", - "type": "boolean" - }, - { - "name": "rawResponseCode", - "baseName": "raw_response_code", - "type": "string" - }, - { - "name": "rawResponseDescription", - "baseName": "raw_response_description", - "type": "string" - }, - { - "name": "reconciliationId", - "baseName": "reconciliation_id", - "type": "string" - }, - { - "name": "refundedAmount", - "baseName": "refunded_amount", - "type": "number" - }, - { - "name": "schemeTransactionId", - "baseName": "scheme_transaction_id", - "type": "string" - }, - { - "name": "shippingDetails", - "baseName": "shipping_details", - "type": "TransactionShippingDetails" - }, - { - "name": "statementDescriptor", - "baseName": "statement_descriptor", - "type": "StatementDescriptor" - }, - { - "name": "status", - "baseName": "status", - "type": "Transaction.StatusEnum" - }, - { - "name": "threeDSecure", - "baseName": "three_d_secure", - "type": "ThreeDSecureSummary" - }, - { - "name": "updatedAt", - "baseName": "updated_at", - "type": "Date" - }, - { - "name": "voidedAt", - "baseName": "voided_at", - "type": "Date" - } ]; + static attributeTypeMap: Array<{ + name: string + baseName: string + type: string + }> = [ + { + name: 'type', + baseName: 'type', + type: 'Transaction.TypeEnum', + }, + { + name: 'id', + baseName: 'id', + type: 'string', + }, + { + name: 'amount', + baseName: 'amount', + type: 'number', + }, + { + name: 'additionalIdentifiers', + baseName: 'additional_identifiers', + type: '{ [key: string]: string; }', + }, + { + name: 'authResponseCode', + baseName: 'auth_response_code', + type: 'string', + }, + { + name: 'authorizedAmount', + baseName: 'authorized_amount', + type: 'number', + }, + { + name: 'authorizedAt', + baseName: 'authorized_at', + type: 'Date', + }, + { + name: 'approvalExpiresAt', + baseName: 'approval_expires_at', + type: 'Date', + }, + { + name: 'avsResponseCode', + baseName: 'avs_response_code', + type: 'Transaction.AvsResponseCodeEnum', + }, + { + name: 'buyer', + baseName: 'buyer', + type: 'TransactionBuyer', + }, + { + name: 'capturedAmount', + baseName: 'captured_amount', + type: 'number', + }, + { + name: 'capturedAt', + baseName: 'captured_at', + type: 'Date', + }, + { + name: 'cartItems', + baseName: 'cart_items', + type: 'Array', + }, + { + name: 'checkoutSessionId', + baseName: 'checkout_session_id', + type: 'string', + }, + { + name: 'country', + baseName: 'country', + type: 'string', + }, + { + name: 'createdAt', + baseName: 'created_at', + type: 'Date', + }, + { + name: 'currency', + baseName: 'currency', + type: 'string', + }, + { + name: 'cvvResponseCode', + baseName: 'cvv_response_code', + type: 'Transaction.CvvResponseCodeEnum', + }, + { + name: 'errorCode', + baseName: 'error_code', + type: 'string', + }, + { + name: 'externalIdentifier', + baseName: 'external_identifier', + type: 'string', + }, + { + name: 'giftCardService', + baseName: 'gift_card_service', + type: 'GiftCardServiceSnapshot', + }, + { + name: 'giftCardRedemptions', + baseName: 'gift_card_redemptions', + type: 'Array', + }, + { + name: 'instrumentType', + baseName: 'instrument_type', + type: 'Transaction.InstrumentTypeEnum', + }, + { + name: 'intent', + baseName: 'intent', + type: 'Transaction.IntentEnum', + }, + { + name: 'intentOutcome', + baseName: 'intent_outcome', + type: 'Transaction.IntentOutcomeEnum', + }, + { + name: 'isSubsequentPayment', + baseName: 'is_subsequent_payment', + type: 'boolean', + }, + { + name: 'merchantAccountId', + baseName: 'merchant_account_id', + type: 'string', + }, + { + name: 'merchantInitiated', + baseName: 'merchant_initiated', + type: 'boolean', + }, + { + name: 'metadata', + baseName: 'metadata', + type: '{ [key: string]: string; }', + }, + { + name: 'method', + baseName: 'method', + type: 'Transaction.MethodEnum', + }, + { + name: 'multiTender', + baseName: 'multi_tender', + type: 'boolean', + }, + { + name: 'paymentMethod', + baseName: 'payment_method', + type: 'TransactionPaymentMethod', + }, + { + name: 'paymentService', + baseName: 'payment_service', + type: 'TransactionPaymentService', + }, + { + name: 'paymentServiceTransactionId', + baseName: 'payment_service_transaction_id', + type: 'string', + }, + { + name: 'paymentSource', + baseName: 'payment_source', + type: 'Transaction.PaymentSourceEnum', + }, + { + name: 'pendingReview', + baseName: 'pending_review', + type: 'boolean', + }, + { + name: 'rawResponseCode', + baseName: 'raw_response_code', + type: 'string', + }, + { + name: 'rawResponseDescription', + baseName: 'raw_response_description', + type: 'string', + }, + { + name: 'reconciliationId', + baseName: 'reconciliation_id', + type: 'string', + }, + { + name: 'refundedAmount', + baseName: 'refunded_amount', + type: 'number', + }, + { + name: 'schemeTransactionId', + baseName: 'scheme_transaction_id', + type: 'string', + }, + { + name: 'shippingDetails', + baseName: 'shipping_details', + type: 'TransactionShippingDetails', + }, + { + name: 'statementDescriptor', + baseName: 'statement_descriptor', + type: 'StatementDescriptor', + }, + { + name: 'status', + baseName: 'status', + type: 'Transaction.StatusEnum', + }, + { + name: 'threeDSecure', + baseName: 'three_d_secure', + type: 'ThreeDSecureSummary', + }, + { + name: 'airline', + baseName: 'airline', + type: 'CheckoutSessionAirline', + }, + { + name: 'updatedAt', + baseName: 'updated_at', + type: 'Date', + }, + { + name: 'voidedAt', + baseName: 'voided_at', + type: 'Date', + }, + { + name: 'settledCurrency', + baseName: 'settled_currency', + type: 'string', + }, + { + name: 'settledAmount', + baseName: 'settled_amount', + type: 'number', + }, + { + name: 'settled', + baseName: 'settled', + type: 'boolean', + }, + { + name: 'accountFundingTransaction', + baseName: 'account_funding_transaction', + type: 'boolean', + }, + { + name: 'recipient', + baseName: 'recipient', + type: 'TransactionRecipient', + }, + { + name: 'merchantAdviceCode', + baseName: 'merchant_advice_code', + type: 'string', + }, + ] - static getAttributeTypeMap() { - return Transaction.attributeTypeMap; - } + static getAttributeTypeMap() { + return Transaction.attributeTypeMap + } } export namespace Transaction { - export enum TypeEnum { - Transaction = 'transaction' - } - export enum AvsResponseCodeEnum { - NoMatch = 'no_match', - Match = 'match', - PartialMatchAddress = 'partial_match_address', - PartialMatchPostcode = 'partial_match_postcode', - Unavailable = 'unavailable' - } - export enum CvvResponseCodeEnum { - NoMatch = 'no_match', - Match = 'match', - Unavailable = 'unavailable', - NotProvided = 'not_provided' - } - export enum InstrumentTypeEnum { - Applepay = 'applepay', - CardToken = 'card_token', - Googlepay = 'googlepay', - NetworkToken = 'network_token', - Pan = 'pan', - Redirect = 'redirect', - RedirectToken = 'redirect_token' - } - export enum IntentEnum { - Authorize = 'authorize', - Capture = 'capture' - } - export enum IntentOutcomeEnum { - Pending = 'pending', - Succeeded = 'succeeded', - Failed = 'failed' - } - export enum MethodEnum { - Afterpay = 'afterpay', - Alipay = 'alipay', - Alipayhk = 'alipayhk', - Applepay = 'applepay', - Bacs = 'bacs', - Bancontact = 'bancontact', - Banked = 'banked', - Becs = 'becs', - Bitpay = 'bitpay', - Boleto = 'boleto', - Boost = 'boost', - Card = 'card', - Cashapp = 'cashapp', - Chaseorbital = 'chaseorbital', - CheckoutSession = 'checkout-session', - Clearpay = 'clearpay', - ClickToPay = 'click-to-pay', - Dana = 'dana', - Dcb = 'dcb', - Dlocal = 'dlocal', - Ebanx = 'ebanx', - Eps = 'eps', - Everydaypay = 'everydaypay', - Gcash = 'gcash', - Giropay = 'giropay', - Givingblock = 'givingblock', - Gocardless = 'gocardless', - Googlepay = 'googlepay', - GooglepayPanOnly = 'googlepay_pan_only', - Gopay = 'gopay', - Grabpay = 'grabpay', - Id = 'id', - Ideal = 'ideal', - Kakaopay = 'kakaopay', - Kcp = 'kcp', - Klarna = 'klarna', - Laybuy = 'laybuy', - Linepay = 'linepay', - Linkaja = 'linkaja', - Maybankqrpay = 'maybankqrpay', - Multibanco = 'multibanco', - Multipago = 'multipago', - NetworkToken = 'network-token', - Oney3x = 'oney_3x', - Oney4x = 'oney_4x', - Oney6x = 'oney_6x', - Oney10x = 'oney_10x', - Oney12x = 'oney_12x', - Ovo = 'ovo', - Oxxo = 'oxxo', - Payid = 'payid', - Paymaya = 'paymaya', - Paypal = 'paypal', - Paypalpaylater = 'paypalpaylater', - Payto = 'payto', - Venmo = 'venmo', - Pix = 'pix', - Rabbitlinepay = 'rabbitlinepay', - Razorpay = 'razorpay', - Scalapay = 'scalapay', - Sepa = 'sepa', - Shopeepay = 'shopeepay', - Singteldash = 'singteldash', - Smartpay = 'smartpay', - Sofort = 'sofort', - Spei = 'spei', - Stripedd = 'stripedd', - Thaiqr = 'thaiqr', - Touchngo = 'touchngo', - Truemoney = 'truemoney', - Trustly = 'trustly', - Trustlyeurope = 'trustlyeurope', - Vipps = 'vipps', - Waave = 'waave', - Wechat = 'wechat', - Zippay = 'zippay' - } - export enum PaymentSourceEnum { - Ecommerce = 'ecommerce', - Moto = 'moto', - Recurring = 'recurring', - Installment = 'installment', - CardOnFile = 'card_on_file' - } - export enum StatusEnum { - Processing = 'processing', - BuyerApprovalPending = 'buyer_approval_pending', - AuthorizationSucceeded = 'authorization_succeeded', - AuthorizationFailed = 'authorization_failed', - AuthorizationDeclined = 'authorization_declined', - CapturePending = 'capture_pending', - CaptureSucceeded = 'capture_succeeded', - AuthorizationVoidPending = 'authorization_void_pending', - AuthorizationVoided = 'authorization_voided' - } + export enum TypeEnum { + Transaction = 'transaction', + } + export enum AvsResponseCodeEnum { + NoMatch = 'no_match', + Match = 'match', + PartialMatchAddress = 'partial_match_address', + PartialMatchPostcode = 'partial_match_postcode', + Unavailable = 'unavailable', + } + export enum CvvResponseCodeEnum { + NoMatch = 'no_match', + Match = 'match', + Unavailable = 'unavailable', + NotProvided = 'not_provided', + } + export enum InstrumentTypeEnum { + Applepay = 'applepay', + CardToken = 'card_token', + Googlepay = 'googlepay', + NetworkToken = 'network_token', + Pan = 'pan', + Redirect = 'redirect', + RedirectToken = 'redirect_token', + } + export enum IntentEnum { + Authorize = 'authorize', + Capture = 'capture', + } + export enum IntentOutcomeEnum { + Pending = 'pending', + Succeeded = 'succeeded', + Failed = 'failed', + } + export enum MethodEnum { + Afterpay = 'afterpay', + Alipay = 'alipay', + Alipayhk = 'alipayhk', + Applepay = 'applepay', + Bacs = 'bacs', + Bancontact = 'bancontact', + Banked = 'banked', + Becs = 'becs', + Bitpay = 'bitpay', + Boleto = 'boleto', + Boost = 'boost', + Card = 'card', + Cashapp = 'cashapp', + Chaseorbital = 'chaseorbital', + CheckoutSession = 'checkout-session', + Clearpay = 'clearpay', + ClickToPay = 'click-to-pay', + Dana = 'dana', + Dcb = 'dcb', + Dlocal = 'dlocal', + Ebanx = 'ebanx', + Efecty = 'efecty', + Eps = 'eps', + Everydaypay = 'everydaypay', + Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', + Giropay = 'giropay', + Givingblock = 'givingblock', + Gocardless = 'gocardless', + Googlepay = 'googlepay', + GooglepayPanOnly = 'googlepay_pan_only', + Gopay = 'gopay', + Grabpay = 'grabpay', + Id = 'id', + Ideal = 'ideal', + Kakaopay = 'kakaopay', + Kcp = 'kcp', + Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', + Laybuy = 'laybuy', + Linepay = 'linepay', + Linkaja = 'linkaja', + Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', + Multibanco = 'multibanco', + Multipago = 'multipago', + Netbanking = 'netbanking', + NetworkToken = 'network-token', + Oney3x = 'oney_3x', + Oney4x = 'oney_4x', + Oney6x = 'oney_6x', + Oney10x = 'oney_10x', + Oney12x = 'oney_12x', + Ovo = 'ovo', + Oxxo = 'oxxo', + Payid = 'payid', + Paymaya = 'paymaya', + Paypal = 'paypal', + Paypalpaylater = 'paypalpaylater', + Payto = 'payto', + Venmo = 'venmo', + Pix = 'pix', + Pse = 'pse', + Rabbitlinepay = 'rabbitlinepay', + Razorpay = 'razorpay', + Scalapay = 'scalapay', + Sepa = 'sepa', + Shopeepay = 'shopeepay', + Singteldash = 'singteldash', + Smartpay = 'smartpay', + Sofort = 'sofort', + Spei = 'spei', + Stripedd = 'stripedd', + Thaiqr = 'thaiqr', + Touchngo = 'touchngo', + Truemoney = 'truemoney', + Trustly = 'trustly', + Trustlyeurope = 'trustlyeurope', + Upi = 'upi', + Vipps = 'vipps', + Waave = 'waave', + Webpay = 'webpay', + Wechat = 'wechat', + Zippay = 'zippay', + } + export enum PaymentSourceEnum { + Ecommerce = 'ecommerce', + Moto = 'moto', + Recurring = 'recurring', + Installment = 'installment', + CardOnFile = 'card_on_file', + } + export enum StatusEnum { + Processing = 'processing', + BuyerApprovalPending = 'buyer_approval_pending', + AuthorizationSucceeded = 'authorization_succeeded', + AuthorizationFailed = 'authorization_failed', + AuthorizationDeclined = 'authorization_declined', + CapturePending = 'capture_pending', + CaptureSucceeded = 'capture_succeeded', + AuthorizationVoidPending = 'authorization_void_pending', + AuthorizationVoided = 'authorization_voided', + } } diff --git a/model/transactionBuyer.ts b/model/transactionBuyer.ts index 1e8729f..651e799 100644 --- a/model/transactionBuyer.ts +++ b/model/transactionBuyer.ts @@ -34,6 +34,10 @@ export class TransactionBuyer { * An external identifier that can be used to match the buyer against your own records. */ 'externalIdentifier'?: string | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -62,6 +66,11 @@ export class TransactionBuyer { "name": "externalIdentifier", "baseName": "external_identifier", "type": "string" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/transactionBuyerRequest.ts b/model/transactionBuyerRequest.ts index 5dd656b..b6db8ad 100644 --- a/model/transactionBuyerRequest.ts +++ b/model/transactionBuyerRequest.ts @@ -28,6 +28,10 @@ export class TransactionBuyerRequest { 'displayName'?: string | null; 'billingDetails'?: TransactionBuyerRequestBillingDetails | null; 'shippingDetails'?: TransactionBuyerRequestShippingDetails | null; + /** + * The source account number to perform an account funding transaction. + */ + 'accountNumber'?: string | null; static discriminator: string | undefined = undefined; @@ -51,6 +55,11 @@ export class TransactionBuyerRequest { "name": "shippingDetails", "baseName": "shipping_details", "type": "TransactionBuyerRequestShippingDetails" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/transactionBuyerRequestShippingDetails.ts b/model/transactionBuyerRequestShippingDetails.ts index 669d3af..7e9e482 100644 --- a/model/transactionBuyerRequestShippingDetails.ts +++ b/model/transactionBuyerRequestShippingDetails.ts @@ -11,15 +11,26 @@ */ import { RequestFile } from './models'; -import { BillingDetailsRequestAddress } from './billingDetailsRequestAddress'; -import { BillingDetailsRequestTaxId } from './billingDetailsRequestTaxId'; +import { ShippingDetailAddress } from './shippingDetailAddress'; /** * The optional shipping details for the buyer. */ export class TransactionBuyerRequestShippingDetails { /** - * The first name(s) or given name for the buyer. + * The type of this resource. Is always `shipping-details`. + */ + 'type'?: TransactionBuyerRequestShippingDetails.TypeEnum; + /** + * The unique ID for a buyer\'s shipping detail. + */ + 'id'?: string; + /** + * The unique ID for a buyer. + */ + 'buyerId'?: string; + /** + * The first name(s) or given name of the buyer. */ 'firstName'?: string | null; /** @@ -27,19 +38,33 @@ export class TransactionBuyerRequestShippingDetails { */ 'lastName'?: string | null; /** - * The email address for the buyer. + * The email address of the buyer. */ 'emailAddress'?: string | null; /** - * The phone number for the buyer which should be formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). + * The phone number of the buyer. This number is formatted according to the [E164 number standard](https://www.twilio.com/docs/glossary/what-e164). */ 'phoneNumber'?: string | null; - 'address'?: BillingDetailsRequestAddress | null; - 'taxId'?: BillingDetailsRequestTaxId | null; + 'address'?: ShippingDetailAddress | null; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "TransactionBuyerRequestShippingDetails.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "buyerId", + "baseName": "buyer_id", + "type": "string" + }, { "name": "firstName", "baseName": "first_name", @@ -63,12 +88,7 @@ export class TransactionBuyerRequestShippingDetails { { "name": "address", "baseName": "address", - "type": "BillingDetailsRequestAddress" - }, - { - "name": "taxId", - "baseName": "tax_id", - "type": "BillingDetailsRequestTaxId" + "type": "ShippingDetailAddress" } ]; static getAttributeTypeMap() { @@ -76,3 +96,8 @@ export class TransactionBuyerRequestShippingDetails { } } +export namespace TransactionBuyerRequestShippingDetails { + export enum TypeEnum { + ShippingDetails = 'shipping-details' + } +} diff --git a/model/transactionCaptureRequest.ts b/model/transactionCaptureRequest.ts index c36f64e..93de382 100644 --- a/model/transactionCaptureRequest.ts +++ b/model/transactionCaptureRequest.ts @@ -11,6 +11,7 @@ */ import { RequestFile } from './models'; +import { TransactionCaptureRequestAirline } from './transactionCaptureRequestAirline'; /** * A request to capture a transaction. @@ -20,6 +21,7 @@ export class TransactionCaptureRequest { * The monetary amount to capture an authorization for, in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`. When omitted blank, this will capture the entire amount. */ 'amount'?: number; + 'airline'?: TransactionCaptureRequestAirline | null; static discriminator: string | undefined = undefined; @@ -28,6 +30,11 @@ export class TransactionCaptureRequest { "name": "amount", "baseName": "amount", "type": "number" + }, + { + "name": "airline", + "baseName": "airline", + "type": "TransactionCaptureRequestAirline" } ]; static getAttributeTypeMap() { diff --git a/model/transactionCaptureRequestAirline.ts b/model/transactionCaptureRequestAirline.ts new file mode 100644 index 0000000..0d70d8d --- /dev/null +++ b/model/transactionCaptureRequestAirline.ts @@ -0,0 +1,171 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { AirlineLeg } from './airlineLeg'; +import { AirlinePassenger } from './airlinePassenger'; + +/** +* The airline addendum data which describes the airline booking associated with this transaction. When provided, this will override any airline data provided when authorizing the transaction. Only the data on this request will be passed to the payment service, and none of the original data will be sent or kept. +*/ +export class TransactionCaptureRequestAirline { + /** + * The Passenger Name Record (PNR) in the airline reservation system. + */ + 'passengerNameRecord'?: string | null; + /** + * The unique identifier of the reservation in the global distribution system. + */ + 'bookingCode'?: string | null; + /** + * The airline\'s unique ticket number. + */ + 'ticketNumber'?: string | null; + /** + * The delivery method of the ticket. + */ + 'ticketDeliveryMethod'?: TransactionCaptureRequestAirline.TicketDeliveryMethodEnum = TransactionCaptureRequestAirline.TicketDeliveryMethodEnum.Electronic; + /** + * The date that the ticket was last issued in the airline reservation system. + */ + 'issuedAt'?: Date | null; + /** + * The address of the place/agency that issued the ticket. + */ + 'issuedAddress'?: string | null; + /** + * The IATA travel agency code. + */ + 'travelAgencyCode'?: string | null; + /** + * The name of the travel agency. + */ + 'travelAgencyName'?: string | null; + /** + * The reference number of the invoice that was issued by the travel agency. + */ + 'travelAgencyInvoiceNumber'?: string | null; + /** + * The name of the travel agency plan. + */ + 'travelAgencyPlanName'?: string | null; + /** + * Indicates whether the ticket is restricted (refundable). + */ + 'restrictedTicket'?: boolean | null; + /** + * For airline aggregators, two-character IATA code of the airline issuing the ticket. + */ + 'issuingCarrierCode'?: string | null; + /** + * The name of the reservation system. + */ + 'reservationSystem'?: string | null; + /** + * An array of the travelling passengers. + */ + 'passengers'?: Array | null; + /** + * An array of separate trip segments. Each leg contains detailed itinerary information. + */ + 'legs'?: Array | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "passengerNameRecord", + "baseName": "passenger_name_record", + "type": "string" + }, + { + "name": "bookingCode", + "baseName": "booking_code", + "type": "string" + }, + { + "name": "ticketNumber", + "baseName": "ticket_number", + "type": "string" + }, + { + "name": "ticketDeliveryMethod", + "baseName": "ticket_delivery_method", + "type": "TransactionCaptureRequestAirline.TicketDeliveryMethodEnum" + }, + { + "name": "issuedAt", + "baseName": "issued_at", + "type": "Date" + }, + { + "name": "issuedAddress", + "baseName": "issued_address", + "type": "string" + }, + { + "name": "travelAgencyCode", + "baseName": "travel_agency_code", + "type": "string" + }, + { + "name": "travelAgencyName", + "baseName": "travel_agency_name", + "type": "string" + }, + { + "name": "travelAgencyInvoiceNumber", + "baseName": "travel_agency_invoice_number", + "type": "string" + }, + { + "name": "travelAgencyPlanName", + "baseName": "travel_agency_plan_name", + "type": "string" + }, + { + "name": "restrictedTicket", + "baseName": "restricted_ticket", + "type": "boolean" + }, + { + "name": "issuingCarrierCode", + "baseName": "issuing_carrier_code", + "type": "string" + }, + { + "name": "reservationSystem", + "baseName": "reservation_system", + "type": "string" + }, + { + "name": "passengers", + "baseName": "passengers", + "type": "Array" + }, + { + "name": "legs", + "baseName": "legs", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TransactionCaptureRequestAirline.attributeTypeMap; + } +} + +export namespace TransactionCaptureRequestAirline { + export enum TicketDeliveryMethodEnum { + Electronic = 'electronic', + Other = 'other' + } +} diff --git a/model/transactionHistoryEvent.ts b/model/transactionHistoryEvent.ts index ea9a77b..96cca99 100644 --- a/model/transactionHistoryEvent.ts +++ b/model/transactionHistoryEvent.ts @@ -105,6 +105,7 @@ export namespace TransactionHistoryEvent { PaymentConnectorResponseTransactionVoidDeclined = 'payment-connector-response-transaction-void-declined', PaymentConnectorResponseTransactionVoidFailed = 'payment-connector-response-transaction-void-failed', PaymentConnectorResponseTransactionVoidSucceeded = 'payment-connector-response-transaction-void-succeeded', + PaymentConnectorReportTransactionSettled = 'payment-connector-report-transaction-settled', PaymentConnectorExternalTransactionRequest = 'payment-connector-external-transaction-request', ThreeDSecureAuthenticationRequest = 'three-d-secure-authentication-request', ThreeDSecurePreparationRequest = 'three-d-secure-preparation-request', diff --git a/model/transactionNetworkTokenApplePayRequest.ts b/model/transactionNetworkTokenApplePayRequest.ts index 898ce6d..ccb0f21 100644 --- a/model/transactionNetworkTokenApplePayRequest.ts +++ b/model/transactionNetworkTokenApplePayRequest.ts @@ -33,7 +33,7 @@ export class TransactionNetworkTokenApplePayRequest { */ 'cryptogram'?: string | null; /** - * The electronic commerce indicator for 3D-Secure. + * The ecommerce indicator for 3D-Secure. */ 'eci'?: string; 'cardSource': TransactionNetworkTokenApplePayRequest.CardSourceEnum; diff --git a/model/transactionNetworkTokenGooglePayRequest.ts b/model/transactionNetworkTokenGooglePayRequest.ts index 9ee003c..1762b76 100644 --- a/model/transactionNetworkTokenGooglePayRequest.ts +++ b/model/transactionNetworkTokenGooglePayRequest.ts @@ -33,7 +33,7 @@ export class TransactionNetworkTokenGooglePayRequest { */ 'cryptogram'?: string | null; /** - * The electronic commerce indicator for 3D-Secure. + * The ecommerce indicator for 3D-Secure. */ 'eci'?: string; 'cardSource': TransactionNetworkTokenGooglePayRequest.CardSourceEnum; diff --git a/model/transactionNetworkTokenRequest.ts b/model/transactionNetworkTokenRequest.ts index cb599c3..a3b1815 100644 --- a/model/transactionNetworkTokenRequest.ts +++ b/model/transactionNetworkTokenRequest.ts @@ -29,6 +29,10 @@ export class TransactionNetworkTokenRequest { */ 'expirationDate': string; /** + * The ecommerce indicator. + */ + 'eci'?: string; + /** * The cryptogram of the network token. */ 'cryptogram'?: string | null; @@ -55,6 +59,11 @@ export class TransactionNetworkTokenRequest { "baseName": "expiration_date", "type": "string" }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, { "name": "cryptogram", "baseName": "cryptogram", diff --git a/model/transactionPaymentMethod.ts b/model/transactionPaymentMethod.ts index 4c8db52..1974ba8 100644 --- a/model/transactionPaymentMethod.ts +++ b/model/transactionPaymentMethod.ts @@ -189,9 +189,13 @@ export namespace TransactionPaymentMethod { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -204,12 +208,16 @@ export namespace TransactionPaymentMethod { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -225,6 +233,7 @@ export namespace TransactionPaymentMethod { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -240,8 +249,10 @@ export namespace TransactionPaymentMethod { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/transactionPaymentMethodRequest.ts b/model/transactionPaymentMethodRequest.ts index 041eb44..5d4b5b2 100644 --- a/model/transactionPaymentMethodRequest.ts +++ b/model/transactionPaymentMethodRequest.ts @@ -164,9 +164,13 @@ export namespace TransactionPaymentMethodRequest { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -179,12 +183,16 @@ export namespace TransactionPaymentMethodRequest { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -200,6 +208,7 @@ export namespace TransactionPaymentMethodRequest { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -215,8 +224,10 @@ export namespace TransactionPaymentMethodRequest { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/transactionPaymentService.ts b/model/transactionPaymentService.ts index cb6e0ac..7b908e1 100644 --- a/model/transactionPaymentService.ts +++ b/model/transactionPaymentService.ts @@ -97,9 +97,13 @@ export namespace TransactionPaymentService { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -112,12 +116,16 @@ export namespace TransactionPaymentService { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -133,6 +141,7 @@ export namespace TransactionPaymentService { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -148,8 +157,10 @@ export namespace TransactionPaymentService { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/transactionRecipient.ts b/model/transactionRecipient.ts new file mode 100644 index 0000000..ad97587 --- /dev/null +++ b/model/transactionRecipient.ts @@ -0,0 +1,71 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { RecipientAddress } from './recipientAddress'; + +/** +* The recipient of an account funding transaction. +*/ +export class TransactionRecipient { + /** + * The first name(s) or given name for the recipient. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the recipient. + */ + 'lastName'?: string | null; + 'address'?: RecipientAddress | null; + /** + * The destination account number to receive an account funding transaction. + */ + 'accountNumber'?: string | null; + /** + * The recipient\'s date of birth. + */ + 'dateOfBirth'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "RecipientAddress" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionRecipient.attributeTypeMap; + } +} + diff --git a/model/transactionRedirectRequest.ts b/model/transactionRedirectRequest.ts index cedc3f5..8fc2d9e 100644 --- a/model/transactionRedirectRequest.ts +++ b/model/transactionRedirectRequest.ts @@ -73,10 +73,86 @@ export class TransactionRedirectRequest { export namespace TransactionRedirectRequest { export enum MethodEnum { - Paypal = 'paypal', + Afterpay = 'afterpay', + Alipay = 'alipay', + Alipayhk = 'alipayhk', + Bacs = 'bacs', + Bancontact = 'bancontact', Banked = 'banked', + Becs = 'becs', Bitpay = 'bitpay', + Boleto = 'boleto', + Boost = 'boost', + Cashapp = 'cashapp', + Chaseorbital = 'chaseorbital', + CheckoutSession = 'checkout-session', + Clearpay = 'clearpay', + Dana = 'dana', + Dcb = 'dcb', + Dlocal = 'dlocal', + Ebanx = 'ebanx', + Efecty = 'efecty', + Eps = 'eps', + Everydaypay = 'everydaypay', + Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', + Giropay = 'giropay', + Givingblock = 'givingblock', Gocardless = 'gocardless', - Stripedd = 'stripedd' + Gopay = 'gopay', + Grabpay = 'grabpay', + Ideal = 'ideal', + Kakaopay = 'kakaopay', + Kcp = 'kcp', + Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', + Laybuy = 'laybuy', + Linepay = 'linepay', + Linkaja = 'linkaja', + Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', + Multibanco = 'multibanco', + Multipago = 'multipago', + Netbanking = 'netbanking', + NetworkToken = 'network-token', + Oney10x = 'oney_10x', + Oney12x = 'oney_12x', + Oney3x = 'oney_3x', + Oney4x = 'oney_4x', + Oney6x = 'oney_6x', + Ovo = 'ovo', + Oxxo = 'oxxo', + Payid = 'payid', + Paymaya = 'paymaya', + Paypal = 'paypal', + Paypalpaylater = 'paypalpaylater', + Payto = 'payto', + Pix = 'pix', + Pse = 'pse', + Rabbitlinepay = 'rabbitlinepay', + Razorpay = 'razorpay', + Scalapay = 'scalapay', + Sepa = 'sepa', + Shopeepay = 'shopeepay', + Singteldash = 'singteldash', + Smartpay = 'smartpay', + Sofort = 'sofort', + Spei = 'spei', + Stripedd = 'stripedd', + Thaiqr = 'thaiqr', + Touchngo = 'touchngo', + Truemoney = 'truemoney', + Trustly = 'trustly', + Trustlyeurope = 'trustlyeurope', + Upi = 'upi', + Venmo = 'venmo', + Vipps = 'vipps', + Waave = 'waave', + Webpay = 'webpay', + Wechat = 'wechat', + Zippay = 'zippay' } } diff --git a/model/transactionRefundAllRequest.ts b/model/transactionRefundAllRequest.ts index 6e888bc..807aefc 100644 --- a/model/transactionRefundAllRequest.ts +++ b/model/transactionRefundAllRequest.ts @@ -20,6 +20,10 @@ export class TransactionRefundAllRequest { * The reason to refund for. This can be used to attach a written reason to the refund request. */ 'reason'?: string | null; + /** + * An external identifier that can be used to match the refund against your own records. + */ + 'externalIdentifier'?: string | null; static discriminator: string | undefined = undefined; @@ -28,6 +32,11 @@ export class TransactionRefundAllRequest { "name": "reason", "baseName": "reason", "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/transactionRefundRequest.ts b/model/transactionRefundRequest.ts index b2549ef..4c5af45 100644 --- a/model/transactionRefundRequest.ts +++ b/model/transactionRefundRequest.ts @@ -32,6 +32,10 @@ export class TransactionRefundRequest { * An optional reason to attach extra context to the refund request. */ 'reason'?: string | null; + /** + * An external identifier that can be used to match the refund against your own records. + */ + 'externalIdentifier'?: string | null; static discriminator: string | undefined = undefined; @@ -55,6 +59,11 @@ export class TransactionRefundRequest { "name": "reason", "baseName": "reason", "type": "string" + }, + { + "name": "externalIdentifier", + "baseName": "external_identifier", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/model/transactionRequest.ts b/model/transactionRequest.ts index 8143590..9d5112a 100644 --- a/model/transactionRequest.ts +++ b/model/transactionRequest.ts @@ -12,13 +12,15 @@ import { RequestFile } from './models'; import { CartItem } from './cartItem'; +import { CheckoutSessionCreateRequestAirline } from './checkoutSessionCreateRequestAirline'; +import { PaymentLinkRequestConnectionOptions } from './paymentLinkRequestConnectionOptions'; +import { PaymentLinkStatementDescriptor } from './paymentLinkStatementDescriptor'; import { ThreeDSecureDataV1V2 } from './threeDSecureDataV1V2'; import { TransactionBuyerRequest } from './transactionBuyerRequest'; import { TransactionGiftCardRequest } from './transactionGiftCardRequest'; import { TransactionPaymentMethodRequest } from './transactionPaymentMethodRequest'; import { TransactionRequestBrowserInfo } from './transactionRequestBrowserInfo'; -import { TransactionRequestConnectionOptions } from './transactionRequestConnectionOptions'; -import { TransactionRequestStatementDescriptor } from './transactionRequestStatementDescriptor'; +import { TransactionRequestRecipient } from './transactionRequestRecipient'; /** * A request to create a transaction. @@ -55,9 +57,9 @@ export class TransactionRequest { * An array of cart items that represents the line items of a transaction. */ 'cartItems'?: Array; - 'connectionOptions'?: TransactionRequestConnectionOptions | null; + 'connectionOptions'?: PaymentLinkRequestConnectionOptions | null; /** - * The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction. If this value is provided for redirect requests and it\'s not `null`, it must match the one specified for `country` in `payment_method`. Otherwise, the value specified for `country` in `payment_method` will be assumed implicitly. + * The 2-letter ISO code of the country where the transaction is processed. This is also used to filter the payment services that can process the transaction. If this value is provided for redirect requests and it\'s not `null`, it must match the one specified for `country` in `payment_method`. Otherwise, the value specified for `country` in `payment_method` will be assumed implicitly. */ 'country'?: string | null; /** @@ -96,7 +98,7 @@ export class TransactionRequest { * The unique identifier of a set of shipping details stored for the buyer. If provided, the created transaction will include a copy of the details at the point of transaction creation; i.e. it will not be affected by later changes to the detail in the database. */ 'shippingDetailsId'?: string | null; - 'statementDescriptor'?: TransactionRequestStatementDescriptor | null; + 'statementDescriptor'?: PaymentLinkStatementDescriptor | null; /** * Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set: * The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`. * The flag has to be set to `false` (or not set) when using a previously vaulted payment method. */ @@ -106,6 +108,16 @@ export class TransactionRequest { * The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped. */ 'paymentServiceId'?: string | null; + 'airline'?: CheckoutSessionCreateRequestAirline | null; + /** + * Whether or not the transaction is an account funding transaction. + */ + 'accountFundingTransaction'?: boolean | null = false; + 'recipient'?: TransactionRequestRecipient | null; + /** + * Whether or not to allow partial authorization of the transaction. Support for this will depend on the connector used. When a connector does not support partial authorization, and the user does not have sufficient funds, the transaction will be declined. + */ + 'allowPartialAuthorization'?: boolean | null = false; static discriminator: string | undefined = undefined; @@ -163,7 +175,7 @@ export class TransactionRequest { { "name": "connectionOptions", "baseName": "connection_options", - "type": "TransactionRequestConnectionOptions" + "type": "PaymentLinkRequestConnectionOptions" }, { "name": "country", @@ -218,7 +230,7 @@ export class TransactionRequest { { "name": "statementDescriptor", "baseName": "statement_descriptor", - "type": "TransactionRequestStatementDescriptor" + "type": "PaymentLinkStatementDescriptor" }, { "name": "store", @@ -234,6 +246,26 @@ export class TransactionRequest { "name": "paymentServiceId", "baseName": "payment_service_id", "type": "string" + }, + { + "name": "airline", + "baseName": "airline", + "type": "CheckoutSessionCreateRequestAirline" + }, + { + "name": "accountFundingTransaction", + "baseName": "account_funding_transaction", + "type": "boolean" + }, + { + "name": "recipient", + "baseName": "recipient", + "type": "TransactionRequestRecipient" + }, + { + "name": "allowPartialAuthorization", + "baseName": "allow_partial_authorization", + "type": "boolean" } ]; static getAttributeTypeMap() { diff --git a/model/transactionRequestRecipient.ts b/model/transactionRequestRecipient.ts new file mode 100644 index 0000000..7425613 --- /dev/null +++ b/model/transactionRequestRecipient.ts @@ -0,0 +1,71 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { RecipientAddress } from './recipientAddress'; + +/** +* The recipient of an account funding transaction. +*/ +export class TransactionRequestRecipient { + /** + * The first name(s) or given name for the recipient. + */ + 'firstName'?: string | null; + /** + * The last name, or family name, of the recipient. + */ + 'lastName'?: string | null; + 'address'?: RecipientAddress | null; + /** + * The destination account number to receive an account funding transaction. + */ + 'accountNumber'?: string | null; + /** + * The recipient\'s date of birth. + */ + 'dateOfBirth'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "first_name", + "type": "string" + }, + { + "name": "lastName", + "baseName": "last_name", + "type": "string" + }, + { + "name": "address", + "baseName": "address", + "type": "RecipientAddress" + }, + { + "name": "accountNumber", + "baseName": "account_number", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionRequestRecipient.attributeTypeMap; + } +} + diff --git a/model/transactionRetriesReportSpec.ts b/model/transactionRetriesReportSpec.ts new file mode 100644 index 0000000..c42253a --- /dev/null +++ b/model/transactionRetriesReportSpec.ts @@ -0,0 +1,49 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionRetriesReportSpecParams } from './transactionRetriesReportSpecParams'; + +/** +* The specification of a transaction retries report. +*/ +export class TransactionRetriesReportSpec { + /** + * The model (dataset) that the data used for the report is retrieved from. + */ + 'model': TransactionRetriesReportSpec.ModelEnum; + 'params': TransactionRetriesReportSpecParams; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "model", + "baseName": "model", + "type": "TransactionRetriesReportSpec.ModelEnum" + }, + { + "name": "params", + "baseName": "params", + "type": "TransactionRetriesReportSpecParams" + } ]; + + static getAttributeTypeMap() { + return TransactionRetriesReportSpec.attributeTypeMap; + } +} + +export namespace TransactionRetriesReportSpec { + export enum ModelEnum { + TransactionRetries = 'transaction_retries' + } +} diff --git a/model/transactionRetriesReportSpecParams.ts b/model/transactionRetriesReportSpecParams.ts new file mode 100644 index 0000000..64aa0ea --- /dev/null +++ b/model/transactionRetriesReportSpecParams.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionRetriesReportSpecParamsFilters } from './transactionRetriesReportSpecParamsFilters'; + +/** +* Parameters used to configure the report. +*/ +export class TransactionRetriesReportSpecParams { + 'filters'?: TransactionRetriesReportSpecParamsFilters; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "filters", + "baseName": "filters", + "type": "TransactionRetriesReportSpecParamsFilters" + } ]; + + static getAttributeTypeMap() { + return TransactionRetriesReportSpecParams.attributeTypeMap; + } +} + diff --git a/model/transactionRetriesReportSpecParamsFilters.ts b/model/transactionRetriesReportSpecParamsFilters.ts new file mode 100644 index 0000000..3e4df2a --- /dev/null +++ b/model/transactionRetriesReportSpecParamsFilters.ts @@ -0,0 +1,35 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionRetriesReportSpecParamsFiltersCreatedAt } from './transactionRetriesReportSpecParamsFiltersCreatedAt'; + +/** +* The filters for the report. +*/ +export class TransactionRetriesReportSpecParamsFilters { + 'createdAt'?: TransactionRetriesReportSpecParamsFiltersCreatedAt; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "createdAt", + "baseName": "created_at", + "type": "TransactionRetriesReportSpecParamsFiltersCreatedAt" + } ]; + + static getAttributeTypeMap() { + return TransactionRetriesReportSpecParamsFilters.attributeTypeMap; + } +} + diff --git a/model/transactionRetriesReportSpecParamsFiltersCreatedAt.ts b/model/transactionRetriesReportSpecParamsFiltersCreatedAt.ts new file mode 100644 index 0000000..3ec6d10 --- /dev/null +++ b/model/transactionRetriesReportSpecParamsFiltersCreatedAt.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the data was created to filter by. +*/ +export class TransactionRetriesReportSpecParamsFiltersCreatedAt { + /** + * The starting boundary for when the data was created as either a date-time or date-time placeholder value. + */ + 'start'?: string; + /** + * The ending boundary for when the data was created as either a date-time or date-time placeholder value. + */ + 'end'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "string" + }, + { + "name": "end", + "baseName": "end", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionRetriesReportSpecParamsFiltersCreatedAt.attributeTypeMap; + } +} + diff --git a/model/transactionSummary.ts b/model/transactionSummary.ts index a3d4499..8e268b3 100644 --- a/model/transactionSummary.ts +++ b/model/transactionSummary.ts @@ -108,6 +108,18 @@ export class TransactionSummary { * Defines when the transaction was last updated. */ 'updatedAt'?: Date; + /** + * The currency of this transaction\'s settlement in ISO 4217 three-letter code format. + */ + 'settledCurrency'?: string | null; + /** + * The net amount settled for this transaction. + */ + 'settledAmount'?: number; + /** + * Indicates whether this transaction has been settled. + */ + 'settled'?: boolean; static discriminator: string | undefined = undefined; @@ -236,6 +248,21 @@ export class TransactionSummary { "name": "updatedAt", "baseName": "updated_at", "type": "Date" + }, + { + "name": "settledCurrency", + "baseName": "settled_currency", + "type": "string" + }, + { + "name": "settledAmount", + "baseName": "settled_amount", + "type": "number" + }, + { + "name": "settled", + "baseName": "settled", + "type": "boolean" } ]; static getAttributeTypeMap() { @@ -282,9 +309,13 @@ export namespace TransactionSummary { Dcb = 'dcb', Dlocal = 'dlocal', Ebanx = 'ebanx', + Efecty = 'efecty', Eps = 'eps', Everydaypay = 'everydaypay', Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', Giropay = 'giropay', Givingblock = 'givingblock', Gocardless = 'gocardless', @@ -297,12 +328,16 @@ export namespace TransactionSummary { Kakaopay = 'kakaopay', Kcp = 'kcp', Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', Laybuy = 'laybuy', Linepay = 'linepay', Linkaja = 'linkaja', Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', Multibanco = 'multibanco', Multipago = 'multipago', + Netbanking = 'netbanking', NetworkToken = 'network-token', Oney3x = 'oney_3x', Oney4x = 'oney_4x', @@ -318,6 +353,7 @@ export namespace TransactionSummary { Payto = 'payto', Venmo = 'venmo', Pix = 'pix', + Pse = 'pse', Rabbitlinepay = 'rabbitlinepay', Razorpay = 'razorpay', Scalapay = 'scalapay', @@ -333,8 +369,10 @@ export namespace TransactionSummary { Truemoney = 'truemoney', Trustly = 'trustly', Trustlyeurope = 'trustlyeurope', + Upi = 'upi', Vipps = 'vipps', Waave = 'waave', + Webpay = 'webpay', Wechat = 'wechat', Zippay = 'zippay' } diff --git a/model/transactionsReportSpec.ts b/model/transactionsReportSpec.ts new file mode 100644 index 0000000..60f09c7 --- /dev/null +++ b/model/transactionsReportSpec.ts @@ -0,0 +1,49 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionsReportSpecParams } from './transactionsReportSpecParams'; + +/** +* The specification of a transactions report. +*/ +export class TransactionsReportSpec { + /** + * The model (dataset) that the data used for the report is retrieved from. + */ + 'model': TransactionsReportSpec.ModelEnum; + 'params': TransactionsReportSpecParams; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "model", + "baseName": "model", + "type": "TransactionsReportSpec.ModelEnum" + }, + { + "name": "params", + "baseName": "params", + "type": "TransactionsReportSpecParams" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpec.attributeTypeMap; + } +} + +export namespace TransactionsReportSpec { + export enum ModelEnum { + Transactions = 'transactions' + } +} diff --git a/model/reportSpecParams.ts b/model/transactionsReportSpecParams.ts similarity index 79% rename from model/reportSpecParams.ts rename to model/transactionsReportSpecParams.ts index a744d83..3f262b6 100644 --- a/model/reportSpecParams.ts +++ b/model/transactionsReportSpecParams.ts @@ -11,17 +11,17 @@ */ import { RequestFile } from './models'; -import { ReportSpecParamsFilters } from './reportSpecParamsFilters'; +import { TransactionsReportSpecParamsFilters } from './transactionsReportSpecParamsFilters'; /** -* Parameters used to configure the report. Acceptable values for this property depend on the value specified for `model`. +* Parameters used to configure the report. */ -export class ReportSpecParams { +export class TransactionsReportSpecParams { /** * A list of fields for the report. */ - 'fields'?: Array; - 'filters'?: ReportSpecParamsFilters; + 'fields'?: Array; + 'filters'?: TransactionsReportSpecParamsFilters; /** * A list of fields to sort the report. */ @@ -33,12 +33,12 @@ export class ReportSpecParams { { "name": "fields", "baseName": "fields", - "type": "Array" + "type": "Array" }, { "name": "filters", "baseName": "filters", - "type": "ReportSpecParamsFilters" + "type": "TransactionsReportSpecParamsFilters" }, { "name": "sort", @@ -47,11 +47,11 @@ export class ReportSpecParams { } ]; static getAttributeTypeMap() { - return ReportSpecParams.attributeTypeMap; + return TransactionsReportSpecParams.attributeTypeMap; } } -export namespace ReportSpecParams { +export namespace TransactionsReportSpecParams { export enum FieldsEnum { Id = 'id', ExternalIdentifier = 'external_identifier', @@ -74,10 +74,11 @@ export namespace ReportSpecParams { AuthResponseCode = 'auth_response_code', RawResponseCode = 'raw_response_code', RawResponseDescription = 'raw_response_description', + ErrorCode = 'error_code', Metadata = 'metadata', + PaymentSource = 'payment_source', IsSubsequentPayment = 'is_subsequent_payment', MerchantInitiated = 'merchant_initiated', - PaymentSource = 'payment_source', ThreeDSecureStatus = 'three_d_secure_status', ThreeDSecureEci = 'three_d_secure_eci', ThreeDSecureAuthResp = 'three_d_secure_auth_resp', @@ -97,6 +98,13 @@ export namespace ReportSpecParams { BillingDetailsAddressLine2 = 'billing_details_address_line2', BillingDetailsAddressOrganization = 'billing_details_address_organization', BillingDetailsTaxId = 'billing_details_tax_id', - BillingDetailsTaxIdKind = 'billing_details_tax_id_kind' + BillingDetailsTaxIdKind = 'billing_details_tax_id_kind', + AuthorizedAmount = 'authorized_amount', + IntentOutcome = 'intent_outcome', + GiftCardRedemptionsAmount = 'gift_card_redemptions_amount', + GiftCardRedemptionRefundsAmount = 'gift_card_redemption_refunds_amount', + Settled = 'settled', + SettledCurrency = 'settled_currency', + SettledAmount = 'settled_amount' } } diff --git a/model/transactionsReportSpecParamsFilters.ts b/model/transactionsReportSpecParamsFilters.ts new file mode 100644 index 0000000..e18093d --- /dev/null +++ b/model/transactionsReportSpecParamsFilters.ts @@ -0,0 +1,305 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { TransactionRetriesReportSpecParamsFiltersCreatedAt } from './transactionRetriesReportSpecParamsFiltersCreatedAt'; +import { TransactionsReportSpecParamsFiltersAuthorizedAt } from './transactionsReportSpecParamsFiltersAuthorizedAt'; +import { TransactionsReportSpecParamsFiltersCapturedAt } from './transactionsReportSpecParamsFiltersCapturedAt'; +import { TransactionsReportSpecParamsFiltersUpdatedAt } from './transactionsReportSpecParamsFiltersUpdatedAt'; +import { TransactionsReportSpecParamsFiltersVoidedAt } from './transactionsReportSpecParamsFiltersVoidedAt'; + +/** +* The filters for the report. +*/ +export class TransactionsReportSpecParamsFilters { + /** + * A list of statuses to filter by. + */ + 'status'?: Array; + 'createdAt'?: TransactionRetriesReportSpecParamsFiltersCreatedAt; + 'updatedAt'?: TransactionsReportSpecParamsFiltersUpdatedAt; + 'authorizedAt'?: TransactionsReportSpecParamsFiltersAuthorizedAt; + 'capturedAt'?: TransactionsReportSpecParamsFiltersCapturedAt; + 'voidedAt'?: TransactionsReportSpecParamsFiltersVoidedAt; + /** + * A list of ISO-4217 currency codes to filter by. + */ + 'currency'?: Array; + /** + * A list of payment methods to filter by. + */ + 'method'?: Array; + /** + * A list of card schemes to filter by. + */ + 'scheme'?: Array; + /** + * A list of metadata as key-value pairs to filter by. + */ + 'metadata'?: Array; + /** + * A list of 3DS challenge statuses to filter by. + */ + 'threeDSecureStatus'?: Array; + /** + * A list of electric commerce indicators to filter by. + */ + 'threeDSecureEci'?: Array; + /** + * A list of 3DS responses to filter by. + */ + 'threeDSecureAuthResp'?: Array; + /** + * A list of payment sources to filter by. + */ + 'paymentSource'?: Array; + /** + * A flag indicating transactions initiated by the merchant to filter by. + */ + 'merchantInitiated'?: boolean; + /** + * A flag indicating transactions with subsequent payments to filter by. + */ + 'isSubsequentPayment'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "status", + "baseName": "status", + "type": "Array" + }, + { + "name": "createdAt", + "baseName": "created_at", + "type": "TransactionRetriesReportSpecParamsFiltersCreatedAt" + }, + { + "name": "updatedAt", + "baseName": "updated_at", + "type": "TransactionsReportSpecParamsFiltersUpdatedAt" + }, + { + "name": "authorizedAt", + "baseName": "authorized_at", + "type": "TransactionsReportSpecParamsFiltersAuthorizedAt" + }, + { + "name": "capturedAt", + "baseName": "captured_at", + "type": "TransactionsReportSpecParamsFiltersCapturedAt" + }, + { + "name": "voidedAt", + "baseName": "voided_at", + "type": "TransactionsReportSpecParamsFiltersVoidedAt" + }, + { + "name": "currency", + "baseName": "currency", + "type": "Array" + }, + { + "name": "method", + "baseName": "method", + "type": "Array" + }, + { + "name": "scheme", + "baseName": "scheme", + "type": "Array" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "Array" + }, + { + "name": "threeDSecureStatus", + "baseName": "three_d_secure_status", + "type": "Array" + }, + { + "name": "threeDSecureEci", + "baseName": "three_d_secure_eci", + "type": "Array" + }, + { + "name": "threeDSecureAuthResp", + "baseName": "three_d_secure_auth_resp", + "type": "Array" + }, + { + "name": "paymentSource", + "baseName": "payment_source", + "type": "Array" + }, + { + "name": "merchantInitiated", + "baseName": "merchant_initiated", + "type": "boolean" + }, + { + "name": "isSubsequentPayment", + "baseName": "is_subsequent_payment", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpecParamsFilters.attributeTypeMap; + } +} + +export namespace TransactionsReportSpecParamsFilters { + export enum StatusEnum { + Processing = 'processing', + BuyerApprovalPending = 'buyer_approval_pending', + AuthorizationSucceeded = 'authorization_succeeded', + AuthorizationFailed = 'authorization_failed', + AuthorizationDeclined = 'authorization_declined', + CapturePending = 'capture_pending', + CaptureSucceeded = 'capture_succeeded', + AuthorizationVoidPending = 'authorization_void_pending', + AuthorizationVoided = 'authorization_voided' + } + export enum MethodEnum { + Afterpay = 'afterpay', + Alipay = 'alipay', + Alipayhk = 'alipayhk', + Applepay = 'applepay', + Bacs = 'bacs', + Bancontact = 'bancontact', + Banked = 'banked', + Becs = 'becs', + Bitpay = 'bitpay', + Boleto = 'boleto', + Boost = 'boost', + Card = 'card', + Cashapp = 'cashapp', + Chaseorbital = 'chaseorbital', + CheckoutSession = 'checkout-session', + Clearpay = 'clearpay', + ClickToPay = 'click-to-pay', + Dana = 'dana', + Dcb = 'dcb', + Dlocal = 'dlocal', + Ebanx = 'ebanx', + Efecty = 'efecty', + Eps = 'eps', + Everydaypay = 'everydaypay', + Gcash = 'gcash', + Gem = 'gem', + Gemds = 'gemds', + GiftCard = 'gift-card', + Giropay = 'giropay', + Givingblock = 'givingblock', + Gocardless = 'gocardless', + Googlepay = 'googlepay', + GooglepayPanOnly = 'googlepay_pan_only', + Gopay = 'gopay', + Grabpay = 'grabpay', + Id = 'id', + Ideal = 'ideal', + Kakaopay = 'kakaopay', + Kcp = 'kcp', + Klarna = 'klarna', + Latitude = 'latitude', + Latitudeds = 'latitudeds', + Laybuy = 'laybuy', + Linepay = 'linepay', + Linkaja = 'linkaja', + Maybankqrpay = 'maybankqrpay', + Mercadopago = 'mercadopago', + Multibanco = 'multibanco', + Multipago = 'multipago', + Netbanking = 'netbanking', + NetworkToken = 'network-token', + Oney3x = 'oney_3x', + Oney4x = 'oney_4x', + Oney6x = 'oney_6x', + Oney10x = 'oney_10x', + Oney12x = 'oney_12x', + Ovo = 'ovo', + Oxxo = 'oxxo', + Payid = 'payid', + Paymaya = 'paymaya', + Paypal = 'paypal', + Paypalpaylater = 'paypalpaylater', + Payto = 'payto', + Venmo = 'venmo', + Pix = 'pix', + Pse = 'pse', + Rabbitlinepay = 'rabbitlinepay', + Razorpay = 'razorpay', + Scalapay = 'scalapay', + Sepa = 'sepa', + Shopeepay = 'shopeepay', + Singteldash = 'singteldash', + Smartpay = 'smartpay', + Sofort = 'sofort', + Spei = 'spei', + Stripedd = 'stripedd', + Thaiqr = 'thaiqr', + Touchngo = 'touchngo', + Truemoney = 'truemoney', + Trustly = 'trustly', + Trustlyeurope = 'trustlyeurope', + Upi = 'upi', + Vipps = 'vipps', + Waave = 'waave', + Webpay = 'webpay', + Wechat = 'wechat', + Zippay = 'zippay' + } + export enum SchemeEnum { + Accel = 'accel', + Amex = 'amex', + Bancontact = 'bancontact', + CarteBancaire = 'carte-bancaire', + Cirrus = 'cirrus', + Culiance = 'culiance', + Dankort = 'dankort', + DinersClub = 'diners-club', + Discover = 'discover', + EftposAustralia = 'eftpos-australia', + Elo = 'elo', + Hipercard = 'hipercard', + Jcb = 'jcb', + Maestro = 'maestro', + Mastercard = 'mastercard', + Mir = 'mir', + Nyce = 'nyce', + Other = 'other', + Pulse = 'pulse', + Rupay = 'rupay', + Star = 'star', + Uatp = 'uatp', + Unionpay = 'unionpay', + Visa = 'visa', + Null = 'null' + } + export enum ThreeDSecureStatusEnum { + SetupError = 'setup_error', + Error = 'error', + Declined = 'declined', + Cancelled = 'cancelled', + Complete = 'complete' + } + export enum PaymentSourceEnum { + Ecommerce = 'ecommerce', + Moto = 'moto', + Recurring = 'recurring', + Installment = 'installment', + CardOnFile = 'card_on_file' + } +} diff --git a/model/transactionsReportSpecParamsFiltersAuthorizedAt.ts b/model/transactionsReportSpecParamsFiltersAuthorizedAt.ts new file mode 100644 index 0000000..9833b05 --- /dev/null +++ b/model/transactionsReportSpecParamsFiltersAuthorizedAt.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the transactions were authorized to filter by. +*/ +export class TransactionsReportSpecParamsFiltersAuthorizedAt { + /** + * The starting boundary for when the transactions were authorized as either a date-time or date-time placeholder value. + */ + 'start'?: string; + /** + * The ending boundary for when the transactions were authorized as either a date-time or date-time placeholder value. + */ + 'end'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "string" + }, + { + "name": "end", + "baseName": "end", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpecParamsFiltersAuthorizedAt.attributeTypeMap; + } +} + diff --git a/model/transactionsReportSpecParamsFiltersCapturedAt.ts b/model/transactionsReportSpecParamsFiltersCapturedAt.ts new file mode 100644 index 0000000..2389219 --- /dev/null +++ b/model/transactionsReportSpecParamsFiltersCapturedAt.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the transactions were captured to filter by. +*/ +export class TransactionsReportSpecParamsFiltersCapturedAt { + /** + * The starting boundary for when the transactions were captured as either a date-time or date-time placeholder value. + */ + 'start'?: string; + /** + * The ending boundary for when the transactions were captured as either a date-time or date-time placeholder value. + */ + 'end'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "string" + }, + { + "name": "end", + "baseName": "end", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpecParamsFiltersCapturedAt.attributeTypeMap; + } +} + diff --git a/model/transactionsReportSpecParamsFiltersUpdatedAt.ts b/model/transactionsReportSpecParamsFiltersUpdatedAt.ts new file mode 100644 index 0000000..7034035 --- /dev/null +++ b/model/transactionsReportSpecParamsFiltersUpdatedAt.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the data was last updated to filter by. +*/ +export class TransactionsReportSpecParamsFiltersUpdatedAt { + /** + * The starting boundary for when the data was updated as either a date-time or date-time placeholder value. + */ + 'start'?: string; + /** + * The ending boundary for when the data was updated as either a date-time or date-time placeholder value. + */ + 'end'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "string" + }, + { + "name": "end", + "baseName": "end", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpecParamsFiltersUpdatedAt.attributeTypeMap; + } +} + diff --git a/model/transactionsReportSpecParamsFiltersVoidedAt.ts b/model/transactionsReportSpecParamsFiltersVoidedAt.ts new file mode 100644 index 0000000..e07bb37 --- /dev/null +++ b/model/transactionsReportSpecParamsFiltersVoidedAt.ts @@ -0,0 +1,46 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* The time window for when the transactions were voided to filter by. +*/ +export class TransactionsReportSpecParamsFiltersVoidedAt { + /** + * The starting boundary for when the transactions were voided as either a date-time or date-time placeholder value. + */ + 'start'?: string; + /** + * The ending boundary for when the transactions were voided as either a date-time or date-time placeholder value. + */ + 'end'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "start", + "baseName": "start", + "type": "string" + }, + { + "name": "end", + "baseName": "end", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionsReportSpecParamsFiltersVoidedAt.attributeTypeMap; + } +} + diff --git a/model/webhookSubscription.ts b/model/webhookSubscription.ts new file mode 100644 index 0000000..abdceae --- /dev/null +++ b/model/webhookSubscription.ts @@ -0,0 +1,91 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { WebhookSubscriptionAuthentication } from './webhookSubscriptionAuthentication'; + +export class WebhookSubscription { + /** + * `webhook-subscription`. + */ + 'type'?: WebhookSubscription.TypeEnum; + /** + * The unique Gr4vy ID for this webhook subscription. + */ + 'id'?: string; + /** + * The unique ID for a merchant account. + */ + 'merchantAccountId'?: string | null; + /** + * Defines if this subscription is currently active or not. When deactivated, webhook events are not sent to the endpoint configured for this subscription. + */ + 'active'?: boolean; + /** + * The URL of the endpoint to deliver webhook events to. + */ + 'url'?: string; + 'authentication'?: WebhookSubscriptionAuthentication | null; + /** + * The active secret value. + */ + 'secret'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "WebhookSubscription.TypeEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantAccountId", + "baseName": "merchant_account_id", + "type": "string" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "authentication", + "baseName": "authentication", + "type": "WebhookSubscriptionAuthentication" + }, + { + "name": "secret", + "baseName": "secret", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscription.attributeTypeMap; + } +} + +export namespace WebhookSubscription { + export enum TypeEnum { + WebhookSubscription = 'webhook-subscription' + } +} diff --git a/model/webhookSubscriptionAuthentication.ts b/model/webhookSubscriptionAuthentication.ts new file mode 100644 index 0000000..70fe80c --- /dev/null +++ b/model/webhookSubscriptionAuthentication.ts @@ -0,0 +1,57 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +export class WebhookSubscriptionAuthentication { + /** + * Only `basic`` is currently supported. + */ + 'kind'?: WebhookSubscriptionAuthentication.KindEnum; + /** + * The basic authentication username to use for authentication. + */ + 'username'?: string | null; + /** + * The basic authentication password to use for authentication. + */ + 'password'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "kind", + "baseName": "kind", + "type": "WebhookSubscriptionAuthentication.KindEnum" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscriptionAuthentication.attributeTypeMap; + } +} + +export namespace WebhookSubscriptionAuthentication { + export enum KindEnum { + Basic = 'basic' + } +} diff --git a/model/webhookSubscriptionRequest.ts b/model/webhookSubscriptionRequest.ts new file mode 100644 index 0000000..f028bc3 --- /dev/null +++ b/model/webhookSubscriptionRequest.ts @@ -0,0 +1,50 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { WebhookSubscriptionAuthentication } from './webhookSubscriptionAuthentication'; + +export class WebhookSubscriptionRequest { + /** + * Defines if this subscription is currently active or not. When deactivated, webhook events are not sent to the endpoint configured for this subscription. + */ + 'active'?: boolean; + /** + * The URL of the endpoint to deliver webhook events to. + */ + 'url'?: string; + 'authentication'?: WebhookSubscriptionAuthentication | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "authentication", + "baseName": "authentication", + "type": "WebhookSubscriptionAuthentication" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscriptionRequest.attributeTypeMap; + } +} + diff --git a/model/webhookSubscriptionRotateSecretRequest.ts b/model/webhookSubscriptionRotateSecretRequest.ts new file mode 100644 index 0000000..98c2a5e --- /dev/null +++ b/model/webhookSubscriptionRotateSecretRequest.ts @@ -0,0 +1,37 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; + +/** +* A request to rotate the secret of a webhook subscription. +*/ +export class WebhookSubscriptionRotateSecretRequest { + /** + * Delta time in minutes to expire existing secret if any. If not set or set to zero it will expire immediately. + */ + 'delta'?: number | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "delta", + "baseName": "delta", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscriptionRotateSecretRequest.attributeTypeMap; + } +} + diff --git a/model/webhookSubscriptionUpdateRequest.ts b/model/webhookSubscriptionUpdateRequest.ts new file mode 100644 index 0000000..45c066c --- /dev/null +++ b/model/webhookSubscriptionUpdateRequest.ts @@ -0,0 +1,50 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { WebhookSubscriptionAuthentication } from './webhookSubscriptionAuthentication'; + +export class WebhookSubscriptionUpdateRequest { + /** + * Defines if this subscription is currently active or not. When deactivated, webhook events are not sent to the endpoint configured for this subscription. + */ + 'active'?: boolean | null; + /** + * The URL of the endpoint to deliver webhook events to. + */ + 'url'?: string | null; + 'authentication'?: WebhookSubscriptionAuthentication | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "authentication", + "baseName": "authentication", + "type": "WebhookSubscriptionAuthentication" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscriptionUpdateRequest.attributeTypeMap; + } +} + diff --git a/model/webhookSubscriptions.ts b/model/webhookSubscriptions.ts new file mode 100644 index 0000000..854716c --- /dev/null +++ b/model/webhookSubscriptions.ts @@ -0,0 +1,62 @@ +/** + * Gr4vy API + * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. + * + * The version of the OpenAPI document: 1.1.0-beta + * Contact: code@gr4vy.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from './models'; +import { WebhookSubscription } from './webhookSubscription'; + +export class WebhookSubscriptions { + /** + * A list of webhook subscriptions. + */ + 'items'?: Array; + /** + * The limit applied to request. This represents the number of items that are at maximum returned by this request. + */ + 'limit'?: number = 20; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'nextCursor'?: string | null; + /** + * The cursor that represents the next page of results. Use the `cursor` query parameter to fetch this page of items. + */ + 'previousCursor'?: string | null; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "limit", + "baseName": "limit", + "type": "number" + }, + { + "name": "nextCursor", + "baseName": "next_cursor", + "type": "string" + }, + { + "name": "previousCursor", + "baseName": "previous_cursor", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return WebhookSubscriptions.attributeTypeMap; + } +} + diff --git a/package.json b/package.json index 578c06c..58a30ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gr4vy/node", - "version": "1.1.0", + "version": "1.1.1", "description": "NodeJS client for @gr4vy/node", "repository": { "type": "git", diff --git a/sdk/transactions.test.ts b/sdk/transactions.test.ts index a8fb7df..26241c5 100644 --- a/sdk/transactions.test.ts +++ b/sdk/transactions.test.ts @@ -9,7 +9,7 @@ const client = getTestClient() const AMOUNT = 1299 let transactionId -jest.setTimeout(30000) +jest.setTimeout(80000) const transactionRequest = new TransactionRequest() transactionRequest.amount = AMOUNT