@wix/auto_sdk_ecom_order-invoices 1.0.15 → 1.0.17

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-Be8NGMCD.d.mts} +43 -43
  2. package/build/{internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → ecom-orders-v1-invoice-order-invoices.universal-Be8NGMCD.d.ts} +43 -43
  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-CuUkLxV0.d.mts} +43 -43
  10. package/build/{es/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → internal/ecom-orders-v1-invoice-order-invoices.universal-CuUkLxV0.d.ts} +43 -43
  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 +12 -11
  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 -329
  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 -329
  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 -398
  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 -398
  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
@@ -0,0 +1,179 @@
1
+ // src/ecom-orders-v1-invoice-order-invoices.http.ts
2
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
3
+ function resolveComWixEcomOrdersInvoicesV1InvoicesUrl(opts) {
4
+ const domainToMappings = {
5
+ "www.wixapis.com": [
6
+ {
7
+ srcPath: "/ecom/v1/ep-invoices",
8
+ destPath: "/v1/invoices"
9
+ }
10
+ ],
11
+ "manage._base_domain_": [
12
+ {
13
+ srcPath: "/ecom/v1/ep-invoices",
14
+ destPath: "/v1/invoices"
15
+ }
16
+ ],
17
+ _: [
18
+ {
19
+ srcPath: "/v1/invoices",
20
+ destPath: "/v1/invoices"
21
+ }
22
+ ]
23
+ };
24
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
25
+ }
26
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_order-invoices";
27
+ function listInvoicesForMultipleOrders(payload) {
28
+ function __listInvoicesForMultipleOrders({ host }) {
29
+ const metadata = {
30
+ entityFqdn: "wix.ecom.orders.v1.invoice",
31
+ method: "POST",
32
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders",
33
+ packageName: PACKAGE_NAME,
34
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
35
+ protoPath: "/v1/invoices/list-by-ids",
36
+ data: payload,
37
+ host
38
+ }),
39
+ data: payload
40
+ };
41
+ return metadata;
42
+ }
43
+ return __listInvoicesForMultipleOrders;
44
+ }
45
+ function generateInvoice(payload) {
46
+ function __generateInvoice({ host }) {
47
+ const metadata = {
48
+ entityFqdn: "wix.ecom.orders.v1.invoice",
49
+ method: "POST",
50
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice",
51
+ packageName: PACKAGE_NAME,
52
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
53
+ protoPath: "/v1/invoices/orders/{orderId}",
54
+ data: payload,
55
+ host
56
+ }),
57
+ data: payload
58
+ };
59
+ return metadata;
60
+ }
61
+ return __generateInvoice;
62
+ }
63
+ function bulkGenerateInvoices(payload) {
64
+ function __bulkGenerateInvoices({ host }) {
65
+ const metadata = {
66
+ entityFqdn: "wix.ecom.orders.v1.invoice",
67
+ method: "POST",
68
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices",
69
+ packageName: PACKAGE_NAME,
70
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
71
+ protoPath: "/v1/bulk/invoices/generate",
72
+ data: payload,
73
+ host
74
+ }),
75
+ data: payload
76
+ };
77
+ return metadata;
78
+ }
79
+ return __bulkGenerateInvoices;
80
+ }
81
+ function addInvoiceToOrder(payload) {
82
+ function __addInvoiceToOrder({ host }) {
83
+ const metadata = {
84
+ entityFqdn: "wix.ecom.orders.v1.invoice",
85
+ method: "POST",
86
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder",
87
+ packageName: PACKAGE_NAME,
88
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
89
+ protoPath: "/v1/invoices/orders/{orderId}/add-invoice",
90
+ data: payload,
91
+ host
92
+ }),
93
+ data: payload
94
+ };
95
+ return metadata;
96
+ }
97
+ return __addInvoiceToOrder;
98
+ }
99
+
100
+ // src/ecom-orders-v1-invoice-order-invoices.meta.ts
101
+ function listInvoicesForMultipleOrders2() {
102
+ const payload = {};
103
+ const getRequestOptions = listInvoicesForMultipleOrders(payload);
104
+ const getUrl = (context) => {
105
+ const { url } = getRequestOptions(context);
106
+ return url;
107
+ };
108
+ return {
109
+ getUrl,
110
+ httpMethod: "POST",
111
+ path: "/v1/invoices/list-by-ids",
112
+ pathParams: {},
113
+ __requestType: null,
114
+ __originalRequestType: null,
115
+ __responseType: null,
116
+ __originalResponseType: null
117
+ };
118
+ }
119
+ function generateInvoice2() {
120
+ const payload = { orderId: ":orderId" };
121
+ const getRequestOptions = generateInvoice(payload);
122
+ const getUrl = (context) => {
123
+ const { url } = getRequestOptions(context);
124
+ return url;
125
+ };
126
+ return {
127
+ getUrl,
128
+ httpMethod: "POST",
129
+ path: "/v1/invoices/orders/{orderId}",
130
+ pathParams: { orderId: "orderId" },
131
+ __requestType: null,
132
+ __originalRequestType: null,
133
+ __responseType: null,
134
+ __originalResponseType: null
135
+ };
136
+ }
137
+ function bulkGenerateInvoices2() {
138
+ const payload = {};
139
+ const getRequestOptions = bulkGenerateInvoices(payload);
140
+ const getUrl = (context) => {
141
+ const { url } = getRequestOptions(context);
142
+ return url;
143
+ };
144
+ return {
145
+ getUrl,
146
+ httpMethod: "POST",
147
+ path: "/v1/bulk/invoices/generate",
148
+ pathParams: {},
149
+ __requestType: null,
150
+ __originalRequestType: null,
151
+ __responseType: null,
152
+ __originalResponseType: null
153
+ };
154
+ }
155
+ function addInvoiceToOrder2() {
156
+ const payload = { orderId: ":orderId" };
157
+ const getRequestOptions = addInvoiceToOrder(payload);
158
+ const getUrl = (context) => {
159
+ const { url } = getRequestOptions(context);
160
+ return url;
161
+ };
162
+ return {
163
+ getUrl,
164
+ httpMethod: "POST",
165
+ path: "/v1/invoices/orders/{orderId}/add-invoice",
166
+ pathParams: { orderId: "orderId" },
167
+ __requestType: null,
168
+ __originalRequestType: null,
169
+ __responseType: null,
170
+ __originalResponseType: null
171
+ };
172
+ }
173
+ export {
174
+ addInvoiceToOrder2 as addInvoiceToOrder,
175
+ bulkGenerateInvoices2 as bulkGenerateInvoices,
176
+ generateInvoice2 as generateInvoice,
177
+ listInvoicesForMultipleOrders2 as listInvoicesForMultipleOrders
178
+ };
179
+ //# sourceMappingURL=meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/ecom-orders-v1-invoice-order-invoices.http.ts","../../src/ecom-orders-v1-invoice-order-invoices.meta.ts"],"sourcesContent":["import { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixEcomOrdersInvoicesV1InvoicesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/ep-invoices',\n destPath: '/v1/invoices',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/ep-invoices',\n destPath: '/v1/invoices',\n },\n ],\n _: [\n {\n srcPath: '/v1/invoices',\n destPath: '/v1/invoices',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_order-invoices';\n\n/**\n * Retrieves the IDs of invoices associated with all specified orders.\n *\n *\n * The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.\n */\nexport function listInvoicesForMultipleOrders(\n payload: object\n): RequestOptionsFactory<any> {\n function __listInvoicesForMultipleOrders({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.orders.v1.invoice',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({\n protoPath: '/v1/invoices/list-by-ids',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __listInvoicesForMultipleOrders;\n}\n\n/** Generates and adds an invoice to a specified order. */\nexport function generateInvoice(payload: object): RequestOptionsFactory<any> {\n function __generateInvoice({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.orders.v1.invoice',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({\n protoPath: '/v1/invoices/orders/{orderId}',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __generateInvoice;\n}\n\n/** Generates and adds invoices to all specified orders. */\nexport function bulkGenerateInvoices(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkGenerateInvoices({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.orders.v1.invoice',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({\n protoPath: '/v1/bulk/invoices/generate',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkGenerateInvoices;\n}\n\n/** Adds an invoice to a specified order. */\nexport function addInvoiceToOrder(payload: object): RequestOptionsFactory<any> {\n function __addInvoiceToOrder({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.orders.v1.invoice',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({\n protoPath: '/v1/invoices/orders/{orderId}/add-invoice',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __addInvoiceToOrder;\n}\n","import * as ambassadorWixEcomOrdersV1Invoice from './ecom-orders-v1-invoice-order-invoices.http.js';\nimport * as ambassadorWixEcomOrdersV1InvoiceTypes from './ecom-orders-v1-invoice-order-invoices.types.js';\nimport * as ambassadorWixEcomOrdersV1InvoiceUniversalTypes from './ecom-orders-v1-invoice-order-invoices.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listInvoicesForMultipleOrders(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.ListInvoicesForMultipleOrdersRequest,\n ambassadorWixEcomOrdersV1InvoiceTypes.ListInvoicesForMultipleOrdersRequest,\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.ListInvoicesForMultipleOrdersResponse,\n ambassadorWixEcomOrdersV1InvoiceTypes.ListInvoicesForMultipleOrdersResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomOrdersV1Invoice.listInvoicesForMultipleOrders(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/invoices/list-by-ids',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function generateInvoice(): __PublicMethodMetaInfo<\n 'POST',\n { orderId: string },\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.GenerateInvoiceRequest,\n ambassadorWixEcomOrdersV1InvoiceTypes.GenerateInvoiceRequest,\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.GenerateInvoiceResponse,\n ambassadorWixEcomOrdersV1InvoiceTypes.GenerateInvoiceResponse\n> {\n const payload = { orderId: ':orderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomOrdersV1Invoice.generateInvoice(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/invoices/orders/{orderId}',\n pathParams: { orderId: 'orderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function bulkGenerateInvoices(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.BulkGenerateInvoicesRequest,\n ambassadorWixEcomOrdersV1InvoiceTypes.BulkGenerateInvoicesRequest,\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.BulkGenerateInvoicesResponse,\n ambassadorWixEcomOrdersV1InvoiceTypes.BulkGenerateInvoicesResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomOrdersV1Invoice.bulkGenerateInvoices(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/bulk/invoices/generate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addInvoiceToOrder(): __PublicMethodMetaInfo<\n 'POST',\n { orderId: string },\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.AddInvoiceToOrderRequest,\n ambassadorWixEcomOrdersV1InvoiceTypes.AddInvoiceToOrderRequest,\n ambassadorWixEcomOrdersV1InvoiceUniversalTypes.AddInvoiceToOrderResponse,\n ambassadorWixEcomOrdersV1InvoiceTypes.AddInvoiceToOrderResponse\n> {\n const payload = { orderId: ':orderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomOrdersV1Invoice.addInvoiceToOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/invoices/orders/{orderId}/add-invoice',\n pathParams: { orderId: 'orderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";AAAA,SAAS,kBAAkB;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAQd,SAAS,8BACd,SAC4B;AAC5B,WAAS,gCAAgC,EAAE,KAAK,GAAQ;AACtD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,6CAA6C;AAAA,QAChD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,gBAAgB,SAA6C;AAC3E,WAAS,kBAAkB,EAAE,KAAK,GAAQ;AACxC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,KAAK,6CAA6C;AAAA,QAChD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,qBACd,SAC4B;AAC5B,WAAS,uBAAuB,EAAE,KAAK,GAAQ;AAC7C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,6CAA6C;AAAA,QAChD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAGO,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,KAAK,6CAA6C;AAAA,QAChD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,IACR;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;AC5GO,SAASA,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,8BAA8B,OAAO;AAExE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,EAAE,SAAS,WAAW;AAEtC,QAAM,oBAC6B,gBAAgB,OAAO;AAE1D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,SAAS,UAAU;AAAA,IACjC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,wBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,qBAAqB,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,SAAS,WAAW;AAEtC,QAAM,oBAC6B,kBAAkB,OAAO;AAE5D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,SAAS,UAAU;AAAA,IACjC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["listInvoicesForMultipleOrders","generateInvoice","bulkGenerateInvoices","addInvoiceToOrder"]}
@@ -0,0 +1,127 @@
1
+ import { c as ListInvoicesForMultipleOrdersRequest$1, L as ListInvoicesForMultipleOrdersResponse$1, G as GenerateInvoiceRequest$1, e as GenerateInvoiceResponse$1, B as BulkGenerateInvoicesRequest$1, f as BulkGenerateInvoicesResponse$1, k as AddInvoiceToOrderRequest$1, l as AddInvoiceToOrderResponse$1 } from './ecom-orders-v1-invoice-order-invoices.universal-Be8NGMCD.mjs';
2
+
3
+ interface Invoice {
4
+ /** Invoice ID. */
5
+ id?: string;
6
+ /** ID of the app that set the invoice. */
7
+ appId?: string;
8
+ }
9
+ interface ListInvoicesForMultipleOrdersRequest {
10
+ /**
11
+ * Order IDs for which to retrieve invoices.
12
+ * @maxSize 100
13
+ * @minLength 1
14
+ * @maxLength 100
15
+ */
16
+ orderIds: string[];
17
+ }
18
+ interface ListInvoicesForMultipleOrdersResponse {
19
+ /** List of order IDs and their associated invoices. */
20
+ invoicesForOrder?: InvoicesForOrder[];
21
+ }
22
+ interface InvoicesForOrder {
23
+ /** Order ID. */
24
+ orderId?: string;
25
+ /**
26
+ * Invoices info.
27
+ * @maxSize 300
28
+ */
29
+ invoicesInfo?: Invoice[];
30
+ }
31
+ interface GenerateInvoiceRequest {
32
+ /**
33
+ * Order ID.
34
+ * @minLength 1
35
+ * @maxLength 100
36
+ */
37
+ orderId: string;
38
+ }
39
+ interface GenerateInvoiceResponse {
40
+ /** Invoice ID. */
41
+ invoiceId?: string;
42
+ }
43
+ interface BulkGenerateInvoicesRequest {
44
+ /**
45
+ * Order IDs.
46
+ * @minSize 1
47
+ * @maxSize 300
48
+ * @minLength 1
49
+ * @maxLength 100
50
+ */
51
+ orderIds: string[];
52
+ }
53
+ interface BulkGenerateInvoicesResponse {
54
+ results?: BulkInvoiceResult[];
55
+ bulkActionMetadata?: BulkActionMetadata;
56
+ }
57
+ interface BulkInvoiceResult {
58
+ itemMetadata?: ItemMetadata;
59
+ item?: InvoiceForOrder;
60
+ }
61
+ interface ItemMetadata {
62
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
63
+ id?: string | null;
64
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
65
+ originalIndex?: number;
66
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
67
+ success?: boolean;
68
+ /** Details about the error in case of failure. */
69
+ error?: ApplicationError;
70
+ }
71
+ interface ApplicationError {
72
+ /** Error code. */
73
+ code?: string;
74
+ /** Description of the error. */
75
+ description?: string;
76
+ /** Data related to the error. */
77
+ data?: Record<string, any> | null;
78
+ }
79
+ interface InvoiceForOrder {
80
+ /** Order ID. */
81
+ orderId?: string;
82
+ /** Invoice ID. */
83
+ invoiceId?: string;
84
+ }
85
+ interface BulkActionMetadata {
86
+ /** Number of items that were successfully processed. */
87
+ totalSuccesses?: number;
88
+ /** Number of items that couldn't be processed. */
89
+ totalFailures?: number;
90
+ /** Number of failures without details because detailed failure threshold was exceeded. */
91
+ undetailedFailures?: number;
92
+ }
93
+ interface AddInvoiceToOrderRequest {
94
+ /**
95
+ * Order ID.
96
+ * @minLength 1
97
+ * @maxLength 100
98
+ */
99
+ orderId: string;
100
+ /** Invoice info. */
101
+ invoiceInfo: Invoice;
102
+ }
103
+ interface AddInvoiceToOrderResponse {
104
+ /** List of order invoices. */
105
+ orderInvoices?: Invoice[];
106
+ }
107
+
108
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
109
+ getUrl: (context: any) => string;
110
+ httpMethod: K;
111
+ path: string;
112
+ pathParams: M;
113
+ __requestType: T;
114
+ __originalRequestType: S;
115
+ __responseType: Q;
116
+ __originalResponseType: R;
117
+ };
118
+ declare function listInvoicesForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ListInvoicesForMultipleOrdersRequest$1, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse$1, ListInvoicesForMultipleOrdersResponse>;
119
+ declare function generateInvoice(): __PublicMethodMetaInfo<'POST', {
120
+ orderId: string;
121
+ }, GenerateInvoiceRequest$1, GenerateInvoiceRequest, GenerateInvoiceResponse$1, GenerateInvoiceResponse>;
122
+ declare function bulkGenerateInvoices(): __PublicMethodMetaInfo<'POST', {}, BulkGenerateInvoicesRequest$1, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse$1, BulkGenerateInvoicesResponse>;
123
+ declare function addInvoiceToOrder(): __PublicMethodMetaInfo<'POST', {
124
+ orderId: string;
125
+ }, AddInvoiceToOrderRequest$1, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse$1, AddInvoiceToOrderResponse>;
126
+
127
+ export { type __PublicMethodMetaInfo, addInvoiceToOrder, bulkGenerateInvoices, generateInvoice, listInvoicesForMultipleOrders };
@@ -0,0 +1,127 @@
1
+ import { c as ListInvoicesForMultipleOrdersRequest$1, L as ListInvoicesForMultipleOrdersResponse$1, G as GenerateInvoiceRequest$1, e as GenerateInvoiceResponse$1, B as BulkGenerateInvoicesRequest$1, f as BulkGenerateInvoicesResponse$1, k as AddInvoiceToOrderRequest$1, l as AddInvoiceToOrderResponse$1 } from './ecom-orders-v1-invoice-order-invoices.universal-Be8NGMCD.js';
2
+
3
+ interface Invoice {
4
+ /** Invoice ID. */
5
+ id?: string;
6
+ /** ID of the app that set the invoice. */
7
+ appId?: string;
8
+ }
9
+ interface ListInvoicesForMultipleOrdersRequest {
10
+ /**
11
+ * Order IDs for which to retrieve invoices.
12
+ * @maxSize 100
13
+ * @minLength 1
14
+ * @maxLength 100
15
+ */
16
+ orderIds: string[];
17
+ }
18
+ interface ListInvoicesForMultipleOrdersResponse {
19
+ /** List of order IDs and their associated invoices. */
20
+ invoicesForOrder?: InvoicesForOrder[];
21
+ }
22
+ interface InvoicesForOrder {
23
+ /** Order ID. */
24
+ orderId?: string;
25
+ /**
26
+ * Invoices info.
27
+ * @maxSize 300
28
+ */
29
+ invoicesInfo?: Invoice[];
30
+ }
31
+ interface GenerateInvoiceRequest {
32
+ /**
33
+ * Order ID.
34
+ * @minLength 1
35
+ * @maxLength 100
36
+ */
37
+ orderId: string;
38
+ }
39
+ interface GenerateInvoiceResponse {
40
+ /** Invoice ID. */
41
+ invoiceId?: string;
42
+ }
43
+ interface BulkGenerateInvoicesRequest {
44
+ /**
45
+ * Order IDs.
46
+ * @minSize 1
47
+ * @maxSize 300
48
+ * @minLength 1
49
+ * @maxLength 100
50
+ */
51
+ orderIds: string[];
52
+ }
53
+ interface BulkGenerateInvoicesResponse {
54
+ results?: BulkInvoiceResult[];
55
+ bulkActionMetadata?: BulkActionMetadata;
56
+ }
57
+ interface BulkInvoiceResult {
58
+ itemMetadata?: ItemMetadata;
59
+ item?: InvoiceForOrder;
60
+ }
61
+ interface ItemMetadata {
62
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
63
+ id?: string | null;
64
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
65
+ originalIndex?: number;
66
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
67
+ success?: boolean;
68
+ /** Details about the error in case of failure. */
69
+ error?: ApplicationError;
70
+ }
71
+ interface ApplicationError {
72
+ /** Error code. */
73
+ code?: string;
74
+ /** Description of the error. */
75
+ description?: string;
76
+ /** Data related to the error. */
77
+ data?: Record<string, any> | null;
78
+ }
79
+ interface InvoiceForOrder {
80
+ /** Order ID. */
81
+ orderId?: string;
82
+ /** Invoice ID. */
83
+ invoiceId?: string;
84
+ }
85
+ interface BulkActionMetadata {
86
+ /** Number of items that were successfully processed. */
87
+ totalSuccesses?: number;
88
+ /** Number of items that couldn't be processed. */
89
+ totalFailures?: number;
90
+ /** Number of failures without details because detailed failure threshold was exceeded. */
91
+ undetailedFailures?: number;
92
+ }
93
+ interface AddInvoiceToOrderRequest {
94
+ /**
95
+ * Order ID.
96
+ * @minLength 1
97
+ * @maxLength 100
98
+ */
99
+ orderId: string;
100
+ /** Invoice info. */
101
+ invoiceInfo: Invoice;
102
+ }
103
+ interface AddInvoiceToOrderResponse {
104
+ /** List of order invoices. */
105
+ orderInvoices?: Invoice[];
106
+ }
107
+
108
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
109
+ getUrl: (context: any) => string;
110
+ httpMethod: K;
111
+ path: string;
112
+ pathParams: M;
113
+ __requestType: T;
114
+ __originalRequestType: S;
115
+ __responseType: Q;
116
+ __originalResponseType: R;
117
+ };
118
+ declare function listInvoicesForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ListInvoicesForMultipleOrdersRequest$1, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse$1, ListInvoicesForMultipleOrdersResponse>;
119
+ declare function generateInvoice(): __PublicMethodMetaInfo<'POST', {
120
+ orderId: string;
121
+ }, GenerateInvoiceRequest$1, GenerateInvoiceRequest, GenerateInvoiceResponse$1, GenerateInvoiceResponse>;
122
+ declare function bulkGenerateInvoices(): __PublicMethodMetaInfo<'POST', {}, BulkGenerateInvoicesRequest$1, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse$1, BulkGenerateInvoicesResponse>;
123
+ declare function addInvoiceToOrder(): __PublicMethodMetaInfo<'POST', {
124
+ orderId: string;
125
+ }, AddInvoiceToOrderRequest$1, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse$1, AddInvoiceToOrderResponse>;
126
+
127
+ export { type __PublicMethodMetaInfo, addInvoiceToOrder, bulkGenerateInvoices, generateInvoice, listInvoicesForMultipleOrders };
package/build/meta.js ADDED
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ addInvoiceToOrder: () => addInvoiceToOrder2,
24
+ bulkGenerateInvoices: () => bulkGenerateInvoices2,
25
+ generateInvoice: () => generateInvoice2,
26
+ listInvoicesForMultipleOrders: () => listInvoicesForMultipleOrders2
27
+ });
28
+ module.exports = __toCommonJS(meta_exports);
29
+
30
+ // src/ecom-orders-v1-invoice-order-invoices.http.ts
31
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
32
+ function resolveComWixEcomOrdersInvoicesV1InvoicesUrl(opts) {
33
+ const domainToMappings = {
34
+ "www.wixapis.com": [
35
+ {
36
+ srcPath: "/ecom/v1/ep-invoices",
37
+ destPath: "/v1/invoices"
38
+ }
39
+ ],
40
+ "manage._base_domain_": [
41
+ {
42
+ srcPath: "/ecom/v1/ep-invoices",
43
+ destPath: "/v1/invoices"
44
+ }
45
+ ],
46
+ _: [
47
+ {
48
+ srcPath: "/v1/invoices",
49
+ destPath: "/v1/invoices"
50
+ }
51
+ ]
52
+ };
53
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
54
+ }
55
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_order-invoices";
56
+ function listInvoicesForMultipleOrders(payload) {
57
+ function __listInvoicesForMultipleOrders({ host }) {
58
+ const metadata = {
59
+ entityFqdn: "wix.ecom.orders.v1.invoice",
60
+ method: "POST",
61
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders",
62
+ packageName: PACKAGE_NAME,
63
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
64
+ protoPath: "/v1/invoices/list-by-ids",
65
+ data: payload,
66
+ host
67
+ }),
68
+ data: payload
69
+ };
70
+ return metadata;
71
+ }
72
+ return __listInvoicesForMultipleOrders;
73
+ }
74
+ function generateInvoice(payload) {
75
+ function __generateInvoice({ host }) {
76
+ const metadata = {
77
+ entityFqdn: "wix.ecom.orders.v1.invoice",
78
+ method: "POST",
79
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice",
80
+ packageName: PACKAGE_NAME,
81
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
82
+ protoPath: "/v1/invoices/orders/{orderId}",
83
+ data: payload,
84
+ host
85
+ }),
86
+ data: payload
87
+ };
88
+ return metadata;
89
+ }
90
+ return __generateInvoice;
91
+ }
92
+ function bulkGenerateInvoices(payload) {
93
+ function __bulkGenerateInvoices({ host }) {
94
+ const metadata = {
95
+ entityFqdn: "wix.ecom.orders.v1.invoice",
96
+ method: "POST",
97
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices",
98
+ packageName: PACKAGE_NAME,
99
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
100
+ protoPath: "/v1/bulk/invoices/generate",
101
+ data: payload,
102
+ host
103
+ }),
104
+ data: payload
105
+ };
106
+ return metadata;
107
+ }
108
+ return __bulkGenerateInvoices;
109
+ }
110
+ function addInvoiceToOrder(payload) {
111
+ function __addInvoiceToOrder({ host }) {
112
+ const metadata = {
113
+ entityFqdn: "wix.ecom.orders.v1.invoice",
114
+ method: "POST",
115
+ methodFqn: "com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder",
116
+ packageName: PACKAGE_NAME,
117
+ url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
118
+ protoPath: "/v1/invoices/orders/{orderId}/add-invoice",
119
+ data: payload,
120
+ host
121
+ }),
122
+ data: payload
123
+ };
124
+ return metadata;
125
+ }
126
+ return __addInvoiceToOrder;
127
+ }
128
+
129
+ // src/ecom-orders-v1-invoice-order-invoices.meta.ts
130
+ function listInvoicesForMultipleOrders2() {
131
+ const payload = {};
132
+ const getRequestOptions = listInvoicesForMultipleOrders(payload);
133
+ const getUrl = (context) => {
134
+ const { url } = getRequestOptions(context);
135
+ return url;
136
+ };
137
+ return {
138
+ getUrl,
139
+ httpMethod: "POST",
140
+ path: "/v1/invoices/list-by-ids",
141
+ pathParams: {},
142
+ __requestType: null,
143
+ __originalRequestType: null,
144
+ __responseType: null,
145
+ __originalResponseType: null
146
+ };
147
+ }
148
+ function generateInvoice2() {
149
+ const payload = { orderId: ":orderId" };
150
+ const getRequestOptions = generateInvoice(payload);
151
+ const getUrl = (context) => {
152
+ const { url } = getRequestOptions(context);
153
+ return url;
154
+ };
155
+ return {
156
+ getUrl,
157
+ httpMethod: "POST",
158
+ path: "/v1/invoices/orders/{orderId}",
159
+ pathParams: { orderId: "orderId" },
160
+ __requestType: null,
161
+ __originalRequestType: null,
162
+ __responseType: null,
163
+ __originalResponseType: null
164
+ };
165
+ }
166
+ function bulkGenerateInvoices2() {
167
+ const payload = {};
168
+ const getRequestOptions = bulkGenerateInvoices(payload);
169
+ const getUrl = (context) => {
170
+ const { url } = getRequestOptions(context);
171
+ return url;
172
+ };
173
+ return {
174
+ getUrl,
175
+ httpMethod: "POST",
176
+ path: "/v1/bulk/invoices/generate",
177
+ pathParams: {},
178
+ __requestType: null,
179
+ __originalRequestType: null,
180
+ __responseType: null,
181
+ __originalResponseType: null
182
+ };
183
+ }
184
+ function addInvoiceToOrder2() {
185
+ const payload = { orderId: ":orderId" };
186
+ const getRequestOptions = addInvoiceToOrder(payload);
187
+ const getUrl = (context) => {
188
+ const { url } = getRequestOptions(context);
189
+ return url;
190
+ };
191
+ return {
192
+ getUrl,
193
+ httpMethod: "POST",
194
+ path: "/v1/invoices/orders/{orderId}/add-invoice",
195
+ pathParams: { orderId: "orderId" },
196
+ __requestType: null,
197
+ __originalRequestType: null,
198
+ __responseType: null,
199
+ __originalResponseType: null
200
+ };
201
+ }
202
+ // Annotate the CommonJS export names for ESM import in node:
203
+ 0 && (module.exports = {
204
+ addInvoiceToOrder,
205
+ bulkGenerateInvoices,
206
+ generateInvoice,
207
+ listInvoicesForMultipleOrders
208
+ });
209
+ //# sourceMappingURL=meta.js.map