@wix/auto_sdk_ecom_order-invoices 1.0.14 → 1.0.16
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/src/ecom-orders-v1-invoice-order-invoices.types.d.ts → ecom-orders-v1-invoice-order-invoices.universal-Be8NGMCD.d.mts} +43 -43
- 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
- package/build/index.d.mts +19 -0
- package/build/index.d.ts +19 -0
- package/build/index.js +284 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +256 -0
- package/build/index.mjs.map +1 -0
- 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
- 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
- package/build/internal/index.d.mts +53 -0
- package/build/internal/index.d.ts +53 -0
- package/build/internal/index.js +284 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +256 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +127 -0
- package/build/internal/meta.d.ts +127 -0
- package/build/internal/meta.js +209 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +179 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +127 -0
- package/build/meta.d.ts +127 -0
- package/build/meta.js +209 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +179 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -5
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -15
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -114
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -104
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -17
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -35
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -12
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -329
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -223
- package/build/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -5
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -11
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -107
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -74
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -17
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -27
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -9
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -329
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -193
- package/build/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -11
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -15
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -114
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -104
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -45
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -35
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -12
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -398
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -223
- package/build/internal/cjs/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.d.ts +0 -11
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js +0 -11
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.context.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.d.ts +0 -14
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js +0 -107
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.http.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.d.ts +0 -20
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js +0 -74
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.meta.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.d.ts +0 -45
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js +0 -27
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.public.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js +0 -9
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.types.js.map +0 -1
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.d.ts +0 -398
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js +0 -193
- package/build/internal/es/src/ecom-orders-v1-invoice-order-invoices.universal.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { listInvoicesForMultipleOrders as publicListInvoicesForMultipleOrders, generateInvoice as publicGenerateInvoice, bulkGenerateInvoices as publicBulkGenerateInvoices, addInvoiceToOrder as publicAddInvoiceToOrder, } from './ecom-orders-v1-invoice-order-invoices.public.js';
|
|
2
|
-
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
-
export const listInvoicesForMultipleOrders = /*#__PURE__*/ createRESTModule(publicListInvoicesForMultipleOrders);
|
|
4
|
-
/** @internal */
|
|
5
|
-
export const generateInvoice = /*#__PURE__*/ createRESTModule(publicGenerateInvoice);
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const bulkGenerateInvoices = /*#__PURE__*/ createRESTModule(publicBulkGenerateInvoices);
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const addInvoiceToOrder = /*#__PURE__*/ createRESTModule(publicAddInvoiceToOrder);
|
|
10
|
-
export { WebhookIdentityType } from './ecom-orders-v1-invoice-order-invoices.universal.js';
|
|
11
|
-
//# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-orders-v1-invoice-order-invoices.context.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,IAAI,mCAAmC,EACpE,eAAe,IAAI,qBAAqB,EACxC,oBAAoB,IAAI,0BAA0B,EAClD,iBAAiB,IAAI,uBAAuB,GAC7C,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,6BAA6B,GAGtC,aAAa,CAAC,gBAAgB,CAAC,mCAAmC,CAAC,CAAC;AACxE,gBAAgB;AAChB,MAAM,CAAC,MAAM,eAAe,GAExB,aAAa,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC;AAC1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAG7B,aAAa,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAC/D,gBAAgB;AAChB,MAAM,CAAC,MAAM,iBAAiB,GAG1B,aAAa,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves the IDs of invoices associated with all specified orders.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
|
|
7
|
-
*/
|
|
8
|
-
export declare function listInvoicesForMultipleOrders(payload: object): RequestOptionsFactory<any>;
|
|
9
|
-
/** Generates and adds an invoice to a specified order. */
|
|
10
|
-
export declare function generateInvoice(payload: object): RequestOptionsFactory<any>;
|
|
11
|
-
/** Generates and adds invoices to all specified orders. */
|
|
12
|
-
export declare function bulkGenerateInvoices(payload: object): RequestOptionsFactory<any>;
|
|
13
|
-
/** Adds an invoice to a specified order. */
|
|
14
|
-
export declare function addInvoiceToOrder(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
|
|
2
|
-
function resolveComWixEcomOrdersInvoicesV1InvoicesUrl(opts) {
|
|
3
|
-
const domainToMappings = {
|
|
4
|
-
'www.wixapis.com': [
|
|
5
|
-
{
|
|
6
|
-
srcPath: '/ecom/v1/ep-invoices',
|
|
7
|
-
destPath: '/v1/invoices',
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
'manage._base_domain_': [
|
|
11
|
-
{
|
|
12
|
-
srcPath: '/ecom/v1/ep-invoices',
|
|
13
|
-
destPath: '/v1/invoices',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
_: [
|
|
17
|
-
{
|
|
18
|
-
srcPath: '/v1/invoices',
|
|
19
|
-
destPath: '/v1/invoices',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
};
|
|
23
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
24
|
-
}
|
|
25
|
-
const PACKAGE_NAME = '@wix/auto_sdk_ecom_order-invoices';
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves the IDs of invoices associated with all specified orders.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
|
|
31
|
-
*/
|
|
32
|
-
export function listInvoicesForMultipleOrders(payload) {
|
|
33
|
-
function __listInvoicesForMultipleOrders({ host }) {
|
|
34
|
-
const metadata = {
|
|
35
|
-
entityFqdn: 'wix.ecom.orders.v1.invoice',
|
|
36
|
-
method: 'POST',
|
|
37
|
-
methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.ListInvoicesForMultipleOrders',
|
|
38
|
-
packageName: PACKAGE_NAME,
|
|
39
|
-
url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
|
|
40
|
-
protoPath: '/v1/invoices/list-by-ids',
|
|
41
|
-
data: payload,
|
|
42
|
-
host,
|
|
43
|
-
}),
|
|
44
|
-
data: payload,
|
|
45
|
-
};
|
|
46
|
-
return metadata;
|
|
47
|
-
}
|
|
48
|
-
return __listInvoicesForMultipleOrders;
|
|
49
|
-
}
|
|
50
|
-
/** Generates and adds an invoice to a specified order. */
|
|
51
|
-
export function generateInvoice(payload) {
|
|
52
|
-
function __generateInvoice({ host }) {
|
|
53
|
-
const metadata = {
|
|
54
|
-
entityFqdn: 'wix.ecom.orders.v1.invoice',
|
|
55
|
-
method: 'POST',
|
|
56
|
-
methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.GenerateInvoice',
|
|
57
|
-
packageName: PACKAGE_NAME,
|
|
58
|
-
url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
|
|
59
|
-
protoPath: '/v1/invoices/orders/{orderId}',
|
|
60
|
-
data: payload,
|
|
61
|
-
host,
|
|
62
|
-
}),
|
|
63
|
-
data: payload,
|
|
64
|
-
};
|
|
65
|
-
return metadata;
|
|
66
|
-
}
|
|
67
|
-
return __generateInvoice;
|
|
68
|
-
}
|
|
69
|
-
/** Generates and adds invoices to all specified orders. */
|
|
70
|
-
export function bulkGenerateInvoices(payload) {
|
|
71
|
-
function __bulkGenerateInvoices({ host }) {
|
|
72
|
-
const metadata = {
|
|
73
|
-
entityFqdn: 'wix.ecom.orders.v1.invoice',
|
|
74
|
-
method: 'POST',
|
|
75
|
-
methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.BulkGenerateInvoices',
|
|
76
|
-
packageName: PACKAGE_NAME,
|
|
77
|
-
url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
|
|
78
|
-
protoPath: '/v1/bulk/invoices/generate',
|
|
79
|
-
data: payload,
|
|
80
|
-
host,
|
|
81
|
-
}),
|
|
82
|
-
data: payload,
|
|
83
|
-
};
|
|
84
|
-
return metadata;
|
|
85
|
-
}
|
|
86
|
-
return __bulkGenerateInvoices;
|
|
87
|
-
}
|
|
88
|
-
/** Adds an invoice to a specified order. */
|
|
89
|
-
export function addInvoiceToOrder(payload) {
|
|
90
|
-
function __addInvoiceToOrder({ host }) {
|
|
91
|
-
const metadata = {
|
|
92
|
-
entityFqdn: 'wix.ecom.orders.v1.invoice',
|
|
93
|
-
method: 'POST',
|
|
94
|
-
methodFqn: 'com.wix.ecom.orders.invoices.v1.Invoices.AddInvoiceToOrder',
|
|
95
|
-
packageName: PACKAGE_NAME,
|
|
96
|
-
url: resolveComWixEcomOrdersInvoicesV1InvoicesUrl({
|
|
97
|
-
protoPath: '/v1/invoices/orders/{orderId}/add-invoice',
|
|
98
|
-
data: payload,
|
|
99
|
-
host,
|
|
100
|
-
}),
|
|
101
|
-
data: payload,
|
|
102
|
-
};
|
|
103
|
-
return metadata;
|
|
104
|
-
}
|
|
105
|
-
return __addInvoiceToOrder;
|
|
106
|
-
}
|
|
107
|
-
//# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-orders-v1-invoice-order-invoices.http.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,4CAA4C,CACnD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,cAAc;aACzB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S,EACP,+DAA+D;YACjE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,4CAA4C,CAAC;gBAChD,SAAS,EAAE,4BAA4B;gBACvC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC;AAED,4CAA4C;AAC5C,MAAM,UAAU,iBAAiB,CAAC,OAAe;IAC/C,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAO;QACxC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,4DAA4D;YACvE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,4CAA4C,CAAC;gBAChD,SAAS,EAAE,2CAA2C;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixEcomOrdersV1InvoiceTypes from './ecom-orders-v1-invoice-order-invoices.types.js';
|
|
2
|
-
import * as ambassadorWixEcomOrdersV1InvoiceUniversalTypes from './ecom-orders-v1-invoice-order-invoices.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 listInvoicesForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.ListInvoicesForMultipleOrdersRequest, ambassadorWixEcomOrdersV1InvoiceTypes.ListInvoicesForMultipleOrdersRequest, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.ListInvoicesForMultipleOrdersResponse, ambassadorWixEcomOrdersV1InvoiceTypes.ListInvoicesForMultipleOrdersResponse>;
|
|
14
|
-
export declare function generateInvoice(): __PublicMethodMetaInfo<'POST', {
|
|
15
|
-
orderId: string;
|
|
16
|
-
}, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.GenerateInvoiceRequest, ambassadorWixEcomOrdersV1InvoiceTypes.GenerateInvoiceRequest, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.GenerateInvoiceResponse, ambassadorWixEcomOrdersV1InvoiceTypes.GenerateInvoiceResponse>;
|
|
17
|
-
export declare function bulkGenerateInvoices(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.BulkGenerateInvoicesRequest, ambassadorWixEcomOrdersV1InvoiceTypes.BulkGenerateInvoicesRequest, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.BulkGenerateInvoicesResponse, ambassadorWixEcomOrdersV1InvoiceTypes.BulkGenerateInvoicesResponse>;
|
|
18
|
-
export declare function addInvoiceToOrder(): __PublicMethodMetaInfo<'POST', {
|
|
19
|
-
orderId: string;
|
|
20
|
-
}, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.AddInvoiceToOrderRequest, ambassadorWixEcomOrdersV1InvoiceTypes.AddInvoiceToOrderRequest, ambassadorWixEcomOrdersV1InvoiceUniversalTypes.AddInvoiceToOrderResponse, ambassadorWixEcomOrdersV1InvoiceTypes.AddInvoiceToOrderResponse>;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixEcomOrdersV1Invoice from './ecom-orders-v1-invoice-order-invoices.http.js';
|
|
2
|
-
export function listInvoicesForMultipleOrders() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.listInvoicesForMultipleOrders(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/v1/invoices/list-by-ids',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function generateInvoice() {
|
|
21
|
-
const payload = { orderId: ':orderId' };
|
|
22
|
-
const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.generateInvoice(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'POST',
|
|
30
|
-
path: '/v1/invoices/orders/{orderId}',
|
|
31
|
-
pathParams: { orderId: 'orderId' },
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function bulkGenerateInvoices() {
|
|
39
|
-
const payload = {};
|
|
40
|
-
const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.bulkGenerateInvoices(payload);
|
|
41
|
-
const getUrl = (context) => {
|
|
42
|
-
const { url } = getRequestOptions(context);
|
|
43
|
-
return url;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
getUrl,
|
|
47
|
-
httpMethod: 'POST',
|
|
48
|
-
path: '/v1/bulk/invoices/generate',
|
|
49
|
-
pathParams: {},
|
|
50
|
-
__requestType: null,
|
|
51
|
-
__originalRequestType: null,
|
|
52
|
-
__responseType: null,
|
|
53
|
-
__originalResponseType: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export function addInvoiceToOrder() {
|
|
57
|
-
const payload = { orderId: ':orderId' };
|
|
58
|
-
const getRequestOptions = ambassadorWixEcomOrdersV1Invoice.addInvoiceToOrder(payload);
|
|
59
|
-
const getUrl = (context) => {
|
|
60
|
-
const { url } = getRequestOptions(context);
|
|
61
|
-
return url;
|
|
62
|
-
};
|
|
63
|
-
return {
|
|
64
|
-
getUrl,
|
|
65
|
-
httpMethod: 'POST',
|
|
66
|
-
path: '/v1/invoices/orders/{orderId}/add-invoice',
|
|
67
|
-
pathParams: { orderId: 'orderId' },
|
|
68
|
-
__requestType: null,
|
|
69
|
-
__originalRequestType: null,
|
|
70
|
-
__responseType: null,
|
|
71
|
-
__originalResponseType: null,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-orders-v1-invoice-order-invoices.meta.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gCAAgC,MAAM,iDAAiD,CAAC;AAsBpG,MAAM,UAAU,6BAA6B;IAQ3C,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAA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E,OAAO,EAAE,UAAU,EAAS,CAAC;IAE/C,MAAM,iBAAiB,GACrB,gCAAgC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,2CAA2C;QACjD,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AddInvoiceToOrderResponse, BulkGenerateInvoicesResponse, GenerateInvoiceResponse, Invoice, ListInvoicesForMultipleOrdersResponse } from './ecom-orders-v1-invoice-order-invoices.universal.js';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function listInvoicesForMultipleOrders(httpClient: HttpClient): ListInvoicesForMultipleOrdersSignature;
|
|
7
|
-
interface ListInvoicesForMultipleOrdersSignature {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the IDs of invoices associated with all specified orders.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* The `listInvoicesForSingleOrder()` function returns a Promise that resolves when the specified order's transaction records are retrieved.
|
|
13
|
-
* @param - Order IDs for which to retrieve invoices.
|
|
14
|
-
*/
|
|
15
|
-
(orderIds: string[]): Promise<ListInvoicesForMultipleOrdersResponse>;
|
|
16
|
-
}
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare function generateInvoice(httpClient: HttpClient): GenerateInvoiceSignature;
|
|
19
|
-
interface GenerateInvoiceSignature {
|
|
20
|
-
/**
|
|
21
|
-
* Generates and adds an invoice to a specified order.
|
|
22
|
-
* @param - Order ID.
|
|
23
|
-
*/
|
|
24
|
-
(orderId: string): Promise<GenerateInvoiceResponse>;
|
|
25
|
-
}
|
|
26
|
-
/** @internal */
|
|
27
|
-
export declare function bulkGenerateInvoices(httpClient: HttpClient): BulkGenerateInvoicesSignature;
|
|
28
|
-
interface BulkGenerateInvoicesSignature {
|
|
29
|
-
/**
|
|
30
|
-
* Generates and adds invoices to all specified orders.
|
|
31
|
-
* @param - Order IDs.
|
|
32
|
-
*/
|
|
33
|
-
(orderIds: string[]): Promise<BulkGenerateInvoicesResponse>;
|
|
34
|
-
}
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare function addInvoiceToOrder(httpClient: HttpClient): AddInvoiceToOrderSignature;
|
|
37
|
-
interface AddInvoiceToOrderSignature {
|
|
38
|
-
/**
|
|
39
|
-
* Adds an invoice to a specified order.
|
|
40
|
-
* @param - Order ID.
|
|
41
|
-
* @param - Invoice info.
|
|
42
|
-
*/
|
|
43
|
-
(orderId: string, invoiceInfo: Invoice): Promise<AddInvoiceToOrderResponse>;
|
|
44
|
-
}
|
|
45
|
-
export { ActionEvent, AddInvoiceToOrderRequest, AddInvoiceToOrderResponse, ApplicationError, BulkActionMetadata, BulkGenerateInvoicesRequest, BulkGenerateInvoicesResponse, BulkInvoiceResult, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GenerateInvoiceRequest, GenerateInvoiceResponse, GenerateInvoiceWithNumberRequest, GenerateInvoiceWithNumberResponse, GetOrderInvoiceRequest, GetOrderInvoiceResponse, IdentificationData, IdentificationDataIdOneOf, Invoice, InvoiceForOrder, InvoicesForOrder, ItemMetadata, ListInvoicesForMultipleOrdersRequest, ListInvoicesForMultipleOrdersResponse, ListInvoicesForSingleOrderRequest, ListInvoicesForSingleOrderResponse, MessageEnvelope, RestoreInfo, WebhookIdentityType, } from './ecom-orders-v1-invoice-order-invoices.universal.js';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { addInvoiceToOrder as universalAddInvoiceToOrder, bulkGenerateInvoices as universalBulkGenerateInvoices, generateInvoice as universalGenerateInvoice, listInvoicesForMultipleOrders as universalListInvoicesForMultipleOrders, } from './ecom-orders-v1-invoice-order-invoices.universal.js';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
3
|
-
export function listInvoicesForMultipleOrders(httpClient) {
|
|
4
|
-
return (orderIds) => universalListInvoicesForMultipleOrders(orderIds,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
/** @internal */
|
|
9
|
-
export function generateInvoice(httpClient) {
|
|
10
|
-
return (orderId) => universalGenerateInvoice(orderId,
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
{ httpClient });
|
|
13
|
-
}
|
|
14
|
-
/** @internal */
|
|
15
|
-
export function bulkGenerateInvoices(httpClient) {
|
|
16
|
-
return (orderIds) => universalBulkGenerateInvoices(orderIds,
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
{ httpClient });
|
|
19
|
-
}
|
|
20
|
-
/** @internal */
|
|
21
|
-
export function addInvoiceToOrder(httpClient) {
|
|
22
|
-
return (orderId, invoiceInfo) => universalAddInvoiceToOrder(orderId, invoiceInfo,
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
{ httpClient });
|
|
25
|
-
}
|
|
26
|
-
export { WebhookIdentityType, } from './ecom-orders-v1-invoice-order-invoices.universal.js';
|
|
27
|
-
//# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-orders-v1-invoice-order-invoices.public.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.public.ts"],"names":[],"mappings":"AACA,OAAO,EAML,iBAAiB,IAAI,0BAA0B,EAC/C,oBAAoB,IAAI,6BAA6B,EACrD,eAAe,IAAI,wBAAwB,EAC3C,6BAA6B,IAAI,sCAAsC,GACxE,MAAM,sDAAsD,CAAC;AAE9D,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,MAAM,UAAU,6BAA6B,CAC3C,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,sCAAsC,CACpC,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,gBAAgB;AAChB,MAAM,UAAU,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,OAAe,EAAE,EAAE,CACzB,wBAAwB,CACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,gBAAgB;AAChB,MAAM,UAAU,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,QAAkB,EAAE,EAAE,CAC5B,6BAA6B,CAC3B,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAUD,gBAAgB;AAChB,MAAM,UAAU,iBAAiB,CAC/B,UAAsB;IAEtB,OAAO,CACL,OAAe,EACf,WAAuD,EACvD,EAAE,CACF,0BAA0B,CACxB,OAAO,EACP,WAAW;IACX,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,OAAO,EAiCL,mBAAmB,GACpB,MAAM,sDAAsD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var WebhookIdentityType;
|
|
2
|
-
(function (WebhookIdentityType) {
|
|
3
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
4
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
5
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
6
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
7
|
-
WebhookIdentityType["APP"] = "APP";
|
|
8
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
9
|
-
//# sourceMappingURL=ecom-orders-v1-invoice-order-invoices.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-orders-v1-invoice-order-invoices.types.js","sourceRoot":"","sources":["../../../../src/ecom-orders-v1-invoice-order-invoices.types.ts"],"names":[],"mappings":"AA6TA,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|