/** Provider platform event */ interface ProviderPlatformEvent$1 extends ProviderPlatformEventResourceOneOf$1 { /** Refund event data. */ refund?: RefundEvent$1; /** Transaction event data. */ transaction?: TransactionEvent$1; /** * This field is ignored, do not send it. * @deprecated */ pluginId?: string; } /** @oneof */ interface ProviderPlatformEventResourceOneOf$1 { /** Refund event data. */ refund?: RefundEvent$1; /** Transaction event data. */ transaction?: TransactionEvent$1; } interface RefundEvent$1 { /** 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$1 { /** 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$1; /** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */ cardDetails?: CardDetails$1; } interface CredentialsOnFile$1 extends CredentialsOnFileInfoOneOf$1 { /** Network token data. */ cardReference?: CardReference$1; /** Provider generated token data. */ paymentMethodReference?: PaymentMethodReference$1; } /** @oneof */ interface CredentialsOnFileInfoOneOf$1 { /** Network token data. */ cardReference?: CardReference$1; /** Provider generated token data. */ paymentMethodReference?: PaymentMethodReference$1; } interface CardReference$1 { /** Network token. */ networkTransactionId?: string; /** Directory Server transaction ID */ dsTransactionId?: string | null; } interface PaymentMethodReference$1 { /** Payment method token created by the PSP. */ token?: string; } interface CardDetails$1 { /** Issuer (business) identification number. First 6 or 8 digits of the card's number. */ bin?: string | null; /** Last 4 digits of the card's number. */ lastFour?: string | null; } /** Submit event request */ interface SubmitEventRequest$1 { /** Event data. */ event: ProviderPlatformEvent$1; } /** Submit event response */ interface SubmitEventResponse$1 { } /** Provider platform event */ interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf { /** Refund event data. */ refund?: RefundEvent; /** Transaction event data. */ transaction?: TransactionEvent; /** * This field is ignored, do not send it. * @deprecated */ pluginId?: string; } /** @oneof */ interface ProviderPlatformEventResourceOneOf { /** Refund event data. */ refund?: RefundEvent; /** Transaction event data. */ transaction?: TransactionEvent; } 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; } interface CredentialsOnFile extends CredentialsOnFileInfoOneOf { /** Network token data. */ cardReference?: CardReference; /** Provider generated token data. */ paymentMethodReference?: PaymentMethodReference; } /** @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; } 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. */ bin?: string | null; /** Last 4 digits of the card's number. */ lastFour?: 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, SubmitEventRequest$1, SubmitEventResponse, SubmitEventResponse$1>; export { type __PublicMethodMetaInfo, submitEvent };