@wix/auto_sdk_pricing-plans_orders 1.0.124 → 1.0.125
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 +629 -629
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +502 -502
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +388 -388
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +889 -889
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +629 -629
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +502 -502
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +388 -388
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +889 -889
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.typings.d.ts +813 -813
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.typings.d.mts +813 -813
- package/build/internal/es/meta.d.mts +500 -500
- package/build/internal/es/schemas.d.mts +199 -199
- package/package.json +2 -2
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,315 @@ 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
|
+
* @format GUID
|
|
663
|
+
*/
|
|
664
|
+
submissionId?: string | null;
|
|
647
665
|
}
|
|
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;
|
|
666
|
+
interface OnBehalf {
|
|
667
|
+
/**
|
|
668
|
+
* Member ID.
|
|
669
|
+
* @format GUID
|
|
670
|
+
*/
|
|
671
|
+
memberId?: string;
|
|
672
|
+
/** Method by which checkout is initiated. */
|
|
673
|
+
orderMethod?: OrderMethodWithLiterals;
|
|
658
674
|
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
/** Order that is canceled, effective at the end of the current payment cycle. */
|
|
675
|
+
interface CreateOnlineOrderResponse {
|
|
676
|
+
/** Created online order. */
|
|
662
677
|
order?: Order;
|
|
663
678
|
}
|
|
664
|
-
interface
|
|
665
|
-
/**
|
|
666
|
-
|
|
679
|
+
interface CouponsError {
|
|
680
|
+
/** Coupon code. */
|
|
681
|
+
couponCode?: string;
|
|
682
|
+
/** Plan ID. */
|
|
683
|
+
planId?: string;
|
|
667
684
|
}
|
|
668
|
-
interface
|
|
685
|
+
interface CreateGuestOnlineOrderRequest {
|
|
669
686
|
/**
|
|
670
|
-
*
|
|
687
|
+
* Plan ID.
|
|
671
688
|
* @format GUID
|
|
672
689
|
*/
|
|
673
|
-
|
|
690
|
+
planId?: string;
|
|
674
691
|
/**
|
|
675
|
-
*
|
|
692
|
+
* Start date for the ordered plan.
|
|
676
693
|
*
|
|
677
|
-
* Default:
|
|
694
|
+
* Default: Current date
|
|
678
695
|
*/
|
|
679
|
-
|
|
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
|
|
710
|
+
*/
|
|
711
|
+
submissionId?: string | null;
|
|
680
712
|
}
|
|
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"
|
|
713
|
+
interface Captcha {
|
|
714
|
+
/** Token from captcha */
|
|
715
|
+
token?: string;
|
|
688
716
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
717
|
+
interface Guest {
|
|
718
|
+
/**
|
|
719
|
+
* Email for checkout
|
|
720
|
+
* @format EMAIL
|
|
721
|
+
*/
|
|
722
|
+
email?: string;
|
|
723
|
+
}
|
|
724
|
+
interface CreateGuestOnlineOrderResponse {
|
|
692
725
|
/** Order. */
|
|
693
726
|
order?: Order;
|
|
694
727
|
}
|
|
695
|
-
interface
|
|
728
|
+
interface CreateOfflineOrderRequest {
|
|
696
729
|
/**
|
|
697
|
-
*
|
|
730
|
+
* ID of the plan being ordered, from the Plans API.
|
|
698
731
|
* @format GUID
|
|
699
732
|
*/
|
|
700
|
-
|
|
733
|
+
planId: string;
|
|
701
734
|
/**
|
|
702
|
-
*
|
|
735
|
+
* ID of the member ordering the plan, from the Members API.
|
|
703
736
|
* @format GUID
|
|
704
737
|
*/
|
|
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[];
|
|
712
|
-
/**
|
|
713
|
-
* Number of orders to return. See Sorting and Paging for more information.
|
|
714
|
-
*
|
|
715
|
-
* Max: `50`
|
|
716
|
-
* @min 1
|
|
717
|
-
* @max 50
|
|
718
|
-
*/
|
|
719
|
-
limit?: number | null;
|
|
720
|
-
/** Number of orders to skip in the current sort order. */
|
|
721
|
-
offset?: number | null;
|
|
738
|
+
memberId: string;
|
|
722
739
|
/**
|
|
723
|
-
*
|
|
724
|
-
*
|
|
725
|
-
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
740
|
+
* Start date and time for the ordered plan in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
726
741
|
*
|
|
727
|
-
* Default:
|
|
742
|
+
* Default: Current date and time.
|
|
728
743
|
*/
|
|
729
|
-
|
|
744
|
+
startDate?: Date | null;
|
|
730
745
|
/**
|
|
731
|
-
*
|
|
746
|
+
* Whether the order is paid.
|
|
732
747
|
*
|
|
733
|
-
* Default:
|
|
748
|
+
* Default: `false`
|
|
734
749
|
*/
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
interface Sorting {
|
|
750
|
+
paid?: boolean | null;
|
|
738
751
|
/**
|
|
739
|
-
*
|
|
740
|
-
* @
|
|
752
|
+
* Coupon code to apply, from the Coupons API.
|
|
753
|
+
* @minLength 1
|
|
754
|
+
* @maxLength 20
|
|
741
755
|
*/
|
|
742
|
-
|
|
743
|
-
/** Sort order. */
|
|
744
|
-
order?: SortOrderWithLiterals;
|
|
756
|
+
couponCode?: string | null;
|
|
745
757
|
/**
|
|
746
|
-
*
|
|
747
|
-
*
|
|
758
|
+
* Form submission ID that was submitted with the order.
|
|
759
|
+
* @format GUID
|
|
748
760
|
*/
|
|
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;
|
|
761
|
+
submissionId?: string | null;
|
|
768
762
|
}
|
|
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;
|
|
763
|
+
interface CreateOfflineOrderResponse {
|
|
764
|
+
/** Order. */
|
|
765
|
+
order?: Order;
|
|
780
766
|
}
|
|
781
|
-
interface
|
|
767
|
+
interface CreateExternalOrderRequest {
|
|
782
768
|
/**
|
|
783
|
-
*
|
|
784
|
-
* @
|
|
769
|
+
* Plan ID.
|
|
770
|
+
* @format GUID
|
|
785
771
|
*/
|
|
786
|
-
|
|
772
|
+
planId?: string;
|
|
787
773
|
/**
|
|
788
|
-
*
|
|
789
|
-
* @
|
|
774
|
+
* Form submission id that was submitted together with the order
|
|
775
|
+
* @format GUID
|
|
790
776
|
*/
|
|
791
|
-
|
|
792
|
-
}
|
|
793
|
-
interface GetOrdersStatsRequest {
|
|
777
|
+
submissionId?: string | null;
|
|
794
778
|
}
|
|
795
|
-
interface
|
|
796
|
-
/**
|
|
797
|
-
|
|
798
|
-
/** Number of active orders. */
|
|
799
|
-
activeOrderCount?: number;
|
|
779
|
+
interface CreateExternalOrderResponse {
|
|
780
|
+
/** Created order */
|
|
781
|
+
order?: Order;
|
|
800
782
|
}
|
|
801
|
-
interface
|
|
783
|
+
interface GetOnlineOrderPreviewRequest {
|
|
802
784
|
/**
|
|
803
|
-
*
|
|
785
|
+
* Plan ID.
|
|
804
786
|
* @format GUID
|
|
805
787
|
*/
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
|
|
788
|
+
planId: string;
|
|
789
|
+
/**
|
|
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.
|
|
793
|
+
*/
|
|
794
|
+
startDate?: Date | null;
|
|
795
|
+
/**
|
|
796
|
+
* Coupon code to apply.
|
|
797
|
+
* @minLength 1
|
|
798
|
+
* @maxLength 20
|
|
799
|
+
*/
|
|
800
|
+
couponCode?: string | null;
|
|
815
801
|
}
|
|
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"
|
|
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;
|
|
833
807
|
}
|
|
834
|
-
|
|
835
|
-
type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
|
|
836
|
-
interface PostponeEndDateRequest {
|
|
808
|
+
interface GetGuestOnlineOrderPreviewRequest {
|
|
837
809
|
/**
|
|
838
|
-
*
|
|
810
|
+
* Plan ID.
|
|
839
811
|
* @format GUID
|
|
840
812
|
*/
|
|
841
|
-
|
|
813
|
+
planId?: string;
|
|
842
814
|
/**
|
|
843
|
-
*
|
|
815
|
+
* Start date for the ordered plan.
|
|
844
816
|
*
|
|
845
|
-
*
|
|
817
|
+
* Default: Current date
|
|
846
818
|
*/
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
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
|
|
829
|
+
*/
|
|
830
|
+
email?: string;
|
|
850
831
|
}
|
|
851
|
-
interface
|
|
852
|
-
/**
|
|
832
|
+
interface GetGuestOnlineOrderPreviewResponse {
|
|
833
|
+
/** Will be missing if limit is exceeded */
|
|
853
834
|
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;
|
|
854
840
|
}
|
|
855
|
-
interface
|
|
841
|
+
interface GetOfflineOrderPreviewRequest {
|
|
856
842
|
/**
|
|
857
|
-
*
|
|
843
|
+
* ID of the plan of the previewed order, from the Plans API.
|
|
858
844
|
* @format GUID
|
|
859
845
|
*/
|
|
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 {
|
|
846
|
+
planId: string;
|
|
876
847
|
/**
|
|
877
|
-
*
|
|
848
|
+
* Member ID of the buyer the previewed order is for, from the Members API.
|
|
878
849
|
* @format GUID
|
|
879
850
|
*/
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
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;
|
|
883
864
|
}
|
|
884
|
-
interface
|
|
885
|
-
/**
|
|
865
|
+
interface GetOfflineOrderPreviewResponse {
|
|
866
|
+
/** The previewed order, as if the plan had been ordered. */
|
|
886
867
|
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;
|
|
887
875
|
}
|
|
888
|
-
interface
|
|
876
|
+
interface GetPricePreviewRequest {
|
|
889
877
|
/**
|
|
890
|
-
*
|
|
878
|
+
* ID of plan to preview.
|
|
891
879
|
* @format GUID
|
|
892
880
|
*/
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
881
|
+
planId: string;
|
|
882
|
+
/**
|
|
883
|
+
* Coupon code to apply, from the Coupons API.
|
|
884
|
+
* @minLength 1
|
|
885
|
+
* @maxLength 20
|
|
886
|
+
*/
|
|
887
|
+
couponCode?: string | null;
|
|
896
888
|
}
|
|
897
|
-
interface
|
|
898
|
-
/**
|
|
899
|
-
|
|
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[];
|
|
900
899
|
}
|
|
901
|
-
interface
|
|
900
|
+
interface ChangeStartDateRequest {
|
|
902
901
|
/**
|
|
903
|
-
*
|
|
902
|
+
* Draft order ID.
|
|
904
903
|
* @format GUID
|
|
905
|
-
* @minSize 1
|
|
906
|
-
* @maxSize 100
|
|
907
904
|
*/
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
|
|
911
|
-
}
|
|
912
|
-
interface BulkPauseOrderResponse {
|
|
913
|
-
/** Orders that were paused. */
|
|
914
|
-
results?: BulkOrderResult[];
|
|
915
|
-
/** Bulk action metadata. */
|
|
916
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
905
|
+
orderId?: string;
|
|
906
|
+
/** New valid from date (timestamp). */
|
|
907
|
+
startDate?: Date | null;
|
|
917
908
|
}
|
|
918
|
-
interface
|
|
919
|
-
/**
|
|
920
|
-
itemMetadata?: ItemMetadata;
|
|
921
|
-
/** The order. */
|
|
909
|
+
interface ChangeStartDateResponse {
|
|
910
|
+
/** Updated draft order. */
|
|
922
911
|
order?: Order;
|
|
923
912
|
}
|
|
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;
|
|
913
|
+
interface OrderStartDateChanged {
|
|
914
|
+
/** Order whose `startDate` changed. */
|
|
915
|
+
order?: Order;
|
|
949
916
|
}
|
|
950
|
-
interface
|
|
917
|
+
interface ApplyCouponRequest {
|
|
951
918
|
/**
|
|
952
|
-
*
|
|
919
|
+
* Draft order ID.
|
|
953
920
|
* @format GUID
|
|
954
921
|
*/
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
922
|
+
orderId?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Coupon code to apply.
|
|
925
|
+
* @minLength 1
|
|
926
|
+
* @maxLength 20
|
|
927
|
+
*/
|
|
928
|
+
couponCode?: string;
|
|
958
929
|
}
|
|
959
|
-
interface
|
|
960
|
-
/**
|
|
930
|
+
interface ApplyCouponResponse {
|
|
931
|
+
/** Order with applied coupon and recalculated tax. */
|
|
961
932
|
order?: Order;
|
|
962
933
|
}
|
|
963
|
-
interface
|
|
934
|
+
interface SetSubmissionRequest {
|
|
964
935
|
/**
|
|
965
|
-
*
|
|
936
|
+
* Order ID.
|
|
966
937
|
* @format GUID
|
|
967
|
-
* @minSize 1
|
|
968
|
-
* @maxSize 100
|
|
969
938
|
*/
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
|
|
939
|
+
orderId?: string;
|
|
940
|
+
/**
|
|
941
|
+
* Submission ID.
|
|
942
|
+
* @format GUID
|
|
943
|
+
*/
|
|
944
|
+
submissionId?: string;
|
|
973
945
|
}
|
|
974
|
-
interface
|
|
975
|
-
/**
|
|
976
|
-
|
|
977
|
-
/** Bulk action metadata. */
|
|
978
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
946
|
+
interface SetSubmissionResponse {
|
|
947
|
+
/** Order with submission id */
|
|
948
|
+
order?: Order;
|
|
979
949
|
}
|
|
980
950
|
interface MessageEnvelope {
|
|
981
951
|
/**
|
|
@@ -1068,315 +1038,345 @@ interface AccountInfo {
|
|
|
1068
1038
|
*/
|
|
1069
1039
|
siteId?: string | null;
|
|
1070
1040
|
}
|
|
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;
|
|
1041
|
+
interface OrderPurchased {
|
|
1042
|
+
/** Order that was paid for. If a free or an offline order, the order that was created. */
|
|
1043
|
+
order?: Order;
|
|
1096
1044
|
}
|
|
1097
|
-
interface
|
|
1098
|
-
/**
|
|
1099
|
-
|
|
1100
|
-
* @format GUID
|
|
1101
|
-
*/
|
|
1102
|
-
memberId?: string;
|
|
1103
|
-
/** Method by which checkout is initiated. */
|
|
1104
|
-
orderMethod?: OrderMethodWithLiterals;
|
|
1045
|
+
interface OrderStarted {
|
|
1046
|
+
/** Order that reached its `startDate`. */
|
|
1047
|
+
order?: Order;
|
|
1105
1048
|
}
|
|
1106
|
-
|
|
1107
|
-
|
|
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. */
|
|
1108
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;
|
|
1109
1059
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
planId?: string;
|
|
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. */
|
|
1063
|
+
order?: Order;
|
|
1115
1064
|
}
|
|
1116
|
-
interface
|
|
1065
|
+
interface OrderEnded {
|
|
1066
|
+
/** Order that ended. */
|
|
1067
|
+
order?: Order;
|
|
1068
|
+
}
|
|
1069
|
+
interface GetOrderRequest {
|
|
1117
1070
|
/**
|
|
1118
|
-
*
|
|
1071
|
+
* Order ID.
|
|
1119
1072
|
* @format GUID
|
|
1120
1073
|
*/
|
|
1121
|
-
|
|
1074
|
+
id: string;
|
|
1122
1075
|
/**
|
|
1123
|
-
*
|
|
1076
|
+
* Predefined set of fields to return.
|
|
1124
1077
|
*
|
|
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
|
|
1078
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1141
1079
|
*/
|
|
1142
|
-
|
|
1143
|
-
}
|
|
1144
|
-
interface Captcha {
|
|
1145
|
-
/** Token from captcha */
|
|
1146
|
-
token?: string;
|
|
1080
|
+
fieldSet?: SetWithLiterals;
|
|
1147
1081
|
}
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
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"
|
|
1154
1089
|
}
|
|
1155
|
-
|
|
1090
|
+
/** @enumType */
|
|
1091
|
+
type SetWithLiterals = Set | 'UNKNOWN_SET' | 'BASIC' | 'FULL';
|
|
1092
|
+
interface GetOrderResponse {
|
|
1156
1093
|
/** Order. */
|
|
1157
1094
|
order?: Order;
|
|
1158
1095
|
}
|
|
1159
|
-
interface
|
|
1096
|
+
interface ListOrdersRequest {
|
|
1160
1097
|
/**
|
|
1161
|
-
*
|
|
1098
|
+
* Filter by a buyer's member ID, from the Members API.
|
|
1162
1099
|
* @format GUID
|
|
1163
1100
|
*/
|
|
1164
|
-
|
|
1101
|
+
buyerIds?: string[];
|
|
1165
1102
|
/**
|
|
1166
|
-
*
|
|
1103
|
+
* Filter by plan IDs, from the Plans API.
|
|
1167
1104
|
* @format GUID
|
|
1168
1105
|
*/
|
|
1169
|
-
|
|
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[];
|
|
1170
1113
|
/**
|
|
1171
|
-
*
|
|
1114
|
+
* Number of orders to return. See Sorting and Paging for more information.
|
|
1172
1115
|
*
|
|
1173
|
-
*
|
|
1116
|
+
* Max: `50`
|
|
1117
|
+
* @min 1
|
|
1118
|
+
* @max 50
|
|
1174
1119
|
*/
|
|
1175
|
-
|
|
1120
|
+
limit?: number | null;
|
|
1121
|
+
/** Number of orders to skip in the current sort order. */
|
|
1122
|
+
offset?: number | null;
|
|
1176
1123
|
/**
|
|
1177
|
-
*
|
|
1124
|
+
* Sort order.
|
|
1178
1125
|
*
|
|
1179
|
-
*
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Coupon code to apply, from the Coupons API.
|
|
1184
|
-
* @minLength 1
|
|
1185
|
-
* @maxLength 20
|
|
1126
|
+
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
1127
|
+
*
|
|
1128
|
+
* Default: `DESC`.
|
|
1186
1129
|
*/
|
|
1187
|
-
|
|
1130
|
+
sorting?: Sorting;
|
|
1188
1131
|
/**
|
|
1189
|
-
*
|
|
1190
|
-
*
|
|
1132
|
+
* Predefined set of fields to return.
|
|
1133
|
+
*
|
|
1134
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1191
1135
|
*/
|
|
1192
|
-
|
|
1193
|
-
}
|
|
1194
|
-
interface CreateOfflineOrderResponse {
|
|
1195
|
-
/** Order. */
|
|
1196
|
-
order?: Order;
|
|
1136
|
+
fieldSet?: SetWithLiterals;
|
|
1197
1137
|
}
|
|
1198
|
-
interface
|
|
1138
|
+
interface Sorting {
|
|
1199
1139
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
* @
|
|
1140
|
+
* Name of the field to sort by.
|
|
1141
|
+
* @maxLength 512
|
|
1202
1142
|
*/
|
|
1203
|
-
|
|
1143
|
+
fieldName?: string;
|
|
1144
|
+
/** Sort order. */
|
|
1145
|
+
order?: SortOrderWithLiterals;
|
|
1204
1146
|
/**
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
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).
|
|
1207
1149
|
*/
|
|
1208
|
-
|
|
1150
|
+
origin?: AddressLocation;
|
|
1209
1151
|
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1152
|
+
declare enum SortOrder {
|
|
1153
|
+
ASC = "ASC",
|
|
1154
|
+
DESC = "DESC"
|
|
1213
1155
|
}
|
|
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;
|
|
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;
|
|
1232
1163
|
}
|
|
1233
|
-
interface
|
|
1234
|
-
/**
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
|
|
1164
|
+
interface ListOrdersResponse {
|
|
1165
|
+
/** List of orders. */
|
|
1166
|
+
orders?: Order[];
|
|
1167
|
+
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1168
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1238
1169
|
}
|
|
1239
|
-
interface
|
|
1240
|
-
/**
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
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;
|
|
1181
|
+
}
|
|
1182
|
+
interface Cursors {
|
|
1251
1183
|
/**
|
|
1252
|
-
*
|
|
1253
|
-
* @
|
|
1254
|
-
* @maxLength 20
|
|
1184
|
+
* Cursor string pointing to the next page in the list of results.
|
|
1185
|
+
* @maxLength 16000
|
|
1255
1186
|
*/
|
|
1256
|
-
|
|
1187
|
+
next?: string | null;
|
|
1257
1188
|
/**
|
|
1258
|
-
*
|
|
1259
|
-
* @
|
|
1189
|
+
* Cursor pointing to the previous page in the list of results.
|
|
1190
|
+
* @maxLength 16000
|
|
1260
1191
|
*/
|
|
1261
|
-
|
|
1192
|
+
prev?: string | null;
|
|
1262
1193
|
}
|
|
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;
|
|
1194
|
+
interface GetOrdersStatsRequest {
|
|
1271
1195
|
}
|
|
1272
|
-
interface
|
|
1196
|
+
interface GetOrdersStatsResponse {
|
|
1197
|
+
/** Total number of orders. */
|
|
1198
|
+
totalOrderCount?: number;
|
|
1199
|
+
/** Number of active orders. */
|
|
1200
|
+
activeOrderCount?: number;
|
|
1201
|
+
}
|
|
1202
|
+
interface GetAvailableOrderActionsRequest {
|
|
1273
1203
|
/**
|
|
1274
|
-
* ID
|
|
1204
|
+
* Order ID.
|
|
1275
1205
|
* @format GUID
|
|
1276
1206
|
*/
|
|
1277
|
-
|
|
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 {
|
|
1278
1238
|
/**
|
|
1279
|
-
*
|
|
1239
|
+
* Order ID.
|
|
1280
1240
|
* @format GUID
|
|
1281
1241
|
*/
|
|
1282
|
-
|
|
1242
|
+
id: string;
|
|
1283
1243
|
/**
|
|
1284
|
-
*
|
|
1244
|
+
* New end date and time.
|
|
1285
1245
|
*
|
|
1286
|
-
*
|
|
1287
|
-
*/
|
|
1288
|
-
startDate?: Date | null;
|
|
1289
|
-
/**
|
|
1290
|
-
* Coupon code to apply, from the Coupons API.
|
|
1291
|
-
* @minLength 1
|
|
1292
|
-
* @maxLength 20
|
|
1246
|
+
* Must be later than the current end date and time.
|
|
1293
1247
|
*/
|
|
1294
|
-
|
|
1248
|
+
endDate: Date | null;
|
|
1295
1249
|
}
|
|
1296
|
-
interface
|
|
1297
|
-
|
|
1250
|
+
interface PostponeEndDateResponse {
|
|
1251
|
+
}
|
|
1252
|
+
interface OrderEndDatePostponed {
|
|
1253
|
+
/** Order whose `endDate` was postponed. */
|
|
1298
1254
|
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
1255
|
}
|
|
1307
|
-
interface
|
|
1256
|
+
interface CancelOrderRequest {
|
|
1308
1257
|
/**
|
|
1309
|
-
* ID
|
|
1258
|
+
* Order ID.
|
|
1310
1259
|
* @format GUID
|
|
1311
1260
|
*/
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
|
|
1315
|
-
* @minLength 1
|
|
1316
|
-
* @maxLength 20
|
|
1317
|
-
*/
|
|
1318
|
-
couponCode?: string | null;
|
|
1261
|
+
id: string;
|
|
1262
|
+
/** __Required.__ When the order will be canceled. One-time orders can only be canceled `IMMEDIATELY`. */
|
|
1263
|
+
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1319
1264
|
}
|
|
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[];
|
|
1265
|
+
interface CancelOrderResponse {
|
|
1330
1266
|
}
|
|
1331
|
-
|
|
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. */
|
|
1274
|
+
order?: Order;
|
|
1275
|
+
}
|
|
1276
|
+
interface MarkAsPaidRequest {
|
|
1332
1277
|
/**
|
|
1333
|
-
*
|
|
1278
|
+
* Order ID.
|
|
1334
1279
|
* @format GUID
|
|
1335
1280
|
*/
|
|
1336
|
-
|
|
1337
|
-
/** New valid from date (timestamp). */
|
|
1338
|
-
startDate?: Date | null;
|
|
1281
|
+
id: string;
|
|
1339
1282
|
}
|
|
1340
|
-
interface
|
|
1341
|
-
/** Updated draft order. */
|
|
1342
|
-
order?: Order;
|
|
1283
|
+
interface MarkAsPaidResponse {
|
|
1343
1284
|
}
|
|
1344
|
-
interface
|
|
1345
|
-
/** Order
|
|
1285
|
+
interface OrderMarkedAsPaid {
|
|
1286
|
+
/** Order that was marked as paid. */
|
|
1346
1287
|
order?: Order;
|
|
1347
1288
|
}
|
|
1348
|
-
interface
|
|
1289
|
+
interface PauseOrderRequest {
|
|
1349
1290
|
/**
|
|
1350
|
-
*
|
|
1291
|
+
* Order ID.
|
|
1351
1292
|
* @format GUID
|
|
1352
1293
|
*/
|
|
1353
|
-
|
|
1294
|
+
id: string;
|
|
1295
|
+
}
|
|
1296
|
+
interface PauseOrderResponse {
|
|
1297
|
+
}
|
|
1298
|
+
interface OrderPaused {
|
|
1299
|
+
/** Paused order. */
|
|
1300
|
+
order?: Order;
|
|
1301
|
+
}
|
|
1302
|
+
interface BulkPauseOrderRequest {
|
|
1354
1303
|
/**
|
|
1355
|
-
*
|
|
1356
|
-
* @
|
|
1357
|
-
* @
|
|
1304
|
+
* List of Order IDs.
|
|
1305
|
+
* @format GUID
|
|
1306
|
+
* @minSize 1
|
|
1307
|
+
* @maxSize 100
|
|
1358
1308
|
*/
|
|
1359
|
-
|
|
1309
|
+
ids?: string[];
|
|
1310
|
+
/** Set to true to return Order entity in response. */
|
|
1311
|
+
returnFullEntity?: boolean;
|
|
1360
1312
|
}
|
|
1361
|
-
interface
|
|
1362
|
-
/**
|
|
1313
|
+
interface BulkPauseOrderResponse {
|
|
1314
|
+
/** Orders that were paused. */
|
|
1315
|
+
results?: BulkOrderResult[];
|
|
1316
|
+
/** Bulk action metadata. */
|
|
1317
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1318
|
+
}
|
|
1319
|
+
interface BulkOrderResult {
|
|
1320
|
+
/** Item metadata */
|
|
1321
|
+
itemMetadata?: ItemMetadata;
|
|
1322
|
+
/** The order. */
|
|
1363
1323
|
order?: Order;
|
|
1364
1324
|
}
|
|
1365
|
-
interface
|
|
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 {
|
|
1366
1352
|
/**
|
|
1367
1353
|
* Order ID.
|
|
1368
1354
|
* @format GUID
|
|
1369
1355
|
*/
|
|
1370
|
-
|
|
1356
|
+
id: string;
|
|
1357
|
+
}
|
|
1358
|
+
interface ResumeOrderResponse {
|
|
1359
|
+
}
|
|
1360
|
+
interface OrderResumed {
|
|
1361
|
+
/** Resumed order. */
|
|
1362
|
+
order?: Order;
|
|
1363
|
+
}
|
|
1364
|
+
interface BulkResumeOrderRequest {
|
|
1371
1365
|
/**
|
|
1372
|
-
*
|
|
1366
|
+
* List of Order IDs.
|
|
1373
1367
|
* @format GUID
|
|
1368
|
+
* @minSize 1
|
|
1369
|
+
* @maxSize 100
|
|
1374
1370
|
*/
|
|
1375
|
-
|
|
1371
|
+
ids?: string[];
|
|
1372
|
+
/** Set to true to return Order entity in response. */
|
|
1373
|
+
returnFullEntity?: boolean;
|
|
1376
1374
|
}
|
|
1377
|
-
interface
|
|
1378
|
-
/**
|
|
1379
|
-
|
|
1375
|
+
interface BulkResumeOrderResponse {
|
|
1376
|
+
/** Orders that were resumed. */
|
|
1377
|
+
results?: BulkOrderResult[];
|
|
1378
|
+
/** Bulk action metadata. */
|
|
1379
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1380
1380
|
}
|
|
1381
1381
|
interface MemberGetOrderRequest {
|
|
1382
1382
|
/**
|
|
@@ -1748,6 +1748,11 @@ 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>;
|
|
1751
1756
|
declare function managementGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1752
1757
|
id: string;
|
|
1753
1758
|
}, GetOrderRequest$1, GetOrderRequest, GetOrderResponse$1, GetOrderResponse>;
|
|
@@ -1767,11 +1772,6 @@ declare function pauseOrder(): __PublicMethodMetaInfo<'POST', {
|
|
|
1767
1772
|
declare function resumeOrder(): __PublicMethodMetaInfo<'POST', {
|
|
1768
1773
|
id: string;
|
|
1769
1774
|
}, 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>;
|