@wix/auto_sdk_get-paid_receipts 1.0.0

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 (111) 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/receipts-v1-receipt-receipts.context.d.ts +11 -0
  11. package/build/cjs/src/receipts-v1-receipt-receipts.context.js +21 -0
  12. package/build/cjs/src/receipts-v1-receipt-receipts.context.js.map +1 -0
  13. package/build/cjs/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
  14. package/build/cjs/src/receipts-v1-receipt-receipts.http.js +286 -0
  15. package/build/cjs/src/receipts-v1-receipt-receipts.http.js.map +1 -0
  16. package/build/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
  17. package/build/cjs/src/receipts-v1-receipt-receipts.meta.js +161 -0
  18. package/build/cjs/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
  19. package/build/cjs/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
  20. package/build/cjs/src/receipts-v1-receipt-receipts.public.js +56 -0
  21. package/build/cjs/src/receipts-v1-receipt-receipts.public.js.map +1 -0
  22. package/build/cjs/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
  23. package/build/cjs/src/receipts-v1-receipt-receipts.types.js +60 -0
  24. package/build/cjs/src/receipts-v1-receipt-receipts.types.js.map +1 -0
  25. package/build/cjs/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
  26. package/build/cjs/src/receipts-v1-receipt-receipts.universal.js +446 -0
  27. package/build/cjs/src/receipts-v1-receipt-receipts.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/package.json +3 -0
  38. package/build/es/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
  39. package/build/es/src/receipts-v1-receipt-receipts.context.js +11 -0
  40. package/build/es/src/receipts-v1-receipt-receipts.context.js.map +1 -0
  41. package/build/es/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
  42. package/build/es/src/receipts-v1-receipt-receipts.http.js +276 -0
  43. package/build/es/src/receipts-v1-receipt-receipts.http.js.map +1 -0
  44. package/build/es/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
  45. package/build/es/src/receipts-v1-receipt-receipts.meta.js +128 -0
  46. package/build/es/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
  47. package/build/es/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
  48. package/build/es/src/receipts-v1-receipt-receipts.public.js +39 -0
  49. package/build/es/src/receipts-v1-receipt-receipts.public.js.map +1 -0
  50. package/build/es/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
  51. package/build/es/src/receipts-v1-receipt-receipts.types.js +57 -0
  52. package/build/es/src/receipts-v1-receipt-receipts.types.js.map +1 -0
  53. package/build/es/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
  54. package/build/es/src/receipts-v1-receipt-receipts.universal.js +413 -0
  55. package/build/es/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
  66. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js +21 -0
  67. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js.map +1 -0
  68. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
  69. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js +286 -0
  70. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js.map +1 -0
  71. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js +161 -0
  73. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
  74. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
  75. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js +56 -0
  76. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js.map +1 -0
  77. package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
  78. package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js +60 -0
  79. package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js.map +1 -0
  80. package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
  81. package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js +446 -0
  82. package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
  93. package/build/internal/es/src/receipts-v1-receipt-receipts.context.js +11 -0
  94. package/build/internal/es/src/receipts-v1-receipt-receipts.context.js.map +1 -0
  95. package/build/internal/es/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
  96. package/build/internal/es/src/receipts-v1-receipt-receipts.http.js +276 -0
  97. package/build/internal/es/src/receipts-v1-receipt-receipts.http.js.map +1 -0
  98. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
  99. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js +128 -0
  100. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
  101. package/build/internal/es/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
  102. package/build/internal/es/src/receipts-v1-receipt-receipts.public.js +39 -0
  103. package/build/internal/es/src/receipts-v1-receipt-receipts.public.js.map +1 -0
  104. package/build/internal/es/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
  105. package/build/internal/es/src/receipts-v1-receipt-receipts.types.js +57 -0
  106. package/build/internal/es/src/receipts-v1-receipt-receipts.types.js.map +1 -0
  107. package/build/internal/es/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
  108. package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js +413 -0
  109. package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,413 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixReceiptsV1Receipt from './receipts-v1-receipt-receipts.http.js';
