@wix/auto_sdk_get-paid_receipts 1.0.39 → 1.0.41
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/index.d.mts +100 -0
- package/build/index.d.ts +100 -0
- package/build/index.js +819 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +779 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +100 -0
- package/build/internal/index.d.ts +100 -0
- package/build/internal/index.js +819 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +779 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{es/src/receipts-v1-receipt-receipts.types.d.ts → internal/meta.d.mts} +90 -325
- package/build/internal/{cjs/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.ts} +90 -325
- package/build/internal/meta.js +433 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +400 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/internal/{cjs/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.mts} +100 -265
- package/build/{cjs/src/receipts-v1-receipt-receipts.universal.d.ts → internal/receipts-v1-receipt-receipts.universal-CA4WcjFe.d.ts} +100 -265
- package/build/{cjs/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.mts} +90 -325
- package/build/{internal/es/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.ts} +90 -325
- package/build/meta.js +433 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +400 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/es/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.mts} +100 -265
- package/build/{es/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.ts} +100 -265
- package/package.json +12 -11
- 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/receipts-v1-receipt-receipts.context.d.ts +0 -27
- package/build/cjs/src/receipts-v1-receipt-receipts.context.js +0 -37
- package/build/cjs/src/receipts-v1-receipt-receipts.context.js.map +0 -1
- package/build/cjs/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
- package/build/cjs/src/receipts-v1-receipt-receipts.http.js +0 -298
- package/build/cjs/src/receipts-v1-receipt-receipts.http.js.map +0 -1
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.js +0 -161
- package/build/cjs/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
- package/build/cjs/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
- package/build/cjs/src/receipts-v1-receipt-receipts.public.js +0 -131
- package/build/cjs/src/receipts-v1-receipt-receipts.public.js.map +0 -1
- package/build/cjs/src/receipts-v1-receipt-receipts.types.js +0 -64
- package/build/cjs/src/receipts-v1-receipt-receipts.types.js.map +0 -1
- package/build/cjs/src/receipts-v1-receipt-receipts.universal.js +0 -476
- package/build/cjs/src/receipts-v1-receipt-receipts.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/receipts-v1-receipt-receipts.context.d.ts +0 -27
- package/build/es/src/receipts-v1-receipt-receipts.context.js +0 -27
- package/build/es/src/receipts-v1-receipt-receipts.context.js.map +0 -1
- package/build/es/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
- package/build/es/src/receipts-v1-receipt-receipts.http.js +0 -288
- package/build/es/src/receipts-v1-receipt-receipts.http.js.map +0 -1
- package/build/es/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
- package/build/es/src/receipts-v1-receipt-receipts.meta.js +0 -128
- package/build/es/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
- package/build/es/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
- package/build/es/src/receipts-v1-receipt-receipts.public.js +0 -114
- package/build/es/src/receipts-v1-receipt-receipts.public.js.map +0 -1
- package/build/es/src/receipts-v1-receipt-receipts.types.js +0 -61
- package/build/es/src/receipts-v1-receipt-receipts.types.js.map +0 -1
- package/build/es/src/receipts-v1-receipt-receipts.universal.js +0 -443
- package/build/es/src/receipts-v1-receipt-receipts.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/receipts-v1-receipt-receipts.context.d.ts +0 -27
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js +0 -37
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js.map +0 -1
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js +0 -298
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js.map +0 -1
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js +0 -161
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js +0 -131
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js.map +0 -1
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js +0 -64
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js.map +0 -1
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js +0 -476
- package/build/internal/cjs/src/receipts-v1-receipt-receipts.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/receipts-v1-receipt-receipts.context.d.ts +0 -27
- package/build/internal/es/src/receipts-v1-receipt-receipts.context.js +0 -27
- package/build/internal/es/src/receipts-v1-receipt-receipts.context.js.map +0 -1
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.js +0 -288
- package/build/internal/es/src/receipts-v1-receipt-receipts.http.js.map +0 -1
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js +0 -128
- package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.js +0 -114
- package/build/internal/es/src/receipts-v1-receipt-receipts.public.js.map +0 -1
- package/build/internal/es/src/receipts-v1-receipt-receipts.types.js +0 -61
- package/build/internal/es/src/receipts-v1-receipt-receipts.types.js.map +0 -1
- package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js +0 -443
- package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { R as Receipt, a as ReceiptsQueryBuilder, S as SendReceiptEmailOptions, G as GetLatestReceiptNumberOptions, b as GetLatestReceiptNumberResponse, U as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse, d as ReceiptCreatedEnvelope, e as ReceiptSentEnvelope, f as ReceiptUpdatedEnvelope } from './receipts-v1-receipt-receipts.universal-CA4WcjFe.mjs';
|
|
3
|
+
export { a5 as ActionEvent, E as AdditionalFee, H as AdditionalFeeTax, A as Address, r as AddressLocation, p as AddressStreetOneOf, az as BaseEventMetadata, B as BusinessDetails, ag as CreateReceiptRequest, ah as CreateReceiptResponse, ao as CursorPaging, aq as CursorPagingMetadata, al as CursorQuery, am as CursorQueryPagingMethodOneOf, ar as Cursors, M as CustomField, K as CustomFields, C as Customer, I as Discount, Q as Document, D as DocumentStatus, $ as DomainEvent, a0 as DomainEventBodyOneOf, ay as Empty, a1 as EntityCreatedEvent, a4 as EntityDeletedEvent, a3 as EntityUpdatedEvent, aA as EventMetadata, X as ExtendedFields, ae as Failed, O as FooterCustomField, F as FullAddressContactDetails, af as GenerateReceiptDocument, aw as GetLatestReceiptNumberRequest, ai as GetReceiptRequest, aj as GetReceiptResponse, a7 as IdentificationData, a8 as IdentificationDataIdOneOf, v as LineItem, w as LineItemTax, x as LineItemTotals, L as Locale, a6 as MessageEnvelope, N as Numbering, P as Payment, ak as QueryReceiptsRequest, ap as QueryReceiptsResponse, ab as ReceiptDocumentHandled, ac as ReceiptDocumentHandledResultOneOf, a9 as ReceiptDocumentProcess, aa as ReceiptNumberingProcess, g as ReceiptOrderType, aB as ReceiptsQueryResult, as as RegenerateReceiptDocumentRequest, at as RegenerateReceiptDocumentResponse, k as RegionalProperties, i as RequestOrigin, a2 as RestoreInfo, au as SendReceiptEmailRequest, av as SendReceiptEmailResponse, Y as Sent, y as ShippingInfo, z as ShippingTax, j as SortOrder, an as Sorting, l as SourceReference, m as SourceReferenceOrderOneOf, t as StandardDetails, q as StreetAddress, s as Subdivision, h as SubdivisionType, ad as Succeeded, J as Tax, T as Totals, ax as UpdateExtendedFieldsRequest, Z as UpdateReceiptRequest, _ as UpdateReceiptResponse, u as VatId, V as VatType, W as WebhookIdentityType, o as WixEcom, n as WixPayment } from './receipts-v1-receipt-receipts.universal-CA4WcjFe.mjs';
|
|
4
|
+
|
|
5
|
+
declare function createReceipt$1(httpClient: HttpClient): CreateReceiptSignature;
|
|
6
|
+
interface CreateReceiptSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a receipt.
|
|
9
|
+
*
|
|
10
|
+
* Receipt number is assigned later and will be provided in the Get Receipt response.
|
|
11
|
+
* @param - Receipt to create.
|
|
12
|
+
* @returns Created receipt.
|
|
13
|
+
*/
|
|
14
|
+
(receipt: Receipt): Promise<Receipt>;
|
|
15
|
+
}
|
|
16
|
+
declare function getReceipt$1(httpClient: HttpClient): GetReceiptSignature;
|
|
17
|
+
interface GetReceiptSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a receipt.
|
|
20
|
+
* @param - Receipt ID.
|
|
21
|
+
* @returns Requested receipt.
|
|
22
|
+
*/
|
|
23
|
+
(receiptId: string): Promise<Receipt>;
|
|
24
|
+
}
|
|
25
|
+
declare function queryReceipts$1(httpClient: HttpClient): QueryReceiptsSignature;
|
|
26
|
+
interface QueryReceiptsSignature {
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of up to 100 receipts, given the specified filtering, paging, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)).
|
|
29
|
+
*/
|
|
30
|
+
(): ReceiptsQueryBuilder;
|
|
31
|
+
}
|
|
32
|
+
declare function regenerateReceiptDocument$1(httpClient: HttpClient): RegenerateReceiptDocumentSignature;
|
|
33
|
+
interface RegenerateReceiptDocumentSignature {
|
|
34
|
+
/**
|
|
35
|
+
* Retries generating a receipt document that has a `FAILED` status.
|
|
36
|
+
*
|
|
37
|
+
* Note that you can access a receipt document with an `AVAILABLE` status with the URL provided in `document.downloadUrl` without regenerating.
|
|
38
|
+
* @param - Receipt ID.
|
|
39
|
+
*/
|
|
40
|
+
(receiptId: string): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
declare function sendReceiptEmail$1(httpClient: HttpClient): SendReceiptEmailSignature;
|
|
43
|
+
interface SendReceiptEmailSignature {
|
|
44
|
+
/**
|
|
45
|
+
* Sends the receipt to the specified recipient in an email.
|
|
46
|
+
*
|
|
47
|
+
* Specifying a contact ID is required only when no contact ID was specified upon receipt creation.
|
|
48
|
+
*
|
|
49
|
+
* Note that if the specified contact ID doesn't have an associated email address, the call will fail.
|
|
50
|
+
* @param - Receipt ID to send.
|
|
51
|
+
* @param - Field options. The `contactId` object must be passed if one was not already specified upon receipt creation.
|
|
52
|
+
*/
|
|
53
|
+
(receiptId: string, options?: SendReceiptEmailOptions | undefined): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
declare function getLatestReceiptNumber$1(httpClient: HttpClient): GetLatestReceiptNumberSignature;
|
|
56
|
+
interface GetLatestReceiptNumberSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves the highest receipt number currently in use (the sequential identifier displayed between the prefix and suffix in receipt display numbers).
|
|
59
|
+
* Can be filtered by prefix.
|
|
60
|
+
*
|
|
61
|
+
* Receipt numbering is managed in the Receipts Settings API.
|
|
62
|
+
* @param - Field options.
|
|
63
|
+
*/
|
|
64
|
+
(options?: GetLatestReceiptNumberOptions | undefined): Promise<GetLatestReceiptNumberResponse>;
|
|
65
|
+
}
|
|
66
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
67
|
+
interface UpdateExtendedFieldsSignature {
|
|
68
|
+
/**
|
|
69
|
+
* Updates extended fields of a receipt, without incrementing revision.
|
|
70
|
+
* @param - ID of the entity to update.
|
|
71
|
+
* @param - Identifier for the app whose extended fields are being updated.
|
|
72
|
+
* @param - Field options. The `namespaceData` object **must** be passed.
|
|
73
|
+
*/
|
|
74
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
75
|
+
}
|
|
76
|
+
declare const onReceiptCreated$1: EventDefinition<ReceiptCreatedEnvelope, "wix.receipts.v1.receipt_created">;
|
|
77
|
+
declare const onReceiptSent$1: EventDefinition<ReceiptSentEnvelope, "wix.receipts.v1.receipt_sent">;
|
|
78
|
+
declare const onReceiptUpdated$1: EventDefinition<ReceiptUpdatedEnvelope, "wix.receipts.v1.receipt_updated">;
|
|
79
|
+
|
|
80
|
+
declare const createReceipt: MaybeContext<BuildRESTFunction<typeof createReceipt$1> & typeof createReceipt$1>;
|
|
81
|
+
declare const getReceipt: MaybeContext<BuildRESTFunction<typeof getReceipt$1> & typeof getReceipt$1>;
|
|
82
|
+
declare const queryReceipts: MaybeContext<BuildRESTFunction<typeof queryReceipts$1> & typeof queryReceipts$1>;
|
|
83
|
+
declare const regenerateReceiptDocument: MaybeContext<BuildRESTFunction<typeof regenerateReceiptDocument$1> & typeof regenerateReceiptDocument$1>;
|
|
84
|
+
declare const sendReceiptEmail: MaybeContext<BuildRESTFunction<typeof sendReceiptEmail$1> & typeof sendReceiptEmail$1>;
|
|
85
|
+
declare const getLatestReceiptNumber: MaybeContext<BuildRESTFunction<typeof getLatestReceiptNumber$1> & typeof getLatestReceiptNumber$1>;
|
|
86
|
+
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
87
|
+
/**
|
|
88
|
+
* Triggered when a receipt is created.
|
|
89
|
+
*/
|
|
90
|
+
declare const onReceiptCreated: BuildEventDefinition<typeof onReceiptCreated$1>;
|
|
91
|
+
/**
|
|
92
|
+
* Triggered when a receipt is sent.
|
|
93
|
+
*/
|
|
94
|
+
declare const onReceiptSent: BuildEventDefinition<typeof onReceiptSent$1>;
|
|
95
|
+
/**
|
|
96
|
+
* Triggered when a receipt's number allocation is updated or a receipt document is generated.
|
|
97
|
+
*/
|
|
98
|
+
declare const onReceiptUpdated: BuildEventDefinition<typeof onReceiptUpdated$1>;
|
|
99
|
+
|
|
100
|
+
export { GetLatestReceiptNumberOptions, GetLatestReceiptNumberResponse, Receipt, ReceiptCreatedEnvelope, ReceiptSentEnvelope, ReceiptUpdatedEnvelope, ReceiptsQueryBuilder, SendReceiptEmailOptions, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, updateExtendedFields };
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { R as Receipt, a as ReceiptsQueryBuilder, S as SendReceiptEmailOptions, G as GetLatestReceiptNumberOptions, b as GetLatestReceiptNumberResponse, U as UpdateExtendedFieldsOptions, c as UpdateExtendedFieldsResponse, d as ReceiptCreatedEnvelope, e as ReceiptSentEnvelope, f as ReceiptUpdatedEnvelope } from './receipts-v1-receipt-receipts.universal-CA4WcjFe.js';
|
|
3
|
+
export { a5 as ActionEvent, E as AdditionalFee, H as AdditionalFeeTax, A as Address, r as AddressLocation, p as AddressStreetOneOf, az as BaseEventMetadata, B as BusinessDetails, ag as CreateReceiptRequest, ah as CreateReceiptResponse, ao as CursorPaging, aq as CursorPagingMetadata, al as CursorQuery, am as CursorQueryPagingMethodOneOf, ar as Cursors, M as CustomField, K as CustomFields, C as Customer, I as Discount, Q as Document, D as DocumentStatus, $ as DomainEvent, a0 as DomainEventBodyOneOf, ay as Empty, a1 as EntityCreatedEvent, a4 as EntityDeletedEvent, a3 as EntityUpdatedEvent, aA as EventMetadata, X as ExtendedFields, ae as Failed, O as FooterCustomField, F as FullAddressContactDetails, af as GenerateReceiptDocument, aw as GetLatestReceiptNumberRequest, ai as GetReceiptRequest, aj as GetReceiptResponse, a7 as IdentificationData, a8 as IdentificationDataIdOneOf, v as LineItem, w as LineItemTax, x as LineItemTotals, L as Locale, a6 as MessageEnvelope, N as Numbering, P as Payment, ak as QueryReceiptsRequest, ap as QueryReceiptsResponse, ab as ReceiptDocumentHandled, ac as ReceiptDocumentHandledResultOneOf, a9 as ReceiptDocumentProcess, aa as ReceiptNumberingProcess, g as ReceiptOrderType, aB as ReceiptsQueryResult, as as RegenerateReceiptDocumentRequest, at as RegenerateReceiptDocumentResponse, k as RegionalProperties, i as RequestOrigin, a2 as RestoreInfo, au as SendReceiptEmailRequest, av as SendReceiptEmailResponse, Y as Sent, y as ShippingInfo, z as ShippingTax, j as SortOrder, an as Sorting, l as SourceReference, m as SourceReferenceOrderOneOf, t as StandardDetails, q as StreetAddress, s as Subdivision, h as SubdivisionType, ad as Succeeded, J as Tax, T as Totals, ax as UpdateExtendedFieldsRequest, Z as UpdateReceiptRequest, _ as UpdateReceiptResponse, u as VatId, V as VatType, W as WebhookIdentityType, o as WixEcom, n as WixPayment } from './receipts-v1-receipt-receipts.universal-CA4WcjFe.js';
|
|
4
|
+
|
|
5
|
+
declare function createReceipt$1(httpClient: HttpClient): CreateReceiptSignature;
|
|
6
|
+
interface CreateReceiptSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a receipt.
|
|
9
|
+
*
|
|
10
|
+
* Receipt number is assigned later and will be provided in the Get Receipt response.
|
|
11
|
+
* @param - Receipt to create.
|
|
12
|
+
* @returns Created receipt.
|
|
13
|
+
*/
|
|
14
|
+
(receipt: Receipt): Promise<Receipt>;
|
|
15
|
+
}
|
|
16
|
+
declare function getReceipt$1(httpClient: HttpClient): GetReceiptSignature;
|
|
17
|
+
interface GetReceiptSignature {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a receipt.
|
|
20
|
+
* @param - Receipt ID.
|
|
21
|
+
* @returns Requested receipt.
|
|
22
|
+
*/
|
|
23
|
+
(receiptId: string): Promise<Receipt>;
|
|
24
|
+
}
|
|
25
|
+
declare function queryReceipts$1(httpClient: HttpClient): QueryReceiptsSignature;
|
|
26
|
+
interface QueryReceiptsSignature {
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves a list of up to 100 receipts, given the specified filtering, paging, and sorting ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/api/rest/getting-started/api-query-language)).
|
|
29
|
+
*/
|
|
30
|
+
(): ReceiptsQueryBuilder;
|
|
31
|
+
}
|
|
32
|
+
declare function regenerateReceiptDocument$1(httpClient: HttpClient): RegenerateReceiptDocumentSignature;
|
|
33
|
+
interface RegenerateReceiptDocumentSignature {
|
|
34
|
+
/**
|
|
35
|
+
* Retries generating a receipt document that has a `FAILED` status.
|
|
36
|
+
*
|
|
37
|
+
* Note that you can access a receipt document with an `AVAILABLE` status with the URL provided in `document.downloadUrl` without regenerating.
|
|
38
|
+
* @param - Receipt ID.
|
|
39
|
+
*/
|
|
40
|
+
(receiptId: string): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
declare function sendReceiptEmail$1(httpClient: HttpClient): SendReceiptEmailSignature;
|
|
43
|
+
interface SendReceiptEmailSignature {
|
|
44
|
+
/**
|
|
45
|
+
* Sends the receipt to the specified recipient in an email.
|
|
46
|
+
*
|
|
47
|
+
* Specifying a contact ID is required only when no contact ID was specified upon receipt creation.
|
|
48
|
+
*
|
|
49
|
+
* Note that if the specified contact ID doesn't have an associated email address, the call will fail.
|
|
50
|
+
* @param - Receipt ID to send.
|
|
51
|
+
* @param - Field options. The `contactId` object must be passed if one was not already specified upon receipt creation.
|
|
52
|
+
*/
|
|
53
|
+
(receiptId: string, options?: SendReceiptEmailOptions | undefined): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
declare function getLatestReceiptNumber$1(httpClient: HttpClient): GetLatestReceiptNumberSignature;
|
|
56
|
+
interface GetLatestReceiptNumberSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Retrieves the highest receipt number currently in use (the sequential identifier displayed between the prefix and suffix in receipt display numbers).
|
|
59
|
+
* Can be filtered by prefix.
|
|
60
|
+
*
|
|
61
|
+
* Receipt numbering is managed in the Receipts Settings API.
|
|
62
|
+
* @param - Field options.
|
|
63
|
+
*/
|
|
64
|
+
(options?: GetLatestReceiptNumberOptions | undefined): Promise<GetLatestReceiptNumberResponse>;
|
|
65
|
+
}
|
|
66
|
+
declare function updateExtendedFields$1(httpClient: HttpClient): UpdateExtendedFieldsSignature;
|
|
67
|
+
interface UpdateExtendedFieldsSignature {
|
|
68
|
+
/**
|
|
69
|
+
* Updates extended fields of a receipt, without incrementing revision.
|
|
70
|
+
* @param - ID of the entity to update.
|
|
71
|
+
* @param - Identifier for the app whose extended fields are being updated.
|
|
72
|
+
* @param - Field options. The `namespaceData` object **must** be passed.
|
|
73
|
+
*/
|
|
74
|
+
(_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
|
|
75
|
+
}
|
|
76
|
+
declare const onReceiptCreated$1: EventDefinition<ReceiptCreatedEnvelope, "wix.receipts.v1.receipt_created">;
|
|
77
|
+
declare const onReceiptSent$1: EventDefinition<ReceiptSentEnvelope, "wix.receipts.v1.receipt_sent">;
|
|
78
|
+
declare const onReceiptUpdated$1: EventDefinition<ReceiptUpdatedEnvelope, "wix.receipts.v1.receipt_updated">;
|
|
79
|
+
|
|
80
|
+
declare const createReceipt: MaybeContext<BuildRESTFunction<typeof createReceipt$1> & typeof createReceipt$1>;
|
|
81
|
+
declare const getReceipt: MaybeContext<BuildRESTFunction<typeof getReceipt$1> & typeof getReceipt$1>;
|
|
82
|
+
declare const queryReceipts: MaybeContext<BuildRESTFunction<typeof queryReceipts$1> & typeof queryReceipts$1>;
|
|
83
|
+
declare const regenerateReceiptDocument: MaybeContext<BuildRESTFunction<typeof regenerateReceiptDocument$1> & typeof regenerateReceiptDocument$1>;
|
|
84
|
+
declare const sendReceiptEmail: MaybeContext<BuildRESTFunction<typeof sendReceiptEmail$1> & typeof sendReceiptEmail$1>;
|
|
85
|
+
declare const getLatestReceiptNumber: MaybeContext<BuildRESTFunction<typeof getLatestReceiptNumber$1> & typeof getLatestReceiptNumber$1>;
|
|
86
|
+
declare const updateExtendedFields: MaybeContext<BuildRESTFunction<typeof updateExtendedFields$1> & typeof updateExtendedFields$1>;
|
|
87
|
+
/**
|
|
88
|
+
* Triggered when a receipt is created.
|
|
89
|
+
*/
|
|
90
|
+
declare const onReceiptCreated: BuildEventDefinition<typeof onReceiptCreated$1>;
|
|
91
|
+
/**
|
|
92
|
+
* Triggered when a receipt is sent.
|
|
93
|
+
*/
|
|
94
|
+
declare const onReceiptSent: BuildEventDefinition<typeof onReceiptSent$1>;
|
|
95
|
+
/**
|
|
96
|
+
* Triggered when a receipt's number allocation is updated or a receipt document is generated.
|
|
97
|
+
*/
|
|
98
|
+
declare const onReceiptUpdated: BuildEventDefinition<typeof onReceiptUpdated$1>;
|
|
99
|
+
|
|
100
|
+
export { GetLatestReceiptNumberOptions, GetLatestReceiptNumberResponse, Receipt, ReceiptCreatedEnvelope, ReceiptSentEnvelope, ReceiptUpdatedEnvelope, ReceiptsQueryBuilder, SendReceiptEmailOptions, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, updateExtendedFields };
|