@wix/auto_sdk_payments_psp-callbacks 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/index.d.mts +24 -0
  2. package/build/index.d.ts +24 -0
  3. package/build/index.js +414 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +387 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +24 -0
  8. package/build/internal/index.d.ts +24 -0
  9. package/build/internal/index.js +414 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +387 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +168 -0
  14. package/build/internal/meta.d.ts +168 -0
  15. package/build/internal/meta.js +393 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +366 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts} +15 -13
  20. package/build/internal/{cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts} +15 -13
  21. package/build/meta.d.mts +168 -0
  22. package/build/meta.d.ts +168 -0
  23. package/build/meta.js +393 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +366 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts} +15 -13
  28. package/build/{es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts → payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts} +15 -13
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
  40. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -7
  41. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
  42. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
  43. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -354
  44. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
  45. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
  46. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -47
  47. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
  48. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
  49. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -12
  50. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
  51. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -3
  52. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
  53. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
  54. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -67
  55. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
  67. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -4
  68. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
  69. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
  70. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -350
  71. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
  72. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
  73. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -20
  74. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
  75. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
  76. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -8
  77. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
  78. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -2
  79. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
  80. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
  81. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -40
  82. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
  93. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -7
  94. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
  95. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
  96. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -354
  97. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
  98. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
  99. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -47
  100. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
  101. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
  102. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -12
  103. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
  104. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -3
  105. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
  106. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
  107. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -67
  108. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +0 -4
  119. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +0 -4
  120. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +0 -1
  121. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +0 -12
  122. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +0 -350
  123. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +0 -1
  124. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +0 -13
  125. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +0 -20
  126. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +0 -1
  127. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +0 -22
  128. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +0 -8
  129. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +0 -1
  130. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +0 -2
  131. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +0 -1
  132. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +0 -169
  133. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +0 -40
  134. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +0 -1