5
+ // @ts-ignore
6
+ import { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';
7
+ import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
8
+ import { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';
9
+ import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
10
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
11
+ export var ReceiptOrderType;
12
+ (function (ReceiptOrderType) {
13
+ ReceiptOrderType["UNKNOWN_ORDER_TYPE"] = "UNKNOWN_ORDER_TYPE";
14
+ ReceiptOrderType["WIX_PAYMENT"] = "WIX_PAYMENT";
15
+ ReceiptOrderType["WIX_ECOM"] = "WIX_ECOM";
16
+ })(ReceiptOrderType || (ReceiptOrderType = {}));
17
+ export var SubdivisionType;
18
+ (function (SubdivisionType) {
19
+ SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
20
+ /** State */
21
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
22
+ /** County */
23
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
24
+ /** City/town */
25
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
26
+ /** Neighborhood/quarter */
27
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
28
+ /** Street/block */
29
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
30
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
31
+ SubdivisionType["COUNTRY"] = "COUNTRY";
32
+ })(SubdivisionType || (SubdivisionType = {}));
33
+ /** tax info types */
34
+ export var VatType;
35
+ (function (VatType) {
36
+ VatType["UNSPECIFIED"] = "UNSPECIFIED";
37
+ /** CPF - for individual tax payers. */
38
+ VatType["CPF"] = "CPF";
39
+ /** CNPJ - for corporations */
40
+ VatType["CNPJ"] = "CNPJ";
41
+ })(VatType || (VatType = {}));
42
+ export var DocumentStatus;
43
+ (function (DocumentStatus) {
44
+ DocumentStatus["UNKNOWN_DOCUMENT_STATUS"] = "UNKNOWN_DOCUMENT_STATUS";
45
+ DocumentStatus["PROCESSING"] = "PROCESSING";
46
+ DocumentStatus["AVAILABLE"] = "AVAILABLE";
47
+ DocumentStatus["FAILED"] = "FAILED";
48
+ })(DocumentStatus || (DocumentStatus = {}));
49
+ export var RequestOrigin;
50
+ (function (RequestOrigin) {
51
+ RequestOrigin["INITIAL"] = "INITIAL";
52
+ RequestOrigin["MANUAL"] = "MANUAL";
53
+ })(RequestOrigin || (RequestOrigin = {}));
54
+ export var SortOrder;
55
+ (function (SortOrder) {
56
+ SortOrder["ASC"] = "ASC";
57
+ SortOrder["DESC"] = "DESC";
58
+ })(SortOrder || (SortOrder = {}));
59
+ export var WebhookIdentityType;
60
+ (function (WebhookIdentityType) {
61
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
62
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
63
+ WebhookIdentityType["MEMBER"] = "MEMBER";
64
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
65
+ WebhookIdentityType["APP"] = "APP";
66
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
67
+ /**
68
+ * Creates a Receipt.
69
+ *
70
+ * The request body must include: currency, source reference, line items, payment, totals.
71
+ * Receipt number will not be assigned on the create response. Number will be assigned eventually but before the
72
+ * document file is created.
73
+ * @param receipt - Receipt to be created.
74
+ * @public
75
+ * @documentationMaturity preview
76
+ * @requiredField receipt
77
+ * @requiredField receipt.currency
78
+ * @requiredField receipt.lineItems
79
+ * @requiredField receipt.lineItems._id
80
+ * @requiredField receipt.lineItems.price
81
+ * @requiredField receipt.lineItems.quantity
82
+ * @requiredField receipt.lineItems.totals
83
+ * @requiredField receipt.lineItems.totals.totalPriceBeforeTax
84
+ * @requiredField receipt.payment
85
+ * @requiredField receipt.payment.amount
86
+ * @requiredField receipt.payment.paymentMethod
87
+ * @requiredField receipt.payment.transactionDate
88
+ * @requiredField receipt.sourceReference
89
+ * @requiredField receipt.sourceReference.appId
90
+ * @requiredField receipt.sourceReference.externalReferenceId
91
+ * @requiredField receipt.sourceReference.receiptOrderType
92
+ * @requiredField receipt.sourceReference.wixEcomOrder.transactionId
93
+ * @requiredField receipt.sourceReference.wixPaymentOrder.transactionId
94
+ * @requiredField receipt.totals
95
+ * @requiredField receipt.totals.subtotal
96
+ * @requiredField receipt.totals.total
97
+ * @permissionId RECEIPTS.RECEIPT_CREATE
98
+ * @returns The created Receipt.
99
+ * @fqn wix.receipts.v1.Receipts.CreateReceipt
100
+ */
101
+ export async function createReceipt(receipt) {
102
+ // @ts-ignore
103
+ const { httpClient, sideEffects } = arguments[1];
104
+ const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({ receipt: receipt }), [
105
+ {
106
+ transformFn: transformSDKAddressToRESTAddress,
107
+ paths: [
108
+ { path: 'receipt.businessDetails.address' },
109
+ { path: 'receipt.customer.billingAddress' },
110
+ { path: 'receipt.customer.shippingAddress' },
111
+ ],
112
+ },
113
+ {
114
+ transformFn: transformSDKImageToRESTImage,
115
+ paths: [{ path: 'receipt.businessDetails.logo' }],
116
+ },
117
+ ]);
118
+ const reqOpts = ambassadorWixReceiptsV1Receipt.createReceipt(payload);
119
+ sideEffects?.onSiteCall?.();
120
+ try {
121
+ const result = await httpClient.request(reqOpts);
122
+ sideEffects?.onSuccess?.(result);
123
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
124
+ {
125
+ transformFn: transformRESTAddressToSDKAddress,
126
+ paths: [
127
+ { path: 'receipt.businessDetails.address' },
128
+ { path: 'receipt.customer.billingAddress' },
129
+ { path: 'receipt.customer.shippingAddress' },
130
+ ],
131
+ },
132
+ {
133
+ transformFn: transformRESTImageToSDKImage,
134
+ paths: [{ path: 'receipt.businessDetails.logo' }],
135
+ },
136
+ ]))?.receipt;
137
+ }
138
+ catch (err) {
139
+ const transformedError = sdkTransformError(err, {
140
+ spreadPathsToArguments: {},
141
+ explicitPathsToArguments: { receipt: '$[0]' },
142
+ singleArgumentUnchanged: false,
143
+ }, ['receipt']);
144
+ sideEffects?.onError?.(err);
145
+ throw transformedError;
146
+ }
147
+ }
148
+ /**
149
+ * Retrieves a Receipt.
150
+ * @param receiptId - Id of the Receipt to retrieve.
151
+ * @public
152
+ * @documentationMaturity preview
153
+ * @requiredField receiptId
154
+ * @permissionId RECEIPTS.RECEIPT_READ
155
+ * @returns The requested Receipt.
156
+ * @fqn wix.receipts.v1.Receipts.GetReceipt
157
+ */
158
+ export async function getReceipt(receiptId) {
159
+ // @ts-ignore
160
+ const { httpClient, sideEffects } = arguments[1];
161
+ const payload = renameKeysFromSDKRequestToRESTRequest({
162
+ receiptId: receiptId,
163
+ });
164
+ const reqOpts = ambassadorWixReceiptsV1Receipt.getReceipt(payload);
165
+ sideEffects?.onSiteCall?.();
166
+ try {
167
+ const result = await httpClient.request(reqOpts);
168
+ sideEffects?.onSuccess?.(result);
169
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
170
+ {
171
+ transformFn: transformRESTAddressToSDKAddress,
172
+ paths: [
173
+ { path: 'receipt.businessDetails.address' },
174
+ { path: 'receipt.customer.billingAddress' },
175
+ { path: 'receipt.customer.shippingAddress' },
176
+ ],
177
+ },
178
+ {
179
+ transformFn: transformRESTImageToSDKImage,
180
+ paths: [{ path: 'receipt.businessDetails.logo' }],
181
+ },
182
+ ]))?.receipt;
183
+ }
184
+ catch (err) {
185
+ const transformedError = sdkTransformError(err, {
186
+ spreadPathsToArguments: {},
187
+ explicitPathsToArguments: { receiptId: '$[0]' },
188
+ singleArgumentUnchanged: false,
189
+ }, ['receiptId']);
190
+ sideEffects?.onError?.(err);
191
+ throw transformedError;
192
+ }
193
+ }
194
+ /**
195
+ * Retrieves a list of up to 100 Receipts, given the provided [paging, filtering, and sorting][1].
196
+ *
197
+ * Define queries using WQL - Wix Query Language. To learn how to query Receipts, see [API Query Language][2].
198
+ *
199
+ * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
200
+ * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
201
+ * @public
202
+ * @documentationMaturity preview
203
+ * @permissionId RECEIPTS.RECEIPT_READ
204
+ * @fqn wix.receipts.v1.Receipts.QueryReceipts
205
+ */
206
+ export function queryReceipts() {
207
+ // @ts-ignore
208
+ const { httpClient, sideEffects } = arguments[0];
209
+ return queryBuilder({
210
+ func: async (payload) => {
211
+ const reqOpts = ambassadorWixReceiptsV1Receipt.queryReceipts(payload);
212
+ sideEffects?.onSiteCall?.();
213
+ try {
214
+ const result = await httpClient.request(reqOpts);
215
+ sideEffects?.onSuccess?.(result);
216
+ return result;
217
+ }
218
+ catch (err) {
219
+ sideEffects?.onError?.(err);
220
+ throw err;
221
+ }
222
+ },
223
+ requestTransformer: (query) => {
224
+ const args = [query, {}];
225
+ return renameKeysFromSDKRequestToRESTRequest({
226
+ ...args?.[1],
227
+ query: args?.[0],
228
+ });
229
+ },
230
+ responseTransformer: ({ data }) => {
231
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
232
+ {
233
+ transformFn: transformRESTAddressToSDKAddress,
234
+ paths: [
235
+ { path: 'receipts.businessDetails.address' },
236
+ { path: 'receipts.customer.billingAddress' },
237
+ { path: 'receipts.customer.shippingAddress' },
238
+ ],
239
+ },
240
+ {
241
+ transformFn: transformRESTImageToSDKImage,
242
+ paths: [{ path: 'receipts.businessDetails.logo' }],
243
+ },
244
+ ]));
245
+ return {
246
+ items: transformedData?.receipts,
247
+ pagingMetadata: transformedData?.pagingMetadata,
248
+ };
249
+ },
250
+ errorTransformer: (err) => {
251
+ const transformedError = sdkTransformError(err, {
252
+ spreadPathsToArguments: {},
253
+ explicitPathsToArguments: { query: '$[0]' },
254
+ singleArgumentUnchanged: false,
255
+ });
256
+ throw transformedError;
257
+ },
258
+ pagingMethod: 'CURSOR',
259
+ transformationPaths: {},
260
+ });
261
+ }
262
+ /**
263
+ * Retries generating document if its status is FAILED.
264
+ * @param receiptId - Receipt id.
265
+ * @public
266
+ * @documentationMaturity preview
267
+ * @requiredField receiptId
268
+ * @permissionId RECEIPTS.RECEIPT_UPDATE
269
+ * @fqn wix.receipts.v1.Receipts.RegenerateReceiptDocument
270
+ */
271
+ export async function regenerateReceiptDocument(receiptId) {
272
+ // @ts-ignore
273
+ const { httpClient, sideEffects } = arguments[1];
274
+ const payload = renameKeysFromSDKRequestToRESTRequest({
275
+ receiptId: receiptId,
276
+ });
277
+ const reqOpts = ambassadorWixReceiptsV1Receipt.regenerateReceiptDocument(payload);
278
+ sideEffects?.onSiteCall?.();
279
+ try {
280
+ const result = await httpClient.request(reqOpts);
281
+ sideEffects?.onSuccess?.(result);
282
+ }
283
+ catch (err) {
284
+ const transformedError = sdkTransformError(err, {
285
+ spreadPathsToArguments: {},
286
+ explicitPathsToArguments: { receiptId: '$[0]' },
287
+ singleArgumentUnchanged: false,
288
+ }, ['receiptId']);
289
+ sideEffects?.onError?.(err);
290
+ throw transformedError;
291
+ }
292
+ }
293
+ /**
294
+ * Sends email with Receipt.
295
+ * @param receiptId - Id of the receipt to send to recipients.
296
+ * @public
297
+ * @documentationMaturity preview
298
+ * @requiredField receiptId
299
+ * @permissionId RECEIPTS.RECEIPT_SEND
300
+ * @fqn wix.receipts.v1.Receipts.SendReceiptEmail
301
+ */
302
+ export async function sendReceiptEmail(receiptId, options) {
303
+ // @ts-ignore
304
+ const { httpClient, sideEffects } = arguments[2];
305
+ const payload = renameKeysFromSDKRequestToRESTRequest({
306
+ receiptId: receiptId,
307
+ contactId: options?.contactId,
308
+ });
309
+ const reqOpts = ambassadorWixReceiptsV1Receipt.sendReceiptEmail(payload);
310
+ sideEffects?.onSiteCall?.();
311
+ try {
312
+ const result = await httpClient.request(reqOpts);
313
+ sideEffects?.onSuccess?.(result);
314
+ }
315
+ catch (err) {
316
+ const transformedError = sdkTransformError(err, {
317
+ spreadPathsToArguments: {},
318
+ explicitPathsToArguments: {
319
+ receiptId: '$[0]',
320
+ contactId: '$[1].contactId',
321
+ },
322
+ singleArgumentUnchanged: false,
323
+ }, ['receiptId', 'options']);
324
+ sideEffects?.onError?.(err);
325
+ throw transformedError;
326
+ }
327
+ }
328
+ /**
329
+ * Returns latest number for a given prefix.
330
+ * @public
331
+ * @documentationMaturity preview
332
+ * @permissionId RECEIPTS.RECEIPT_READ
333
+ * @fqn wix.receipts.v1.Receipts.GetLatestReceiptNumber
334
+ */
335
+ export async function getLatestReceiptNumber(options) {
336
+ // @ts-ignore
337
+ const { httpClient, sideEffects } = arguments[1];
338
+ const payload = renameKeysFromSDKRequestToRESTRequest({
339
+ prefix: options?.prefix,
340
+ });
341
+ const reqOpts = ambassadorWixReceiptsV1Receipt.getLatestReceiptNumber(payload);
342
+ sideEffects?.onSiteCall?.();
343
+ try {
344
+ const result = await httpClient.request(reqOpts);
345
+ sideEffects?.onSuccess?.(result);
346
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
347
+ }
348
+ catch (err) {
349
+ const transformedError = sdkTransformError(err, {
350
+ spreadPathsToArguments: {},
351
+ explicitPathsToArguments: { prefix: '$[0].prefix' },
352
+ singleArgumentUnchanged: false,
353
+ }, ['options']);
354
+ sideEffects?.onError?.(err);
355
+ throw transformedError;
356
+ }
357
+ }
358
+ /**
359
+ * Updates extended fields of a Receipt without incrementing revision.
360
+ * @param _id - ID of the entity to update.
361
+ * @param namespace - Identifier for the app whose extended fields are being updated.
362
+ * @public
363
+ * @documentationMaturity preview
364
+ * @requiredField _id
365
+ * @requiredField namespace
366
+ * @requiredField options
367
+ * @requiredField options.namespaceData
368
+ * @permissionId RECEIPTS.RECEIPT_UPDATE
369
+ * @fqn wix.receipts.v1.Receipts.UpdateExtendedFields
370
+ */
371
+ export async function updateExtendedFields(_id, namespace, options) {
372
+ // @ts-ignore
373
+ const { httpClient, sideEffects } = arguments[3];
374
+ const payload = renameKeysFromSDKRequestToRESTRequest({
375
+ id: _id,
376
+ namespace: namespace,
377
+ namespaceData: options?.namespaceData,
378
+ });
379
+ const reqOpts = ambassadorWixReceiptsV1Receipt.updateExtendedFields(payload);
380
+ sideEffects?.onSiteCall?.();
381
+ try {
382
+ const result = await httpClient.request(reqOpts);
383
+ sideEffects?.onSuccess?.(result);
384
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
385
+ {
386
+ transformFn: transformRESTAddressToSDKAddress,
387
+ paths: [
388
+ { path: 'receipt.businessDetails.address' },
389
+ { path: 'receipt.customer.billingAddress' },
390
+ { path: 'receipt.customer.shippingAddress' },
391
+ ],
392
+ },
393
+ {
394
+ transformFn: transformRESTImageToSDKImage,
395
+ paths: [{ path: 'receipt.businessDetails.logo' }],
396
+ },
397
+ ]));
398
+ }
399
+ catch (err) {
400
+ const transformedError = sdkTransformError(err, {
401
+ spreadPathsToArguments: {},
402
+ explicitPathsToArguments: {
403
+ id: '$[0]',
404
+ namespace: '$[1]',
405
+ namespaceData: '$[2].namespaceData',
406
+ },
407
+ singleArgumentUnchanged: false,
408
+ }, ['_id', 'namespace', 'options']);
409
+ sideEffects?.onError?.(err);
410
+ throw transformedError;
411
+ }
412
+ }
413
+ //# sourceMappingURL=receipts-v1-receipt-receipts.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"receipts-v1-receipt-receipts.universal.js","sourceRoot":"","sources":["../../../../src/receipts-v1-receipt-receipts.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,8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AAC,CACF,CAAC;IACL,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,EAAE,EAAE,MAAM;gBACV,SAAS,EAAE,MAAM;gBACjB,aAAa,EAAE,oBAAoB;aACpC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAChC,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../build/cjs/meta.js"
3
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@wix/auto_sdk_get-paid_receipts",
3
+ "version": "1.0.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org/",
6
+ "access": "public"
7
+ },
8
+ "keywords": [],
9
+ "sideEffects": false,
10
+ "main": "./build/cjs/index.js",
11
+ "types": "./build/es/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./build/es/index.js",
15
+ "require": "./build/cjs/index.js",
16
+ "types": "./build/es/index.d.ts"
17
+ },
18
+ "./package.json": "./package.json",
19
+ "./meta": {
20
+ "import": "./build/es/meta.js",
21
+ "require": "./build/cjs/meta.js",
22
+ "types": "./build/es/meta.d.ts"
23
+ }
24
+ },
25
+ "files": [
26
+ "build",
27
+ "meta",
28
+ "service-plugins"
29
+ ],
30
+ "dependencies": {
31
+ "@wix/sdk-runtime": "^0.3.35",
32
+ "@wix/sdk-types": "^1.12.4"
33
+ },
34
+ "devDependencies": {
35
+ "typescript": "^5.3.2"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
39
+ "test": ":"
40
+ },
41
+ "wix": {
42
+ "artifact": {
43
+ "artifactId": "auto-sdk-get-paid-receipts",
44
+ "groupId": "com.wixpress.public-sdk-dependencies"
45
+ },
46
+ "sdkDependency": {
47
+ "fqdnNamespace": "receipts",
48
+ "fqdn": "wix.receipts.v1.receipt"
49
+ }
50
+ },
51
+ "falconPackageHash": "9b983b40feb62373a778c7f5c4a69449281ab717ac4940fc1bcd98b9"
52
+ }