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