@wix/auto_sdk_ecom_order-invoices 1.0.4 → 1.0.6

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 (134) hide show
  1. package/build/{cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.mts} +42 -87
  2. package/build/{internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → ecom-orders-v1-invoice-order-invoices.universal-MRNaa-Xt.d.ts} +42 -87
  3. package/build/index.d.mts +19 -0
  4. package/build/index.d.ts +19 -0
  5. package/build/index.js +284 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +256 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.mts} +42 -87
  10. package/build/{es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → internal/ecom-orders-v1-invoice-order-invoices.universal-CZFxrTkE.d.ts} +42 -87
  11. package/build/internal/index.d.mts +53 -0
  12. package/build/internal/index.d.ts +53 -0
  13. package/build/internal/index.js +284 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +256 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +127 -0
  18. package/build/internal/meta.d.ts +127 -0
  19. package/build/internal/meta.js +209 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +179 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +127 -0
  24. package/build/meta.d.ts +127 -0
  25. package/build/meta.js +209 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +179 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -5
  40. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -15
  41. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
  42. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
  43. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -114
  44. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
  45. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
  46. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -104
  47. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -17
  49. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -35
  50. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
  51. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -12
  52. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
  53. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -375
  54. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -223
  55. package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -5
  67. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -11
  68. package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
  69. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
  70. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -107
  71. package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
  72. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
  73. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -74
  74. package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
  75. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -17
  76. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -27
  77. package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
  78. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -9
  79. package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
  80. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -375
  81. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -193
  82. package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -11
  93. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -15
  94. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
  96. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -114
  97. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
  99. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -104
  100. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -45
  102. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -35
  103. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -12
  105. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -442
  107. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -223
  108. package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -11
  119. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -11
  120. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
  122. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -107
  123. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
  125. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -74
  126. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -45
  128. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -27
  129. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -9
  131. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -442
  133. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -193
  134. package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
