@wix/auto_sdk_ecom_order-invoices 1.0.7 → 1.0.9

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 (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +5 -0
  11. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +15 -0
  12. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  13. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  14. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +114 -0
  15. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  16. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  17. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +104 -0
  18. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +17 -0
  20. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +35 -0
  21. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  22. package/build/{ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.mts → cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  23. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +12 -0
  24. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  25. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +333 -0
  26. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +215 -0
  27. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +5 -0
  38. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js +11 -0
  39. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  40. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  41. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js +107 -0
  42. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  43. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  44. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +74 -0
  45. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  46. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +17 -0
  47. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js +27 -0
  48. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  49. package/build/{ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.ts → es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  50. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js +9 -0
  51. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  52. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +333 -0
  53. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +185 -0
  54. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +11 -0
  65. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +15 -0
  66. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  67. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  68. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +114 -0
  69. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  70. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  71. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +104 -0
  72. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  73. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +45 -0
  74. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +35 -0
  75. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  76. package/build/internal/{ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.mts → cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  77. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +12 -0
  78. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  79. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +396 -0
  80. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +215 -0
  81. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +11 -0
  92. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js +11 -0
  93. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +1 -0
  94. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +14 -0
  95. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js +107 -0
  96. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +1 -0
  97. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +20 -0
  98. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +74 -0
  99. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +1 -0
  100. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +45 -0
  101. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js +27 -0
  102. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +1 -0
  103. package/build/internal/{ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.ts → es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts} +42 -42
  104. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js +9 -0
  105. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +1 -0
  106. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +396 -0
  107. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +185 -0
  108. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -19
  111. package/build/index.d.ts +0 -19
  112. package/build/index.js +0 -284
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -256
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -53
  117. package/build/internal/index.d.ts +0 -53
  118. package/build/internal/index.js +0 -284
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -256
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -127
  123. package/build/internal/meta.d.ts +0 -127
  124. package/build/internal/meta.js +0 -209
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -179
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -127
  129. package/build/meta.d.ts +0 -127
  130. package/build/meta.js +0 -209
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -179
  133. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,396 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ export interface Invoice {
3
+ /** Invoice ID. */
4
+ _id?: string;
5
+ /** ID of the app that set the invoice. */
6
+ appId?: string;
7
+ }
8
+ export interface ListInvoicesForSingleOrderRequest {
9
+ /**
10
+ * Order ID.
11
+ * @minLength 1
12
+ * @maxLength 100
13
+ */
14
+ orderId?: string;
15
+ }
16
+ export interface ListInvoicesForSingleOrderResponse {
17
+ /** List of invoices. */
18
+ invoices?: Invoice[];
19
+ }
20
+ export interface ListInvoicesForMultipleOrdersRequest {
21
+ /**
22
+ * Order IDs for which to retrieve invoices.
23
+ * @maxSize 100
24
+ * @minLength 1
25
+ * @maxLength 100
26
+ */
27
+ orderIds: string[];
28
+ }
29
+ export interface ListInvoicesForMultipleOrdersResponse {
30
+ /** List of order IDs and their associated invoices. */
31
+ invoicesForOrder?: InvoicesForOrder[];
32
+ }
33
+ export interface InvoicesForOrder {
34
+ /** Order ID. */
35
+ orderId?: string;
36
+ /**
37
+ * Invoices info.
38
+ * @maxSize 300
39
+ */
40
+ invoicesInfo?: Invoice[];
41
+ }
42
+ export interface GenerateInvoiceRequest {
43
+ /**
44
+ * Order ID.
45
+ * @minLength 1
46
+ * @maxLength 100
47
+ */
48
+ orderId: string;
49
+ }
50
+ export interface GenerateInvoiceResponse {
51
+ /** Invoice ID. */
52
+ invoiceId?: string;
53
+ }
54
+ export interface BulkGenerateInvoicesRequest {
55
+ /**
56
+ * Order IDs.
57
+ * @minSize 1
58
+ * @maxSize 300
59
+ * @minLength 1
60
+ * @maxLength 100
61
+ */
62
+ orderIds: string[];
63
+ }
64
+ export interface BulkGenerateInvoicesResponse {
65
+ results?: BulkInvoiceResult[];
66
+ bulkActionMetadata?: BulkActionMetadata;
67
+ }
68
+ export interface BulkInvoiceResult {
69
+ itemMetadata?: ItemMetadata;
70
+ item?: InvoiceForOrder;
71
+ }
72
+ export interface ItemMetadata {
73
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
74
+ _id?: string | null;
75
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
76
+ originalIndex?: number;
77
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
78
+ success?: boolean;
79
+ /** Details about the error in case of failure. */
80
+ error?: ApplicationError;
81
+ }
82
+ export interface ApplicationError {
83
+ /** Error code. */
84
+ code?: string;
85
+ /** Description of the error. */
86
+ description?: string;
87
+ /** Data related to the error. */
88
+ data?: Record<string, any> | null;
89
+ }
90
+ export interface InvoiceForOrder {
91
+ /** Order ID. */
92
+ orderId?: string;
93
+ /** Invoice ID. */
94
+ invoiceId?: string;
95
+ }
96
+ export interface BulkActionMetadata {
97
+ /** Number of items that were successfully processed. */
98
+ totalSuccesses?: number;
99
+ /** Number of items that couldn't be processed. */
100
+ totalFailures?: number;
101
+ /** Number of failures without details because detailed failure threshold was exceeded. */
102
+ undetailedFailures?: number;
103
+ }
104
+ export interface AddInvoiceToOrderRequest {
105
+ /**
106
+ * Order ID.
107
+ * @minLength 1
108
+ * @maxLength 100
109
+ */
110
+ orderId: string;
111
+ /** Invoice info. */
112
+ invoiceInfo: Invoice;
113
+ }
114
+ export interface AddInvoiceToOrderResponse {
115
+ /** List of order invoices. */
116
+ orderInvoices?: Invoice[];
117
+ }
118
+ export interface DomainEvent extends DomainEventBodyOneOf {
119
+ createdEvent?: EntityCreatedEvent;
120
+ updatedEvent?: EntityUpdatedEvent;
121
+ deletedEvent?: EntityDeletedEvent;
122
+ actionEvent?: ActionEvent;
123
+ /**
124
+ * Unique event ID.
125
+ * Allows clients to ignore duplicate webhooks.
126
+ */
127
+ _id?: string;
128
+ /**
129
+ * Assumes actions are also always typed to an entity_type
130
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
131
+ */
132
+ entityFqdn?: string;
133
+ /**
134
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
135
+ * This is although the created/updated/deleted notion is duplication of the oneof types
136
+ * Example: created/updated/deleted/started/completed/email_opened
137
+ */
138
+ slug?: string;
139
+ /** ID of the entity associated with the event. */
140
+ entityId?: string;
141
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
142
+ eventTime?: Date | null;
143
+ /**
144
+ * Whether the event was triggered as a result of a privacy regulation application
145
+ * (for example, GDPR).
146
+ */
147
+ triggeredByAnonymizeRequest?: boolean | null;
148
+ /** If present, indicates the action that triggered the event. */
149
+ originatedFrom?: string | null;
150
+ /**
151
+ * A sequence number defining the order of updates to the underlying entity.
152
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
153
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
154
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
155
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
156
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
157
+ */
158
+ entityEventSequence?: string | null;
159
+ }
160
+ /** @oneof */
161
+ export interface DomainEventBodyOneOf {
162
+ createdEvent?: EntityCreatedEvent;
163
+ updatedEvent?: EntityUpdatedEvent;
164
+ deletedEvent?: EntityDeletedEvent;
165
+ actionEvent?: ActionEvent;
166
+ }
167
+ export interface EntityCreatedEvent {
168
+ entity?: string;
169
+ }
170
+ export interface RestoreInfo {
171
+ deletedDate?: Date | null;
172
+ }
173
+ export interface EntityUpdatedEvent {
174
+ /**
175
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
176
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
177
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
178
+ */
179
+ currentEntity?: string;
180
+ }
181
+ export interface EntityDeletedEvent {
182
+ /** Entity that was deleted */
183
+ deletedEntity?: string | null;
184
+ }
185
+ export interface ActionEvent {
186
+ body?: string;
187
+ }
188
+ export interface Empty {
189
+ }
190
+ export interface GetOrderInvoiceRequest {
191
+ /**
192
+ * Invoice ID.
193
+ * @minLength 1
194
+ * @maxLength 100
195
+ */
196
+ invoiceId?: string;
197
+ }
198
+ export interface GetOrderInvoiceResponse {
199
+ /**
200
+ * Order ID.
201
+ * @minLength 1
202
+ * @maxLength 100
203
+ */
204
+ orderId?: string;
205
+ /** Invoice info. */
206
+ invoiceInfo?: Invoice;
207
+ }
208
+ export interface GenerateInvoiceWithNumberRequest {
209
+ /**
210
+ * Order ID.
211
+ * @minLength 1
212
+ * @maxLength 100
213
+ */
214
+ orderId?: string;
215
+ /**
216
+ * @minLength 1
217
+ * @maxLength 11
218
+ */
219
+ invoiceNumber?: string;
220
+ /** Date and time the payment was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format. Defaults to current time when not provided. */
221
+ issueDate?: Date | null;
222
+ }
223
+ export interface GenerateInvoiceWithNumberResponse {
224
+ /**
225
+ * Invoice ID.
226
+ * @minLength 1
227
+ * @maxLength 100
228
+ */
229
+ invoiceId?: string;
230
+ }
231
+ export interface MessageEnvelope {
232
+ /**
233
+ * App instance ID.
234
+ * @format GUID
235
+ */
236
+ instanceId?: string | null;
237
+ /**
238
+ * Event type.
239
+ * @maxLength 150
240
+ */
241
+ eventType?: string;
242
+ /** The identification type and identity data. */
243
+ identity?: IdentificationData;
244
+ /** Stringify payload. */
245
+ data?: string;
246
+ }
247
+ export interface IdentificationData extends IdentificationDataIdOneOf {
248
+ /**
249
+ * ID of a site visitor that has not logged in to the site.
250
+ * @format GUID
251
+ */
252
+ anonymousVisitorId?: string;
253
+ /**
254
+ * ID of a site visitor that has logged in to the site.
255
+ * @format GUID
256
+ */
257
+ memberId?: string;
258
+ /**
259
+ * ID of a Wix user (site owner, contributor, etc.).
260
+ * @format GUID
261
+ */
262
+ wixUserId?: string;
263
+ /**
264
+ * ID of an app.
265
+ * @format GUID
266
+ */
267
+ appId?: string;
268
+ /** @readonly */
269
+ identityType?: WebhookIdentityType;
270
+ }
271
+ /** @oneof */
272
+ export interface IdentificationDataIdOneOf {
273
+ /**
274
+ * ID of a site visitor that has not logged in to the site.
275
+ * @format GUID
276
+ */
277
+ anonymousVisitorId?: string;
278
+ /**
279
+ * ID of a site visitor that has logged in to the site.
280
+ * @format GUID
281
+ */
282
+ memberId?: string;
283
+ /**
284
+ * ID of a Wix user (site owner, contributor, etc.).
285
+ * @format GUID
286
+ */
287
+ wixUserId?: string;
288
+ /**
289
+ * ID of an app.
290
+ * @format GUID
291
+ */
292
+ appId?: string;
293
+ }
294
+ export declare enum WebhookIdentityType {
295
+ UNKNOWN = "UNKNOWN",
296
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
297
+ MEMBER = "MEMBER",
298
+ WIX_USER = "WIX_USER",
299
+ APP = "APP"
300
+ }
301
+ type InvoiceNonNullablePaths = `_id` | `appId`;
302
+ /**
303
+ * Retrieves the IDs of invoices associated with all specified orders.
304
+ *
305
+ *
306
+ * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
307
+ * @param orderIds - Order IDs for which to retrieve invoices.
308
+ * @public
309
+ * @documentationMaturity preview
310
+ * @requiredField orderIds
311
+ * @permissionId ECOM.READ_INVOICES
312
+ * @permissionScope Manage Stores - all permissions
313
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
314
+ * @permissionScope Read eCommerce - all read permissions
315
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
316
+ * @permissionScope Read Orders
317
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
318
+ * @permissionScope Read Stores - all read permissions
319
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
320
+ * @permissionScope Manage Restaurants - all permissions
321
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
322
+ * @permissionScope Manage eCommerce - all permissions
323
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
324
+ * @permissionScope Manage Orders
325
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
326
+ * @applicableIdentity APP
327
+ * @applicableIdentity MEMBER
328
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders
329
+ */
330
+ export declare function listInvoicesForMultipleOrders(orderIds: string[]): Promise<NonNullablePaths<ListInvoicesForMultipleOrdersResponse, `invoicesForOrder` | `invoicesForOrder.${number}.orderId` | {
331
+ [P in InvoiceNonNullablePaths]: `invoicesForOrder.${number}.invoicesInfo.${number}.${P}`;
332
+ }[InvoiceNonNullablePaths]>>;
333
+ /**
334
+ * Generates and adds an invoice to a specified order.
335
+ * @param orderId - Order ID.
336
+ * @internal
337
+ * @documentationMaturity preview
338
+ * @requiredField orderId
339
+ * @permissionId ECOM.MODIFY_INVOICES
340
+ * @permissionScope Manage Stores - all permissions
341
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
342
+ * @permissionScope Manage Restaurants - all permissions
343
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
344
+ * @permissionScope Manage eCommerce - all permissions
345
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
346
+ * @permissionScope Manage Orders
347
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
348
+ * @applicableIdentity APP
349
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice
350
+ */
351
+ export declare function generateInvoice(orderId: string): Promise<NonNullablePaths<GenerateInvoiceResponse, `invoiceId`>>;
352
+ /**
353
+ * Generates and adds invoices to all specified orders.
354
+ * @param orderIds - Order IDs.
355
+ * @internal
356
+ * @documentationMaturity preview
357
+ * @requiredField orderIds
358
+ * @permissionId ECOM.MODIFY_INVOICES
359
+ * @permissionScope Manage Stores - all permissions
360
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
361
+ * @permissionScope Manage Restaurants - all permissions
362
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
363
+ * @permissionScope Manage eCommerce - all permissions
364
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
365
+ * @permissionScope Manage Orders
366
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
367
+ * @applicableIdentity APP
368
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices
369
+ */
370
+ export declare function bulkGenerateInvoices(orderIds: string[]): Promise<NonNullablePaths<BulkGenerateInvoicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.orderId` | `results.${number}.item.invoiceId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
371
+ /**
372
+ * Adds an invoice to a specified order.
373
+ * @param orderId - Order ID.
374
+ * @param invoiceInfo - Invoice info.
375
+ * @internal
376
+ * @documentationMaturity preview
377
+ * @requiredField invoiceInfo
378
+ * @requiredField invoiceInfo._id
379
+ * @requiredField invoiceInfo.appId
380
+ * @requiredField orderId
381
+ * @permissionId ECOM.ADD_INVOICE
382
+ * @permissionScope Manage Stores - all permissions
383
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
384
+ * @permissionScope Manage Restaurants - all permissions
385
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
386
+ * @permissionScope Manage eCommerce - all permissions
387
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
388
+ * @permissionScope Manage Orders
389
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
390
+ * @applicableIdentity APP
391
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder
392
+ */
393
+ export declare function addInvoiceToOrder(orderId: string, invoiceInfo: NonNullablePaths<Invoice, `_id` | `appId`>): Promise<NonNullablePaths<AddInvoiceToOrderResponse, {
394
+ [P in InvoiceNonNullablePaths]: `orderInvoices.${number}.${P}`;
395
+ }[InvoiceNonNullablePaths]>>;
396
+ export {};
@@ -0,0 +1,185 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
+ import * as ambassadorWixEcomOrdersV1Invoice from './ecom-orders-v1-invoice-order-invoices.http.js';
4
+ export var WebhookIdentityType;
5
+ (function (WebhookIdentityType) {
6
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
7
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
8
+ WebhookIdentityType["MEMBER"] = "MEMBER";
9
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
10
+ WebhookIdentityType["APP"] = "APP";
11
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
12
+ /**
13
+ * Retrieves the IDs of invoices associated with all specified orders.
14
+ *
15
+ *
16
+ * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
17
+ * @param orderIds - Order IDs for which to retrieve invoices.
18
+ * @public
19
+ * @documentationMaturity preview
20
+ * @requiredField orderIds
21
+ * @permissionId ECOM.READ_INVOICES
22
+ * @permissionScope Manage Stores - all permissions
23
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
24
+ * @permissionScope Read eCommerce - all read permissions
25
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
26
+ * @permissionScope Read Orders
27
+ * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
28
+ * @permissionScope Read Stores - all read permissions
29
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
30
+ * @permissionScope Manage Restaurants - all permissions
31
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
32
+ * @permissionScope Manage eCommerce - all permissions
33
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
34
+ * @permissionScope Manage Orders
35
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
36
+ * @applicableIdentity APP
37
+ * @applicableIdentity MEMBER
38
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders
39
+ */
40
+ export async function listInvoicesForMultipleOrders(orderIds) {
41
+ // @ts-ignore
42
+ const { httpClient, sideEffects } = arguments[1];
43
+ const payload = renameKeysFromSDKRequestToRESTRequest({ orderIds: orderIds });
44
+ const reqOpts = ambassadorWixEcomOrdersV1Invoice.listInvoicesForMultipleOrders(payload);
45
+ sideEffects?.onSiteCall?.();
46
+ try {
47
+ const result = await httpClient.request(reqOpts);
48
+ sideEffects?.onSuccess?.(result);
49
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
50
+ }
51
+ catch (err) {
52
+ const transformedError = sdkTransformError(err, {
53
+ spreadPathsToArguments: {},
54
+ explicitPathsToArguments: { orderIds: '$[0]' },
55
+ singleArgumentUnchanged: false,
56
+ }, ['orderIds']);
57
+ sideEffects?.onError?.(err);
58
+ throw transformedError;
59
+ }
60
+ }
61
+ /**
62
+ * Generates and adds an invoice to a specified order.
63
+ * @param orderId - Order ID.
64
+ * @internal
65
+ * @documentationMaturity preview
66
+ * @requiredField orderId
67
+ * @permissionId ECOM.MODIFY_INVOICES
68
+ * @permissionScope Manage Stores - all permissions
69
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
70
+ * @permissionScope Manage Restaurants - all permissions
71
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
72
+ * @permissionScope Manage eCommerce - all permissions
73
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
74
+ * @permissionScope Manage Orders
75
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
76
+ * @applicableIdentity APP
77
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice
78
+ */
79
+ export async function generateInvoice(orderId) {
80
+ // @ts-ignore
81
+ const { httpClient, sideEffects } = arguments[1];
82
+ const payload = renameKeysFromSDKRequestToRESTRequest({ orderId: orderId });
83
+ const reqOpts = ambassadorWixEcomOrdersV1Invoice.generateInvoice(payload);
84
+ sideEffects?.onSiteCall?.();
85
+ try {
86
+ const result = await httpClient.request(reqOpts);
87
+ sideEffects?.onSuccess?.(result);
88
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
89
+ }
90
+ catch (err) {
91
+ const transformedError = sdkTransformError(err, {
92
+ spreadPathsToArguments: {},
93
+ explicitPathsToArguments: { orderId: '$[0]' },
94
+ singleArgumentUnchanged: false,
95
+ }, ['orderId']);
96
+ sideEffects?.onError?.(err);
97
+ throw transformedError;
98
+ }
99
+ }
100
+ /**
101
+ * Generates and adds invoices to all specified orders.
102
+ * @param orderIds - Order IDs.
103
+ * @internal
104
+ * @documentationMaturity preview
105
+ * @requiredField orderIds
106
+ * @permissionId ECOM.MODIFY_INVOICES
107
+ * @permissionScope Manage Stores - all permissions
108
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
109
+ * @permissionScope Manage Restaurants - all permissions
110
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
111
+ * @permissionScope Manage eCommerce - all permissions
112
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
113
+ * @permissionScope Manage Orders
114
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
115
+ * @applicableIdentity APP
116
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices
117
+ */
118
+ export async function bulkGenerateInvoices(orderIds) {
119
+ // @ts-ignore
120
+ const { httpClient, sideEffects } = arguments[1];
121
+ const payload = renameKeysFromSDKRequestToRESTRequest({ orderIds: orderIds });
122
+ const reqOpts = ambassadorWixEcomOrdersV1Invoice.bulkGenerateInvoices(payload);
123
+ sideEffects?.onSiteCall?.();
124
+ try {
125
+ const result = await httpClient.request(reqOpts);
126
+ sideEffects?.onSuccess?.(result);
127
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
128
+ }
129
+ catch (err) {
130
+ const transformedError = sdkTransformError(err, {
131
+ spreadPathsToArguments: {},
132
+ explicitPathsToArguments: { orderIds: '$[0]' },
133
+ singleArgumentUnchanged: false,
134
+ }, ['orderIds']);
135
+ sideEffects?.onError?.(err);
136
+ throw transformedError;
137
+ }
138
+ }
139
+ /**
140
+ * Adds an invoice to a specified order.
141
+ * @param orderId - Order ID.
142
+ * @param invoiceInfo - Invoice info.
143
+ * @internal
144
+ * @documentationMaturity preview
145
+ * @requiredField invoiceInfo
146
+ * @requiredField invoiceInfo._id
147
+ * @requiredField invoiceInfo.appId
148
+ * @requiredField orderId
149
+ * @permissionId ECOM.ADD_INVOICE
150
+ * @permissionScope Manage Stores - all permissions
151
+ * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
152
+ * @permissionScope Manage Restaurants - all permissions
153
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
154
+ * @permissionScope Manage eCommerce - all permissions
155
+ * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
156
+ * @permissionScope Manage Orders
157
+ * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
158
+ * @applicableIdentity APP
159
+ * @fqn com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder
160
+ */
161
+ export async function addInvoiceToOrder(orderId, invoiceInfo) {
162
+ // @ts-ignore
163
+ const { httpClient, sideEffects } = arguments[2];
164
+ const payload = renameKeysFromSDKRequestToRESTRequest({
165
+ orderId: orderId,
166
+ invoiceInfo: invoiceInfo,
167
+ });
168
+ const reqOpts = ambassadorWixEcomOrdersV1Invoice.addInvoiceToOrder(payload);
169
+ sideEffects?.onSiteCall?.();
170
+ try {
171
+ const result = await httpClient.request(reqOpts);
172
+ sideEffects?.onSuccess?.(result);
173
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
174
+ }
175
+ catch (err) {
176
+ const transformedError = sdkTransformError(err, {
177
+ spreadPathsToArguments: {},
178
+ explicitPathsToArguments: { orderId: '$[0]', invoiceInfo: '$[1]' },
179
+ singleArgumentUnchanged: false,
180
+ }, ['orderId', 'invoiceInfo']);
181
+ sideEffects?.onError?.(err);
182
+ throw transformedError;
183
+ }
184
+ }
185
+ //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.universal.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-inv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,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE;YAClE,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,EAAE,aAAa,CAAC,CAC3B,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_ecom_order-invoices",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
7
7
  },
8
8
  "keywords": [],
9
9
  "sideEffects": false,
10
- "main": "/build/index.js",
11
- "types": "./build/index.d.mts",
10
+ "main": "./build/cjs/index.js",
11
+ "types": "./build/es/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./build/index.mjs",
15
- "require": "./build/index.js",
16
- "types": "./build/index.d.mts"
14
+ "import": "./build/es/index.js",
15
+ "require": "./build/cjs/index.js",
16
+ "types": "./build/es/index.d.ts"
17
17
  },
18
18
  "./package.json": "./package.json",
19
19
  "./meta": {
20
- "import": "./build/meta.mjs",
21
- "require": "./build/meta.js",
22
- "types": "./build/meta.d.mts"
20
+ "import": "./build/es/meta.js",
21
+ "require": "./build/cjs/meta.js",
22
+ "types": "./build/es/meta.d.ts"
23
23
  }
24
24
  },
25
25
  "files": [
@@ -32,11 +32,10 @@
32
32
  "@wix/sdk-types": "^1.13.16"
33
33
  },
34
34
  "devDependencies": {
35
- "tsup": "^8.4.0",
36
35
  "typescript": "^5.3.2"
37
36
  },
38
37
  "scripts": {
39
- "build": "tsup",
38
+ "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
40
39
  "test": ":"
41
40
  },
42
41
  "wix": {
@@ -49,5 +48,5 @@
49
48
  "fqdn": "wix.ecom.orders.v1.invoice"
50
49
  }
51
50
  },
52
- "falconPackageHash": "c8a2b3506358006dfb168ba03d40e208f4b96b3a42ce0e5e8495f971"
51
+ "falconPackageHash": "420a2f54fded468f6dbede131b2c6622710cc510204ae6909e422f6b"
53
52
  }
package/build/index.d.mts DELETED
@@ -1,19 +0,0 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { L as ListInvoicesForMultipleOrdersResponse } from './ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.mjs';
3
- export { p as ActionEvent, k as AddInvoiceToOrderRequest, l as AddInvoiceToOrderResponse, A as ApplicationError, j as BulkActionMetadata, B as BulkGenerateInvoicesRequest, f as BulkGenerateInvoicesResponse, g as BulkInvoiceResult, D as DomainEvent, m as DomainEventBodyOneOf, q as Empty, E as EntityCreatedEvent, o as EntityDeletedEvent, n as EntityUpdatedEvent, G as GenerateInvoiceRequest, e as GenerateInvoiceResponse, t as GenerateInvoiceWithNumberRequest, u as GenerateInvoiceWithNumberResponse, r as GetOrderInvoiceRequest, s as GetOrderInvoiceResponse, v as IdentificationData, w as IdentificationDataIdOneOf, I as Invoice, i as InvoiceForOrder, d as InvoicesForOrder, h as ItemMetadata, c as ListInvoicesForMultipleOrdersRequest, a as ListInvoicesForSingleOrderRequest, b as ListInvoicesForSingleOrderResponse, M as MessageEnvelope, R as RestoreInfo, W as WebhookIdentityType } from './ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.mjs';
4
-
5
- declare function listInvoicesForMultipleOrders$1(httpClient: HttpClient): ListInvoicesForMultipleOrdersSignature;
6
- interface ListInvoicesForMultipleOrdersSignature {
7
- /**
8
- * Retrieves the IDs of invoices associated with all specified orders.
9
- *
10
- *
11
- * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
12
- * @param - Order IDs for which to retrieve invoices.
13
- */
14
- (orderIds: string[]): Promise<ListInvoicesForMultipleOrdersResponse>;
15
- }
16
-
17
- declare const listInvoicesForMultipleOrders: MaybeContext<BuildRESTFunction<typeof listInvoicesForMultipleOrders$1> & typeof listInvoicesForMultipleOrders$1>;
18
-
19
- export { ListInvoicesForMultipleOrdersResponse, listInvoicesForMultipleOrders };
package/build/index.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { L as ListInvoicesForMultipleOrdersResponse } from './ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.js';
3
- export { p as ActionEvent, k as AddInvoiceToOrderRequest, l as AddInvoiceToOrderResponse, A as ApplicationError, j as BulkActionMetadata, B as BulkGenerateInvoicesRequest, f as BulkGenerateInvoicesResponse, g as BulkInvoiceResult, D as DomainEvent, m as DomainEventBodyOneOf, q as Empty, E as EntityCreatedEvent, o as EntityDeletedEvent, n as EntityUpdatedEvent, G as GenerateInvoiceRequest, e as GenerateInvoiceResponse, t as GenerateInvoiceWithNumberRequest, u as GenerateInvoiceWithNumberResponse, r as GetOrderInvoiceRequest, s as GetOrderInvoiceResponse, v as IdentificationData, w as IdentificationDataIdOneOf, I as Invoice, i as InvoiceForOrder, d as InvoicesForOrder, h as ItemMetadata, c as ListInvoicesForMultipleOrdersRequest, a as ListInvoicesForSingleOrderRequest, b as ListInvoicesForSingleOrderResponse, M as MessageEnvelope, R as RestoreInfo, W as WebhookIdentityType } from './ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.js';
4
-
5
- declare function listInvoicesForMultipleOrders$1(httpClient: HttpClient): ListInvoicesForMultipleOrdersSignature;
6
- interface ListInvoicesForMultipleOrdersSignature {
7
- /**
8
- * Retrieves the IDs of invoices associated with all specified orders.
9
- *
10
- *
11
- * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
12
- * @param - Order IDs for which to retrieve invoices.
13
- */
14
- (orderIds: string[]): Promise<ListInvoicesForMultipleOrdersResponse>;
15
- }
16
-
17
- declare const listInvoicesForMultipleOrders: MaybeContext<BuildRESTFunction<typeof listInvoicesForMultipleOrders$1> & typeof listInvoicesForMultipleOrders$1>;
18
-
19
- export { ListInvoicesForMultipleOrdersResponse, listInvoicesForMultipleOrders };