@wix/auto_sdk_pricing-plans_orders 1.0.90 → 1.0.91
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 +153 -153
- package/build/cjs/index.js +642 -642
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +607 -607
- package/build/cjs/index.typings.js +507 -507
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +459 -459
- package/build/cjs/meta.js +403 -403
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +153 -153
- package/build/es/index.mjs +642 -642
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +607 -607
- package/build/es/index.typings.mjs +507 -507
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +459 -459
- package/build/es/meta.mjs +403 -403
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +153 -153
- package/build/internal/cjs/index.js +642 -642
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +607 -607
- package/build/internal/cjs/index.typings.js +507 -507
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +459 -459
- package/build/internal/cjs/meta.js +403 -403
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +153 -153
- package/build/internal/es/index.mjs +642 -642
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +607 -607
- package/build/internal/es/index.typings.mjs +507 -507
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +459 -459
- package/build/internal/es/meta.mjs +403 -403
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
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, MemberGetOrderRequest as MemberGetOrderRequest$1, MemberGetOrderResponse as MemberGetOrderResponse$1, MemberListOrdersRequest as MemberListOrdersRequest$1, MemberListOrdersResponse as MemberListOrdersResponse$1, RequestCancellationRequest as RequestCancellationRequest$1, RequestCancellationResponse as RequestCancellationResponse$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 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -637,7 +637,35 @@ interface ActionEvent {
|
|
|
637
637
|
}
|
|
638
638
|
interface Empty {
|
|
639
639
|
}
|
|
640
|
-
interface
|
|
640
|
+
interface OrderPurchased {
|
|
641
|
+
/** Order that was paid for. If a free or an offline order, the order that was created. */
|
|
642
|
+
order?: Order;
|
|
643
|
+
}
|
|
644
|
+
interface OrderStarted {
|
|
645
|
+
/** Order that reached its `startDate`. */
|
|
646
|
+
order?: Order;
|
|
647
|
+
}
|
|
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. */
|
|
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;
|
|
658
|
+
}
|
|
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;
|
|
663
|
+
}
|
|
664
|
+
interface OrderEnded {
|
|
665
|
+
/** Order that ended. */
|
|
666
|
+
order?: Order;
|
|
667
|
+
}
|
|
668
|
+
interface GetOrderRequest {
|
|
641
669
|
/**
|
|
642
670
|
* Order ID.
|
|
643
671
|
* @format GUID
|
|
@@ -660,31 +688,44 @@ declare enum Set {
|
|
|
660
688
|
}
|
|
661
689
|
/** @enumType */
|
|
662
690
|
type SetWithLiterals = Set | 'UNKNOWN_SET' | 'BASIC' | 'FULL';
|
|
663
|
-
interface
|
|
664
|
-
/**
|
|
691
|
+
interface GetOrderResponse {
|
|
692
|
+
/** Order. */
|
|
665
693
|
order?: Order;
|
|
666
694
|
}
|
|
667
|
-
interface
|
|
695
|
+
interface ListOrdersRequest {
|
|
668
696
|
/**
|
|
669
|
-
* Filter by
|
|
697
|
+
* Filter by a buyer's member ID, from the Members API.
|
|
698
|
+
* @format GUID
|
|
699
|
+
*/
|
|
700
|
+
buyerIds?: string[];
|
|
701
|
+
/**
|
|
702
|
+
* Filter by plan IDs, from the Plans API.
|
|
670
703
|
* @format GUID
|
|
671
704
|
*/
|
|
672
705
|
planIds?: string[];
|
|
673
|
-
/** Filter
|
|
706
|
+
/** Filter by whether or not the auto-renewal of recurring orders was canceled. */
|
|
674
707
|
autoRenewCanceled?: boolean | null;
|
|
675
708
|
/** Filter by order status. */
|
|
676
709
|
orderStatuses?: OrderStatusWithLiterals[];
|
|
677
710
|
/** Filter by payment status. */
|
|
678
711
|
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
679
712
|
/**
|
|
680
|
-
*
|
|
713
|
+
* Number of orders to return. See Sorting and Paging for more information.
|
|
714
|
+
*
|
|
715
|
+
* Max: `50`
|
|
681
716
|
* @min 1
|
|
682
717
|
* @max 50
|
|
683
718
|
*/
|
|
684
719
|
limit?: number | null;
|
|
685
|
-
/** Number of
|
|
720
|
+
/** Number of orders to skip in the current sort order. */
|
|
686
721
|
offset?: number | null;
|
|
687
|
-
/**
|
|
722
|
+
/**
|
|
723
|
+
* Sort order.
|
|
724
|
+
*
|
|
725
|
+
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
726
|
+
*
|
|
727
|
+
* Default: `DESC`.
|
|
728
|
+
*/
|
|
688
729
|
sorting?: Sorting;
|
|
689
730
|
/**
|
|
690
731
|
* Predefined set of fields to return.
|
|
@@ -708,8 +749,8 @@ declare enum SortOrder {
|
|
|
708
749
|
}
|
|
709
750
|
/** @enumType */
|
|
710
751
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
711
|
-
interface
|
|
712
|
-
/**
|
|
752
|
+
interface ListOrdersResponse {
|
|
753
|
+
/** List of orders. */
|
|
713
754
|
orders?: Order[];
|
|
714
755
|
/** Object containing paging-related data (number of orders returned, offset). */
|
|
715
756
|
pagingMetadata?: PagingMetadataV2;
|
|
@@ -738,11 +779,7 @@ interface Cursors {
|
|
|
738
779
|
*/
|
|
739
780
|
prev?: string | null;
|
|
740
781
|
}
|
|
741
|
-
|
|
742
|
-
* TODO: Write orders filter and sort docs page
|
|
743
|
-
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
744
|
-
*/
|
|
745
|
-
interface QueryOrdersRequest {
|
|
782
|
+
interface OrdersQueryOrdersRequest {
|
|
746
783
|
/** Query filter. */
|
|
747
784
|
query?: QueryV2;
|
|
748
785
|
}
|
|
@@ -796,22 +833,84 @@ interface CursorPaging {
|
|
|
796
833
|
*/
|
|
797
834
|
cursor?: string | null;
|
|
798
835
|
}
|
|
799
|
-
interface
|
|
800
|
-
/**
|
|
836
|
+
interface OrdersQueryOrdersResponse {
|
|
837
|
+
/** Retrieved orders. */
|
|
801
838
|
plans?: Order[];
|
|
802
839
|
/** Paging-related data (number of orders returned, offset). */
|
|
803
840
|
pagingMetadata?: PagingMetadataV2;
|
|
804
841
|
}
|
|
805
|
-
interface
|
|
842
|
+
interface GetOrdersStatsRequest {
|
|
843
|
+
}
|
|
844
|
+
interface GetOrdersStatsResponse {
|
|
845
|
+
/** Total number of orders. */
|
|
846
|
+
totalOrderCount?: number;
|
|
847
|
+
/** Number of active orders. */
|
|
848
|
+
activeOrderCount?: number;
|
|
849
|
+
}
|
|
850
|
+
interface GetAvailableOrderActionsRequest {
|
|
851
|
+
/**
|
|
852
|
+
* Order ID.
|
|
853
|
+
* @format GUID
|
|
854
|
+
*/
|
|
855
|
+
id?: string;
|
|
856
|
+
}
|
|
857
|
+
interface GetAvailableOrderActionsResponse {
|
|
858
|
+
/** Whether the order can be suspended. */
|
|
859
|
+
suspendable?: boolean;
|
|
860
|
+
/** If the order cannot be suspended, a reason is returned here. */
|
|
861
|
+
notSuspendableReason?: ReasonNotSuspendableWithLiterals;
|
|
862
|
+
/** Whether the order can be canceled by the buyer. */
|
|
863
|
+
cancelableByBuyer?: boolean;
|
|
864
|
+
}
|
|
865
|
+
declare enum ReasonNotSuspendable {
|
|
866
|
+
/** Undefined reason. */
|
|
867
|
+
UNDEFINED = "UNDEFINED",
|
|
868
|
+
/** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
|
|
869
|
+
PENDING = "PENDING",
|
|
870
|
+
/** Trial orders can't be suspended. */
|
|
871
|
+
TRIAL = "TRIAL",
|
|
872
|
+
/** Canceled orders can't be suspended. */
|
|
873
|
+
CANCELED = "CANCELED",
|
|
874
|
+
/** Ended orders can't be suspended. */
|
|
875
|
+
ENDED = "ENDED",
|
|
876
|
+
/** Paid for orders with future start dates can't be suspended. */
|
|
877
|
+
NOT_STARTED = "NOT_STARTED",
|
|
878
|
+
/** Order is already suspended. */
|
|
879
|
+
ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
|
|
880
|
+
/** Orders based on recurring payments using older stripe versions can't be suspended. */
|
|
881
|
+
OLD_STRIPE = "OLD_STRIPE"
|
|
882
|
+
}
|
|
883
|
+
/** @enumType */
|
|
884
|
+
type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
|
|
885
|
+
interface PostponeEndDateRequest {
|
|
806
886
|
/**
|
|
807
887
|
* Order ID.
|
|
808
888
|
* @format GUID
|
|
809
889
|
*/
|
|
810
890
|
id: string;
|
|
811
|
-
/**
|
|
891
|
+
/**
|
|
892
|
+
* New end date and time.
|
|
893
|
+
*
|
|
894
|
+
* Must be later than the current end date and time.
|
|
895
|
+
*/
|
|
896
|
+
endDate: Date | null;
|
|
897
|
+
}
|
|
898
|
+
interface PostponeEndDateResponse {
|
|
899
|
+
}
|
|
900
|
+
interface OrderEndDatePostponed {
|
|
901
|
+
/** Order whose `endDate` was postponed. */
|
|
902
|
+
order?: Order;
|
|
903
|
+
}
|
|
904
|
+
interface CancelOrderRequest {
|
|
905
|
+
/**
|
|
906
|
+
* Order ID.
|
|
907
|
+
* @format GUID
|
|
908
|
+
*/
|
|
909
|
+
id: string;
|
|
910
|
+
/** __Required.__ When the order will be canceled. One-time orders can only be canceled `IMMEDIATELY`. */
|
|
812
911
|
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
813
912
|
}
|
|
814
|
-
interface
|
|
913
|
+
interface CancelOrderResponse {
|
|
815
914
|
}
|
|
816
915
|
/**
|
|
817
916
|
* Emitted when an order is canceled immediately or when cycle ends for an order with canceled auto renewal
|
|
@@ -822,6 +921,111 @@ interface OrderCanceled {
|
|
|
822
921
|
/** Canceled order. */
|
|
823
922
|
order?: Order;
|
|
824
923
|
}
|
|
924
|
+
interface MarkAsPaidRequest {
|
|
925
|
+
/**
|
|
926
|
+
* Order ID.
|
|
927
|
+
* @format GUID
|
|
928
|
+
*/
|
|
929
|
+
id: string;
|
|
930
|
+
}
|
|
931
|
+
interface MarkAsPaidResponse {
|
|
932
|
+
}
|
|
933
|
+
interface OrderMarkedAsPaid {
|
|
934
|
+
/** Order that was marked as paid. */
|
|
935
|
+
order?: Order;
|
|
936
|
+
}
|
|
937
|
+
interface PauseOrderRequest {
|
|
938
|
+
/**
|
|
939
|
+
* Order ID.
|
|
940
|
+
* @format GUID
|
|
941
|
+
*/
|
|
942
|
+
id: string;
|
|
943
|
+
}
|
|
944
|
+
interface PauseOrderResponse {
|
|
945
|
+
}
|
|
946
|
+
interface OrderPaused {
|
|
947
|
+
/** Paused order. */
|
|
948
|
+
order?: Order;
|
|
949
|
+
}
|
|
950
|
+
interface BulkPauseOrderRequest {
|
|
951
|
+
/**
|
|
952
|
+
* List of Order IDs.
|
|
953
|
+
* @format GUID
|
|
954
|
+
* @minSize 1
|
|
955
|
+
* @maxSize 100
|
|
956
|
+
*/
|
|
957
|
+
ids?: string[];
|
|
958
|
+
/** Set to true to return Order entity in response. */
|
|
959
|
+
returnFullEntity?: boolean;
|
|
960
|
+
}
|
|
961
|
+
interface BulkPauseOrderResponse {
|
|
962
|
+
/** Orders that were paused. */
|
|
963
|
+
results?: BulkOrderResult[];
|
|
964
|
+
/** Bulk action metadata. */
|
|
965
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
966
|
+
}
|
|
967
|
+
interface BulkOrderResult {
|
|
968
|
+
/** Item metadata */
|
|
969
|
+
itemMetadata?: ItemMetadata;
|
|
970
|
+
/** The order. */
|
|
971
|
+
order?: Order;
|
|
972
|
+
}
|
|
973
|
+
interface ItemMetadata {
|
|
974
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
975
|
+
id?: string | null;
|
|
976
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
977
|
+
originalIndex?: number;
|
|
978
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
979
|
+
success?: boolean;
|
|
980
|
+
/** Details about the error in case of failure. */
|
|
981
|
+
error?: ApplicationError;
|
|
982
|
+
}
|
|
983
|
+
interface ApplicationError {
|
|
984
|
+
/** Error code. */
|
|
985
|
+
code?: string;
|
|
986
|
+
/** Description of the error. */
|
|
987
|
+
description?: string;
|
|
988
|
+
/** Data related to the error. */
|
|
989
|
+
data?: Record<string, any> | null;
|
|
990
|
+
}
|
|
991
|
+
interface BulkActionMetadata {
|
|
992
|
+
/** Number of items that were successfully processed. */
|
|
993
|
+
totalSuccesses?: number;
|
|
994
|
+
/** Number of items that couldn't be processed. */
|
|
995
|
+
totalFailures?: number;
|
|
996
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
997
|
+
undetailedFailures?: number;
|
|
998
|
+
}
|
|
999
|
+
interface ResumeOrderRequest {
|
|
1000
|
+
/**
|
|
1001
|
+
* Order ID.
|
|
1002
|
+
* @format GUID
|
|
1003
|
+
*/
|
|
1004
|
+
id: string;
|
|
1005
|
+
}
|
|
1006
|
+
interface ResumeOrderResponse {
|
|
1007
|
+
}
|
|
1008
|
+
interface OrderResumed {
|
|
1009
|
+
/** Resumed order. */
|
|
1010
|
+
order?: Order;
|
|
1011
|
+
}
|
|
1012
|
+
interface BulkResumeOrderRequest {
|
|
1013
|
+
/**
|
|
1014
|
+
* List of Order IDs.
|
|
1015
|
+
* @format GUID
|
|
1016
|
+
* @minSize 1
|
|
1017
|
+
* @maxSize 100
|
|
1018
|
+
*/
|
|
1019
|
+
ids?: string[];
|
|
1020
|
+
/** Set to true to return Order entity in response. */
|
|
1021
|
+
returnFullEntity?: boolean;
|
|
1022
|
+
}
|
|
1023
|
+
interface BulkResumeOrderResponse {
|
|
1024
|
+
/** Orders that were resumed. */
|
|
1025
|
+
results?: BulkOrderResult[];
|
|
1026
|
+
/** Bulk action metadata. */
|
|
1027
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1028
|
+
}
|
|
825
1029
|
interface MessageEnvelope {
|
|
826
1030
|
/**
|
|
827
1031
|
* App instance ID.
|
|
@@ -894,16 +1098,93 @@ declare enum WebhookIdentityType {
|
|
|
894
1098
|
}
|
|
895
1099
|
/** @enumType */
|
|
896
1100
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
897
|
-
interface
|
|
1101
|
+
interface MemberGetOrderRequest {
|
|
898
1102
|
/**
|
|
899
|
-
*
|
|
1103
|
+
* Order ID.
|
|
900
1104
|
* @format GUID
|
|
901
1105
|
*/
|
|
902
|
-
|
|
1106
|
+
id: string;
|
|
903
1107
|
/**
|
|
904
|
-
*
|
|
1108
|
+
* Predefined set of fields to return.
|
|
905
1109
|
*
|
|
906
|
-
* Default:
|
|
1110
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1111
|
+
*/
|
|
1112
|
+
fieldSet?: SetWithLiterals;
|
|
1113
|
+
}
|
|
1114
|
+
interface MemberGetOrderResponse {
|
|
1115
|
+
/** Requested order. */
|
|
1116
|
+
order?: Order;
|
|
1117
|
+
}
|
|
1118
|
+
interface MemberListOrdersRequest {
|
|
1119
|
+
/**
|
|
1120
|
+
* Filter by plan IDs.
|
|
1121
|
+
* @format GUID
|
|
1122
|
+
*/
|
|
1123
|
+
planIds?: string[];
|
|
1124
|
+
/** Filter for orders where auto renewal was canceled. */
|
|
1125
|
+
autoRenewCanceled?: boolean | null;
|
|
1126
|
+
/** Filter by order status. */
|
|
1127
|
+
orderStatuses?: OrderStatusWithLiterals[];
|
|
1128
|
+
/** Filter by payment status. */
|
|
1129
|
+
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1130
|
+
/**
|
|
1131
|
+
* Limit the number of pricing plans returned. Default limit is 50.
|
|
1132
|
+
* @min 1
|
|
1133
|
+
* @max 50
|
|
1134
|
+
*/
|
|
1135
|
+
limit?: number | null;
|
|
1136
|
+
/** Number of entries to offset. */
|
|
1137
|
+
offset?: number | null;
|
|
1138
|
+
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
1139
|
+
sorting?: Sorting;
|
|
1140
|
+
/**
|
|
1141
|
+
* Predefined set of fields to return.
|
|
1142
|
+
*
|
|
1143
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1144
|
+
*/
|
|
1145
|
+
fieldSet?: SetWithLiterals;
|
|
1146
|
+
}
|
|
1147
|
+
interface MemberListOrdersResponse {
|
|
1148
|
+
/** Requested orders. */
|
|
1149
|
+
orders?: Order[];
|
|
1150
|
+
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1151
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* TODO: Write orders filter and sort docs page
|
|
1155
|
+
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
1156
|
+
*/
|
|
1157
|
+
interface QueryOrdersRequest {
|
|
1158
|
+
/** Query filter. */
|
|
1159
|
+
query?: QueryV2;
|
|
1160
|
+
}
|
|
1161
|
+
interface QueryOrdersResponse {
|
|
1162
|
+
/** Order data. */
|
|
1163
|
+
plans?: Order[];
|
|
1164
|
+
/** Paging-related data (number of orders returned, offset). */
|
|
1165
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1166
|
+
}
|
|
1167
|
+
interface RequestCancellationRequest {
|
|
1168
|
+
/**
|
|
1169
|
+
* Order ID.
|
|
1170
|
+
* @format GUID
|
|
1171
|
+
*/
|
|
1172
|
+
id: string;
|
|
1173
|
+
/** Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately. */
|
|
1174
|
+
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1175
|
+
}
|
|
1176
|
+
interface RequestCancellationResponse {
|
|
1177
|
+
}
|
|
1178
|
+
interface CreateOnlineOrderRequest {
|
|
1179
|
+
/**
|
|
1180
|
+
* Plan ID.
|
|
1181
|
+
* @format GUID
|
|
1182
|
+
*/
|
|
1183
|
+
planId: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Start date and time for the plan of the online order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1186
|
+
*
|
|
1187
|
+
* Default: Current date and time.
|
|
907
1188
|
*/
|
|
908
1189
|
startDate?: Date | null;
|
|
909
1190
|
/**
|
|
@@ -1021,469 +1302,188 @@ interface CreateOfflineOrderResponse {
|
|
|
1021
1302
|
/** Order. */
|
|
1022
1303
|
order?: Order;
|
|
1023
1304
|
}
|
|
1024
|
-
interface CreateExternalOrderRequest {
|
|
1025
|
-
/**
|
|
1026
|
-
* Plan ID.
|
|
1027
|
-
* @format GUID
|
|
1028
|
-
*/
|
|
1029
|
-
planId?: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* Form submission id that was submitted together with the order
|
|
1032
|
-
* @format GUID
|
|
1033
|
-
*/
|
|
1034
|
-
submissionId?: string | null;
|
|
1035
|
-
}
|
|
1036
|
-
interface CreateExternalOrderResponse {
|
|
1037
|
-
/** Created order */
|
|
1038
|
-
order?: Order;
|
|
1039
|
-
}
|
|
1040
|
-
interface GetOnlineOrderPreviewRequest {
|
|
1041
|
-
/**
|
|
1042
|
-
* Plan ID.
|
|
1043
|
-
* @format GUID
|
|
1044
|
-
*/
|
|
1045
|
-
planId: string;
|
|
1046
|
-
/**
|
|
1047
|
-
* Start date and time for the plan of the order preview in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1048
|
-
*
|
|
1049
|
-
* Default: Current date and time.
|
|
1050
|
-
*/
|
|
1051
|
-
startDate?: Date | null;
|
|
1052
|
-
/**
|
|
1053
|
-
* Coupon code to apply.
|
|
1054
|
-
* @minLength 1
|
|
1055
|
-
* @maxLength 20
|
|
1056
|
-
*/
|
|
1057
|
-
couponCode?: string | null;
|
|
1058
|
-
}
|
|
1059
|
-
interface GetOnlineOrderPreviewResponse {
|
|
1060
|
-
/** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
|
|
1061
|
-
order?: Order;
|
|
1062
|
-
/** Whether the member has already reached purchase limit for the order's plan. */
|
|
1063
|
-
purchaseLimitExceeded?: boolean;
|
|
1064
|
-
}
|
|
1065
|
-
interface GetGuestOnlineOrderPreviewRequest {
|
|
1066
|
-
/**
|
|
1067
|
-
* Plan ID.
|
|
1068
|
-
* @format GUID
|
|
1069
|
-
*/
|
|
1070
|
-
planId?: string;
|
|
1071
|
-
/**
|
|
1072
|
-
* Start date for the ordered plan.
|
|
1073
|
-
*
|
|
1074
|
-
* Default: Current date
|
|
1075
|
-
*/
|
|
1076
|
-
startDate?: Date | null;
|
|
1077
|
-
/**
|
|
1078
|
-
* Coupon code to apply.
|
|
1079
|
-
* @minLength 1
|
|
1080
|
-
* @maxLength 20
|
|
1081
|
-
*/
|
|
1082
|
-
couponCode?: string | null;
|
|
1083
|
-
/**
|
|
1084
|
-
* Email for checkout
|
|
1085
|
-
* @format EMAIL
|
|
1086
|
-
*/
|
|
1087
|
-
email?: string;
|
|
1088
|
-
}
|
|
1089
|
-
interface GetGuestOnlineOrderPreviewResponse {
|
|
1090
|
-
/** Will be missing if limit is exceeded */
|
|
1091
|
-
order?: Order;
|
|
1092
|
-
/**
|
|
1093
|
-
* Whether the purchase limit has already been reached for this plan by this email.
|
|
1094
|
-
* Always false for plans without purchase limits.
|
|
1095
|
-
*/
|
|
1096
|
-
purchaseLimitExceeded?: boolean;
|
|
1097
|
-
}
|
|
1098
|
-
interface GetOfflineOrderPreviewRequest {
|
|
1099
|
-
/**
|
|
1100
|
-
* ID of the plan of the previewed order, from the Plans API.
|
|
1101
|
-
* @format GUID
|
|
1102
|
-
*/
|
|
1103
|
-
planId: string;
|
|
1104
|
-
/**
|
|
1105
|
-
* Member ID of the buyer the previewed order is for, from the Members API.
|
|
1106
|
-
* @format GUID
|
|
1107
|
-
*/
|
|
1108
|
-
memberId: string;
|
|
1109
|
-
/**
|
|
1110
|
-
* Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1111
|
-
*
|
|
1112
|
-
* Default: Current date and time.
|
|
1113
|
-
*/
|
|
1114
|
-
startDate?: Date | null;
|
|
1115
|
-
/**
|
|
1116
|
-
* Coupon code to apply, from the Coupons API.
|
|
1117
|
-
* @minLength 1
|
|
1118
|
-
* @maxLength 20
|
|
1119
|
-
*/
|
|
1120
|
-
couponCode?: string | null;
|
|
1121
|
-
}
|
|
1122
|
-
interface GetOfflineOrderPreviewResponse {
|
|
1123
|
-
/** The previewed order, as if the plan had been ordered. */
|
|
1124
|
-
order?: Order;
|
|
1125
|
-
/**
|
|
1126
|
-
* Whether this previewed order would exceed the permitted amount of purchases available
|
|
1127
|
-
* for this plan for this buyer.
|
|
1128
|
-
*
|
|
1129
|
-
* Always `false` for plans that do not have purchase limits.
|
|
1130
|
-
*/
|
|
1131
|
-
purchaseLimitExceeded?: boolean;
|
|
1132
|
-
}
|
|
1133
|
-
interface GetPricePreviewRequest {
|
|
1134
|
-
/**
|
|
1135
|
-
* ID of plan to preview.
|
|
1136
|
-
* @format GUID
|
|
1137
|
-
*/
|
|
1138
|
-
planId: string;
|
|
1139
|
-
/**
|
|
1140
|
-
* Coupon code to apply, from the Coupons API.
|
|
1141
|
-
* @minLength 1
|
|
1142
|
-
* @maxLength 20
|
|
1143
|
-
*/
|
|
1144
|
-
couponCode?: string | null;
|
|
1145
|
-
}
|
|
1146
|
-
interface GetPricePreviewResponse {
|
|
1147
|
-
/**
|
|
1148
|
-
* __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1149
|
-
* @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1150
|
-
* @replacedBy prices
|
|
1151
|
-
* @targetRemovalDate 2022-10-01
|
|
1152
|
-
*/
|
|
1153
|
-
price?: PriceDetails;
|
|
1154
|
-
/** Pricing details. */
|
|
1155
|
-
prices?: SpannedPrice[];
|
|
1156
|
-
}
|
|
1157
|
-
interface ChangeStartDateRequest {
|
|
1158
|
-
/**
|
|
1159
|
-
* Draft order ID.
|
|
1160
|
-
* @format GUID
|
|
1161
|
-
*/
|
|
1162
|
-
orderId?: string;
|
|
1163
|
-
/** New valid from date (timestamp). */
|
|
1164
|
-
startDate?: Date | null;
|
|
1165
|
-
}
|
|
1166
|
-
interface ChangeStartDateResponse {
|
|
1167
|
-
/** Updated draft order. */
|
|
1168
|
-
order?: Order;
|
|
1169
|
-
}
|
|
1170
|
-
interface OrderStartDateChanged {
|
|
1171
|
-
/** Order whose `startDate` changed. */
|
|
1172
|
-
order?: Order;
|
|
1173
|
-
}
|
|
1174
|
-
interface ApplyCouponRequest {
|
|
1175
|
-
/**
|
|
1176
|
-
* Draft order ID.
|
|
1177
|
-
* @format GUID
|
|
1178
|
-
*/
|
|
1179
|
-
orderId?: string;
|
|
1180
|
-
/**
|
|
1181
|
-
* Coupon code to apply.
|
|
1182
|
-
* @minLength 1
|
|
1183
|
-
* @maxLength 20
|
|
1184
|
-
*/
|
|
1185
|
-
couponCode?: string;
|
|
1186
|
-
}
|
|
1187
|
-
interface ApplyCouponResponse {
|
|
1188
|
-
/** Order with applied coupon and recalculated tax. */
|
|
1189
|
-
order?: Order;
|
|
1190
|
-
}
|
|
1191
|
-
interface SetSubmissionRequest {
|
|
1192
|
-
/**
|
|
1193
|
-
* Order ID.
|
|
1194
|
-
* @format GUID
|
|
1195
|
-
*/
|
|
1196
|
-
orderId?: string;
|
|
1197
|
-
/**
|
|
1198
|
-
* Submission ID.
|
|
1199
|
-
* @format GUID
|
|
1200
|
-
*/
|
|
1201
|
-
submissionId?: string;
|
|
1202
|
-
}
|
|
1203
|
-
interface SetSubmissionResponse {
|
|
1204
|
-
/** Order with submission id */
|
|
1205
|
-
order?: Order;
|
|
1206
|
-
}
|
|
1207
|
-
interface OrderPurchased {
|
|
1208
|
-
/** Order that was paid for. If a free or an offline order, the order that was created. */
|
|
1209
|
-
order?: Order;
|
|
1210
|
-
}
|
|
1211
|
-
interface OrderStarted {
|
|
1212
|
-
/** Order that reached its `startDate`. */
|
|
1213
|
-
order?: Order;
|
|
1214
|
-
}
|
|
1215
|
-
/**
|
|
1216
|
-
* Triggered at the start of a new payment cycle for an existing order.
|
|
1217
|
-
*
|
|
1218
|
-
* This webhook does not trigger at the initial start of an offline order.
|
|
1219
|
-
*/
|
|
1220
|
-
interface OrderCycleStarted {
|
|
1221
|
-
/** Order whose new cycle started. */
|
|
1222
|
-
order?: Order;
|
|
1223
|
-
/** 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. */
|
|
1224
|
-
cycleNumber?: number;
|
|
1225
|
-
}
|
|
1226
|
-
/** Emitted when a recurring order is canceled for the next payment cycle */
|
|
1227
|
-
interface OrderAutoRenewCanceled {
|
|
1228
|
-
/** Order that is canceled, effective at the end of the current payment cycle. */
|
|
1229
|
-
order?: Order;
|
|
1230
|
-
}
|
|
1231
|
-
interface OrderEnded {
|
|
1232
|
-
/** Order that ended. */
|
|
1233
|
-
order?: Order;
|
|
1234
|
-
}
|
|
1235
|
-
interface GetOrderRequest {
|
|
1236
|
-
/**
|
|
1237
|
-
* Order ID.
|
|
1238
|
-
* @format GUID
|
|
1239
|
-
*/
|
|
1240
|
-
id: string;
|
|
1241
|
-
/**
|
|
1242
|
-
* Predefined set of fields to return.
|
|
1243
|
-
*
|
|
1244
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1245
|
-
*/
|
|
1246
|
-
fieldSet?: SetWithLiterals;
|
|
1247
|
-
}
|
|
1248
|
-
interface GetOrderResponse {
|
|
1249
|
-
/** Order. */
|
|
1250
|
-
order?: Order;
|
|
1251
|
-
}
|
|
1252
|
-
interface ListOrdersRequest {
|
|
1253
|
-
/**
|
|
1254
|
-
* Filter by a buyer's member ID, from the Members API.
|
|
1255
|
-
* @format GUID
|
|
1256
|
-
*/
|
|
1257
|
-
buyerIds?: string[];
|
|
1258
|
-
/**
|
|
1259
|
-
* Filter by plan IDs, from the Plans API.
|
|
1260
|
-
* @format GUID
|
|
1261
|
-
*/
|
|
1262
|
-
planIds?: string[];
|
|
1263
|
-
/** Filter by whether or not the auto-renewal of recurring orders was canceled. */
|
|
1264
|
-
autoRenewCanceled?: boolean | null;
|
|
1265
|
-
/** Filter by order status. */
|
|
1266
|
-
orderStatuses?: OrderStatusWithLiterals[];
|
|
1267
|
-
/** Filter by payment status. */
|
|
1268
|
-
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1269
|
-
/**
|
|
1270
|
-
* Number of orders to return. See Sorting and Paging for more information.
|
|
1271
|
-
*
|
|
1272
|
-
* Max: `50`
|
|
1273
|
-
* @min 1
|
|
1274
|
-
* @max 50
|
|
1275
|
-
*/
|
|
1276
|
-
limit?: number | null;
|
|
1277
|
-
/** Number of orders to skip in the current sort order. */
|
|
1278
|
-
offset?: number | null;
|
|
1279
|
-
/**
|
|
1280
|
-
* Sort order.
|
|
1281
|
-
*
|
|
1282
|
-
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
1283
|
-
*
|
|
1284
|
-
* Default: `DESC`.
|
|
1285
|
-
*/
|
|
1286
|
-
sorting?: Sorting;
|
|
1287
|
-
/**
|
|
1288
|
-
* Predefined set of fields to return.
|
|
1289
|
-
*
|
|
1290
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1291
|
-
*/
|
|
1292
|
-
fieldSet?: SetWithLiterals;
|
|
1293
|
-
}
|
|
1294
|
-
interface ListOrdersResponse {
|
|
1295
|
-
/** List of orders. */
|
|
1296
|
-
orders?: Order[];
|
|
1297
|
-
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1298
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1299
|
-
}
|
|
1300
|
-
interface OrdersQueryOrdersRequest {
|
|
1301
|
-
/** Query filter. */
|
|
1302
|
-
query?: QueryV2;
|
|
1303
|
-
}
|
|
1304
|
-
interface OrdersQueryOrdersResponse {
|
|
1305
|
-
/** Retrieved orders. */
|
|
1306
|
-
plans?: Order[];
|
|
1307
|
-
/** Paging-related data (number of orders returned, offset). */
|
|
1308
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1309
|
-
}
|
|
1310
|
-
interface GetOrdersStatsRequest {
|
|
1311
|
-
}
|
|
1312
|
-
interface GetOrdersStatsResponse {
|
|
1313
|
-
/** Total number of orders. */
|
|
1314
|
-
totalOrderCount?: number;
|
|
1315
|
-
/** Number of active orders. */
|
|
1316
|
-
activeOrderCount?: number;
|
|
1317
|
-
}
|
|
1318
|
-
interface GetAvailableOrderActionsRequest {
|
|
1319
|
-
/**
|
|
1320
|
-
* Order ID.
|
|
1321
|
-
* @format GUID
|
|
1322
|
-
*/
|
|
1323
|
-
id?: string;
|
|
1324
|
-
}
|
|
1325
|
-
interface GetAvailableOrderActionsResponse {
|
|
1326
|
-
/** Whether the order can be suspended. */
|
|
1327
|
-
suspendable?: boolean;
|
|
1328
|
-
/** If the order cannot be suspended, a reason is returned here. */
|
|
1329
|
-
notSuspendableReason?: ReasonNotSuspendableWithLiterals;
|
|
1330
|
-
/** Whether the order can be canceled by the buyer. */
|
|
1331
|
-
cancelableByBuyer?: boolean;
|
|
1332
|
-
}
|
|
1333
|
-
declare enum ReasonNotSuspendable {
|
|
1334
|
-
/** Undefined reason. */
|
|
1335
|
-
UNDEFINED = "UNDEFINED",
|
|
1336
|
-
/** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
|
|
1337
|
-
PENDING = "PENDING",
|
|
1338
|
-
/** Trial orders can't be suspended. */
|
|
1339
|
-
TRIAL = "TRIAL",
|
|
1340
|
-
/** Canceled orders can't be suspended. */
|
|
1341
|
-
CANCELED = "CANCELED",
|
|
1342
|
-
/** Ended orders can't be suspended. */
|
|
1343
|
-
ENDED = "ENDED",
|
|
1344
|
-
/** Paid for orders with future start dates can't be suspended. */
|
|
1345
|
-
NOT_STARTED = "NOT_STARTED",
|
|
1346
|
-
/** Order is already suspended. */
|
|
1347
|
-
ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
|
|
1348
|
-
/** Orders based on recurring payments using older stripe versions can't be suspended. */
|
|
1349
|
-
OLD_STRIPE = "OLD_STRIPE"
|
|
1350
|
-
}
|
|
1351
|
-
/** @enumType */
|
|
1352
|
-
type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
|
|
1353
|
-
interface PostponeEndDateRequest {
|
|
1305
|
+
interface CreateExternalOrderRequest {
|
|
1354
1306
|
/**
|
|
1355
|
-
*
|
|
1307
|
+
* Plan ID.
|
|
1356
1308
|
* @format GUID
|
|
1357
1309
|
*/
|
|
1358
|
-
|
|
1310
|
+
planId?: string;
|
|
1359
1311
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
*
|
|
1362
|
-
* Must be later than the current end date and time.
|
|
1312
|
+
* Form submission id that was submitted together with the order
|
|
1313
|
+
* @format GUID
|
|
1363
1314
|
*/
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1366
|
-
interface PostponeEndDateResponse {
|
|
1315
|
+
submissionId?: string | null;
|
|
1367
1316
|
}
|
|
1368
|
-
interface
|
|
1369
|
-
/**
|
|
1317
|
+
interface CreateExternalOrderResponse {
|
|
1318
|
+
/** Created order */
|
|
1370
1319
|
order?: Order;
|
|
1371
1320
|
}
|
|
1372
|
-
interface
|
|
1321
|
+
interface GetOnlineOrderPreviewRequest {
|
|
1373
1322
|
/**
|
|
1374
|
-
*
|
|
1323
|
+
* Plan ID.
|
|
1375
1324
|
* @format GUID
|
|
1376
1325
|
*/
|
|
1377
|
-
|
|
1378
|
-
/**
|
|
1379
|
-
|
|
1326
|
+
planId: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* Start date and time for the plan of the order preview in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1329
|
+
*
|
|
1330
|
+
* Default: Current date and time.
|
|
1331
|
+
*/
|
|
1332
|
+
startDate?: Date | null;
|
|
1333
|
+
/**
|
|
1334
|
+
* Coupon code to apply.
|
|
1335
|
+
* @minLength 1
|
|
1336
|
+
* @maxLength 20
|
|
1337
|
+
*/
|
|
1338
|
+
couponCode?: string | null;
|
|
1380
1339
|
}
|
|
1381
|
-
interface
|
|
1340
|
+
interface GetOnlineOrderPreviewResponse {
|
|
1341
|
+
/** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
|
|
1342
|
+
order?: Order;
|
|
1343
|
+
/** Whether the member has already reached purchase limit for the order's plan. */
|
|
1344
|
+
purchaseLimitExceeded?: boolean;
|
|
1382
1345
|
}
|
|
1383
|
-
interface
|
|
1346
|
+
interface GetGuestOnlineOrderPreviewRequest {
|
|
1384
1347
|
/**
|
|
1385
|
-
*
|
|
1348
|
+
* Plan ID.
|
|
1386
1349
|
* @format GUID
|
|
1387
1350
|
*/
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1351
|
+
planId?: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* Start date for the ordered plan.
|
|
1354
|
+
*
|
|
1355
|
+
* Default: Current date
|
|
1356
|
+
*/
|
|
1357
|
+
startDate?: Date | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* Coupon code to apply.
|
|
1360
|
+
* @minLength 1
|
|
1361
|
+
* @maxLength 20
|
|
1362
|
+
*/
|
|
1363
|
+
couponCode?: string | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* Email for checkout
|
|
1366
|
+
* @format EMAIL
|
|
1367
|
+
*/
|
|
1368
|
+
email?: string;
|
|
1391
1369
|
}
|
|
1392
|
-
interface
|
|
1393
|
-
/**
|
|
1370
|
+
interface GetGuestOnlineOrderPreviewResponse {
|
|
1371
|
+
/** Will be missing if limit is exceeded */
|
|
1394
1372
|
order?: Order;
|
|
1373
|
+
/**
|
|
1374
|
+
* Whether the purchase limit has already been reached for this plan by this email.
|
|
1375
|
+
* Always false for plans without purchase limits.
|
|
1376
|
+
*/
|
|
1377
|
+
purchaseLimitExceeded?: boolean;
|
|
1395
1378
|
}
|
|
1396
|
-
interface
|
|
1379
|
+
interface GetOfflineOrderPreviewRequest {
|
|
1397
1380
|
/**
|
|
1398
|
-
*
|
|
1381
|
+
* ID of the plan of the previewed order, from the Plans API.
|
|
1399
1382
|
* @format GUID
|
|
1400
1383
|
*/
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1384
|
+
planId: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* Member ID of the buyer the previewed order is for, from the Members API.
|
|
1387
|
+
* @format GUID
|
|
1388
|
+
*/
|
|
1389
|
+
memberId: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1392
|
+
*
|
|
1393
|
+
* Default: Current date and time.
|
|
1394
|
+
*/
|
|
1395
|
+
startDate?: Date | null;
|
|
1396
|
+
/**
|
|
1397
|
+
* Coupon code to apply, from the Coupons API.
|
|
1398
|
+
* @minLength 1
|
|
1399
|
+
* @maxLength 20
|
|
1400
|
+
*/
|
|
1401
|
+
couponCode?: string | null;
|
|
1404
1402
|
}
|
|
1405
|
-
interface
|
|
1406
|
-
/**
|
|
1403
|
+
interface GetOfflineOrderPreviewResponse {
|
|
1404
|
+
/** The previewed order, as if the plan had been ordered. */
|
|
1407
1405
|
order?: Order;
|
|
1406
|
+
/**
|
|
1407
|
+
* Whether this previewed order would exceed the permitted amount of purchases available
|
|
1408
|
+
* for this plan for this buyer.
|
|
1409
|
+
*
|
|
1410
|
+
* Always `false` for plans that do not have purchase limits.
|
|
1411
|
+
*/
|
|
1412
|
+
purchaseLimitExceeded?: boolean;
|
|
1408
1413
|
}
|
|
1409
|
-
interface
|
|
1414
|
+
interface GetPricePreviewRequest {
|
|
1410
1415
|
/**
|
|
1411
|
-
*
|
|
1416
|
+
* ID of plan to preview.
|
|
1412
1417
|
* @format GUID
|
|
1413
|
-
* @minSize 1
|
|
1414
|
-
* @maxSize 100
|
|
1415
1418
|
*/
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
/** Bulk action metadata. */
|
|
1424
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
1419
|
+
planId: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Coupon code to apply, from the Coupons API.
|
|
1422
|
+
* @minLength 1
|
|
1423
|
+
* @maxLength 20
|
|
1424
|
+
*/
|
|
1425
|
+
couponCode?: string | null;
|
|
1425
1426
|
}
|
|
1426
|
-
interface
|
|
1427
|
-
/**
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1427
|
+
interface GetPricePreviewResponse {
|
|
1428
|
+
/**
|
|
1429
|
+
* __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1430
|
+
* @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1431
|
+
* @replacedBy prices
|
|
1432
|
+
* @targetRemovalDate 2022-10-01
|
|
1433
|
+
*/
|
|
1434
|
+
price?: PriceDetails;
|
|
1435
|
+
/** Pricing details. */
|
|
1436
|
+
prices?: SpannedPrice[];
|
|
1431
1437
|
}
|
|
1432
|
-
interface
|
|
1433
|
-
/**
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
error?: ApplicationError;
|
|
1438
|
+
interface ChangeStartDateRequest {
|
|
1439
|
+
/**
|
|
1440
|
+
* Draft order ID.
|
|
1441
|
+
* @format GUID
|
|
1442
|
+
*/
|
|
1443
|
+
orderId?: string;
|
|
1444
|
+
/** New valid from date (timestamp). */
|
|
1445
|
+
startDate?: Date | null;
|
|
1441
1446
|
}
|
|
1442
|
-
interface
|
|
1443
|
-
/**
|
|
1444
|
-
|
|
1445
|
-
/** Description of the error. */
|
|
1446
|
-
description?: string;
|
|
1447
|
-
/** Data related to the error. */
|
|
1448
|
-
data?: Record<string, any> | null;
|
|
1447
|
+
interface ChangeStartDateResponse {
|
|
1448
|
+
/** Updated draft order. */
|
|
1449
|
+
order?: Order;
|
|
1449
1450
|
}
|
|
1450
|
-
interface
|
|
1451
|
-
/**
|
|
1452
|
-
|
|
1453
|
-
/** Number of items that couldn't be processed. */
|
|
1454
|
-
totalFailures?: number;
|
|
1455
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1456
|
-
undetailedFailures?: number;
|
|
1451
|
+
interface OrderStartDateChanged {
|
|
1452
|
+
/** Order whose `startDate` changed. */
|
|
1453
|
+
order?: Order;
|
|
1457
1454
|
}
|
|
1458
|
-
interface
|
|
1455
|
+
interface ApplyCouponRequest {
|
|
1459
1456
|
/**
|
|
1460
|
-
*
|
|
1457
|
+
* Draft order ID.
|
|
1461
1458
|
* @format GUID
|
|
1462
1459
|
*/
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1460
|
+
orderId?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Coupon code to apply.
|
|
1463
|
+
* @minLength 1
|
|
1464
|
+
* @maxLength 20
|
|
1465
|
+
*/
|
|
1466
|
+
couponCode?: string;
|
|
1466
1467
|
}
|
|
1467
|
-
interface
|
|
1468
|
-
/**
|
|
1468
|
+
interface ApplyCouponResponse {
|
|
1469
|
+
/** Order with applied coupon and recalculated tax. */
|
|
1469
1470
|
order?: Order;
|
|
1470
1471
|
}
|
|
1471
|
-
interface
|
|
1472
|
+
interface SetSubmissionRequest {
|
|
1472
1473
|
/**
|
|
1473
|
-
*
|
|
1474
|
+
* Order ID.
|
|
1474
1475
|
* @format GUID
|
|
1475
|
-
* @minSize 1
|
|
1476
|
-
* @maxSize 100
|
|
1477
1476
|
*/
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
|
|
1477
|
+
orderId?: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Submission ID.
|
|
1480
|
+
* @format GUID
|
|
1481
|
+
*/
|
|
1482
|
+
submissionId?: string;
|
|
1481
1483
|
}
|
|
1482
|
-
interface
|
|
1483
|
-
/**
|
|
1484
|
-
|
|
1485
|
-
/** Bulk action metadata. */
|
|
1486
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
1484
|
+
interface SetSubmissionResponse {
|
|
1485
|
+
/** Order with submission id */
|
|
1486
|
+
order?: Order;
|
|
1487
1487
|
}
|
|
1488
1488
|
/** @docsIgnore */
|
|
1489
1489
|
type CreateOnlineOrderApplicationErrors = {
|
|
@@ -1792,18 +1792,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1792
1792
|
__responseType: Q;
|
|
1793
1793
|
__originalResponseType: R;
|
|
1794
1794
|
};
|
|
1795
|
-
declare function memberGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1796
|
-
id: string;
|
|
1797
|
-
}, MemberGetOrderRequest$1, MemberGetOrderRequest, MemberGetOrderResponse$1, MemberGetOrderResponse>;
|
|
1798
|
-
declare function memberListOrders(): __PublicMethodMetaInfo<'GET', {}, MemberListOrdersRequest$1, MemberListOrdersRequest, MemberListOrdersResponse$1, MemberListOrdersResponse>;
|
|
1799
|
-
declare function requestCancellation(): __PublicMethodMetaInfo<'POST', {
|
|
1800
|
-
id: string;
|
|
1801
|
-
}, RequestCancellationRequest$1, RequestCancellationRequest, RequestCancellationResponse$1, RequestCancellationResponse>;
|
|
1802
|
-
declare function createOnlineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOnlineOrderRequest$1, CreateOnlineOrderRequest, CreateOnlineOrderResponse$1, CreateOnlineOrderResponse>;
|
|
1803
|
-
declare function createOfflineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOfflineOrderRequest$1, CreateOfflineOrderRequest, CreateOfflineOrderResponse$1, CreateOfflineOrderResponse>;
|
|
1804
|
-
declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse$1, GetOnlineOrderPreviewResponse>;
|
|
1805
|
-
declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
|
|
1806
|
-
declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
|
|
1807
1795
|
declare function managementGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1808
1796
|
id: string;
|
|
1809
1797
|
}, GetOrderRequest$1, GetOrderRequest, GetOrderResponse$1, GetOrderResponse>;
|
|
@@ -1823,5 +1811,17 @@ declare function pauseOrder(): __PublicMethodMetaInfo<'POST', {
|
|
|
1823
1811
|
declare function resumeOrder(): __PublicMethodMetaInfo<'POST', {
|
|
1824
1812
|
id: string;
|
|
1825
1813
|
}, ResumeOrderRequest$1, ResumeOrderRequest, ResumeOrderResponse$1, ResumeOrderResponse>;
|
|
1814
|
+
declare function memberGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1815
|
+
id: string;
|
|
1816
|
+
}, MemberGetOrderRequest$1, MemberGetOrderRequest, MemberGetOrderResponse$1, MemberGetOrderResponse>;
|
|
1817
|
+
declare function memberListOrders(): __PublicMethodMetaInfo<'GET', {}, MemberListOrdersRequest$1, MemberListOrdersRequest, MemberListOrdersResponse$1, MemberListOrdersResponse>;
|
|
1818
|
+
declare function requestCancellation(): __PublicMethodMetaInfo<'POST', {
|
|
1819
|
+
id: string;
|
|
1820
|
+
}, RequestCancellationRequest$1, RequestCancellationRequest, RequestCancellationResponse$1, RequestCancellationResponse>;
|
|
1821
|
+
declare function createOnlineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOnlineOrderRequest$1, CreateOnlineOrderRequest, CreateOnlineOrderResponse$1, CreateOnlineOrderResponse>;
|
|
1822
|
+
declare function createOfflineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOfflineOrderRequest$1, CreateOfflineOrderRequest, CreateOfflineOrderResponse$1, CreateOfflineOrderResponse>;
|
|
1823
|
+
declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse$1, GetOnlineOrderPreviewResponse>;
|
|
1824
|
+
declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
|
|
1825
|
+
declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
|
|
1826
1826
|
|
|
1827
1827
|
export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type ApplyCouponRequest as ApplyCouponRequestOriginal, type ApplyCouponResponse as ApplyCouponResponseOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkOrderResult as BulkOrderResultOriginal, type BulkPauseOrderRequest as BulkPauseOrderRequestOriginal, type BulkPauseOrderResponse as BulkPauseOrderResponseOriginal, type BulkResumeOrderRequest as BulkResumeOrderRequestOriginal, type BulkResumeOrderResponse as BulkResumeOrderResponseOriginal, type Buyer as BuyerOriginal, type CancelOrderRequest as CancelOrderRequestOriginal, type CancelOrderResponse as CancelOrderResponseOriginal, CancellationCause as CancellationCauseOriginal, type CancellationCauseWithLiterals as CancellationCauseWithLiteralsOriginal, CancellationEffectiveAt as CancellationEffectiveAtOriginal, type CancellationEffectiveAtWithLiterals as CancellationEffectiveAtWithLiteralsOriginal, type Cancellation as CancellationOriginal, type Captcha as CaptchaOriginal, type ChangeStartDateRequest as ChangeStartDateRequestOriginal, type ChangeStartDateResponse as ChangeStartDateResponseOriginal, type Coupon as CouponOriginal, type CouponsError as CouponsErrorOriginal, type CreateExternalOrderRequest as CreateExternalOrderRequestOriginal, type CreateExternalOrderResponse as CreateExternalOrderResponseOriginal, type CreateGuestOnlineOrderRequest as CreateGuestOnlineOrderRequestOriginal, type CreateGuestOnlineOrderResponse as CreateGuestOnlineOrderResponseOriginal, type CreateOfflineOrderApplicationErrors as CreateOfflineOrderApplicationErrorsOriginal, type CreateOfflineOrderRequest as CreateOfflineOrderRequestOriginal, type CreateOfflineOrderResponse as CreateOfflineOrderResponseOriginal, type CreateOfflineOrderValidationErrors as CreateOfflineOrderValidationErrorsOriginal, type CreateOnlineOrderApplicationErrors as CreateOnlineOrderApplicationErrorsOriginal, type CreateOnlineOrderRequest as CreateOnlineOrderRequestOriginal, type CreateOnlineOrderResponse as CreateOnlineOrderResponseOriginal, type CreateOnlineOrderValidationErrors as CreateOnlineOrderValidationErrorsOriginal, type CurrentCycle as CurrentCycleOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Fee as FeeOriginal, type FormData as FormDataOriginal, type GetAvailableOrderActionsRequest as GetAvailableOrderActionsRequestOriginal, type GetAvailableOrderActionsResponse as GetAvailableOrderActionsResponseOriginal, type GetGuestOnlineOrderPreviewRequest as GetGuestOnlineOrderPreviewRequestOriginal, type GetGuestOnlineOrderPreviewResponse as GetGuestOnlineOrderPreviewResponseOriginal, type GetOfflineOrderPreviewApplicationErrors as GetOfflineOrderPreviewApplicationErrorsOriginal, type GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequestOriginal, type GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponseOriginal, type GetOfflineOrderPreviewValidationErrors as GetOfflineOrderPreviewValidationErrorsOriginal, type GetOnlineOrderPreviewApplicationErrors as GetOnlineOrderPreviewApplicationErrorsOriginal, type GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequestOriginal, type GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponseOriginal, type GetOnlineOrderPreviewValidationErrors as GetOnlineOrderPreviewValidationErrorsOriginal, type GetOrderRequest as GetOrderRequestOriginal, type GetOrderResponse as GetOrderResponseOriginal, type GetOrdersStatsRequest as GetOrdersStatsRequestOriginal, type GetOrdersStatsResponse as GetOrdersStatsResponseOriginal, type GetPricePreviewApplicationErrors as GetPricePreviewApplicationErrorsOriginal, type GetPricePreviewRequest as GetPricePreviewRequestOriginal, type GetPricePreviewResponse as GetPricePreviewResponseOriginal, type Guest as GuestOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListOrdersRequest as ListOrdersRequestOriginal, type ListOrdersResponse as ListOrdersResponseOriginal, type MarkAsPaidRequest as MarkAsPaidRequestOriginal, type MarkAsPaidResponse as MarkAsPaidResponseOriginal, type MemberGetOrderRequest as MemberGetOrderRequestOriginal, type MemberGetOrderResponse as MemberGetOrderResponseOriginal, type MemberListOrdersRequest as MemberListOrdersRequestOriginal, type MemberListOrdersResponse as MemberListOrdersResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OnBehalf as OnBehalfOriginal, type OrderAutoRenewCanceled as OrderAutoRenewCanceledOriginal, type OrderCanceled as OrderCanceledOriginal, type OrderCycle as OrderCycleOriginal, type OrderCycleStarted as OrderCycleStartedOriginal, type OrderEndDatePostponed as OrderEndDatePostponedOriginal, type OrderEnded as OrderEndedOriginal, type OrderMarkedAsPaid as OrderMarkedAsPaidOriginal, OrderMethod as OrderMethodOriginal, type OrderMethodWithLiterals as OrderMethodWithLiteralsOriginal, type Order as OrderOriginal, type OrderPaused as OrderPausedOriginal, type OrderPurchased as OrderPurchasedOriginal, type OrderResumed as OrderResumedOriginal, type OrderStartDateChanged as OrderStartDateChangedOriginal, type OrderStarted as OrderStartedOriginal, OrderStatus as OrderStatusOriginal, type OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal, OrderType as OrderTypeOriginal, type OrderTypeWithLiterals as OrderTypeWithLiteralsOriginal, type OrdersQueryOrdersRequest as OrdersQueryOrdersRequestOriginal, type OrdersQueryOrdersResponse as OrdersQueryOrdersResponseOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PauseOrderRequest as PauseOrderRequestOriginal, type PauseOrderResponse as PauseOrderResponseOriginal, type PausePeriod as PausePeriodOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, PeriodUnit as PeriodUnitOriginal, type PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal, type PostponeEndDateRequest as PostponeEndDateRequestOriginal, type PostponeEndDateResponse as PostponeEndDateResponseOriginal, type PriceDetails as PriceDetailsOriginal, type PriceDetailsPricingModelOneOf as PriceDetailsPricingModelOneOfOriginal, type PriceDuration as PriceDurationOriginal, type Price as PriceOriginal, type PricingDetails as PricingDetailsOriginal, type PricingDetailsPricingModelOneOf as PricingDetailsPricingModelOneOfOriginal, type QueryOrdersRequest as QueryOrdersRequestOriginal, type QueryOrdersResponse as QueryOrdersResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, ReasonNotSuspendable as ReasonNotSuspendableOriginal, type ReasonNotSuspendableWithLiterals as ReasonNotSuspendableWithLiteralsOriginal, type Recurrence as RecurrenceOriginal, type RequestCancellationRequest as RequestCancellationRequestOriginal, type RequestCancellationResponse as RequestCancellationResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ResumeOrderRequest as ResumeOrderRequestOriginal, type ResumeOrderResponse as ResumeOrderResponseOriginal, Set as SetOriginal, type SetSubmissionRequest as SetSubmissionRequestOriginal, type SetSubmissionResponse as SetSubmissionResponseOriginal, type SetWithLiterals as SetWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpannedPrice as SpannedPriceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type Tax as TaxOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, cancelOrder, createOfflineOrder, createOnlineOrder, getOfflineOrderPreview, getOnlineOrderPreview, getPricePreview, managementGetOrder, managementListOrders, markAsPaid, memberGetOrder, memberListOrders, pauseOrder, postponeEndDate, requestCancellation, resumeOrder };
|