@wix/auto_sdk_payments_psp-callbacks 1.0.8 → 1.0.10

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 (131) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  11. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
  12. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  13. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  14. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +350 -0
  15. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  16. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  17. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
  18. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  19. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  20. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
  21. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  22. package/build/{internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts → cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  23. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
  24. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  25. package/build/{internal/meta.d.mts → cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts} +30 -29
  26. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
  27. package/build/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  38. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
  39. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  40. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  41. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +346 -0
  42. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  43. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  44. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
  45. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  46. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  47. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
  48. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  49. package/build/{internal/payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts → es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  50. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
  51. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  52. package/build/{internal/meta.d.ts → es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts} +30 -29
  53. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
  54. package/build/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  65. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +7 -0
  66. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  67. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  68. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +350 -0
  69. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  70. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  71. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +47 -0
  72. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  73. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  74. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +12 -0
  75. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  76. package/build/{payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.mts → internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  77. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +3 -0
  78. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  79. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +169 -0
  80. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +67 -0
  81. package/build/internal/cjs/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.d.ts +4 -0
  92. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js +4 -0
  93. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.context.js.map +1 -0
  94. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.d.ts +12 -0
  95. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js +346 -0
  96. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.http.js.map +1 -0
  97. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.d.ts +13 -0
  98. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js +20 -0
  99. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.meta.js.map +1 -0
  100. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.d.ts +22 -0
  101. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js +8 -0
  102. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.public.js.map +1 -0
  103. package/build/{payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.d.ts → internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.d.ts} +13 -15
  104. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js +2 -0
  105. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.types.js.map +1 -0
  106. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.d.ts +169 -0
  107. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js +40 -0
  108. package/build/internal/es/src/payments-psp-v1-provider-platform-event-psp-callbacks.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -24
  111. package/build/index.d.ts +0 -24
  112. package/build/index.js +0 -410
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -383
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -24
  117. package/build/internal/index.d.ts +0 -24
  118. package/build/internal/index.js +0 -410
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -383
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.js +0 -389
  123. package/build/internal/meta.js.map +0 -1
  124. package/build/internal/meta.mjs +0 -362
  125. package/build/internal/meta.mjs.map +0 -1
  126. package/build/meta.d.mts +0 -168
  127. package/build/meta.d.ts +0 -168
  128. package/build/meta.js +0 -389
  129. package/build/meta.js.map +0 -1
  130. package/build/meta.mjs +0 -362
  131. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,169 @@
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>;
@@ -0,0 +1,40 @@
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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_payments_psp-callbacks",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
7
7
  },
8
8
  "keywords": [],
9
9
  "sideEffects": false,
10
- "main": "/build/index.js",
11
- "types": "./build/index.d.mts",
10
+ "main": "./build/cjs/index.js",
11
+ "types": "./build/es/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./build/index.mjs",
15
- "require": "./build/index.js",
16
- "types": "./build/index.d.mts"
14
+ "import": "./build/es/index.js",
15
+ "require": "./build/cjs/index.js",
16
+ "types": "./build/es/index.d.ts"
17
17
  },
18
18
  "./package.json": "./package.json",
19
19
  "./meta": {
20
- "import": "./build/meta.mjs",
21
- "require": "./build/meta.js",
22
- "types": "./build/meta.d.mts"
20
+ "import": "./build/es/meta.js",
21
+ "require": "./build/cjs/meta.js",
22
+ "types": "./build/es/meta.d.ts"
23
23
  }
24
24
  },
25
25
  "files": [
@@ -32,11 +32,10 @@
32
32
  "@wix/sdk-types": "^1.13.16"
33
33
  },
34
34
  "devDependencies": {
35
- "tsup": "^8.4.0",
36
35
  "typescript": "^5.3.2"
37
36
  },
38
37
  "scripts": {
39
- "build": "tsup",
38
+ "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
40
39
  "test": ":"
41
40
  },
42
41
  "wix": {
@@ -49,5 +48,5 @@
49
48
  "fqdn": "wix.payments.psp.v1.provider_platform_event"
50
49
  }
51
50
  },
52
- "falconPackageHash": "1a6f44355a9574b097e3f6348694b2f087f445a2e323e9d81e844e0c"
51
+ "falconPackageHash": "9334877e5373d631d58847acaa6c3c6007d43edf778691e909143710"
53
52
  }
package/build/index.d.mts DELETED
@@ -1,24 +0,0 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { P as ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.mjs';
3
- export { f as CaptureEvent, e as CardDetails, c as CardReference, C as CredentialsOnFile, b as CredentialsOnFileInfoOneOf, d as PaymentMethodReference, a as ProviderPlatformEventResourceOneOf, R as RefundEvent, S as SubmitEventRequest, g as SubmitEventResponse, T as TransactionEvent, V as VoidEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.mjs';
4
-
5
- declare function submitEvent$1(httpClient: HttpClient): SubmitEventSignature;
6
- interface SubmitEventSignature {
7
- /**
8
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
9
- *
10
- * 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}`.
11
- * PSP's create their own version numbers.
12
- *
13
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
14
- * > with the OAuth 2.0 client credentials flow for a specific scope.
15
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
16
- * @param - Event data.
17
- * @returns Submit event response
18
- */
19
- (event: ProviderPlatformEvent): Promise<void>;
20
- }
21
-
22
- declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
23
-
24
- export { ProviderPlatformEvent, submitEvent };
package/build/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { P as ProviderPlatformEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.js';
3
- export { f as CaptureEvent, e as CardDetails, c as CardReference, C as CredentialsOnFile, b as CredentialsOnFileInfoOneOf, d as PaymentMethodReference, a as ProviderPlatformEventResourceOneOf, R as RefundEvent, S as SubmitEventRequest, g as SubmitEventResponse, T as TransactionEvent, V as VoidEvent } from './payments-psp-v1-provider-platform-event-psp-callbacks.universal-CEQHoEoO.js';
4
-
5
- declare function submitEvent$1(httpClient: HttpClient): SubmitEventSignature;
6
- interface SubmitEventSignature {
7
- /**
8
- * This Wix API is used by a Payment Service Provider (PSP) to send webhooks about payment and refund states to Wix.
9
- *
10
- * 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}`.
11
- * PSP's create their own version numbers.
12
- *
13
- * > You cannot try out this endpoint because an `Authorization` header value has to be obtained
14
- * > with the OAuth 2.0 client credentials flow for a specific scope.
15
- * > So please ignore the **Authorization** section below as well as the **Try It Out** button.
16
- * @param - Event data.
17
- * @returns Submit event response
18
- */
19
- (event: ProviderPlatformEvent): Promise<void>;
20
- }
21
-
22
- declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
23
-
24
- export { ProviderPlatformEvent, submitEvent };