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