@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.
Files changed (130) hide show
  1. package/build/index.d.mts +100 -0
  2. package/build/index.d.ts +100 -0
  3. package/build/index.js +819 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +779 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +100 -0
  8. package/build/internal/index.d.ts +100 -0
  9. package/build/internal/index.js +819 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +779 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/{es/src/receipts-v1-receipt-receipts.types.d.ts → internal/meta.d.mts} +90 -325
  14. package/build/internal/{cjs/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.ts} +90 -325
  15. package/build/internal/meta.js +433 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +400 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/internal/{cjs/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.mts} +100 -265
  20. package/build/{cjs/src/receipts-v1-receipt-receipts.universal.d.ts → internal/receipts-v1-receipt-receipts.universal-CA4WcjFe.d.ts} +100 -265
  21. package/build/{cjs/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.mts} +90 -325
  22. package/build/{internal/es/src/receipts-v1-receipt-receipts.types.d.ts → meta.d.ts} +90 -325
  23. package/build/meta.js +433 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +400 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/es/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.mts} +100 -265
  28. package/build/{es/src/receipts-v1-receipt-receipts.universal.d.ts → receipts-v1-receipt-receipts.universal-CA4WcjFe.d.ts} +100 -265
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/receipts-v1-receipt-receipts.context.d.ts +0 -27
  40. package/build/cjs/src/receipts-v1-receipt-receipts.context.js +0 -37
  41. package/build/cjs/src/receipts-v1-receipt-receipts.context.js.map +0 -1
  42. package/build/cjs/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
  43. package/build/cjs/src/receipts-v1-receipt-receipts.http.js +0 -298
  44. package/build/cjs/src/receipts-v1-receipt-receipts.http.js.map +0 -1
  45. package/build/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
  46. package/build/cjs/src/receipts-v1-receipt-receipts.meta.js +0 -161
  47. package/build/cjs/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
  48. package/build/cjs/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
  49. package/build/cjs/src/receipts-v1-receipt-receipts.public.js +0 -131
  50. package/build/cjs/src/receipts-v1-receipt-receipts.public.js.map +0 -1
  51. package/build/cjs/src/receipts-v1-receipt-receipts.types.js +0 -64
  52. package/build/cjs/src/receipts-v1-receipt-receipts.types.js.map +0 -1
  53. package/build/cjs/src/receipts-v1-receipt-receipts.universal.js +0 -476
  54. package/build/cjs/src/receipts-v1-receipt-receipts.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/receipts-v1-receipt-receipts.context.d.ts +0 -27
  66. package/build/es/src/receipts-v1-receipt-receipts.context.js +0 -27
  67. package/build/es/src/receipts-v1-receipt-receipts.context.js.map +0 -1
  68. package/build/es/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
  69. package/build/es/src/receipts-v1-receipt-receipts.http.js +0 -288
  70. package/build/es/src/receipts-v1-receipt-receipts.http.js.map +0 -1
  71. package/build/es/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
  72. package/build/es/src/receipts-v1-receipt-receipts.meta.js +0 -128
  73. package/build/es/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
  74. package/build/es/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
  75. package/build/es/src/receipts-v1-receipt-receipts.public.js +0 -114
  76. package/build/es/src/receipts-v1-receipt-receipts.public.js.map +0 -1
  77. package/build/es/src/receipts-v1-receipt-receipts.types.js +0 -61
  78. package/build/es/src/receipts-v1-receipt-receipts.types.js.map +0 -1
  79. package/build/es/src/receipts-v1-receipt-receipts.universal.js +0 -443
  80. package/build/es/src/receipts-v1-receipt-receipts.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.d.ts +0 -27
  91. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js +0 -37
  92. package/build/internal/cjs/src/receipts-v1-receipt-receipts.context.js.map +0 -1
  93. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
  94. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js +0 -298
  95. package/build/internal/cjs/src/receipts-v1-receipt-receipts.http.js.map +0 -1
  96. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
  97. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js +0 -161
  98. package/build/internal/cjs/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
  99. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
  100. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js +0 -131
  101. package/build/internal/cjs/src/receipts-v1-receipt-receipts.public.js.map +0 -1
  102. package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js +0 -64
  103. package/build/internal/cjs/src/receipts-v1-receipt-receipts.types.js.map +0 -1
  104. package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js +0 -476
  105. package/build/internal/cjs/src/receipts-v1-receipt-receipts.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/receipts-v1-receipt-receipts.context.d.ts +0 -27
  116. package/build/internal/es/src/receipts-v1-receipt-receipts.context.js +0 -27
  117. package/build/internal/es/src/receipts-v1-receipt-receipts.context.js.map +0 -1
  118. package/build/internal/es/src/receipts-v1-receipt-receipts.http.d.ts +0 -34
  119. package/build/internal/es/src/receipts-v1-receipt-receipts.http.js +0 -288
  120. package/build/internal/es/src/receipts-v1-receipt-receipts.http.js.map +0 -1
  121. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.d.ts +0 -27
  122. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js +0 -128
  123. package/build/internal/es/src/receipts-v1-receipt-receipts.meta.js.map +0 -1
  124. package/build/internal/es/src/receipts-v1-receipt-receipts.public.d.ts +0 -80
  125. package/build/internal/es/src/receipts-v1-receipt-receipts.public.js +0 -114
  126. package/build/internal/es/src/receipts-v1-receipt-receipts.public.js.map +0 -1
  127. package/build/internal/es/src/receipts-v1-receipt-receipts.types.js +0 -61
  128. package/build/internal/es/src/receipts-v1-receipt-receipts.types.js.map +0 -1
  129. package/build/internal/es/src/receipts-v1-receipt-receipts.universal.js +0 -443
  130. 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 };
@@ -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 };