@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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.context.js +21 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.context.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.http.js +286 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.http.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.js +161 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.public.js +56 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.public.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.types.js +60 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.types.js.map +1 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.universal.js +446 -0
- package/build/cjs/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
- package/build/es/src/receipts-v1-receipt-receipts.context.js +11 -0
- package/build/es/src/receipts-v1-receipt-receipts.context.js.map +1 -0
- package/build/es/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
- package/build/es/src/receipts-v1-receipt-receipts.http.js +276 -0
- package/build/es/src/receipts-v1-receipt-receipts.http.js.map +1 -0
- package/build/es/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
- package/build/es/src/receipts-v1-receipt-receipts.meta.js +128 -0
- package/build/es/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
- package/build/es/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
- package/build/es/src/receipts-v1-receipt-receipts.public.js +39 -0
- package/build/es/src/receipts-v1-receipt-receipts.public.js.map +1 -0
- package/build/es/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
- package/build/es/src/receipts-v1-receipt-receipts.types.js +57 -0
- package/build/es/src/receipts-v1-receipt-receipts.types.js.map +1 -0
- package/build/es/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
- package/build/es/src/receipts-v1-receipt-receipts.universal.js +413 -0
- package/build/es/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js +21 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js +286 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js +161 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js +56 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js +60 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js.map +1 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js +446 -0
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.context.d.ts +11 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.context.js +11 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.context.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.d.ts +28 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.js +276 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.d.ts +27 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js +128 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.d.ts +72 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.js +39 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.types.d.ts +915 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.types.js +57 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.types.js.map +1 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.universal.d.ts +1072 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js +413 -0
- package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateExtendedFields = exports.getLatestReceiptNumber = exports.sendReceiptEmail = exports.regenerateReceiptDocument = exports.queryReceipts = exports.getReceipt = exports.createReceipt = void 0;
|
|
4
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
+
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
+
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
10
|
+
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
11
|
+
function resolveWixReceiptsV1ReceiptsUrl(opts) {
|
|
12
|
+
const domainToMappings = {
|
|
13
|
+
'manage._base_domain_': [
|
|
14
|
+
{
|
|
15
|
+
srcPath: '/_api/receipts',
|
|
16
|
+
destPath: '',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
};
|
|
20
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
21
|
+
}
|
|
22
|
+
const PACKAGE_NAME = '@wix/auto_sdk_get-paid_receipts';
|
|
23
|
+
/**
|
|
24
|
+
* Creates a Receipt.
|
|
25
|
+
*
|
|
26
|
+
* The request body must include: currency, source reference, line items, payment, totals.
|
|
27
|
+
* Receipt number will not be assigned on the create response. Number will be assigned eventually but before the
|
|
28
|
+
* document file is created.
|
|
29
|
+
*/
|
|
30
|
+
function createReceipt(payload) {
|
|
31
|
+
function __createReceipt({ host }) {
|
|
32
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
33
|
+
{
|
|
34
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
35
|
+
paths: [
|
|
36
|
+
{ path: 'receipt.createdDate' },
|
|
37
|
+
{ path: 'receipt.updatedDate' },
|
|
38
|
+
{ path: 'receipt.businessDetails.logo.urlExpirationDate' },
|
|
39
|
+
{ path: 'receipt.payment.transactionDate' },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
44
|
+
paths: [
|
|
45
|
+
{ path: 'receipt.businessDetails.address.geocode.latitude' },
|
|
46
|
+
{ path: 'receipt.businessDetails.address.geocode.longitude' },
|
|
47
|
+
{ path: 'receipt.customer.billingAddress.geocode.latitude' },
|
|
48
|
+
{ path: 'receipt.customer.billingAddress.geocode.longitude' },
|
|
49
|
+
{ path: 'receipt.customer.shippingAddress.geocode.latitude' },
|
|
50
|
+
{ path: 'receipt.customer.shippingAddress.geocode.longitude' },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
]);
|
|
54
|
+
const metadata = {
|
|
55
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
56
|
+
method: 'POST',
|
|
57
|
+
methodFqn: 'wix.receipts.v1.Receipts.CreateReceipt',
|
|
58
|
+
packageName: PACKAGE_NAME,
|
|
59
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
60
|
+
protoPath: '/v1/receipts',
|
|
61
|
+
data: serializedData,
|
|
62
|
+
host,
|
|
63
|
+
}),
|
|
64
|
+
data: serializedData,
|
|
65
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
66
|
+
{
|
|
67
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
68
|
+
paths: [
|
|
69
|
+
{ path: 'receipt.createdDate' },
|
|
70
|
+
{ path: 'receipt.updatedDate' },
|
|
71
|
+
{ path: 'receipt.businessDetails.logo.urlExpirationDate' },
|
|
72
|
+
{ path: 'receipt.payment.transactionDate' },
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
77
|
+
paths: [
|
|
78
|
+
{ path: 'receipt.businessDetails.address.geocode.latitude' },
|
|
79
|
+
{ path: 'receipt.businessDetails.address.geocode.longitude' },
|
|
80
|
+
{ path: 'receipt.customer.billingAddress.geocode.latitude' },
|
|
81
|
+
{ path: 'receipt.customer.billingAddress.geocode.longitude' },
|
|
82
|
+
{ path: 'receipt.customer.shippingAddress.geocode.latitude' },
|
|
83
|
+
{ path: 'receipt.customer.shippingAddress.geocode.longitude' },
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
]),
|
|
87
|
+
};
|
|
88
|
+
return metadata;
|
|
89
|
+
}
|
|
90
|
+
return __createReceipt;
|
|
91
|
+
}
|
|
92
|
+
exports.createReceipt = createReceipt;
|
|
93
|
+
/** Retrieves a Receipt. */
|
|
94
|
+
function getReceipt(payload) {
|
|
95
|
+
function __getReceipt({ host }) {
|
|
96
|
+
const metadata = {
|
|
97
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
98
|
+
method: 'GET',
|
|
99
|
+
methodFqn: 'wix.receipts.v1.Receipts.GetReceipt',
|
|
100
|
+
packageName: PACKAGE_NAME,
|
|
101
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
102
|
+
protoPath: '/v1/receipts/{receiptId}',
|
|
103
|
+
data: payload,
|
|
104
|
+
host,
|
|
105
|
+
}),
|
|
106
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
107
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
108
|
+
{
|
|
109
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
110
|
+
paths: [
|
|
111
|
+
{ path: 'receipt.createdDate' },
|
|
112
|
+
{ path: 'receipt.updatedDate' },
|
|
113
|
+
{ path: 'receipt.businessDetails.logo.urlExpirationDate' },
|
|
114
|
+
{ path: 'receipt.payment.transactionDate' },
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
119
|
+
paths: [
|
|
120
|
+
{ path: 'receipt.businessDetails.address.geocode.latitude' },
|
|
121
|
+
{ path: 'receipt.businessDetails.address.geocode.longitude' },
|
|
122
|
+
{ path: 'receipt.customer.billingAddress.geocode.latitude' },
|
|
123
|
+
{ path: 'receipt.customer.billingAddress.geocode.longitude' },
|
|
124
|
+
{ path: 'receipt.customer.shippingAddress.geocode.latitude' },
|
|
125
|
+
{ path: 'receipt.customer.shippingAddress.geocode.longitude' },
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
]),
|
|
129
|
+
};
|
|
130
|
+
return metadata;
|
|
131
|
+
}
|
|
132
|
+
return __getReceipt;
|
|
133
|
+
}
|
|
134
|
+
exports.getReceipt = getReceipt;
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves a list of up to 100 Receipts, given the provided [paging, filtering, and sorting][1].
|
|
137
|
+
*
|
|
138
|
+
* Define queries using WQL - Wix Query Language. To learn how to query Receipts, see [API Query Language][2].
|
|
139
|
+
*
|
|
140
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
141
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
142
|
+
*/
|
|
143
|
+
function queryReceipts(payload) {
|
|
144
|
+
function __queryReceipts({ host }) {
|
|
145
|
+
const metadata = {
|
|
146
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
147
|
+
method: 'POST',
|
|
148
|
+
methodFqn: 'wix.receipts.v1.Receipts.QueryReceipts',
|
|
149
|
+
packageName: PACKAGE_NAME,
|
|
150
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
151
|
+
protoPath: '/v1/receipts/query',
|
|
152
|
+
data: payload,
|
|
153
|
+
host,
|
|
154
|
+
}),
|
|
155
|
+
data: payload,
|
|
156
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
157
|
+
{
|
|
158
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
159
|
+
paths: [
|
|
160
|
+
{ path: 'receipts.createdDate' },
|
|
161
|
+
{ path: 'receipts.updatedDate' },
|
|
162
|
+
{ path: 'receipts.businessDetails.logo.urlExpirationDate' },
|
|
163
|
+
{ path: 'receipts.payment.transactionDate' },
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
168
|
+
paths: [
|
|
169
|
+
{ path: 'receipts.businessDetails.address.geocode.latitude' },
|
|
170
|
+
{ path: 'receipts.businessDetails.address.geocode.longitude' },
|
|
171
|
+
{ path: 'receipts.customer.billingAddress.geocode.latitude' },
|
|
172
|
+
{ path: 'receipts.customer.billingAddress.geocode.longitude' },
|
|
173
|
+
{ path: 'receipts.customer.shippingAddress.geocode.latitude' },
|
|
174
|
+
{ path: 'receipts.customer.shippingAddress.geocode.longitude' },
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
]),
|
|
178
|
+
};
|
|
179
|
+
return metadata;
|
|
180
|
+
}
|
|
181
|
+
return __queryReceipts;
|
|
182
|
+
}
|
|
183
|
+
exports.queryReceipts = queryReceipts;
|
|
184
|
+
/** Retries generating document if its status is FAILED. */
|
|
185
|
+
function regenerateReceiptDocument(payload) {
|
|
186
|
+
function __regenerateReceiptDocument({ host }) {
|
|
187
|
+
const metadata = {
|
|
188
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
189
|
+
method: 'POST',
|
|
190
|
+
methodFqn: 'wix.receipts.v1.Receipts.RegenerateReceiptDocument',
|
|
191
|
+
packageName: PACKAGE_NAME,
|
|
192
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
193
|
+
protoPath: '/v1/receipts/{receiptId}/regenerate-receipt-document',
|
|
194
|
+
data: payload,
|
|
195
|
+
host,
|
|
196
|
+
}),
|
|
197
|
+
data: payload,
|
|
198
|
+
};
|
|
199
|
+
return metadata;
|
|
200
|
+
}
|
|
201
|
+
return __regenerateReceiptDocument;
|
|
202
|
+
}
|
|
203
|
+
exports.regenerateReceiptDocument = regenerateReceiptDocument;
|
|
204
|
+
/** Sends email with Receipt. */
|
|
205
|
+
function sendReceiptEmail(payload) {
|
|
206
|
+
function __sendReceiptEmail({ host }) {
|
|
207
|
+
const metadata = {
|
|
208
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
209
|
+
method: 'POST',
|
|
210
|
+
methodFqn: 'wix.receipts.v1.Receipts.SendReceiptEmail',
|
|
211
|
+
packageName: PACKAGE_NAME,
|
|
212
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
213
|
+
protoPath: '/v1/receipts/{receiptId}/send-email',
|
|
214
|
+
data: payload,
|
|
215
|
+
host,
|
|
216
|
+
}),
|
|
217
|
+
data: payload,
|
|
218
|
+
};
|
|
219
|
+
return metadata;
|
|
220
|
+
}
|
|
221
|
+
return __sendReceiptEmail;
|
|
222
|
+
}
|
|
223
|
+
exports.sendReceiptEmail = sendReceiptEmail;
|
|
224
|
+
/** Returns latest number for a given prefix. */
|
|
225
|
+
function getLatestReceiptNumber(payload) {
|
|
226
|
+
function __getLatestReceiptNumber({ host }) {
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
229
|
+
method: 'GET',
|
|
230
|
+
methodFqn: 'wix.receipts.v1.Receipts.GetLatestReceiptNumber',
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
233
|
+
protoPath: '/v1/receipts/get-latest-number',
|
|
234
|
+
data: payload,
|
|
235
|
+
host,
|
|
236
|
+
}),
|
|
237
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
238
|
+
};
|
|
239
|
+
return metadata;
|
|
240
|
+
}
|
|
241
|
+
return __getLatestReceiptNumber;
|
|
242
|
+
}
|
|
243
|
+
exports.getLatestReceiptNumber = getLatestReceiptNumber;
|
|
244
|
+
/** Updates extended fields of a Receipt without incrementing revision. */
|
|
245
|
+
function updateExtendedFields(payload) {
|
|
246
|
+
function __updateExtendedFields({ host }) {
|
|
247
|
+
const metadata = {
|
|
248
|
+
entityFqdn: 'wix.receipts.v1.receipt',
|
|
249
|
+
method: 'POST',
|
|
250
|
+
methodFqn: 'wix.receipts.v1.Receipts.UpdateExtendedFields',
|
|
251
|
+
packageName: PACKAGE_NAME,
|
|
252
|
+
url: resolveWixReceiptsV1ReceiptsUrl({
|
|
253
|
+
protoPath: '/v1/receipts/{id}/update-extended-fields',
|
|
254
|
+
data: payload,
|
|
255
|
+
host,
|
|
256
|
+
}),
|
|
257
|
+
data: payload,
|
|
258
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
259
|
+
{
|
|
260
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
261
|
+
paths: [
|
|
262
|
+
{ path: 'receipt.createdDate' },
|
|
263
|
+
{ path: 'receipt.updatedDate' },
|
|
264
|
+
{ path: 'receipt.businessDetails.logo.urlExpirationDate' },
|
|
265
|
+
{ path: 'receipt.payment.transactionDate' },
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
270
|
+
paths: [
|
|
271
|
+
{ path: 'receipt.businessDetails.address.geocode.latitude' },
|
|
272
|
+
{ path: 'receipt.businessDetails.address.geocode.longitude' },
|
|
273
|
+
{ path: 'receipt.customer.billingAddress.geocode.latitude' },
|
|
274
|
+
{ path: 'receipt.customer.billingAddress.geocode.longitude' },
|
|
275
|
+
{ path: 'receipt.customer.shippingAddress.geocode.latitude' },
|
|
276
|
+
{ path: 'receipt.customer.shippingAddress.geocode.longitude' },
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
]),
|
|
280
|
+
};
|
|
281
|
+
return metadata;
|
|
282
|
+
}
|
|
283
|
+
return __updateExtendedFields;
|
|
284
|
+
}
|
|
285
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
286
|
+
//# sourceMappingURL=receipts-v1-receipt-receipts.http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts-v1-receipt-receipts.http.js","sourceRoot":"","sources":["../../../../src/receipts-v1-receipt-receipts.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,+BAA+B,CACtC,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,M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AE,kDAAkD,EAAE;wBAC5D,EAAE,IAAI,EAAE,mDAAmD,EAAE;wBAC7D,EAAE,IAAI,EAAE,mDAAmD,EAAE;wBAC7D,EAAE,IAAI,EAAE,oDAAoD,EAAE;qBAC/D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AA5CD,oDA4CC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as ambassadorWixReceiptsV1ReceiptTypes from './receipts-v1-receipt-receipts.types.js';
|
|
2
|
+
import * as ambassadorWixReceiptsV1ReceiptUniversalTypes from './receipts-v1-receipt-receipts.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function createReceipt(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptRequest, ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptResponse & ambassadorWixReceiptsV1ReceiptUniversalTypes.CreateReceiptResponseNonNullableFields, ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptResponse & ambassadorWixReceiptsV1ReceiptTypes.CreateReceiptResponseNonNullableFields>;
|
|
14
|
+
export declare function getReceipt(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
+
receiptId: string;
|
|
16
|
+
}, ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptRequest, ambassadorWixReceiptsV1ReceiptTypes.GetReceiptRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptResponse & ambassadorWixReceiptsV1ReceiptUniversalTypes.GetReceiptResponseNonNullableFields, ambassadorWixReceiptsV1ReceiptTypes.GetReceiptResponse & ambassadorWixReceiptsV1ReceiptTypes.GetReceiptResponseNonNullableFields>;
|
|
17
|
+
export declare function queryReceipts(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsRequest, ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsResponse & ambassadorWixReceiptsV1ReceiptUniversalTypes.QueryReceiptsResponseNonNullableFields, ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsResponse & ambassadorWixReceiptsV1ReceiptTypes.QueryReceiptsResponseNonNullableFields>;
|
|
18
|
+
export declare function regenerateReceiptDocument(): __PublicMethodMetaInfo<'POST', {
|
|
19
|
+
receiptId: string;
|
|
20
|
+
}, ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentRequest, ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.RegenerateReceiptDocumentResponse, ambassadorWixReceiptsV1ReceiptTypes.RegenerateReceiptDocumentResponse>;
|
|
21
|
+
export declare function sendReceiptEmail(): __PublicMethodMetaInfo<'POST', {
|
|
22
|
+
receiptId: string;
|
|
23
|
+
}, ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailRequest, ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.SendReceiptEmailResponse, ambassadorWixReceiptsV1ReceiptTypes.SendReceiptEmailResponse>;
|
|
24
|
+
export declare function getLatestReceiptNumber(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberRequest, ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.GetLatestReceiptNumberResponse, ambassadorWixReceiptsV1ReceiptTypes.GetLatestReceiptNumberResponse>;
|
|
25
|
+
export declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
26
|
+
id: string;
|
|
27
|
+
}, ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsRequest, ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsRequest, ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsResponse & ambassadorWixReceiptsV1ReceiptUniversalTypes.UpdateExtendedFieldsResponseNonNullableFields, ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsResponse & ambassadorWixReceiptsV1ReceiptTypes.UpdateExtendedFieldsResponseNonNullableFields>;
|
|
@@ -0,0 +1,161 @@
|
|
|
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.updateExtendedFields = exports.getLatestReceiptNumber = exports.sendReceiptEmail = exports.regenerateReceiptDocument = exports.queryReceipts = exports.getReceipt = exports.createReceipt = void 0;
|
|
27
|
+
const ambassadorWixReceiptsV1Receipt = __importStar(require("./receipts-v1-receipt-receipts.http.js"));
|
|
28
|
+
function createReceipt() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.createReceipt(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'POST',
|
|
38
|
+
path: '/v1/receipts',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.createReceipt = createReceipt;
|
|
47
|
+
function getReceipt() {
|
|
48
|
+
const payload = { receiptId: ':receiptId' };
|
|
49
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.getReceipt(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'GET',
|
|
57
|
+
path: '/v1/receipts/{receiptId}',
|
|
58
|
+
pathParams: { receiptId: 'receiptId' },
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.getReceipt = getReceipt;
|
|
66
|
+
function queryReceipts() {
|
|
67
|
+
const payload = {};
|
|
68
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.queryReceipts(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'POST',
|
|
76
|
+
path: '/v1/receipts/query',
|
|
77
|
+
pathParams: {},
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.queryReceipts = queryReceipts;
|
|
85
|
+
function regenerateReceiptDocument() {
|
|
86
|
+
const payload = { receiptId: ':receiptId' };
|
|
87
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.regenerateReceiptDocument(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'POST',
|
|
95
|
+
path: '/v1/receipts/{receiptId}/regenerate-receipt-document',
|
|
96
|
+
pathParams: { receiptId: 'receiptId' },
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.regenerateReceiptDocument = regenerateReceiptDocument;
|
|
104
|
+
function sendReceiptEmail() {
|
|
105
|
+
const payload = { receiptId: ':receiptId' };
|
|
106
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.sendReceiptEmail(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'POST',
|
|
114
|
+
path: '/v1/receipts/{receiptId}/send-email',
|
|
115
|
+
pathParams: { receiptId: 'receiptId' },
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.sendReceiptEmail = sendReceiptEmail;
|
|
123
|
+
function getLatestReceiptNumber() {
|
|
124
|
+
const payload = {};
|
|
125
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.getLatestReceiptNumber(payload);
|
|
126
|
+
const getUrl = (context) => {
|
|
127
|
+
const { url } = getRequestOptions(context);
|
|
128
|
+
return url;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
getUrl,
|
|
132
|
+
httpMethod: 'GET',
|
|
133
|
+
path: '/v1/receipts/get-latest-number',
|
|
134
|
+
pathParams: {},
|
|
135
|
+
__requestType: null,
|
|
136
|
+
__originalRequestType: null,
|
|
137
|
+
__responseType: null,
|
|
138
|
+
__originalResponseType: null,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
exports.getLatestReceiptNumber = getLatestReceiptNumber;
|
|
142
|
+
function updateExtendedFields() {
|
|
143
|
+
const payload = { id: ':id' };
|
|
144
|
+
const getRequestOptions = ambassadorWixReceiptsV1Receipt.updateExtendedFields(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: 'POST',
|
|
152
|
+
path: '/v1/receipts/{id}/update-extended-fields',
|
|
153
|
+
pathParams: { id: 'id' },
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
161
|
+
//# sourceMappingURL=receipts-v1-receipt-receipts.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts-v1-receipt-receipts.meta.js","sourceRoot":"","sources":["../../../../src/receipts-v1-receipt-receipts.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uGAAyF;AAsBzF,SAAgB,aAAa;IAU3B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAExD,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,cAAc;QACpB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,sCA8BC;AAED,SAAgB,UAAU;IAUxB,MAAM,OAAO,GAAG,EAAE,SAAS,EAAE,YAAY,EAAS,CAAC;IAEnD,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAE7E,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,KAAK;QACjB,IAAI,EAAE,0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EAAE,EAAE,EAAE,KAAK,EAAS,CAAC;IAErC,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE/D,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,0CAA0C;QAChD,UAAU,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE;QACxB,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oDA8BC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { GetLatestReceiptNumberOptions, GetLatestReceiptNumberResponse, Receipt, ReceiptNonNullableFields, ReceiptsQueryBuilder, SendReceiptEmailOptions, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields } from './receipts-v1-receipt-receipts.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function createReceipt(httpClient: HttpClient): CreateReceiptSignature;
|
|
7
|
+
interface CreateReceiptSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Receipt.
|
|
10
|
+
*
|
|
11
|
+
* The request body must include: currency, source reference, line items, payment, totals.
|
|
12
|
+
* Receipt number will not be assigned on the create response. Number will be assigned eventually but before the
|
|
13
|
+
* document file is created.
|
|
14
|
+
* @param - Receipt to be created.
|
|
15
|
+
* @returns The created Receipt.
|
|
16
|
+
*/
|
|
17
|
+
(receipt: Receipt): Promise<Receipt & ReceiptNonNullableFields>;
|
|
18
|
+
}
|
|
19
|
+
export declare function getReceipt(httpClient: HttpClient): GetReceiptSignature;
|
|
20
|
+
interface GetReceiptSignature {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a Receipt.
|
|
23
|
+
* @param - Id of the Receipt to retrieve.
|
|
24
|
+
* @returns The requested Receipt.
|
|
25
|
+
*/
|
|
26
|
+
(receiptId: string): Promise<Receipt & ReceiptNonNullableFields>;
|
|
27
|
+
}
|
|
28
|
+
export declare function queryReceipts(httpClient: HttpClient): QueryReceiptsSignature;
|
|
29
|
+
interface QueryReceiptsSignature {
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves a list of up to 100 Receipts, given the provided [paging, filtering, and sorting][1].
|
|
32
|
+
*
|
|
33
|
+
* Define queries using WQL - Wix Query Language. To learn how to query Receipts, see [API Query Language][2].
|
|
34
|
+
*
|
|
35
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
36
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
37
|
+
*/
|
|
38
|
+
(): ReceiptsQueryBuilder;
|
|
39
|
+
}
|
|
40
|
+
export declare function regenerateReceiptDocument(httpClient: HttpClient): RegenerateReceiptDocumentSignature;
|
|
41
|
+
interface RegenerateReceiptDocumentSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Retries generating document if its status is FAILED.
|
|
44
|
+
* @param - Receipt id.
|
|
45
|
+
*/
|
|
46
|
+
(receiptId: string): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
export declare function sendReceiptEmail(httpClient: HttpClient): SendReceiptEmailSignature;
|
|
49
|
+
interface SendReceiptEmailSignature {
|
|
50
|
+
/**
|
|
51
|
+
* Sends email with Receipt.
|
|
52
|
+
* @param - Id of the receipt to send to recipients.
|
|
53
|
+
*/
|
|
54
|
+
(receiptId: string, options?: SendReceiptEmailOptions | undefined): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
export declare function getLatestReceiptNumber(httpClient: HttpClient): GetLatestReceiptNumberSignature;
|
|
57
|
+
interface GetLatestReceiptNumberSignature {
|
|
58
|
+
/**
|
|
59
|
+
* Returns latest number for a given prefix.
|
|
60
|
+
*/
|
|
61
|
+
(options?: GetLatestReceiptNumberOptions | undefined): Promise<GetLatestReceiptNumberResponse>;
|
|
62
|
+
}
|
|
63
|
+
export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
64
|
+
interface UpdateExtendedFieldsSignature {
|
|
65
|
+
/**
|
|
66
|
+
* Updates extended fields of a Receipt without incrementing revision.
|
|
67
|
+
* @param - ID of the entity to update.
|
|
68
|
+
* @param - Identifier for the app whose extended fields are being updated.
|
|
69
|
+
*/
|
|
70
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
|
|
71
|
+
}
|
|
72
|
+
export { ActionEvent, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, AddressStreetOneOf, BusinessDetails, CreateReceiptRequest, CreateReceiptResponse, CreateReceiptResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomField, CustomFields, Customer, Discount, Document, DocumentStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, Failed, FooterCustomField, FullAddressContactDetails, GenerateReceiptDocument, GetLatestReceiptNumberOptions, GetLatestReceiptNumberRequest, GetLatestReceiptNumberResponse, GetReceiptRequest, GetReceiptResponse, GetReceiptResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, LineItem, LineItemTax, LineItemTotals, Locale, MessageEnvelope, Numbering, Payment, QueryReceiptsRequest, QueryReceiptsResponse, QueryReceiptsResponseNonNullableFields, Receipt, ReceiptDocumentHandled, ReceiptDocumentHandledResultOneOf, ReceiptDocumentProcess, ReceiptNonNullableFields, ReceiptNumberingProcess, ReceiptOrderType, ReceiptsQueryBuilder, ReceiptsQueryResult, RegenerateReceiptDocumentRequest, RegenerateReceiptDocumentResponse, RegionalProperties, RequestOrigin, RestoreInfo, SendReceiptEmailOptions, SendReceiptEmailRequest, SendReceiptEmailResponse, Sent, ShippingInfo, ShippingTax, SortOrder, Sorting, SourceReference, SourceReferenceOrderOneOf, StandardDetails, StreetAddress, Subdivision, SubdivisionType, Succeeded, Tax, Totals, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields, VatId, VatType, WebhookIdentityType, WixEcom, WixPayment, } from './receipts-v1-receipt-receipts.universal.js';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.VatType = exports.SubdivisionType = exports.SortOrder = exports.RequestOrigin = exports.ReceiptOrderType = exports.DocumentStatus = exports.updateExtendedFields = exports.getLatestReceiptNumber = exports.sendReceiptEmail = exports.regenerateReceiptDocument = exports.queryReceipts = exports.getReceipt = exports.createReceipt = exports.__metadata = void 0;
|
|
4
|
+
const receipts_v1_receipt_receipts_universal_js_1 = require("./receipts-v1-receipt-receipts.universal.js");
|
|
5
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/get-paid' };
|
|
6
|
+
function createReceipt(httpClient) {
|
|
7
|
+
return (receipt) => (0, receipts_v1_receipt_receipts_universal_js_1.createReceipt)(receipt,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.createReceipt = createReceipt;
|
|
12
|
+
function getReceipt(httpClient) {
|
|
13
|
+
return (receiptId) => (0, receipts_v1_receipt_receipts_universal_js_1.getReceipt)(receiptId,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.getReceipt = getReceipt;
|
|
18
|
+
function queryReceipts(httpClient) {
|
|
19
|
+
return () => (0, receipts_v1_receipt_receipts_universal_js_1.queryReceipts)(
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
{ httpClient });
|
|
22
|
+
}
|
|
23
|
+
exports.queryReceipts = queryReceipts;
|
|
24
|
+
function regenerateReceiptDocument(httpClient) {
|
|
25
|
+
return (receiptId) => (0, receipts_v1_receipt_receipts_universal_js_1.regenerateReceiptDocument)(receiptId,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
exports.regenerateReceiptDocument = regenerateReceiptDocument;
|
|
30
|
+
function sendReceiptEmail(httpClient) {
|
|
31
|
+
return (receiptId, options) => (0, receipts_v1_receipt_receipts_universal_js_1.sendReceiptEmail)(receiptId, options,
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
{ httpClient });
|
|
34
|
+
}
|
|
35
|
+
exports.sendReceiptEmail = sendReceiptEmail;
|
|
36
|
+
function getLatestReceiptNumber(httpClient) {
|
|
37
|
+
return (options) => (0, receipts_v1_receipt_receipts_universal_js_1.getLatestReceiptNumber)(options,
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
{ httpClient });
|
|
40
|
+
}
|
|
41
|
+
exports.getLatestReceiptNumber = getLatestReceiptNumber;
|
|
42
|
+
function updateExtendedFields(httpClient) {
|
|
43
|
+
return (_id, namespace, options) => (0, receipts_v1_receipt_receipts_universal_js_1.updateExtendedFields)(_id, namespace, options,
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
{ httpClient });
|
|
46
|
+
}
|
|
47
|
+
exports.updateExtendedFields = updateExtendedFields;
|
|
48
|
+
var receipts_v1_receipt_receipts_universal_js_2 = require("./receipts-v1-receipt-receipts.universal.js");
|
|
49
|
+
Object.defineProperty(exports, "DocumentStatus", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.DocumentStatus; } });
|
|
50
|
+
Object.defineProperty(exports, "ReceiptOrderType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.ReceiptOrderType; } });
|
|
51
|
+
Object.defineProperty(exports, "RequestOrigin", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.RequestOrigin; } });
|
|
52
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.SortOrder; } });
|
|
53
|
+
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.SubdivisionType; } });
|
|
54
|
+
Object.defineProperty(exports, "VatType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.VatType; } });
|
|
55
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_2.WebhookIdentityType; } });
|
|
56
|
+
//# sourceMappingURL=receipts-v1-receipt-receipts.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts-v1-receipt-receipts.public.js","sourceRoot":"","sources":["../../../../src/receipts-v1-receipt-receipts.public.ts"],"names":[],"mappings":";;;AACA,2GAiBqD;AAExC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,OAAgB,EAAE,EAAE,CAC1B,IAAA,yDAAsB,EACpB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAeD,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,sDAAmB,EACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;AAWD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,IAAA,yDAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAND,sCAMC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