@wix/payments 1.0.22 → 1.0.24

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.
@@ -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$1 extends DomainEventBodyOneOf$1 {
599
- createdEvent?: EntityCreatedEvent$1;
600
- updatedEvent?: EntityUpdatedEvent$1;
601
- deletedEvent?: EntityDeletedEvent$1;
602
- actionEvent?: ActionEvent$1;
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$1 {
642
- createdEvent?: EntityCreatedEvent$1;
643
- updatedEvent?: EntityUpdatedEvent$1;
644
- deletedEvent?: EntityDeletedEvent$1;
645
- actionEvent?: ActionEvent$1;
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$1 {
647
+ interface EntityCreatedEvent$2 {
648
648
  entity?: string;
649
649
  }
650
- interface RestoreInfo$1 {
650
+ interface RestoreInfo$2 {
651
651
  deletedDate?: Date | null;
652
652
  }
653
- interface EntityUpdatedEvent$1 {
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$1 {
661
+ interface EntityDeletedEvent$2 {
662
662
  /** Entity that was deleted */
663
663
  deletedEntity?: string | null;
664
664
  }
665
- interface ActionEvent$1 {
665
+ interface ActionEvent$2 {
666
666
  body?: string;
667
667
  }
668
- interface MessageEnvelope$1 {
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$1;
674
+ identity?: IdentificationData$2;
675
675
  /** Stringify payload. */
676
676
  data?: string;
677
677
  }
678
- interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
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$1;
688
+ identityType?: WebhookIdentityType$2;
689
689
  }
690
690
  /** @oneof */
691
- interface IdentificationDataIdOneOf$1 {
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$1 {
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$1 {
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$1;
743
+ identity?: IdentificationData$2;
744
744
  }
745
- interface EventMetadata$1 extends BaseEventMetadata$1 {
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$1;
785
+ metadata: EventMetadata$2;
786
786
  }
787
787
  interface OnboardingAvailabilityUpdatedEnvelope {
788
788
  entity: OnboardingAvailability;
789
- metadata: EventMetadata$1;
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$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
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$1<_publicOnOnboardingAvailabilityCreatedType>>;
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$1<_publicOnOnboardingAvailabilityUpdatedType>>;
849
-
850
- type index_d$2_AttestationInfo = AttestationInfo;
851
- type index_d$2_CbdFlow = CbdFlow;
852
- type index_d$2_GetOnboardingAvailabilityRequest = GetOnboardingAvailabilityRequest;
853
- type index_d$2_GetOnboardingAvailabilityResponse = GetOnboardingAvailabilityResponse;
854
- type index_d$2_GetOnboardingAvailabilityResponseNonNullableFields = GetOnboardingAvailabilityResponseNonNullableFields;
855
- type index_d$2_OnboardingAvailability = OnboardingAvailability;
856
- type index_d$2_OnboardingAvailabilityCreatedEnvelope = OnboardingAvailabilityCreatedEnvelope;
857
- type index_d$2_OnboardingAvailabilityUpdatedEnvelope = OnboardingAvailabilityUpdatedEnvelope;
858
- type index_d$2_PartnerFlow = PartnerFlow;
859
- type index_d$2_PartnerFlowStatus = PartnerFlowStatus;
860
- declare const index_d$2_PartnerFlowStatus: typeof PartnerFlowStatus;
861
- type index_d$2_RestrictedGoodsCategory = RestrictedGoodsCategory;
862
- declare const index_d$2_RestrictedGoodsCategory: typeof RestrictedGoodsCategory;
863
- type index_d$2_RestrictedGoodsFlow = RestrictedGoodsFlow;
864
- type index_d$2_RestrictedGoodsFlowStatus = RestrictedGoodsFlowStatus;
865
- declare const index_d$2_RestrictedGoodsFlowStatus: typeof RestrictedGoodsFlowStatus;
866
- type index_d$2_UpdateCbdFlowOptions = UpdateCbdFlowOptions;
867
- type index_d$2_UpdateCbdFlowRequest = UpdateCbdFlowRequest;
868
- type index_d$2_UpdateCbdFlowResponse = UpdateCbdFlowResponse;
869
- type index_d$2_UpdateCbdFlowResponseNonNullableFields = UpdateCbdFlowResponseNonNullableFields;
870
- type index_d$2_UpdatePartnerFlowOptions = UpdatePartnerFlowOptions;
871
- type index_d$2_UpdatePartnerFlowRequest = UpdatePartnerFlowRequest;
872
- type index_d$2_UpdatePartnerFlowResponse = UpdatePartnerFlowResponse;
873
- type index_d$2_UpdatePartnerFlowResponseNonNullableFields = UpdatePartnerFlowResponseNonNullableFields;
874
- type index_d$2_UpdateRestrictedGoodsFlowOptions = UpdateRestrictedGoodsFlowOptions;
875
- type index_d$2_UpdateRestrictedGoodsFlowRequest = UpdateRestrictedGoodsFlowRequest;
876
- type index_d$2_UpdateRestrictedGoodsFlowResponse = UpdateRestrictedGoodsFlowResponse;
877
- type index_d$2_UpdateRestrictedGoodsFlowResponseNonNullableFields = UpdateRestrictedGoodsFlowResponseNonNullableFields;
878
- type index_d$2__publicOnOnboardingAvailabilityCreatedType = _publicOnOnboardingAvailabilityCreatedType;
879
- type index_d$2__publicOnOnboardingAvailabilityUpdatedType = _publicOnOnboardingAvailabilityUpdatedType;
880
- declare const index_d$2_getOnboardingAvailability: typeof getOnboardingAvailability;
881
- declare const index_d$2_onOnboardingAvailabilityCreated: typeof onOnboardingAvailabilityCreated;
882
- declare const index_d$2_onOnboardingAvailabilityUpdated: typeof onOnboardingAvailabilityUpdated;
883
- declare const index_d$2_updateCbdFlow: typeof updateCbdFlow;
884
- declare const index_d$2_updatePartnerFlow: typeof updatePartnerFlow;
885
- declare const index_d$2_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
886
- declare namespace index_d$2 {
887
- export { type ActionEvent$1 as ActionEvent, type index_d$2_AttestationInfo as AttestationInfo, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$2_CbdFlow as CbdFlow, 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 index_d$2_GetOnboardingAvailabilityRequest as GetOnboardingAvailabilityRequest, type index_d$2_GetOnboardingAvailabilityResponse as GetOnboardingAvailabilityResponse, type index_d$2_GetOnboardingAvailabilityResponseNonNullableFields as GetOnboardingAvailabilityResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_OnboardingAvailability as OnboardingAvailability, type index_d$2_OnboardingAvailabilityCreatedEnvelope as OnboardingAvailabilityCreatedEnvelope, type index_d$2_OnboardingAvailabilityUpdatedEnvelope as OnboardingAvailabilityUpdatedEnvelope, type index_d$2_PartnerFlow as PartnerFlow, index_d$2_PartnerFlowStatus as PartnerFlowStatus, type RestoreInfo$1 as RestoreInfo, index_d$2_RestrictedGoodsCategory as RestrictedGoodsCategory, type index_d$2_RestrictedGoodsFlow as RestrictedGoodsFlow, index_d$2_RestrictedGoodsFlowStatus as RestrictedGoodsFlowStatus, Status$1 as Status, type index_d$2_UpdateCbdFlowOptions as UpdateCbdFlowOptions, type index_d$2_UpdateCbdFlowRequest as UpdateCbdFlowRequest, type index_d$2_UpdateCbdFlowResponse as UpdateCbdFlowResponse, type index_d$2_UpdateCbdFlowResponseNonNullableFields as UpdateCbdFlowResponseNonNullableFields, type index_d$2_UpdatePartnerFlowOptions as UpdatePartnerFlowOptions, type index_d$2_UpdatePartnerFlowRequest as UpdatePartnerFlowRequest, type index_d$2_UpdatePartnerFlowResponse as UpdatePartnerFlowResponse, type index_d$2_UpdatePartnerFlowResponseNonNullableFields as UpdatePartnerFlowResponseNonNullableFields, type index_d$2_UpdateRestrictedGoodsFlowOptions as UpdateRestrictedGoodsFlowOptions, type index_d$2_UpdateRestrictedGoodsFlowRequest as UpdateRestrictedGoodsFlowRequest, type index_d$2_UpdateRestrictedGoodsFlowResponse as UpdateRestrictedGoodsFlowResponse, type index_d$2_UpdateRestrictedGoodsFlowResponseNonNullableFields as UpdateRestrictedGoodsFlowResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$2__publicOnOnboardingAvailabilityCreatedType as _publicOnOnboardingAvailabilityCreatedType, type index_d$2__publicOnOnboardingAvailabilityUpdatedType as _publicOnOnboardingAvailabilityUpdatedType, index_d$2_getOnboardingAvailability as getOnboardingAvailability, index_d$2_onOnboardingAvailabilityCreated as onOnboardingAvailabilityCreated, index_d$2_onOnboardingAvailabilityUpdated as onOnboardingAvailabilityUpdated, onOnboardingAvailabilityCreated$1 as publicOnOnboardingAvailabilityCreated, onOnboardingAvailabilityUpdated$1 as publicOnOnboardingAvailabilityUpdated, index_d$2_updateCbdFlow as updateCbdFlow, index_d$2_updatePartnerFlow as updatePartnerFlow, index_d$2_updateRestrictedGoodsFlow as updateRestrictedGoodsFlow };
848
+ declare const onOnboardingAvailabilityUpdated: ReturnType<typeof createEventModule$2<_publicOnOnboardingAvailabilityUpdatedType>>;
849
+
850
+ type index_d$3_AttestationInfo = AttestationInfo;
851
+ type index_d$3_CbdFlow = CbdFlow;
852
+ type index_d$3_GetOnboardingAvailabilityRequest = GetOnboardingAvailabilityRequest;
853
+ type index_d$3_GetOnboardingAvailabilityResponse = GetOnboardingAvailabilityResponse;
854
+ type index_d$3_GetOnboardingAvailabilityResponseNonNullableFields = GetOnboardingAvailabilityResponseNonNullableFields;
855
+ type index_d$3_OnboardingAvailability = OnboardingAvailability;
856
+ type index_d$3_OnboardingAvailabilityCreatedEnvelope = OnboardingAvailabilityCreatedEnvelope;
857
+ type index_d$3_OnboardingAvailabilityUpdatedEnvelope = OnboardingAvailabilityUpdatedEnvelope;
858
+ type index_d$3_PartnerFlow = PartnerFlow;
859
+ type index_d$3_PartnerFlowStatus = PartnerFlowStatus;
860
+ declare const index_d$3_PartnerFlowStatus: typeof PartnerFlowStatus;
861
+ type index_d$3_RestrictedGoodsCategory = RestrictedGoodsCategory;
862
+ declare const index_d$3_RestrictedGoodsCategory: typeof RestrictedGoodsCategory;
863
+ type index_d$3_RestrictedGoodsFlow = RestrictedGoodsFlow;
864
+ type index_d$3_RestrictedGoodsFlowStatus = RestrictedGoodsFlowStatus;
865
+ declare const index_d$3_RestrictedGoodsFlowStatus: typeof RestrictedGoodsFlowStatus;
866
+ type index_d$3_UpdateCbdFlowOptions = UpdateCbdFlowOptions;
867
+ type index_d$3_UpdateCbdFlowRequest = UpdateCbdFlowRequest;
868
+ type index_d$3_UpdateCbdFlowResponse = UpdateCbdFlowResponse;
869
+ type index_d$3_UpdateCbdFlowResponseNonNullableFields = UpdateCbdFlowResponseNonNullableFields;
870
+ type index_d$3_UpdatePartnerFlowOptions = UpdatePartnerFlowOptions;
871
+ type index_d$3_UpdatePartnerFlowRequest = UpdatePartnerFlowRequest;
872
+ type index_d$3_UpdatePartnerFlowResponse = UpdatePartnerFlowResponse;
873
+ type index_d$3_UpdatePartnerFlowResponseNonNullableFields = UpdatePartnerFlowResponseNonNullableFields;
874
+ type index_d$3_UpdateRestrictedGoodsFlowOptions = UpdateRestrictedGoodsFlowOptions;
875
+ type index_d$3_UpdateRestrictedGoodsFlowRequest = UpdateRestrictedGoodsFlowRequest;
876
+ type index_d$3_UpdateRestrictedGoodsFlowResponse = UpdateRestrictedGoodsFlowResponse;
877
+ type index_d$3_UpdateRestrictedGoodsFlowResponseNonNullableFields = UpdateRestrictedGoodsFlowResponseNonNullableFields;
878
+ type index_d$3__publicOnOnboardingAvailabilityCreatedType = _publicOnOnboardingAvailabilityCreatedType;
879
+ type index_d$3__publicOnOnboardingAvailabilityUpdatedType = _publicOnOnboardingAvailabilityUpdatedType;
880
+ declare const index_d$3_getOnboardingAvailability: typeof getOnboardingAvailability;
881
+ declare const index_d$3_onOnboardingAvailabilityCreated: typeof onOnboardingAvailabilityCreated;
882
+ declare const index_d$3_onOnboardingAvailabilityUpdated: typeof onOnboardingAvailabilityUpdated;
883
+ declare const index_d$3_updateCbdFlow: typeof updateCbdFlow;
884
+ declare const index_d$3_updatePartnerFlow: typeof updatePartnerFlow;
885
+ declare const index_d$3_updateRestrictedGoodsFlow: typeof updateRestrictedGoodsFlow;
886
+ declare namespace index_d$3 {
887
+ export { type ActionEvent$2 as ActionEvent, type index_d$3_AttestationInfo as AttestationInfo, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$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 index_d$3_GetOnboardingAvailabilityRequest as GetOnboardingAvailabilityRequest, type index_d$3_GetOnboardingAvailabilityResponse as GetOnboardingAvailabilityResponse, type index_d$3_GetOnboardingAvailabilityResponseNonNullableFields as GetOnboardingAvailabilityResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type index_d$3_OnboardingAvailability as OnboardingAvailability, type index_d$3_OnboardingAvailabilityCreatedEnvelope as OnboardingAvailabilityCreatedEnvelope, type index_d$3_OnboardingAvailabilityUpdatedEnvelope as OnboardingAvailabilityUpdatedEnvelope, type index_d$3_PartnerFlow as PartnerFlow, index_d$3_PartnerFlowStatus as PartnerFlowStatus, type RestoreInfo$2 as RestoreInfo, index_d$3_RestrictedGoodsCategory as RestrictedGoodsCategory, type index_d$3_RestrictedGoodsFlow as RestrictedGoodsFlow, index_d$3_RestrictedGoodsFlowStatus as RestrictedGoodsFlowStatus, Status$1 as Status, type index_d$3_UpdateCbdFlowOptions as UpdateCbdFlowOptions, type index_d$3_UpdateCbdFlowRequest as UpdateCbdFlowRequest, type index_d$3_UpdateCbdFlowResponse as UpdateCbdFlowResponse, type index_d$3_UpdateCbdFlowResponseNonNullableFields as UpdateCbdFlowResponseNonNullableFields, type index_d$3_UpdatePartnerFlowOptions as UpdatePartnerFlowOptions, type index_d$3_UpdatePartnerFlowRequest as UpdatePartnerFlowRequest, type index_d$3_UpdatePartnerFlowResponse as UpdatePartnerFlowResponse, type index_d$3_UpdatePartnerFlowResponseNonNullableFields as UpdatePartnerFlowResponseNonNullableFields, type index_d$3_UpdateRestrictedGoodsFlowOptions as UpdateRestrictedGoodsFlowOptions, type index_d$3_UpdateRestrictedGoodsFlowRequest as UpdateRestrictedGoodsFlowRequest, type index_d$3_UpdateRestrictedGoodsFlowResponse as UpdateRestrictedGoodsFlowResponse, type index_d$3_UpdateRestrictedGoodsFlowResponseNonNullableFields as UpdateRestrictedGoodsFlowResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type index_d$3__publicOnOnboardingAvailabilityCreatedType as _publicOnOnboardingAvailabilityCreatedType, type index_d$3__publicOnOnboardingAvailabilityUpdatedType as _publicOnOnboardingAvailabilityUpdatedType, index_d$3_getOnboardingAvailability as getOnboardingAvailability, index_d$3_onOnboardingAvailabilityCreated as onOnboardingAvailabilityCreated, index_d$3_onOnboardingAvailabilityUpdated as onOnboardingAvailabilityUpdated, onOnboardingAvailabilityCreated$1 as publicOnOnboardingAvailabilityCreated, onOnboardingAvailabilityUpdated$1 as publicOnOnboardingAvailabilityUpdated, index_d$3_updateCbdFlow as updateCbdFlow, index_d$3_updatePartnerFlow as updatePartnerFlow, index_d$3_updateRestrictedGoodsFlow as updateRestrictedGoodsFlow };
888
888
  }
889
889
 
890
890
  /** Provider platform event */
@@ -995,20 +995,20 @@ interface SubmitEventSignature {
995
995
 
996
996
  declare const submitEvent: MaybeContext<BuildRESTFunction<typeof submitEvent$1> & typeof submitEvent$1>;
997
997
 
998
- type index_d$1_CardDetails = CardDetails;
999
- type index_d$1_CardReference = CardReference;
1000
- type index_d$1_CredentialsOnFile = CredentialsOnFile;
1001
- type index_d$1_CredentialsOnFileInfoOneOf = CredentialsOnFileInfoOneOf;
1002
- type index_d$1_PaymentMethodReference = PaymentMethodReference;
1003
- type index_d$1_ProviderPlatformEvent = ProviderPlatformEvent;
1004
- type index_d$1_ProviderPlatformEventResourceOneOf = ProviderPlatformEventResourceOneOf;
1005
- type index_d$1_RefundEvent = RefundEvent;
1006
- type index_d$1_SubmitEventRequest = SubmitEventRequest;
1007
- type index_d$1_SubmitEventResponse = SubmitEventResponse;
1008
- type index_d$1_TransactionEvent = TransactionEvent;
1009
- declare const index_d$1_submitEvent: typeof submitEvent;
1010
- declare namespace index_d$1 {
1011
- export { type index_d$1_CardDetails as CardDetails, type index_d$1_CardReference as CardReference, type index_d$1_CredentialsOnFile as CredentialsOnFile, type index_d$1_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type index_d$1_PaymentMethodReference as PaymentMethodReference, type index_d$1_ProviderPlatformEvent as ProviderPlatformEvent, type index_d$1_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type index_d$1_RefundEvent as RefundEvent, type index_d$1_SubmitEventRequest as SubmitEventRequest, type index_d$1_SubmitEventResponse as SubmitEventResponse, type index_d$1_TransactionEvent as TransactionEvent, index_d$1_submitEvent as submitEvent };
998
+ type index_d$2_CardDetails = CardDetails;
999
+ type index_d$2_CardReference = CardReference;
1000
+ type index_d$2_CredentialsOnFile = CredentialsOnFile;
1001
+ type index_d$2_CredentialsOnFileInfoOneOf = CredentialsOnFileInfoOneOf;
1002
+ type index_d$2_PaymentMethodReference = PaymentMethodReference;
1003
+ type index_d$2_ProviderPlatformEvent = ProviderPlatformEvent;
1004
+ type index_d$2_ProviderPlatformEventResourceOneOf = ProviderPlatformEventResourceOneOf;
1005
+ type index_d$2_RefundEvent = RefundEvent;
1006
+ type index_d$2_SubmitEventRequest = SubmitEventRequest;
1007
+ type index_d$2_SubmitEventResponse = SubmitEventResponse;
1008
+ type index_d$2_TransactionEvent = TransactionEvent;
1009
+ declare const index_d$2_submitEvent: typeof submitEvent;
1010
+ declare namespace index_d$2 {
1011
+ export { type index_d$2_CardDetails as CardDetails, type index_d$2_CardReference as CardReference, type index_d$2_CredentialsOnFile as CredentialsOnFile, type index_d$2_CredentialsOnFileInfoOneOf as CredentialsOnFileInfoOneOf, type index_d$2_PaymentMethodReference as PaymentMethodReference, type index_d$2_ProviderPlatformEvent as ProviderPlatformEvent, type index_d$2_ProviderPlatformEventResourceOneOf as ProviderPlatformEventResourceOneOf, type index_d$2_RefundEvent as RefundEvent, type index_d$2_SubmitEventRequest as SubmitEventRequest, type index_d$2_SubmitEventResponse as SubmitEventResponse, type index_d$2_TransactionEvent as TransactionEvent, index_d$2_submitEvent as submitEvent };
1012
1012
  }
1013
1013
 
1014
1014
  /**
@@ -1040,7 +1040,7 @@ 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. */
@@ -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.
@@ -1215,7 +1215,7 @@ interface QueryRefundsRequest {
1215
1215
  }
1216
1216
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
1217
1217
  /** 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;
1218
+ cursorPaging?: CursorPaging$1;
1219
1219
  /**
1220
1220
  * Filter object in the following format:
1221
1221
  * `"filter" : {
@@ -1234,7 +1234,7 @@ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1234
1234
  /** @oneof */
1235
1235
  interface CursorQueryPagingMethodOneOf {
1236
1236
  /** 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;
1237
+ cursorPaging?: CursorPaging$1;
1238
1238
  }
1239
1239
  interface Sorting {
1240
1240
  /** Name of the field to sort by. */
@@ -1246,7 +1246,7 @@ declare enum SortOrder {
1246
1246
  ASC = "ASC",
1247
1247
  DESC = "DESC"
1248
1248
  }
1249
- interface CursorPaging {
1249
+ interface CursorPaging$1 {
1250
1250
  /** Number of items to load. */
1251
1251
  limit?: number | null;
1252
1252
  /**
@@ -1262,13 +1262,13 @@ interface QueryRefundsResponse {
1262
1262
  /** List of refunds. */
1263
1263
  refunds?: Refund[];
1264
1264
  /** Paging metadata */
1265
- pagingMetadata?: CursorPagingMetadata;
1265
+ pagingMetadata?: CursorPagingMetadata$1;
1266
1266
  }
1267
- interface CursorPagingMetadata {
1267
+ interface CursorPagingMetadata$1 {
1268
1268
  /** Number of items returned in the response. */
1269
1269
  count?: number | null;
1270
1270
  /** Offset that was requested. */
1271
- cursors?: Cursors;
1271
+ cursors?: Cursors$1;
1272
1272
  /**
1273
1273
  * Indicates if there are more results after the current page.
1274
1274
  * If `true`, another page of results can be retrieved.
@@ -1276,7 +1276,7 @@ interface CursorPagingMetadata {
1276
1276
  */
1277
1277
  hasNext?: boolean | null;
1278
1278
  }
1279
- interface Cursors {
1279
+ interface Cursors$1 {
1280
1280
  /** Cursor pointing to next page in the list of results. */
1281
1281
  next?: string | null;
1282
1282
  /** Cursor pointing to previous page in the list of results. */
@@ -1385,11 +1385,11 @@ declare enum RejectionReason {
1385
1385
  /** Logged in merchant has no permission to refund this charge. */
1386
1386
  NOT_AUTHORIZED = "NOT_AUTHORIZED"
1387
1387
  }
1388
- interface DomainEvent extends DomainEventBodyOneOf {
1389
- createdEvent?: EntityCreatedEvent;
1390
- updatedEvent?: EntityUpdatedEvent;
1391
- deletedEvent?: EntityDeletedEvent;
1392
- actionEvent?: ActionEvent;
1388
+ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
1389
+ createdEvent?: EntityCreatedEvent$1;
1390
+ updatedEvent?: EntityUpdatedEvent$1;
1391
+ deletedEvent?: EntityDeletedEvent$1;
1392
+ actionEvent?: ActionEvent$1;
1393
1393
  /**
1394
1394
  * Unique event ID.
1395
1395
  * Allows clients to ignore duplicate webhooks.
@@ -1428,19 +1428,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
1428
1428
  entityEventSequence?: string | null;
1429
1429
  }
1430
1430
  /** @oneof */
1431
- interface DomainEventBodyOneOf {
1432
- createdEvent?: EntityCreatedEvent;
1433
- updatedEvent?: EntityUpdatedEvent;
1434
- deletedEvent?: EntityDeletedEvent;
1435
- actionEvent?: ActionEvent;
1431
+ interface DomainEventBodyOneOf$1 {
1432
+ createdEvent?: EntityCreatedEvent$1;
1433
+ updatedEvent?: EntityUpdatedEvent$1;
1434
+ deletedEvent?: EntityDeletedEvent$1;
1435
+ actionEvent?: ActionEvent$1;
1436
1436
  }
1437
- interface EntityCreatedEvent {
1437
+ interface EntityCreatedEvent$1 {
1438
1438
  entity?: string;
1439
1439
  }
1440
- interface RestoreInfo {
1440
+ interface RestoreInfo$1 {
1441
1441
  deletedDate?: Date | null;
1442
1442
  }
1443
- interface EntityUpdatedEvent {
1443
+ interface EntityUpdatedEvent$1 {
1444
1444
  /**
1445
1445
  * 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
1446
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -1448,24 +1448,24 @@ interface EntityUpdatedEvent {
1448
1448
  */
1449
1449
  currentEntity?: string;
1450
1450
  }
1451
- interface EntityDeletedEvent {
1451
+ interface EntityDeletedEvent$1 {
1452
1452
  /** Entity that was deleted */
1453
1453
  deletedEntity?: string | null;
1454
1454
  }
1455
- interface ActionEvent {
1455
+ interface ActionEvent$1 {
1456
1456
  body?: string;
1457
1457
  }
1458
- interface MessageEnvelope {
1458
+ interface MessageEnvelope$1 {
1459
1459
  /** App instance ID. */
1460
1460
  instanceId?: string | null;
1461
1461
  /** Event type. */
1462
1462
  eventType?: string;
1463
1463
  /** The identification type and identity data. */
1464
- identity?: IdentificationData;
1464
+ identity?: IdentificationData$1;
1465
1465
  /** Stringify payload. */
1466
1466
  data?: string;
1467
1467
  }
1468
- interface IdentificationData extends IdentificationDataIdOneOf {
1468
+ interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
1469
1469
  /** ID of a site visitor that has not logged in to the site. */
1470
1470
  anonymousVisitorId?: string;
1471
1471
  /** ID of a site visitor that has logged in to the site. */
@@ -1475,10 +1475,10 @@ interface IdentificationData extends IdentificationDataIdOneOf {
1475
1475
  /** ID of an app. */
1476
1476
  appId?: string;
1477
1477
  /** @readonly */
1478
- identityType?: WebhookIdentityType;
1478
+ identityType?: WebhookIdentityType$1;
1479
1479
  }
1480
1480
  /** @oneof */
1481
- interface IdentificationDataIdOneOf {
1481
+ interface IdentificationDataIdOneOf$1 {
1482
1482
  /** ID of a site visitor that has not logged in to the site. */
1483
1483
  anonymousVisitorId?: string;
1484
1484
  /** ID of a site visitor that has logged in to the site. */
@@ -1488,7 +1488,7 @@ interface IdentificationDataIdOneOf {
1488
1488
  /** ID of an app. */
1489
1489
  appId?: string;
1490
1490
  }
1491
- declare enum WebhookIdentityType {
1491
+ declare enum WebhookIdentityType$1 {
1492
1492
  UNKNOWN = "UNKNOWN",
1493
1493
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1494
1494
  MEMBER = "MEMBER",
@@ -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 index_d$1_CreateRefundOptions = CreateRefundOptions;
1721
+ type index_d$1_CreateRefundRequest = CreateRefundRequest;
1722
+ type index_d$1_CreateRefundResponse = CreateRefundResponse;
1723
+ type index_d$1_CreateRefundResponseNonNullableFields = CreateRefundResponseNonNullableFields;
1724
+ type index_d$1_CursorQuery = CursorQuery;
1725
+ type index_d$1_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
1726
+ type index_d$1_GetRefundRequest = GetRefundRequest;
1727
+ type index_d$1_GetRefundResponse = GetRefundResponse;
1728
+ type index_d$1_GetRefundResponseNonNullableFields = GetRefundResponseNonNullableFields;
1729
+ type index_d$1_GetRefundabilityRequest = GetRefundabilityRequest;
1730
+ type index_d$1_GetRefundabilityResponse = GetRefundabilityResponse;
1731
+ type index_d$1_GetRefundabilityResponseNonNullableFields = GetRefundabilityResponseNonNullableFields;
1732
+ type index_d$1_Initiator = Initiator;
1733
+ declare const index_d$1_Initiator: typeof Initiator;
1734
+ type index_d$1_QueryRefundsRequest = QueryRefundsRequest;
1735
+ type index_d$1_QueryRefundsResponse = QueryRefundsResponse;
1736
+ type index_d$1_QueryRefundsResponseNonNullableFields = QueryRefundsResponseNonNullableFields;
1737
+ type index_d$1_Refund = Refund;
1738
+ type index_d$1_RefundCreatedEnvelope = RefundCreatedEnvelope;
1739
+ type index_d$1_RefundNonNullableFields = RefundNonNullableFields;
1740
+ type index_d$1_RefundOptions = RefundOptions;
1741
+ type index_d$1_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
1742
+ type index_d$1_Refundability = Refundability;
1743
+ type index_d$1_RefundabilityDetailsOneOf = RefundabilityDetailsOneOf;
1744
+ type index_d$1_RefundsQueryBuilder = RefundsQueryBuilder;
1745
+ type index_d$1_RefundsQueryResult = RefundsQueryResult;
1746
+ type index_d$1_Rejection = Rejection;
1747
+ type index_d$1_RejectionReason = RejectionReason;
1748
+ declare const index_d$1_RejectionReason: typeof RejectionReason;
1749
+ type index_d$1_SortOrder = SortOrder;
1750
+ declare const index_d$1_SortOrder: typeof SortOrder;
1751
+ type index_d$1_Sorting = Sorting;
1752
+ type index_d$1_Status = Status;
1753
+ declare const index_d$1_Status: typeof Status;
1754
+ type index_d$1_StatusInfo = StatusInfo;
1755
+ type index_d$1_SyncRefundRequest = SyncRefundRequest;
1756
+ type index_d$1_SyncRefundResponse = SyncRefundResponse;
1757
+ type index_d$1_UpdateExtendedFieldsOptions = UpdateExtendedFieldsOptions;
1758
+ type index_d$1_UpdateExtendedFieldsRequest = UpdateExtendedFieldsRequest;
1759
+ type index_d$1_UpdateExtendedFieldsResponse = UpdateExtendedFieldsResponse;
1760
+ type index_d$1_UpdateExtendedFieldsResponseNonNullableFields = UpdateExtendedFieldsResponseNonNullableFields;
1761
+ type index_d$1__publicOnRefundCreatedType = _publicOnRefundCreatedType;
1762
+ type index_d$1__publicOnRefundUpdatedType = _publicOnRefundUpdatedType;
1763
+ declare const index_d$1_createRefund: typeof createRefund;
1764
+ declare const index_d$1_getRefund: typeof getRefund;
1765
+ declare const index_d$1_getRefundability: typeof getRefundability;
1766
+ declare const index_d$1_onRefundCreated: typeof onRefundCreated;
1767
+ declare const index_d$1_onRefundUpdated: typeof onRefundUpdated;
1768
+ declare const index_d$1_queryRefunds: typeof queryRefunds;
1769
+ declare const index_d$1_updateExtendedFields: typeof updateExtendedFields;
1770
+ declare namespace index_d$1 {
1771
+ export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateRefundOptions as CreateRefundOptions, type index_d$1_CreateRefundRequest as CreateRefundRequest, type index_d$1_CreateRefundResponse as CreateRefundResponse, type index_d$1_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type index_d$1_CursorQuery as CursorQuery, type index_d$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 index_d$1_GetRefundRequest as GetRefundRequest, type index_d$1_GetRefundResponse as GetRefundResponse, type index_d$1_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type index_d$1_GetRefundabilityRequest as GetRefundabilityRequest, type index_d$1_GetRefundabilityResponse as GetRefundabilityResponse, type index_d$1_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, index_d$1_Initiator as Initiator, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryRefundsRequest as QueryRefundsRequest, type index_d$1_QueryRefundsResponse as QueryRefundsResponse, type index_d$1_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type index_d$1_Refund as Refund, type index_d$1_RefundCreatedEnvelope as RefundCreatedEnvelope, type index_d$1_RefundNonNullableFields as RefundNonNullableFields, type index_d$1_RefundOptions as RefundOptions, type index_d$1_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type index_d$1_Refundability as Refundability, type index_d$1_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type index_d$1_RefundsQueryBuilder as RefundsQueryBuilder, type index_d$1_RefundsQueryResult as RefundsQueryResult, type index_d$1_Rejection as Rejection, index_d$1_RejectionReason as RejectionReason, type RestoreInfo$1 as RestoreInfo, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, index_d$1_Status as Status, type index_d$1_StatusInfo as StatusInfo, type index_d$1_SyncRefundRequest as SyncRefundRequest, type index_d$1_SyncRefundResponse as SyncRefundResponse, type index_d$1_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d$1_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d$1_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d$1_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnRefundCreatedType as _publicOnRefundCreatedType, type index_d$1__publicOnRefundUpdatedType as _publicOnRefundUpdatedType, index_d$1_createRefund as createRefund, index_d$1_getRefund as getRefund, index_d$1_getRefundability as getRefundability, index_d$1_onRefundCreated as onRefundCreated, index_d$1_onRefundUpdated as onRefundUpdated, onRefundCreated$1 as publicOnRefundCreated, onRefundUpdated$1 as publicOnRefundUpdated, index_d$1_queryRefunds as queryRefunds, index_d$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 FindSavedCreditCardRequest {
1885
+ /** temporary card token */
1886
+ temporaryCardToken?: string;
1887
+ /** site member id */
1888
+ siteMemberId?: string;
1889
+ /** expiration month */
1890
+ expirationMonth?: number;
1891
+ /** expiration year */
1892
+ expirationYear?: number;
1893
+ }
1894
+ interface FindSavedCreditCardResponse {
1895
+ /** saved payment method id */
1896
+ savedPaymentMethodId?: string | null;
1897
+ }
1898
+ interface UpsertSavedPaymentMethodRequest {
1899
+ /** Saved payment method. */
1900
+ savedPaymentMethod: SavedPaymentMethod;
1901
+ /** Temporary token of credit card tokenized by Wix. This token is used to create a persistent token */
1902
+ temporaryCardToken: string | null;
1903
+ }
1904
+ interface UpsertSavedPaymentMethodResponse {
1905
+ /** Saved payment method. */
1906
+ savedPaymentMethod?: SavedPaymentMethod;
1907
+ }
1908
+ interface GetSavedPaymentMethodRequest {
1909
+ /** Unique identifier of a saved payment method. */
1910
+ savedPaymentMethodId: string;
1911
+ /**
1912
+ * List of heeded fields that will be returned.
1913
+ * You should have additional permission in order to get them as described in HidedFields documentation.
1914
+ */
1915
+ fields?: RequestedFields[];
1916
+ }
1917
+ declare enum RequestedFields {
1918
+ /** Default value. This value is unused. */
1919
+ UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
1920
+ SENSITIVE_INFO = "SENSITIVE_INFO"
1921
+ }
1922
+ interface GetSavedPaymentMethodResponse {
1923
+ /** Saved payment method. */
1924
+ savedPaymentMethod?: SavedPaymentMethod;
1925
+ }
1926
+ interface DeleteSavedPaymentMethodRequest {
1927
+ /** Unique identifier of a saved payment method. */
1928
+ savedPaymentMethodId: string;
1929
+ }
1930
+ interface DeleteSavedPaymentMethodResponse {
1931
+ }
1932
+ interface ListSavedPaymentMethodsRequest {
1933
+ /**
1934
+ * Site member that owns saved payment methods.
1935
+ * Pass `me` to list saved payment method of the current site member.
1936
+ */
1937
+ siteMemberId?: string | null;
1938
+ /** Payment method type id. Supported values are `creditCard`, `payPal`. */
1939
+ paymentMethodTypeId?: string | null;
1940
+ /**
1941
+ * Defines whether this payment method can be used by the merchant for making unscheduled payments.
1942
+ * 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.
1943
+ */
1944
+ merchantUseAllowed?: boolean | null;
1945
+ /**
1946
+ * List of requested fields that will be returned.
1947
+ * Supported values:
1948
+ * SENSITIVE_INFO - Sensitive information of a SavedPaymentMethod like credit card tokens that's needed to process payments with it.
1949
+ * In order to receive it you should have `PAYMENTS.SAVED_PAYMENT_METHOD_READ_SENSITIVE_INFO` permission
1950
+ */
1951
+ fields?: RequestedFields[];
1952
+ /**
1953
+ * Paging for limit the response size.
1954
+ * If no paging provider default response limit 100 will be used.
1955
+ */
1956
+ paging?: CursorPaging;
1957
+ }
1958
+ interface CursorPaging {
1959
+ /** Maximum number of items to return in the results. */
1960
+ limit?: number | null;
1961
+ /**
1962
+ * Pointer to the next or previous page in the list of results.
1963
+ *
1964
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1965
+ * Not relevant for the first request.
1966
+ */
1967
+ cursor?: string | null;
1968
+ }
1969
+ interface ListSavedPaymentMethodsResponse {
1970
+ /** List of saved payment methods. */
1971
+ savedPaymentMethods?: SavedPaymentMethod[];
1972
+ /** Paging metadata. */
1973
+ pagingMetadata?: CursorPagingMetadata;
1974
+ }
1975
+ interface CursorPagingMetadata {
1976
+ /** Number of items returned in the response. */
1977
+ count?: number | null;
1978
+ /** Cursor strings that point to the next page, previous page, or both. */
1979
+ cursors?: Cursors;
1980
+ /**
1981
+ * Whether there are more pages to retrieve following the current page.
1982
+ *
1983
+ * + `true`: Another page of results can be retrieved.
1984
+ * + `false`: This is the last page.
1985
+ */
1986
+ hasNext?: boolean | null;
1987
+ }
1988
+ interface Cursors {
1989
+ /** Cursor string pointing to the next page in the list of results. */
1990
+ next?: string | null;
1991
+ /** Cursor pointing to the previous page in the list of results. */
1992
+ prev?: string | null;
1993
+ }
1994
+ interface UpdateSavedPaymentMethodRequest {
1995
+ /** Saved payment method to update. */
1996
+ savedPaymentMethod?: SavedPaymentMethod;
1997
+ }
1998
+ interface UpdateSavedPaymentMethodResponse {
1999
+ /** Updated saved payment method. */
2000
+ savedPaymentMethod?: SavedPaymentMethod;
2001
+ }
2002
+ interface MarkSavedPaymentMethodPrimaryRequest {
2003
+ /** Unique identifier of a saved payment method. */
2004
+ savedPaymentMethodId: string;
2005
+ }
2006
+ interface MarkSavedPaymentMethodPrimaryResponse {
2007
+ }
2008
+ interface DomainEvent extends DomainEventBodyOneOf {
2009
+ createdEvent?: EntityCreatedEvent;
2010
+ updatedEvent?: EntityUpdatedEvent;
2011
+ deletedEvent?: EntityDeletedEvent;
2012
+ actionEvent?: ActionEvent;
2013
+ /**
2014
+ * Unique event ID.
2015
+ * Allows clients to ignore duplicate webhooks.
2016
+ */
2017
+ _id?: string;
2018
+ /**
2019
+ * Assumes actions are also always typed to an entity_type
2020
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
2021
+ */
2022
+ entityFqdn?: string;
2023
+ /**
2024
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
2025
+ * This is although the created/updated/deleted notion is duplication of the oneof types
2026
+ * Example: created/updated/deleted/started/completed/email_opened
2027
+ */
2028
+ slug?: string;
2029
+ /** ID of the entity associated with the event. */
2030
+ entityId?: string;
2031
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
2032
+ eventTime?: Date | null;
2033
+ /**
2034
+ * Whether the event was triggered as a result of a privacy regulation application
2035
+ * (for example, GDPR).
2036
+ */
2037
+ triggeredByAnonymizeRequest?: boolean | null;
2038
+ /** If present, indicates the action that triggered the event. */
2039
+ originatedFrom?: string | null;
2040
+ /**
2041
+ * A sequence number defining the order of updates to the underlying entity.
2042
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
2043
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
2044
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
2045
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
2046
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
2047
+ */
2048
+ entityEventSequence?: string | null;
2049
+ }
2050
+ /** @oneof */
2051
+ interface DomainEventBodyOneOf {
2052
+ createdEvent?: EntityCreatedEvent;
2053
+ updatedEvent?: EntityUpdatedEvent;
2054
+ deletedEvent?: EntityDeletedEvent;
2055
+ actionEvent?: ActionEvent;
2056
+ }
2057
+ interface EntityCreatedEvent {
2058
+ entity?: string;
2059
+ }
2060
+ interface RestoreInfo {
2061
+ deletedDate?: Date | null;
2062
+ }
2063
+ interface EntityUpdatedEvent {
2064
+ /**
2065
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
2066
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
2067
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
2068
+ */
2069
+ currentEntity?: string;
2070
+ }
2071
+ interface EntityDeletedEvent {
2072
+ /** Entity that was deleted */
2073
+ deletedEntity?: string | null;
2074
+ }
2075
+ interface ActionEvent {
2076
+ body?: string;
2077
+ }
2078
+ interface MessageEnvelope {
2079
+ /** App instance ID. */
2080
+ instanceId?: string | null;
2081
+ /** Event type. */
2082
+ eventType?: string;
2083
+ /** The identification type and identity data. */
2084
+ identity?: IdentificationData;
2085
+ /** Stringify payload. */
2086
+ data?: string;
2087
+ }
2088
+ interface IdentificationData extends IdentificationDataIdOneOf {
2089
+ /** ID of a site visitor that has not logged in to the site. */
2090
+ anonymousVisitorId?: string;
2091
+ /** ID of a site visitor that has logged in to the site. */
2092
+ memberId?: string;
2093
+ /** ID of a Wix user (site owner, contributor, etc.). */
2094
+ wixUserId?: string;
2095
+ /** ID of an app. */
2096
+ appId?: string;
2097
+ /** @readonly */
2098
+ identityType?: WebhookIdentityType;
2099
+ }
2100
+ /** @oneof */
2101
+ interface IdentificationDataIdOneOf {
2102
+ /** ID of a site visitor that has not logged in to the site. */
2103
+ anonymousVisitorId?: string;
2104
+ /** ID of a site visitor that has logged in to the site. */
2105
+ memberId?: string;
2106
+ /** ID of a Wix user (site owner, contributor, etc.). */
2107
+ wixUserId?: string;
2108
+ /** ID of an app. */
2109
+ appId?: string;
2110
+ }
2111
+ declare enum WebhookIdentityType {
2112
+ UNKNOWN = "UNKNOWN",
2113
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
2114
+ MEMBER = "MEMBER",
2115
+ WIX_USER = "WIX_USER",
2116
+ APP = "APP"
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 SavedPaymentMethodUpdatedEnvelope {
2193
+ entity: SavedPaymentMethod;
2194
+ metadata: EventMetadata;
2195
+ }
2196
+ interface SavedPaymentMethodDeletedEnvelope {
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 onSavedPaymentMethodUpdated$1: EventDefinition<SavedPaymentMethodUpdatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_updated">;
2338
+ declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
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 _publicOnSavedPaymentMethodUpdatedType = typeof onSavedPaymentMethodUpdated$1;
2354
+ /** */
2355
+ declare const onSavedPaymentMethodUpdated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodUpdatedType>>;
2356
+
2357
+ type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
2358
+ /** */
2359
+ declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
1719
2360
 
1720
2361
  type index_d_ActionEvent = ActionEvent;
1721
2362
  type index_d_BaseEventMetadata = BaseEventMetadata;
1722
- type index_d_CreateRefundOptions = CreateRefundOptions;
1723
- type index_d_CreateRefundRequest = CreateRefundRequest;
1724
- type index_d_CreateRefundResponse = CreateRefundResponse;
1725
- type index_d_CreateRefundResponseNonNullableFields = CreateRefundResponseNonNullableFields;
2363
+ type index_d_CardBrand = CardBrand;
2364
+ declare const index_d_CardBrand: typeof CardBrand;
2365
+ type index_d_CardInfo = CardInfo;
2366
+ type index_d_CardSensitiveInfo = CardSensitiveInfo;
1726
2367
  type index_d_CursorPaging = CursorPaging;
1727
2368
  type index_d_CursorPagingMetadata = CursorPagingMetadata;
1728
- type index_d_CursorQuery = CursorQuery;
1729
- type index_d_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
1730
2369
  type index_d_Cursors = Cursors;
2370
+ type index_d_DeleteSavedPaymentMethodRequest = DeleteSavedPaymentMethodRequest;
2371
+ type index_d_DeleteSavedPaymentMethodResponse = DeleteSavedPaymentMethodResponse;
1731
2372
  type index_d_DomainEvent = DomainEvent;
1732
2373
  type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
1733
2374
  type index_d_EntityCreatedEvent = EntityCreatedEvent;
@@ -1735,58 +2376,55 @@ type index_d_EntityDeletedEvent = EntityDeletedEvent;
1735
2376
  type index_d_EntityUpdatedEvent = EntityUpdatedEvent;
1736
2377
  type index_d_EventMetadata = EventMetadata;
1737
2378
  type index_d_ExtendedFields = ExtendedFields;
1738
- type index_d_GetRefundRequest = GetRefundRequest;
1739
- type index_d_GetRefundResponse = GetRefundResponse;
1740
- type index_d_GetRefundResponseNonNullableFields = GetRefundResponseNonNullableFields;
1741
- type index_d_GetRefundabilityRequest = GetRefundabilityRequest;
1742
- type index_d_GetRefundabilityResponse = GetRefundabilityResponse;
1743
- type index_d_GetRefundabilityResponseNonNullableFields = GetRefundabilityResponseNonNullableFields;
2379
+ type index_d_FindSavedCreditCardRequest = FindSavedCreditCardRequest;
2380
+ type index_d_FindSavedCreditCardResponse = FindSavedCreditCardResponse;
2381
+ type index_d_GetSavedPaymentMethodOptions = GetSavedPaymentMethodOptions;
2382
+ type index_d_GetSavedPaymentMethodRequest = GetSavedPaymentMethodRequest;
2383
+ type index_d_GetSavedPaymentMethodResponse = GetSavedPaymentMethodResponse;
2384
+ type index_d_GetSavedPaymentMethodResponseNonNullableFields = GetSavedPaymentMethodResponseNonNullableFields;
1744
2385
  type index_d_IdentificationData = IdentificationData;
1745
2386
  type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1746
- type index_d_Initiator = Initiator;
1747
- declare const index_d_Initiator: typeof Initiator;
2387
+ type index_d_ListSavedPaymentMethodsOptions = ListSavedPaymentMethodsOptions;
2388
+ type index_d_ListSavedPaymentMethodsRequest = ListSavedPaymentMethodsRequest;
2389
+ type index_d_ListSavedPaymentMethodsResponse = ListSavedPaymentMethodsResponse;
2390
+ type index_d_ListSavedPaymentMethodsResponseNonNullableFields = ListSavedPaymentMethodsResponseNonNullableFields;
2391
+ type index_d_MarkSavedPaymentMethodPrimaryRequest = MarkSavedPaymentMethodPrimaryRequest;
2392
+ type index_d_MarkSavedPaymentMethodPrimaryResponse = MarkSavedPaymentMethodPrimaryResponse;
1748
2393
  type index_d_MessageEnvelope = MessageEnvelope;
1749
- type index_d_QueryRefundsRequest = QueryRefundsRequest;
1750
- type index_d_QueryRefundsResponse = QueryRefundsResponse;
1751
- type index_d_QueryRefundsResponseNonNullableFields = QueryRefundsResponseNonNullableFields;
1752
- type index_d_Refund = Refund;
1753
- type index_d_RefundCreatedEnvelope = RefundCreatedEnvelope;
1754
- type index_d_RefundNonNullableFields = RefundNonNullableFields;
1755
- type index_d_RefundOptions = RefundOptions;
1756
- type index_d_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
1757
- type index_d_Refundability = Refundability;
1758
- type index_d_RefundabilityDetailsOneOf = RefundabilityDetailsOneOf;
1759
- type index_d_RefundsQueryBuilder = RefundsQueryBuilder;
1760
- type index_d_RefundsQueryResult = RefundsQueryResult;
1761
- type index_d_Rejection = Rejection;
1762
- type index_d_RejectionReason = RejectionReason;
1763
- declare const index_d_RejectionReason: typeof RejectionReason;
2394
+ type index_d_PaymentMethod = PaymentMethod;
2395
+ type index_d_RequestedFields = RequestedFields;
2396
+ declare const index_d_RequestedFields: typeof RequestedFields;
1764
2397
  type index_d_RestoreInfo = RestoreInfo;
1765
- type index_d_SortOrder = SortOrder;
1766
- declare const index_d_SortOrder: typeof SortOrder;
1767
- type index_d_Sorting = Sorting;
1768
- type index_d_Status = Status;
1769
- declare const index_d_Status: typeof Status;
1770
- type index_d_StatusInfo = StatusInfo;
1771
- type index_d_SyncRefundRequest = SyncRefundRequest;
1772
- type index_d_SyncRefundResponse = SyncRefundResponse;
1773
- type index_d_UpdateExtendedFieldsOptions = UpdateExtendedFieldsOptions;
1774
- type index_d_UpdateExtendedFieldsRequest = UpdateExtendedFieldsRequest;
1775
- type index_d_UpdateExtendedFieldsResponse = UpdateExtendedFieldsResponse;
1776
- type index_d_UpdateExtendedFieldsResponseNonNullableFields = UpdateExtendedFieldsResponseNonNullableFields;
2398
+ type index_d_SavedPaymentMethod = SavedPaymentMethod;
2399
+ type index_d_SavedPaymentMethodCreatedEnvelope = SavedPaymentMethodCreatedEnvelope;
2400
+ type index_d_SavedPaymentMethodDeletedEnvelope = SavedPaymentMethodDeletedEnvelope;
2401
+ type index_d_SavedPaymentMethodNonNullableFields = SavedPaymentMethodNonNullableFields;
2402
+ type index_d_SavedPaymentMethodUpdatedEnvelope = SavedPaymentMethodUpdatedEnvelope;
2403
+ type index_d_SensitiveInfo = SensitiveInfo;
2404
+ type index_d_UpdateSavedPaymentMethodOptions = UpdateSavedPaymentMethodOptions;
2405
+ type index_d_UpdateSavedPaymentMethodRequest = UpdateSavedPaymentMethodRequest;
2406
+ type index_d_UpdateSavedPaymentMethodResponse = UpdateSavedPaymentMethodResponse;
2407
+ type index_d_UpdateSavedPaymentMethodResponseNonNullableFields = UpdateSavedPaymentMethodResponseNonNullableFields;
2408
+ type index_d_UpsertSavedPaymentMethodOptions = UpsertSavedPaymentMethodOptions;
2409
+ type index_d_UpsertSavedPaymentMethodRequest = UpsertSavedPaymentMethodRequest;
2410
+ type index_d_UpsertSavedPaymentMethodResponse = UpsertSavedPaymentMethodResponse;
2411
+ type index_d_UpsertSavedPaymentMethodResponseNonNullableFields = UpsertSavedPaymentMethodResponseNonNullableFields;
1777
2412
  type index_d_WebhookIdentityType = WebhookIdentityType;
1778
2413
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
1779
- type index_d__publicOnRefundCreatedType = _publicOnRefundCreatedType;
1780
- type index_d__publicOnRefundUpdatedType = _publicOnRefundUpdatedType;
1781
- declare const index_d_createRefund: typeof createRefund;
1782
- declare const index_d_getRefund: typeof getRefund;
1783
- declare const index_d_getRefundability: typeof getRefundability;
1784
- declare const index_d_onRefundCreated: typeof onRefundCreated;
1785
- declare const index_d_onRefundUpdated: typeof onRefundUpdated;
1786
- declare const index_d_queryRefunds: typeof queryRefunds;
1787
- declare const index_d_updateExtendedFields: typeof updateExtendedFields;
2414
+ type index_d__publicOnSavedPaymentMethodCreatedType = _publicOnSavedPaymentMethodCreatedType;
2415
+ type index_d__publicOnSavedPaymentMethodDeletedType = _publicOnSavedPaymentMethodDeletedType;
2416
+ type index_d__publicOnSavedPaymentMethodUpdatedType = _publicOnSavedPaymentMethodUpdatedType;
2417
+ declare const index_d_deleteSavedPaymentMethod: typeof deleteSavedPaymentMethod;
2418
+ declare const index_d_getSavedPaymentMethod: typeof getSavedPaymentMethod;
2419
+ declare const index_d_listSavedPaymentMethods: typeof listSavedPaymentMethods;
2420
+ declare const index_d_markSavedPaymentMethodPrimary: typeof markSavedPaymentMethodPrimary;
2421
+ declare const index_d_onSavedPaymentMethodCreated: typeof onSavedPaymentMethodCreated;
2422
+ declare const index_d_onSavedPaymentMethodDeleted: typeof onSavedPaymentMethodDeleted;
2423
+ declare const index_d_onSavedPaymentMethodUpdated: typeof onSavedPaymentMethodUpdated;
2424
+ declare const index_d_updateSavedPaymentMethod: typeof updateSavedPaymentMethod;
2425
+ declare const index_d_upsertSavedPaymentMethod: typeof upsertSavedPaymentMethod;
1788
2426
  declare namespace index_d {
1789
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateRefundOptions as CreateRefundOptions, type index_d_CreateRefundRequest as CreateRefundRequest, type index_d_CreateRefundResponse as CreateRefundResponse, type index_d_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_GetRefundRequest as GetRefundRequest, type index_d_GetRefundResponse as GetRefundResponse, type index_d_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type index_d_GetRefundabilityRequest as GetRefundabilityRequest, type index_d_GetRefundabilityResponse as GetRefundabilityResponse, type index_d_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_Initiator as Initiator, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryRefundsRequest as QueryRefundsRequest, type index_d_QueryRefundsResponse as QueryRefundsResponse, type index_d_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type index_d_Refund as Refund, type index_d_RefundCreatedEnvelope as RefundCreatedEnvelope, type index_d_RefundNonNullableFields as RefundNonNullableFields, type index_d_RefundOptions as RefundOptions, type index_d_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type index_d_Refundability as Refundability, type index_d_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type index_d_RefundsQueryBuilder as RefundsQueryBuilder, type index_d_RefundsQueryResult as RefundsQueryResult, type index_d_Rejection as Rejection, index_d_RejectionReason as RejectionReason, type index_d_RestoreInfo as RestoreInfo, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Status as Status, type index_d_StatusInfo as StatusInfo, type index_d_SyncRefundRequest as SyncRefundRequest, type index_d_SyncRefundResponse as SyncRefundResponse, type index_d_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnRefundCreatedType as _publicOnRefundCreatedType, type index_d__publicOnRefundUpdatedType as _publicOnRefundUpdatedType, index_d_createRefund as createRefund, index_d_getRefund as getRefund, index_d_getRefundability as getRefundability, index_d_onRefundCreated as onRefundCreated, index_d_onRefundUpdated as onRefundUpdated, onRefundCreated$1 as publicOnRefundCreated, onRefundUpdated$1 as publicOnRefundUpdated, index_d_queryRefunds as queryRefunds, index_d_updateExtendedFields as updateExtendedFields };
2427
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, index_d_CardBrand as CardBrand, type index_d_CardInfo as CardInfo, type index_d_CardSensitiveInfo as CardSensitiveInfo, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_DeleteSavedPaymentMethodRequest as DeleteSavedPaymentMethodRequest, type index_d_DeleteSavedPaymentMethodResponse as DeleteSavedPaymentMethodResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_FindSavedCreditCardRequest as FindSavedCreditCardRequest, type index_d_FindSavedCreditCardResponse as FindSavedCreditCardResponse, type index_d_GetSavedPaymentMethodOptions as GetSavedPaymentMethodOptions, type index_d_GetSavedPaymentMethodRequest as GetSavedPaymentMethodRequest, type index_d_GetSavedPaymentMethodResponse as GetSavedPaymentMethodResponse, type index_d_GetSavedPaymentMethodResponseNonNullableFields as GetSavedPaymentMethodResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSavedPaymentMethodsOptions as ListSavedPaymentMethodsOptions, type index_d_ListSavedPaymentMethodsRequest as ListSavedPaymentMethodsRequest, type index_d_ListSavedPaymentMethodsResponse as ListSavedPaymentMethodsResponse, type index_d_ListSavedPaymentMethodsResponseNonNullableFields as ListSavedPaymentMethodsResponseNonNullableFields, type index_d_MarkSavedPaymentMethodPrimaryRequest as MarkSavedPaymentMethodPrimaryRequest, type index_d_MarkSavedPaymentMethodPrimaryResponse as MarkSavedPaymentMethodPrimaryResponse, type index_d_MessageEnvelope as MessageEnvelope, type index_d_PaymentMethod as PaymentMethod, index_d_RequestedFields as RequestedFields, type index_d_RestoreInfo as RestoreInfo, type index_d_SavedPaymentMethod as SavedPaymentMethod, type index_d_SavedPaymentMethodCreatedEnvelope as SavedPaymentMethodCreatedEnvelope, type index_d_SavedPaymentMethodDeletedEnvelope as SavedPaymentMethodDeletedEnvelope, type index_d_SavedPaymentMethodNonNullableFields as SavedPaymentMethodNonNullableFields, type index_d_SavedPaymentMethodUpdatedEnvelope as SavedPaymentMethodUpdatedEnvelope, type index_d_SensitiveInfo as SensitiveInfo, type index_d_UpdateSavedPaymentMethodOptions as UpdateSavedPaymentMethodOptions, type index_d_UpdateSavedPaymentMethodRequest as UpdateSavedPaymentMethodRequest, type index_d_UpdateSavedPaymentMethodResponse as UpdateSavedPaymentMethodResponse, type index_d_UpdateSavedPaymentMethodResponseNonNullableFields as UpdateSavedPaymentMethodResponseNonNullableFields, type index_d_UpsertSavedPaymentMethodOptions as UpsertSavedPaymentMethodOptions, type index_d_UpsertSavedPaymentMethodRequest as UpsertSavedPaymentMethodRequest, type index_d_UpsertSavedPaymentMethodResponse as UpsertSavedPaymentMethodResponse, type index_d_UpsertSavedPaymentMethodResponseNonNullableFields as UpsertSavedPaymentMethodResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnSavedPaymentMethodCreatedType as _publicOnSavedPaymentMethodCreatedType, type index_d__publicOnSavedPaymentMethodDeletedType as _publicOnSavedPaymentMethodDeletedType, type index_d__publicOnSavedPaymentMethodUpdatedType as _publicOnSavedPaymentMethodUpdatedType, index_d_deleteSavedPaymentMethod as deleteSavedPaymentMethod, index_d_getSavedPaymentMethod as getSavedPaymentMethod, index_d_listSavedPaymentMethods as listSavedPaymentMethods, index_d_markSavedPaymentMethodPrimary as markSavedPaymentMethodPrimary, index_d_onSavedPaymentMethodCreated as onSavedPaymentMethodCreated, index_d_onSavedPaymentMethodDeleted as onSavedPaymentMethodDeleted, index_d_onSavedPaymentMethodUpdated as onSavedPaymentMethodUpdated, onSavedPaymentMethodCreated$1 as publicOnSavedPaymentMethodCreated, onSavedPaymentMethodDeleted$1 as publicOnSavedPaymentMethodDeleted, onSavedPaymentMethodUpdated$1 as publicOnSavedPaymentMethodUpdated, index_d_updateSavedPaymentMethod as updateSavedPaymentMethod, index_d_upsertSavedPaymentMethod as upsertSavedPaymentMethod };
1790
2428
  }
1791
2429
 
1792
- export { index_d$2 as onboardingAvailability, index_d$1 as pspCallbacks, index_d as refunds };
2430
+ export { index_d$3 as onboardingAvailability, index_d$2 as pspCallbacks, index_d$1 as refunds, index_d as savedPaymentMethods };