@wix/payments 1.0.7 → 1.0.9
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.
- package/build/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +2 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +4 -2
- package/build/cjs/index.js +7 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +1 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +4 -2
- package/build/es/index.js +4 -2
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +7 -5
- package/type-bundles/context.bundle.d.ts +351 -93
- package/type-bundles/index.bundle.d.ts +351 -93
- package/type-bundles/meta.bundle.d.ts +205 -10
|
@@ -296,6 +296,207 @@ interface UpdatePartnerFlowResponseNonNullableFields {
|
|
|
296
296
|
onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
+
type __PublicMethodMetaInfo$2<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$2<'GET', {}, GetOnboardingAvailabilityRequest, GetOnboardingAvailabilityRequest$1, GetOnboardingAvailabilityResponse & GetOnboardingAvailabilityResponseNonNullableFields, GetOnboardingAvailabilityResponse$1 & GetOnboardingAvailabilityResponseNonNullableFields$1>;
|
|
310
|
+
declare function updateCbdFlow(): __PublicMethodMetaInfo$2<'PATCH', {}, UpdateCbdFlowRequest, UpdateCbdFlowRequest$1, UpdateCbdFlowResponse & UpdateCbdFlowResponseNonNullableFields, UpdateCbdFlowResponse$1 & UpdateCbdFlowResponseNonNullableFields$1>;
|
|
311
|
+
declare function updateRestrictedGoodsFlow(): __PublicMethodMetaInfo$2<'PATCH', {}, UpdateRestrictedGoodsFlowRequest, UpdateRestrictedGoodsFlowRequest$1, UpdateRestrictedGoodsFlowResponse & UpdateRestrictedGoodsFlowResponseNonNullableFields, UpdateRestrictedGoodsFlowResponse$1 & UpdateRestrictedGoodsFlowResponseNonNullableFields$1>;
|
|
312
|
+
declare function updatePartnerFlow(): __PublicMethodMetaInfo$2<'PATCH', {}, UpdatePartnerFlowRequest, UpdatePartnerFlowRequest$1, UpdatePartnerFlowResponse & UpdatePartnerFlowResponseNonNullableFields, UpdatePartnerFlowResponse$1 & UpdatePartnerFlowResponseNonNullableFields$1>;
|
|
313
|
+
|
|
314
|
+
declare const meta$2_getOnboardingAvailability: typeof getOnboardingAvailability;
|
|
315
|
+
declare const meta$2_updateCbdFlow: typeof updateCbdFlow;
|
|
316
|
+
declare const meta$2_updatePartnerFlow: typeof updatePartnerFlow;
|
|
317
|
+
declare const meta$2_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
|
|
318
|
+
declare namespace meta$2 {
|
|
319
|
+
export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_getOnboardingAvailability as getOnboardingAvailability, meta$2_updateCbdFlow as updateCbdFlow, meta$2_updatePartnerFlow as updatePartnerFlow, meta$2_updateRestrictedGoodsFlow as updateRestrictedGoodsFlow };
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Provider platform event */
|
|
323
|
+
interface ProviderPlatformEvent$1 extends ProviderPlatformEventResourceOneOf$1 {
|
|
324
|
+
/** Refund event data. */
|
|
325
|
+
refund?: RefundEvent$1;
|
|
326
|
+
/** Transaction event data. */
|
|
327
|
+
transaction?: TransactionEvent$1;
|
|
328
|
+
/**
|
|
329
|
+
* This field is ignored, do not send it.
|
|
330
|
+
* @deprecated
|
|
331
|
+
*/
|
|
332
|
+
pluginId?: string;
|
|
333
|
+
}
|
|
334
|
+
/** @oneof */
|
|
335
|
+
interface ProviderPlatformEventResourceOneOf$1 {
|
|
336
|
+
/** Refund event data. */
|
|
337
|
+
refund?: RefundEvent$1;
|
|
338
|
+
/** Transaction event data. */
|
|
339
|
+
transaction?: TransactionEvent$1;
|
|
340
|
+
}
|
|
341
|
+
interface RefundEvent$1 {
|
|
342
|
+
/** Wix transaction ID. */
|
|
343
|
+
wixTransactionId?: string;
|
|
344
|
+
/** PSP refund ID. */
|
|
345
|
+
pluginRefundId?: string;
|
|
346
|
+
/** 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. */
|
|
347
|
+
reasonCode?: number;
|
|
348
|
+
/** Refunded amount. */
|
|
349
|
+
amount?: string;
|
|
350
|
+
/** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
|
|
351
|
+
wixRefundId?: string | null;
|
|
352
|
+
/** PSP-specific error code. */
|
|
353
|
+
errorCode?: string | null;
|
|
354
|
+
/** PSP-specific error message. */
|
|
355
|
+
errorMessage?: string | null;
|
|
356
|
+
}
|
|
357
|
+
interface TransactionEvent$1 {
|
|
358
|
+
/** Wix transaction ID. */
|
|
359
|
+
wixTransactionId?: string;
|
|
360
|
+
/** PSP transaction ID. */
|
|
361
|
+
pluginTransactionId?: string;
|
|
362
|
+
/** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
|
|
363
|
+
reasonCode?: number;
|
|
364
|
+
/** PSP-specific error code. */
|
|
365
|
+
errorCode?: string | null;
|
|
366
|
+
/** PSP-specific error message. */
|
|
367
|
+
errorMessage?: string | null;
|
|
368
|
+
/** Token data for stored payment method. */
|
|
369
|
+
credentialsOnFile?: CredentialsOnFile$1;
|
|
370
|
+
/** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
|
|
371
|
+
cardDetails?: CardDetails$1;
|
|
372
|
+
}
|
|
373
|
+
interface CredentialsOnFile$1 extends CredentialsOnFileInfoOneOf$1 {
|
|
374
|
+
/** Network token data. */
|
|
375
|
+
cardReference?: CardReference$1;
|
|
376
|
+
/** Provider generated token data. */
|
|
377
|
+
paymentMethodReference?: PaymentMethodReference$1;
|
|
378
|
+
}
|
|
379
|
+
/** @oneof */
|
|
380
|
+
interface CredentialsOnFileInfoOneOf$1 {
|
|
381
|
+
/** Network token data. */
|
|
382
|
+
cardReference?: CardReference$1;
|
|
383
|
+
/** Provider generated token data. */
|
|
384
|
+
paymentMethodReference?: PaymentMethodReference$1;
|
|
385
|
+
}
|
|
386
|
+
interface CardReference$1 {
|
|
387
|
+
/** Network token. */
|
|
388
|
+
networkTransactionId?: string;
|
|
389
|
+
/** Directory Server transaction ID */
|
|
390
|
+
dsTransactionId?: string | null;
|
|
391
|
+
}
|
|
392
|
+
interface PaymentMethodReference$1 {
|
|
393
|
+
/** Payment method token created by the PSP. */
|
|
394
|
+
token?: string;
|
|
395
|
+
}
|
|
396
|
+
interface CardDetails$1 {
|
|
397
|
+
/** Issuer (business) identification number. First 6 or 8 digits of the card's number. */
|
|
398
|
+
bin?: string | null;
|
|
399
|
+
/** Last 4 digits of the card's number. */
|
|
400
|
+
lastFour?: string | null;
|
|
401
|
+
}
|
|
402
|
+
/** Submit event request */
|
|
403
|
+
interface SubmitEventRequest$1 {
|
|
404
|
+
/** Event data. */
|
|
405
|
+
event: ProviderPlatformEvent$1;
|
|
406
|
+
}
|
|
407
|
+
/** Submit event response */
|
|
408
|
+
interface SubmitEventResponse$1 {
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/** Provider platform event */
|
|
412
|
+
interface ProviderPlatformEvent extends ProviderPlatformEventResourceOneOf {
|
|
413
|
+
/** Refund event data. */
|
|
414
|
+
refund?: RefundEvent;
|
|
415
|
+
/** Transaction event data. */
|
|
416
|
+
transaction?: TransactionEvent;
|
|
417
|
+
/**
|
|
418
|
+
* This field is ignored, do not send it.
|
|
419
|
+
* @deprecated
|
|
420
|
+
*/
|
|
421
|
+
pluginId?: string;
|
|
422
|
+
}
|
|
423
|
+
/** @oneof */
|
|
424
|
+
interface ProviderPlatformEventResourceOneOf {
|
|
425
|
+
/** Refund event data. */
|
|
426
|
+
refund?: RefundEvent;
|
|
427
|
+
/** Transaction event data. */
|
|
428
|
+
transaction?: TransactionEvent;
|
|
429
|
+
}
|
|
430
|
+
interface RefundEvent {
|
|
431
|
+
/** Wix transaction ID. */
|
|
432
|
+
wixTransactionId?: string;
|
|
433
|
+
/** PSP refund ID. */
|
|
434
|
+
pluginRefundId?: string;
|
|
435
|
+
/** 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. */
|
|
436
|
+
reasonCode?: number;
|
|
437
|
+
/** Refunded amount. */
|
|
438
|
+
amount?: string;
|
|
439
|
+
/** Wix refund ID. This field is only required when a merchant initiates a refund from the Wix dashboard. */
|
|
440
|
+
wixRefundId?: string | null;
|
|
441
|
+
/** PSP-specific error code. */
|
|
442
|
+
errorCode?: string | null;
|
|
443
|
+
/** PSP-specific error message. */
|
|
444
|
+
errorMessage?: string | null;
|
|
445
|
+
}
|
|
446
|
+
interface TransactionEvent {
|
|
447
|
+
/** Wix transaction ID. */
|
|
448
|
+
wixTransactionId?: string;
|
|
449
|
+
/** PSP transaction ID. */
|
|
450
|
+
pluginTransactionId?: string;
|
|
451
|
+
/** Wix [reason code](https://dev.wix.com/api/rest/all-apis/provider-platform/reason-codes) indicating a failed or pending request. */
|
|
452
|
+
reasonCode?: number;
|
|
453
|
+
/** PSP-specific error code. */
|
|
454
|
+
errorCode?: string | null;
|
|
455
|
+
/** PSP-specific error message. */
|
|
456
|
+
errorMessage?: string | null;
|
|
457
|
+
/** Token data for stored payment method. */
|
|
458
|
+
credentialsOnFile?: CredentialsOnFile;
|
|
459
|
+
/** Details of actual customer's card, obtained from a Funding PAN as opposed to a Device PAN. */
|
|
460
|
+
cardDetails?: CardDetails;
|
|
461
|
+
}
|
|
462
|
+
interface CredentialsOnFile extends CredentialsOnFileInfoOneOf {
|
|
463
|
+
/** Network token data. */
|
|
464
|
+
cardReference?: CardReference;
|
|
465
|
+
/** Provider generated token data. */
|
|
466
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
467
|
+
}
|
|
468
|
+
/** @oneof */
|
|
469
|
+
interface CredentialsOnFileInfoOneOf {
|
|
470
|
+
/** Network token data. */
|
|
471
|
+
cardReference?: CardReference;
|
|
472
|
+
/** Provider generated token data. */
|
|
473
|
+
paymentMethodReference?: PaymentMethodReference;
|
|
474
|
+
}
|
|
475
|
+
interface CardReference {
|
|
476
|
+
/** Network token. */
|
|
477
|
+
networkTransactionId?: string;
|
|
478
|
+
/** Directory Server transaction ID */
|
|
479
|
+
dsTransactionId?: string | null;
|
|
480
|
+
}
|
|
481
|
+
interface PaymentMethodReference {
|
|
482
|
+
/** Payment method token created by the PSP. */
|
|
483
|
+
token?: string;
|
|
484
|
+
}
|
|
485
|
+
interface CardDetails {
|
|
486
|
+
/** Issuer (business) identification number. First 6 or 8 digits of the card's number. */
|
|
487
|
+
bin?: string | null;
|
|
488
|
+
/** Last 4 digits of the card's number. */
|
|
489
|
+
lastFour?: string | null;
|
|
490
|
+
}
|
|
491
|
+
/** Submit event request */
|
|
492
|
+
interface SubmitEventRequest {
|
|
493
|
+
/** Event data. */
|
|
494
|
+
event: ProviderPlatformEvent;
|
|
495
|
+
}
|
|
496
|
+
/** Submit event response */
|
|
497
|
+
interface SubmitEventResponse {
|
|
498
|
+
}
|
|
499
|
+
|
|
299
500
|
type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
300
501
|
getUrl: (context: any) => string;
|
|
301
502
|
httpMethod: K;
|
|
@@ -306,17 +507,11 @@ type __PublicMethodMetaInfo$1<K = string, M = unknown, T = unknown, S = unknown,
|
|
|
306
507
|
__responseType: Q;
|
|
307
508
|
__originalResponseType: R;
|
|
308
509
|
};
|
|
309
|
-
declare function
|
|
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>;
|
|
510
|
+
declare function submitEvent(): __PublicMethodMetaInfo$1<'POST', {}, SubmitEventRequest, SubmitEventRequest$1, SubmitEventResponse, SubmitEventResponse$1>;
|
|
313
511
|
|
|
314
|
-
declare const meta$
|
|
315
|
-
declare const meta$1_updateCbdFlow: typeof updateCbdFlow;
|
|
316
|
-
declare const meta$1_updatePartnerFlow: typeof updatePartnerFlow;
|
|
317
|
-
declare const meta$1_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
|
|
512
|
+
declare const meta$1_submitEvent: typeof submitEvent;
|
|
318
513
|
declare namespace meta$1 {
|
|
319
|
-
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$
|
|
514
|
+
export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_submitEvent as submitEvent };
|
|
320
515
|
}
|
|
321
516
|
|
|
322
517
|
/**
|
|
@@ -1085,4 +1280,4 @@ declare namespace meta {
|
|
|
1085
1280
|
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 };
|
|
1086
1281
|
}
|
|
1087
1282
|
|
|
1088
|
-
export { meta$1 as onboardingAvailability, meta as refunds };
|
|
1283
|
+
export { meta$1 as callbacks, meta$2 as onboardingAvailability, meta as refunds };
|