@@ -1,104 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.addInvoiceToOrder = exports.bulkGenerateInvoices = exports.generateInvoice = exports.listInvoicesForMultipleOrders = void 0;
27
- const ambassadorWixEcomOrdersV1Invoice = __importStar(require("./ecom-orders-v1-invoice-order-invoices.http.js"));
28
- function listInvoicesForMultipleOrders() {
29
- const payload = {};
30
- const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.listInvoicesForMultipleOrders(payload);
31
- const getUrl = (context) => {
32
- const { url } = getRequestOptions(context);
33
- return url;
34
- };
35
- return {
36
- getUrl,
37
- httpMethod: 'POST',
38
- path: '/v1/invoices/list-by-ids',
39
- pathParams: {},
40
- __requestType: null,
41
- __originalRequestType: null,
42
- __responseType: null,
43
- __originalResponseType: null,
44
- };
45
- }
46
- exports.listInvoicesForMultipleOrders = listInvoicesForMultipleOrders;
47
- function generateInvoice() {
48
- const payload = { orderId: ':orderId' };
49
- const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.generateInvoice(payload);
50
- const getUrl = (context) => {
51
- const { url } = getRequestOptions(context);
52
- return url;
53
- };
54
- return {
55
- getUrl,
56
- httpMethod: 'POST',
57
- path: '/v1/invoices/orders/{orderId}',
58
- pathParams: { orderId: 'orderId' },
59
- __requestType: null,
60
- __originalRequestType: null,
61
- __responseType: null,
62
- __originalResponseType: null,
63
- };
64
- }
65
- exports.generateInvoice = generateInvoice;
66
- function bulkGenerateInvoices() {
67
- const payload = {};
68
- const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.bulkGenerateInvoices(payload);
69
- const getUrl = (context) => {
70
- const { url } = getRequestOptions(context);
71
- return url;
72
- };
73
- return {
74
- getUrl,
75
- httpMethod: 'POST',
76
- path: '/v1/bulk/invoices/generate',
77
- pathParams: {},
78
- __requestType: null,
79
- __originalRequestType: null,
80
- __responseType: null,
81
- __originalResponseType: null,
82
- };
83
- }
84
- exports.bulkGenerateInvoices = bulkGenerateInvoices;
85
- function addInvoiceToOrder() {
86
- const payload = { orderId: ':orderId' };
87
- const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.addInvoiceToOrder(payload);
88
- const getUrl = (context) => {
89
- const { url } = getRequestOptions(context);
90
- return url;
91
- };
92
- return {
93
- getUrl,
94
- httpMethod: 'POST',
95
- path: '/v1/invoices/orders/{orderId}/add-invoice',
96
- pathParams: { orderId: 'orderId' },
97
- __requestType: null,
98
- __originalRequestType: null,
99
- __responseType: null,
100
- __originalResponseType: null,
101
- };
102
- }
103
- exports.addInvoiceToOrder = addInvoiceToOrder;
104
- //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.meta.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kHAAoG;AAsBpG,SAAgB,6BAA6B;IAU3C,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,sEA8BC;AAED,SAAgB,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,UAAU,EAAS,CAAC;IAE/C,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,0CA8BC;AAED,SAAgB,oBAAoB;IAUlC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oDA8BC;AAED,SAAgB,iBAAiB;IAU/B,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,UAAU,EAAS,CAAC;IAE/C,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,2CAA2C;QACjD,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,8CA8BC"}
@@ -1,17 +0,0 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { ListInvoicesForMultipleOrdersResponse, ListInvoicesForMultipleOrdersResponseNonNullableFields } from './ecom-orders-v1-invoice-order-invoices.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function listInvoicesForMultipleOrders(httpClient: HttpClient): ListInvoicesForMultipleOrdersSignature;
7
- interface ListInvoicesForMultipleOrdersSignature {
8
- /**
9
- * Retrieves the IDs of invoices associated with all specified orders.
10
- *
11
- *
12
- * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
13
- * @param - Order IDs for which to retrieve invoices.
14
- */
15
- (orderIds: string[]): Promise<ListInvoicesForMultipleOrdersResponse & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
16
- }
17
- export { ActionEvent, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse, AddInvoiceToOrderResponseNonNullableFields, ApplicationError, BulkActionMetadata, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse, BulkGenerateInvoicesResponseNonNullableFields, BulkInvoiceResult, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GenerateInvoiceRequest, GenerateInvoiceResponse, GenerateInvoiceResponseNonNullableFields, GenerateInvoiceWithNumberRequest, GenerateInvoiceWithNumberResponse, GetOrderInvoiceRequest, GetOrderInvoiceResponse, IdentificationData, IdentificationDataIdOneOf, Invoice, InvoiceForOrder, InvoicesForOrder, ItemMetadata, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse, ListInvoicesForMultipleOrdersResponseNonNullableFields, ListInvoicesForSingleOrderRequest, ListInvoicesForSingleOrderResponse, MessageEnvelope, RestoreInfo, WebhookIdentityType, } from './ecom-orders-v1-invoice-order-invoices.universal.js';
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookIdentityType = exports.addInvoiceToOrder = exports.bulkGenerateInvoices = exports.generateInvoice = exports.listInvoicesForMultipleOrders = exports.__metadata = void 0;
4
- const ecom_orders_v1_invoice_order_invoices_universal_js_1 = require("./ecom-orders-v1-invoice-order-invoices.universal.js");
5
- exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
6
- function listInvoicesForMultipleOrders(httpClient) {
7
- return (orderIds) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.listInvoicesForMultipleOrders)(orderIds,
8
- // @ts-ignore
9
- { httpClient });
10
- }
11
- exports.listInvoicesForMultipleOrders = listInvoicesForMultipleOrders;
12
- /** @internal */
13
- function generateInvoice(httpClient) {
14
- return (orderId) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.generateInvoice)(orderId,
15
- // @ts-ignore
16
- { httpClient });
17
- }
18
- exports.generateInvoice = generateInvoice;
19
- /** @internal */
20
- function bulkGenerateInvoices(httpClient) {
21
- return (orderIds) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.bulkGenerateInvoices)(orderIds,
22
- // @ts-ignore
23
- { httpClient });
24
- }
25
- exports.bulkGenerateInvoices = bulkGenerateInvoices;
26
- /** @internal */
27
- function addInvoiceToOrder(httpClient) {
28
- return (orderId, invoiceInfo) => (0, ecom_orders_v1_invoice_order_invoices_universal_js_1.addInvoiceToOrder)(orderId, invoiceInfo,
29
- // @ts-ignore
30
- { httpClient });
31
- }
32
- exports.addInvoiceToOrder = addInvoiceToOrder;
33
- var ecom_orders_v1_invoice_order_invoices_universal_js_2 = require("./ecom-orders-v1-invoice-order-invoices.universal.js");
34
- Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return ecom_orders_v1_invoice_order_invoices_universal_js_2.WebhookIdentityType; } });
35
- //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.public.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.public.ts"],"names":[],"mappings":";;;AACA,6HAc8D;AAEjD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,kFAAsC,EACpC,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sEASC;AAgBD,gBAAgB;AAChB,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,IAAA,oEAAwB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0CASC;AAYD,gBAAgB;AAChB,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,IAAA,yEAA6B,EAC3B,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,oDASC;AAYD,gBAAgB;AAChB,SAAgB,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,WAAoB,EAAE,EAAE,CAC/C,IAAA,sEAA0B,EACxB,OAAO,EACP,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,8CAUC;AAaD,2HAsC8D;AAD5D,yJAAA,mBAAmB,OAAA"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookIdentityType = void 0;
4
- 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 || (exports.WebhookIdentityType = WebhookIdentityType = {}));
12
- //# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":";;;AAqUA,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -1,375 +0,0 @@
1
- export interface Invoice {
2
- /** Invoice ID. */
3
- _id?: string;
4
- /** ID of the app that set the invoice. */
5
- appId?: string;
6
- }
7
- export interface ListInvoicesForSingleOrderRequest {
8
- /**
9
- * Order ID.
10
- * @minLength 1
11
- * @maxLength 100
12
- */
13
- orderId?: string;
14
- }
15
- export interface ListInvoicesForSingleOrderResponse {
16
- /** List of invoices. */
17
- invoices?: Invoice[];
18
- }
19
- export interface ListInvoicesForMultipleOrdersRequest {
20
- /**
21
- * Order IDs for which to retrieve invoices.
22
- * @maxSize 100
23
- * @minLength 1
24
- * @maxLength 100
25
- */
26
- orderIds: string[];
27
- }
28
- export interface ListInvoicesForMultipleOrdersResponse {
29
- /** List of order IDs and their associated invoices. */
30
- invoicesForOrder?: InvoicesForOrder[];
31
- }
32
- export interface InvoicesForOrder {
33
- /** Order ID. */
34
- orderId?: string;
35
- /**
36
- * Invoices info.
37
- * @maxSize 300
38
- */
39
- invoicesInfo?: Invoice[];
40
- }
41
- export interface GenerateInvoiceRequest {
42
- /**
43
- * Order ID.
44
- * @minLength 1
45
- * @maxLength 100
46
- */
47
- orderId: string;
48
- }
49
- export interface GenerateInvoiceResponse {
50
- /** Invoice ID. */
51
- invoiceId?: string;
52
- }
53
- export interface BulkGenerateInvoicesRequest {
54
- /**
55
- * Order IDs.
56
- * @minSize 1
57
- * @maxSize 300
58
- * @minLength 1
59
- * @maxLength 100
60
- */
61
- orderIds: string[];
62
- }
63
- export interface BulkGenerateInvoicesResponse {
64
- results?: BulkInvoiceResult[];
65
- bulkActionMetadata?: BulkActionMetadata;
66
- }
67
- export interface BulkInvoiceResult {
68
- itemMetadata?: ItemMetadata;
69
- item?: InvoiceForOrder;
70
- }
71
- export interface ItemMetadata {
72
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
73
- _id?: string | null;
74
- /** Index of the item within the request array. Allows for correlation between request and response items. */
75
- originalIndex?: number;
76
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
77
- success?: boolean;
78
- /** Details about the error in case of failure. */
79
- error?: ApplicationError;
80
- }
81
- export interface ApplicationError {
82
- /** Error code. */
83
- code?: string;
84
- /** Description of the error. */
85
- description?: string;
86
- /** Data related to the error. */
87
- data?: Record<string, any> | null;
88
- }
89
- export interface InvoiceForOrder {
90
- /** Order ID. */
91
- orderId?: string;
92
- /** Invoice ID. */
93
- invoiceId?: string;
94
- }
95
- export interface BulkActionMetadata {
96
- /** Number of items that were successfully processed. */
97
- totalSuccesses?: number;
98
- /** Number of items that couldn't be processed. */
99
- totalFailures?: number;
100
- /** Number of failures without details because detailed failure threshold was exceeded. */
101
- undetailedFailures?: number;
102
- }
103
- export interface AddInvoiceToOrderRequest {
104
- /**
105
- * Order ID.
106
- * @minLength 1
107
- * @maxLength 100
108
- */
109
- orderId: string;
110
- /** Invoice info. */
111
- invoiceInfo: Invoice;
112
- }
113
- export interface AddInvoiceToOrderResponse {
114
- /** List of order invoices. */
115
- orderInvoices?: Invoice[];
116
- }
117
- export interface DomainEvent extends DomainEventBodyOneOf {
118
- createdEvent?: EntityCreatedEvent;
119
- updatedEvent?: EntityUpdatedEvent;
120
- deletedEvent?: EntityDeletedEvent;
121
- actionEvent?: ActionEvent;
122
- /**
123
- * Unique event ID.
124
- * Allows clients to ignore duplicate webhooks.
125
- */
126
- _id?: string;
127
- /**
128
- * Assumes actions are also always typed to an entity_type
129
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
130
- */
131
- entityFqdn?: string;
132
- /**
133
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
134
- * This is although the created/updated/deleted notion is duplication of the oneof types
135
- * Example: created/updated/deleted/started/completed/email_opened
136
- */
137
- slug?: string;
138
- /** ID of the entity associated with the event. */
139
- entityId?: string;
140
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
141
- eventTime?: Date | null;
142
- /**
143
- * Whether the event was triggered as a result of a privacy regulation application
144
- * (for example, GDPR).
145
- */
146
- triggeredByAnonymizeRequest?: boolean | null;
147
- /** If present, indicates the action that triggered the event. */
148
- originatedFrom?: string | null;
149
- /**
150
- * A sequence number defining the order of updates to the underlying entity.
151
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
152
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
153
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
154
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
155
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
156
- */
157
- entityEventSequence?: string | null;
158
- }
159
- /** @oneof */
160
- export interface DomainEventBodyOneOf {
161
- createdEvent?: EntityCreatedEvent;
162
- updatedEvent?: EntityUpdatedEvent;
163
- deletedEvent?: EntityDeletedEvent;
164
- actionEvent?: ActionEvent;
165
- }
166
- export interface EntityCreatedEvent {
167
- entity?: string;
168
- }
169
- export interface RestoreInfo {
170
- deletedDate?: Date | null;
171
- }
172
- export interface EntityUpdatedEvent {
173
- /**
174
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
175
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
176
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
177
- */
178
- currentEntity?: string;
179
- }
180
- export interface EntityDeletedEvent {
181
- /** Entity that was deleted */
182
- deletedEntity?: string | null;
183
- }
184
- export interface ActionEvent {
185
- body?: string;
186
- }
187
- export interface Empty {
188
- }
189
- export interface GetOrderInvoiceRequest {
190
- /**
191
- * Invoice ID.
192
- * @minLength 1
193
- * @maxLength 100
194
- */
195
- invoiceId?: string;
196
- }
197
- export interface GetOrderInvoiceResponse {
198
- /**
199
- * Order ID.
200
- * @minLength 1
201
- * @maxLength 100
202
- */
203
- orderId?: string;
204
- /** Invoice info. */
205
- invoiceInfo?: Invoice;
206
- }
207
- export interface GenerateInvoiceWithNumberRequest {
208
- /**
209
- * Order ID.
210
- * @minLength 1
211
- * @maxLength 100
212
- */
213
- orderId?: string;
214
- /**
215
- * @minLength 1
216
- * @maxLength 11
217
- */
218
- invoiceNumber?: string;
219
- /** 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. */
220
- issueDate?: Date | null;
221
- }
222
- export interface GenerateInvoiceWithNumberResponse {
223
- /**
224
- * Invoice ID.
225
- * @minLength 1
226
- * @maxLength 100
227
- */
228
- invoiceId?: string;
229
- }
230
- export interface MessageEnvelope {
231
- /**
232
- * App instance ID.
233
- * @format GUID
234
- */
235
- instanceId?: string | null;
236
- /**
237
- * Event type.
238
- * @maxLength 150
239
- */
240
- eventType?: string;
241
- /** The identification type and identity data. */
242
- identity?: IdentificationData;
243
- /** Stringify payload. */
244
- data?: string;
245
- }
246
- export interface IdentificationData extends IdentificationDataIdOneOf {
247
- /**
248
- * ID of a site visitor that has not logged in to the site.
249
- * @format GUID
250
- */
251
- anonymousVisitorId?: string;
252
- /**
253
- * ID of a site visitor that has logged in to the site.
254
- * @format GUID
255
- */
256
- memberId?: string;
257
- /**
258
- * ID of a Wix user (site owner, contributor, etc.).
259
- * @format GUID
260
- */
261
- wixUserId?: string;
262
- /**
263
- * ID of an app.
264
- * @format GUID
265
- */
266
- appId?: string;
267
- /** @readonly */
268
- identityType?: WebhookIdentityType;
269
- }
270
- /** @oneof */
271
- export interface IdentificationDataIdOneOf {
272
- /**
273
- * ID of a site visitor that has not logged in to the site.
274
- * @format GUID
275
- */
276
- anonymousVisitorId?: string;
277
- /**
278
- * ID of a site visitor that has logged in to the site.
279
- * @format GUID
280
- */
281
- memberId?: string;
282
- /**
283
- * ID of a Wix user (site owner, contributor, etc.).
284
- * @format GUID
285
- */
286
- wixUserId?: string;
287
- /**
288
- * ID of an app.
289
- * @format GUID
290
- */
291
- appId?: string;
292
- }
293
- export declare enum WebhookIdentityType {
294
- UNKNOWN = "UNKNOWN",
295
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
296
- MEMBER = "MEMBER",
297
- WIX_USER = "WIX_USER",
298
- APP = "APP"
299
- }
300
- interface InvoiceNonNullableFields {
301
- _id: string;
302
- appId: string;
303
- }
304
- interface InvoicesForOrderNonNullableFields {
305
- orderId: string;
306
- invoices: InvoiceNonNullableFields[];
307
- invoicesInfo: InvoiceNonNullableFields[];
308
- }
309
- export interface ListInvoicesForMultipleOrdersResponseNonNullableFields {
310
- invoicesForOrder: InvoicesForOrderNonNullableFields[];
311
- }
312
- export interface GenerateInvoiceResponseNonNullableFields {
313
- invoiceId: string;
314
- }
315
- interface ApplicationErrorNonNullableFields {
316
- code: string;
317
- description: string;
318
- }
319
- interface ItemMetadataNonNullableFields {
320
- originalIndex: number;
321
- success: boolean;
322
- error?: ApplicationErrorNonNullableFields;
323
- }
324
- interface InvoiceForOrderNonNullableFields {
325
- orderId: string;
326
- invoiceId: string;
327
- }
328
- interface BulkInvoiceResultNonNullableFields {
329
- itemMetadata?: ItemMetadataNonNullableFields;
330
- item?: InvoiceForOrderNonNullableFields;
331
- }
332
- interface BulkActionMetadataNonNullableFields {
333
- totalSuccesses: number;
334
- totalFailures: number;
335
- undetailedFailures: number;
336
- }
337
- export interface BulkGenerateInvoicesResponseNonNullableFields {
338
- results: BulkInvoiceResultNonNullableFields[];
339
- bulkActionMetadata?: BulkActionMetadataNonNullableFields;
340
- }
341
- export interface AddInvoiceToOrderResponseNonNullableFields {
342
- orderInvoices: InvoiceNonNullableFields[];
343
- }
344
- /**
345
- * Retrieves the IDs of invoices associated with all specified orders.
346
- *
347
- *
348
- * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
349
- * @param orderIds - Order IDs for which to retrieve invoices.
350
- * @public
351
- * @documentationMaturity preview
352
- * @requiredField orderIds
353
- * @permissionId ECOM.READ_INVOICES
354
- * @permissionScope Manage Stores - all permissions
355
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
356
- * @permissionScope Read eCommerce - all read permissions
357
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
358
- * @permissionScope Read Orders
359
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
360
- * @permissionScope Read Stores - all read permissions
361
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
362
- * @permissionScope Manage Restaurants - all permissions
363
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
364
- * @permissionScope Manage eCommerce - all permissions
365
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
366
- * @permissionScope Picasso private app mega scope
367
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
368
- * @permissionScope Manage Orders
369
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
370
- * @applicableIdentity APP
371
- * @applicableIdentity MEMBER
372
- * @fqn com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders
373
- */
374
- export declare function listInvoicesForMultipleOrders(orderIds: string[]): Promise<ListInvoicesForMultipleOrdersResponse & ListInvoicesForMultipleOrdersResponseNonNullableFields>;
375
- export {};