@wix/payments 1.0.5 → 1.0.7

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.
@@ -1,3 +1,324 @@
1
+ interface OnboardingAvailability$1 {
2
+ /**
3
+ * ID of this entity
4
+ * @readonly
5
+ */
6
+ id?: string;
7
+ /** Information about CBD specific flow. Will have DECLINED status if user is not in United States */
8
+ cbdFlow?: CbdFlow$1;
9
+ /** Information about all restricted goods user might sell. */
10
+ restrictedGoodsFlow?: RestrictedGoodsFlow$1;
11
+ /** Information about services Wix Partner sells. */
12
+ partnerFlow?: PartnerFlow$1;
13
+ /**
14
+ * True, only if Wix Payments available to user due to the way account was created. False otherwise.
15
+ * @readonly
16
+ */
17
+ wixPaymentsAvailable?: boolean;
18
+ }
19
+ interface CbdFlow$1 {
20
+ /**
21
+ * Current status of CBD flow.
22
+ * DECLINED - User does not sell CBD (or at least we do not know about it). Any payment service provider can be connected.
23
+ * POSSIBLE - User possibly sells CBD and we should ask for confirmation. User still can connect Wix Payments.
24
+ * CONFIRMED - User confirmed to sell CBD and now we should ask to complete attestation form. Only CBD providers can be connected. User can't connect Wix Payments.
25
+ */
26
+ status?: Status$3;
27
+ /** Information about completion of attestation form. Include date of signing. */
28
+ attestationInfo?: AttestationInfo$1;
29
+ }
30
+ declare enum Status$3 {
31
+ UNDEFINED = "UNDEFINED",
32
+ DECLINED = "DECLINED",
33
+ POSSIBLE = "POSSIBLE",
34
+ CONFIRMED = "CONFIRMED"
35
+ }
36
+ interface AttestationInfo$1 {
37
+ /**
38
+ * Date of signing attestation form (only if status is CONFIRMED)
39
+ * @readonly
40
+ */
41
+ attestationFormSignedDate?: Date;
42
+ /** True, if attestation form was signed. False otherwise. */
43
+ formSigned?: boolean | null;
44
+ }
45
+ interface RestrictedGoodsFlow$1 {
46
+ /**
47
+ * Current status of Restricted Goods flow.
48
+ * DECLINED - User confirmed that they don't sell any restricted goods. User may connect Wix Payments.
49
+ * CONFIRMED - User confirmed that they do sell restricted goods. User can't connect Wix Payments.
50
+ */
51
+ status?: RestrictedGoodsFlowStatus$1;
52
+ /** Contains detailed list of which restricted categories user sell. */
53
+ categories?: RestrictedGoodsCategory$1[];
54
+ }
55
+ declare enum RestrictedGoodsFlowStatus$1 {
56
+ UNDEFINED = "UNDEFINED",
57
+ DECLINED = "DECLINED",
58
+ CONFIRMED = "CONFIRMED"
59
+ }
60
+ declare enum RestrictedGoodsCategory$1 {
61
+ UNDEFINED = "UNDEFINED",
62
+ TOBACCO_ALCOHOL = "TOBACCO_ALCOHOL",
63
+ FIREARMS_WEAPONS = "FIREARMS_WEAPONS",
64
+ ADULT = "ADULT",
65
+ MEDICAL = "MEDICAL",
66
+ FINANCIAL = "FINANCIAL",
67
+ TRAVEL_AGENCIES = "TRAVEL_AGENCIES",
68
+ GAMBLING_LOTTERIES_SKILL_GAMES = "GAMBLING_LOTTERIES_SKILL_GAMES",
69
+ BINARY_OPTIONS_CRYPTOCURRENCIES = "BINARY_OPTIONS_CRYPTOCURRENCIES",
70
+ MARKETPLACES = "MARKETPLACES",
71
+ OTHER = "OTHER",
72
+ CBD = "CBD",
73
+ TOBACCO_E_CIGARETTES = "TOBACCO_E_CIGARETTES",
74
+ ALCOHOL = "ALCOHOL",
75
+ NUTRACEUTICALS = "NUTRACEUTICALS"
76
+ }
77
+ interface PartnerFlow$1 {
78
+ /**
79
+ * Current status of Partner flow.
80
+ * DECLINED - User sells only approved services and may connect Wix Payments.
81
+ * CONFIRMED - User sells not approved services and can't connect Wix Payments.
82
+ */
83
+ status?: PartnerFlowStatus$1;
84
+ }
85
+ declare enum PartnerFlowStatus$1 {
86
+ UNDEFINED = "UNDEFINED",
87
+ DECLINED = "DECLINED",
88
+ CONFIRMED = "CONFIRMED"
89
+ }
90
+ interface GetOnboardingAvailabilityRequest$1 {
91
+ }
92
+ interface GetOnboardingAvailabilityResponse$1 {
93
+ /** Current state of onboarding availability for the merchant. */
94
+ onboardingAvailability?: OnboardingAvailability$1;
95
+ }
96
+ interface UpdateCbdFlowRequest$1 {
97
+ /** New state of CBD flow for merchant. */
98
+ cbdFlow?: CbdFlow$1;
99
+ }
100
+ interface UpdateCbdFlowResponse$1 {
101
+ /** Current state of onboarding availability for the merchant. */
102
+ onboardingAvailability?: OnboardingAvailability$1;
103
+ }
104
+ interface UpdateRestrictedGoodsFlowRequest$1 {
105
+ /** New state of restricted goods flow for merchant. */
106
+ restrictedGoods?: RestrictedGoodsFlow$1;
107
+ }
108
+ interface UpdateRestrictedGoodsFlowResponse$1 {
109
+ /** Current state of onboarding availability for the merchant. */
110
+ onboardingAvailability?: OnboardingAvailability$1;
111
+ }
112
+ interface UpdatePartnerFlowRequest$1 {
113
+ /** New state of partner flow for merchant. */
114
+ partnerFlow?: PartnerFlow$1;
115
+ }
116
+ interface UpdatePartnerFlowResponse$1 {
117
+ /** Current state of onboarding availability for the merchant. */
118
+ onboardingAvailability?: OnboardingAvailability$1;
119
+ }
120
+ interface CbdFlowNonNullableFields$1 {
121
+ status: Status$3;
122
+ }
123
+ interface RestrictedGoodsFlowNonNullableFields$1 {
124
+ status: RestrictedGoodsFlowStatus$1;
125
+ categories: RestrictedGoodsCategory$1[];
126
+ }
127
+ interface PartnerFlowNonNullableFields$1 {
128
+ status: PartnerFlowStatus$1;
129
+ }
130
+ interface OnboardingAvailabilityNonNullableFields$1 {
131
+ id: string;
132
+ cbdFlow?: CbdFlowNonNullableFields$1;
133
+ restrictedGoodsFlow?: RestrictedGoodsFlowNonNullableFields$1;
134
+ partnerFlow?: PartnerFlowNonNullableFields$1;
135
+ wixPaymentsAvailable: boolean;
136
+ }
137
+ interface GetOnboardingAvailabilityResponseNonNullableFields$1 {
138
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields$1;
139
+ }
140
+ interface UpdateCbdFlowResponseNonNullableFields$1 {
141
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields$1;
142
+ }
143
+ interface UpdateRestrictedGoodsFlowResponseNonNullableFields$1 {
144
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields$1;
145
+ }
146
+ interface UpdatePartnerFlowResponseNonNullableFields$1 {
147
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields$1;
148
+ }
149
+
150
+ interface OnboardingAvailability {
151
+ /**
152
+ * ID of this entity
153
+ * @readonly
154
+ */
155
+ _id?: string;
156
+ /** Information about CBD specific flow. Will have DECLINED status if user is not in United States */
157
+ cbdFlow?: CbdFlow;
158
+ /** Information about all restricted goods user might sell. */
159
+ restrictedGoodsFlow?: RestrictedGoodsFlow;
160
+ /** Information about services Wix Partner sells. */
161
+ partnerFlow?: PartnerFlow;
162
+ /**
163
+ * True, only if Wix Payments available to user due to the way account was created. False otherwise.
164
+ * @readonly
165
+ */
166
+ wixPaymentsAvailable?: boolean;
167
+ }
168
+ interface CbdFlow {
169
+ /**
170
+ * Current status of CBD flow.
171
+ * DECLINED - User does not sell CBD (or at least we do not know about it). Any payment service provider can be connected.
172
+ * POSSIBLE - User possibly sells CBD and we should ask for confirmation. User still can connect Wix Payments.
173
+ * CONFIRMED - User confirmed to sell CBD and now we should ask to complete attestation form. Only CBD providers can be connected. User can't connect Wix Payments.
174
+ */
175
+ status?: Status$2;
176
+ /** Information about completion of attestation form. Include date of signing. */
177
+ attestationInfo?: AttestationInfo;
178
+ }
179
+ declare enum Status$2 {
180
+ UNDEFINED = "UNDEFINED",
181
+ DECLINED = "DECLINED",
182
+ POSSIBLE = "POSSIBLE",
183
+ CONFIRMED = "CONFIRMED"
184
+ }
185
+ interface AttestationInfo {
186
+ /**
187
+ * Date of signing attestation form (only if status is CONFIRMED)
188
+ * @readonly
189
+ */
190
+ attestationFormSignedDate?: Date;
191
+ /** True, if attestation form was signed. False otherwise. */
192
+ formSigned?: boolean | null;
193
+ }
194
+ interface RestrictedGoodsFlow {
195
+ /**
196
+ * Current status of Restricted Goods flow.
197
+ * DECLINED - User confirmed that they don't sell any restricted goods. User may connect Wix Payments.
198
+ * CONFIRMED - User confirmed that they do sell restricted goods. User can't connect Wix Payments.
199
+ */
200
+ status?: RestrictedGoodsFlowStatus;
201
+ /** Contains detailed list of which restricted categories user sell. */
202
+ categories?: RestrictedGoodsCategory[];
203
+ }
204
+ declare enum RestrictedGoodsFlowStatus {
205
+ UNDEFINED = "UNDEFINED",
206
+ DECLINED = "DECLINED",
207
+ CONFIRMED = "CONFIRMED"
208
+ }
209
+ declare enum RestrictedGoodsCategory {
210
+ UNDEFINED = "UNDEFINED",
211
+ TOBACCO_ALCOHOL = "TOBACCO_ALCOHOL",
212
+ FIREARMS_WEAPONS = "FIREARMS_WEAPONS",
213
+ ADULT = "ADULT",
214
+ MEDICAL = "MEDICAL",
215
+ FINANCIAL = "FINANCIAL",
216
+ TRAVEL_AGENCIES = "TRAVEL_AGENCIES",
217
+ GAMBLING_LOTTERIES_SKILL_GAMES = "GAMBLING_LOTTERIES_SKILL_GAMES",
218
+ BINARY_OPTIONS_CRYPTOCURRENCIES = "BINARY_OPTIONS_CRYPTOCURRENCIES",
219
+ MARKETPLACES = "MARKETPLACES",
220
+ OTHER = "OTHER",
221
+ CBD = "CBD",
222
+ TOBACCO_E_CIGARETTES = "TOBACCO_E_CIGARETTES",
223
+ ALCOHOL = "ALCOHOL",
224
+ NUTRACEUTICALS = "NUTRACEUTICALS"
225
+ }
226
+ interface PartnerFlow {
227
+ /**
228
+ * Current status of Partner flow.
229
+ * DECLINED - User sells only approved services and may connect Wix Payments.
230
+ * CONFIRMED - User sells not approved services and can't connect Wix Payments.
231
+ */
232
+ status?: PartnerFlowStatus;
233
+ }
234
+ declare enum PartnerFlowStatus {
235
+ UNDEFINED = "UNDEFINED",
236
+ DECLINED = "DECLINED",
237
+ CONFIRMED = "CONFIRMED"
238
+ }
239
+ interface GetOnboardingAvailabilityRequest {
240
+ }
241
+ interface GetOnboardingAvailabilityResponse {
242
+ /** Current state of onboarding availability for the merchant. */
243
+ onboardingAvailability?: OnboardingAvailability;
244
+ }
245
+ interface UpdateCbdFlowRequest {
246
+ /** New state of CBD flow for merchant. */
247
+ cbdFlow?: CbdFlow;
248
+ }
249
+ interface UpdateCbdFlowResponse {
250
+ /** Current state of onboarding availability for the merchant. */
251
+ onboardingAvailability?: OnboardingAvailability;
252
+ }
253
+ interface UpdateRestrictedGoodsFlowRequest {
254
+ /** New state of restricted goods flow for merchant. */
255
+ restrictedGoods?: RestrictedGoodsFlow;
256
+ }
257
+ interface UpdateRestrictedGoodsFlowResponse {
258
+ /** Current state of onboarding availability for the merchant. */
259
+ onboardingAvailability?: OnboardingAvailability;
260
+ }
261
+ interface UpdatePartnerFlowRequest {
262
+ /** New state of partner flow for merchant. */
263
+ partnerFlow?: PartnerFlow;
264
+ }
265
+ interface UpdatePartnerFlowResponse {
266
+ /** Current state of onboarding availability for the merchant. */
267
+ onboardingAvailability?: OnboardingAvailability;
268
+ }
269
+ interface CbdFlowNonNullableFields {
270
+ status: Status$2;
271
+ }
272
+ interface RestrictedGoodsFlowNonNullableFields {
273
+ status: RestrictedGoodsFlowStatus;
274
+ categories: RestrictedGoodsCategory[];
275
+ }
276
+ interface PartnerFlowNonNullableFields {
277
+ status: PartnerFlowStatus;
278
+ }
279
+ interface OnboardingAvailabilityNonNullableFields {
280
+ _id: string;
281
+ cbdFlow?: CbdFlowNonNullableFields;
282
+ restrictedGoodsFlow?: RestrictedGoodsFlowNonNullableFields;
283
+ partnerFlow?: PartnerFlowNonNullableFields;
284
+ wixPaymentsAvailable: boolean;
285
+ }
286
+ interface GetOnboardingAvailabilityResponseNonNullableFields {
287
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
288
+ }
289
+ interface UpdateCbdFlowResponseNonNullableFields {
290
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
291
+ }
292
+ interface UpdateRestrictedGoodsFlowResponseNonNullableFields {
293
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
294
+ }
295
+ interface UpdatePartnerFlowResponseNonNullableFields {
296
+ onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
297
+ }
298
+
299
+ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
300
+ getUrl: (context: any) => string;
301
+ httpMethod: K;
302
+ path: string;
303
+ pathParams: M;
304
+ __requestType: T;
305
+ __originalRequestType: S;
306
+ __responseType: Q;
307
+ __originalResponseType: R;
308
+ };
309
+ declare function getOnboardingAvailability(): __PublicMethodMetaInfo$1<'GET', {}, GetOnboardingAvailabilityRequest, GetOnboardingAvailabilityRequest$1, GetOnboardingAvailabilityResponse & GetOnboardingAvailabilityResponseNonNullableFields, GetOnboardingAvailabilityResponse$1 & GetOnboardingAvailabilityResponseNonNullableFields$1>;
310
+ declare function updateCbdFlow(): __PublicMethodMetaInfo$1<'PATCH', {}, UpdateCbdFlowRequest, UpdateCbdFlowRequest$1, UpdateCbdFlowResponse & UpdateCbdFlowResponseNonNullableFields, UpdateCbdFlowResponse$1 & UpdateCbdFlowResponseNonNullableFields$1>;
311
+ declare function updateRestrictedGoodsFlow(): __PublicMethodMetaInfo$1<'PATCH', {}, UpdateRestrictedGoodsFlowRequest, UpdateRestrictedGoodsFlowRequest$1, UpdateRestrictedGoodsFlowResponse & UpdateRestrictedGoodsFlowResponseNonNullableFields, UpdateRestrictedGoodsFlowResponse$1 & UpdateRestrictedGoodsFlowResponseNonNullableFields$1>;
312
+ declare function updatePartnerFlow(): __PublicMethodMetaInfo$1<'PATCH', {}, UpdatePartnerFlowRequest, UpdatePartnerFlowRequest$1, UpdatePartnerFlowResponse & UpdatePartnerFlowResponseNonNullableFields, UpdatePartnerFlowResponse$1 & UpdatePartnerFlowResponseNonNullableFields$1>;
313
+
314
+ declare const meta$1_getOnboardingAvailability: typeof getOnboardingAvailability;
315
+ declare const meta$1_updateCbdFlow: typeof updateCbdFlow;
316
+ declare const meta$1_updatePartnerFlow: typeof updatePartnerFlow;
317
+ declare const meta$1_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
318
+ declare namespace meta$1 {
319
+ export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_getOnboardingAvailability as getOnboardingAvailability, meta$1_updateCbdFlow as updateCbdFlow, meta$1_updatePartnerFlow as updatePartnerFlow, meta$1_updateRestrictedGoodsFlow as updateRestrictedGoodsFlow };
320
+ }
321
+
1
322
  /**
2
323
  * A refund a record of an attempt of
3
324
  * returning funds for a charge from a merchant to a customer to who has made a purchase.
@@ -764,4 +1085,4 @@ declare namespace meta {
764
1085
  export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createRefund as createRefund, meta_getRefund as getRefund, meta_getRefundability as getRefundability, meta_queryRefunds as queryRefunds, meta_updateExtendedFields as updateExtendedFields };
765
1086
  }
766
1087
 
767
- export { meta as refunds };
1088
+ export { meta$1 as onboardingAvailability, meta as refunds };