@wix/auto_sdk_pricing-plans_orders 1.0.127 → 1.0.128

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { CreateOnlineOrderRequest as CreateOnlineOrderRequest$1, CreateOnlineOrderResponse as CreateOnlineOrderResponse$1, CreateOfflineOrderRequest as CreateOfflineOrderRequest$1, CreateOfflineOrderResponse as CreateOfflineOrderResponse$1, GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponse$1, GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponse$1, GetPricePreviewRequest as GetPricePreviewRequest$1, GetPricePreviewResponse as GetPricePreviewResponse$1, GetOrderRequest as GetOrderRequest$1, GetOrderResponse as GetOrderResponse$1, ListOrdersRequest as ListOrdersRequest$1, ListOrdersResponse as ListOrdersResponse$1, PostponeEndDateRequest as PostponeEndDateRequest$1, PostponeEndDateResponse as PostponeEndDateResponse$1, CancelOrderRequest as CancelOrderRequest$1, CancelOrderResponse as CancelOrderResponse$1, MarkAsPaidRequest as MarkAsPaidRequest$1, MarkAsPaidResponse as MarkAsPaidResponse$1, PauseOrderRequest as PauseOrderRequest$1, PauseOrderResponse as PauseOrderResponse$1, ResumeOrderRequest as ResumeOrderRequest$1, ResumeOrderResponse as ResumeOrderResponse$1, MemberGetOrderRequest as MemberGetOrderRequest$1, MemberGetOrderResponse as MemberGetOrderResponse$1, MemberListOrdersRequest as MemberListOrdersRequest$1, MemberListOrdersResponse as MemberListOrdersResponse$1, RequestCancellationRequest as RequestCancellationRequest$1, RequestCancellationResponse as RequestCancellationResponse$1 } from './index.typings.js';
1
+ import { GetOrderRequest as GetOrderRequest$1, GetOrderResponse as GetOrderResponse$1, ListOrdersRequest as ListOrdersRequest$1, ListOrdersResponse as ListOrdersResponse$1, PostponeEndDateRequest as PostponeEndDateRequest$1, PostponeEndDateResponse as PostponeEndDateResponse$1, CancelOrderRequest as CancelOrderRequest$1, CancelOrderResponse as CancelOrderResponse$1, MarkAsPaidRequest as MarkAsPaidRequest$1, MarkAsPaidResponse as MarkAsPaidResponse$1, PauseOrderRequest as PauseOrderRequest$1, PauseOrderResponse as PauseOrderResponse$1, ResumeOrderRequest as ResumeOrderRequest$1, ResumeOrderResponse as ResumeOrderResponse$1, CreateOnlineOrderRequest as CreateOnlineOrderRequest$1, CreateOnlineOrderResponse as CreateOnlineOrderResponse$1, CreateOfflineOrderRequest as CreateOfflineOrderRequest$1, CreateOfflineOrderResponse as CreateOfflineOrderResponse$1, GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponse$1, GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponse$1, GetPricePreviewRequest as GetPricePreviewRequest$1, GetPricePreviewResponse as GetPricePreviewResponse$1, MemberGetOrderRequest as MemberGetOrderRequest$1, MemberGetOrderResponse as MemberGetOrderResponse$1, MemberListOrdersRequest as MemberListOrdersRequest$1, MemberListOrdersResponse as MemberListOrdersResponse$1, RequestCancellationRequest as RequestCancellationRequest$1, RequestCancellationResponse as RequestCancellationResponse$1 } from './index.typings.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -637,315 +637,345 @@ interface ActionEvent {
637
637
  }
638
638
  interface Empty {
639
639
  }
