@wix/payments 1.0.21 → 1.0.23
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 +2 -1
- package/build/cjs/index.js +3 -1
- 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 +2 -1
- package/build/es/index.js +2 -1
- 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 +5 -4
- package/type-bundles/context.bundle.d.ts +851 -213
- package/type-bundles/index.bundle.d.ts +851 -213
- package/type-bundles/meta.bundle.d.ts +576 -51
|
@@ -595,11 +595,11 @@ interface UpdatePartnerFlowResponse {
|
|
|
595
595
|
/** Current state of onboarding availability for the merchant. */
|
|
596
596
|
onboardingAvailability?: OnboardingAvailability;
|
|
597
597
|
}
|
|
598
|
-
interface DomainEvent$
|
|
599
|
-
createdEvent?: EntityCreatedEvent$
|
|
600
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
601
|
-
deletedEvent?: EntityDeletedEvent$
|
|
602
|
-
actionEvent?: ActionEvent$
|
|
598
|
+
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
599
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
600
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
601
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
602
|
+
actionEvent?: ActionEvent$2;
|
|
603
603
|
/**
|
|
604
604
|
* Unique event ID.
|
|
605
605
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -638,19 +638,19 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
638
638
|
entityEventSequence?: string | null;
|
|
639
639
|
}
|
|
640
640
|
/** @oneof */
|
|
641
|
-
interface DomainEventBodyOneOf$
|
|
642
|
-
createdEvent?: EntityCreatedEvent$
|
|
643
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
644
|
-
deletedEvent?: EntityDeletedEvent$
|
|
645
|
-
actionEvent?: ActionEvent$
|
|
641
|
+
interface DomainEventBodyOneOf$2 {
|
|
642
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
643
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
644
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
645
|
+
actionEvent?: ActionEvent$2;
|
|
646
646
|
}
|
|
647
|
-
interface EntityCreatedEvent$
|
|
647
|
+
interface EntityCreatedEvent$2 {
|
|
648
648
|
entity?: string;
|
|
649
649
|
}
|
|
650
|
-
interface RestoreInfo$
|
|
650
|
+
interface RestoreInfo$2 {
|
|
651
651
|
deletedDate?: Date | null;
|
|
652
652
|
}
|
|
653
|
-
interface EntityUpdatedEvent$
|
|
653
|
+
interface EntityUpdatedEvent$2 {
|
|
654
654
|
/**
|
|
655
655
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
656
656
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -658,24 +658,24 @@ interface EntityUpdatedEvent$1 {
|
|
|
658
658
|
*/
|
|
659
659
|
currentEntity?: string;
|
|
660
660
|
}
|
|
661
|
-
interface EntityDeletedEvent$
|
|
661
|
+
interface EntityDeletedEvent$2 {
|
|
662
662
|
/** Entity that was deleted */
|
|
663
663
|
deletedEntity?: string | null;
|
|
664
664
|
}
|
|
665
|
-
interface ActionEvent$
|
|
665
|
+
interface ActionEvent$2 {
|
|
666
666
|
body?: string;
|
|
667
667
|
}
|
|
668
|
-
interface MessageEnvelope$
|
|
668
|
+
interface MessageEnvelope$2 {
|
|
669
669
|
/** App instance ID. */
|
|
670
670
|
instanceId?: string | null;
|
|
671
671
|
/** Event type. */
|
|
672
672
|
eventType?: string;
|
|
673
673
|
/** The identification type and identity data. */
|
|
674
|
-
identity?: IdentificationData$
|
|
674
|
+
identity?: IdentificationData$2;
|
|
675
675
|
/** Stringify payload. */
|
|
676
676
|
data?: string;
|
|
677
677
|
}
|
|
678
|
-
interface IdentificationData$
|
|
678
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
679
679
|
/** ID of a site visitor that has not logged in to the site. */
|
|
680
680
|
anonymousVisitorId?: string;
|
|
681
681
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -685,10 +685,10 @@ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
|
685
685
|
/** ID of an app. */
|
|
686
686
|
appId?: string;
|
|
687
687
|
/** @readonly */
|
|
688
|
-
identityType?: WebhookIdentityType$
|
|
688
|
+
identityType?: WebhookIdentityType$2;
|
|
689
689
|
}
|
|
690
690
|
/** @oneof */
|
|
691
|
-
interface IdentificationDataIdOneOf$
|
|
691
|
+
interface IdentificationDataIdOneOf$2 {
|
|
692
692
|
/** ID of a site visitor that has not logged in to the site. */
|
|
693
693
|
anonymousVisitorId?: string;
|
|
694
694
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -698,7 +698,7 @@ interface IdentificationDataIdOneOf$1 {
|
|
|
698
698
|
/** ID of an app. */
|
|
699
699
|
appId?: string;
|
|
700
700
|
}
|
|
701
|
-
declare enum WebhookIdentityType$
|
|
701
|
+
declare enum WebhookIdentityType$2 {
|
|
702
702
|
UNKNOWN = "UNKNOWN",
|
|
703
703
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
704
704
|
MEMBER = "MEMBER",
|
|
@@ -734,15 +734,15 @@ interface UpdateRestrictedGoodsFlowResponseNonNullableFields {
|
|
|
734
734
|
interface UpdatePartnerFlowResponseNonNullableFields {
|
|
735
735
|
onboardingAvailability?: OnboardingAvailabilityNonNullableFields;
|
|
736
736
|
}
|
|
737
|
-
interface BaseEventMetadata$
|
|
737
|
+
interface BaseEventMetadata$2 {
|
|
738
738
|
/** App instance ID. */
|
|
739
739
|
instanceId?: string | null;
|
|
740
740
|
/** Event type. */
|
|
741
741
|
eventType?: string;
|
|
742
742
|
/** The identification type and identity data. */
|
|
743
|
-
identity?: IdentificationData$
|
|
743
|
+
identity?: IdentificationData$2;
|
|
744
744
|
}
|
|
745
|
-
interface EventMetadata$
|
|
745
|
+
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
746
746
|
/**
|
|
747
747
|
* Unique event ID.
|
|
748
748
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -782,11 +782,11 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
782
782
|
}
|
|
783
783
|
interface OnboardingAvailabilityCreatedEnvelope {
|
|
784
784
|
entity: OnboardingAvailability;
|
|
785
|
-
metadata: EventMetadata$
|
|
785
|
+
metadata: EventMetadata$2;
|
|
786
786
|
}
|
|
787
787
|
interface OnboardingAvailabilityUpdatedEnvelope {
|
|
788
788
|
entity: OnboardingAvailability;
|
|
789
|
-
metadata: EventMetadata$
|
|
789
|
+
metadata: EventMetadata$2;
|
|
790
790
|
}
|
|
791
791
|
interface UpdateCbdFlowOptions {
|
|
792
792
|
/** New state of CBD flow for merchant. */
|
|
@@ -832,7 +832,7 @@ interface UpdatePartnerFlowSignature {
|
|
|
832
832
|
declare const onOnboardingAvailabilityCreated$1: EventDefinition<OnboardingAvailabilityCreatedEnvelope, "wix.cashier.onboarding_availability.v1.onboarding_availability_created">;
|
|
833
833
|
declare const onOnboardingAvailabilityUpdated$1: EventDefinition<OnboardingAvailabilityUpdatedEnvelope, "wix.cashier.onboarding_availability.v1.onboarding_availability_updated">;
|
|
834
834
|
|
|
835
|
-
declare function createEventModule$
|
|
835
|
+
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
836
836
|
|
|
837
837
|
declare const getOnboardingAvailability: MaybeContext<BuildRESTFunction<typeof getOnboardingAvailability$1> & typeof getOnboardingAvailability$1>;
|
|
838
838
|
declare const updateCbdFlow: MaybeContext<BuildRESTFunction<typeof updateCbdFlow$1> & typeof updateCbdFlow$1>;
|
|
@@ -841,50 +841,50 @@ declare const updatePartnerFlow: MaybeContext<BuildRESTFunction<typeof updatePar
|
|
|
841
841
|
|
|
842
842
|
type _publicOnOnboardingAvailabilityCreatedType = typeof onOnboardingAvailabilityCreated$1;
|
|
843
843
|
/** */
|
|
844
|
-
declare const onOnboardingAvailabilityCreated: ReturnType<typeof createEventModule$
|
|
844
|
+
declare const onOnboardingAvailabilityCreated: ReturnType<typeof createEventModule$2<_publicOnOnboardingAvailabilityCreatedType>>;
|
|
845
845
|
|
|
846
846
|
type _publicOnOnboardingAvailabilityUpdatedType = typeof onOnboardingAvailabilityUpdated$1;
|
|
847
847
|
/** */
|
|
848
|
-
declare const onOnboardingAvailabilityUpdated: ReturnType<typeof createEventModule$
|
|
849
|
-
|
|
850
|
-
type context$
|
|
851
|
-
type context$
|
|
852
|
-
type context$
|
|
853
|
-
type context$
|
|
854
|
-
type context$
|
|
855
|
-
type context$
|
|
856
|
-
type context$
|
|
857
|
-
type context$
|
|
858
|
-
type context$
|
|
859
|
-
type context$
|
|
860
|
-
declare const context$
|
|
861
|
-
type context$
|
|
862
|
-
declare const context$
|
|
863
|
-
type context$
|
|
864
|
-
type context$
|
|
865
|
-
declare const context$
|
|
866
|
-
type context$
|
|
867
|
-
type context$
|
|
868
|
-
type context$
|
|
869
|
-
type context$
|
|
870
|
-
type context$
|
|
871
|
-
type context$
|
|
872
|
-
type context$
|
|
873
|
-
type context$
|
|
874
|
-
type context$
|
|
875
|
-
type context$
|
|
876
|
-
type context$
|
|
877
|
-
type context$
|
|
878
|
-
type context$
|
|
879
|
-
type context$
|
|
880
|
-
declare const context$
|
|
881
|
-
declare const context$
|
|
882
|
-
declare const context$
|
|
883
|
-
declare const context$
|
|
884
|
-
declare const context$
|
|
885
|
-
declare const context$
|
|
886
|
-
declare namespace context$
|
|
887
|
-
export { type ActionEvent$
|
|
848
|
+
declare const onOnboardingAvailabilityUpdated: ReturnType<typeof createEventModule$2<_publicOnOnboardingAvailabilityUpdatedType>>;
|
|
849
|
+
|
|
850
|
+
type context$3_AttestationInfo = AttestationInfo;
|
|
851
|
+
type context$3_CbdFlow = CbdFlow;
|
|
852
|
+
type context$3_GetOnboardingAvailabilityRequest = GetOnboardingAvailabilityRequest;
|
|
853
|
+
type context$3_GetOnboardingAvailabilityResponse = GetOnboardingAvailabilityResponse;
|
|
854
|
+
type context$3_GetOnboardingAvailabilityResponseNonNullableFields = GetOnboardingAvailabilityResponseNonNullableFields;
|
|
855
|
+
type context$3_OnboardingAvailability = OnboardingAvailability;
|
|
856
|
+
type context$3_OnboardingAvailabilityCreatedEnvelope = OnboardingAvailabilityCreatedEnvelope;
|
|
857
|
+
type context$3_OnboardingAvailabilityUpdatedEnvelope = OnboardingAvailabilityUpdatedEnvelope;
|
|
858
|
+
type context$3_PartnerFlow = PartnerFlow;
|
|
859
|
+
type context$3_PartnerFlowStatus = PartnerFlowStatus;
|
|
860
|
+
declare const context$3_PartnerFlowStatus: typeof PartnerFlowStatus;
|
|
861
|
+
type context$3_RestrictedGoodsCategory = RestrictedGoodsCategory;
|
|
862
|
+
declare const context$3_RestrictedGoodsCategory: typeof RestrictedGoodsCategory;
|
|
863
|
+
type context$3_RestrictedGoodsFlow = RestrictedGoodsFlow;
|
|
864
|
+
type context$3_RestrictedGoodsFlowStatus = RestrictedGoodsFlowStatus;
|
|
865
|
+
declare const context$3_RestrictedGoodsFlowStatus: typeof RestrictedGoodsFlowStatus;
|
|
866
|
+
type context$3_UpdateCbdFlowOptions = UpdateCbdFlowOptions;
|
|
867
|
+
type context$3_UpdateCbdFlowRequest = UpdateCbdFlowRequest;
|
|
868
|
+
type context$3_UpdateCbdFlowResponse = UpdateCbdFlowResponse;
|
|
869
|
+
type context$3_UpdateCbdFlowResponseNonNullableFields = UpdateCbdFlowResponseNonNullableFields;
|
|
870
|
+
type context$3_UpdatePartnerFlowOptions = UpdatePartnerFlowOptions;
|
|
871
|
+
type context$3_UpdatePartnerFlowRequest = UpdatePartnerFlowRequest;
|
|
872
|
+
type context$3_UpdatePartnerFlowResponse = UpdatePartnerFlowResponse;
|
|
873
|
+
type context$3_UpdatePartnerFlowResponseNonNullableFields = UpdatePartnerFlowResponseNonNullableFields;
|
|
874
|
+
type context$3_UpdateRestrictedGoodsFlowOptions = UpdateRestrictedGoodsFlowOptions;
|
|
875
|
+
type context$3_UpdateRestrictedGoodsFlowRequest = UpdateRestrictedGoodsFlowRequest;
|
|
876
|
+
type context$3_UpdateRestrictedGoodsFlowResponse = UpdateRestrictedGoodsFlowResponse;
|
|
877
|
+
type context$3_UpdateRestrictedGoodsFlowResponseNonNullableFields = UpdateRestrictedGoodsFlowResponseNonNullableFields;
|
|
878
|
+
type context$3__publicOnOnboardingAvailabilityCreatedType = _publicOnOnboardingAvailabilityCreatedType;
|
|
879
|
+
type context$3__publicOnOnboardingAvailabilityUpdatedType = _publicOnOnboardingAvailabilityUpdatedType;
|
|
880
|
+
declare const context$3_getOnboardingAvailability: typeof getOnboardingAvailability;
|
|
881
|
+
declare const context$3_onOnboardingAvailabilityCreated: typeof onOnboardingAvailabilityCreated;
|
|
882
|
+
declare const context$3_onOnboardingAvailabilityUpdated: typeof onOnboardingAvailabilityUpdated;
|
|
883
|
+
declare const context$3_updateCbdFlow: typeof updateCbdFlow;
|
|
884
|
+
declare const context$3_updatePartnerFlow: typeof updatePartnerFlow;
|
|
885
|
+
declare const context$3_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
|
|
886
|
+
declare namespace context$3 {
|
|
887
|
+
export { type ActionEvent$2 as ActionEvent, type context$3_AttestationInfo as AttestationInfo, type BaseEventMetadata$2 as BaseEventMetadata, type context$3_CbdFlow as CbdFlow, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type context$3_GetOnboardingAvailabilityRequest as GetOnboardingAvailabilityRequest, type context$3_GetOnboardingAvailabilityResponse as GetOnboardingAvailabilityResponse, type context$3_GetOnboardingAvailabilityResponseNonNullableFields as GetOnboardingAvailabilityResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type context$3_OnboardingAvailability as OnboardingAvailability, type context$3_OnboardingAvailabilityCreatedEnvelope as OnboardingAvailabilityCreatedEnvelope, type context$3_OnboardingAvailabilityUpdatedEnvelope as OnboardingAvailabilityUpdatedEnvelope, type context$3_PartnerFlow as PartnerFlow, context$3_PartnerFlowStatus as PartnerFlowStatus, type RestoreInfo$2 as RestoreInfo, context$3_RestrictedGoodsCategory as RestrictedGoodsCategory, type context$3_RestrictedGoodsFlow as RestrictedGoodsFlow, context$3_RestrictedGoodsFlowStatus as RestrictedGoodsFlowStatus, Status$1 as Status, type context$3_UpdateCbdFlowOptions as UpdateCbdFlowOptions, type context$3_UpdateCbdFlowRequest as UpdateCbdFlowRequest, type context$3_UpdateCbdFlowResponse as UpdateCbdFlowResponse, type context$3_UpdateCbdFlowResponseNonNullableFields as UpdateCbdFlowResponseNonNullableFields, type context$3_UpdatePartnerFlowOptions as UpdatePartnerFlowOptions, type context$3_UpdatePartnerFlowRequest as UpdatePartnerFlowRequest, type context$3_UpdatePartnerFlowResponse as UpdatePartnerFlowResponse, type context$3_UpdatePartnerFlowResponseNonNullableFields as UpdatePartnerFlowResponseNonNullableFields, type context$3_UpdateRestrictedGoodsFlowOptions as UpdateRestrictedGoodsFlowOptions, type context$3_UpdateRestrictedGoodsFlowRequest as UpdateRestrictedGoodsFlowRequest, type context$3_UpdateRestrictedGoodsFlowResponse as UpdateRestrictedGoodsFlowResponse, type context$3_UpdateRestrictedGoodsFlowResponseNonNullableFields as UpdateRestrictedGoodsFlowResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type context$3__publicOnOnboardingAvailabilityCreatedType as _publicOnOnboardingAvailabilityCreatedType, type context$3__publicOnOnboardingAvailabilityUpdatedType as _publicOnOnboardingAvailabilityUpdatedType, context$3_getOnboardingAvailability as getOnboardingAvailability, context$3_onOnboardingAvailabilityCreated as onOnboardingAvailabilityCreated, context$3_onOnboardingAvailabilityUpdated as onOnboardingAvailabilityUpdated, onOnboardingAvailabilityCreated$1 as publicOnOnboardingAvailabilityCreated, onOnboardingAvailabilityUpdated$1 as publicOnOnboardingAvailabilityUpdated, context$3_updateCbdFlow as updateCbdFlow, context$3_updatePartnerFlow as updatePartnerFlow, context$3_updateRestrictedGoodsFlow as updateRestrictedGoodsFlow };
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
/** Provider platform event */
|
|
@@ -995,25 +995,25 @@ interface SubmitEventSignature {
|
|
|
995
995
|
|
|
996
996
|
declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
|
|
997
997
|
|
|
998
|
-
type context$
|
|
999
|
-
type context$
|
|
1000
|
-
type context$
|
|
1001
|
-
type context$
|
|
1002
|
-
type context$
|
|
1003
|
-
type context$
|
|
1004
|
-
type context$
|
|
1005
|
-
type context$
|
|
1006
|
-
type context$
|
|
1007
|
-
type context$
|
|
1008
|
-
type context$
|
|
1009
|
-
declare const context$
|
|
1010
|
-
declare namespace context$
|
|
1011
|
-
export { type context$
|
|
998
|
+
type context$2_CardDetails = CardDetails;
|
|
999
|
+
type context$2_CardReference = CardReference;
|
|
1000
|
+
type context$2_CredentialsOnFile = CredentialsOnFile;
|
|
1001
|
+
type context$2_CredentialsOnFileInfoOneOf = CredentialsOnFileInfoOneOf;
|
|
1002
|
+
type context$2_PaymentMethodReference = PaymentMethodReference;
|
|
1003
|
+
type context$2_ProviderPlatformEvent = ProviderPlatformEvent;
|
|
1004
|
+
type context$2_ProviderPlatformEventResourceOneOf = ProviderPlatformEventResourceOneOf;
|
|
1005
|
+
type context$2_RefundEvent = RefundEvent;
|
|
1006
|
+
type context$2_SubmitEventRequest = SubmitEventRequest;
|
|
1007
|
+
type context$2_SubmitEventResponse = SubmitEventResponse;
|
|
1008
|
+
type context$2_TransactionEvent = TransactionEvent;
|
|
1009
|
+
declare const context$2_submitEvent: typeof submitEvent;
|
|
1010
|
+
declare namespace context$2 {
|
|
1011
|
+
export { type context$2_CardDetails as CardDetails, type context$2_CardReference as CardReference, type context$2_CredentialsOnFile as CredentialsOnFile, type context$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type context$2_PaymentMethodReference as PaymentMethodReference, type context$2_ProviderPlatformEvent as ProviderPlatformEvent, type context$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type context$2_RefundEvent as RefundEvent, type context$2_SubmitEventRequest as SubmitEventRequest, type context$2_SubmitEventResponse as SubmitEventResponse, type context$2_TransactionEvent as TransactionEvent, context$2_submitEvent as submitEvent };
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
1015
1015
|
* A refund a record of an attempt of
|
|
1016
|
-
* returning funds for a charge from a merchant to a
|
|
1016
|
+
* returning funds for a charge from a merchant to a buyer who has made a purchase.
|
|
1017
1017
|
* Read more about refunds in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction>).
|
|
1018
1018
|
*/
|
|
1019
1019
|
interface Refund {
|
|
@@ -1040,13 +1040,13 @@ interface Refund {
|
|
|
1040
1040
|
*/
|
|
1041
1041
|
_updatedDate?: Date | null;
|
|
1042
1042
|
/** Data Extensions */
|
|
1043
|
-
extendedFields?: ExtendedFields;
|
|
1043
|
+
extendedFields?: ExtendedFields$1;
|
|
1044
1044
|
/** ID of charge for which the funds are returned by this refund. */
|
|
1045
1045
|
chargeId?: string | null;
|
|
1046
1046
|
/** Currency of refund, should be the same as currency of charge. */
|
|
1047
1047
|
currency?: string | null;
|
|
1048
1048
|
/**
|
|
1049
|
-
* Amount of refund in base units, what's returned to the
|
|
1049
|
+
* Amount of refund in base units, what's returned to the buyer.
|
|
1050
1050
|
* E.g. "12.95".
|
|
1051
1051
|
*/
|
|
1052
1052
|
amount?: string | null;
|
|
@@ -1097,7 +1097,7 @@ interface Refund {
|
|
|
1097
1097
|
/** Optional free-text note about this refund. */
|
|
1098
1098
|
note?: string | null;
|
|
1099
1099
|
}
|
|
1100
|
-
interface ExtendedFields {
|
|
1100
|
+
interface ExtendedFields$1 {
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
1103
1103
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -1145,44 +1145,6 @@ interface StatusInfo {
|
|
|
1145
1145
|
/** Free-text description. */
|
|
1146
1146
|
description?: string | null;
|
|
1147
1147
|
}
|
|
1148
|
-
interface SyncRefundRequest {
|
|
1149
|
-
/** Refund ID. */
|
|
1150
|
-
refundId?: string | null;
|
|
1151
|
-
/** ID of the refund on the PSP side. */
|
|
1152
|
-
providerRefundId?: string | null;
|
|
1153
|
-
/** ID of charge for which the funds are returned by this refund. */
|
|
1154
|
-
chargeId?: string | null;
|
|
1155
|
-
/**
|
|
1156
|
-
* Status of the refund.
|
|
1157
|
-
* Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
|
|
1158
|
-
*/
|
|
1159
|
-
status?: Status;
|
|
1160
|
-
/**
|
|
1161
|
-
* Status code.
|
|
1162
|
-
* [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
|
|
1163
|
-
*/
|
|
1164
|
-
statusCode?: string | null;
|
|
1165
|
-
/** Currency of refund, should be the same as currency of charge. */
|
|
1166
|
-
currency?: string | null;
|
|
1167
|
-
/**
|
|
1168
|
-
* Amount of refund in base units, what's returned to the customer.
|
|
1169
|
-
* E.g. "12.95".
|
|
1170
|
-
*/
|
|
1171
|
-
amount?: string | null;
|
|
1172
|
-
/**
|
|
1173
|
-
* Application fee returned to merchant from Wix.
|
|
1174
|
-
* Having this as a separate field since Refund.returned_application_fee is readOnly.
|
|
1175
|
-
*/
|
|
1176
|
-
returnedApplicationFee?: string | null;
|
|
1177
|
-
/** Reason why this refund was issued. */
|
|
1178
|
-
reason?: string | null;
|
|
1179
|
-
/** Optional free-text note about this refund. */
|
|
1180
|
-
note?: string | null;
|
|
1181
|
-
}
|
|
1182
|
-
interface SyncRefundResponse {
|
|
1183
|
-
/** Created/updated refund. */
|
|
1184
|
-
refund?: Refund;
|
|
1185
|
-
}
|
|
1186
1148
|
interface CreateRefundRequest {
|
|
1187
1149
|
/** Refund to be created. */
|
|
1188
1150
|
refund: Refund;
|
|
@@ -1215,7 +1177,7 @@ interface QueryRefundsRequest {
|
|
|
1215
1177
|
}
|
|
1216
1178
|
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
1217
1179
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1218
|
-
cursorPaging?: CursorPaging;
|
|
1180
|
+
cursorPaging?: CursorPaging$1;
|
|
1219
1181
|
/**
|
|
1220
1182
|
* Filter object in the following format:
|
|
1221
1183
|
* `"filter" : {
|
|
@@ -1234,7 +1196,7 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
1234
1196
|
/** @oneof */
|
|
1235
1197
|
interface CursorQueryPagingMethodOneOf {
|
|
1236
1198
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1237
|
-
cursorPaging?: CursorPaging;
|
|
1199
|
+
cursorPaging?: CursorPaging$1;
|
|
1238
1200
|
}
|
|
1239
1201
|
interface Sorting {
|
|
1240
1202
|
/** Name of the field to sort by. */
|
|
@@ -1246,7 +1208,7 @@ declare enum SortOrder {
|
|
|
1246
1208
|
ASC = "ASC",
|
|
1247
1209
|
DESC = "DESC"
|
|
1248
1210
|
}
|
|
1249
|
-
interface CursorPaging {
|
|
1211
|
+
interface CursorPaging$1 {
|
|
1250
1212
|
/** Number of items to load. */
|
|
1251
1213
|
limit?: number | null;
|
|
1252
1214
|
/**
|
|
@@ -1262,13 +1224,13 @@ interface QueryRefundsResponse {
|
|
|
1262
1224
|
/** List of refunds. */
|
|
1263
1225
|
refunds?: Refund[];
|
|
1264
1226
|
/** Paging metadata */
|
|
1265
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
1227
|
+
pagingMetadata?: CursorPagingMetadata$1;
|
|
1266
1228
|
}
|
|
1267
|
-
interface CursorPagingMetadata {
|
|
1229
|
+
interface CursorPagingMetadata$1 {
|
|
1268
1230
|
/** Number of items returned in the response. */
|
|
1269
1231
|
count?: number | null;
|
|
1270
1232
|
/** Offset that was requested. */
|
|
1271
|
-
cursors?: Cursors;
|
|
1233
|
+
cursors?: Cursors$1;
|
|
1272
1234
|
/**
|
|
1273
1235
|
* Indicates if there are more results after the current page.
|
|
1274
1236
|
* If `true`, another page of results can be retrieved.
|
|
@@ -1276,7 +1238,7 @@ interface CursorPagingMetadata {
|
|
|
1276
1238
|
*/
|
|
1277
1239
|
hasNext?: boolean | null;
|
|
1278
1240
|
}
|
|
1279
|
-
interface Cursors {
|
|
1241
|
+
interface Cursors$1 {
|
|
1280
1242
|
/** Cursor pointing to next page in the list of results. */
|
|
1281
1243
|
next?: string | null;
|
|
1282
1244
|
/** Cursor pointing to previous page in the list of results. */
|
|
@@ -1385,11 +1347,11 @@ declare enum RejectionReason {
|
|
|
1385
1347
|
/** Logged in merchant has no permission to refund this charge. */
|
|
1386
1348
|
NOT_AUTHORIZED = "NOT_AUTHORIZED"
|
|
1387
1349
|
}
|
|
1388
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1389
|
-
createdEvent?: EntityCreatedEvent;
|
|
1390
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1391
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1392
|
-
actionEvent?: ActionEvent;
|
|
1350
|
+
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
1351
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
1352
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
1353
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
1354
|
+
actionEvent?: ActionEvent$1;
|
|
1393
1355
|
/**
|
|
1394
1356
|
* Unique event ID.
|
|
1395
1357
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1428,19 +1390,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
1428
1390
|
entityEventSequence?: string | null;
|
|
1429
1391
|
}
|
|
1430
1392
|
/** @oneof */
|
|
1431
|
-
interface DomainEventBodyOneOf {
|
|
1432
|
-
createdEvent?: EntityCreatedEvent;
|
|
1433
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1434
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1435
|
-
actionEvent?: ActionEvent;
|
|
1393
|
+
interface DomainEventBodyOneOf$1 {
|
|
1394
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
1395
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
1396
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
1397
|
+
actionEvent?: ActionEvent$1;
|
|
1436
1398
|
}
|
|
1437
|
-
interface EntityCreatedEvent {
|
|
1399
|
+
interface EntityCreatedEvent$1 {
|
|
1438
1400
|
entity?: string;
|
|
1439
1401
|
}
|
|
1440
|
-
interface RestoreInfo {
|
|
1402
|
+
interface RestoreInfo$1 {
|
|
1441
1403
|
deletedDate?: Date | null;
|
|
1442
1404
|
}
|
|
1443
|
-
interface EntityUpdatedEvent {
|
|
1405
|
+
interface EntityUpdatedEvent$1 {
|
|
1444
1406
|
/**
|
|
1445
1407
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1446
1408
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1448,24 +1410,24 @@ interface EntityUpdatedEvent {
|
|
|
1448
1410
|
*/
|
|
1449
1411
|
currentEntity?: string;
|
|
1450
1412
|
}
|
|
1451
|
-
interface EntityDeletedEvent {
|
|
1413
|
+
interface EntityDeletedEvent$1 {
|
|
1452
1414
|
/** Entity that was deleted */
|
|
1453
1415
|
deletedEntity?: string | null;
|
|
1454
1416
|
}
|
|
1455
|
-
interface ActionEvent {
|
|
1417
|
+
interface ActionEvent$1 {
|
|
1456
1418
|
body?: string;
|
|
1457
1419
|
}
|
|
1458
|
-
interface MessageEnvelope {
|
|
1420
|
+
interface MessageEnvelope$1 {
|
|
1459
1421
|
/** App instance ID. */
|
|
1460
1422
|
instanceId?: string | null;
|
|
1461
1423
|
/** Event type. */
|
|
1462
1424
|
eventType?: string;
|
|
1463
1425
|
/** The identification type and identity data. */
|
|
1464
|
-
identity?: IdentificationData;
|
|
1426
|
+
identity?: IdentificationData$1;
|
|
1465
1427
|
/** Stringify payload. */
|
|
1466
1428
|
data?: string;
|
|
1467
1429
|
}
|
|
1468
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1430
|
+
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
1469
1431
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1470
1432
|
anonymousVisitorId?: string;
|
|
1471
1433
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1475,10 +1437,10 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
1475
1437
|
/** ID of an app. */
|
|
1476
1438
|
appId?: string;
|
|
1477
1439
|
/** @readonly */
|
|
1478
|
-
identityType?: WebhookIdentityType;
|
|
1440
|
+
identityType?: WebhookIdentityType$1;
|
|
1479
1441
|
}
|
|
1480
1442
|
/** @oneof */
|
|
1481
|
-
interface IdentificationDataIdOneOf {
|
|
1443
|
+
interface IdentificationDataIdOneOf$1 {
|
|
1482
1444
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1483
1445
|
anonymousVisitorId?: string;
|
|
1484
1446
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1488,13 +1450,51 @@ interface IdentificationDataIdOneOf {
|
|
|
1488
1450
|
/** ID of an app. */
|
|
1489
1451
|
appId?: string;
|
|
1490
1452
|
}
|
|
1491
|
-
declare enum WebhookIdentityType {
|
|
1453
|
+
declare enum WebhookIdentityType$1 {
|
|
1492
1454
|
UNKNOWN = "UNKNOWN",
|
|
1493
1455
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1494
1456
|
MEMBER = "MEMBER",
|
|
1495
1457
|
WIX_USER = "WIX_USER",
|
|
1496
1458
|
APP = "APP"
|
|
1497
1459
|
}
|
|
1460
|
+
interface SyncRefundRequest {
|
|
1461
|
+
/** Refund ID. */
|
|
1462
|
+
refundId?: string | null;
|
|
1463
|
+
/** ID of the refund on the PSP side. */
|
|
1464
|
+
providerRefundId?: string | null;
|
|
1465
|
+
/** ID of charge for which the funds are returned by this refund. */
|
|
1466
|
+
chargeId?: string | null;
|
|
1467
|
+
/**
|
|
1468
|
+
* Status of the refund.
|
|
1469
|
+
* Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
|
|
1470
|
+
*/
|
|
1471
|
+
status?: Status;
|
|
1472
|
+
/**
|
|
1473
|
+
* Status code.
|
|
1474
|
+
* [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
|
|
1475
|
+
*/
|
|
1476
|
+
statusCode?: string | null;
|
|
1477
|
+
/** Currency of refund, should be the same as currency of charge. */
|
|
1478
|
+
currency?: string | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Amount of refund in base units, what's returned to the buyer.
|
|
1481
|
+
* E.g. "12.95".
|
|
1482
|
+
*/
|
|
1483
|
+
amount?: string | null;
|
|
1484
|
+
/**
|
|
1485
|
+
* Application fee returned to merchant from Wix.
|
|
1486
|
+
* Having this as a separate field since Refund.returned_application_fee is readOnly.
|
|
1487
|
+
*/
|
|
1488
|
+
returnedApplicationFee?: string | null;
|
|
1489
|
+
/** Reason why this refund was issued. */
|
|
1490
|
+
reason?: string | null;
|
|
1491
|
+
/** Optional free-text note about this refund. */
|
|
1492
|
+
note?: string | null;
|
|
1493
|
+
}
|
|
1494
|
+
interface SyncRefundResponse {
|
|
1495
|
+
/** Created/updated refund. */
|
|
1496
|
+
refund?: Refund;
|
|
1497
|
+
}
|
|
1498
1498
|
interface StatusInfoNonNullableFields {
|
|
1499
1499
|
code: string;
|
|
1500
1500
|
}
|
|
@@ -1525,15 +1525,15 @@ interface RefundabilityNonNullableFields {
|
|
|
1525
1525
|
interface GetRefundabilityResponseNonNullableFields {
|
|
1526
1526
|
refundability?: RefundabilityNonNullableFields;
|
|
1527
1527
|
}
|
|
1528
|
-
interface BaseEventMetadata {
|
|
1528
|
+
interface BaseEventMetadata$1 {
|
|
1529
1529
|
/** App instance ID. */
|
|
1530
1530
|
instanceId?: string | null;
|
|
1531
1531
|
/** Event type. */
|
|
1532
1532
|
eventType?: string;
|
|
1533
1533
|
/** The identification type and identity data. */
|
|
1534
|
-
identity?: IdentificationData;
|
|
1534
|
+
identity?: IdentificationData$1;
|
|
1535
1535
|
}
|
|
1536
|
-
interface EventMetadata extends BaseEventMetadata {
|
|
1536
|
+
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Unique event ID.
|
|
1539
1539
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1573,11 +1573,11 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
interface RefundCreatedEnvelope {
|
|
1575
1575
|
entity: Refund;
|
|
1576
|
-
metadata: EventMetadata;
|
|
1576
|
+
metadata: EventMetadata$1;
|
|
1577
1577
|
}
|
|
1578
1578
|
interface RefundUpdatedEnvelope {
|
|
1579
1579
|
entity: Refund;
|
|
1580
|
-
metadata: EventMetadata;
|
|
1580
|
+
metadata: EventMetadata$1;
|
|
1581
1581
|
}
|
|
1582
1582
|
interface CreateRefundOptions {
|
|
1583
1583
|
/**
|
|
@@ -1592,7 +1592,7 @@ interface CreateRefundOptions {
|
|
|
1592
1592
|
previouslyRefundedAmount?: string | null;
|
|
1593
1593
|
}
|
|
1594
1594
|
interface QueryCursorResult {
|
|
1595
|
-
cursors: Cursors;
|
|
1595
|
+
cursors: Cursors$1;
|
|
1596
1596
|
hasNext: () => boolean;
|
|
1597
1597
|
hasPrev: () => boolean;
|
|
1598
1598
|
length: number;
|
|
@@ -1701,7 +1701,7 @@ interface GetRefundabilitySignature {
|
|
|
1701
1701
|
declare const onRefundCreated$1: EventDefinition<RefundCreatedEnvelope, "wix.payments.refunds.v1.refund_created">;
|
|
1702
1702
|
declare const onRefundUpdated$1: EventDefinition<RefundUpdatedEnvelope, "wix.payments.refunds.v1.refund_updated">;
|
|
1703
1703
|
|
|
1704
|
-
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1704
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1705
1705
|
|
|
1706
1706
|
declare const createRefund: MaybeContext<BuildRESTFunction<typeof createRefund$1> & typeof createRefund$1>;
|
|
1707
1707
|
declare const getRefund: MaybeContext<BuildRESTFunction<typeof getRefund$1> & typeof getRefund$1>;
|
|
@@ -1711,23 +1711,664 @@ declare const getRefundability: MaybeContext<BuildRESTFunction<typeof getRefunda
|
|
|
1711
1711
|
|
|
1712
1712
|
type _publicOnRefundCreatedType = typeof onRefundCreated$1;
|
|
1713
1713
|
/** */
|
|
1714
|
-
declare const onRefundCreated: ReturnType<typeof createEventModule<_publicOnRefundCreatedType>>;
|
|
1714
|
+
declare const onRefundCreated: ReturnType<typeof createEventModule$1<_publicOnRefundCreatedType>>;
|
|
1715
1715
|
|
|
1716
1716
|
type _publicOnRefundUpdatedType = typeof onRefundUpdated$1;
|
|
1717
1717
|
/** */
|
|
1718
|
-
declare const onRefundUpdated: ReturnType<typeof createEventModule<_publicOnRefundUpdatedType>>;
|
|
1718
|
+
declare const onRefundUpdated: ReturnType<typeof createEventModule$1<_publicOnRefundUpdatedType>>;
|
|
1719
|
+
|
|
1720
|
+
type context$1_CreateRefundOptions = CreateRefundOptions;
|
|
1721
|
+
type context$1_CreateRefundRequest = CreateRefundRequest;
|
|
1722
|
+
type context$1_CreateRefundResponse = CreateRefundResponse;
|
|
1723
|
+
type context$1_CreateRefundResponseNonNullableFields = CreateRefundResponseNonNullableFields;
|
|
1724
|
+
type context$1_CursorQuery = CursorQuery;
|
|
1725
|
+
type context$1_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
|
|
1726
|
+
type context$1_GetRefundRequest = GetRefundRequest;
|
|
1727
|
+
type context$1_GetRefundResponse = GetRefundResponse;
|
|
1728
|
+
type context$1_GetRefundResponseNonNullableFields = GetRefundResponseNonNullableFields;
|
|
1729
|
+
type context$1_GetRefundabilityRequest = GetRefundabilityRequest;
|
|
1730
|
+
type context$1_GetRefundabilityResponse = GetRefundabilityResponse;
|
|
1731
|
+
type context$1_GetRefundabilityResponseNonNullableFields = GetRefundabilityResponseNonNullableFields;
|
|
1732
|
+
type context$1_Initiator = Initiator;
|
|
1733
|
+
declare const context$1_Initiator: typeof Initiator;
|
|
1734
|
+
type context$1_QueryRefundsRequest = QueryRefundsRequest;
|
|
1735
|
+
type context$1_QueryRefundsResponse = QueryRefundsResponse;
|
|
1736
|
+
type context$1_QueryRefundsResponseNonNullableFields = QueryRefundsResponseNonNullableFields;
|
|
1737
|
+
type context$1_Refund = Refund;
|
|
1738
|
+
type context$1_RefundCreatedEnvelope = RefundCreatedEnvelope;
|
|
1739
|
+
type context$1_RefundNonNullableFields = RefundNonNullableFields;
|
|
1740
|
+
type context$1_RefundOptions = RefundOptions;
|
|
1741
|
+
type context$1_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
|
|
1742
|
+
type context$1_Refundability = Refundability;
|
|
1743
|
+
type context$1_RefundabilityDetailsOneOf = RefundabilityDetailsOneOf;
|
|
1744
|
+
type context$1_RefundsQueryBuilder = RefundsQueryBuilder;
|
|
1745
|
+
type context$1_RefundsQueryResult = RefundsQueryResult;
|
|
1746
|
+
type context$1_Rejection = Rejection;
|
|
1747
|
+
type context$1_RejectionReason = RejectionReason;
|
|
1748
|
+
declare const context$1_RejectionReason: typeof RejectionReason;
|
|
1749
|
+
type context$1_SortOrder = SortOrder;
|
|
1750
|
+
declare const context$1_SortOrder: typeof SortOrder;
|
|
1751
|
+
type context$1_Sorting = Sorting;
|
|
1752
|
+
type context$1_Status = Status;
|
|
1753
|
+
declare const context$1_Status: typeof Status;
|
|
1754
|
+
type context$1_StatusInfo = StatusInfo;
|
|
1755
|
+
type context$1_SyncRefundRequest = SyncRefundRequest;
|
|
1756
|
+
type context$1_SyncRefundResponse = SyncRefundResponse;
|
|
1757
|
+
type context$1_UpdateExtendedFieldsOptions = UpdateExtendedFieldsOptions;
|
|
1758
|
+
type context$1_UpdateExtendedFieldsRequest = UpdateExtendedFieldsRequest;
|
|
1759
|
+
type context$1_UpdateExtendedFieldsResponse = UpdateExtendedFieldsResponse;
|
|
1760
|
+
type context$1_UpdateExtendedFieldsResponseNonNullableFields = UpdateExtendedFieldsResponseNonNullableFields;
|
|
1761
|
+
type context$1__publicOnRefundCreatedType = _publicOnRefundCreatedType;
|
|
1762
|
+
type context$1__publicOnRefundUpdatedType = _publicOnRefundUpdatedType;
|
|
1763
|
+
declare const context$1_createRefund: typeof createRefund;
|
|
1764
|
+
declare const context$1_getRefund: typeof getRefund;
|
|
1765
|
+
declare const context$1_getRefundability: typeof getRefundability;
|
|
1766
|
+
declare const context$1_onRefundCreated: typeof onRefundCreated;
|
|
1767
|
+
declare const context$1_onRefundUpdated: typeof onRefundUpdated;
|
|
1768
|
+
declare const context$1_queryRefunds: typeof queryRefunds;
|
|
1769
|
+
declare const context$1_updateExtendedFields: typeof updateExtendedFields;
|
|
1770
|
+
declare namespace context$1 {
|
|
1771
|
+
export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateRefundOptions as CreateRefundOptions, type context$1_CreateRefundRequest as CreateRefundRequest, type context$1_CreateRefundResponse as CreateRefundResponse, type context$1_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type context$1_CursorQuery as CursorQuery, type context$1_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type ExtendedFields$1 as ExtendedFields, type context$1_GetRefundRequest as GetRefundRequest, type context$1_GetRefundResponse as GetRefundResponse, type context$1_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type context$1_GetRefundabilityRequest as GetRefundabilityRequest, type context$1_GetRefundabilityResponse as GetRefundabilityResponse, type context$1_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, context$1_Initiator as Initiator, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryRefundsRequest as QueryRefundsRequest, type context$1_QueryRefundsResponse as QueryRefundsResponse, type context$1_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type context$1_Refund as Refund, type context$1_RefundCreatedEnvelope as RefundCreatedEnvelope, type context$1_RefundNonNullableFields as RefundNonNullableFields, type context$1_RefundOptions as RefundOptions, type context$1_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type context$1_Refundability as Refundability, type context$1_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type context$1_RefundsQueryBuilder as RefundsQueryBuilder, type context$1_RefundsQueryResult as RefundsQueryResult, type context$1_Rejection as Rejection, context$1_RejectionReason as RejectionReason, type RestoreInfo$1 as RestoreInfo, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, context$1_Status as Status, type context$1_StatusInfo as StatusInfo, type context$1_SyncRefundRequest as SyncRefundRequest, type context$1_SyncRefundResponse as SyncRefundResponse, type context$1_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type context$1_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type context$1_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type context$1_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnRefundCreatedType as _publicOnRefundCreatedType, type context$1__publicOnRefundUpdatedType as _publicOnRefundUpdatedType, context$1_createRefund as createRefund, context$1_getRefund as getRefund, context$1_getRefundability as getRefundability, context$1_onRefundCreated as onRefundCreated, context$1_onRefundUpdated as onRefundUpdated, onRefundCreated$1 as publicOnRefundCreated, onRefundUpdated$1 as publicOnRefundUpdated, context$1_queryRefunds as queryRefunds, context$1_updateExtendedFields as updateExtendedFields };
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
interface SavedPaymentMethod {
|
|
1775
|
+
/**
|
|
1776
|
+
* Unique identifier of a saved payment method.
|
|
1777
|
+
* @readonly
|
|
1778
|
+
*/
|
|
1779
|
+
_id?: string | null;
|
|
1780
|
+
/**
|
|
1781
|
+
* Represents the current state of a saved payment method. Each time saved payment method is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision.
|
|
1782
|
+
* @readonly
|
|
1783
|
+
*/
|
|
1784
|
+
revision?: string | null;
|
|
1785
|
+
/**
|
|
1786
|
+
* SavedPaymentMethod creation time.
|
|
1787
|
+
* @readonly
|
|
1788
|
+
*/
|
|
1789
|
+
_createdDate?: Date | null;
|
|
1790
|
+
/**
|
|
1791
|
+
* SavedPaymentMethod last update time.
|
|
1792
|
+
* @readonly
|
|
1793
|
+
*/
|
|
1794
|
+
_updatedDate?: Date | null;
|
|
1795
|
+
/** Saved payment method owner's member ID. */
|
|
1796
|
+
siteMemberId?: string | null;
|
|
1797
|
+
/**
|
|
1798
|
+
* Defines whether this payment method is primary for the member. Member can only have at most one primary saved payment method.
|
|
1799
|
+
* @readonly
|
|
1800
|
+
*/
|
|
1801
|
+
primary?: boolean;
|
|
1802
|
+
/** Payment method details. */
|
|
1803
|
+
paymentMethod?: PaymentMethod;
|
|
1804
|
+
/**
|
|
1805
|
+
* Defines whether this payment method can be used by the merchant for making unscheduled payments.
|
|
1806
|
+
* Even if it's set to `false` payment method still can be used for scheduled payments e.g. subscription renewal without the buyer being present.
|
|
1807
|
+
*/
|
|
1808
|
+
merchantUseAllowed?: boolean | null;
|
|
1809
|
+
/**
|
|
1810
|
+
* Saved payment method sensitive information.
|
|
1811
|
+
* @readonly
|
|
1812
|
+
*/
|
|
1813
|
+
sensitiveInfo?: SensitiveInfo;
|
|
1814
|
+
/** Data Extensions */
|
|
1815
|
+
extendedFields?: ExtendedFields;
|
|
1816
|
+
}
|
|
1817
|
+
interface CardInfo {
|
|
1818
|
+
/**
|
|
1819
|
+
* Credit card's last 4 digits.
|
|
1820
|
+
* @readonly
|
|
1821
|
+
*/
|
|
1822
|
+
lastFourDigits?: string | null;
|
|
1823
|
+
/**
|
|
1824
|
+
* Credit card's BIN (Bank Identification Number). It's first 4-6 digits of card's number.
|
|
1825
|
+
* @readonly
|
|
1826
|
+
*/
|
|
1827
|
+
bin?: string | null;
|
|
1828
|
+
/** Credit card's expiration month. */
|
|
1829
|
+
expirationMonth?: number | null;
|
|
1830
|
+
/** Credit card's expiration year. */
|
|
1831
|
+
expirationYear?: number | null;
|
|
1832
|
+
/** Card holder's full name specified on the card. */
|
|
1833
|
+
cardholderName?: string | null;
|
|
1834
|
+
}
|
|
1835
|
+
declare enum CardBrand {
|
|
1836
|
+
UNKNOWN_CARD_BRAND = "UNKNOWN_CARD_BRAND",
|
|
1837
|
+
AMEX = "AMEX",
|
|
1838
|
+
DANKORT = "DANKORT",
|
|
1839
|
+
DINERS = "DINERS",
|
|
1840
|
+
DISCOVER = "DISCOVER",
|
|
1841
|
+
ISRACARD = "ISRACARD",
|
|
1842
|
+
JCB = "JCB",
|
|
1843
|
+
MAESTRO = "MAESTRO",
|
|
1844
|
+
MASTERCARD = "MASTERCARD",
|
|
1845
|
+
UNIONPAY = "UNIONPAY",
|
|
1846
|
+
VISA = "VISA",
|
|
1847
|
+
RUPAY = "RUPAY"
|
|
1848
|
+
}
|
|
1849
|
+
interface PaymentMethod {
|
|
1850
|
+
/** Legacy payment method type ID. Supported values are `creditCard`, `payPal`. */
|
|
1851
|
+
typeId?: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Payment method type ID.
|
|
1854
|
+
* @readonly
|
|
1855
|
+
*/
|
|
1856
|
+
paymentMethodTypeId?: string;
|
|
1857
|
+
/**
|
|
1858
|
+
* Payment method brand ID.
|
|
1859
|
+
* @readonly
|
|
1860
|
+
*/
|
|
1861
|
+
paymentMethodBrandId?: string | null;
|
|
1862
|
+
/** Details of credit card. */
|
|
1863
|
+
cardInfo?: CardInfo;
|
|
1864
|
+
}
|
|
1865
|
+
interface SensitiveInfo {
|
|
1866
|
+
/** Sensitive details of credit card like card token. */
|
|
1867
|
+
cardSensitiveInfo?: CardSensitiveInfo;
|
|
1868
|
+
}
|
|
1869
|
+
interface CardSensitiveInfo {
|
|
1870
|
+
/** Persistent token of credit card tokenized by Wix. */
|
|
1871
|
+
persistentToken?: string | null;
|
|
1872
|
+
}
|
|
1873
|
+
interface ExtendedFields {
|
|
1874
|
+
/**
|
|
1875
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
1876
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
1877
|
+
*
|
|
1878
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
1879
|
+
*
|
|
1880
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
1881
|
+
*/
|
|
1882
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
1883
|
+
}
|
|
1884
|
+
interface UpsertSavedPaymentMethodRequest {
|
|
1885
|
+
/** Saved payment method. */
|
|
1886
|
+
savedPaymentMethod: SavedPaymentMethod;
|
|
1887
|
+
/** Temporary token of credit card tokenized by Wix. This token is used to create a persistent token */
|
|
1888
|
+
temporaryCardToken: string | null;
|
|
1889
|
+
}
|
|
1890
|
+
interface UpsertSavedPaymentMethodResponse {
|
|
1891
|
+
/** Saved payment method. */
|
|
1892
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
1893
|
+
}
|
|
1894
|
+
interface GetSavedPaymentMethodRequest {
|
|
1895
|
+
/** Unique identifier of a saved payment method. */
|
|
1896
|
+
savedPaymentMethodId: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* List of heeded fields that will be returned.
|
|
1899
|
+
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
1900
|
+
*/
|
|
1901
|
+
fields?: RequestedFields[];
|
|
1902
|
+
}
|
|
1903
|
+
declare enum RequestedFields {
|
|
1904
|
+
/** Default value. This value is unused. */
|
|
1905
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
1906
|
+
SENSITIVE_INFO = "SENSITIVE_INFO"
|
|
1907
|
+
}
|
|
1908
|
+
interface GetSavedPaymentMethodResponse {
|
|
1909
|
+
/** Saved payment method. */
|
|
1910
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
1911
|
+
}
|
|
1912
|
+
interface DeleteSavedPaymentMethodRequest {
|
|
1913
|
+
/** Unique identifier of a saved payment method. */
|
|
1914
|
+
savedPaymentMethodId: string;
|
|
1915
|
+
}
|
|
1916
|
+
interface DeleteSavedPaymentMethodResponse {
|
|
1917
|
+
}
|
|
1918
|
+
interface ListSavedPaymentMethodsRequest {
|
|
1919
|
+
/**
|
|
1920
|
+
* Site member that owns saved payment methods.
|
|
1921
|
+
* Pass `me` to list saved payment method of the current site member.
|
|
1922
|
+
*/
|
|
1923
|
+
siteMemberId?: string | null;
|
|
1924
|
+
/** Payment method type id. Supported values are `creditCard`, `payPal`. */
|
|
1925
|
+
paymentMethodTypeId?: string | null;
|
|
1926
|
+
/**
|
|
1927
|
+
* Defines whether this payment method can be used by the merchant for making unscheduled payments.
|
|
1928
|
+
* Even if it's set to `false` payment method still can be used for scheduled payments e.g. subscription renewal without the buyer being present.
|
|
1929
|
+
*/
|
|
1930
|
+
merchantUseAllowed?: boolean | null;
|
|
1931
|
+
/**
|
|
1932
|
+
* List of requested fields that will be returned.
|
|
1933
|
+
* Supported values:
|
|
1934
|
+
* SENSITIVE_INFO - Sensitive information of a SavedPaymentMethod like credit card tokens that's needed to process payments with it.
|
|
1935
|
+
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
1936
|
+
*/
|
|
1937
|
+
fields?: RequestedFields[];
|
|
1938
|
+
/**
|
|
1939
|
+
* Paging for limit the response size.
|
|
1940
|
+
* If no paging provider default response limit 100 will be used.
|
|
1941
|
+
*/
|
|
1942
|
+
paging?: CursorPaging;
|
|
1943
|
+
}
|
|
1944
|
+
interface CursorPaging {
|
|
1945
|
+
/** Maximum number of items to return in the results. */
|
|
1946
|
+
limit?: number | null;
|
|
1947
|
+
/**
|
|
1948
|
+
* Pointer to the next or previous page in the list of results.
|
|
1949
|
+
*
|
|
1950
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1951
|
+
* Not relevant for the first request.
|
|
1952
|
+
*/
|
|
1953
|
+
cursor?: string | null;
|
|
1954
|
+
}
|
|
1955
|
+
interface ListSavedPaymentMethodsResponse {
|
|
1956
|
+
/** List of saved payment methods. */
|
|
1957
|
+
savedPaymentMethods?: SavedPaymentMethod[];
|
|
1958
|
+
/** Paging metadata. */
|
|
1959
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
1960
|
+
}
|
|
1961
|
+
interface CursorPagingMetadata {
|
|
1962
|
+
/** Number of items returned in the response. */
|
|
1963
|
+
count?: number | null;
|
|
1964
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1965
|
+
cursors?: Cursors;
|
|
1966
|
+
/**
|
|
1967
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1968
|
+
*
|
|
1969
|
+
* + `true`: Another page of results can be retrieved.
|
|
1970
|
+
* + `false`: This is the last page.
|
|
1971
|
+
*/
|
|
1972
|
+
hasNext?: boolean | null;
|
|
1973
|
+
}
|
|
1974
|
+
interface Cursors {
|
|
1975
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
1976
|
+
next?: string | null;
|
|
1977
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
1978
|
+
prev?: string | null;
|
|
1979
|
+
}
|
|
1980
|
+
interface UpdateSavedPaymentMethodRequest {
|
|
1981
|
+
/** Saved payment method to update. */
|
|
1982
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
1983
|
+
}
|
|
1984
|
+
interface UpdateSavedPaymentMethodResponse {
|
|
1985
|
+
/** Updated saved payment method. */
|
|
1986
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
1987
|
+
}
|
|
1988
|
+
interface MarkSavedPaymentMethodPrimaryRequest {
|
|
1989
|
+
/** Unique identifier of a saved payment method. */
|
|
1990
|
+
savedPaymentMethodId: string;
|
|
1991
|
+
}
|
|
1992
|
+
interface MarkSavedPaymentMethodPrimaryResponse {
|
|
1993
|
+
}
|
|
1994
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1995
|
+
createdEvent?: EntityCreatedEvent;
|
|
1996
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
1997
|
+
deletedEvent?: EntityDeletedEvent;
|
|
1998
|
+
actionEvent?: ActionEvent;
|
|
1999
|
+
/**
|
|
2000
|
+
* Unique event ID.
|
|
2001
|
+
* Allows clients to ignore duplicate webhooks.
|
|
2002
|
+
*/
|
|
2003
|
+
_id?: string;
|
|
2004
|
+
/**
|
|
2005
|
+
* Assumes actions are also always typed to an entity_type
|
|
2006
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2007
|
+
*/
|
|
2008
|
+
entityFqdn?: string;
|
|
2009
|
+
/**
|
|
2010
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2011
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2012
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
2013
|
+
*/
|
|
2014
|
+
slug?: string;
|
|
2015
|
+
/** ID of the entity associated with the event. */
|
|
2016
|
+
entityId?: string;
|
|
2017
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2018
|
+
eventTime?: Date | null;
|
|
2019
|
+
/**
|
|
2020
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2021
|
+
* (for example, GDPR).
|
|
2022
|
+
*/
|
|
2023
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2024
|
+
/** If present, indicates the action that triggered the event. */
|
|
2025
|
+
originatedFrom?: string | null;
|
|
2026
|
+
/**
|
|
2027
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
2028
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2029
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2030
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2031
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2032
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2033
|
+
*/
|
|
2034
|
+
entityEventSequence?: string | null;
|
|
2035
|
+
}
|
|
2036
|
+
/** @oneof */
|
|
2037
|
+
interface DomainEventBodyOneOf {
|
|
2038
|
+
createdEvent?: EntityCreatedEvent;
|
|
2039
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
2040
|
+
deletedEvent?: EntityDeletedEvent;
|
|
2041
|
+
actionEvent?: ActionEvent;
|
|
2042
|
+
}
|
|
2043
|
+
interface EntityCreatedEvent {
|
|
2044
|
+
entity?: string;
|
|
2045
|
+
}
|
|
2046
|
+
interface RestoreInfo {
|
|
2047
|
+
deletedDate?: Date | null;
|
|
2048
|
+
}
|
|
2049
|
+
interface EntityUpdatedEvent {
|
|
2050
|
+
/**
|
|
2051
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2052
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
2053
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
2054
|
+
*/
|
|
2055
|
+
currentEntity?: string;
|
|
2056
|
+
}
|
|
2057
|
+
interface EntityDeletedEvent {
|
|
2058
|
+
/** Entity that was deleted */
|
|
2059
|
+
deletedEntity?: string | null;
|
|
2060
|
+
}
|
|
2061
|
+
interface ActionEvent {
|
|
2062
|
+
body?: string;
|
|
2063
|
+
}
|
|
2064
|
+
interface MessageEnvelope {
|
|
2065
|
+
/** App instance ID. */
|
|
2066
|
+
instanceId?: string | null;
|
|
2067
|
+
/** Event type. */
|
|
2068
|
+
eventType?: string;
|
|
2069
|
+
/** The identification type and identity data. */
|
|
2070
|
+
identity?: IdentificationData;
|
|
2071
|
+
/** Stringify payload. */
|
|
2072
|
+
data?: string;
|
|
2073
|
+
}
|
|
2074
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
2075
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
2076
|
+
anonymousVisitorId?: string;
|
|
2077
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
2078
|
+
memberId?: string;
|
|
2079
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2080
|
+
wixUserId?: string;
|
|
2081
|
+
/** ID of an app. */
|
|
2082
|
+
appId?: string;
|
|
2083
|
+
/** @readonly */
|
|
2084
|
+
identityType?: WebhookIdentityType;
|
|
2085
|
+
}
|
|
2086
|
+
/** @oneof */
|
|
2087
|
+
interface IdentificationDataIdOneOf {
|
|
2088
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
2089
|
+
anonymousVisitorId?: string;
|
|
2090
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
2091
|
+
memberId?: string;
|
|
2092
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2093
|
+
wixUserId?: string;
|
|
2094
|
+
/** ID of an app. */
|
|
2095
|
+
appId?: string;
|
|
2096
|
+
}
|
|
2097
|
+
declare enum WebhookIdentityType {
|
|
2098
|
+
UNKNOWN = "UNKNOWN",
|
|
2099
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
2100
|
+
MEMBER = "MEMBER",
|
|
2101
|
+
WIX_USER = "WIX_USER",
|
|
2102
|
+
APP = "APP"
|
|
2103
|
+
}
|
|
2104
|
+
interface FindSavedCreditCardRequest {
|
|
2105
|
+
/** temporary card token */
|
|
2106
|
+
temporaryCardToken?: string;
|
|
2107
|
+
/** site member id */
|
|
2108
|
+
siteMemberId?: string;
|
|
2109
|
+
/** expiration month */
|
|
2110
|
+
expirationMonth?: number;
|
|
2111
|
+
/** expiration year */
|
|
2112
|
+
expirationYear?: number;
|
|
2113
|
+
}
|
|
2114
|
+
interface FindSavedCreditCardResponse {
|
|
2115
|
+
/** saved payment method id */
|
|
2116
|
+
savedPaymentMethodId?: string | null;
|
|
2117
|
+
}
|
|
2118
|
+
interface CardInfoNonNullableFields {
|
|
2119
|
+
brand: CardBrand;
|
|
2120
|
+
}
|
|
2121
|
+
interface PaymentMethodNonNullableFields {
|
|
2122
|
+
typeId: string;
|
|
2123
|
+
paymentMethodTypeId: string;
|
|
2124
|
+
cardInfo?: CardInfoNonNullableFields;
|
|
2125
|
+
}
|
|
2126
|
+
interface SavedPaymentMethodNonNullableFields {
|
|
2127
|
+
primary: boolean;
|
|
2128
|
+
paymentMethod?: PaymentMethodNonNullableFields;
|
|
2129
|
+
}
|
|
2130
|
+
interface UpsertSavedPaymentMethodResponseNonNullableFields {
|
|
2131
|
+
savedPaymentMethod?: SavedPaymentMethodNonNullableFields;
|
|
2132
|
+
}
|
|
2133
|
+
interface GetSavedPaymentMethodResponseNonNullableFields {
|
|
2134
|
+
savedPaymentMethod?: SavedPaymentMethodNonNullableFields;
|
|
2135
|
+
}
|
|
2136
|
+
interface ListSavedPaymentMethodsResponseNonNullableFields {
|
|
2137
|
+
savedPaymentMethods: SavedPaymentMethodNonNullableFields[];
|
|
2138
|
+
}
|
|
2139
|
+
interface UpdateSavedPaymentMethodResponseNonNullableFields {
|
|
2140
|
+
savedPaymentMethod?: SavedPaymentMethodNonNullableFields;
|
|
2141
|
+
}
|
|
2142
|
+
interface BaseEventMetadata {
|
|
2143
|
+
/** App instance ID. */
|
|
2144
|
+
instanceId?: string | null;
|
|
2145
|
+
/** Event type. */
|
|
2146
|
+
eventType?: string;
|
|
2147
|
+
/** The identification type and identity data. */
|
|
2148
|
+
identity?: IdentificationData;
|
|
2149
|
+
}
|
|
2150
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
2151
|
+
/**
|
|
2152
|
+
* Unique event ID.
|
|
2153
|
+
* Allows clients to ignore duplicate webhooks.
|
|
2154
|
+
*/
|
|
2155
|
+
_id?: string;
|
|
2156
|
+
/**
|
|
2157
|
+
* Assumes actions are also always typed to an entity_type
|
|
2158
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2159
|
+
*/
|
|
2160
|
+
entityFqdn?: string;
|
|
2161
|
+
/**
|
|
2162
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2163
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2164
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
2165
|
+
*/
|
|
2166
|
+
slug?: string;
|
|
2167
|
+
/** ID of the entity associated with the event. */
|
|
2168
|
+
entityId?: string;
|
|
2169
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2170
|
+
eventTime?: Date | null;
|
|
2171
|
+
/**
|
|
2172
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2173
|
+
* (for example, GDPR).
|
|
2174
|
+
*/
|
|
2175
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2176
|
+
/** If present, indicates the action that triggered the event. */
|
|
2177
|
+
originatedFrom?: string | null;
|
|
2178
|
+
/**
|
|
2179
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
2180
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2181
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2182
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2183
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2184
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2185
|
+
*/
|
|
2186
|
+
entityEventSequence?: string | null;
|
|
2187
|
+
}
|
|
2188
|
+
interface SavedPaymentMethodCreatedEnvelope {
|
|
2189
|
+
entity: SavedPaymentMethod;
|
|
2190
|
+
metadata: EventMetadata;
|
|
2191
|
+
}
|
|
2192
|
+
interface SavedPaymentMethodDeletedEnvelope {
|
|
2193
|
+
metadata: EventMetadata;
|
|
2194
|
+
}
|
|
2195
|
+
interface SavedPaymentMethodUpdatedEnvelope {
|
|
2196
|
+
entity: SavedPaymentMethod;
|
|
2197
|
+
metadata: EventMetadata;
|
|
2198
|
+
}
|
|
2199
|
+
interface UpsertSavedPaymentMethodOptions {
|
|
2200
|
+
/** Temporary token of credit card tokenized by Wix. This token is used to create a persistent token */
|
|
2201
|
+
temporaryCardToken: string | null;
|
|
2202
|
+
}
|
|
2203
|
+
interface GetSavedPaymentMethodOptions {
|
|
2204
|
+
/**
|
|
2205
|
+
* List of heeded fields that will be returned.
|
|
2206
|
+
* You should have additional permission in order to get them as described in HidedFields documentation.
|
|
2207
|
+
*/
|
|
2208
|
+
fields?: RequestedFields[];
|
|
2209
|
+
}
|
|
2210
|
+
interface ListSavedPaymentMethodsOptions {
|
|
2211
|
+
/**
|
|
2212
|
+
* Site member that owns saved payment methods.
|
|
2213
|
+
* Pass `me` to list saved payment method of the current site member.
|
|
2214
|
+
*/
|
|
2215
|
+
siteMemberId?: string | null;
|
|
2216
|
+
/** Payment method type id. Supported values are `creditCard`, `payPal`. */
|
|
2217
|
+
paymentMethodTypeId?: string | null;
|
|
2218
|
+
/**
|
|
2219
|
+
* Defines whether this payment method can be used by the merchant for making unscheduled payments.
|
|
2220
|
+
* Even if it's set to `false` payment method still can be used for scheduled payments e.g. subscription renewal without the buyer being present.
|
|
2221
|
+
*/
|
|
2222
|
+
merchantUseAllowed?: boolean | null;
|
|
2223
|
+
/**
|
|
2224
|
+
* List of requested fields that will be returned.
|
|
2225
|
+
* Supported values:
|
|
2226
|
+
* SENSITIVE_INFO - Sensitive information of a SavedPaymentMethod like credit card tokens that's needed to process payments with it.
|
|
2227
|
+
* In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
|
|
2228
|
+
*/
|
|
2229
|
+
fields?: RequestedFields[];
|
|
2230
|
+
/**
|
|
2231
|
+
* Paging for limit the response size.
|
|
2232
|
+
* If no paging provider default response limit 100 will be used.
|
|
2233
|
+
*/
|
|
2234
|
+
paging?: CursorPaging;
|
|
2235
|
+
}
|
|
2236
|
+
interface UpdateSavedPaymentMethodOptions {
|
|
2237
|
+
savedPaymentMethod: {
|
|
2238
|
+
/**
|
|
2239
|
+
* Unique identifier of a saved payment method.
|
|
2240
|
+
* @readonly
|
|
2241
|
+
*/
|
|
2242
|
+
_id?: string | null;
|
|
2243
|
+
/**
|
|
2244
|
+
* Represents the current state of a saved payment method. Each time saved payment method is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision.
|
|
2245
|
+
* @readonly
|
|
2246
|
+
*/
|
|
2247
|
+
revision?: string | null;
|
|
2248
|
+
/**
|
|
2249
|
+
* SavedPaymentMethod creation time.
|
|
2250
|
+
* @readonly
|
|
2251
|
+
*/
|
|
2252
|
+
_createdDate?: Date | null;
|
|
2253
|
+
/**
|
|
2254
|
+
* SavedPaymentMethod last update time.
|
|
2255
|
+
* @readonly
|
|
2256
|
+
*/
|
|
2257
|
+
_updatedDate?: Date | null;
|
|
2258
|
+
/** Saved payment method owner's member ID. */
|
|
2259
|
+
siteMemberId?: string | null;
|
|
2260
|
+
/**
|
|
2261
|
+
* Defines whether this payment method is primary for the member. Member can only have at most one primary saved payment method.
|
|
2262
|
+
* @readonly
|
|
2263
|
+
*/
|
|
2264
|
+
primary?: boolean;
|
|
2265
|
+
/** Payment method details. */
|
|
2266
|
+
paymentMethod?: PaymentMethod;
|
|
2267
|
+
/**
|
|
2268
|
+
* Defines whether this payment method can be used by the merchant for making unscheduled payments.
|
|
2269
|
+
* Even if it's set to `false` payment method still can be used for scheduled payments e.g. subscription renewal without the buyer being present.
|
|
2270
|
+
*/
|
|
2271
|
+
merchantUseAllowed?: boolean | null;
|
|
2272
|
+
/**
|
|
2273
|
+
* Saved payment method sensitive information.
|
|
2274
|
+
* @readonly
|
|
2275
|
+
*/
|
|
2276
|
+
sensitiveInfo?: SensitiveInfo;
|
|
2277
|
+
/** Data Extensions */
|
|
2278
|
+
extendedFields?: ExtendedFields;
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
declare function upsertSavedPaymentMethod$1(httpClient: HttpClient): UpsertSavedPaymentMethodSignature;
|
|
2283
|
+
interface UpsertSavedPaymentMethodSignature {
|
|
2284
|
+
/**
|
|
2285
|
+
* Creates a new SavedPaymentMethod or updates existing one if SavedPaymentMethod already exists for the same site member.
|
|
2286
|
+
* To check uniqueness SavedPaymentMethods are compared by credit card expiration year/month, last four digits and bin.
|
|
2287
|
+
* If sensitiveInfo.cardSensitiveInfo.temporaryToken was passed than service will eventually create a persi from it.
|
|
2288
|
+
* @param - Saved payment method.
|
|
2289
|
+
*/
|
|
2290
|
+
(savedPaymentMethod: SavedPaymentMethod, options: UpsertSavedPaymentMethodOptions): Promise<UpsertSavedPaymentMethodResponse & UpsertSavedPaymentMethodResponseNonNullableFields>;
|
|
2291
|
+
}
|
|
2292
|
+
declare function getSavedPaymentMethod$1(httpClient: HttpClient): GetSavedPaymentMethodSignature;
|
|
2293
|
+
interface GetSavedPaymentMethodSignature {
|
|
2294
|
+
/**
|
|
2295
|
+
* Returns SavedPaymentMethod by ID.
|
|
2296
|
+
* @param - Unique identifier of a saved payment method.
|
|
2297
|
+
* @returns Saved payment method.
|
|
2298
|
+
*/
|
|
2299
|
+
(savedPaymentMethodId: string, options?: GetSavedPaymentMethodOptions | undefined): Promise<SavedPaymentMethod & SavedPaymentMethodNonNullableFields>;
|
|
2300
|
+
}
|
|
2301
|
+
declare function deleteSavedPaymentMethod$1(httpClient: HttpClient): DeleteSavedPaymentMethodSignature;
|
|
2302
|
+
interface DeleteSavedPaymentMethodSignature {
|
|
2303
|
+
/**
|
|
2304
|
+
* Deletes SavedPaymentMethod by ID.
|
|
2305
|
+
* @param - Unique identifier of a saved payment method.
|
|
2306
|
+
*/
|
|
2307
|
+
(savedPaymentMethodId: string): Promise<void>;
|
|
2308
|
+
}
|
|
2309
|
+
declare function listSavedPaymentMethods$1(httpClient: HttpClient): ListSavedPaymentMethodsSignature;
|
|
2310
|
+
interface ListSavedPaymentMethodsSignature {
|
|
2311
|
+
/**
|
|
2312
|
+
* Lists SavedPaymentMethods ordered by update date descending.
|
|
2313
|
+
*/
|
|
2314
|
+
(options?: ListSavedPaymentMethodsOptions | undefined): Promise<ListSavedPaymentMethodsResponse & ListSavedPaymentMethodsResponseNonNullableFields>;
|
|
2315
|
+
}
|
|
2316
|
+
declare function updateSavedPaymentMethod$1(httpClient: HttpClient): UpdateSavedPaymentMethodSignature;
|
|
2317
|
+
interface UpdateSavedPaymentMethodSignature {
|
|
2318
|
+
/**
|
|
2319
|
+
* Updates SavedPaymentMethod. Only fields listed in field_mask are updated.
|
|
2320
|
+
* @param - Unique identifier of a saved payment method.
|
|
2321
|
+
* @returns Updated saved payment method.
|
|
2322
|
+
*/
|
|
2323
|
+
(_id: string | null, options?: UpdateSavedPaymentMethodOptions | undefined): Promise<SavedPaymentMethod & SavedPaymentMethodNonNullableFields>;
|
|
2324
|
+
}
|
|
2325
|
+
declare function markSavedPaymentMethodPrimary$1(httpClient: HttpClient): MarkSavedPaymentMethodPrimarySignature;
|
|
2326
|
+
interface MarkSavedPaymentMethodPrimarySignature {
|
|
2327
|
+
/**
|
|
2328
|
+
* Marks SavedPaymentMethod as primary for site member who's the owner of this SavedPaymentMethod.
|
|
2329
|
+
* Primary SavedPaymentMethod is selected by default during the checkout.
|
|
2330
|
+
* For every site member there can be at most one primary SavedPaymentMethod,
|
|
2331
|
+
* so when one SavedPaymentMethod is marked as primary previous one is automatically unmarked.
|
|
2332
|
+
* @param - Unique identifier of a saved payment method.
|
|
2333
|
+
*/
|
|
2334
|
+
(savedPaymentMethodId: string): Promise<void>;
|
|
2335
|
+
}
|
|
2336
|
+
declare const onSavedPaymentMethodCreated$1: EventDefinition<SavedPaymentMethodCreatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_created">;
|
|
2337
|
+
declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
|
|
2338
|
+
declare const onSavedPaymentMethodUpdated$1: EventDefinition<SavedPaymentMethodUpdatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_updated">;
|
|
2339
|
+
|
|
2340
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2341
|
+
|
|
2342
|
+
declare const upsertSavedPaymentMethod: MaybeContext<BuildRESTFunction<typeof upsertSavedPaymentMethod$1> & typeof upsertSavedPaymentMethod$1>;
|
|
2343
|
+
declare const getSavedPaymentMethod: MaybeContext<BuildRESTFunction<typeof getSavedPaymentMethod$1> & typeof getSavedPaymentMethod$1>;
|
|
2344
|
+
declare const deleteSavedPaymentMethod: MaybeContext<BuildRESTFunction<typeof deleteSavedPaymentMethod$1> & typeof deleteSavedPaymentMethod$1>;
|
|
2345
|
+
declare const listSavedPaymentMethods: MaybeContext<BuildRESTFunction<typeof listSavedPaymentMethods$1> & typeof listSavedPaymentMethods$1>;
|
|
2346
|
+
declare const updateSavedPaymentMethod: MaybeContext<BuildRESTFunction<typeof updateSavedPaymentMethod$1> & typeof updateSavedPaymentMethod$1>;
|
|
2347
|
+
declare const markSavedPaymentMethodPrimary: MaybeContext<BuildRESTFunction<typeof markSavedPaymentMethodPrimary$1> & typeof markSavedPaymentMethodPrimary$1>;
|
|
2348
|
+
|
|
2349
|
+
type _publicOnSavedPaymentMethodCreatedType = typeof onSavedPaymentMethodCreated$1;
|
|
2350
|
+
/** */
|
|
2351
|
+
declare const onSavedPaymentMethodCreated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodCreatedType>>;
|
|
2352
|
+
|
|
2353
|
+
type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
|
|
2354
|
+
/** */
|
|
2355
|
+
declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
|
|
2356
|
+
|
|
2357
|
+
type _publicOnSavedPaymentMethodUpdatedType = typeof onSavedPaymentMethodUpdated$1;
|
|
2358
|
+
/** */
|
|
2359
|
+
declare const onSavedPaymentMethodUpdated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodUpdatedType>>;
|
|
1719
2360
|
|
|
1720
2361
|
type context_ActionEvent = ActionEvent;
|
|
1721
2362
|
type context_BaseEventMetadata = BaseEventMetadata;
|
|
1722
|
-
type
|
|
1723
|
-
|
|
1724
|
-
type
|
|
1725
|
-
type
|
|
2363
|
+
type context_CardBrand = CardBrand;
|
|
2364
|
+
declare const context_CardBrand: typeof CardBrand;
|
|
2365
|
+
type context_CardInfo = CardInfo;
|
|
2366
|
+
type context_CardSensitiveInfo = CardSensitiveInfo;
|
|
1726
2367
|
type context_CursorPaging = CursorPaging;
|
|
1727
2368
|
type context_CursorPagingMetadata = CursorPagingMetadata;
|
|
1728
|
-
type context_CursorQuery = CursorQuery;
|
|
1729
|
-
type context_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
|
|
1730
2369
|
type context_Cursors = Cursors;
|
|
2370
|
+
type context_DeleteSavedPaymentMethodRequest = DeleteSavedPaymentMethodRequest;
|
|
2371
|
+
type context_DeleteSavedPaymentMethodResponse = DeleteSavedPaymentMethodResponse;
|
|
1731
2372
|
type context_DomainEvent = DomainEvent;
|
|
1732
2373
|
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
1733
2374
|
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
@@ -1735,58 +2376,55 @@ type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
|
1735
2376
|
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
1736
2377
|
type context_EventMetadata = EventMetadata;
|
|
1737
2378
|
type context_ExtendedFields = ExtendedFields;
|
|
1738
|
-
type
|
|
1739
|
-
type
|
|
1740
|
-
type
|
|
1741
|
-
type
|
|
1742
|
-
type
|
|
1743
|
-
type
|
|
2379
|
+
type context_FindSavedCreditCardRequest = FindSavedCreditCardRequest;
|
|
2380
|
+
type context_FindSavedCreditCardResponse = FindSavedCreditCardResponse;
|
|
2381
|
+
type context_GetSavedPaymentMethodOptions = GetSavedPaymentMethodOptions;
|
|
2382
|
+
type context_GetSavedPaymentMethodRequest = GetSavedPaymentMethodRequest;
|
|
2383
|
+
type context_GetSavedPaymentMethodResponse = GetSavedPaymentMethodResponse;
|
|
2384
|
+
type context_GetSavedPaymentMethodResponseNonNullableFields = GetSavedPaymentMethodResponseNonNullableFields;
|
|
1744
2385
|
type context_IdentificationData = IdentificationData;
|
|
1745
2386
|
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
1746
|
-
type
|
|
1747
|
-
|
|
2387
|
+
type context_ListSavedPaymentMethodsOptions = ListSavedPaymentMethodsOptions;
|
|
2388
|
+
type context_ListSavedPaymentMethodsRequest = ListSavedPaymentMethodsRequest;
|
|
2389
|
+
type context_ListSavedPaymentMethodsResponse = ListSavedPaymentMethodsResponse;
|
|
2390
|
+
type context_ListSavedPaymentMethodsResponseNonNullableFields = ListSavedPaymentMethodsResponseNonNullableFields;
|
|
2391
|
+
type context_MarkSavedPaymentMethodPrimaryRequest = MarkSavedPaymentMethodPrimaryRequest;
|
|
2392
|
+
type context_MarkSavedPaymentMethodPrimaryResponse = MarkSavedPaymentMethodPrimaryResponse;
|
|
1748
2393
|
type context_MessageEnvelope = MessageEnvelope;
|
|
1749
|
-
type
|
|
1750
|
-
type
|
|
1751
|
-
|
|
1752
|
-
type context_Refund = Refund;
|
|
1753
|
-
type context_RefundCreatedEnvelope = RefundCreatedEnvelope;
|
|
1754
|
-
type context_RefundNonNullableFields = RefundNonNullableFields;
|
|
1755
|
-
type context_RefundOptions = RefundOptions;
|
|
1756
|
-
type context_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
|
|
1757
|
-
type context_Refundability = Refundability;
|
|
1758
|
-
type context_RefundabilityDetailsOneOf = RefundabilityDetailsOneOf;
|
|
1759
|
-
type context_RefundsQueryBuilder = RefundsQueryBuilder;
|
|
1760
|
-
type context_RefundsQueryResult = RefundsQueryResult;
|
|
1761
|
-
type context_Rejection = Rejection;
|
|
1762
|
-
type context_RejectionReason = RejectionReason;
|
|
1763
|
-
declare const context_RejectionReason: typeof RejectionReason;
|
|
2394
|
+
type context_PaymentMethod = PaymentMethod;
|
|
2395
|
+
type context_RequestedFields = RequestedFields;
|
|
2396
|
+
declare const context_RequestedFields: typeof RequestedFields;
|
|
1764
2397
|
type context_RestoreInfo = RestoreInfo;
|
|
1765
|
-
type
|
|
1766
|
-
|
|
1767
|
-
type
|
|
1768
|
-
type
|
|
1769
|
-
|
|
1770
|
-
type
|
|
1771
|
-
type
|
|
1772
|
-
type
|
|
1773
|
-
type
|
|
1774
|
-
type
|
|
1775
|
-
type
|
|
1776
|
-
type
|
|
2398
|
+
type context_SavedPaymentMethod = SavedPaymentMethod;
|
|
2399
|
+
type context_SavedPaymentMethodCreatedEnvelope = SavedPaymentMethodCreatedEnvelope;
|
|
2400
|
+
type context_SavedPaymentMethodDeletedEnvelope = SavedPaymentMethodDeletedEnvelope;
|
|
2401
|
+
type context_SavedPaymentMethodNonNullableFields = SavedPaymentMethodNonNullableFields;
|
|
2402
|
+
type context_SavedPaymentMethodUpdatedEnvelope = SavedPaymentMethodUpdatedEnvelope;
|
|
2403
|
+
type context_SensitiveInfo = SensitiveInfo;
|
|
2404
|
+
type context_UpdateSavedPaymentMethodOptions = UpdateSavedPaymentMethodOptions;
|
|
2405
|
+
type context_UpdateSavedPaymentMethodRequest = UpdateSavedPaymentMethodRequest;
|
|
2406
|
+
type context_UpdateSavedPaymentMethodResponse = UpdateSavedPaymentMethodResponse;
|
|
2407
|
+
type context_UpdateSavedPaymentMethodResponseNonNullableFields = UpdateSavedPaymentMethodResponseNonNullableFields;
|
|
2408
|
+
type context_UpsertSavedPaymentMethodOptions = UpsertSavedPaymentMethodOptions;
|
|
2409
|
+
type context_UpsertSavedPaymentMethodRequest = UpsertSavedPaymentMethodRequest;
|
|
2410
|
+
type context_UpsertSavedPaymentMethodResponse = UpsertSavedPaymentMethodResponse;
|
|
2411
|
+
type context_UpsertSavedPaymentMethodResponseNonNullableFields = UpsertSavedPaymentMethodResponseNonNullableFields;
|
|
1777
2412
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
1778
2413
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
1779
|
-
type
|
|
1780
|
-
type
|
|
1781
|
-
|
|
1782
|
-
declare const
|
|
1783
|
-
declare const
|
|
1784
|
-
declare const
|
|
1785
|
-
declare const
|
|
1786
|
-
declare const
|
|
1787
|
-
declare const
|
|
2414
|
+
type context__publicOnSavedPaymentMethodCreatedType = _publicOnSavedPaymentMethodCreatedType;
|
|
2415
|
+
type context__publicOnSavedPaymentMethodDeletedType = _publicOnSavedPaymentMethodDeletedType;
|
|
2416
|
+
type context__publicOnSavedPaymentMethodUpdatedType = _publicOnSavedPaymentMethodUpdatedType;
|
|
2417
|
+
declare const context_deleteSavedPaymentMethod: typeof deleteSavedPaymentMethod;
|
|
2418
|
+
declare const context_getSavedPaymentMethod: typeof getSavedPaymentMethod;
|
|
2419
|
+
declare const context_listSavedPaymentMethods: typeof listSavedPaymentMethods;
|
|
2420
|
+
declare const context_markSavedPaymentMethodPrimary: typeof markSavedPaymentMethodPrimary;
|
|
2421
|
+
declare const context_onSavedPaymentMethodCreated: typeof onSavedPaymentMethodCreated;
|
|
2422
|
+
declare const context_onSavedPaymentMethodDeleted: typeof onSavedPaymentMethodDeleted;
|
|
2423
|
+
declare const context_onSavedPaymentMethodUpdated: typeof onSavedPaymentMethodUpdated;
|
|
2424
|
+
declare const context_updateSavedPaymentMethod: typeof updateSavedPaymentMethod;
|
|
2425
|
+
declare const context_upsertSavedPaymentMethod: typeof upsertSavedPaymentMethod;
|
|
1788
2426
|
declare namespace context {
|
|
1789
|
-
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata,
|
|
2427
|
+
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, context_CardBrand as CardBrand, type context_CardInfo as CardInfo, type context_CardSensitiveInfo as CardSensitiveInfo, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_Cursors as Cursors, type context_DeleteSavedPaymentMethodRequest as DeleteSavedPaymentMethodRequest, type context_DeleteSavedPaymentMethodResponse as DeleteSavedPaymentMethodResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_FindSavedCreditCardRequest as FindSavedCreditCardRequest, type context_FindSavedCreditCardResponse as FindSavedCreditCardResponse, type context_GetSavedPaymentMethodOptions as GetSavedPaymentMethodOptions, type context_GetSavedPaymentMethodRequest as GetSavedPaymentMethodRequest, type context_GetSavedPaymentMethodResponse as GetSavedPaymentMethodResponse, type context_GetSavedPaymentMethodResponseNonNullableFields as GetSavedPaymentMethodResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListSavedPaymentMethodsOptions as ListSavedPaymentMethodsOptions, type context_ListSavedPaymentMethodsRequest as ListSavedPaymentMethodsRequest, type context_ListSavedPaymentMethodsResponse as ListSavedPaymentMethodsResponse, type context_ListSavedPaymentMethodsResponseNonNullableFields as ListSavedPaymentMethodsResponseNonNullableFields, type context_MarkSavedPaymentMethodPrimaryRequest as MarkSavedPaymentMethodPrimaryRequest, type context_MarkSavedPaymentMethodPrimaryResponse as MarkSavedPaymentMethodPrimaryResponse, type context_MessageEnvelope as MessageEnvelope, type context_PaymentMethod as PaymentMethod, context_RequestedFields as RequestedFields, type context_RestoreInfo as RestoreInfo, type context_SavedPaymentMethod as SavedPaymentMethod, type context_SavedPaymentMethodCreatedEnvelope as SavedPaymentMethodCreatedEnvelope, type context_SavedPaymentMethodDeletedEnvelope as SavedPaymentMethodDeletedEnvelope, type context_SavedPaymentMethodNonNullableFields as SavedPaymentMethodNonNullableFields, type context_SavedPaymentMethodUpdatedEnvelope as SavedPaymentMethodUpdatedEnvelope, type context_SensitiveInfo as SensitiveInfo, type context_UpdateSavedPaymentMethodOptions as UpdateSavedPaymentMethodOptions, type context_UpdateSavedPaymentMethodRequest as UpdateSavedPaymentMethodRequest, type context_UpdateSavedPaymentMethodResponse as UpdateSavedPaymentMethodResponse, type context_UpdateSavedPaymentMethodResponseNonNullableFields as UpdateSavedPaymentMethodResponseNonNullableFields, type context_UpsertSavedPaymentMethodOptions as UpsertSavedPaymentMethodOptions, type context_UpsertSavedPaymentMethodRequest as UpsertSavedPaymentMethodRequest, type context_UpsertSavedPaymentMethodResponse as UpsertSavedPaymentMethodResponse, type context_UpsertSavedPaymentMethodResponseNonNullableFields as UpsertSavedPaymentMethodResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSavedPaymentMethodCreatedType as _publicOnSavedPaymentMethodCreatedType, type context__publicOnSavedPaymentMethodDeletedType as _publicOnSavedPaymentMethodDeletedType, type context__publicOnSavedPaymentMethodUpdatedType as _publicOnSavedPaymentMethodUpdatedType, context_deleteSavedPaymentMethod as deleteSavedPaymentMethod, context_getSavedPaymentMethod as getSavedPaymentMethod, context_listSavedPaymentMethods as listSavedPaymentMethods, context_markSavedPaymentMethodPrimary as markSavedPaymentMethodPrimary, context_onSavedPaymentMethodCreated as onSavedPaymentMethodCreated, context_onSavedPaymentMethodDeleted as onSavedPaymentMethodDeleted, context_onSavedPaymentMethodUpdated as onSavedPaymentMethodUpdated, onSavedPaymentMethodCreated$1 as publicOnSavedPaymentMethodCreated, onSavedPaymentMethodDeleted$1 as publicOnSavedPaymentMethodDeleted, onSavedPaymentMethodUpdated$1 as publicOnSavedPaymentMethodUpdated, context_updateSavedPaymentMethod as updateSavedPaymentMethod, context_upsertSavedPaymentMethod as upsertSavedPaymentMethod };
|
|
1790
2428
|
}
|
|
1791
2429
|
|
|
1792
|
-
export { context$
|
|
2430
|
+
export { context$3 as onboardingAvailability, context$2 as pspCallbacks, context$1 as refunds, context as savedPaymentMethods };
|