@wix/auto_sdk_get-paid_receipts 1.0.325 → 1.0.327

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +11 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +22 -1
  5. package/build/cjs/index.typings.js +11 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +16 -1
  8. package/build/cjs/meta.js +11 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +10 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +22 -1
  14. package/build/es/index.typings.mjs +10 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +16 -1
  17. package/build/es/meta.mjs +10 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +11 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +27 -1
  23. package/build/internal/cjs/index.typings.js +11 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +16 -1
  26. package/build/internal/cjs/meta.js +11 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +10 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +27 -1
  32. package/build/internal/es/index.typings.mjs +10 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +16 -1
  35. package/build/internal/es/meta.mjs +10 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -599,6 +599,11 @@ interface AdditionalFee {
599
599
  * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }
600
600
  */
601
601
  exemptAmount?: string | null;
602
+ /**
603
+ * Specifies the entity that added the additional fee.
604
+ * @internal
605
+ */
606
+ source?: AdditionalFeeSourceWithLiterals;
602
607
  }
603
608
  interface AdditionalFeeTax {
604
609
  /**
@@ -626,6 +631,21 @@ interface AdditionalFeeTax {
626
631
  */
627
632
  exemptAmount?: string | null;
628
633
  }
634
+ declare enum AdditionalFeeSource {
635
+ UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
636
+ /** The additional fee was added by an additional fee service plugin. */
637
+ SERVICE_PLUGIN = "SERVICE_PLUGIN",
638
+ /** The additional fee was added to the item by a catalog or custom line item. */
639
+ ITEM = "ITEM",
640
+ /** The additional fee was added manually on request. */
641
+ MANUAL = "MANUAL",
642
+ /** The additional fee was added by the shipping provider. */
643
+ SHIPPING = "SHIPPING",
644
+ /** The additional fee was added by the Wix eCommerce platform. */
645
+ PLATFORM = "PLATFORM"
646
+ }
647
+ /** @enumType */
648
+ type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
629
649
  interface Discount {
630
650
  /**
631
651
  * Deprecated: Use `display_name` instead.
@@ -1330,6 +1350,8 @@ interface ReceiptCreatedEnvelope {
1330
1350
  * Triggered when a receipt is created.
1331
1351
  * @permissionScope Manage Receipts
1332
1352
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1353
+ * @permissionScope Manage Stores
1354
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1333
1355
  * @permissionId RECEIPTS.RECEIPT_READ
1334
1356
  * @webhook
1335
1357
  * @eventType wix.receipts.v1.receipt_created
@@ -1344,6 +1366,8 @@ interface ReceiptSentEnvelope {
1344
1366
  * Triggered when a receipt is sent.
1345
1367
  * @permissionScope Manage Receipts
1346
1368
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1369
+ * @permissionScope Manage Stores
1370
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1347
1371
  * @permissionId RECEIPTS.RECEIPT_READ
1348
1372
  * @webhook
1349
1373
  * @eventType wix.receipts.v1.receipt_sent
@@ -1360,6 +1384,8 @@ interface ReceiptUpdatedEnvelope {
1360
1384
  * Triggered when a receipt's number allocation is updated or a receipt document is generated.
1361
1385
  * @permissionScope Manage Receipts
1362
1386
  * @permissionScopeId SCOPE.RECEIPTS.MANAGE
1387
+ * @permissionScope Manage Stores
1388
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
1363
1389
  * @permissionId RECEIPTS.RECEIPT_READ
1364
1390
  * @webhook
1365
1391
  * @eventType wix.receipts.v1.receipt_updated
@@ -1636,4 +1662,4 @@ interface UpdateExtendedFieldsOptions {
1636
1662
  namespaceData: Record<string, any> | null;
1637
1663
  }
1638
1664
 
1639
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type BusinessDetails, type CommonQueryWithEntityContext, type CreateReceiptApplicationErrors, type CreateReceiptRequest, type CreateReceiptResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CustomFields, type Customer, type Discount, type Document, DocumentStatus, type DocumentStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Failed, type FooterCustomField, type FullAddressContactDetails, type GenerateReceiptDocument, type GetLatestReceiptNumberOptions, type GetLatestReceiptNumberRequest, type GetLatestReceiptNumberResponse, type GetReceiptRequest, type GetReceiptResponse, type IdentificationData, type IdentificationDataIdOneOf, type LineItem, type LineItemTax, type LineItemTotals, type Locale, type MessageEnvelope, type Numbering, type Payment, type QueryReceiptsRequest, type QueryReceiptsResponse, type Receipt, type ReceiptCreatedEnvelope, type ReceiptDocumentHandled, type ReceiptDocumentHandledResultOneOf, type ReceiptDocumentProcess, type ReceiptNumberingProcess, ReceiptOrderType, type ReceiptOrderTypeWithLiterals, type ReceiptQuery, type ReceiptQuerySpec, type ReceiptSentEnvelope, type ReceiptUpdatedEnvelope, type ReceiptsQueryBuilder, type ReceiptsQueryResult, type RegenerateReceiptDocumentApplicationErrors, type RegenerateReceiptDocumentRequest, type RegenerateReceiptDocumentResponse, type RegionalProperties, RequestOrigin, type RequestOriginWithLiterals, type RestoreInfo, type SendReceiptEmailApplicationErrors, type SendReceiptEmailOptions, type SendReceiptEmailRequest, type SendReceiptEmailResponse, type Sent, type ShippingAddressContactDetails, type ShippingInfo, type ShippingTax, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceReference, type SourceReferenceOrderOneOf, type StandardDetails, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Succeeded, type Tax, type Totals, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateReceiptRequest, type UpdateReceiptResponse, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixEcom, type WixPayment, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, typedQueryReceipts, updateExtendedFields };
1665
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AddressStreetOneOf, type BaseEventMetadata, type BusinessDetails, type CommonQueryWithEntityContext, type CreateReceiptApplicationErrors, type CreateReceiptRequest, type CreateReceiptResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CustomFields, type Customer, type Discount, type Document, DocumentStatus, type DocumentStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Failed, type FooterCustomField, type FullAddressContactDetails, type GenerateReceiptDocument, type GetLatestReceiptNumberOptions, type GetLatestReceiptNumberRequest, type GetLatestReceiptNumberResponse, type GetReceiptRequest, type GetReceiptResponse, type IdentificationData, type IdentificationDataIdOneOf, type LineItem, type LineItemTax, type LineItemTotals, type Locale, type MessageEnvelope, type Numbering, type Payment, type QueryReceiptsRequest, type QueryReceiptsResponse, type Receipt, type ReceiptCreatedEnvelope, type ReceiptDocumentHandled, type ReceiptDocumentHandledResultOneOf, type ReceiptDocumentProcess, type ReceiptNumberingProcess, ReceiptOrderType, type ReceiptOrderTypeWithLiterals, type ReceiptQuery, type ReceiptQuerySpec, type ReceiptSentEnvelope, type ReceiptUpdatedEnvelope, type ReceiptsQueryBuilder, type ReceiptsQueryResult, type RegenerateReceiptDocumentApplicationErrors, type RegenerateReceiptDocumentRequest, type RegenerateReceiptDocumentResponse, type RegionalProperties, RequestOrigin, type RequestOriginWithLiterals, type RestoreInfo, type SendReceiptEmailApplicationErrors, type SendReceiptEmailOptions, type SendReceiptEmailRequest, type SendReceiptEmailResponse, type Sent, type ShippingAddressContactDetails, type ShippingInfo, type ShippingTax, SortOrder, type SortOrderWithLiterals, type Sorting, type SourceReference, type SourceReferenceOrderOneOf, type StandardDetails, type StreetAddress, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Succeeded, type Tax, type Totals, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateReceiptRequest, type UpdateReceiptResponse, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixEcom, type WixPayment, createReceipt, getLatestReceiptNumber, getReceipt, onReceiptCreated, onReceiptSent, onReceiptUpdated, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, typedQueryReceipts, updateExtendedFields };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
+ AdditionalFeeSource: () => AdditionalFeeSource,
23
24
  DocumentStatus: () => DocumentStatus,
24
25
  ReceiptOrderType: () => ReceiptOrderType,
25
26
  RequestOrigin: () => RequestOrigin,
@@ -378,6 +379,15 @@ var VatType = /* @__PURE__ */ ((VatType2) => {
378
379
  VatType2["CNPJ"] = "CNPJ";
379
380
  return VatType2;
380
381
  })(VatType || {});
382
+ var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
383
+ AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
384
+ AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
385
+ AdditionalFeeSource2["ITEM"] = "ITEM";
386
+ AdditionalFeeSource2["MANUAL"] = "MANUAL";
387
+ AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
388
+ AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
389
+ return AdditionalFeeSource2;
390
+ })(AdditionalFeeSource || {});
381
391
  var DocumentStatus = /* @__PURE__ */ ((DocumentStatus2) => {
382
392
  DocumentStatus2["UNKNOWN_DOCUMENT_STATUS"] = "UNKNOWN_DOCUMENT_STATUS";
383
393
  DocumentStatus2["PROCESSING"] = "PROCESSING";
@@ -718,6 +728,7 @@ async function updateExtendedFields2(_id, namespace, options) {
718
728
  }
719
729
  // Annotate the CommonJS export names for ESM import in node:
720
730
  0 && (module.exports = {
731
+ AdditionalFeeSource,
721
732
  DocumentStatus,
722
733
  ReceiptOrderType,
723
734
  RequestOrigin,