640
- interface CreateOnlineOrderRequest {
641
- /**
642
- * Plan ID.
643
- * @format GUID
644
- */
645
- planId: string;
646
- /**
647
- * Start date and time for the plan of the online order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
648
- *
649
- * Default: Current date and time.
650
- */
651
- startDate?: Date | null;
652
- /**
653
- * Coupon code to apply.
654
- * @minLength 1
655
- * @maxLength 20
656
- */
657
- couponCode?: string | null;
658
- /** Provided if checkout is initiated on buyer's behalf. */
659
- onBehalf?: OnBehalf;
660
- /**
661
- * Submission ID of the form submitted with this order.
662
- * @format GUID
663
- */
664
- submissionId?: string | null;
640
+ interface OrderPurchased {
641
+ /** Order that was paid for. If a free or an offline order, the order that was created. */
642
+ order?: Order;
665
643
  }
666
- interface OnBehalf {
667
- /**
668
- * Member ID.
669
- * @format GUID
670
- */
671
- memberId?: string;
672
- /** Method by which checkout is initiated. */
673
- orderMethod?: OrderMethodWithLiterals;
644
+ interface OrderStarted {
645
+ /** Order that reached its `startDate`. */
646
+ order?: Order;
674
647
  }
675
- interface CreateOnlineOrderResponse {
676
- /** Created online order. */
648
+ /**
649
+ * Triggered at the start of a new payment cycle for an existing order.
650
+ *
651
+ * This webhook does not trigger at the initial start of an offline order.
652
+ */
653
+ interface OrderCycleStarted {
654
+ /** Order whose new cycle started. */
677
655
  order?: Order;
656
+ /** Number of the payment cycle will be 0 when the order is in the free trial period. In other cases, the cycle number starts from 1. */
657
+ cycleNumber?: number;
678
658
  }
679
- interface CouponsError {
680
- /** Coupon code. */
681
- couponCode?: string;
682
- /** Plan ID. */
683
- planId?: string;
659
+ /** Emitted when a recurring order is canceled for the next payment cycle */
660
+ interface OrderAutoRenewCanceled {
661
+ /** Order that is canceled, effective at the end of the current payment cycle. */
662
+ order?: Order;
684
663
  }
685
- interface CreateGuestOnlineOrderRequest {
664
+ interface OrderEnded {
665
+ /** Order that ended. */
666
+ order?: Order;
667
+ }
668
+ interface GetOrderRequest {
686
669
  /**
687
- * Plan ID.
670
+ * Order ID.
688
671
  * @format GUID
689
672
  */
690
- planId?: string;
673
+ id: string;
691
674
  /**
692
- * Start date for the ordered plan.
675
+ * Predefined set of fields to return.
693
676
  *
694
- * Default: Current date
695
- */
696
- startDate?: Date | null;
697
- /**
698
- * Coupon code to apply.
699
- * @minLength 1
700
- * @maxLength 20
701
- */
702
- couponCode?: string | null;
703
- /** Captcha data to prove you are not a robot */
704
- captcha?: Captcha;
705
- /** Visitor info */
706
- guest?: Guest;
707
- /**
708
- * Form submission id that was submitted together with the order
709
- * @format GUID
677
+ * Default: If `fieldSet` is omitted, no order form submission data is returned.
710
678
  */
711
- submissionId?: string | null;
712
- }
713
- interface Captcha {
714
- /** Token from captcha */
715
- token?: string;
679
+ fieldSet?: SetWithLiterals;
716
680
  }
717
- interface Guest {
718
- /**
719
- * Email for checkout
720
- * @format EMAIL
721
- */
722
- email?: string;
681
+ declare enum Set {
682
+ /** Same behavior as `BASIC`.` */
683
+ UNKNOWN_SET = "UNKNOWN_SET",
684
+ /** Doesn't return any order form submission data. */
685
+ BASIC = "BASIC",
686
+ /** Returns all order form submission data. */
687
+ FULL = "FULL"
723
688
  }
724
- interface CreateGuestOnlineOrderResponse {
689
+ /** @enumType */
690
+ type SetWithLiterals = Set | 'UNKNOWN_SET' | 'BASIC' | 'FULL';
691
+ interface GetOrderResponse {
725
692
  /** Order. */
726
693
  order?: Order;
727
694
  }
728
- interface CreateOfflineOrderRequest {
695
+ interface ListOrdersRequest {
729
696
  /**
730
- * ID of the plan being ordered, from the Plans API.
697
+ * Filter by a buyer's member ID, from the Members API.
731
698
  * @format GUID
732
699
  */
733
- planId: string;
700
+ buyerIds?: string[];
734
701
  /**
735
- * ID of the member ordering the plan, from the Members API.
702
+ * Filter by plan IDs, from the Plans API.
736
703
  * @format GUID
737
704
  */
738
- memberId: string;
705
+ planIds?: string[];
706
+ /** Filter by whether or not the auto-renewal of recurring orders was canceled. */
707
+ autoRenewCanceled?: boolean | null;
708
+ /** Filter by order status. */
709
+ orderStatuses?: OrderStatusWithLiterals[];
710
+ /** Filter by payment status. */
711
+ paymentStatuses?: PaymentStatusWithLiterals[];
739
712
  /**
740
- * Start date and time for the ordered plan in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
713
+ * Number of orders to return. See Sorting and Paging for more information.
741
714
  *
742
- * Default: Current date and time.
715
+ * Max: `50`
716
+ * @min 1
717
+ * @max 50
743
718
  */
744
- startDate?: Date | null;
719
+ limit?: number | null;
720
+ /** Number of orders to skip in the current sort order. */
721
+ offset?: number | null;
745
722
  /**
746
- * Whether the order is paid.
723
+ * Sort order.
747
724
  *
748
- * Default: `false`
749
- */
750
- paid?: boolean | null;
751
- /**
752
- * Coupon code to apply, from the Coupons API.
753
- * @minLength 1
754
- * @maxLength 20
725
+ * Use `ASC` for ascending order or `DESC` for descending order.
726
+ *
727
+ * Default: `DESC`.
755
728
  */
756
- couponCode?: string | null;
729
+ sorting?: Sorting;
757
730
  /**
758
- * Form submission ID that was submitted with the order.
759
- * @format GUID
731
+ * Predefined set of fields to return.
732
+ *
733
+ * Default: If `fieldSet` is omitted, no order form submission data is returned.
760
734
  */
761
- submissionId?: string | null;
762
- }
763
- interface CreateOfflineOrderResponse {
764
- /** Order. */
765
- order?: Order;
735
+ fieldSet?: SetWithLiterals;
766
736
  }
767
- interface CreateExternalOrderRequest {
737
+ interface Sorting {
768
738
  /**
769
- * Plan ID.
770
- * @format GUID
739
+ * Name of the field to sort by.
740
+ * @maxLength 512
771
741
  */
772
- planId?: string;
742
+ fieldName?: string;
743
+ /** Sort order. */
744
+ order?: SortOrderWithLiterals;
773
745
  /**
774
- * Form submission id that was submitted together with the order
775
- * @format GUID
746
+ * Origin point for geo-distance sorting on a GEO field
747
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
776
748
  */
777
- submissionId?: string | null;
749
+ origin?: AddressLocation;
778
750
  }
779
- interface CreateExternalOrderResponse {
780
- /** Created order */
781
- order?: Order;
751
+ declare enum SortOrder {
752
+ ASC = "ASC",
753
+ DESC = "DESC"
782
754
  }
783
- interface GetOnlineOrderPreviewRequest {
755
+ /** @enumType */
756
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
757
+ interface AddressLocation {
758
+ /** Address latitude. */
759
+ latitude?: number | null;
760
+ /** Address longitude. */
761
+ longitude?: number | null;
762
+ }
763
+ interface ListOrdersResponse {
764
+ /** List of orders. */
765
+ orders?: Order[];
766
+ /** Object containing paging-related data (number of orders returned, offset). */
767
+ pagingMetadata?: PagingMetadataV2;
768
+ }
769
+ interface PagingMetadataV2 {
770
+ /** Number of items returned in the response. */
771
+ count?: number | null;
772
+ /** Offset that was requested. */
773
+ offset?: number | null;
774
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
775
+ total?: number | null;
776
+ /** Flag that indicates the server failed to calculate the `total` field. */
777
+ tooManyToCount?: boolean | null;
778
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
779
+ cursors?: Cursors;
780
+ }
781
+ interface Cursors {
784
782
  /**
785
- * Plan ID.
786
- * @format GUID
783
+ * Cursor string pointing to the next page in the list of results.
784
+ * @maxLength 16000
787
785
  */
788
- planId: string;
786
+ next?: string | null;
789
787
  /**
790
- * Start date and time for the plan of the order preview in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
791
- *
792
- * Default: Current date and time.
788
+ * Cursor pointing to the previous page in the list of results.
789
+ * @maxLength 16000
793
790
  */
794
- startDate?: Date | null;
791
+ prev?: string | null;
792
+ }
793
+ interface GetOrdersStatsRequest {
794
+ }
795
+ interface GetOrdersStatsResponse {
796
+ /** Total number of orders. */
797
+ totalOrderCount?: number;
798
+ /** Number of active orders. */
799
+ activeOrderCount?: number;
800
+ }
801
+ interface GetAvailableOrderActionsRequest {
795
802
  /**
796
- * Coupon code to apply.
797
- * @minLength 1
798
- * @maxLength 20
803
+ * Order ID.
804
+ * @format GUID
799
805
  */
800
- couponCode?: string | null;
806
+ id?: string;
801
807
  }
802
- interface GetOnlineOrderPreviewResponse {
803
- /** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
804
- order?: Order;
805
- /** Whether the member has already reached purchase limit for the order's plan. */
806
- purchaseLimitExceeded?: boolean;
808
+ interface GetAvailableOrderActionsResponse {
809
+ /** Whether the order can be suspended. */
810
+ suspendable?: boolean;
811
+ /** If the order cannot be suspended, a reason is returned here. */
812
+ notSuspendableReason?: ReasonNotSuspendableWithLiterals;
813
+ /** Whether the order can be canceled by the buyer. */
814
+ cancelableByBuyer?: boolean;
807
815
  }
808
- interface GetGuestOnlineOrderPreviewRequest {
816
+ declare enum ReasonNotSuspendable {
817
+ /** Undefined reason. */
818
+ UNDEFINED = "UNDEFINED",
819
+ /** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
820
+ PENDING = "PENDING",
821
+ /** Trial orders can't be suspended. */
822
+ TRIAL = "TRIAL",
823
+ /** Canceled orders can't be suspended. */
824
+ CANCELED = "CANCELED",
825
+ /** Ended orders can't be suspended. */
826
+ ENDED = "ENDED",
827
+ /** Paid for orders with future start dates can't be suspended. */
828
+ NOT_STARTED = "NOT_STARTED",
829
+ /** Order is already suspended. */
830
+ ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
831
+ /** Orders based on recurring payments using older stripe versions can't be suspended. */
832
+ OLD_STRIPE = "OLD_STRIPE"
833
+ }
834
+ /** @enumType */
835
+ type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
836
+ interface PostponeEndDateRequest {
809
837
  /**
810
- * Plan ID.
838
+ * Order ID.
811
839
  * @format GUID
812
840
  */
813
- planId?: string;
841
+ id: string;
814
842
  /**
815
- * Start date for the ordered plan.
843
+ * New end date and time.
816
844
  *
817
- * Default: Current date
818
- */
819
- startDate?: Date | null;
820
- /**
821
- * Coupon code to apply.
822
- * @minLength 1
823
- * @maxLength 20
824
- */
825
- couponCode?: string | null;
826
- /**
827
- * Email for checkout
828
- * @format EMAIL
845
+ * Must be later than the current end date and time.
829
846
  */
830
- email?: string;
847
+ endDate: Date | null;
831
848
  }
832
- interface GetGuestOnlineOrderPreviewResponse {
833
- /** Will be missing if limit is exceeded */
849
+ interface PostponeEndDateResponse {
850
+ }
851
+ interface OrderEndDatePostponed {
852
+ /** Order whose `endDate` was postponed. */
834
853
  order?: Order;
835
- /**
836
- * Whether the purchase limit has already been reached for this plan by this email.
837
- * Always false for plans without purchase limits.
838
- */
839
- purchaseLimitExceeded?: boolean;
840
854
  }
841
- interface GetOfflineOrderPreviewRequest {
855
+ interface CancelOrderRequest {
842
856
  /**
843
- * ID of the plan of the previewed order, from the Plans API.
857
+ * Order ID.
844
858
  * @format GUID
845
859
  */
846
- planId: string;
860
+ id: string;
861
+ /** __Required.__ When the order will be canceled. One-time orders can only be canceled `IMMEDIATELY`. */
862
+ effectiveAt: CancellationEffectiveAtWithLiterals;
863
+ }
864
+ interface CancelOrderResponse {
865
+ }
866
+ /**
867
+ * Emitted when an order is canceled immediately or when cycle ends for an order with canceled auto renewal
868
+ *
869
+ * To determine the specific reason of the cancellation check `order.cancellation.cause` field.
870
+ */
871
+ interface OrderCanceled {
872
+ /** Canceled order. */
873
+ order?: Order;
874
+ }
875
+ interface MarkAsPaidRequest {
847
876
  /**
848
- * Member ID of the buyer the previewed order is for, from the Members API.
877
+ * Order ID.
849
878
  * @format GUID
850
879
  */
851
- memberId: string;
852
- /**
853
- * Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
854
- *
855
- * Default: Current date and time.
856
- */
857
- startDate?: Date | null;
858
- /**
859
- * Coupon code to apply, from the Coupons API.
860
- * @minLength 1
861
- * @maxLength 20
862
- */
863
- couponCode?: string | null;
880
+ id: string;
864
881
  }
865
- interface GetOfflineOrderPreviewResponse {
866
- /** The previewed order, as if the plan had been ordered. */
882
+ interface MarkAsPaidResponse {
883
+ }
884
+ interface OrderMarkedAsPaid {
885
+ /** Order that was marked as paid. */
867
886
  order?: Order;
868
- /**
869
- * Whether this previewed order would exceed the permitted amount of purchases available
870
- * for this plan for this buyer.
871
- *
872
- * Always `false` for plans that do not have purchase limits.
873
- */
874
- purchaseLimitExceeded?: boolean;
875
887
  }
876
- interface GetPricePreviewRequest {
888
+ interface PauseOrderRequest {
877
889
  /**
878
- * ID of plan to preview.
890
+ * Order ID.
879
891
  * @format GUID
880
892
  */
881
- planId: string;
882
- /**
883
- * Coupon code to apply, from the Coupons API.
884
- * @minLength 1
885
- * @maxLength 20
886
- */
887
- couponCode?: string | null;
893
+ id: string;
888
894
  }
889
- interface GetPricePreviewResponse {
890
- /**
891
- * __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
892
- * @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
893
- * @replacedBy prices
894
- * @targetRemovalDate 2022-10-01
895
- */
896
- price?: PriceDetails;
897
- /** Pricing details. */
898
- prices?: SpannedPrice[];
895
+ interface PauseOrderResponse {
899
896
  }
900
- interface ChangeStartDateRequest {
897
+ interface OrderPaused {
898
+ /** Paused order. */
899
+ order?: Order;
900
+ }
901
+ interface BulkPauseOrderRequest {
901
902
  /**
902
- * Draft order ID.
903
+ * List of Order IDs.
903
904
  * @format GUID
905
+ * @minSize 1
906
+ * @maxSize 100
904
907
  */
905
- orderId?: string;
906
- /** New valid from date (timestamp). */
907
- startDate?: Date | null;
908
+ ids?: string[];
909
+ /** Set to true to return Order entity in response. */
910
+ returnFullEntity?: boolean;
908
911
  }
909
- interface ChangeStartDateResponse {
910
- /** Updated draft order. */
911
- order?: Order;
912
+ interface BulkPauseOrderResponse {
913
+ /** Orders that were paused. */
914
+ results?: BulkOrderResult[];
915
+ /** Bulk action metadata. */
916
+ bulkActionMetadata?: BulkActionMetadata;
912
917
  }
913
- interface OrderStartDateChanged {
914
- /** Order whose `startDate` changed. */
918
+ interface BulkOrderResult {
919
+ /** Item metadata */
920
+ itemMetadata?: ItemMetadata;
921
+ /** The order. */
915
922
  order?: Order;
916
923
  }
917
- interface ApplyCouponRequest {
924
+ interface ItemMetadata {
925
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
926
+ id?: string | null;
927
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
928
+ originalIndex?: number;
929
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
930
+ success?: boolean;
931
+ /** Details about the error in case of failure. */
932
+ error?: ApplicationError;
933
+ }
934
+ interface ApplicationError {
935
+ /** Error code. */
936
+ code?: string;
937
+ /** Description of the error. */
938
+ description?: string;
939
+ /** Data related to the error. */
940
+ data?: Record<string, any> | null;
941
+ }
942
+ interface BulkActionMetadata {
943
+ /** Number of items that were successfully processed. */
944
+ totalSuccesses?: number;
945
+ /** Number of items that couldn't be processed. */
946
+ totalFailures?: number;
947
+ /** Number of failures without details because detailed failure threshold was exceeded. */
948
+ undetailedFailures?: number;
949
+ }
950
+ interface ResumeOrderRequest {
918
951
  /**
919
- * Draft order ID.
952
+ * Order ID.
920
953
  * @format GUID
921
954
  */
922
- orderId?: string;
923
- /**
924
- * Coupon code to apply.
925
- * @minLength 1
926
- * @maxLength 20
927
- */
928
- couponCode?: string;
955
+ id: string;
929
956
  }
930
- interface ApplyCouponResponse {
931
- /** Order with applied coupon and recalculated tax. */
957
+ interface ResumeOrderResponse {
958
+ }
959
+ interface OrderResumed {
960
+ /** Resumed order. */
932
961
  order?: Order;
933
962
  }
934
- interface SetSubmissionRequest {
935
- /**
936
- * Order ID.
937
- * @format GUID
938
- */
939
- orderId?: string;
963
+ interface BulkResumeOrderRequest {
940
964
  /**
941
- * Submission ID.
965
+ * List of Order IDs.
942
966
  * @format GUID
967
+ * @minSize 1
968
+ * @maxSize 100
943
969
  */
944
- submissionId?: string;
970
+ ids?: string[];
971
+ /** Set to true to return Order entity in response. */
972
+ returnFullEntity?: boolean;
945
973
  }
946
- interface SetSubmissionResponse {
947
- /** Order with submission id */
948
- order?: Order;
974
+ interface BulkResumeOrderResponse {
975
+ /** Orders that were resumed. */
976
+ results?: BulkOrderResult[];
977
+ /** Bulk action metadata. */
978
+ bulkActionMetadata?: BulkActionMetadata;
949
979
  }
950
980
  interface MessageEnvelope {
951
981
  /**
@@ -1038,345 +1068,315 @@ interface AccountInfo {
1038
1068
  */
1039
1069
  siteId?: string | null;
1040
1070
  }
1041
- interface OrderPurchased {
1042
- /** Order that was paid for. If a free or an offline order, the order that was created. */
1043
- order?: Order;
1044
- }
1045
- interface OrderStarted {
1046
- /** Order that reached its `startDate`. */
1047
- order?: Order;
1071
+ interface CreateOnlineOrderRequest {
1072
+ /**
1073
+ * Plan ID.
1074
+ * @format GUID
1075
+ */
1076
+ planId: string;
1077
+ /**
1078
+ * Start date and time for the plan of the online order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
1079
+ *
1080
+ * Default: Current date and time.
1081
+ */
1082
+ startDate?: Date | null;
1083
+ /**
1084
+ * Coupon code to apply.
1085
+ * @minLength 1
1086
+ * @maxLength 20
1087
+ */
1088
+ couponCode?: string | null;
1089
+ /** Provided if checkout is initiated on buyer's behalf. */
1090
+ onBehalf?: OnBehalf;
1091
+ /**
1092
+ * Submission ID of the form submitted with this order.
1093
+ * @format GUID
1094
+ */
1095
+ submissionId?: string | null;
1048
1096
  }
1049
- /**
1050
- * Triggered at the start of a new payment cycle for an existing order.
1051
- *
1052
- * This webhook does not trigger at the initial start of an offline order.
1053
- */
1054
- interface OrderCycleStarted {
1055
- /** Order whose new cycle started. */
1056
- order?: Order;
1057
- /** Number of the payment cycle will be 0 when the order is in the free trial period. In other cases, the cycle number starts from 1. */
1058
- cycleNumber?: number;
1097
+ interface OnBehalf {
1098
+ /**
1099
+ * Member ID.
1100
+ * @format GUID
1101
+ */
1102
+ memberId?: string;
1103
+ /** Method by which checkout is initiated. */
1104
+ orderMethod?: OrderMethodWithLiterals;
1059
1105
  }
1060
- /** Emitted when a recurring order is canceled for the next payment cycle */
1061
- interface OrderAutoRenewCanceled {
1062
- /** Order that is canceled, effective at the end of the current payment cycle. */
1106
+ interface CreateOnlineOrderResponse {
1107
+ /** Created online order. */
1063
1108
  order?: Order;
1064
1109
  }
1065
- interface OrderEnded {
1066
- /** Order that ended. */
1067
- order?: Order;
1110
+ interface CouponsError {
1111
+ /** Coupon code. */
1112
+ couponCode?: string;
1113
+ /** Plan ID. */
1114
+ planId?: string;
1068
1115
  }
1069
- interface GetOrderRequest {
1116
+ interface CreateGuestOnlineOrderRequest {
1070
1117
  /**
1071
- * Order ID.
1118
+ * Plan ID.
1072
1119
  * @format GUID
1073
1120
  */
1074
- id: string;
1121
+ planId?: string;
1075
1122
  /**
1076
- * Predefined set of fields to return.
1123
+ * Start date for the ordered plan.
1077
1124
  *
1078
- * Default: If `fieldSet` is omitted, no order form submission data is returned.
1125
+ * Default: Current date
1079
1126
  */
1080
- fieldSet?: SetWithLiterals;
1127
+ startDate?: Date | null;
1128
+ /**
1129
+ * Coupon code to apply.
1130
+ * @minLength 1
1131
+ * @maxLength 20
1132
+ */
1133
+ couponCode?: string | null;
1134
+ /** Captcha data to prove you are not a robot */
1135
+ captcha?: Captcha;
1136
+ /** Visitor info */
1137
+ guest?: Guest;
1138
+ /**
1139
+ * Form submission id that was submitted together with the order
1140
+ * @format GUID
1141
+ */
1142
+ submissionId?: string | null;
1081
1143
  }
1082
- declare enum Set {
1083
- /** Same behavior as `BASIC`.` */
1084
- UNKNOWN_SET = "UNKNOWN_SET",
1085
- /** Doesn't return any order form submission data. */
1086
- BASIC = "BASIC",
1087
- /** Returns all order form submission data. */
1088
- FULL = "FULL"
1144
+ interface Captcha {
1145
+ /** Token from captcha */
1146
+ token?: string;
1089
1147
  }
1090
- /** @enumType */
1091
- type SetWithLiterals = Set | 'UNKNOWN_SET' | 'BASIC' | 'FULL';
1092
- interface GetOrderResponse {
1148
+ interface Guest {
1149
+ /**
1150
+ * Email for checkout
1151
+ * @format EMAIL
1152
+ */
1153
+ email?: string;
1154
+ }
1155
+ interface CreateGuestOnlineOrderResponse {
1093
1156
  /** Order. */
1094
1157
  order?: Order;
1095
1158
  }
1096
- interface ListOrdersRequest {
1159
+ interface CreateOfflineOrderRequest {
1097
1160
  /**
1098
- * Filter by a buyer's member ID, from the Members API.
1161
+ * ID of the plan being ordered, from the Plans API.
1099
1162
  * @format GUID
1100
1163
  */
1101
- buyerIds?: string[];
1164
+ planId: string;
1102
1165
  /**
1103
- * Filter by plan IDs, from the Plans API.
1166
+ * ID of the member ordering the plan, from the Members API.
1104
1167
  * @format GUID
1105
1168
  */
1106
- planIds?: string[];
1107
- /** Filter by whether or not the auto-renewal of recurring orders was canceled. */
1108
- autoRenewCanceled?: boolean | null;
1109
- /** Filter by order status. */
1110
- orderStatuses?: OrderStatusWithLiterals[];
1111
- /** Filter by payment status. */
1112
- paymentStatuses?: PaymentStatusWithLiterals[];
1169
+ memberId: string;
1113
1170
  /**
1114
- * Number of orders to return. See Sorting and Paging for more information.
1171
+ * Start date and time for the ordered plan in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
1115
1172
  *
1116
- * Max: `50`
1117
- * @min 1
1118
- * @max 50
1173
+ * Default: Current date and time.
1119
1174
  */
1120
- limit?: number | null;
1121
- /** Number of orders to skip in the current sort order. */
1122
- offset?: number | null;
1175
+ startDate?: Date | null;
1123
1176
  /**
1124
- * Sort order.
1125
- *
1126
- * Use `ASC` for ascending order or `DESC` for descending order.
1177
+ * Whether the order is paid.
1127
1178
  *
1128
- * Default: `DESC`.
1179
+ * Default: `false`
1129
1180
  */
1130
- sorting?: Sorting;
1181
+ paid?: boolean | null;
1131
1182
  /**
1132
- * Predefined set of fields to return.
1133
- *
1134
- * Default: If `fieldSet` is omitted, no order form submission data is returned.
1183
+ * Coupon code to apply, from the Coupons API.
1184
+ * @minLength 1
1185
+ * @maxLength 20
1135
1186
  */
1136
- fieldSet?: SetWithLiterals;
1187
+ couponCode?: string | null;
1188
+ /**
1189
+ * Form submission ID that was submitted with the order.
1190
+ * @format GUID
1191
+ */
1192
+ submissionId?: string | null;
1137
1193
  }
1138
- interface Sorting {
1194
+ interface CreateOfflineOrderResponse {
1195
+ /** Order. */
1196
+ order?: Order;
1197
+ }
1198
+ interface CreateExternalOrderRequest {
1139
1199
  /**
1140
- * Name of the field to sort by.
1141
- * @maxLength 512
1200
+ * Plan ID.
1201
+ * @format GUID
1142
1202
  */
1143
- fieldName?: string;
1144
- /** Sort order. */
1145
- order?: SortOrderWithLiterals;
1203
+ planId?: string;
1146
1204
  /**
1147
- * Origin point for geo-distance sorting on a GEO field
1148
- * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1205
+ * Form submission id that was submitted together with the order
1206
+ * @format GUID
1149
1207
  */
1150
- origin?: AddressLocation;
1151
- }
1152
- declare enum SortOrder {
1153
- ASC = "ASC",
1154
- DESC = "DESC"
1208
+ submissionId?: string | null;
1155
1209
  }
1156
- /** @enumType */
1157
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1158
- interface AddressLocation {
1159
- /** Address latitude. */
1160
- latitude?: number | null;
1161
- /** Address longitude. */
1162
- longitude?: number | null;
1210
+ interface CreateExternalOrderResponse {
1211
+ /** Created order */
1212
+ order?: Order;
1163
1213
  }
1164
- interface ListOrdersResponse {
1165
- /** List of orders. */
1166
- orders?: Order[];
1167
- /** Object containing paging-related data (number of orders returned, offset). */
1168
- pagingMetadata?: PagingMetadataV2;
1214
+ interface GetOnlineOrderPreviewRequest {
1215
+ /**
1216
+ * Plan ID.
1217
+ * @format GUID
1218
+ */
1219
+ planId: string;
1220
+ /**
1221
+ * Start date and time for the plan of the order preview in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
1222
+ *
1223
+ * Default: Current date and time.
1224
+ */
1225
+ startDate?: Date | null;
1226
+ /**
1227
+ * Coupon code to apply.
1228
+ * @minLength 1
1229
+ * @maxLength 20
1230
+ */
1231
+ couponCode?: string | null;
1169
1232
  }
1170
- interface PagingMetadataV2 {
1171
- /** Number of items returned in the response. */
1172
- count?: number | null;
1173
- /** Offset that was requested. */
1174
- offset?: number | null;
1175
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1176
- total?: number | null;
1177
- /** Flag that indicates the server failed to calculate the `total` field. */
1178
- tooManyToCount?: boolean | null;
1179
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1180
- cursors?: Cursors;
1233
+ interface GetOnlineOrderPreviewResponse {
1234
+ /** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
1235
+ order?: Order;
1236
+ /** Whether the member has already reached purchase limit for the order's plan. */
1237
+ purchaseLimitExceeded?: boolean;
1181
1238
  }
1182
- interface Cursors {
1239
+ interface GetGuestOnlineOrderPreviewRequest {
1183
1240
  /**
1184
- * Cursor string pointing to the next page in the list of results.
1185
- * @maxLength 16000
1241
+ * Plan ID.
1242
+ * @format GUID
1186
1243
  */
1187
- next?: string | null;
1244
+ planId?: string;
1188
1245
  /**
1189
- * Cursor pointing to the previous page in the list of results.
1190
- * @maxLength 16000
1246
+ * Start date for the ordered plan.
1247
+ *
1248
+ * Default: Current date
1191
1249
  */
1192
- prev?: string | null;
1193
- }
1194
- interface GetOrdersStatsRequest {
1250
+ startDate?: Date | null;
1251
+ /**
1252
+ * Coupon code to apply.
1253
+ * @minLength 1
1254
+ * @maxLength 20
1255
+ */
1256
+ couponCode?: string | null;
1257
+ /**
1258
+ * Email for checkout
1259
+ * @format EMAIL
1260
+ */
1261
+ email?: string;
1195
1262
  }
1196
- interface GetOrdersStatsResponse {
1197
- /** Total number of orders. */
1198
- totalOrderCount?: number;
1199
- /** Number of active orders. */
1200
- activeOrderCount?: number;
1263
+ interface GetGuestOnlineOrderPreviewResponse {
1264
+ /** Will be missing if limit is exceeded */
1265
+ order?: Order;
1266
+ /**
1267
+ * Whether the purchase limit has already been reached for this plan by this email.
1268
+ * Always false for plans without purchase limits.
1269
+ */
1270
+ purchaseLimitExceeded?: boolean;
1201
1271
  }
1202
- interface GetAvailableOrderActionsRequest {
1272
+ interface GetOfflineOrderPreviewRequest {
1203
1273
  /**
1204
- * Order ID.
1274
+ * ID of the plan of the previewed order, from the Plans API.
1205
1275
  * @format GUID
1206
1276
  */
1207
- id?: string;
1208
- }
1209
- interface GetAvailableOrderActionsResponse {
1210
- /** Whether the order can be suspended. */
1211
- suspendable?: boolean;
1212
- /** If the order cannot be suspended, a reason is returned here. */
1213
- notSuspendableReason?: ReasonNotSuspendableWithLiterals;
1214
- /** Whether the order can be canceled by the buyer. */
1215
- cancelableByBuyer?: boolean;
1216
- }
1217
- declare enum ReasonNotSuspendable {
1218
- /** Undefined reason. */
1219
- UNDEFINED = "UNDEFINED",
1220
- /** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
1221
- PENDING = "PENDING",
1222
- /** Trial orders can't be suspended. */
1223
- TRIAL = "TRIAL",
1224
- /** Canceled orders can't be suspended. */
1225
- CANCELED = "CANCELED",
1226
- /** Ended orders can't be suspended. */
1227
- ENDED = "ENDED",
1228
- /** Paid for orders with future start dates can't be suspended. */
1229
- NOT_STARTED = "NOT_STARTED",
1230
- /** Order is already suspended. */
1231
- ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
1232
- /** Orders based on recurring payments using older stripe versions can't be suspended. */
1233
- OLD_STRIPE = "OLD_STRIPE"
1234
- }
1235
- /** @enumType */
1236
- type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
1237
- interface PostponeEndDateRequest {
1277
+ planId: string;
1238
1278
  /**
1239
- * Order ID.
1279
+ * Member ID of the buyer the previewed order is for, from the Members API.
1240
1280
  * @format GUID
1241
1281
  */
1242
- id: string;
1282
+ memberId: string;
1243
1283
  /**
1244
- * New end date and time.
1284
+ * Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
1245
1285
  *
1246
- * Must be later than the current end date and time.
1286
+ * Default: Current date and time.
1247
1287
  */
1248
- endDate: Date | null;
1249
- }
1250
- interface PostponeEndDateResponse {
1251
- }
1252
- interface OrderEndDatePostponed {
1253
- /** Order whose `endDate` was postponed. */
1254
- order?: Order;
1255
- }
1256
- interface CancelOrderRequest {
1288
+ startDate?: Date | null;
1257
1289
  /**
1258
- * Order ID.
1259
- * @format GUID
1290
+ * Coupon code to apply, from the Coupons API.
1291
+ * @minLength 1
1292
+ * @maxLength 20
1260
1293
  */
1261
- id: string;
1262
- /** __Required.__ When the order will be canceled. One-time orders can only be canceled `IMMEDIATELY`. */
1263
- effectiveAt: CancellationEffectiveAtWithLiterals;
1264
- }
1265
- interface CancelOrderResponse {
1294
+ couponCode?: string | null;
1266
1295
  }
1267
- /**
1268
- * Emitted when an order is canceled immediately or when cycle ends for an order with canceled auto renewal
1269
- *
1270
- * To determine the specific reason of the cancellation check `order.cancellation.cause` field.
1271
- */
1272
- interface OrderCanceled {
1273
- /** Canceled order. */
1296
+ interface GetOfflineOrderPreviewResponse {
1297
+ /** The previewed order, as if the plan had been ordered. */
1274
1298
  order?: Order;
1299
+ /**
1300
+ * Whether this previewed order would exceed the permitted amount of purchases available
1301
+ * for this plan for this buyer.
1302
+ *
1303
+ * Always `false` for plans that do not have purchase limits.
1304
+ */
1305
+ purchaseLimitExceeded?: boolean;
1275
1306
  }
1276
- interface MarkAsPaidRequest {
1307
+ interface GetPricePreviewRequest {
1277
1308
  /**
1278
- * Order ID.
1309
+ * ID of plan to preview.
1279
1310
  * @format GUID
1280
1311
  */
1281
- id: string;
1282
- }
1283
- interface MarkAsPaidResponse {
1312
+ planId: string;
1313
+ /**
1314
+ * Coupon code to apply, from the Coupons API.
1315
+ * @minLength 1
1316
+ * @maxLength 20
1317
+ */
1318
+ couponCode?: string | null;
1284
1319
  }
1285
- interface OrderMarkedAsPaid {
1286
- /** Order that was marked as paid. */
1287
- order?: Order;
1320
+ interface GetPricePreviewResponse {
1321
+ /**
1322
+ * __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
1323
+ * @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
1324
+ * @replacedBy prices
1325
+ * @targetRemovalDate 2022-10-01
1326
+ */
1327
+ price?: PriceDetails;
1328
+ /** Pricing details. */
1329
+ prices?: SpannedPrice[];
1288
1330
  }
1289
- interface PauseOrderRequest {
1331
+ interface ChangeStartDateRequest {
1290
1332
  /**
1291
- * Order ID.
1333
+ * Draft order ID.
1292
1334
  * @format GUID
1293
1335
  */
1294
- id: string;
1336
+ orderId?: string;
1337
+ /** New valid from date (timestamp). */
1338
+ startDate?: Date | null;
1295
1339
  }
1296
- interface PauseOrderResponse {
1340
+ interface ChangeStartDateResponse {
1341
+ /** Updated draft order. */
1342
+ order?: Order;
1297
1343
  }
1298
- interface OrderPaused {
1299
- /** Paused order. */
1344
+ interface OrderStartDateChanged {
1345
+ /** Order whose `startDate` changed. */
1300
1346
  order?: Order;
1301
1347
  }
1302
- interface BulkPauseOrderRequest {
1348
+ interface ApplyCouponRequest {
1303
1349
  /**
1304
- * List of Order IDs.
1350
+ * Draft order ID.
1305
1351
  * @format GUID
1306
- * @minSize 1
1307
- * @maxSize 100
1308
1352
  */
1309
- ids?: string[];
1310
- /** Set to true to return Order entity in response. */
1311
- returnFullEntity?: boolean;
1312
- }
1313
- interface BulkPauseOrderResponse {
1314
- /** Orders that were paused. */
1315
- results?: BulkOrderResult[];
1316
- /** Bulk action metadata. */
1317
- bulkActionMetadata?: BulkActionMetadata;
1353
+ orderId?: string;
1354
+ /**
1355
+ * Coupon code to apply.
1356
+ * @minLength 1
1357
+ * @maxLength 20
1358
+ */
1359
+ couponCode?: string;
1318
1360
  }
1319
- interface BulkOrderResult {
1320
- /** Item metadata */
1321
- itemMetadata?: ItemMetadata;
1322
- /** The order. */
1361
+ interface ApplyCouponResponse {
1362
+ /** Order with applied coupon and recalculated tax. */
1323
1363
  order?: Order;
1324
1364
  }
1325
- interface ItemMetadata {
1326
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
1327
- id?: string | null;
1328
- /** Index of the item within the request array. Allows for correlation between request and response items. */
1329
- originalIndex?: number;
1330
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1331
- success?: boolean;
1332
- /** Details about the error in case of failure. */
1333
- error?: ApplicationError;
1334
- }
1335
- interface ApplicationError {
1336
- /** Error code. */
1337
- code?: string;
1338
- /** Description of the error. */
1339
- description?: string;
1340
- /** Data related to the error. */
1341
- data?: Record<string, any> | null;
1342
- }
1343
- interface BulkActionMetadata {
1344
- /** Number of items that were successfully processed. */
1345
- totalSuccesses?: number;
1346
- /** Number of items that couldn't be processed. */
1347
- totalFailures?: number;
1348
- /** Number of failures without details because detailed failure threshold was exceeded. */
1349
- undetailedFailures?: number;
1350
- }
1351
- interface ResumeOrderRequest {
1365
+ interface SetSubmissionRequest {
1352
1366
  /**
1353
1367
  * Order ID.
1354
1368
  * @format GUID
1355
1369
  */
1356
- id: string;
1357
- }
1358
- interface ResumeOrderResponse {
1359
- }
1360
- interface OrderResumed {
1361
- /** Resumed order. */
1362
- order?: Order;
1363
- }
1364
- interface BulkResumeOrderRequest {
1370
+ orderId?: string;
1365
1371
  /**
1366
- * List of Order IDs.
1372
+ * Submission ID.
1367
1373
  * @format GUID
1368
- * @minSize 1
1369
- * @maxSize 100
1370
1374
  */
1371
- ids?: string[];
1372
- /** Set to true to return Order entity in response. */
1373
- returnFullEntity?: boolean;
1375
+ submissionId?: string;
1374
1376
  }
1375
- interface BulkResumeOrderResponse {
1376
- /** Orders that were resumed. */
1377
- results?: BulkOrderResult[];
1378
- /** Bulk action metadata. */
1379
- bulkActionMetadata?: BulkActionMetadata;
1377
+ interface SetSubmissionResponse {
1378
+ /** Order with submission id */
1379
+ order?: Order;
1380
1380
  }
1381
1381
  interface MemberGetOrderRequest {
1382
1382
  /**
@@ -1748,11 +1748,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
1748
1748
  __responseType: Q;
1749
1749
  __originalResponseType: R;
1750
1750
  };
1751
- declare function createOnlineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOnlineOrderRequest$1, CreateOnlineOrderRequest, CreateOnlineOrderResponse$1, CreateOnlineOrderResponse>;
1752
- declare function createOfflineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOfflineOrderRequest$1, CreateOfflineOrderRequest, CreateOfflineOrderResponse$1, CreateOfflineOrderResponse>;
1753
- declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse$1, GetOnlineOrderPreviewResponse>;
1754
- declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
1755
- declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
1756
1751
  declare function managementGetOrder(): __PublicMethodMetaInfo<'GET', {
1757
1752
  id: string;
1758
1753
  }, GetOrderRequest$1, GetOrderRequest, GetOrderResponse$1, GetOrderResponse>;
@@ -1772,6 +1767,11 @@ declare function pauseOrder(): __PublicMethodMetaInfo<'POST', {
1772
1767
  declare function resumeOrder(): __PublicMethodMetaInfo<'POST', {
1773
1768
  id: string;
1774
1769
  }, ResumeOrderRequest$1, ResumeOrderRequest, ResumeOrderResponse$1, ResumeOrderResponse>;
1770
+ declare function createOnlineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOnlineOrderRequest$1, CreateOnlineOrderRequest, CreateOnlineOrderResponse$1, CreateOnlineOrderResponse>;
1771
+ declare function createOfflineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOfflineOrderRequest$1, CreateOfflineOrderRequest, CreateOfflineOrderResponse$1, CreateOfflineOrderResponse>;
1772
+ declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse$1, GetOnlineOrderPreviewResponse>;
1773
+ declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
1774
+ declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
1775
1775
  declare function memberGetOrder(): __PublicMethodMetaInfo<'GET', {
1776
1776
  id: string;
1777
1777
  }, MemberGetOrderRequest$1, MemberGetOrderRequest, MemberGetOrderResponse$1, MemberGetOrderResponse>;