@wix/auto_sdk_pricing-plans_orders 1.0.95 → 1.0.97
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 +711 -711
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +803 -799
- package/build/cjs/index.typings.js +577 -577
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +461 -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 +711 -711
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +803 -799
- package/build/es/index.typings.mjs +577 -577
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +461 -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 +711 -711
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +803 -799
- package/build/internal/cjs/index.typings.js +577 -577
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +461 -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 +711 -711
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +803 -799
- package/build/internal/es/index.typings.mjs +577 -577
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +461 -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 { 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, 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 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -637,35 +637,7 @@ interface ActionEvent {
|
|
|
637
637
|
}
|
|
638
638
|
interface Empty {
|
|
639
639
|
}
|
|
640
|
-
interface
|
|
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 {
|
|
640
|
+
interface MemberGetOrderRequest {
|
|
669
641
|
/**
|
|
670
642
|
* Order ID.
|
|
671
643
|
* @format GUID
|
|
@@ -688,44 +660,31 @@ declare enum Set {
|
|
|
688
660
|
}
|
|
689
661
|
/** @enumType */
|
|
690
662
|
type SetWithLiterals = Set | 'UNKNOWN_SET' | 'BASIC' | 'FULL';
|
|
691
|
-
interface
|
|
692
|
-
/**
|
|
663
|
+
interface MemberGetOrderResponse {
|
|
664
|
+
/** Requested order. */
|
|
693
665
|
order?: Order;
|
|
694
666
|
}
|
|
695
|
-
interface
|
|
696
|
-
/**
|
|
697
|
-
* Filter by a buyer's member ID, from the Members API.
|
|
698
|
-
* @format GUID
|
|
699
|
-
*/
|
|
700
|
-
buyerIds?: string[];
|
|
667
|
+
interface MemberListOrdersRequest {
|
|
701
668
|
/**
|
|
702
|
-
* Filter by plan IDs
|
|
669
|
+
* Filter by plan IDs.
|
|
703
670
|
* @format GUID
|
|
704
671
|
*/
|
|
705
672
|
planIds?: string[];
|
|
706
|
-
/** Filter
|
|
673
|
+
/** Filter for orders where auto renewal was canceled. */
|
|
707
674
|
autoRenewCanceled?: boolean | null;
|
|
708
675
|
/** Filter by order status. */
|
|
709
676
|
orderStatuses?: OrderStatusWithLiterals[];
|
|
710
677
|
/** Filter by payment status. */
|
|
711
678
|
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
712
679
|
/**
|
|
713
|
-
*
|
|
714
|
-
*
|
|
715
|
-
* Max: `50`
|
|
680
|
+
* Limit the number of pricing plans returned. Default limit is 50.
|
|
716
681
|
* @min 1
|
|
717
682
|
* @max 50
|
|
718
683
|
*/
|
|
719
684
|
limit?: number | null;
|
|
720
|
-
/** Number of
|
|
685
|
+
/** Number of entries to offset. */
|
|
721
686
|
offset?: number | null;
|
|
722
|
-
/**
|
|
723
|
-
* Sort order.
|
|
724
|
-
*
|
|
725
|
-
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
726
|
-
*
|
|
727
|
-
* Default: `DESC`.
|
|
728
|
-
*/
|
|
687
|
+
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
729
688
|
sorting?: Sorting;
|
|
730
689
|
/**
|
|
731
690
|
* Predefined set of fields to return.
|
|
@@ -749,8 +708,8 @@ declare enum SortOrder {
|
|
|
749
708
|
}
|
|
750
709
|
/** @enumType */
|
|
751
710
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
752
|
-
interface
|
|
753
|
-
/**
|
|
711
|
+
interface MemberListOrdersResponse {
|
|
712
|
+
/** Requested orders. */
|
|
754
713
|
orders?: Order[];
|
|
755
714
|
/** Object containing paging-related data (number of orders returned, offset). */
|
|
756
715
|
pagingMetadata?: PagingMetadataV2;
|
|
@@ -779,7 +738,11 @@ interface Cursors {
|
|
|
779
738
|
*/
|
|
780
739
|
prev?: string | null;
|
|
781
740
|
}
|
|
782
|
-
|
|
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 {
|
|
783
746
|
/** Query filter. */
|
|
784
747
|
query?: QueryV2;
|
|
785
748
|
}
|
|
@@ -833,84 +796,22 @@ interface CursorPaging {
|
|
|
833
796
|
*/
|
|
834
797
|
cursor?: string | null;
|
|
835
798
|
}
|
|
836
|
-
interface
|
|
837
|
-
/**
|
|
799
|
+
interface QueryOrdersResponse {
|
|
800
|
+
/** Order data. */
|
|
838
801
|
plans?: Order[];
|
|
839
802
|
/** Paging-related data (number of orders returned, offset). */
|
|
840
803
|
pagingMetadata?: PagingMetadataV2;
|
|
841
804
|
}
|
|
842
|
-
interface
|
|
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 {
|
|
886
|
-
/**
|
|
887
|
-
* Order ID.
|
|
888
|
-
* @format GUID
|
|
889
|
-
*/
|
|
890
|
-
id: string;
|
|
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 {
|
|
805
|
+
interface RequestCancellationRequest {
|
|
905
806
|
/**
|
|
906
807
|
* Order ID.
|
|
907
808
|
* @format GUID
|
|
908
809
|
*/
|
|
909
810
|
id: string;
|
|
910
|
-
/**
|
|
811
|
+
/** Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately. */
|
|
911
812
|
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
912
813
|
}
|
|
913
|
-
interface
|
|
814
|
+
interface RequestCancellationResponse {
|
|
914
815
|
}
|
|
915
816
|
/**
|
|
916
817
|
* Emitted when an order is canceled immediately or when cycle ends for an order with canceled auto renewal
|
|
@@ -921,111 +822,6 @@ interface OrderCanceled {
|
|
|
921
822
|
/** Canceled order. */
|
|
922
823
|
order?: Order;
|
|
923
824
|
}
|
|
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
|
-
}
|
|
1029
825
|
interface MessageEnvelope {
|
|
1030
826
|
/**
|
|
1031
827
|
* App instance ID.
|
|
@@ -1041,6 +837,8 @@ interface MessageEnvelope {
|
|
|
1041
837
|
identity?: IdentificationData;
|
|
1042
838
|
/** Stringify payload. */
|
|
1043
839
|
data?: string;
|
|
840
|
+
/** Details related to the account */
|
|
841
|
+
accountInfo?: AccountInfo;
|
|
1044
842
|
}
|
|
1045
843
|
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1046
844
|
/**
|
|
@@ -1115,93 +913,16 @@ interface AccountInfo {
|
|
|
1115
913
|
*/
|
|
1116
914
|
siteId?: string | null;
|
|
1117
915
|
}
|
|
1118
|
-
interface
|
|
916
|
+
interface CreateOnlineOrderRequest {
|
|
1119
917
|
/**
|
|
1120
|
-
*
|
|
918
|
+
* Plan ID.
|
|
1121
919
|
* @format GUID
|
|
1122
920
|
*/
|
|
1123
|
-
|
|
921
|
+
planId: string;
|
|
1124
922
|
/**
|
|
1125
|
-
*
|
|
923
|
+
* Start date and time for the plan of the online order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1126
924
|
*
|
|
1127
|
-
* Default:
|
|
1128
|
-
*/
|
|
1129
|
-
fieldSet?: SetWithLiterals;
|
|
1130
|
-
}
|
|
1131
|
-
interface MemberGetOrderResponse {
|
|
1132
|
-
/** Requested order. */
|
|
1133
|
-
order?: Order;
|
|
1134
|
-
}
|
|
1135
|
-
interface MemberListOrdersRequest {
|
|
1136
|
-
/**
|
|
1137
|
-
* Filter by plan IDs.
|
|
1138
|
-
* @format GUID
|
|
1139
|
-
*/
|
|
1140
|
-
planIds?: string[];
|
|
1141
|
-
/** Filter for orders where auto renewal was canceled. */
|
|
1142
|
-
autoRenewCanceled?: boolean | null;
|
|
1143
|
-
/** Filter by order status. */
|
|
1144
|
-
orderStatuses?: OrderStatusWithLiterals[];
|
|
1145
|
-
/** Filter by payment status. */
|
|
1146
|
-
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1147
|
-
/**
|
|
1148
|
-
* Limit the number of pricing plans returned. Default limit is 50.
|
|
1149
|
-
* @min 1
|
|
1150
|
-
* @max 50
|
|
1151
|
-
*/
|
|
1152
|
-
limit?: number | null;
|
|
1153
|
-
/** Number of entries to offset. */
|
|
1154
|
-
offset?: number | null;
|
|
1155
|
-
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
1156
|
-
sorting?: Sorting;
|
|
1157
|
-
/**
|
|
1158
|
-
* Predefined set of fields to return.
|
|
1159
|
-
*
|
|
1160
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1161
|
-
*/
|
|
1162
|
-
fieldSet?: SetWithLiterals;
|
|
1163
|
-
}
|
|
1164
|
-
interface MemberListOrdersResponse {
|
|
1165
|
-
/** Requested orders. */
|
|
1166
|
-
orders?: Order[];
|
|
1167
|
-
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1168
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1169
|
-
}
|
|
1170
|
-
/**
|
|
1171
|
-
* TODO: Write orders filter and sort docs page
|
|
1172
|
-
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
1173
|
-
*/
|
|
1174
|
-
interface QueryOrdersRequest {
|
|
1175
|
-
/** Query filter. */
|
|
1176
|
-
query?: QueryV2;
|
|
1177
|
-
}
|
|
1178
|
-
interface QueryOrdersResponse {
|
|
1179
|
-
/** Order data. */
|
|
1180
|
-
plans?: Order[];
|
|
1181
|
-
/** Paging-related data (number of orders returned, offset). */
|
|
1182
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1183
|
-
}
|
|
1184
|
-
interface RequestCancellationRequest {
|
|
1185
|
-
/**
|
|
1186
|
-
* Order ID.
|
|
1187
|
-
* @format GUID
|
|
1188
|
-
*/
|
|
1189
|
-
id: string;
|
|
1190
|
-
/** Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately. */
|
|
1191
|
-
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1192
|
-
}
|
|
1193
|
-
interface RequestCancellationResponse {
|
|
1194
|
-
}
|
|
1195
|
-
interface CreateOnlineOrderRequest {
|
|
1196
|
-
/**
|
|
1197
|
-
* Plan ID.
|
|
1198
|
-
* @format GUID
|
|
1199
|
-
*/
|
|
1200
|
-
planId: string;
|
|
1201
|
-
/**
|
|
1202
|
-
* Start date and time for the plan of the online order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1203
|
-
*
|
|
1204
|
-
* Default: Current date and time.
|
|
925
|
+
* Default: Current date and time.
|
|
1205
926
|
*/
|
|
1206
927
|
startDate?: Date | null;
|
|
1207
928
|
/**
|
|
@@ -1319,188 +1040,469 @@ interface CreateOfflineOrderResponse {
|
|
|
1319
1040
|
/** Order. */
|
|
1320
1041
|
order?: Order;
|
|
1321
1042
|
}
|
|
1322
|
-
interface CreateExternalOrderRequest {
|
|
1043
|
+
interface CreateExternalOrderRequest {
|
|
1044
|
+
/**
|
|
1045
|
+
* Plan ID.
|
|
1046
|
+
* @format GUID
|
|
1047
|
+
*/
|
|
1048
|
+
planId?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Form submission id that was submitted together with the order
|
|
1051
|
+
* @format GUID
|
|
1052
|
+
*/
|
|
1053
|
+
submissionId?: string | null;
|
|
1054
|
+
}
|
|
1055
|
+
interface CreateExternalOrderResponse {
|
|
1056
|
+
/** Created order */
|
|
1057
|
+
order?: Order;
|
|
1058
|
+
}
|
|
1059
|
+
interface GetOnlineOrderPreviewRequest {
|
|
1060
|
+
/**
|
|
1061
|
+
* Plan ID.
|
|
1062
|
+
* @format GUID
|
|
1063
|
+
*/
|
|
1064
|
+
planId: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Start date and time for the plan of the order preview in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1067
|
+
*
|
|
1068
|
+
* Default: Current date and time.
|
|
1069
|
+
*/
|
|
1070
|
+
startDate?: Date | null;
|
|
1071
|
+
/**
|
|
1072
|
+
* Coupon code to apply.
|
|
1073
|
+
* @minLength 1
|
|
1074
|
+
* @maxLength 20
|
|
1075
|
+
*/
|
|
1076
|
+
couponCode?: string | null;
|
|
1077
|
+
}
|
|
1078
|
+
interface GetOnlineOrderPreviewResponse {
|
|
1079
|
+
/** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
|
|
1080
|
+
order?: Order;
|
|
1081
|
+
/** Whether the member has already reached purchase limit for the order's plan. */
|
|
1082
|
+
purchaseLimitExceeded?: boolean;
|
|
1083
|
+
}
|
|
1084
|
+
interface GetGuestOnlineOrderPreviewRequest {
|
|
1085
|
+
/**
|
|
1086
|
+
* Plan ID.
|
|
1087
|
+
* @format GUID
|
|
1088
|
+
*/
|
|
1089
|
+
planId?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Start date for the ordered plan.
|
|
1092
|
+
*
|
|
1093
|
+
* Default: Current date
|
|
1094
|
+
*/
|
|
1095
|
+
startDate?: Date | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Coupon code to apply.
|
|
1098
|
+
* @minLength 1
|
|
1099
|
+
* @maxLength 20
|
|
1100
|
+
*/
|
|
1101
|
+
couponCode?: string | null;
|
|
1102
|
+
/**
|
|
1103
|
+
* Email for checkout
|
|
1104
|
+
* @format EMAIL
|
|
1105
|
+
*/
|
|
1106
|
+
email?: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface GetGuestOnlineOrderPreviewResponse {
|
|
1109
|
+
/** Will be missing if limit is exceeded */
|
|
1110
|
+
order?: Order;
|
|
1111
|
+
/**
|
|
1112
|
+
* Whether the purchase limit has already been reached for this plan by this email.
|
|
1113
|
+
* Always false for plans without purchase limits.
|
|
1114
|
+
*/
|
|
1115
|
+
purchaseLimitExceeded?: boolean;
|
|
1116
|
+
}
|
|
1117
|
+
interface GetOfflineOrderPreviewRequest {
|
|
1118
|
+
/**
|
|
1119
|
+
* ID of the plan of the previewed order, from the Plans API.
|
|
1120
|
+
* @format GUID
|
|
1121
|
+
*/
|
|
1122
|
+
planId: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Member ID of the buyer the previewed order is for, from the Members API.
|
|
1125
|
+
* @format GUID
|
|
1126
|
+
*/
|
|
1127
|
+
memberId: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1130
|
+
*
|
|
1131
|
+
* Default: Current date and time.
|
|
1132
|
+
*/
|
|
1133
|
+
startDate?: Date | null;
|
|
1134
|
+
/**
|
|
1135
|
+
* Coupon code to apply, from the Coupons API.
|
|
1136
|
+
* @minLength 1
|
|
1137
|
+
* @maxLength 20
|
|
1138
|
+
*/
|
|
1139
|
+
couponCode?: string | null;
|
|
1140
|
+
}
|
|
1141
|
+
interface GetOfflineOrderPreviewResponse {
|
|
1142
|
+
/** The previewed order, as if the plan had been ordered. */
|
|
1143
|
+
order?: Order;
|
|
1144
|
+
/**
|
|
1145
|
+
* Whether this previewed order would exceed the permitted amount of purchases available
|
|
1146
|
+
* for this plan for this buyer.
|
|
1147
|
+
*
|
|
1148
|
+
* Always `false` for plans that do not have purchase limits.
|
|
1149
|
+
*/
|
|
1150
|
+
purchaseLimitExceeded?: boolean;
|
|
1151
|
+
}
|
|
1152
|
+
interface GetPricePreviewRequest {
|
|
1153
|
+
/**
|
|
1154
|
+
* ID of plan to preview.
|
|
1155
|
+
* @format GUID
|
|
1156
|
+
*/
|
|
1157
|
+
planId: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* Coupon code to apply, from the Coupons API.
|
|
1160
|
+
* @minLength 1
|
|
1161
|
+
* @maxLength 20
|
|
1162
|
+
*/
|
|
1163
|
+
couponCode?: string | null;
|
|
1164
|
+
}
|
|
1165
|
+
interface GetPricePreviewResponse {
|
|
1166
|
+
/**
|
|
1167
|
+
* __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1168
|
+
* @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1169
|
+
* @replacedBy prices
|
|
1170
|
+
* @targetRemovalDate 2022-10-01
|
|
1171
|
+
*/
|
|
1172
|
+
price?: PriceDetails;
|
|
1173
|
+
/** Pricing details. */
|
|
1174
|
+
prices?: SpannedPrice[];
|
|
1175
|
+
}
|
|
1176
|
+
interface ChangeStartDateRequest {
|
|
1177
|
+
/**
|
|
1178
|
+
* Draft order ID.
|
|
1179
|
+
* @format GUID
|
|
1180
|
+
*/
|
|
1181
|
+
orderId?: string;
|
|
1182
|
+
/** New valid from date (timestamp). */
|
|
1183
|
+
startDate?: Date | null;
|
|
1184
|
+
}
|
|
1185
|
+
interface ChangeStartDateResponse {
|
|
1186
|
+
/** Updated draft order. */
|
|
1187
|
+
order?: Order;
|
|
1188
|
+
}
|
|
1189
|
+
interface OrderStartDateChanged {
|
|
1190
|
+
/** Order whose `startDate` changed. */
|
|
1191
|
+
order?: Order;
|
|
1192
|
+
}
|
|
1193
|
+
interface ApplyCouponRequest {
|
|
1194
|
+
/**
|
|
1195
|
+
* Draft order ID.
|
|
1196
|
+
* @format GUID
|
|
1197
|
+
*/
|
|
1198
|
+
orderId?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Coupon code to apply.
|
|
1201
|
+
* @minLength 1
|
|
1202
|
+
* @maxLength 20
|
|
1203
|
+
*/
|
|
1204
|
+
couponCode?: string;
|
|
1205
|
+
}
|
|
1206
|
+
interface ApplyCouponResponse {
|
|
1207
|
+
/** Order with applied coupon and recalculated tax. */
|
|
1208
|
+
order?: Order;
|
|
1209
|
+
}
|
|
1210
|
+
interface SetSubmissionRequest {
|
|
1211
|
+
/**
|
|
1212
|
+
* Order ID.
|
|
1213
|
+
* @format GUID
|
|
1214
|
+
*/
|
|
1215
|
+
orderId?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Submission ID.
|
|
1218
|
+
* @format GUID
|
|
1219
|
+
*/
|
|
1220
|
+
submissionId?: string;
|
|
1221
|
+
}
|
|
1222
|
+
interface SetSubmissionResponse {
|
|
1223
|
+
/** Order with submission id */
|
|
1224
|
+
order?: Order;
|
|
1225
|
+
}
|
|
1226
|
+
interface OrderPurchased {
|
|
1227
|
+
/** Order that was paid for. If a free or an offline order, the order that was created. */
|
|
1228
|
+
order?: Order;
|
|
1229
|
+
}
|
|
1230
|
+
interface OrderStarted {
|
|
1231
|
+
/** Order that reached its `startDate`. */
|
|
1232
|
+
order?: Order;
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* Triggered at the start of a new payment cycle for an existing order.
|
|
1236
|
+
*
|
|
1237
|
+
* This webhook does not trigger at the initial start of an offline order.
|
|
1238
|
+
*/
|
|
1239
|
+
interface OrderCycleStarted {
|
|
1240
|
+
/** Order whose new cycle started. */
|
|
1241
|
+
order?: Order;
|
|
1242
|
+
/** 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. */
|
|
1243
|
+
cycleNumber?: number;
|
|
1244
|
+
}
|
|
1245
|
+
/** Emitted when a recurring order is canceled for the next payment cycle */
|
|
1246
|
+
interface OrderAutoRenewCanceled {
|
|
1247
|
+
/** Order that is canceled, effective at the end of the current payment cycle. */
|
|
1248
|
+
order?: Order;
|
|
1249
|
+
}
|
|
1250
|
+
interface OrderEnded {
|
|
1251
|
+
/** Order that ended. */
|
|
1252
|
+
order?: Order;
|
|
1253
|
+
}
|
|
1254
|
+
interface GetOrderRequest {
|
|
1255
|
+
/**
|
|
1256
|
+
* Order ID.
|
|
1257
|
+
* @format GUID
|
|
1258
|
+
*/
|
|
1259
|
+
id: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Predefined set of fields to return.
|
|
1262
|
+
*
|
|
1263
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1264
|
+
*/
|
|
1265
|
+
fieldSet?: SetWithLiterals;
|
|
1266
|
+
}
|
|
1267
|
+
interface GetOrderResponse {
|
|
1268
|
+
/** Order. */
|
|
1269
|
+
order?: Order;
|
|
1270
|
+
}
|
|
1271
|
+
interface ListOrdersRequest {
|
|
1272
|
+
/**
|
|
1273
|
+
* Filter by a buyer's member ID, from the Members API.
|
|
1274
|
+
* @format GUID
|
|
1275
|
+
*/
|
|
1276
|
+
buyerIds?: string[];
|
|
1277
|
+
/**
|
|
1278
|
+
* Filter by plan IDs, from the Plans API.
|
|
1279
|
+
* @format GUID
|
|
1280
|
+
*/
|
|
1281
|
+
planIds?: string[];
|
|
1282
|
+
/** Filter by whether or not the auto-renewal of recurring orders was canceled. */
|
|
1283
|
+
autoRenewCanceled?: boolean | null;
|
|
1284
|
+
/** Filter by order status. */
|
|
1285
|
+
orderStatuses?: OrderStatusWithLiterals[];
|
|
1286
|
+
/** Filter by payment status. */
|
|
1287
|
+
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1288
|
+
/**
|
|
1289
|
+
* Number of orders to return. See Sorting and Paging for more information.
|
|
1290
|
+
*
|
|
1291
|
+
* Max: `50`
|
|
1292
|
+
* @min 1
|
|
1293
|
+
* @max 50
|
|
1294
|
+
*/
|
|
1295
|
+
limit?: number | null;
|
|
1296
|
+
/** Number of orders to skip in the current sort order. */
|
|
1297
|
+
offset?: number | null;
|
|
1298
|
+
/**
|
|
1299
|
+
* Sort order.
|
|
1300
|
+
*
|
|
1301
|
+
* Use `ASC` for ascending order or `DESC` for descending order.
|
|
1302
|
+
*
|
|
1303
|
+
* Default: `DESC`.
|
|
1304
|
+
*/
|
|
1305
|
+
sorting?: Sorting;
|
|
1306
|
+
/**
|
|
1307
|
+
* Predefined set of fields to return.
|
|
1308
|
+
*
|
|
1309
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1310
|
+
*/
|
|
1311
|
+
fieldSet?: SetWithLiterals;
|
|
1312
|
+
}
|
|
1313
|
+
interface ListOrdersResponse {
|
|
1314
|
+
/** List of orders. */
|
|
1315
|
+
orders?: Order[];
|
|
1316
|
+
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1317
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1318
|
+
}
|
|
1319
|
+
interface OrdersQueryOrdersRequest {
|
|
1320
|
+
/** Query filter. */
|
|
1321
|
+
query?: QueryV2;
|
|
1322
|
+
}
|
|
1323
|
+
interface OrdersQueryOrdersResponse {
|
|
1324
|
+
/** Retrieved orders. */
|
|
1325
|
+
plans?: Order[];
|
|
1326
|
+
/** Paging-related data (number of orders returned, offset). */
|
|
1327
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1328
|
+
}
|
|
1329
|
+
interface GetOrdersStatsRequest {
|
|
1330
|
+
}
|
|
1331
|
+
interface GetOrdersStatsResponse {
|
|
1332
|
+
/** Total number of orders. */
|
|
1333
|
+
totalOrderCount?: number;
|
|
1334
|
+
/** Number of active orders. */
|
|
1335
|
+
activeOrderCount?: number;
|
|
1336
|
+
}
|
|
1337
|
+
interface GetAvailableOrderActionsRequest {
|
|
1338
|
+
/**
|
|
1339
|
+
* Order ID.
|
|
1340
|
+
* @format GUID
|
|
1341
|
+
*/
|
|
1342
|
+
id?: string;
|
|
1343
|
+
}
|
|
1344
|
+
interface GetAvailableOrderActionsResponse {
|
|
1345
|
+
/** Whether the order can be suspended. */
|
|
1346
|
+
suspendable?: boolean;
|
|
1347
|
+
/** If the order cannot be suspended, a reason is returned here. */
|
|
1348
|
+
notSuspendableReason?: ReasonNotSuspendableWithLiterals;
|
|
1349
|
+
/** Whether the order can be canceled by the buyer. */
|
|
1350
|
+
cancelableByBuyer?: boolean;
|
|
1351
|
+
}
|
|
1352
|
+
declare enum ReasonNotSuspendable {
|
|
1353
|
+
/** Undefined reason. */
|
|
1354
|
+
UNDEFINED = "UNDEFINED",
|
|
1355
|
+
/** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
|
|
1356
|
+
PENDING = "PENDING",
|
|
1357
|
+
/** Trial orders can't be suspended. */
|
|
1358
|
+
TRIAL = "TRIAL",
|
|
1359
|
+
/** Canceled orders can't be suspended. */
|
|
1360
|
+
CANCELED = "CANCELED",
|
|
1361
|
+
/** Ended orders can't be suspended. */
|
|
1362
|
+
ENDED = "ENDED",
|
|
1363
|
+
/** Paid for orders with future start dates can't be suspended. */
|
|
1364
|
+
NOT_STARTED = "NOT_STARTED",
|
|
1365
|
+
/** Order is already suspended. */
|
|
1366
|
+
ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
|
|
1367
|
+
/** Orders based on recurring payments using older stripe versions can't be suspended. */
|
|
1368
|
+
OLD_STRIPE = "OLD_STRIPE"
|
|
1369
|
+
}
|
|
1370
|
+
/** @enumType */
|
|
1371
|
+
type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
|
|
1372
|
+
interface PostponeEndDateRequest {
|
|
1323
1373
|
/**
|
|
1324
|
-
*
|
|
1374
|
+
* Order ID.
|
|
1325
1375
|
* @format GUID
|
|
1326
1376
|
*/
|
|
1327
|
-
|
|
1377
|
+
id: string;
|
|
1328
1378
|
/**
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1379
|
+
* New end date and time.
|
|
1380
|
+
*
|
|
1381
|
+
* Must be later than the current end date and time.
|
|
1331
1382
|
*/
|
|
1332
|
-
|
|
1383
|
+
endDate: Date | null;
|
|
1333
1384
|
}
|
|
1334
|
-
interface
|
|
1335
|
-
|
|
1385
|
+
interface PostponeEndDateResponse {
|
|
1386
|
+
}
|
|
1387
|
+
interface OrderEndDatePostponed {
|
|
1388
|
+
/** Order whose `endDate` was postponed. */
|
|
1336
1389
|
order?: Order;
|
|
1337
1390
|
}
|
|
1338
|
-
interface
|
|
1391
|
+
interface CancelOrderRequest {
|
|
1339
1392
|
/**
|
|
1340
|
-
*
|
|
1393
|
+
* Order ID.
|
|
1341
1394
|
* @format GUID
|
|
1342
1395
|
*/
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
|
|
1346
|
-
*
|
|
1347
|
-
* Default: Current date and time.
|
|
1348
|
-
*/
|
|
1349
|
-
startDate?: Date | null;
|
|
1350
|
-
/**
|
|
1351
|
-
* Coupon code to apply.
|
|
1352
|
-
* @minLength 1
|
|
1353
|
-
* @maxLength 20
|
|
1354
|
-
*/
|
|
1355
|
-
couponCode?: string | null;
|
|
1396
|
+
id: string;
|
|
1397
|
+
/** __Required.__ When the order will be canceled. One-time orders can only be canceled `IMMEDIATELY`. */
|
|
1398
|
+
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1356
1399
|
}
|
|
1357
|
-
interface
|
|
1358
|
-
/** Order preview. This field is undefined if the member has already reached the purchase limit for the order's plan. */
|
|
1359
|
-
order?: Order;
|
|
1360
|
-
/** Whether the member has already reached purchase limit for the order's plan. */
|
|
1361
|
-
purchaseLimitExceeded?: boolean;
|
|
1400
|
+
interface CancelOrderResponse {
|
|
1362
1401
|
}
|
|
1363
|
-
interface
|
|
1402
|
+
interface MarkAsPaidRequest {
|
|
1364
1403
|
/**
|
|
1365
|
-
*
|
|
1404
|
+
* Order ID.
|
|
1366
1405
|
* @format GUID
|
|
1367
1406
|
*/
|
|
1368
|
-
|
|
1369
|
-
/**
|
|
1370
|
-
* Start date for the ordered plan.
|
|
1371
|
-
*
|
|
1372
|
-
* Default: Current date
|
|
1373
|
-
*/
|
|
1374
|
-
startDate?: Date | null;
|
|
1375
|
-
/**
|
|
1376
|
-
* Coupon code to apply.
|
|
1377
|
-
* @minLength 1
|
|
1378
|
-
* @maxLength 20
|
|
1379
|
-
*/
|
|
1380
|
-
couponCode?: string | null;
|
|
1381
|
-
/**
|
|
1382
|
-
* Email for checkout
|
|
1383
|
-
* @format EMAIL
|
|
1384
|
-
*/
|
|
1385
|
-
email?: string;
|
|
1407
|
+
id: string;
|
|
1386
1408
|
}
|
|
1387
|
-
interface
|
|
1388
|
-
|
|
1409
|
+
interface MarkAsPaidResponse {
|
|
1410
|
+
}
|
|
1411
|
+
interface OrderMarkedAsPaid {
|
|
1412
|
+
/** Order that was marked as paid. */
|
|
1389
1413
|
order?: Order;
|
|
1390
|
-
/**
|
|
1391
|
-
* Whether the purchase limit has already been reached for this plan by this email.
|
|
1392
|
-
* Always false for plans without purchase limits.
|
|
1393
|
-
*/
|
|
1394
|
-
purchaseLimitExceeded?: boolean;
|
|
1395
1414
|
}
|
|
1396
|
-
interface
|
|
1397
|
-
/**
|
|
1398
|
-
* ID of the plan of the previewed order, from the Plans API.
|
|
1399
|
-
* @format GUID
|
|
1400
|
-
*/
|
|
1401
|
-
planId: string;
|
|
1415
|
+
interface PauseOrderRequest {
|
|
1402
1416
|
/**
|
|
1403
|
-
*
|
|
1417
|
+
* Order ID.
|
|
1404
1418
|
* @format GUID
|
|
1405
1419
|
*/
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* Start date and time for plan of the previewed order in a `YYYY-MM-DDThh:mm[:ss][.sss]Z` format.
|
|
1409
|
-
*
|
|
1410
|
-
* Default: Current date and time.
|
|
1411
|
-
*/
|
|
1412
|
-
startDate?: Date | null;
|
|
1413
|
-
/**
|
|
1414
|
-
* Coupon code to apply, from the Coupons API.
|
|
1415
|
-
* @minLength 1
|
|
1416
|
-
* @maxLength 20
|
|
1417
|
-
*/
|
|
1418
|
-
couponCode?: string | null;
|
|
1420
|
+
id: string;
|
|
1419
1421
|
}
|
|
1420
|
-
interface
|
|
1421
|
-
|
|
1422
|
+
interface PauseOrderResponse {
|
|
1423
|
+
}
|
|
1424
|
+
interface OrderPaused {
|
|
1425
|
+
/** Paused order. */
|
|
1422
1426
|
order?: Order;
|
|
1423
|
-
/**
|
|
1424
|
-
* Whether this previewed order would exceed the permitted amount of purchases available
|
|
1425
|
-
* for this plan for this buyer.
|
|
1426
|
-
*
|
|
1427
|
-
* Always `false` for plans that do not have purchase limits.
|
|
1428
|
-
*/
|
|
1429
|
-
purchaseLimitExceeded?: boolean;
|
|
1430
1427
|
}
|
|
1431
|
-
interface
|
|
1428
|
+
interface BulkPauseOrderRequest {
|
|
1432
1429
|
/**
|
|
1433
|
-
*
|
|
1430
|
+
* List of Order IDs.
|
|
1434
1431
|
* @format GUID
|
|
1432
|
+
* @minSize 1
|
|
1433
|
+
* @maxSize 100
|
|
1435
1434
|
*/
|
|
1436
|
-
|
|
1437
|
-
/**
|
|
1438
|
-
|
|
1439
|
-
* @minLength 1
|
|
1440
|
-
* @maxLength 20
|
|
1441
|
-
*/
|
|
1442
|
-
couponCode?: string | null;
|
|
1443
|
-
}
|
|
1444
|
-
interface GetPricePreviewResponse {
|
|
1445
|
-
/**
|
|
1446
|
-
* __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1447
|
-
* @deprecated __Deprecated.__ Use `prices` instead. This property will be removed on September 30, 2022.
|
|
1448
|
-
* @replacedBy prices
|
|
1449
|
-
* @targetRemovalDate 2022-10-01
|
|
1450
|
-
*/
|
|
1451
|
-
price?: PriceDetails;
|
|
1452
|
-
/** Pricing details. */
|
|
1453
|
-
prices?: SpannedPrice[];
|
|
1435
|
+
ids?: string[];
|
|
1436
|
+
/** Set to true to return Order entity in response. */
|
|
1437
|
+
returnFullEntity?: boolean;
|
|
1454
1438
|
}
|
|
1455
|
-
interface
|
|
1456
|
-
/**
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
orderId?: string;
|
|
1461
|
-
/** New valid from date (timestamp). */
|
|
1462
|
-
startDate?: Date | null;
|
|
1439
|
+
interface BulkPauseOrderResponse {
|
|
1440
|
+
/** Orders that were paused. */
|
|
1441
|
+
results?: BulkOrderResult[];
|
|
1442
|
+
/** Bulk action metadata. */
|
|
1443
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1463
1444
|
}
|
|
1464
|
-
interface
|
|
1465
|
-
/**
|
|
1445
|
+
interface BulkOrderResult {
|
|
1446
|
+
/** Item metadata */
|
|
1447
|
+
itemMetadata?: ItemMetadata;
|
|
1448
|
+
/** The order. */
|
|
1466
1449
|
order?: Order;
|
|
1467
1450
|
}
|
|
1468
|
-
interface
|
|
1469
|
-
/**
|
|
1470
|
-
|
|
1451
|
+
interface ItemMetadata {
|
|
1452
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1453
|
+
id?: string | null;
|
|
1454
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1455
|
+
originalIndex?: number;
|
|
1456
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
1457
|
+
success?: boolean;
|
|
1458
|
+
/** Details about the error in case of failure. */
|
|
1459
|
+
error?: ApplicationError;
|
|
1471
1460
|
}
|
|
1472
|
-
interface
|
|
1473
|
-
/**
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
* Coupon code to apply.
|
|
1480
|
-
* @minLength 1
|
|
1481
|
-
* @maxLength 20
|
|
1482
|
-
*/
|
|
1483
|
-
couponCode?: string;
|
|
1461
|
+
interface ApplicationError {
|
|
1462
|
+
/** Error code. */
|
|
1463
|
+
code?: string;
|
|
1464
|
+
/** Description of the error. */
|
|
1465
|
+
description?: string;
|
|
1466
|
+
/** Data related to the error. */
|
|
1467
|
+
data?: Record<string, any> | null;
|
|
1484
1468
|
}
|
|
1485
|
-
interface
|
|
1486
|
-
/**
|
|
1487
|
-
|
|
1469
|
+
interface BulkActionMetadata {
|
|
1470
|
+
/** Number of items that were successfully processed. */
|
|
1471
|
+
totalSuccesses?: number;
|
|
1472
|
+
/** Number of items that couldn't be processed. */
|
|
1473
|
+
totalFailures?: number;
|
|
1474
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1475
|
+
undetailedFailures?: number;
|
|
1488
1476
|
}
|
|
1489
|
-
interface
|
|
1477
|
+
interface ResumeOrderRequest {
|
|
1490
1478
|
/**
|
|
1491
1479
|
* Order ID.
|
|
1492
1480
|
* @format GUID
|
|
1493
1481
|
*/
|
|
1494
|
-
|
|
1482
|
+
id: string;
|
|
1483
|
+
}
|
|
1484
|
+
interface ResumeOrderResponse {
|
|
1485
|
+
}
|
|
1486
|
+
interface OrderResumed {
|
|
1487
|
+
/** Resumed order. */
|
|
1488
|
+
order?: Order;
|
|
1489
|
+
}
|
|
1490
|
+
interface BulkResumeOrderRequest {
|
|
1495
1491
|
/**
|
|
1496
|
-
*
|
|
1492
|
+
* List of Order IDs.
|
|
1497
1493
|
* @format GUID
|
|
1494
|
+
* @minSize 1
|
|
1495
|
+
* @maxSize 100
|
|
1498
1496
|
*/
|
|
1499
|
-
|
|
1497
|
+
ids?: string[];
|
|
1498
|
+
/** Set to true to return Order entity in response. */
|
|
1499
|
+
returnFullEntity?: boolean;
|
|
1500
1500
|
}
|
|
1501
|
-
interface
|
|
1502
|
-
/**
|
|
1503
|
-
|
|
1501
|
+
interface BulkResumeOrderResponse {
|
|
1502
|
+
/** Orders that were resumed. */
|
|
1503
|
+
results?: BulkOrderResult[];
|
|
1504
|
+
/** Bulk action metadata. */
|
|
1505
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1504
1506
|
}
|
|
1505
1507
|
/** @docsIgnore */
|
|
1506
1508
|
type CreateOnlineOrderApplicationErrors = {
|
|
@@ -1809,6 +1811,18 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1809
1811
|
__responseType: Q;
|
|
1810
1812
|
__originalResponseType: R;
|
|
1811
1813
|
};
|
|
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>;
|
|
1812
1826
|
declare function managementGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1813
1827
|
id: string;
|
|
1814
1828
|
}, GetOrderRequest$1, GetOrderRequest, GetOrderResponse$1, GetOrderResponse>;
|
|
@@ -1828,17 +1842,5 @@ declare function pauseOrder(): __PublicMethodMetaInfo<'POST', {
|
|
|
1828
1842
|
declare function resumeOrder(): __PublicMethodMetaInfo<'POST', {
|
|
1829
1843
|
id: string;
|
|
1830
1844
|
}, ResumeOrderRequest$1, ResumeOrderRequest, ResumeOrderResponse$1, ResumeOrderResponse>;
|
|
1831
|
-
declare function memberGetOrder(): __PublicMethodMetaInfo<'GET', {
|
|
1832
|
-
id: string;
|
|
1833
|
-
}, MemberGetOrderRequest$1, MemberGetOrderRequest, MemberGetOrderResponse$1, MemberGetOrderResponse>;
|
|
1834
|
-
declare function memberListOrders(): __PublicMethodMetaInfo<'GET', {}, MemberListOrdersRequest$1, MemberListOrdersRequest, MemberListOrdersResponse$1, MemberListOrdersResponse>;
|
|
1835
|
-
declare function requestCancellation(): __PublicMethodMetaInfo<'POST', {
|
|
1836
|
-
id: string;
|
|
1837
|
-
}, RequestCancellationRequest$1, RequestCancellationRequest, RequestCancellationResponse$1, RequestCancellationResponse>;
|
|
1838
|
-
declare function createOnlineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOnlineOrderRequest$1, CreateOnlineOrderRequest, CreateOnlineOrderResponse$1, CreateOnlineOrderResponse>;
|
|
1839
|
-
declare function createOfflineOrder(): __PublicMethodMetaInfo<'POST', {}, CreateOfflineOrderRequest$1, CreateOfflineOrderRequest, CreateOfflineOrderResponse$1, CreateOfflineOrderResponse>;
|
|
1840
|
-
declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOnlineOrderPreviewRequest$1, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse$1, GetOnlineOrderPreviewResponse>;
|
|
1841
|
-
declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
|
|
1842
|
-
declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
|
|
1843
1845
|
|
|
1844
1846
|
export { type AccountInfo as AccountInfoOriginal, 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 };
|