@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 @@
|
|
|
1
|
+
export * from './src/receipts-v1-receipt-receipts.context.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/receipts-v1-receipt-receipts.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gFAA8D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/receipts-v1-receipt-receipts.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/receipts-v1-receipt-receipts.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/receipts-v1-receipt-receipts.meta.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/receipts-v1-receipt-receipts.meta.js"), exports);
|
|
18
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA2D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createReceipt as publicCreateReceipt, getReceipt as publicGetReceipt, queryReceipts as publicQueryReceipts, regenerateReceiptDocument as publicRegenerateReceiptDocument, sendReceiptEmail as publicSendReceiptEmail, getLatestReceiptNumber as publicGetLatestReceiptNumber, updateExtendedFields as publicUpdateExtendedFields } from './receipts-v1-receipt-receipts.public.js';
|
|
2
|
+
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const createReceipt: MaybeContext<BuildRESTFunction<typeof publicCreateReceipt> & typeof publicCreateReceipt>;
|
|
4
|
+
export declare const getReceipt: MaybeContext<BuildRESTFunction<typeof publicGetReceipt> & typeof publicGetReceipt>;
|
|
5
|
+
export declare const queryReceipts: MaybeContext<BuildRESTFunction<typeof publicQueryReceipts> & typeof publicQueryReceipts>;
|
|
6
|
+
export declare const regenerateReceiptDocument: MaybeContext<BuildRESTFunction<typeof publicRegenerateReceiptDocument> & typeof publicRegenerateReceiptDocument>;
|
|
7
|
+
export declare const sendReceiptEmail: MaybeContext<BuildRESTFunction<typeof publicSendReceiptEmail> & typeof publicSendReceiptEmail>;
|
|
8
|
+
export declare const getLatestReceiptNumber: MaybeContext<BuildRESTFunction<typeof publicGetLatestReceiptNumber> & typeof publicGetLatestReceiptNumber>;
|
|
9
|
+
export declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof publicUpdateExtendedFields> & typeof publicUpdateExtendedFields>;
|
|
10
|
+
export { ReceiptOrderType, SubdivisionType, VatType, DocumentStatus, RequestOrigin, SortOrder, WebhookIdentityType, } from './receipts-v1-receipt-receipts.universal.js';
|
|
11
|
+
export { Receipt, Numbering, RegionalProperties, Locale, SourceReference, SourceReferenceOrderOneOf, WixPayment, WixEcom, BusinessDetails, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, StandardDetails, Customer, FullAddressContactDetails, VatId, LineItem, LineItemTax, LineItemTotals, ShippingInfo, ShippingTax, AdditionalFee, AdditionalFeeTax, Discount, Payment, Totals, Tax, CustomFields, CustomField, FooterCustomField, Document, ExtendedFields, ReceiptDocumentProcess, ReceiptNumberingProcess, ReceiptDocumentHandled, ReceiptDocumentHandledResultOneOf, Succeeded, Failed, GenerateReceiptDocument, Sent, CreateReceiptRequest, CreateReceiptResponse, GetReceiptRequest, GetReceiptResponse, QueryReceiptsRequest, CursorQuery, CursorQueryPagingMethodOneOf, Sorting, CursorPaging, QueryReceiptsResponse, CursorPagingMetadata, Cursors, RegenerateReceiptDocumentRequest, RegenerateReceiptDocumentResponse, SendReceiptEmailRequest, SendReceiptEmailResponse, GetLatestReceiptNumberRequest, GetLatestReceiptNumberResponse, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ReceiptNonNullableFields, CreateReceiptResponseNonNullableFields, GetReceiptResponseNonNullableFields, QueryReceiptsResponseNonNullableFields, UpdateExtendedFieldsResponseNonNullableFields, ReceiptsQueryResult, ReceiptsQueryBuilder, SendReceiptEmailOptions, GetLatestReceiptNumberOptions, UpdateExtendedFieldsOptions, } from './receipts-v1-receipt-receipts.universal.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookIdentityType = exports.SortOrder = exports.RequestOrigin = exports.DocumentStatus = exports.VatType = exports.SubdivisionType = exports.ReceiptOrderType = exports.updateExtendedFields = exports.getLatestReceiptNumber = exports.sendReceiptEmail = exports.regenerateReceiptDocument = exports.queryReceipts = exports.getReceipt = exports.createReceipt = void 0;
|
|
4
|
+
const receipts_v1_receipt_receipts_public_js_1 = require("./receipts-v1-receipt-receipts.public.js");
|
|
5
|
+
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
exports.createReceipt = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.createReceipt);
|
|
7
|
+
exports.getReceipt = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.getReceipt);
|
|
8
|
+
exports.queryReceipts = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.queryReceipts);
|
|
9
|
+
exports.regenerateReceiptDocument = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.regenerateReceiptDocument);
|
|
10
|
+
exports.sendReceiptEmail = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.sendReceiptEmail);
|
|
11
|
+
exports.getLatestReceiptNumber = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.getLatestReceiptNumber);
|
|
12
|
+
exports.updateExtendedFields = (0, rest_modules_1.createRESTModule)(receipts_v1_receipt_receipts_public_js_1.updateExtendedFields);
|
|
13
|
+
var receipts_v1_receipt_receipts_universal_js_1 = require("./receipts-v1-receipt-receipts.universal.js");
|
|
14
|
+
Object.defineProperty(exports, "ReceiptOrderType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.ReceiptOrderType; } });
|
|
15
|
+
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.SubdivisionType; } });
|
|
16
|
+
Object.defineProperty(exports, "VatType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.VatType; } });
|
|
17
|
+
Object.defineProperty(exports, "DocumentStatus", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.DocumentStatus; } });
|
|
18
|
+
Object.defineProperty(exports, "RequestOrigin", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.RequestOrigin; } });
|
|
19
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.SortOrder; } });
|
|
20
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return receipts_v1_receipt_receipts_universal_js_1.WebhookIdentityType; } });
|
|
21
|
+
//# sourceMappingURL=receipts-v1-receipt-receipts.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts-v1-receipt-receipts.context.js","sourceRoot":"","sources":["../../../src/receipts-v1-receipt-receipts.context.ts"],"names":[],"mappings":";;;AAAA,qGAQkD;AAClD,gEAAiE;AAGpD,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,UAAU,GAEL,IAAA,+BAAgB,EAAC,mDAAgB,CAAC,CAAC;AACxC,QAAA,aAAa,GAER,IAAA,+BAAgB,EAAC,sDAAmB,CAAC,CAAC;AAC3C,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,kEAA+B,CAAC,CAAC;AACvD,QAAA,gBAAgB,GAGX,IAAA,+BAAgB,EAAC,yDAAsB,CAAC,CAAC;AAC9C,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,+DAA4B,CAAC,CAAC;AACpD,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,6DAA0B,CAAC,CAAC;AAE/D,yGAQqD;AAPnD,6IAAA,gBAAgB,OAAA;AAChB,4IAAA,eAAe,OAAA;AACf,oIAAA,OAAO,OAAA;AACP,2IAAA,cAAc,OAAA;AACd,0IAAA,aAAa,OAAA;AACb,sIAAA,SAAS,OAAA;AACT,gJAAA,mBAAmB,OAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a Receipt.
|
|
4
|
+
*
|
|
5
|
+
* The request body must include: currency, source reference, line items, payment, totals.
|
|
6
|
+
* Receipt number will not be assigned on the create response. Number will be assigned eventually but before the
|
|
7
|
+
* document file is created.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createReceipt(payload: object): RequestOptionsFactory<any>;
|
|
10
|
+
/** Retrieves a Receipt. */
|
|
11
|
+
export declare function getReceipt(payload: object): RequestOptionsFactory<any>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a list of up to 100 Receipts, given the provided [paging, filtering, and sorting][1].
|
|
14
|
+
*
|
|
15
|
+
* Define queries using WQL - Wix Query Language. To learn how to query Receipts, see [API Query Language][2].
|
|
16
|
+
*
|
|
17
|
+
* [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
|
|
18
|
+
* [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
|
|
19
|
+
*/
|
|
20
|
+
export declare function queryReceipts(payload: object): RequestOptionsFactory<any>;
|
|
21
|
+
/** Retries generating document if its status is FAILED. */
|
|
22
|
+
export declare function regenerateReceiptDocument(payload: object): RequestOptionsFactory<any>;
|
|
23
|
+
/** Sends email with Receipt. */
|
|
24
|
+
export declare function sendReceiptEmail(payload: object): RequestOptionsFactory<any>;
|
|
25
|
+
/** Returns latest number for a given prefix. */
|
|
26
|
+
export declare function getLatestReceiptNumber(payload: object): RequestOptionsFactory<any>;
|
|
27
|
+
/** Updates extended fields of a Receipt without incrementing revision. */
|
|
28
|
+
export declare function updateExtendedFields(payload: object): RequestOptionsFactory<any>;
|
|
@@ -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,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,iCAAiC,CAAC;AAEvD;;;;;;GAMG;AACH,SAAgB,aAAa,CAAC,OAAe;IAC3C,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO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AClB,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
|