@wix/auto_sdk_pricing-plans_orders 1.0.120 → 1.0.122

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.
Files changed (37) hide show
  1. package/build/cjs/index.js +180 -62
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.js +150 -36
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.js +150 -36
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.js +30 -30
  8. package/build/cjs/schemas.js.map +1 -1
  9. package/build/es/index.mjs +180 -62
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.mjs +150 -36
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/es/meta.mjs +150 -36
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/es/schemas.mjs +30 -30
  16. package/build/es/schemas.mjs.map +1 -1
  17. package/build/internal/cjs/index.js +180 -62
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/index.typings.d.ts +59 -0
  20. package/build/internal/cjs/index.typings.js +150 -36
  21. package/build/internal/cjs/index.typings.js.map +1 -1
  22. package/build/internal/cjs/meta.d.ts +101 -0
  23. package/build/internal/cjs/meta.js +150 -36
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.js +30 -30
  26. package/build/internal/cjs/schemas.js.map +1 -1
  27. package/build/internal/es/index.mjs +180 -62
  28. package/build/internal/es/index.mjs.map +1 -1
  29. package/build/internal/es/index.typings.d.mts +59 -0
  30. package/build/internal/es/index.typings.mjs +150 -36
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +101 -0
  33. package/build/internal/es/meta.mjs +150 -36
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/build/internal/es/schemas.mjs +30 -30
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -66,6 +66,12 @@ interface Order {
66
66
  * @readonly
67
67
  */
68
68
  type?: OrderTypeWithLiterals;
69
+ /**
70
+ * Method by which checkout was initiated on buyer's behalf.
71
+ * @internal
72
+ * @readonly
73
+ */
74
+ orderMethod?: OrderMethodWithLiterals;
69
75
  /**
70
76
  * Status of the order.
71
77
  * @readonly
@@ -135,6 +141,12 @@ interface Order {
135
141
  * @readonly
136
142
  */
137
143
  currentCycle?: CurrentCycle;
144
+ /**
145
+ * Past and current cycles for the order.
146
+ * @internal
147
+ * @readonly
148
+ */
149
+ cycles?: OrderCycle[];
138
150
  /**
139
151
  * Plan name at the time of purchase.
140
152
  * @readonly
@@ -166,6 +178,17 @@ interface Order {
166
178
  * @readonly
167
179
  */
168
180
  formData?: FormData;
181
+ /**
182
+ * TODO PPL-1357: Remove when migration to new status is completed
183
+ * @internal
184
+ */
185
+ statusNew?: OrderStatusWithLiterals;
186
+ /**
187
+ * Used to differentiate orders that were created from eCom flow.
188
+ * @internal
189
+ * @readonly
190
+ */
191
+ onEcom?: boolean;
169
192
  }
170
193
  interface Buyer {
171
194
  /**
@@ -392,6 +415,14 @@ interface Price {
392
415
  * @format CURRENCY
393
416
  */
394
417
  currency?: string;
418
+ /**
419
+ * Additional fees that would have been applied to the price, one of which could be a setup fee.
420
+ *
421
+ * Tax is also applied to additional fees.
422
+ * @internal
423
+ * @readonly
424
+ */
425
+ fees?: Fee[];
395
426
  /**
396
427
  * Price change after billing date was change and price was adjusted. Could be positive and negative values.
397
428
  * @format DECIMAL_VALUE
@@ -614,8 +645,18 @@ interface DomainEventBodyOneOf {
614
645
  }
615
646
  interface EntityCreatedEvent {
616
647
  entityAsJson?: string;
648
+ /**
649
+ * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
650
+ * @internal
651
+ */
652
+ triggeredByUndelete?: boolean | null;
617
653
  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
618
654
  restoreInfo?: RestoreInfo;
655
+ /**
656
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
657
+ * @internal
658
+ */
659
+ additionalMetadataAsJson?: string | null;
619
660
  }
