@wix/auto_sdk_get-paid_receipts 1.0.326 → 1.0.328
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 -1
- package/build/cjs/index.js +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +16 -7
- package/build/cjs/index.typings.js +11 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -1
- package/build/cjs/meta.js +11 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +10 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +16 -7
- package/build/es/index.typings.mjs +10 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -1
- package/build/es/meta.mjs +10 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +11 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -7
- package/build/internal/cjs/index.typings.js +11 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +16 -1
- package/build/internal/cjs/meta.js +11 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +10 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +21 -7
- package/build/internal/es/index.typings.mjs +10 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +16 -1
- package/build/internal/es/meta.mjs +10 -0
- package/build/internal/es/meta.mjs.map +1 -1
- 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,8 +1350,6 @@ interface ReceiptCreatedEnvelope {
|
|
|
1330
1350
|
* Triggered when a receipt is created.
|
|
1331
1351
|
* @permissionScope Manage Receipts
|
|
1332
1352
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1333
|
-
* @permissionScope Manage Stores
|
|
1334
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1335
1353
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1336
1354
|
* @webhook
|
|
1337
1355
|
* @eventType wix.receipts.v1.receipt_created
|
|
@@ -1346,8 +1364,6 @@ interface ReceiptSentEnvelope {
|
|
|
1346
1364
|
* Triggered when a receipt is sent.
|
|
1347
1365
|
* @permissionScope Manage Receipts
|
|
1348
1366
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1349
|
-
* @permissionScope Manage Stores
|
|
1350
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1351
1367
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1352
1368
|
* @webhook
|
|
1353
1369
|
* @eventType wix.receipts.v1.receipt_sent
|
|
@@ -1364,8 +1380,6 @@ interface ReceiptUpdatedEnvelope {
|
|
|
1364
1380
|
* Triggered when a receipt's number allocation is updated or a receipt document is generated.
|
|
1365
1381
|
* @permissionScope Manage Receipts
|
|
1366
1382
|
* @permissionScopeId SCOPE.RECEIPTS.MANAGE
|
|
1367
|
-
* @permissionScope Manage Stores
|
|
1368
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1369
1383
|
* @permissionId RECEIPTS.RECEIPT_READ
|
|
1370
1384
|
* @webhook
|
|
1371
1385
|
* @eventType wix.receipts.v1.receipt_updated
|
|
@@ -1642,4 +1656,4 @@ interface UpdateExtendedFieldsOptions {
|
|
|
1642
1656
|
namespaceData: Record<string, any> | null;
|
|
1643
1657
|
}
|
|
1644
1658
|
|
|
1645
|
-
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 };
|
|
1659
|
+
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 };
|
|
@@ -341,6 +341,15 @@ var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
|
341
341
|
VatType2["CNPJ"] = "CNPJ";
|
|
342
342
|
return VatType2;
|
|
343
343
|
})(VatType || {});
|
|
344
|
+
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
345
|
+
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
346
|
+
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
347
|
+
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
348
|
+
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
349
|
+
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
350
|
+
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
351
|
+
return AdditionalFeeSource2;
|
|
352
|
+
})(AdditionalFeeSource || {});
|
|
344
353
|
var DocumentStatus = /* @__PURE__ */ ((DocumentStatus2) => {
|
|
345
354
|
DocumentStatus2["UNKNOWN_DOCUMENT_STATUS"] = "UNKNOWN_DOCUMENT_STATUS";
|
|
346
355
|
DocumentStatus2["PROCESSING"] = "PROCESSING";
|
|
@@ -680,6 +689,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
680
689
|
}
|
|
681
690
|
}
|
|
682
691
|
export {
|
|
692
|
+
AdditionalFeeSource,
|
|
683
693
|
DocumentStatus,
|
|
684
694
|
ReceiptOrderType,
|
|
685
695
|
RequestOrigin,
|