import { SubmitEventRequest as SubmitEventRequest$1, SubmitEventResponse as SubmitEventResponse$1 } from './index.typings.js'; /** Provider platform event */ interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf { /** Refund event data. */ refund?: RefundEvent; /** Transaction event data. */ transaction?: TransactionEvent; /** Capture event data. */ capture?: CaptureEvent; /** Void event data. */ void?: VoidEvent; /** * This field is deprecated. * @deprecated */ pluginId?: string; /** * Wix site ID. * @format GUID */ siteId?: string | null; } /** @oneof */ interface ProviderPlatformEventResourceOneOf { /** Refund event data. */ refund?: RefundEvent; /** Transaction event data. */ transaction?: TransactionEvent; /** Capture event data. */ capture?: CaptureEvent; /** Void event data. */ void?: VoidEvent; } interface RefundEvent { /** Wix transaction ID. */ wixTransactionId?: string; /** PSP refund ID. */ pluginRefundId?: string; /** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes#all-apis_provider-platform_reason-codes_refund-declined) indicating a failed request. */ reasonCode?: number; /** Refunded amount. */ amount?: string; /** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */ wixRefundId?: string | null; /** PSP-specific error code. */ errorCode?: string | null; /** PSP-specific error message. */ errorMessage?: string | null; } interface TransactionEvent { /** Wix transaction ID. */ wixTransactionId?: string; /** PSP transaction ID. */ pluginTransactionId?: string; /** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */ reasonCode?: number; /** PSP-specific error code. */ errorCode?: string | null; /** PSP-specific error message. */ errorMessage?: string | null; /** Token data for stored payment method. */ credentialsOnFile?: CredentialsOnFile; /** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */ cardDetails?: CardDetails; /** * Total amount authorized in a currency's minor units. Required for partial authorization events. * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies). */ authorizedAmount?: string | null; } interface CredentialsOnFile extends CredentialsOnFileInfoOneOf { /** Network token data. */ cardReference?: CardReference; /** Provider generated token data. */ paymentMethodReference?: PaymentMethodReference; /** * Payment method (for example `creditCard`) to use for future payments, when it differs from the current one. * @minLength 1 * @maxLength 100 */ paymentMethod?: string | null; } /** @oneof */ interface CredentialsOnFileInfoOneOf { /** Network token data. */ cardReference?: CardReference; /** Provider generated token data. */ paymentMethodReference?: PaymentMethodReference; } interface CardReference { /** Network token. */ networkTransactionId?: string; /** Directory Server transaction ID */ dsTransactionId?: string | null; /** * Transaction Link Identifier assigned by Mastercard. * @minLength 1 * @maxLength 22 */ transactionLinkId?: string | null; } interface PaymentMethodReference { /** Payment method token created by the PSP. */ token?: string; } interface CardDetails { /** * Issuer (business) identification number. First 6 or 8 digits of the card's number. * @minLength 6 * @maxLength 8 */ bin?: string | null; /** * Last 4 digits of the card's number. * @minLength 4 * @maxLength 4 */ lastFour?: string | null; } interface CaptureEvent { /** * Wix transaction ID. * @format GUID */ wixTransactionId?: string; /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status. */ reasonCode?: number; /** * Total amount captured in a currency’s minor units. * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies). */ amount?: string; /** * PSP-specific error code. * @maxLength 50 */ errorCode?: string | null; /** * PSP-specific error message. * @maxLength 300 */ errorMessage?: string | null; } interface VoidEvent { /** * Wix transaction ID. * @format GUID */ wixTransactionId?: string; /** Wix [reason code](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/reason-codes) indicating request's status. */ reasonCode?: number; /** * Total amount voided in a currency’s minor units. * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies). */ amount?: string; /** * PSP-specific error code. * @maxLength 50 */ errorCode?: string | null; /** * PSP-specific error message. * @maxLength 300 */ errorMessage?: string | null; } /** Submit event request */ interface SubmitEventRequest { /** Event data. */ event: ProviderPlatformEvent; } /** Submit event response */ interface SubmitEventResponse { } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function submitEvent(): __PublicMethodMetaInfo<'POST', {}, SubmitEventRequest$1, SubmitEventRequest, SubmitEventResponse$1, SubmitEventResponse>; export { type CaptureEvent as CaptureEventOriginal, type CardDetails as CardDetailsOriginal, type CardReference as CardReferenceOriginal, type CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOfOriginal, type CredentialsOnFile as CredentialsOnFileOriginal, type PaymentMethodReference as PaymentMethodReferenceOriginal, type ProviderPlatformEvent as ProviderPlatformEventOriginal, type ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOfOriginal, type RefundEvent as RefundEventOriginal, type SubmitEventRequest as SubmitEventRequestOriginal, type SubmitEventResponse as SubmitEventResponseOriginal, type TransactionEvent as TransactionEventOriginal, type VoidEvent as VoidEventOriginal, type __PublicMethodMetaInfo, submitEvent };