620
661
  interface RestoreInfo {
621
662
  deletedDate?: Date | null;
@@ -627,10 +668,42 @@ interface EntityUpdatedEvent {
627
668
  * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
628
669
  */
629
670
  currentEntityAsJson?: string;
671
+ /**
672
+ * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
673
+ * wont populate it / have any reference to it in the API.
674
+ * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
675
+ * the developer should send only the new (current) entity.
676
+ * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
677
+ * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
678
+ * @internal
679
+ * @deprecated
680
+ */
681
+ previousEntityAsJson?: string | null;
682
+ /**
683
+ * Map of fully qualified field paths to their previous values for fields that changed.
684
+ * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
685
+ * @internal
686
+ */
687
+ modifiedFields?: Record<string, any>;
688
+ /**
689
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
690
+ * @internal
691
+ */
692
+ additionalMetadataAsJson?: string | null;
630
693
  }
631
694
  interface EntityDeletedEvent {
695
+ /**
696
+ * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
697
+ * @internal
698
+ */
699
+ movedToTrash?: boolean | null;
632
700
  /** Entity that was deleted. */
633
701
  deletedEntityAsJson?: string | null;
702
+ /**
703
+ * Optional domain-specific metadata defined by the API owner, encoded as JSON.
704
+ * @internal
705
+ */
706
+ additionalMetadataAsJson?: string | null;
634
707
  }
635
708
  interface ActionEvent {
636
709
  bodyAsJson?: string;
@@ -733,6 +806,13 @@ interface ListOrdersRequest {
733
806
  * Default: If `fieldSet` is omitted, no order form submission data is returned.
734
807
  */
735
808
  fieldSet?: SetWithLiterals;
809
+ /**
810
+ * Filter by order IDs.
811
+ * @internal
812
+ * @format GUID
813
+ * @maxSize 50
814
+ */
815
+ orderIds?: string[];
736
816
  }
737
817
  interface Sorting {
738
818
  /**
@@ -742,6 +822,20 @@ interface Sorting {
742
822
  fieldName?: string;
743
823
  /** Sort order. */
744
824
  order?: SortOrderWithLiterals;
825
+ /**
826
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
827
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
828
+ *
829
+ * If multiple filters are provided, they are combined with AND operator.
830
+ *
831
+ * Example:
832
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
833
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
834
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
835
+ * @internal
836
+ * @maxSize 10
837
+ */
838
+ selectItemsBy?: Record<string, any>[] | null;
745
839
  /**
746
840
  * Origin point for geo-distance sorting on a GEO field
747
841
  * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
@@ -777,6 +871,13 @@ interface PagingMetadataV2 {
777
871
  tooManyToCount?: boolean | null;
778
872
  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
779
873
  cursors?: Cursors;
874
+ /**
875
+ * Indicates if there are more results after the current page.
876
+ * If `true`, another page of results can be retrieved.
877
+ * If `false`, this is the last page.
878
+ * @internal
879
+ */
880
+ hasNext?: boolean | null;
780
881
  }
781
882
  interface Cursors {
782
883
  /**
@@ -33,33 +33,63 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
33
33
  destPath: "/v2/member/orders"
34
34
  }
35
35
  ],
36
+ "editor.wixapps.net": [
37
+ {
38
+ srcPath: "/_api/pricing-plans/v2/member/orders",
39
+ destPath: "/v2/member/orders"
40
+ }
41
+ ],
42
+ "manage._base_domain_": [
43
+ {
44
+ srcPath: "/_api/pricing-plans/v2/member/orders",
45
+ destPath: "/v2/member/orders"
46
+ }
47
+ ],
48
+ "www._base_domain_": [
49
+ {
50
+ srcPath: "/_api/pricing-plans/v2/member/orders",
51
+ destPath: "/v2/member/orders"
52
+ }
53
+ ],
54
+ "www.wixapis.com": [
55
+ {
56
+ srcPath: "/pricing-plans/v2/member/orders",
57
+ destPath: "/v2/member/orders"
58
+ }
59
+ ],
36
60
  _: [
37
61
  {
38
62
  srcPath: "/_api/pricing-plans/v2/member/orders",
39
63
  destPath: "/v2/member/orders"
40
64
  }
41
65
  ],
42
- "editor.wixapps.net": [
66
+ "editor._base_domain_": [
43
67
  {
44
68
  srcPath: "/_api/pricing-plans/v2/member/orders",
45
69
  destPath: "/v2/member/orders"
46
70
  }
47
71
  ],
48
- "manage._base_domain_": [
72
+ "blocks._base_domain_": [
49
73
  {
50
74
  srcPath: "/_api/pricing-plans/v2/member/orders",
51
75
  destPath: "/v2/member/orders"
52
76
  }
53
77
  ],
54
- "www._base_domain_": [
78
+ "create.editorx": [
55
79
  {
56
80
  srcPath: "/_api/pricing-plans/v2/member/orders",
57
81
  destPath: "/v2/member/orders"
58
82
  }
59
83
  ],
60
- "www.wixapis.com": [
84
+ "apps._base_domain_": [
61
85
  {
62
- srcPath: "/pricing-plans/v2/member/orders",
86
+ srcPath: "/_api/pricing-plans/v2/member/orders",
87
+ destPath: "/v2/member/orders"
88
+ }
89
+ ],
90
+ "dev._base_domain_": [
91
+ {
92
+ srcPath: "/_api/pricing-plans/v2/member/orders",
63
93
  destPath: "/v2/member/orders"
64
94
  }
65
95
  ]
@@ -78,11 +108,9 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
78
108
  {
79
109
  srcPath: "/_api/paid-plans/v2/checkout",
80
110
  destPath: "/v2/checkout"
81
- }
82
- ],
83
- "*.pub.wix-code.com": [
111
+ },
84
112
  {
85
- srcPath: "/_api/paid-plans/v2/checkout",
113
+ srcPath: "/_api/pricing-plans/v2/checkout",
86
114
  destPath: "/v2/checkout"
87
115
  }
88
116
  ],
@@ -92,11 +120,13 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
92
120
  destPath: "/v2/checkout"
93
121
  }
94
122
  ],
95
- _: [
123
+ "editor-flow.wixapps.net": [
96
124
  {
97
- srcPath: "/pricing-plans/v2/checkout",
125
+ srcPath: "/_api/paid-plans/v2/checkout",
98
126
  destPath: "/v2/checkout"
99
- },
127
+ }
128
+ ],
129
+ "editor._base_domain_": [
100
130
  {
101
131
  srcPath: "/_api/paid-plans/v2/checkout",
102
132
  destPath: "/v2/checkout"
@@ -106,27 +136,23 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
106
136
  destPath: "/v2/checkout"
107
137
  }
108
138
  ],
109
- "editor-flow.wixapps.net": [
139
+ "blocks._base_domain_": [
110
140
  {
111
141
  srcPath: "/_api/paid-plans/v2/checkout",
112
142
  destPath: "/v2/checkout"
113
- }
114
- ],
115
- "editor._base_domain_": [
143
+ },
116
144
  {
117
- srcPath: "/_api/paid-plans/v2/checkout",
145
+ srcPath: "/_api/pricing-plans/v2/checkout",
118
146
  destPath: "/v2/checkout"
119
147
  }
120
148
  ],
121
- "blocks._base_domain_": [
149
+ "create.editorx": [
122
150
  {
123
151
  srcPath: "/_api/paid-plans/v2/checkout",
124
152
  destPath: "/v2/checkout"
125
- }
126
- ],
127
- "create.editorx": [
153
+ },
128
154
  {
129
- srcPath: "/_api/paid-plans/v2/checkout",
155
+ srcPath: "/_api/pricing-plans/v2/checkout",
130
156
  destPath: "/v2/checkout"
131
157
  }
132
158
  ],
@@ -134,6 +160,10 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
134
160
  {
135
161
  srcPath: "/_api/paid-plans/v2/checkout",
136
162
  destPath: "/v2/checkout"
163
+ },
164
+ {
165
+ srcPath: "/_api/pricing-plans/v2/checkout",
166
+ destPath: "/v2/checkout"
137
167
  }
138
168
  ],
139
169
  "forums._base_domain_": [
@@ -162,15 +192,55 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
162
192
  destPath: "/v2/checkout"
163
193
  }
164
194
  ],
195
+ "www.wixapis.com": [
196
+ {
197
+ srcPath: "/pricing-plans/v2/checkout",
198
+ destPath: "/v2/checkout"
199
+ }
200
+ ],
201
+ _: [
202
+ {
203
+ srcPath: "/pricing-plans/v2/checkout",
204
+ destPath: "/v2/checkout"
205
+ },
206
+ {
207
+ srcPath: "/_api/paid-plans/v2/checkout",
208
+ destPath: "/v2/checkout"
209
+ },
210
+ {
211
+ srcPath: "/_api/pricing-plans/v2/checkout",
212
+ destPath: "/v2/checkout"
213
+ }
214
+ ],
215
+ "*.pub.wix-code.com": [
216
+ {
217
+ srcPath: "/_api/paid-plans/v2/checkout",
218
+ destPath: "/v2/checkout"
219
+ }
220
+ ],
165
221
  "www._base_domain_": [
166
222
  {
167
223
  srcPath: "/_api/paid-plans/v2/checkout",
168
224
  destPath: "/v2/checkout"
169
225
  }
170
226
  ],
171
- "www.wixapis.com": [
227
+ "apps._base_domain_": [
172
228
  {
173
- srcPath: "/pricing-plans/v2/checkout",
229
+ srcPath: "/_api/paid-plans/v2/checkout",
230
+ destPath: "/v2/checkout"
231
+ },
232
+ {
233
+ srcPath: "/_api/pricing-plans/v2/checkout",
234
+ destPath: "/v2/checkout"
235
+ }
236
+ ],
237
+ "dev._base_domain_": [
238
+ {
239
+ srcPath: "/_api/paid-plans/v2/checkout",
240
+ destPath: "/v2/checkout"
241
+ },
242
+ {
243
+ srcPath: "/_api/pricing-plans/v2/checkout",
174
244
  destPath: "/v2/checkout"
175
245
  }
176
246
  ]
@@ -189,11 +259,9 @@ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
189
259
  {
190
260
  srcPath: "/_api/paid-plans/v2/orders",
191
261
  destPath: "/v2/orders"
192
- }
193
- ],
194
- "*.pub.wix-code.com": [
262
+ },
195
263
  {
196
- srcPath: "/_api/paid-plans/v2/orders",
264
+ srcPath: "/_api/pricing-plans/v2/orders",
197
265
  destPath: "/v2/orders"
198
266
  }
199
267
  ],
@@ -203,12 +271,6 @@ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
203
271
  destPath: "/v2/orders"
204
272
  }
205
273
  ],
206
- _: [
207
- {
208
- srcPath: "/_api/paid-plans/v2/orders",
209
- destPath: "/v2/orders"
210
- }
211
- ],
212
274
  "editor-flow.wixapps.net": [
213
275
  {
214
276
  srcPath: "/_api/paid-plans/v2/orders",
@@ -219,24 +281,40 @@ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
219
281
  {
220
282
  srcPath: "/_api/paid-plans/v2/orders",
221
283
  destPath: "/v2/orders"
284
+ },
285
+ {
286
+ srcPath: "/_api/pricing-plans/v2/orders",
287
+ destPath: "/v2/orders"
222
288
  }
223
289
  ],
224
290
  "blocks._base_domain_": [
225
291
  {
226
292
  srcPath: "/_api/paid-plans/v2/orders",
227
293
  destPath: "/v2/orders"
294
+ },
295
+ {
296
+ srcPath: "/_api/pricing-plans/v2/orders",
297
+ destPath: "/v2/orders"
228
298
  }
229
299
  ],
230
300
  "create.editorx": [
231
301
  {
232
302
  srcPath: "/_api/paid-plans/v2/orders",
233
303
  destPath: "/v2/orders"
304
+ },
305
+ {
306
+ srcPath: "/_api/pricing-plans/v2/orders",
307
+ destPath: "/v2/orders"
234
308
  }
235
309
  ],
236
310
  "editor.wixapps.net": [
237
311
  {
238
312
  srcPath: "/_api/paid-plans/v2/orders",
239
313
  destPath: "/v2/orders"
314
+ },
315
+ {
316
+ srcPath: "/_api/pricing-plans/v2/orders",
317
+ destPath: "/v2/orders"
240
318
  }
241
319
  ],
242
320
  "forums._base_domain_": [
@@ -261,15 +339,51 @@ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
261
339
  destPath: "/v2/orders"
262
340
  }
263
341
  ],
342
+ "www.wixapis.com": [
343
+ {
344
+ srcPath: "/pricing-plans/v2/orders",
345
+ destPath: "/v2/orders"
346
+ }
347
+ ],
348
+ _: [
349
+ {
350
+ srcPath: "/_api/paid-plans/v2/orders",
351
+ destPath: "/v2/orders"
352
+ },
353
+ {
354
+ srcPath: "/_api/pricing-plans/v2/orders",
355
+ destPath: "/v2/orders"
356
+ }
357
+ ],
358
+ "*.pub.wix-code.com": [
359
+ {
360
+ srcPath: "/_api/paid-plans/v2/orders",
361
+ destPath: "/v2/orders"
362
+ }
363
+ ],
264
364
  "www._base_domain_": [
265
365
  {
266
366
  srcPath: "/_api/paid-plans/v2/orders",
267
367
  destPath: "/v2/orders"
268
368
  }
269
369
  ],
270
- "www.wixapis.com": [
370
+ "apps._base_domain_": [
271
371
  {
272
- srcPath: "/pricing-plans/v2/orders",
372
+ srcPath: "/_api/paid-plans/v2/orders",
373
+ destPath: "/v2/orders"
374
+ },
375
+ {
376
+ srcPath: "/_api/pricing-plans/v2/orders",
377
+ destPath: "/v2/orders"
378
+ }
379
+ ],
380
+ "dev._base_domain_": [
381
+ {
382
+ srcPath: "/_api/paid-plans/v2/orders",
383
+ destPath: "/v2/orders"
384
+ },
385
+ {
386
+ srcPath: "/_api/pricing-plans/v2/orders",
273
387
  destPath: "/v2/orders"
274
388
  }
275
389
  ]