@wix/auto_sdk_pricing-plans_orders 1.0.76 → 1.0.77
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/meta.d.ts +845 -1
- package/build/cjs/meta.js +118 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/meta.d.mts +845 -1
- package/build/es/meta.mjs +106 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/meta.d.ts +845 -1
- package/build/internal/cjs/meta.js +118 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/meta.d.mts +845 -1
- package/build/internal/es/meta.mjs +106 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/cjs/meta.d.ts
CHANGED
|
@@ -398,6 +398,19 @@ interface Price {
|
|
|
398
398
|
*/
|
|
399
399
|
proration?: string;
|
|
400
400
|
}
|
|
401
|
+
interface Fee {
|
|
402
|
+
/**
|
|
403
|
+
* Fee name
|
|
404
|
+
* @minLength 1
|
|
405
|
+
* @maxLength 40
|
|
406
|
+
*/
|
|
407
|
+
name?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Amount of fee to be charged
|
|
410
|
+
* @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }
|
|
411
|
+
*/
|
|
412
|
+
amount?: string;
|
|
413
|
+
}
|
|
401
414
|
declare enum OrderType {
|
|
402
415
|
/** Undefined order type. */
|
|
403
416
|
UNDEFINED = "UNDEFINED",
|
|
@@ -528,6 +541,19 @@ interface CurrentCycle {
|
|
|
528
541
|
/** End date and time for the current payment cycle. */
|
|
529
542
|
endedDate?: Date | null;
|
|
530
543
|
}
|
|
544
|
+
/** Order cycle start and end dates take into account free trial days and suspensions */
|
|
545
|
+
interface OrderCycle {
|
|
546
|
+
/**
|
|
547
|
+
* Index of this cycle in the order.
|
|
548
|
+
*
|
|
549
|
+
* `0` when order is in a free trial period. In all other cases, the index starts with `1`.
|
|
550
|
+
*/
|
|
551
|
+
index?: number;
|
|
552
|
+
/** Start date and time for this order cycle. */
|
|
553
|
+
startedDate?: Date | null;
|
|
554
|
+
/** End date and time for this order cycle. */
|
|
555
|
+
endedDate?: Date | null;
|
|
556
|
+
}
|
|
531
557
|
interface FormData {
|
|
532
558
|
/**
|
|
533
559
|
* ID of the order form ([REST](https://dev.wix.com/docs/rest/api-reference/wix-forms/form-submissions/introduction)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/submissions/introduction)) associated with the plan at checkout.
|
|
@@ -545,6 +571,100 @@ interface FormData {
|
|
|
545
571
|
*/
|
|
546
572
|
submissionData?: Record<string, any>;
|
|
547
573
|
}
|
|
574
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
575
|
+
createdEvent?: EntityCreatedEvent;
|
|
576
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
577
|
+
deletedEvent?: EntityDeletedEvent;
|
|
578
|
+
actionEvent?: ActionEvent;
|
|
579
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
580
|
+
id?: string;
|
|
581
|
+
/**
|
|
582
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
583
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
584
|
+
*/
|
|
585
|
+
entityFqdn?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
588
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
589
|
+
*/
|
|
590
|
+
slug?: string;
|
|
591
|
+
/** ID of the entity associated with the event. */
|
|
592
|
+
entityId?: string;
|
|
593
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
594
|
+
eventTime?: Date | null;
|
|
595
|
+
/**
|
|
596
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
597
|
+
* (for example, GDPR).
|
|
598
|
+
*/
|
|
599
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
600
|
+
/** If present, indicates the action that triggered the event. */
|
|
601
|
+
originatedFrom?: string | null;
|
|
602
|
+
/**
|
|
603
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
604
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
605
|
+
*/
|
|
606
|
+
entityEventSequence?: string | null;
|
|
607
|
+
}
|
|
608
|
+
/** @oneof */
|
|
609
|
+
interface DomainEventBodyOneOf {
|
|
610
|
+
createdEvent?: EntityCreatedEvent;
|
|
611
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
612
|
+
deletedEvent?: EntityDeletedEvent;
|
|
613
|
+
actionEvent?: ActionEvent;
|
|
614
|
+
}
|
|
615
|
+
interface EntityCreatedEvent {
|
|
616
|
+
entityAsJson?: string;
|
|
617
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
618
|
+
restoreInfo?: RestoreInfo;
|
|
619
|
+
}
|
|
620
|
+
interface RestoreInfo {
|
|
621
|
+
deletedDate?: Date | null;
|
|
622
|
+
}
|
|
623
|
+
interface EntityUpdatedEvent {
|
|
624
|
+
/**
|
|
625
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
626
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
627
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
628
|
+
*/
|
|
629
|
+
currentEntityAsJson?: string;
|
|
630
|
+
}
|
|
631
|
+
interface EntityDeletedEvent {
|
|
632
|
+
/** Entity that was deleted. */
|
|
633
|
+
deletedEntityAsJson?: string | null;
|
|
634
|
+
}
|
|
635
|
+
interface ActionEvent {
|
|
636
|
+
bodyAsJson?: string;
|
|
637
|
+
}
|
|
638
|
+
interface Empty {
|
|
639
|
+
}
|
|
640
|
+
interface OrderPurchased {
|
|
641
|
+
/** Order that was paid for. If a free or an offline order, the order that was created. */
|
|
642
|
+
order?: Order;
|
|
643
|
+
}
|
|
644
|
+
interface OrderStarted {
|
|
645
|
+
/** Order that reached its `startDate`. */
|
|
646
|
+
order?: Order;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Triggered at the start of a new payment cycle for an existing order.
|
|
650
|
+
*
|
|
651
|
+
* This webhook does not trigger at the initial start of an offline order.
|
|
652
|
+
*/
|
|
653
|
+
interface OrderCycleStarted {
|
|
654
|
+
/** Order whose new cycle started. */
|
|
655
|
+
order?: Order;
|
|
656
|
+
/** Number of the payment cycle will be 0 when the order is in the free trial period. In other cases, the cycle number starts from 1. */
|
|
657
|
+
cycleNumber?: number;
|
|
658
|
+
}
|
|
659
|
+
/** Emitted when a recurring order is canceled for the next payment cycle */
|
|
660
|
+
interface OrderAutoRenewCanceled {
|
|
661
|
+
/** Order that is canceled, effective at the end of the current payment cycle. */
|
|
662
|
+
order?: Order;
|
|
663
|
+
}
|
|
664
|
+
interface OrderEnded {
|
|
665
|
+
/** Order that ended. */
|
|
666
|
+
order?: Order;
|
|
667
|
+
}
|
|
548
668
|
interface GetOrderRequest {
|
|
549
669
|
/**
|
|
550
670
|
* Order ID.
|
|
@@ -659,6 +779,109 @@ interface Cursors {
|
|
|
659
779
|
*/
|
|
660
780
|
prev?: string | null;
|
|
661
781
|
}
|
|
782
|
+
interface OrdersQueryOrdersRequest {
|
|
783
|
+
/** Query filter. */
|
|
784
|
+
query?: QueryV2;
|
|
785
|
+
}
|
|
786
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
787
|
+
/** Paging options to limit and offset the number of items. */
|
|
788
|
+
paging?: Paging;
|
|
789
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
790
|
+
cursorPaging?: CursorPaging;
|
|
791
|
+
/**
|
|
792
|
+
* Filter object.
|
|
793
|
+
*
|
|
794
|
+
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
795
|
+
*/
|
|
796
|
+
filter?: Record<string, any> | null;
|
|
797
|
+
/**
|
|
798
|
+
* Sort object.
|
|
799
|
+
*
|
|
800
|
+
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
801
|
+
*/
|
|
802
|
+
sort?: Sorting[];
|
|
803
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
804
|
+
fields?: string[];
|
|
805
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
806
|
+
fieldsets?: string[];
|
|
807
|
+
}
|
|
808
|
+
/** @oneof */
|
|
809
|
+
interface QueryV2PagingMethodOneOf {
|
|
810
|
+
/** Paging options to limit and offset the number of items. */
|
|
811
|
+
paging?: Paging;
|
|
812
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
813
|
+
cursorPaging?: CursorPaging;
|
|
814
|
+
}
|
|
815
|
+
interface Paging {
|
|
816
|
+
/** Number of items to load. */
|
|
817
|
+
limit?: number | null;
|
|
818
|
+
/** Number of items to skip in the current sort order. */
|
|
819
|
+
offset?: number | null;
|
|
820
|
+
}
|
|
821
|
+
interface CursorPaging {
|
|
822
|
+
/**
|
|
823
|
+
* Maximum number of items to return in the results.
|
|
824
|
+
* @max 100
|
|
825
|
+
*/
|
|
826
|
+
limit?: number | null;
|
|
827
|
+
/**
|
|
828
|
+
* Pointer to the next or previous page in the list of results.
|
|
829
|
+
*
|
|
830
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
831
|
+
* Not relevant for the first request.
|
|
832
|
+
* @maxLength 16000
|
|
833
|
+
*/
|
|
834
|
+
cursor?: string | null;
|
|
835
|
+
}
|
|
836
|
+
interface OrdersQueryOrdersResponse {
|
|
837
|
+
/** Retrieved orders. */
|
|
838
|
+
plans?: Order[];
|
|
839
|
+
/** Paging-related data (number of orders returned, offset). */
|
|
840
|
+
pagingMetadata?: PagingMetadataV2;
|
|
841
|
+
}
|
|
842
|
+
interface GetOrdersStatsRequest {
|
|
843
|
+
}
|
|
844
|
+
interface GetOrdersStatsResponse {
|
|
845
|
+
/** Total number of orders. */
|
|
846
|
+
totalOrderCount?: number;
|
|
847
|
+
/** Number of active orders. */
|
|
848
|
+
activeOrderCount?: number;
|
|
849
|
+
}
|
|
850
|
+
interface GetAvailableOrderActionsRequest {
|
|
851
|
+
/**
|
|
852
|
+
* Order ID.
|
|
853
|
+
* @format GUID
|
|
854
|
+
*/
|
|
855
|
+
id?: string;
|
|
856
|
+
}
|
|
857
|
+
interface GetAvailableOrderActionsResponse {
|
|
858
|
+
/** Whether the order can be suspended. */
|
|
859
|
+
suspendable?: boolean;
|
|
860
|
+
/** If the order cannot be suspended, a reason is returned here. */
|
|
861
|
+
notSuspendableReason?: ReasonNotSuspendableWithLiterals;
|
|
862
|
+
/** Whether the order can be canceled by the buyer. */
|
|
863
|
+
cancelableByBuyer?: boolean;
|
|
864
|
+
}
|
|
865
|
+
declare enum ReasonNotSuspendable {
|
|
866
|
+
/** Undefined reason. */
|
|
867
|
+
UNDEFINED = "UNDEFINED",
|
|
868
|
+
/** Saved in the database but is awaiting payment. Non-active orders can't be suspended. */
|
|
869
|
+
PENDING = "PENDING",
|
|
870
|
+
/** Trial orders can't be suspended. */
|
|
871
|
+
TRIAL = "TRIAL",
|
|
872
|
+
/** Canceled orders can't be suspended. */
|
|
873
|
+
CANCELED = "CANCELED",
|
|
874
|
+
/** Ended orders can't be suspended. */
|
|
875
|
+
ENDED = "ENDED",
|
|
876
|
+
/** Paid for orders with future start dates can't be suspended. */
|
|
877
|
+
NOT_STARTED = "NOT_STARTED",
|
|
878
|
+
/** Order is already suspended. */
|
|
879
|
+
ALREADY_SUSPENDED = "ALREADY_SUSPENDED",
|
|
880
|
+
/** Orders based on recurring payments using older stripe versions can't be suspended. */
|
|
881
|
+
OLD_STRIPE = "OLD_STRIPE"
|
|
882
|
+
}
|
|
883
|
+
/** @enumType */
|
|
884
|
+
type ReasonNotSuspendableWithLiterals = ReasonNotSuspendable | 'UNDEFINED' | 'PENDING' | 'TRIAL' | 'CANCELED' | 'ENDED' | 'NOT_STARTED' | 'ALREADY_SUSPENDED' | 'OLD_STRIPE';
|
|
662
885
|
interface PostponeEndDateRequest {
|
|
663
886
|
/**
|
|
664
887
|
* Order ID.
|
|
@@ -674,6 +897,10 @@ interface PostponeEndDateRequest {
|
|
|
674
897
|
}
|
|
675
898
|
interface PostponeEndDateResponse {
|
|
676
899
|
}
|
|
900
|
+
interface OrderEndDatePostponed {
|
|
901
|
+
/** Order whose `endDate` was postponed. */
|
|
902
|
+
order?: Order;
|
|
903
|
+
}
|
|
677
904
|
interface CancelOrderRequest {
|
|
678
905
|
/**
|
|
679
906
|
* Order ID.
|
|
@@ -685,6 +912,15 @@ interface CancelOrderRequest {
|
|
|
685
912
|
}
|
|
686
913
|
interface CancelOrderResponse {
|
|
687
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Emitted when an order is canceled immediately or when cycle ends for an order with canceled auto renewal
|
|
917
|
+
*
|
|
918
|
+
* To determine the specific reason of the cancellation check `order.cancellation.cause` field.
|
|
919
|
+
*/
|
|
920
|
+
interface OrderCanceled {
|
|
921
|
+
/** Canceled order. */
|
|
922
|
+
order?: Order;
|
|
923
|
+
}
|
|
688
924
|
interface MarkAsPaidRequest {
|
|
689
925
|
/**
|
|
690
926
|
* Order ID.
|
|
@@ -694,6 +930,10 @@ interface MarkAsPaidRequest {
|
|
|
694
930
|
}
|
|
695
931
|
interface MarkAsPaidResponse {
|
|
696
932
|
}
|
|
933
|
+
interface OrderMarkedAsPaid {
|
|
934
|
+
/** Order that was marked as paid. */
|
|
935
|
+
order?: Order;
|
|
936
|
+
}
|
|
697
937
|
interface PauseOrderRequest {
|
|
698
938
|
/**
|
|
699
939
|
* Order ID.
|
|
@@ -703,6 +943,59 @@ interface PauseOrderRequest {
|
|
|
703
943
|
}
|
|
704
944
|
interface PauseOrderResponse {
|
|
705
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
|
+
}
|
|
706
999
|
interface ResumeOrderRequest {
|
|
707
1000
|
/**
|
|
708
1001
|
* Order ID.
|
|
@@ -712,6 +1005,99 @@ interface ResumeOrderRequest {
|
|
|
712
1005
|
}
|
|
713
1006
|
interface ResumeOrderResponse {
|
|
714
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
|
+
interface MessageEnvelope {
|
|
1030
|
+
/**
|
|
1031
|
+
* App instance ID.
|
|
1032
|
+
* @format GUID
|
|
1033
|
+
*/
|
|
1034
|
+
instanceId?: string | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* Event type.
|
|
1037
|
+
* @maxLength 150
|
|
1038
|
+
*/
|
|
1039
|
+
eventType?: string;
|
|
1040
|
+
/** The identification type and identity data. */
|
|
1041
|
+
identity?: IdentificationData;
|
|
1042
|
+
/** Stringify payload. */
|
|
1043
|
+
data?: string;
|
|
1044
|
+
}
|
|
1045
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1046
|
+
/**
|
|
1047
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1048
|
+
* @format GUID
|
|
1049
|
+
*/
|
|
1050
|
+
anonymousVisitorId?: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* ID of a site visitor that has logged in to the site.
|
|
1053
|
+
* @format GUID
|
|
1054
|
+
*/
|
|
1055
|
+
memberId?: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1058
|
+
* @format GUID
|
|
1059
|
+
*/
|
|
1060
|
+
wixUserId?: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* ID of an app.
|
|
1063
|
+
* @format GUID
|
|
1064
|
+
*/
|
|
1065
|
+
appId?: string;
|
|
1066
|
+
/** @readonly */
|
|
1067
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1068
|
+
}
|
|
1069
|
+
/** @oneof */
|
|
1070
|
+
interface IdentificationDataIdOneOf {
|
|
1071
|
+
/**
|
|
1072
|
+
* ID of a site visitor that has not logged in to the site.
|
|
1073
|
+
* @format GUID
|
|
1074
|
+
*/
|
|
1075
|
+
anonymousVisitorId?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* ID of a site visitor that has logged in to the site.
|
|
1078
|
+
* @format GUID
|
|
1079
|
+
*/
|
|
1080
|
+
memberId?: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
1083
|
+
* @format GUID
|
|
1084
|
+
*/
|
|
1085
|
+
wixUserId?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* ID of an app.
|
|
1088
|
+
* @format GUID
|
|
1089
|
+
*/
|
|
1090
|
+
appId?: string;
|
|
1091
|
+
}
|
|
1092
|
+
declare enum WebhookIdentityType {
|
|
1093
|
+
UNKNOWN = "UNKNOWN",
|
|
1094
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1095
|
+
MEMBER = "MEMBER",
|
|
1096
|
+
WIX_USER = "WIX_USER",
|
|
1097
|
+
APP = "APP"
|
|
1098
|
+
}
|
|
1099
|
+
/** @enumType */
|
|
1100
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
715
1101
|
interface MemberGetOrderRequest {
|
|
716
1102
|
/**
|
|
717
1103
|
* Order ID.
|
|
@@ -764,6 +1150,20 @@ interface MemberListOrdersResponse {
|
|
|
764
1150
|
/** Object containing paging-related data (number of orders returned, offset). */
|
|
765
1151
|
pagingMetadata?: PagingMetadataV2;
|
|
766
1152
|
}
|
|
1153
|
+
/**
|
|
1154
|
+
* TODO: Write orders filter and sort docs page
|
|
1155
|
+
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
1156
|
+
*/
|
|
1157
|
+
interface QueryOrdersRequest {
|
|
1158
|
+
/** Query filter. */
|
|
1159
|
+
query?: QueryV2;
|
|
1160
|
+
}
|
|
1161
|
+
interface QueryOrdersResponse {
|
|
1162
|
+
/** Order data. */
|
|
1163
|
+
plans?: Order[];
|
|
1164
|
+
/** Paging-related data (number of orders returned, offset). */
|
|
1165
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1166
|
+
}
|
|
767
1167
|
interface RequestCancellationRequest {
|
|
768
1168
|
/**
|
|
769
1169
|
* Order ID.
|
|
@@ -814,6 +1214,55 @@ interface CreateOnlineOrderResponse {
|
|
|
814
1214
|
/** Created online order. */
|
|
815
1215
|
order?: Order;
|
|
816
1216
|
}
|
|
1217
|
+
interface CouponsError {
|
|
1218
|
+
/** Coupon code. */
|
|
1219
|
+
couponCode?: string;
|
|
1220
|
+
/** Plan ID. */
|
|
1221
|
+
planId?: string;
|
|
1222
|
+
}
|
|
1223
|
+
interface CreateGuestOnlineOrderRequest {
|
|
1224
|
+
/**
|
|
1225
|
+
* Plan ID.
|
|
1226
|
+
* @format GUID
|
|
1227
|
+
*/
|
|
1228
|
+
planId?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Start date for the ordered plan.
|
|
1231
|
+
*
|
|
1232
|
+
* Default: Current date
|
|
1233
|
+
*/
|
|
1234
|
+
startDate?: Date | null;
|
|
1235
|
+
/**
|
|
1236
|
+
* Coupon code to apply.
|
|
1237
|
+
* @minLength 1
|
|
1238
|
+
* @maxLength 20
|
|
1239
|
+
*/
|
|
1240
|
+
couponCode?: string | null;
|
|
1241
|
+
/** Captcha data to prove you are not a robot */
|
|
1242
|
+
captcha?: Captcha;
|
|
1243
|
+
/** Visitor info */
|
|
1244
|
+
guest?: Guest;
|
|
1245
|
+
/**
|
|
1246
|
+
* Form submission id that was submitted together with the order
|
|
1247
|
+
* @format GUID
|
|
1248
|
+
*/
|
|
1249
|
+
submissionId?: string | null;
|
|
1250
|
+
}
|
|
1251
|
+
interface Captcha {
|
|
1252
|
+
/** Token from captcha */
|
|
1253
|
+
token?: string;
|
|
1254
|
+
}
|
|
1255
|
+
interface Guest {
|
|
1256
|
+
/**
|
|
1257
|
+
* Email for checkout
|
|
1258
|
+
* @format EMAIL
|
|
1259
|
+
*/
|
|
1260
|
+
email?: string;
|
|
1261
|
+
}
|
|
1262
|
+
interface CreateGuestOnlineOrderResponse {
|
|
1263
|
+
/** Order. */
|
|
1264
|
+
order?: Order;
|
|
1265
|
+
}
|
|
817
1266
|
interface CreateOfflineOrderRequest {
|
|
818
1267
|
/**
|
|
819
1268
|
* ID of the plan being ordered, from the Plans API.
|
|
@@ -853,6 +1302,22 @@ interface CreateOfflineOrderResponse {
|
|
|
853
1302
|
/** Order. */
|
|
854
1303
|
order?: Order;
|
|
855
1304
|
}
|
|
1305
|
+
interface CreateExternalOrderRequest {
|
|
1306
|
+
/**
|
|
1307
|
+
* Plan ID.
|
|
1308
|
+
* @format GUID
|
|
1309
|
+
*/
|
|
1310
|
+
planId?: string;
|
|
1311
|
+
/**
|
|
1312
|
+
* Form submission id that was submitted together with the order
|
|
1313
|
+
* @format GUID
|
|
1314
|
+
*/
|
|
1315
|
+
submissionId?: string | null;
|
|
1316
|
+
}
|
|
1317
|
+
interface CreateExternalOrderResponse {
|
|
1318
|
+
/** Created order */
|
|
1319
|
+
order?: Order;
|
|
1320
|
+
}
|
|
856
1321
|
interface GetOnlineOrderPreviewRequest {
|
|
857
1322
|
/**
|
|
858
1323
|
* Plan ID.
|
|
@@ -878,6 +1343,39 @@ interface GetOnlineOrderPreviewResponse {
|
|
|
878
1343
|
/** Whether the member has already reached purchase limit for the order's plan. */
|
|
879
1344
|
purchaseLimitExceeded?: boolean;
|
|
880
1345
|
}
|
|
1346
|
+
interface GetGuestOnlineOrderPreviewRequest {
|
|
1347
|
+
/**
|
|
1348
|
+
* Plan ID.
|
|
1349
|
+
* @format GUID
|
|
1350
|
+
*/
|
|
1351
|
+
planId?: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* Start date for the ordered plan.
|
|
1354
|
+
*
|
|
1355
|
+
* Default: Current date
|
|
1356
|
+
*/
|
|
1357
|
+
startDate?: Date | null;
|
|
1358
|
+
/**
|
|
1359
|
+
* Coupon code to apply.
|
|
1360
|
+
* @minLength 1
|
|
1361
|
+
* @maxLength 20
|
|
1362
|
+
*/
|
|
1363
|
+
couponCode?: string | null;
|
|
1364
|
+
/**
|
|
1365
|
+
* Email for checkout
|
|
1366
|
+
* @format EMAIL
|
|
1367
|
+
*/
|
|
1368
|
+
email?: string;
|
|
1369
|
+
}
|
|
1370
|
+
interface GetGuestOnlineOrderPreviewResponse {
|
|
1371
|
+
/** Will be missing if limit is exceeded */
|
|
1372
|
+
order?: Order;
|
|
1373
|
+
/**
|
|
1374
|
+
* Whether the purchase limit has already been reached for this plan by this email.
|
|
1375
|
+
* Always false for plans without purchase limits.
|
|
1376
|
+
*/
|
|
1377
|
+
purchaseLimitExceeded?: boolean;
|
|
1378
|
+
}
|
|
881
1379
|
interface GetOfflineOrderPreviewRequest {
|
|
882
1380
|
/**
|
|
883
1381
|
* ID of the plan of the previewed order, from the Plans API.
|
|
@@ -937,6 +1435,352 @@ interface GetPricePreviewResponse {
|
|
|
937
1435
|
/** Pricing details. */
|
|
938
1436
|
prices?: SpannedPrice[];
|
|
939
1437
|
}
|
|
1438
|
+
interface ChangeStartDateRequest {
|
|
1439
|
+
/**
|
|
1440
|
+
* Draft order ID.
|
|
1441
|
+
* @format GUID
|
|
1442
|
+
*/
|
|
1443
|
+
orderId?: string;
|
|
1444
|
+
/** New valid from date (timestamp). */
|
|
1445
|
+
startDate?: Date | null;
|
|
1446
|
+
}
|
|
1447
|
+
interface ChangeStartDateResponse {
|
|
1448
|
+
/** Updated draft order. */
|
|
1449
|
+
order?: Order;
|
|
1450
|
+
}
|
|
1451
|
+
interface OrderStartDateChanged {
|
|
1452
|
+
/** Order whose `startDate` changed. */
|
|
1453
|
+
order?: Order;
|
|
1454
|
+
}
|
|
1455
|
+
interface ApplyCouponRequest {
|
|
1456
|
+
/**
|
|
1457
|
+
* Draft order ID.
|
|
1458
|
+
* @format GUID
|
|
1459
|
+
*/
|
|
1460
|
+
orderId?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Coupon code to apply.
|
|
1463
|
+
* @minLength 1
|
|
1464
|
+
* @maxLength 20
|
|
1465
|
+
*/
|
|
1466
|
+
couponCode?: string;
|
|
1467
|
+
}
|
|
1468
|
+
interface ApplyCouponResponse {
|
|
1469
|
+
/** Order with applied coupon and recalculated tax. */
|
|
1470
|
+
order?: Order;
|
|
1471
|
+
}
|
|
1472
|
+
interface SetSubmissionRequest {
|
|
1473
|
+
/**
|
|
1474
|
+
* Order ID.
|
|
1475
|
+
* @format GUID
|
|
1476
|
+
*/
|
|
1477
|
+
orderId?: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Submission ID.
|
|
1480
|
+
* @format GUID
|
|
1481
|
+
*/
|
|
1482
|
+
submissionId?: string;
|
|
1483
|
+
}
|
|
1484
|
+
interface SetSubmissionResponse {
|
|
1485
|
+
/** Order with submission id */
|
|
1486
|
+
order?: Order;
|
|
1487
|
+
}
|
|
1488
|
+
/** @docsIgnore */
|
|
1489
|
+
type CreateOnlineOrderApplicationErrors = {
|
|
1490
|
+
code?: 'MEMBER_REQUIRED';
|
|
1491
|
+
description?: string;
|
|
1492
|
+
data?: Record<string, any>;
|
|
1493
|
+
} | {
|
|
1494
|
+
code?: 'archived_plan';
|
|
1495
|
+
description?: string;
|
|
1496
|
+
data?: Record<string, any>;
|
|
1497
|
+
} | {
|
|
1498
|
+
code?: 'member_not_found';
|
|
1499
|
+
description?: string;
|
|
1500
|
+
data?: Record<string, any>;
|
|
1501
|
+
} | {
|
|
1502
|
+
code?: 'purchases_limit_reached';
|
|
1503
|
+
description?: string;
|
|
1504
|
+
data?: Record<string, any>;
|
|
1505
|
+
} | {
|
|
1506
|
+
code?: 'buyer_can_not_pick_future_start_date';
|
|
1507
|
+
description?: string;
|
|
1508
|
+
data?: Record<string, any>;
|
|
1509
|
+
} | {
|
|
1510
|
+
code?: 'invalid_start_date';
|
|
1511
|
+
description?: string;
|
|
1512
|
+
data?: Record<string, any>;
|
|
1513
|
+
} | {
|
|
1514
|
+
code?: 'accept_payment_feature_missing';
|
|
1515
|
+
description?: string;
|
|
1516
|
+
data?: Record<string, any>;
|
|
1517
|
+
} | {
|
|
1518
|
+
code?: 'meta_site_id_missing';
|
|
1519
|
+
description?: string;
|
|
1520
|
+
data?: Record<string, any>;
|
|
1521
|
+
} | {
|
|
1522
|
+
code?: 'ERROR_COUPON_IS_DISABLED';
|
|
1523
|
+
description?: string;
|
|
1524
|
+
data?: CouponsError;
|
|
1525
|
+
} | {
|
|
1526
|
+
code?: 'ERROR_COUPON_USAGE_EXCEEDED';
|
|
1527
|
+
description?: string;
|
|
1528
|
+
data?: CouponsError;
|
|
1529
|
+
} | {
|
|
1530
|
+
code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';
|
|
1531
|
+
description?: string;
|
|
1532
|
+
data?: CouponsError;
|
|
1533
|
+
} | {
|
|
1534
|
+
code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';
|
|
1535
|
+
description?: string;
|
|
1536
|
+
data?: CouponsError;
|
|
1537
|
+
} | {
|
|
1538
|
+
code?: 'ERROR_COUPON_HAS_EXPIRED';
|
|
1539
|
+
description?: string;
|
|
1540
|
+
data?: CouponsError;
|
|
1541
|
+
} | {
|
|
1542
|
+
code?: 'ERROR_COUPON_DOES_NOT_EXIST';
|
|
1543
|
+
description?: string;
|
|
1544
|
+
data?: CouponsError;
|
|
1545
|
+
} | {
|
|
1546
|
+
code?: 'ERROR_COUPON_NOT_APPLICABLE_FOR_PLAN';
|
|
1547
|
+
description?: string;
|
|
1548
|
+
data?: CouponsError;
|
|
1549
|
+
} | {
|
|
1550
|
+
code?: 'ERROR_INVALID_SUBTOTAL';
|
|
1551
|
+
description?: string;
|
|
1552
|
+
data?: CouponsError;
|
|
1553
|
+
} | {
|
|
1554
|
+
code?: 'undefined_not_allowed';
|
|
1555
|
+
description?: string;
|
|
1556
|
+
data?: Record<string, any>;
|
|
1557
|
+
} | {
|
|
1558
|
+
code?: 'MISSING_BUSINESS_ADDRESS_COUNTRY';
|
|
1559
|
+
description?: string;
|
|
1560
|
+
data?: Record<string, any>;
|
|
1561
|
+
} | {
|
|
1562
|
+
code?: 'MISSING_BUSINESS_ADDRESS_STATE';
|
|
1563
|
+
description?: string;
|
|
1564
|
+
data?: Record<string, any>;
|
|
1565
|
+
};
|
|
1566
|
+
/** @docsIgnore */
|
|
1567
|
+
type CreateOnlineOrderValidationErrors = {
|
|
1568
|
+
ruleName?: 'UNKNOWN_ORDER_METHOD';
|
|
1569
|
+
} | {
|
|
1570
|
+
ruleName?: 'RECURRING_POS_UNSUPPORTED';
|
|
1571
|
+
} | {
|
|
1572
|
+
ruleName?: 'invalid_sort_field';
|
|
1573
|
+
};
|
|
1574
|
+
/** @docsIgnore */
|
|
1575
|
+
type CreateOfflineOrderApplicationErrors = {
|
|
1576
|
+
code?: 'PRICING_PLANS_NOT_INSTALLED';
|
|
1577
|
+
description?: string;
|
|
1578
|
+
data?: Record<string, any>;
|
|
1579
|
+
} | {
|
|
1580
|
+
code?: 'meta_site_id_missing';
|
|
1581
|
+
description?: string;
|
|
1582
|
+
data?: Record<string, any>;
|
|
1583
|
+
} | {
|
|
1584
|
+
code?: 'ERROR_COUPON_IS_DISABLED';
|
|
1585
|
+
description?: string;
|
|
1586
|
+
data?: CouponsError;
|
|
1587
|
+
} | {
|
|
1588
|
+
code?: 'ERROR_COUPON_USAGE_EXCEEDED';
|
|
1589
|
+
description?: string;
|
|
1590
|
+
data?: CouponsError;
|
|
1591
|
+
} | {
|
|
1592
|
+
code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';
|
|
1593
|
+
description?: string;
|
|
1594
|
+
data?: CouponsError;
|
|
1595
|
+
} | {
|
|
1596
|
+
code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';
|
|
1597
|
+
description?: string;
|
|
1598
|
+
data?: CouponsError;
|
|
1599
|
+
} | {
|
|
1600
|
+
code?: 'ERROR_COUPON_HAS_EXPIRED';
|
|
1601
|
+
description?: string;
|
|
1602
|
+
data?: CouponsError;
|
|
1603
|
+
} | {
|
|
1604
|
+
code?: 'ERROR_COUPON_DOES_NOT_EXIST';
|
|
1605
|
+
description?: string;
|
|
1606
|
+
data?: CouponsError;
|
|
1607
|
+
} | {
|
|
1608
|
+
code?: 'ERROR_COUPON_NOT_APPLICABLE_FOR_PLAN';
|
|
1609
|
+
description?: string;
|
|
1610
|
+
data?: CouponsError;
|
|
1611
|
+
} | {
|
|
1612
|
+
code?: 'ERROR_INVALID_SUBTOTAL';
|
|
1613
|
+
description?: string;
|
|
1614
|
+
data?: CouponsError;
|
|
1615
|
+
} | {
|
|
1616
|
+
code?: 'undefined_not_allowed';
|
|
1617
|
+
description?: string;
|
|
1618
|
+
data?: Record<string, any>;
|
|
1619
|
+
} | {
|
|
1620
|
+
code?: 'MISSING_BUSINESS_ADDRESS_COUNTRY';
|
|
1621
|
+
description?: string;
|
|
1622
|
+
data?: Record<string, any>;
|
|
1623
|
+
} | {
|
|
1624
|
+
code?: 'MISSING_BUSINESS_ADDRESS_STATE';
|
|
1625
|
+
description?: string;
|
|
1626
|
+
data?: Record<string, any>;
|
|
1627
|
+
};
|
|
1628
|
+
/** @docsIgnore */
|
|
1629
|
+
type CreateOfflineOrderValidationErrors = {
|
|
1630
|
+
ruleName?: 'MEMBER_DOESNT_EXIST';
|
|
1631
|
+
} | {
|
|
1632
|
+
ruleName?: 'invalid_sort_field';
|
|
1633
|
+
};
|
|
1634
|
+
/** @docsIgnore */
|
|
1635
|
+
type GetOnlineOrderPreviewApplicationErrors = {
|
|
1636
|
+
code?: 'PRICING_PLANS_NOT_INSTALLED';
|
|
1637
|
+
description?: string;
|
|
1638
|
+
data?: Record<string, any>;
|
|
1639
|
+
} | {
|
|
1640
|
+
code?: 'ERROR_COUPON_IS_DISABLED';
|
|
1641
|
+
description?: string;
|
|
1642
|
+
data?: CouponsError;
|
|
1643
|
+
} | {
|
|
1644
|
+
code?: 'ERROR_COUPON_USAGE_EXCEEDED';
|
|
1645
|
+
description?: string;
|
|
1646
|
+
data?: CouponsError;
|
|
1647
|
+
} | {
|
|
1648
|
+
code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';
|
|
1649
|
+
description?: string;
|
|
1650
|
+
data?: CouponsError;
|
|
1651
|
+
} | {
|
|
1652
|
+
code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';
|
|
1653
|
+
description?: string;
|
|
1654
|
+
data?: CouponsError;
|
|
1655
|
+
} | {
|
|
1656
|
+
code?: 'ERROR_COUPON_HAS_EXPIRED';
|
|
1657
|
+
description?: string;
|
|
1658
|
+
data?: CouponsError;
|
|
1659
|
+
} | {
|
|
1660
|
+
code?: 'ERROR_COUPON_DOES_NOT_EXIST';
|
|
1661
|
+
description?: string;
|
|
1662
|
+
data?: CouponsError;
|
|
1663
|
+
} | {
|
|
1664
|
+
code?: 'ERROR_COUPON_NOT_APPLICABLE_FOR_PLAN';
|
|
1665
|
+
description?: string;
|
|
1666
|
+
data?: CouponsError;
|
|
1667
|
+
} | {
|
|
1668
|
+
code?: 'ERROR_INVALID_SUBTOTAL';
|
|
1669
|
+
description?: string;
|
|
1670
|
+
data?: CouponsError;
|
|
1671
|
+
} | {
|
|
1672
|
+
code?: 'undefined_not_allowed';
|
|
1673
|
+
description?: string;
|
|
1674
|
+
data?: Record<string, any>;
|
|
1675
|
+
} | {
|
|
1676
|
+
code?: 'MISSING_BUSINESS_ADDRESS_COUNTRY';
|
|
1677
|
+
description?: string;
|
|
1678
|
+
data?: Record<string, any>;
|
|
1679
|
+
} | {
|
|
1680
|
+
code?: 'MISSING_BUSINESS_ADDRESS_STATE';
|
|
1681
|
+
description?: string;
|
|
1682
|
+
data?: Record<string, any>;
|
|
1683
|
+
};
|
|
1684
|
+
/** @docsIgnore */
|
|
1685
|
+
type GetOnlineOrderPreviewValidationErrors = {
|
|
1686
|
+
ruleName?: 'invalid_sort_field';
|
|
1687
|
+
};
|
|
1688
|
+
/** @docsIgnore */
|
|
1689
|
+
type GetOfflineOrderPreviewApplicationErrors = {
|
|
1690
|
+
code?: 'PRICING_PLANS_NOT_INSTALLED';
|
|
1691
|
+
description?: string;
|
|
1692
|
+
data?: Record<string, any>;
|
|
1693
|
+
} | {
|
|
1694
|
+
code?: 'ERROR_COUPON_IS_DISABLED';
|
|
1695
|
+
description?: string;
|
|
1696
|
+
data?: CouponsError;
|
|
1697
|
+
} | {
|
|
1698
|
+
code?: 'ERROR_COUPON_USAGE_EXCEEDED';
|
|
1699
|
+
description?: string;
|
|
1700
|
+
data?: CouponsError;
|
|
1701
|
+
} | {
|
|
1702
|
+
code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';
|
|
1703
|
+
description?: string;
|
|
1704
|
+
data?: CouponsError;
|
|
1705
|
+
} | {
|
|
1706
|
+
code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';
|
|
1707
|
+
description?: string;
|
|
1708
|
+
data?: CouponsError;
|
|
1709
|
+
} | {
|
|
1710
|
+
code?: 'ERROR_COUPON_HAS_EXPIRED';
|
|
1711
|
+
description?: string;
|
|
1712
|
+
data?: CouponsError;
|
|
1713
|
+
} | {
|
|
1714
|
+
code?: 'ERROR_COUPON_DOES_NOT_EXIST';
|
|
1715
|
+
description?: string;
|
|
1716
|
+
data?: CouponsError;
|
|
1717
|
+
} | {
|
|
1718
|
+
code?: 'ERROR_COUPON_NOT_APPLICABLE_FOR_PLAN';
|
|
1719
|
+
description?: string;
|
|
1720
|
+
data?: CouponsError;
|
|
1721
|
+
} | {
|
|
1722
|
+
code?: 'ERROR_INVALID_SUBTOTAL';
|
|
1723
|
+
description?: string;
|
|
1724
|
+
data?: CouponsError;
|
|
1725
|
+
} | {
|
|
1726
|
+
code?: 'undefined_not_allowed';
|
|
1727
|
+
description?: string;
|
|
1728
|
+
data?: Record<string, any>;
|
|
1729
|
+
} | {
|
|
1730
|
+
code?: 'MISSING_BUSINESS_ADDRESS_COUNTRY';
|
|
1731
|
+
description?: string;
|
|
1732
|
+
data?: Record<string, any>;
|
|
1733
|
+
} | {
|
|
1734
|
+
code?: 'MISSING_BUSINESS_ADDRESS_STATE';
|
|
1735
|
+
description?: string;
|
|
1736
|
+
data?: Record<string, any>;
|
|
1737
|
+
};
|
|
1738
|
+
/** @docsIgnore */
|
|
1739
|
+
type GetOfflineOrderPreviewValidationErrors = {
|
|
1740
|
+
ruleName?: 'invalid_sort_field';
|
|
1741
|
+
};
|
|
1742
|
+
/** @docsIgnore */
|
|
1743
|
+
type GetPricePreviewApplicationErrors = {
|
|
1744
|
+
code?: 'ERROR_COUPON_IS_DISABLED';
|
|
1745
|
+
description?: string;
|
|
1746
|
+
data?: CouponsError;
|
|
1747
|
+
} | {
|
|
1748
|
+
code?: 'ERROR_COUPON_USAGE_EXCEEDED';
|
|
1749
|
+
description?: string;
|
|
1750
|
+
data?: CouponsError;
|
|
1751
|
+
} | {
|
|
1752
|
+
code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';
|
|
1753
|
+
description?: string;
|
|
1754
|
+
data?: CouponsError;
|
|
1755
|
+
} | {
|
|
1756
|
+
code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';
|
|
1757
|
+
description?: string;
|
|
1758
|
+
data?: CouponsError;
|
|
1759
|
+
} | {
|
|
1760
|
+
code?: 'ERROR_COUPON_HAS_EXPIRED';
|
|
1761
|
+
description?: string;
|
|
1762
|
+
data?: CouponsError;
|
|
1763
|
+
} | {
|
|
1764
|
+
code?: 'ERROR_COUPON_DOES_NOT_EXIST';
|
|
1765
|
+
description?: string;
|
|
1766
|
+
data?: CouponsError;
|
|
1767
|
+
} | {
|
|
1768
|
+
code?: 'ERROR_COUPON_NOT_APPLICABLE_FOR_PLAN';
|
|
1769
|
+
description?: string;
|
|
1770
|
+
data?: CouponsError;
|
|
1771
|
+
} | {
|
|
1772
|
+
code?: 'ERROR_INVALID_SUBTOTAL';
|
|
1773
|
+
description?: string;
|
|
1774
|
+
data?: CouponsError;
|
|
1775
|
+
} | {
|
|
1776
|
+
code?: 'MISSING_BUSINESS_ADDRESS_COUNTRY';
|
|
1777
|
+
description?: string;
|
|
1778
|
+
data?: Record<string, any>;
|
|
1779
|
+
} | {
|
|
1780
|
+
code?: 'MISSING_BUSINESS_ADDRESS_STATE';
|
|
1781
|
+
description?: string;
|
|
1782
|
+
data?: Record<string, any>;
|
|
1783
|
+
};
|
|
940
1784
|
|
|
941
1785
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
942
1786
|
getUrl: (context: any) => string;
|
|
@@ -980,4 +1824,4 @@ declare function getOnlineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, Get
|
|
|
980
1824
|
declare function getOfflineOrderPreview(): __PublicMethodMetaInfo<'POST', {}, GetOfflineOrderPreviewRequest$1, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse$1, GetOfflineOrderPreviewResponse>;
|
|
981
1825
|
declare function getPricePreview(): __PublicMethodMetaInfo<'POST', {}, GetPricePreviewRequest$1, GetPricePreviewRequest, GetPricePreviewResponse$1, GetPricePreviewResponse>;
|
|
982
1826
|
|
|
983
|
-
export { type __PublicMethodMetaInfo, cancelOrder, createOfflineOrder, createOnlineOrder, getOfflineOrderPreview, getOnlineOrderPreview, getPricePreview, managementGetOrder, managementListOrders, markAsPaid, memberGetOrder, memberListOrders, pauseOrder, postponeEndDate, requestCancellation, resumeOrder };
|
|
1827
|
+
export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type ApplyCouponRequest as ApplyCouponRequestOriginal, type ApplyCouponResponse as ApplyCouponResponseOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkOrderResult as BulkOrderResultOriginal, type BulkPauseOrderRequest as BulkPauseOrderRequestOriginal, type BulkPauseOrderResponse as BulkPauseOrderResponseOriginal, type BulkResumeOrderRequest as BulkResumeOrderRequestOriginal, type BulkResumeOrderResponse as BulkResumeOrderResponseOriginal, type Buyer as BuyerOriginal, type CancelOrderRequest as CancelOrderRequestOriginal, type CancelOrderResponse as CancelOrderResponseOriginal, CancellationCause as CancellationCauseOriginal, type CancellationCauseWithLiterals as CancellationCauseWithLiteralsOriginal, CancellationEffectiveAt as CancellationEffectiveAtOriginal, type CancellationEffectiveAtWithLiterals as CancellationEffectiveAtWithLiteralsOriginal, type Cancellation as CancellationOriginal, type Captcha as CaptchaOriginal, type ChangeStartDateRequest as ChangeStartDateRequestOriginal, type ChangeStartDateResponse as ChangeStartDateResponseOriginal, type Coupon as CouponOriginal, type CouponsError as CouponsErrorOriginal, type CreateExternalOrderRequest as CreateExternalOrderRequestOriginal, type CreateExternalOrderResponse as CreateExternalOrderResponseOriginal, type CreateGuestOnlineOrderRequest as CreateGuestOnlineOrderRequestOriginal, type CreateGuestOnlineOrderResponse as CreateGuestOnlineOrderResponseOriginal, type CreateOfflineOrderApplicationErrors as CreateOfflineOrderApplicationErrorsOriginal, type CreateOfflineOrderRequest as CreateOfflineOrderRequestOriginal, type CreateOfflineOrderResponse as CreateOfflineOrderResponseOriginal, type CreateOfflineOrderValidationErrors as CreateOfflineOrderValidationErrorsOriginal, type CreateOnlineOrderApplicationErrors as CreateOnlineOrderApplicationErrorsOriginal, type CreateOnlineOrderRequest as CreateOnlineOrderRequestOriginal, type CreateOnlineOrderResponse as CreateOnlineOrderResponseOriginal, type CreateOnlineOrderValidationErrors as CreateOnlineOrderValidationErrorsOriginal, type CurrentCycle as CurrentCycleOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Duration as DurationOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Fee as FeeOriginal, type FormData as FormDataOriginal, type GetAvailableOrderActionsRequest as GetAvailableOrderActionsRequestOriginal, type GetAvailableOrderActionsResponse as GetAvailableOrderActionsResponseOriginal, type GetGuestOnlineOrderPreviewRequest as GetGuestOnlineOrderPreviewRequestOriginal, type GetGuestOnlineOrderPreviewResponse as GetGuestOnlineOrderPreviewResponseOriginal, type GetOfflineOrderPreviewApplicationErrors as GetOfflineOrderPreviewApplicationErrorsOriginal, type GetOfflineOrderPreviewRequest as GetOfflineOrderPreviewRequestOriginal, type GetOfflineOrderPreviewResponse as GetOfflineOrderPreviewResponseOriginal, type GetOfflineOrderPreviewValidationErrors as GetOfflineOrderPreviewValidationErrorsOriginal, type GetOnlineOrderPreviewApplicationErrors as GetOnlineOrderPreviewApplicationErrorsOriginal, type GetOnlineOrderPreviewRequest as GetOnlineOrderPreviewRequestOriginal, type GetOnlineOrderPreviewResponse as GetOnlineOrderPreviewResponseOriginal, type GetOnlineOrderPreviewValidationErrors as GetOnlineOrderPreviewValidationErrorsOriginal, type GetOrderRequest as GetOrderRequestOriginal, type GetOrderResponse as GetOrderResponseOriginal, type GetOrdersStatsRequest as GetOrdersStatsRequestOriginal, type GetOrdersStatsResponse as GetOrdersStatsResponseOriginal, type GetPricePreviewApplicationErrors as GetPricePreviewApplicationErrorsOriginal, type GetPricePreviewRequest as GetPricePreviewRequestOriginal, type GetPricePreviewResponse as GetPricePreviewResponseOriginal, type Guest as GuestOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ItemMetadata as ItemMetadataOriginal, type ListOrdersRequest as ListOrdersRequestOriginal, type ListOrdersResponse as ListOrdersResponseOriginal, type MarkAsPaidRequest as MarkAsPaidRequestOriginal, type MarkAsPaidResponse as MarkAsPaidResponseOriginal, type MemberGetOrderRequest as MemberGetOrderRequestOriginal, type MemberGetOrderResponse as MemberGetOrderResponseOriginal, type MemberListOrdersRequest as MemberListOrdersRequestOriginal, type MemberListOrdersResponse as MemberListOrdersResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OnBehalf as OnBehalfOriginal, type OrderAutoRenewCanceled as OrderAutoRenewCanceledOriginal, type OrderCanceled as OrderCanceledOriginal, type OrderCycle as OrderCycleOriginal, type OrderCycleStarted as OrderCycleStartedOriginal, type OrderEndDatePostponed as OrderEndDatePostponedOriginal, type OrderEnded as OrderEndedOriginal, type OrderMarkedAsPaid as OrderMarkedAsPaidOriginal, OrderMethod as OrderMethodOriginal, type OrderMethodWithLiterals as OrderMethodWithLiteralsOriginal, type Order as OrderOriginal, type OrderPaused as OrderPausedOriginal, type OrderPurchased as OrderPurchasedOriginal, type OrderResumed as OrderResumedOriginal, type OrderStartDateChanged as OrderStartDateChangedOriginal, type OrderStarted as OrderStartedOriginal, OrderStatus as OrderStatusOriginal, type OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal, OrderType as OrderTypeOriginal, type OrderTypeWithLiterals as OrderTypeWithLiteralsOriginal, type OrdersQueryOrdersRequest as OrdersQueryOrdersRequestOriginal, type OrdersQueryOrdersResponse as OrdersQueryOrdersResponseOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PauseOrderRequest as PauseOrderRequestOriginal, type PauseOrderResponse as PauseOrderResponseOriginal, type PausePeriod as PausePeriodOriginal, PaymentStatus as PaymentStatusOriginal, type PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal, PeriodUnit as PeriodUnitOriginal, type PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal, type PostponeEndDateRequest as PostponeEndDateRequestOriginal, type PostponeEndDateResponse as PostponeEndDateResponseOriginal, type PriceDetails as PriceDetailsOriginal, type PriceDetailsPricingModelOneOf as PriceDetailsPricingModelOneOfOriginal, type PriceDuration as PriceDurationOriginal, type Price as PriceOriginal, type PricingDetails as PricingDetailsOriginal, type PricingDetailsPricingModelOneOf as PricingDetailsPricingModelOneOfOriginal, type QueryOrdersRequest as QueryOrdersRequestOriginal, type QueryOrdersResponse as QueryOrdersResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, ReasonNotSuspendable as ReasonNotSuspendableOriginal, type ReasonNotSuspendableWithLiterals as ReasonNotSuspendableWithLiteralsOriginal, type Recurrence as RecurrenceOriginal, type RequestCancellationRequest as RequestCancellationRequestOriginal, type RequestCancellationResponse as RequestCancellationResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ResumeOrderRequest as ResumeOrderRequestOriginal, type ResumeOrderResponse as ResumeOrderResponseOriginal, Set as SetOriginal, type SetSubmissionRequest as SetSubmissionRequestOriginal, type SetSubmissionResponse as SetSubmissionResponseOriginal, type SetWithLiterals as SetWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpannedPrice as SpannedPriceOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type Tax as TaxOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, cancelOrder, createOfflineOrder, createOnlineOrder, getOfflineOrderPreview, getOnlineOrderPreview, getPricePreview, managementGetOrder, managementListOrders, markAsPaid, memberGetOrder, memberListOrders, pauseOrder, postponeEndDate, requestCancellation, resumeOrder };
|