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