@@ -1,13 +0,0 @@
1
- import * as ambassadorWixPaymentsPspV1ProviderPlatformEventTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.types.js';
2
- import * as ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function submitEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventRequest, ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventRequest, ambassadorWixPaymentsPspV1ProviderPlatformEventUniversalTypes.SubmitEventResponse, ambassadorWixPaymentsPspV1ProviderPlatformEventTypes.SubmitEventResponse>;
@@ -1,20 +0,0 @@
1
- import * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';
2
- export function submitEvent() {
3
- const payload = {};
4
- const getRequestOptions = ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);
5
- const getUrl = (context) => {
6
- const { url } = getRequestOptions(context);
7
- return url;
8
- };
9
- return {
10
- getUrl,
11
- httpMethod: 'POST',
12
- path: '/payments/v1/provider-platform-events',
13
- pathParams: {},
14
- __requestType: null,
15
- __originalRequestType: null,
16
- __responseType: null,
17
- __originalResponseType: null,
18
- };
19
- }
20
- //# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.meta.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,+CAA+C,MAAM,iEAAiE,CAAC;AAsBnI,MAAM,UAAU,WAAW;IAQzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+CAA+C,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,22 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function submitEvent(httpClient: HttpClient): SubmitEventSignature;
7
- interface SubmitEventSignature {
8
- /**
9
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
10
- *
11
- * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.
12
- * PSP's create their own version numbers.
13
- *
14
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
15
- * > with the OAuth 2.0 client credentials flow for a specific scope.
16
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
17
- * @param - Event data.
18
- * @returns Submit event response
19
- */
20
- (event: ProviderPlatformEvent): Promise<void>;
21
- }
22
- export { CaptureEvent, CardDetails, CardReference, CredentialsOnFile, CredentialsOnFileInfoOneOf, PaymentMethodReference, ProviderPlatformEvent, ProviderPlatformEventResourceOneOf, RefundEvent, SubmitEventRequest, SubmitEventResponse, TransactionEvent, VoidEvent, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
@@ -1,8 +0,0 @@
1
- import { submitEvent as universalSubmitEvent, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
2
- export const __metadata = { PACKAGE_NAME: '@wix/payments' };
3
- export function submitEvent(httpClient) {
4
- return (event) => universalSubmitEvent(event,
5
- // @ts-ignore
6
- { httpClient });
7
- }
8
- //# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.public.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.public.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,IAAI,oBAAoB,GACpC,MAAM,sEAAsE,CAAC;AAE9E,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,KAA4B,EAAE,EAAE,CACtC,oBAAoB,CAClB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.types.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.types.ts"],"names":[],"mappings":""}
@@ -1,169 +0,0 @@
1
- /** Provider platform event */
2
- export interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
3
- /** Refund event data. */
4
- refund?: RefundEvent;
5
- /** Transaction event data. */
6
- transaction?: TransactionEvent;
7
- /** Capture event data. */
8
- capture?: CaptureEvent;
9
- /** Void event data. */
10
- void?: VoidEvent;
11
- /**
12
- * This field is deprecated.
13
- * @deprecated
14
- */
15
- pluginId?: string;
16
- }
17
- /** @oneof */
18
- export interface ProviderPlatformEventResourceOneOf {
19
- /** Refund event data. */
20
- refund?: RefundEvent;
21
- /** Transaction event data. */
22
- transaction?: TransactionEvent;
23
- /** Capture event data. */
24
- capture?: CaptureEvent;
25
- /** Void event data. */
26
- void?: VoidEvent;
27
- }
28
- export interface RefundEvent {
29
- /** Wix transaction ID. */
30
- wixTransactionId?: string;
31
- /** PSP refund ID. */
32
- pluginRefundId?: string;
33
- /** 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. */
34
- reasonCode?: number;
35
- /** Refunded amount. */
36
- amount?: string;
37
- /** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
38
- wixRefundId?: string | null;
39
- /** PSP-specific error code. */
40
- errorCode?: string | null;
41
- /** PSP-specific error message. */
42
- errorMessage?: string | null;
43
- }
44
- export interface TransactionEvent {
45
- /** Wix transaction ID. */
46
- wixTransactionId?: string;
47
- /** PSP transaction ID. */
48
- pluginTransactionId?: string;
49
- /** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
50
- reasonCode?: number;
51
- /** PSP-specific error code. */
52
- errorCode?: string | null;
53
- /** PSP-specific error message. */
54
- errorMessage?: string | null;
55
- /** Token data for stored payment method. */
56
- credentialsOnFile?: CredentialsOnFile;
57
- /** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
58
- cardDetails?: CardDetails;
59
- }
60
- export interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {
61
- /** Network token data. */
62
- cardReference?: CardReference;
63
- /** Provider generated token data. */
64
- paymentMethodReference?: PaymentMethodReference;
65
- }
66
- /** @oneof */
67
- export interface CredentialsOnFileInfoOneOf {
68
- /** Network token data. */
69
- cardReference?: CardReference;
70
- /** Provider generated token data. */
71
- paymentMethodReference?: PaymentMethodReference;
72
- }
73
- export interface CardReference {
74
- /** Network token. */
75
- networkTransactionId?: string;
76
- /** Directory Server transaction ID */
77
- dsTransactionId?: string | null;
78
- }
79
- export interface PaymentMethodReference {
80
- /** Payment method token created by the PSP. */
81
- token?: string;
82
- }
83
- export interface CardDetails {
84
- /**
85
- * Issuer (business) identification number. First 6 or 8 digits of the card's number.
86
- * @minLength 6
87
- * @maxLength 8
88
- */
89
- bin?: string | null;
90
- /**
91
- * Last 4 digits of the card's number.
92
- * @minLength 4
93
- * @maxLength 4
94
- */
95
- lastFour?: string | null;
96
- }
97
- export interface CaptureEvent {
98
- /**
99
- * Wix transaction ID.
100
- * @format GUID
101
- */
102
- wixTransactionId?: string;
103
- /** 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. */
104
- reasonCode?: number;
105
- /**
106
- * Total amount captured in a currency’s minor units.
107
- * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
108
- */
109
- amount?: string;
110
- /**
111
- * PSP-specific error code.
112
- * @maxLength 50
113
- */
114
- errorCode?: string | null;
115
- /**
116
- * PSP-specific error message.
117
- * @maxLength 300
118
- */
119
- errorMessage?: string | null;
120
- }
121
- export interface VoidEvent {
122
- /**
123
- * Wix transaction ID.
124
- * @format GUID
125
- */
126
- wixTransactionId?: string;
127
- /** 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. */
128
- reasonCode?: number;
129
- /**
130
- * Total amount voided in a currency’s minor units.
131
- * Learn more about [currencies](https://dev.wix.com/docs/rest/business-management/payments/service-plugins/payment-service-provider-service-plugin/currencies).
132
- */
133
- amount?: string;
134
- /**
135
- * PSP-specific error code.
136
- * @maxLength 50
137
- */
138
- errorCode?: string | null;
139
- /**
140
- * PSP-specific error message.
141
- * @maxLength 300
142
- */
143
- errorMessage?: string | null;
144
- }
145
- /** Submit event request */
146
- export interface SubmitEventRequest {
147
- /** Event data. */
148
- event: ProviderPlatformEvent;
149
- }
150
- /** Submit event response */
151
- export interface SubmitEventResponse {
152
- }
153
- /**
154
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
155
- *
156
- * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.
157
- * PSP's create their own version numbers.
158
- *
159
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
160
- * > with the OAuth 2.0 client credentials flow for a specific scope.
161
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
162
- * @param event - Event data.
163
- * @public
164
- * @requiredField event
165
- * @permissionId CASHIER.GET_ACCESS
166
- * @returns Submit event response
167
- * @fqn wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent
168
- */
169
- export declare function submitEvent(event: ProviderPlatformEvent): Promise<void>;
@@ -1,40 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixPaymentsPspV1ProviderPlatformEvent from './payments-psp-v1-provider-platform-event-psp-callbacks.http.js';
4
- /**
5
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
6
- *
7
- * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.
8
- * PSP's create their own version numbers.
9
- *
10
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
11
- * > with the OAuth 2.0 client credentials flow for a specific scope.
12
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
13
- * @param event - Event data.
14
- * @public
15
- * @requiredField event
16
- * @permissionId CASHIER.GET_ACCESS
17
- * @returns Submit event response
18
- * @fqn wix.payments.v1.provider_platform_events.ProviderPlatformEventsService.SubmitEvent
19
- */
20
- export async function submitEvent(event) {
21
- // @ts-ignore
22
- const { httpClient, sideEffects } = arguments[1];
23
- const payload = renameKeysFromSDKRequestToRESTRequest({ event: event });
24
- const reqOpts = ambassadorWixPaymentsPspV1ProviderPlatformEvent.submitEvent(payload);
25
- sideEffects?.onSiteCall?.();
26
- try {
27
- const result = await httpClient.request(reqOpts);
28
- sideEffects?.onSuccess?.(result);
29
- }
30
- catch (err) {
31
- const transformedError = sdkTransformError(err, {
32
- spreadPathsToArguments: {},
33
- explicitPathsToArguments: { event: '$[0]' },
34
- singleArgumentUnchanged: false,
35
- }, ['event']);
36
- sideEffects?.onError?.(err);
37
- throw transformedError;
38
- }
39
- }
40
- //# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.universal.js","sourceRoot":"","sources":["../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,KAAK,+CAA+C,MAAM,iEAAiE,CAAC;AAuKnI;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAA4B;IAC5D,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,qCAAqC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAExE,MAAM,OAAO,GACX,+CAA+C,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAEvE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YAC3C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,CAAC,CACV,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yGAAuF"}
@@ -1 +0,0 @@
1
- export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2GAAyF"}
@@ -1 +0,0 @@
1
- export * from './src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js"), exports);
18
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sGAAoF"}
@@ -1,4 +0,0 @@
1
- import { submitEvent as publicSubmitEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.public.js';
2
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
- export declare const submitEvent: MaybeContext<BuildRESTFunction<typeof publicSubmitEvent> & typeof publicSubmitEvent>;
4
- export { ProviderPlatformEvent, ProviderPlatformEventResourceOneOf, RefundEvent, TransactionEvent, CredentialsOnFile, CredentialsOnFileInfoOneOf, CardReference, PaymentMethodReference, CardDetails, CaptureEvent, VoidEvent, SubmitEventRequest, SubmitEventResponse, } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal.js';
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.submitEvent = void 0;
4
- const payments_psp_v1_provider_platform_event_psp_callbacks_public_js_1 = require("./payments-psp-v1-provider-platform-event-psp-callbacks.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- exports.submitEvent = (0, rest_modules_1.createRESTModule)(payments_psp_v1_provider_platform_event_psp_callbacks_public_js_1.submitEvent);
7
- //# sourceMappingURL=payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"payments-psp-v1-provider-platform-event-psp-callbacks.context.js","sourceRoot":"","sources":["../../../../src/payments-psp-v1-provider-platform-event-psp-callbacks.context.ts"],"names":[],"mappings":";;;AAAA,uJAAqH;AACrH,gEAAiE;AAGpD,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,6EAAiB,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /**
3
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
4
- *
5
- * Calls to this endpoint must include a `User-Agent` header with the name of the PSP and the integration version in this format: `{PSP}/{version}`.
6
- * PSP's create their own version numbers.
7
- *
8
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
9
- * > with the OAuth 2.0 client credentials flow for a specific scope.
10
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
11
- */
12
- export declare function submitEvent(payload: object): RequestOptionsFactory<any>;