@wix/ecom 1.0.512 → 1.0.514
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/src/ecom-discounts-v1-discount-rule.types.d.ts +2 -4
- package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.d.ts +2 -4
- package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.js.map +1 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.types.d.ts +2 -4
- package/build/cjs/src/ecom-recommendations-v1-recommendation.types.js.map +1 -1
- package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.d.ts +2 -4
- package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.js.map +1 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js +6 -0
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js.map +1 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.d.ts +2 -4
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +2 -4
- package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.js.map +1 -1
- package/build/cjs/src/ecom-v1-cart-cart.types.d.ts +2 -4
- package/build/cjs/src/ecom-v1-cart-cart.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-cart-cart.universal.d.ts +3 -3
- package/build/cjs/src/ecom-v1-cart-current-cart.types.d.ts +2 -4
- package/build/cjs/src/ecom-v1-cart-current-cart.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +3 -3
- package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +2 -4
- package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +3 -3
- package/build/cjs/src/ecom-v1-checkout-template.types.d.ts +2 -4
- package/build/cjs/src/ecom-v1-checkout-template.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-template.universal.d.ts +2 -4
- package/build/cjs/src/ecom-v1-checkout-template.universal.js.map +1 -1
- package/build/cjs/src/ecom-v1-order.public.d.ts +35 -2
- package/build/cjs/src/ecom-v1-order.public.js +2 -2
- package/build/cjs/src/ecom-v1-order.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-order.types.d.ts +164 -14
- package/build/cjs/src/ecom-v1-order.types.js +11 -11
- package/build/cjs/src/ecom-v1-order.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-order.universal.d.ts +107 -10
- package/build/cjs/src/ecom-v1-order.universal.js +11 -11
- package/build/cjs/src/ecom-v1-order.universal.js.map +1 -1
- package/build/es/src/ecom-discounts-v1-discount-rule.types.d.ts +2 -4
- package/build/es/src/ecom-discounts-v1-discount-rule.universal.d.ts +2 -4
- package/build/es/src/ecom-discounts-v1-discount-rule.universal.js.map +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.types.d.ts +2 -4
- package/build/es/src/ecom-recommendations-v1-recommendation.types.js.map +1 -1
- package/build/es/src/ecom-recommendations-v1-recommendation.universal.d.ts +2 -4
- package/build/es/src/ecom-recommendations-v1-recommendation.universal.js.map +1 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js +6 -0
- package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js.map +1 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.types.d.ts +2 -4
- package/build/es/src/ecom-v1-back-in-stock-notification-request.types.js.map +1 -1
- package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +2 -4
- package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.js.map +1 -1
- package/build/es/src/ecom-v1-cart-cart.types.d.ts +2 -4
- package/build/es/src/ecom-v1-cart-cart.types.js.map +1 -1
- package/build/es/src/ecom-v1-cart-cart.universal.d.ts +3 -3
- package/build/es/src/ecom-v1-cart-current-cart.types.d.ts +2 -4
- package/build/es/src/ecom-v1-cart-current-cart.types.js.map +1 -1
- package/build/es/src/ecom-v1-cart-current-cart.universal.d.ts +3 -3
- package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +2 -4
- package/build/es/src/ecom-v1-checkout-checkout.types.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +3 -3
- package/build/es/src/ecom-v1-checkout-template.types.d.ts +2 -4
- package/build/es/src/ecom-v1-checkout-template.types.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-template.universal.d.ts +2 -4
- package/build/es/src/ecom-v1-checkout-template.universal.js.map +1 -1
- package/build/es/src/ecom-v1-order.public.d.ts +35 -2
- package/build/es/src/ecom-v1-order.public.js +1 -1
- package/build/es/src/ecom-v1-order.public.js.map +1 -1
- package/build/es/src/ecom-v1-order.types.d.ts +164 -14
- package/build/es/src/ecom-v1-order.types.js +10 -10
- package/build/es/src/ecom-v1-order.types.js.map +1 -1
- package/build/es/src/ecom-v1-order.universal.d.ts +107 -10
- package/build/es/src/ecom-v1-order.universal.js +10 -10
- package/build/es/src/ecom-v1-order.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -66,6 +66,17 @@ export declare function getOrder(httpClient: HttpClient): (_id: string) => Promi
|
|
|
66
66
|
formattedAmount: string;
|
|
67
67
|
} | undefined;
|
|
68
68
|
} | undefined;
|
|
69
|
+
taxInfo?: {
|
|
70
|
+
taxAmount?: {
|
|
71
|
+
amount: string;
|
|
72
|
+
formattedAmount: string;
|
|
73
|
+
} | undefined;
|
|
74
|
+
taxableAmount?: {
|
|
75
|
+
amount: string;
|
|
76
|
+
formattedAmount: string;
|
|
77
|
+
} | undefined;
|
|
78
|
+
taxIncludedInPrice: boolean;
|
|
79
|
+
} | undefined;
|
|
69
80
|
subscriptionInfo?: {
|
|
70
81
|
cycleNumber: number;
|
|
71
82
|
subscriptionOptionTitle: string;
|
|
@@ -348,6 +359,17 @@ export declare function createOrder(httpClient: HttpClient): (order: Order) => P
|
|
|
348
359
|
formattedAmount: string;
|
|
349
360
|
} | undefined;
|
|
350
361
|
} | undefined;
|
|
362
|
+
taxInfo?: {
|
|
363
|
+
taxAmount?: {
|
|
364
|
+
amount: string;
|
|
365
|
+
formattedAmount: string;
|
|
366
|
+
} | undefined;
|
|
367
|
+
taxableAmount?: {
|
|
368
|
+
amount: string;
|
|
369
|
+
formattedAmount: string;
|
|
370
|
+
} | undefined;
|
|
371
|
+
taxIncludedInPrice: boolean;
|
|
372
|
+
} | undefined;
|
|
351
373
|
subscriptionInfo?: {
|
|
352
374
|
cycleNumber: number;
|
|
353
375
|
subscriptionOptionTitle: string;
|
|
@@ -629,6 +651,17 @@ export declare function updateOrder(httpClient: HttpClient): (_id: string | null
|
|
|
629
651
|
formattedAmount: string;
|
|
630
652
|
} | undefined;
|
|
631
653
|
} | undefined;
|
|
654
|
+
taxInfo?: {
|
|
655
|
+
taxAmount?: {
|
|
656
|
+
amount: string;
|
|
657
|
+
formattedAmount: string;
|
|
658
|
+
} | undefined;
|
|
659
|
+
taxableAmount?: {
|
|
660
|
+
amount: string;
|
|
661
|
+
formattedAmount: string;
|
|
662
|
+
} | undefined;
|
|
663
|
+
taxIncludedInPrice: boolean;
|
|
664
|
+
} | undefined;
|
|
632
665
|
subscriptionInfo?: {
|
|
633
666
|
cycleNumber: number;
|
|
634
667
|
subscriptionOptionTitle: string;
|
|
@@ -848,6 +881,6 @@ export declare function updateOrder(httpClient: HttpClient): (_id: string | null
|
|
|
848
881
|
} | undefined;
|
|
849
882
|
}>;
|
|
850
883
|
export declare function cancelOrder(httpClient: HttpClient): (_id: string, options?: CancelOrderOptions) => Promise<import("./ecom-v1-order.universal").CancelOrderResponse & import("./ecom-v1-order.universal").CancelOrderResponseNonNullableFields>;
|
|
851
|
-
export { DescriptionLineType, ItemTypeItemType, PaymentOptionType, SubscriptionFrequency, PaymentStatus, FulfillmentStatus, WeightUnit, VatType, PickupMethod, OrderStatus,
|
|
852
|
-
export { Order, OrderLineItem, ProductName, CatalogReference, Price, DescriptionLine, DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, PlainTextValue, Color, PhysicalProperties, ItemType, ItemTypeItemTypeDataOneOf, ItemTaxFullDetails, DigitalFile, SubscriptionInfo, SubscriptionSettings, PriceDescription, LocationAndQuantity, BuyerInfo, BuyerInfoIdOneOf, PriceSummary, AddressWithContact, Address, StreetAddress, AddressLocation, FullAddressContactDetails, VatId, ShippingInformation, DeliveryLogistics, DeliveryLogisticsAddressOneOf, PickupDetails, PickupAddress, DeliveryTimeSlot, ShippingPrice, ShippingRegion, TaxSummary, OrderTaxInfo, OrderTaxBreakdown, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, DiscountRule, DiscountRuleName, Activity, ActivityContentOneOf, CustomActivity, MerchantComment, OrderRefunded, OrderCreatedFromExchange, NewExchangeOrderCreated, LineItemExchangeData, DraftOrderChangesApplied, OrderChange, OrderChangeValueOneOf, LineItemChanges, LineItemQuantityChange, LineItemPriceChange, ManagedLineItem, ManagedDiscount, TranslatedValue, LineItemAmount, ManagedAdditionalFee, TotalPriceChange, CreatedBy, CreatedByStringOneOf, ChannelInfo, CustomField, BalanceSummary, Balance, AdditionalFee, FulfillmentStatusesAggregate, ExtendedFields, Tags, TagList, TriggerReindexWithConsistencyRequest, SnapshotMessage, GetMetasiteDataRequest, GetMetasiteDataResponse, MetaSite, App, SeoData, MetaTag, HtmlApplication, ExternalUriMapping, UserDataResponse, ListOrdersForMetasiteRequest, ListOrdersRequest, PlatformCursorPaging, ListOrdersForMetasiteResponse, CursorPagingMetadata, Cursors, QueryOrdersForMetasiteRequest, InternalQueryOrdersRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryOrdersForMetasiteResponse, PlatformPagingMetadata, GetOrderForMetasiteRequest, GetOrderForMetasiteResponse, ListOrderTransactionsForMetasiteRequest, ListOrderTransactionsForMetasiteResponse, OrderTransactions, V1Payment, V1PaymentPaymentDetailsOneOf, RegularPaymentDetails, GiftCardPaymentDetails, MembershipPaymentDetails, MembershipName, Refund, RefundTransaction, RefundDetails, RefundItem, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, InternalDocument, InternalDocumentUpdateOperation, DeleteByIdsOperation, DeleteByFilterOperation, InternalDocumentUpdateByFilterOperation, InternalUpdateExistingOperation, VersionedDocumentUpdateOperation, VersionedDeleteByIdsOperation, VersionedDocumentId, TriggerReindexRequest, TriggerReindexResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, OrderReindexRequest, SendBuyerConfirmationEmailRequest, SendBuyerConfirmationEmailResponse, SendBuyerPaymentsReceivedEmailRequest, SendBuyerPaymentsReceivedEmailResponse, SendBuyerPickupConfirmationEmailRequest, SendBuyerPickupConfirmationEmailResponse, BulkSendBuyerPickupConfirmationEmailsRequest, BulkSendBuyerPickupConfirmationEmailsResponse, SendBuyerShippingConfirmationEmailRequest, SendBuyerShippingConfirmationEmailResponse, BulkSendBuyerShippingConfirmationEmailsRequest, BulkSendBuyerShippingConfirmationEmailsResponse, SendMerchantOrderReceivedNotificationRequest, SendMerchantOrderReceivedNotificationResponse, SendCancelRefundEmailRequest, SendCancelRefundEmailResponse, SendMerchantOrderReceivedPushRequest, SendMerchantOrderReceivedPushResponse, PreviewEmailByTypeRequest, PreviewEmailByTypeResponse, PreviewRefundEmailRequest, PreviewRefundEmailResponse, PreviewCancelEmailRequest, PreviewCancelEmailResponse, PreviewCancelRefundEmailRequest, PreviewCancelRefundEmailResponse, PreviewBuyerPaymentsReceivedEmailRequest, PreviewBuyerPaymentsReceivedEmailResponse, PreviewBuyerConfirmationEmailRequest, PreviewBuyerConfirmationEmailResponse, PreviewBuyerPickupConfirmationEmailRequest, PreviewBuyerPickupConfirmationEmailResponse, PreviewShippingConfirmationEmailRequest, PreviewShippingConfirmationEmailResponse, PreviewResendDownloadLinksEmailRequest, PreviewResendDownloadLinksEmailResponse, PreparePaymentCollectionRequest, PreparePaymentCollectionResponse, GetPaymentCollectabilityStatusRequest, GetPaymentCollectabilityStatusResponse, RecordManuallyCollectedPaymentRequest, RecordManuallyCollectedPaymentResponse, V1MarkOrderAsPaidRequest, V1MarkOrderAsPaidResponse, PaymentStatusUpdated, V1BulkMarkOrdersAsPaidRequest, V1BulkMarkOrdersAsPaidResponse, BulkOrderResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetRefundabilityStatusRequest, GetRefundabilityStatusResponse, Refundability, RefundabilityAdditionalRefundabilityInfoOneOf, V1CreatePaymentGatewayOrderRequest, ChargedBy, V1CreatePaymentGatewayOrderResponse, ChargeMembershipsRequest, MembershipChargeItem, ServiceProperties, ChargeMembershipsResponse, TriggerRefundRequest, PaymentRefund, RefundSideEffects, RestockInfo, V1RestockItem, TriggerRefundResponse, RefundCreated, CalculateRefundRequest, CalculateRefundItemRequest, CalculateRefundResponse, CalculateRefundItemResponse, DiffmatokyPayload, ErrorInformation, ContinueSideEffectsFlowInLegacyData, OrdersExperiments, IndexingMessage, GetOrderRequest, GetOrderResponse, ListOrdersResponse, InternalQueryOrdersResponse, QueryOrderRequest, QueryOrderResponse, SearchOrdersRequest, CursorSearch, CursorSearchPagingMethodOneOf, SearchOrdersResponse, CreateOrderRequest, CreateOrderResponse, UpdateOrderRequest, UpdateOrderResponse, BulkUpdateOrderRequest, MaskedOrder, BulkUpdateOrderResponse, CommitDeltasRequest, DraftOrderDiffs, DraftOrderDiffsShippingUpdateInfoOneOf, LineItemDelta, LineItemDeltaDeltaOneOf, OrderLineItemChangedDetails, ItemChangedDetails, AppliedDiscountDelta, AppliedDiscountDeltaDeltaOneOf, AdditionalFeeDelta, AdditionalFeeDeltaDeltaOneOf, DraftOrderCommitSettings, InventoryUpdateDetails, CommitDeltasResponse, OrderDeltasCommitted, CommittedDiffs, CommittedDiffsShippingUpdateInfoOneOf, CommittedDiffsLineItemDelta, CommittedDiffsLineItemDeltaDeltaOneOf, ArchiveOrderRequest, ArchiveOrderResponse, BulkArchiveOrdersRequest, BulkArchiveOrdersResponse, BulkArchiveOrdersByFilterRequest, BulkArchiveOrdersByFilterResponse, UnArchiveOrderRequest, UnArchiveOrderResponse, BulkUnArchiveOrdersRequest, BulkUnArchiveOrdersResponse, BulkUnArchiveOrdersByFilterRequest, BulkUnArchiveOrdersByFilterResponse, UpdateBuyerInfoRequest, BuyerInfoUpdate, UpdateBuyerInfoResponse, UpdateBuyerEmailRequest, UpdateBuyerEmailResponse, UpdateOrderShippingAddressRequest, UpdateOrderShippingAddressResponse, UpdateBillingContactDetailsRequest, UpdateBillingContactDetailsResponse, UpdateOrderLineItemRequest, UpdateOrderLineItemResponse, UpdateOrderLineItemsRequest, MaskedOrderLineItem, UpdateOrderLineItemsResponse, AddInternalActivityRequest, InternalActivity, InternalActivityContentOneOf, OrderPlaced, OrderPaid, OrderFulfilled, OrderNotFulfilled, OrderCanceled, DownloadLinkSent, TrackingNumberAdded, TrackingNumberEdited, TrackingLinkAdded, ShippingConfirmationEmailSent, InvoiceAdded, InvoiceSent, FulfillerEmailSent, ShippingAddressEdited, EmailEdited, PickupReadyEmailSent, OrderPartiallyPaid, AddInternalActivityResponse, AddActivityRequest, PublicActivity, PublicActivityContentOneOf, AddActivityResponse, UpdateActivityRequest, UpdateActivityResponse, DeleteActivityRequest, DeleteActivityResponse, UpdateLineItemsDescriptionLinesRequest, LineItemUpdate, UpdateLineItemsDescriptionLinesResponse, MarkOrderAsSeenByHumanRequest, MarkOrderAsSeenByHumanResponse, CancelOrderRequest, CancelOrderResponse, OrderCanceledEventOrderCanceled, MarkAsFulfilledRequest, MarkAsFulfilledResponse, FulfillmentStatusUpdated, BulkMarkAsFulfilledRequest, BulkMarkAsFulfilledResponse, BulkMarkAsFulfilledByFilterRequest, BulkMarkAsFulfilledByFilterResponse, MarkAsUnfulfilledRequest, MarkAsUnfulfilledResponse, BulkMarkAsUnfulfilledRequest, BulkMarkAsUnfulfilledResponse, BulkMarkAsUnfulfilledByFilterRequest, BulkMarkAsUnfulfilledByFilterResponse, MarkOrderAsPaidRequest, MarkOrderAsPaidResponse, BulkMarkOrdersAsPaidRequest, BulkMarkOrdersAsPaidResponse, CreatePaymentGatewayOrderRequest, CreatePaymentGatewayOrderResponse, GetShipmentsRequest, GetShipmentsResponse, AggregateOrdersRequest, AggregateOrdersResponse, DecrementItemsQuantityRequest, DecrementData, DecrementItemsQuantityResponse, OrderItemsRestocked, RestockItem, BulkUpdateOrderTagsRequest, BulkUpdateOrderTagsResponse, BulkUpdateOrderTagsResult, OrderApproved, Task, TaskKey, TaskAction, TaskActionActionOneOf, Complete, Cancel, Reschedule, InvoiceSentEvent, IdAndVersion, InvoiceFields, Customer, Email, QuotesAddress, AddressDescription, Phone, Company, CommonAddress, CommonAddressStreetOneOf, Subdivision, InvoiceDates, LineItems, LineItem, BigDecimalWrapper, LineItemTax, Source, LineItemMetaData, Locale, TotalPrice, ItemizedFee, Discount, DiscountOneDiscountTypeOneOf, CalculatedTaxes, CalculatedTax, Payments, Payment, MetaData, InvoiceDynamicPriceTotals, CustomFieldValue, Value, Deposit, TriggerSideEffectsFromLegacyData, GetOrderResponseNonNullableFields, SearchOrdersResponseNonNullableFields, CreateOrderResponseNonNullableFields, UpdateOrderResponseNonNullableFields, CancelOrderResponseNonNullableFields, SearchOrdersOptions, UpdateOrder, CancelOrderOptions, } from './ecom-v1-order.universal';
|
|
884
|
+
export { DescriptionLineType, ItemTypeItemType, PaymentOptionType, JurisdictionType, SubscriptionFrequency, PaymentStatus, FulfillmentStatus, WeightUnit, VatType, PickupMethod, OrderStatus, DiscountType, DiscountReason, LineItemQuantityChangeType, ActivityType, AttributionSource, ChannelType, State, Namespace, SortOrder, TransactionStatus, MembershipPaymentStatus, RefundStatus, VersioningMode, PreviewEmailType, PaymentCollectabilityStatus, RefundableStatus, NonRefundableReason, ManuallyRefundableReason, RestockType, DeltaPaymentOptionType, InventoryAction, Placement, SubdivisionType, SourceType, CustomFieldGroup, ValueType, DepositType, InvoiceStatus, } from './ecom-v1-order.universal';
|
|
885
|
+
export { Order, OrderLineItem, ProductName, CatalogReference, Price, DescriptionLine, DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, PlainTextValue, Color, PhysicalProperties, ItemType, ItemTypeItemTypeDataOneOf, ItemTaxFullDetails, LineItemTaxInfo, LineItemTaxBreakdown, DigitalFile, SubscriptionInfo, SubscriptionSettings, PriceDescription, LocationAndQuantity, BuyerInfo, BuyerInfoIdOneOf, PriceSummary, AddressWithContact, Address, StreetAddress, AddressLocation, FullAddressContactDetails, VatId, ShippingInformation, DeliveryLogistics, DeliveryLogisticsAddressOneOf, PickupDetails, PickupAddress, DeliveryTimeSlot, ShippingPrice, ShippingRegion, TaxSummary, OrderTaxInfo, OrderTaxBreakdown, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, Coupon, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, DiscountRule, DiscountRuleName, Activity, ActivityContentOneOf, CustomActivity, MerchantComment, OrderRefunded, OrderCreatedFromExchange, NewExchangeOrderCreated, LineItemExchangeData, DraftOrderChangesApplied, OrderChange, OrderChangeValueOneOf, LineItemChanges, LineItemQuantityChange, LineItemPriceChange, ManagedLineItem, ManagedDiscount, TranslatedValue, LineItemAmount, ManagedAdditionalFee, TotalPriceChange, CreatedBy, CreatedByStringOneOf, ChannelInfo, CustomField, BalanceSummary, Balance, AdditionalFee, FulfillmentStatusesAggregate, ExtendedFields, Tags, TagList, TriggerReindexWithConsistencyRequest, SnapshotMessage, GetMetasiteDataRequest, GetMetasiteDataResponse, MetaSite, App, SeoData, MetaTag, HtmlApplication, ExternalUriMapping, UserDataResponse, ListOrdersForMetasiteRequest, ListOrdersRequest, PlatformCursorPaging, ListOrdersForMetasiteResponse, CursorPagingMetadata, Cursors, QueryOrdersForMetasiteRequest, InternalQueryOrdersRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, PlatformPaging, CursorPaging, QueryOrdersForMetasiteResponse, PlatformPagingMetadata, GetOrderForMetasiteRequest, GetOrderForMetasiteResponse, ListOrderTransactionsForMetasiteRequest, ListOrderTransactionsForMetasiteResponse, OrderTransactions, V1Payment, V1PaymentPaymentDetailsOneOf, RegularPaymentDetails, GiftCardPaymentDetails, MembershipPaymentDetails, MembershipName, Refund, RefundTransaction, RefundDetails, RefundItem, UpdateInternalDocumentsEvent, UpdateInternalDocumentsEventOperationOneOf, InternalDocument, InternalDocumentUpdateOperation, DeleteByIdsOperation, DeleteByFilterOperation, InternalDocumentUpdateByFilterOperation, InternalUpdateExistingOperation, VersionedDocumentUpdateOperation, VersionedDeleteByIdsOperation, VersionedDocumentId, TriggerReindexRequest, TriggerReindexResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, OrderReindexRequest, SendBuyerConfirmationEmailRequest, SendBuyerConfirmationEmailResponse, SendBuyerPaymentsReceivedEmailRequest, SendBuyerPaymentsReceivedEmailResponse, SendBuyerPickupConfirmationEmailRequest, SendBuyerPickupConfirmationEmailResponse, BulkSendBuyerPickupConfirmationEmailsRequest, BulkSendBuyerPickupConfirmationEmailsResponse, SendBuyerShippingConfirmationEmailRequest, SendBuyerShippingConfirmationEmailResponse, BulkSendBuyerShippingConfirmationEmailsRequest, BulkSendBuyerShippingConfirmationEmailsResponse, SendMerchantOrderReceivedNotificationRequest, SendMerchantOrderReceivedNotificationResponse, SendCancelRefundEmailRequest, SendCancelRefundEmailResponse, SendMerchantOrderReceivedPushRequest, SendMerchantOrderReceivedPushResponse, PreviewEmailByTypeRequest, PreviewEmailByTypeResponse, PreviewRefundEmailRequest, PreviewRefundEmailResponse, PreviewCancelEmailRequest, PreviewCancelEmailResponse, PreviewCancelRefundEmailRequest, PreviewCancelRefundEmailResponse, PreviewBuyerPaymentsReceivedEmailRequest, PreviewBuyerPaymentsReceivedEmailResponse, PreviewBuyerConfirmationEmailRequest, PreviewBuyerConfirmationEmailResponse, PreviewBuyerPickupConfirmationEmailRequest, PreviewBuyerPickupConfirmationEmailResponse, PreviewShippingConfirmationEmailRequest, PreviewShippingConfirmationEmailResponse, PreviewResendDownloadLinksEmailRequest, PreviewResendDownloadLinksEmailResponse, PreparePaymentCollectionRequest, PreparePaymentCollectionResponse, GetPaymentCollectabilityStatusRequest, GetPaymentCollectabilityStatusResponse, RecordManuallyCollectedPaymentRequest, RecordManuallyCollectedPaymentResponse, V1MarkOrderAsPaidRequest, V1MarkOrderAsPaidResponse, PaymentStatusUpdated, V1BulkMarkOrdersAsPaidRequest, V1BulkMarkOrdersAsPaidResponse, BulkOrderResult, ItemMetadata, ApplicationError, BulkActionMetadata, GetRefundabilityStatusRequest, GetRefundabilityStatusResponse, Refundability, RefundabilityAdditionalRefundabilityInfoOneOf, V1CreatePaymentGatewayOrderRequest, ChargedBy, V1CreatePaymentGatewayOrderResponse, ChargeMembershipsRequest, MembershipChargeItem, ServiceProperties, ChargeMembershipsResponse, TriggerRefundRequest, PaymentRefund, RefundSideEffects, RestockInfo, V1RestockItem, TriggerRefundResponse, RefundCreated, CalculateRefundRequest, CalculateRefundItemRequest, CalculateRefundResponse, CalculateRefundItemResponse, DiffmatokyPayload, ErrorInformation, ContinueSideEffectsFlowInLegacyData, OrdersExperiments, IndexingMessage, GetOrderRequest, GetOrderResponse, ListOrdersResponse, InternalQueryOrdersResponse, QueryOrderRequest, QueryOrderResponse, SearchOrdersRequest, CursorSearch, CursorSearchPagingMethodOneOf, SearchOrdersResponse, CreateOrderRequest, CreateOrderResponse, UpdateOrderRequest, UpdateOrderResponse, BulkUpdateOrderRequest, MaskedOrder, BulkUpdateOrderResponse, CommitDeltasRequest, DraftOrderDiffs, DraftOrderDiffsShippingUpdateInfoOneOf, LineItemDelta, LineItemDeltaDeltaOneOf, OrderLineItemChangedDetails, ItemChangedDetails, AppliedDiscountDelta, AppliedDiscountDeltaDeltaOneOf, AdditionalFeeDelta, AdditionalFeeDeltaDeltaOneOf, DraftOrderCommitSettings, InventoryUpdateDetails, CommitDeltasResponse, OrderDeltasCommitted, CommittedDiffs, CommittedDiffsShippingUpdateInfoOneOf, CommittedDiffsLineItemDelta, CommittedDiffsLineItemDeltaDeltaOneOf, ArchiveOrderRequest, ArchiveOrderResponse, BulkArchiveOrdersRequest, BulkArchiveOrdersResponse, BulkArchiveOrdersByFilterRequest, BulkArchiveOrdersByFilterResponse, UnArchiveOrderRequest, UnArchiveOrderResponse, BulkUnArchiveOrdersRequest, BulkUnArchiveOrdersResponse, BulkUnArchiveOrdersByFilterRequest, BulkUnArchiveOrdersByFilterResponse, UpdateBuyerInfoRequest, BuyerInfoUpdate, UpdateBuyerInfoResponse, UpdateBuyerEmailRequest, UpdateBuyerEmailResponse, UpdateOrderShippingAddressRequest, UpdateOrderShippingAddressResponse, UpdateBillingContactDetailsRequest, UpdateBillingContactDetailsResponse, UpdateOrderLineItemRequest, UpdateOrderLineItemResponse, UpdateOrderLineItemsRequest, MaskedOrderLineItem, UpdateOrderLineItemsResponse, AddInternalActivityRequest, InternalActivity, InternalActivityContentOneOf, OrderPlaced, OrderPaid, OrderFulfilled, OrderNotFulfilled, OrderCanceled, DownloadLinkSent, TrackingNumberAdded, TrackingNumberEdited, TrackingLinkAdded, ShippingConfirmationEmailSent, InvoiceAdded, InvoiceSent, FulfillerEmailSent, ShippingAddressEdited, EmailEdited, PickupReadyEmailSent, OrderPartiallyPaid, AddInternalActivityResponse, AddActivityRequest, PublicActivity, PublicActivityContentOneOf, AddActivityResponse, UpdateActivityRequest, UpdateActivityResponse, DeleteActivityRequest, DeleteActivityResponse, UpdateLineItemsDescriptionLinesRequest, LineItemUpdate, UpdateLineItemsDescriptionLinesResponse, MarkOrderAsSeenByHumanRequest, MarkOrderAsSeenByHumanResponse, CancelOrderRequest, CancelOrderResponse, OrderCanceledEventOrderCanceled, MarkAsFulfilledRequest, MarkAsFulfilledResponse, FulfillmentStatusUpdated, BulkMarkAsFulfilledRequest, BulkMarkAsFulfilledResponse, BulkMarkAsFulfilledByFilterRequest, BulkMarkAsFulfilledByFilterResponse, MarkAsUnfulfilledRequest, MarkAsUnfulfilledResponse, BulkMarkAsUnfulfilledRequest, BulkMarkAsUnfulfilledResponse, BulkMarkAsUnfulfilledByFilterRequest, BulkMarkAsUnfulfilledByFilterResponse, MarkOrderAsPaidRequest, MarkOrderAsPaidResponse, BulkMarkOrdersAsPaidRequest, BulkMarkOrdersAsPaidResponse, CreatePaymentGatewayOrderRequest, CreatePaymentGatewayOrderResponse, GetShipmentsRequest, GetShipmentsResponse, AggregateOrdersRequest, AggregateOrdersResponse, DecrementItemsQuantityRequest, DecrementData, DecrementItemsQuantityResponse, OrderItemsRestocked, RestockItem, BulkUpdateOrderTagsRequest, BulkUpdateOrderTagsResponse, BulkUpdateOrderTagsResult, OrderApproved, Task, TaskKey, TaskAction, TaskActionActionOneOf, Complete, Cancel, Reschedule, InvoiceSentEvent, IdAndVersion, InvoiceFields, Customer, Email, QuotesAddress, AddressDescription, Phone, Company, CommonAddress, CommonAddressStreetOneOf, Subdivision, InvoiceDates, LineItems, LineItem, BigDecimalWrapper, LineItemTax, Source, LineItemMetaData, Locale, TotalPrice, ItemizedFee, Discount, DiscountOneDiscountTypeOneOf, CalculatedTaxes, CalculatedTax, Payments, Payment, MetaData, InvoiceDynamicPriceTotals, CustomFieldValue, Value, Deposit, TriggerSideEffectsFromLegacyData, GetOrderResponseNonNullableFields, SearchOrdersResponseNonNullableFields, CreateOrderResponseNonNullableFields, UpdateOrderResponseNonNullableFields, CancelOrderResponseNonNullableFields, SearchOrdersOptions, UpdateOrder, CancelOrderOptions, } from './ecom-v1-order.universal';
|
|
853
886
|
export { onOrderPaymentStatusUpdated, onOrderUpdated, onOrderCreated, onOrderCanceled, onOrderApproved, } from './ecom-v1-order.universal';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.onOrderApproved = exports.onOrderCanceled = exports.onOrderCreated = exports.onOrderUpdated = exports.onOrderPaymentStatusUpdated = exports.InvoiceStatus = exports.DepositType = exports.ValueType = exports.CustomFieldGroup = exports.SourceType = exports.SubdivisionType = exports.Placement = exports.InventoryAction = exports.DeltaPaymentOptionType = exports.RestockType = exports.ManuallyRefundableReason = exports.NonRefundableReason = exports.RefundableStatus = exports.PaymentCollectabilityStatus = exports.PreviewEmailType = exports.VersioningMode = exports.RefundStatus = exports.MembershipPaymentStatus = exports.TransactionStatus = exports.SortOrder = exports.Namespace = exports.State = exports.ChannelType = exports.AttributionSource = exports.ActivityType = exports.LineItemQuantityChangeType = exports.DiscountReason = exports.DiscountType = exports.
|
|
3
|
+
exports.onOrderApproved = exports.onOrderCanceled = exports.onOrderCreated = exports.onOrderUpdated = exports.onOrderPaymentStatusUpdated = exports.InvoiceStatus = exports.DepositType = exports.ValueType = exports.CustomFieldGroup = exports.SourceType = exports.SubdivisionType = exports.Placement = exports.InventoryAction = exports.DeltaPaymentOptionType = exports.RestockType = exports.ManuallyRefundableReason = exports.NonRefundableReason = exports.RefundableStatus = exports.PaymentCollectabilityStatus = exports.PreviewEmailType = exports.VersioningMode = exports.RefundStatus = exports.MembershipPaymentStatus = exports.TransactionStatus = exports.SortOrder = exports.Namespace = exports.State = exports.ChannelType = exports.AttributionSource = exports.ActivityType = exports.LineItemQuantityChangeType = exports.DiscountReason = exports.DiscountType = exports.OrderStatus = exports.PickupMethod = exports.VatType = exports.WeightUnit = exports.FulfillmentStatus = exports.PaymentStatus = exports.SubscriptionFrequency = exports.JurisdictionType = exports.PaymentOptionType = exports.ItemTypeItemType = exports.DescriptionLineType = exports.cancelOrder = exports.updateOrder = exports.createOrder = exports.searchOrders = exports.getOrder = exports.__metadata = void 0;
|
|
4
4
|
const ecom_v1_order_universal_1 = require("./ecom-v1-order.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
6
6
|
function getOrder(httpClient) {
|
|
@@ -37,6 +37,7 @@ var ecom_v1_order_universal_2 = require("./ecom-v1-order.universal");
|
|
|
37
37
|
Object.defineProperty(exports, "DescriptionLineType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.DescriptionLineType; } });
|
|
38
38
|
Object.defineProperty(exports, "ItemTypeItemType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.ItemTypeItemType; } });
|
|
39
39
|
Object.defineProperty(exports, "PaymentOptionType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.PaymentOptionType; } });
|
|
40
|
+
Object.defineProperty(exports, "JurisdictionType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.JurisdictionType; } });
|
|
40
41
|
Object.defineProperty(exports, "SubscriptionFrequency", { enumerable: true, get: function () { return ecom_v1_order_universal_2.SubscriptionFrequency; } });
|
|
41
42
|
Object.defineProperty(exports, "PaymentStatus", { enumerable: true, get: function () { return ecom_v1_order_universal_2.PaymentStatus; } });
|
|
42
43
|
Object.defineProperty(exports, "FulfillmentStatus", { enumerable: true, get: function () { return ecom_v1_order_universal_2.FulfillmentStatus; } });
|
|
@@ -44,7 +45,6 @@ Object.defineProperty(exports, "WeightUnit", { enumerable: true, get: function (
|
|
|
44
45
|
Object.defineProperty(exports, "VatType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.VatType; } });
|
|
45
46
|
Object.defineProperty(exports, "PickupMethod", { enumerable: true, get: function () { return ecom_v1_order_universal_2.PickupMethod; } });
|
|
46
47
|
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return ecom_v1_order_universal_2.OrderStatus; } });
|
|
47
|
-
Object.defineProperty(exports, "JurisdictionType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.JurisdictionType; } });
|
|
48
48
|
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.DiscountType; } });
|
|
49
49
|
Object.defineProperty(exports, "DiscountReason", { enumerable: true, get: function () { return ecom_v1_order_universal_2.DiscountReason; } });
|
|
50
50
|
Object.defineProperty(exports, "LineItemQuantityChangeType", { enumerable: true, get: function () { return ecom_v1_order_universal_2.LineItemQuantityChangeType; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-order.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-order.public.ts"],"names":[],"mappings":";;;AACA,uEAUmC;AAEtB,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,kCAAiB,EACf,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4BAOC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,OAA6B,EAAE,EAAE,CACvC,IAAA,sCAAqB,EACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,KAAY,EAAE,EAAE,CACtB,IAAA,qCAAoB,EAClB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAkB,EAAE,KAAkB,EAAE,EAAE,CAChD,IAAA,qCAAoB,EAClB,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,OAA4B,EAAE,EAAE,CACnD,IAAA,qCAAoB,EAClB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC;AAED,qEAwCmC;AAvCjC,8HAAA,mBAAmB,OAAA;AACnB,2HAAA,gBAAgB,OAAA;AAChB,4HAAA,iBAAiB,OAAA;AACjB,gIAAA,qBAAqB,OAAA;AACrB,wHAAA,aAAa,OAAA;AACb,4HAAA,iBAAiB,OAAA;AACjB,qHAAA,UAAU,OAAA;AACV,kHAAA,OAAO,OAAA;AACP,uHAAA,YAAY,OAAA;AACZ,sHAAA,WAAW,OAAA;AACX,
|
|
1
|
+
{"version":3,"file":"ecom-v1-order.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-order.public.ts"],"names":[],"mappings":";;;AACA,uEAUmC;AAEtB,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAExD,SAAgB,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,GAAW,EAAE,EAAE,CACrB,IAAA,kCAAiB,EACf,GAAG;IACH,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4BAOC;AAED,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,OAA6B,EAAE,EAAE,CACvC,IAAA,sCAAqB,EACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,KAAY,EAAE,EAAE,CACtB,IAAA,qCAAoB,EAClB,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,kCAOC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAkB,EAAE,KAAkB,EAAE,EAAE,CAChD,IAAA,qCAAoB,EAClB,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC;AAED,SAAgB,WAAW,CAAC,UAA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AAC3B,yHAAA,cAAc,OAAA;AACd,yHAAA,cAAc,OAAA;AACd,0HAAA,eAAe,OAAA;AACf,0HAAA,eAAe,OAAA"}
|
|
@@ -196,8 +196,13 @@ export interface OrderLineItem {
|
|
|
196
196
|
* + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE` only.
|
|
197
197
|
*/
|
|
198
198
|
paymentOption?: PaymentOptionType;
|
|
199
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Deprecated. Use `taxInfo` instead.
|
|
201
|
+
* This field will be removed on September 30, 2024.
|
|
202
|
+
*/
|
|
200
203
|
taxDetails?: ItemTaxFullDetails;
|
|
204
|
+
/** Represents all the relevant tax details for a specific line item. */
|
|
205
|
+
taxInfo?: LineItemTaxInfo;
|
|
201
206
|
/** Subscription info. */
|
|
202
207
|
subscriptionInfo?: SubscriptionInfo;
|
|
203
208
|
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
@@ -241,11 +246,9 @@ export interface CatalogReference {
|
|
|
241
246
|
*/
|
|
242
247
|
appId?: string;
|
|
243
248
|
/**
|
|
244
|
-
* Additional item details in key:value pairs.
|
|
249
|
+
* Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
|
|
245
250
|
*
|
|
246
|
-
*
|
|
247
|
-
* + Pass specific information about the item variant in this field. For example, size and color of an item of clothing: `"options": {"Size": "M", "Color": "Red"}`.
|
|
248
|
-
* + Create a separate API for creating item variants that stores the details and generates a unique ID for each item variant. Then pass only the variant ID in this field. For example: `"options": {"variantId": "<VARIANT_ID>"}`.
|
|
251
|
+
* For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
|
|
249
252
|
*/
|
|
250
253
|
options?: Record<string, any> | null;
|
|
251
254
|
}
|
|
@@ -385,6 +388,52 @@ export interface ItemTaxFullDetails {
|
|
|
385
388
|
/** The calculated tax, based on the `taxableAmount` and `taxRate`. */
|
|
386
389
|
totalTax?: Price;
|
|
387
390
|
}
|
|
391
|
+
export interface LineItemTaxInfo {
|
|
392
|
+
/** Calculated tax, based on `taxable_amount` and `tax_rate`. */
|
|
393
|
+
taxAmount?: Price;
|
|
394
|
+
/** Amount for which tax is calculated. */
|
|
395
|
+
taxableAmount?: Price;
|
|
396
|
+
/** Tax rate %, as a decimal point between 0 and 1. */
|
|
397
|
+
taxRate?: string | null;
|
|
398
|
+
/** The app id of the calculator that calculated this line tax. */
|
|
399
|
+
appId?: string | null;
|
|
400
|
+
/** Indicates whether the price already includes tax. */
|
|
401
|
+
taxIncludedInPrice?: boolean;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* TaxBreakdown represents tax information for a line item.
|
|
405
|
+
* It holds the tax amount and the tax rate for each tax authority that apply on the line item.
|
|
406
|
+
*/
|
|
407
|
+
export interface LineItemTaxBreakdown {
|
|
408
|
+
/** Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec". */
|
|
409
|
+
jurisdiction?: string | null;
|
|
410
|
+
/** Non-taxable amount of the line item price. */
|
|
411
|
+
nonTaxableAmount?: string | null;
|
|
412
|
+
/** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000. */
|
|
413
|
+
rate?: Price;
|
|
414
|
+
/** Amount of tax calculated for this line item. */
|
|
415
|
+
taxAmount?: Price;
|
|
416
|
+
/** Taxable amount of the line item price. */
|
|
417
|
+
taxableAmount?: string | null;
|
|
418
|
+
/** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
|
|
419
|
+
taxType?: string | null;
|
|
420
|
+
/**
|
|
421
|
+
* The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
422
|
+
* This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
423
|
+
*/
|
|
424
|
+
taxName?: string | null;
|
|
425
|
+
/** Type of jurisdiction that taxes were calculated for. */
|
|
426
|
+
jurisdictionType?: JurisdictionType;
|
|
427
|
+
}
|
|
428
|
+
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
429
|
+
export declare enum JurisdictionType {
|
|
430
|
+
UNDEFINED = "UNDEFINED",
|
|
431
|
+
COUNTRY = "COUNTRY",
|
|
432
|
+
STATE = "STATE",
|
|
433
|
+
COUNTY = "COUNTY",
|
|
434
|
+
CITY = "CITY",
|
|
435
|
+
SPECIAL = "SPECIAL"
|
|
436
|
+
}
|
|
388
437
|
export interface DigitalFile {
|
|
389
438
|
/** ID of the secure file in media. */
|
|
390
439
|
fileId?: string;
|
|
@@ -732,15 +781,6 @@ export interface OrderTaxBreakdown {
|
|
|
732
781
|
/** The sum of all the tax from line items that calculated by the tax identifiers. */
|
|
733
782
|
aggregatedTaxAmount?: Price;
|
|
734
783
|
}
|
|
735
|
-
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
736
|
-
export declare enum JurisdictionType {
|
|
737
|
-
UNDEFINED = "UNDEFINED",
|
|
738
|
-
COUNTRY = "COUNTRY",
|
|
739
|
-
STATE = "STATE",
|
|
740
|
-
COUNTY = "COUNTY",
|
|
741
|
-
CITY = "CITY",
|
|
742
|
-
SPECIAL = "SPECIAL"
|
|
743
|
-
}
|
|
744
784
|
export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
745
785
|
/** Applied coupon info. */
|
|
746
786
|
coupon?: Coupon;
|
|
@@ -3832,6 +3872,28 @@ export interface GetOrderResponseNonNullableFields {
|
|
|
3832
3872
|
formattedAmount: string;
|
|
3833
3873
|
};
|
|
3834
3874
|
};
|
|
3875
|
+
taxInfo?: {
|
|
3876
|
+
taxAmount?: {
|
|
3877
|
+
amount: string;
|
|
3878
|
+
formattedAmount: string;
|
|
3879
|
+
};
|
|
3880
|
+
taxableAmount?: {
|
|
3881
|
+
amount: string;
|
|
3882
|
+
formattedAmount: string;
|
|
3883
|
+
};
|
|
3884
|
+
taxIncludedInPrice: boolean;
|
|
3885
|
+
taxBreakdown: {
|
|
3886
|
+
rate?: {
|
|
3887
|
+
amount: string;
|
|
3888
|
+
formattedAmount: string;
|
|
3889
|
+
};
|
|
3890
|
+
taxAmount?: {
|
|
3891
|
+
amount: string;
|
|
3892
|
+
formattedAmount: string;
|
|
3893
|
+
};
|
|
3894
|
+
jurisdictionType: JurisdictionType;
|
|
3895
|
+
}[];
|
|
3896
|
+
};
|
|
3835
3897
|
digitalFile?: {
|
|
3836
3898
|
fileId: string;
|
|
3837
3899
|
};
|
|
@@ -4381,6 +4443,28 @@ export interface SearchOrdersResponseNonNullableFields {
|
|
|
4381
4443
|
formattedAmount: string;
|
|
4382
4444
|
};
|
|
4383
4445
|
};
|
|
4446
|
+
taxInfo?: {
|
|
4447
|
+
taxAmount?: {
|
|
4448
|
+
amount: string;
|
|
4449
|
+
formattedAmount: string;
|
|
4450
|
+
};
|
|
4451
|
+
taxableAmount?: {
|
|
4452
|
+
amount: string;
|
|
4453
|
+
formattedAmount: string;
|
|
4454
|
+
};
|
|
4455
|
+
taxIncludedInPrice: boolean;
|
|
4456
|
+
taxBreakdown: {
|
|
4457
|
+
rate?: {
|
|
4458
|
+
amount: string;
|
|
4459
|
+
formattedAmount: string;
|
|
4460
|
+
};
|
|
4461
|
+
taxAmount?: {
|
|
4462
|
+
amount: string;
|
|
4463
|
+
formattedAmount: string;
|
|
4464
|
+
};
|
|
4465
|
+
jurisdictionType: JurisdictionType;
|
|
4466
|
+
}[];
|
|
4467
|
+
};
|
|
4384
4468
|
digitalFile?: {
|
|
4385
4469
|
fileId: string;
|
|
4386
4470
|
};
|
|
@@ -4930,6 +5014,28 @@ export interface CreateOrderResponseNonNullableFields {
|
|
|
4930
5014
|
formattedAmount: string;
|
|
4931
5015
|
};
|
|
4932
5016
|
};
|
|
5017
|
+
taxInfo?: {
|
|
5018
|
+
taxAmount?: {
|
|
5019
|
+
amount: string;
|
|
5020
|
+
formattedAmount: string;
|
|
5021
|
+
};
|
|
5022
|
+
taxableAmount?: {
|
|
5023
|
+
amount: string;
|
|
5024
|
+
formattedAmount: string;
|
|
5025
|
+
};
|
|
5026
|
+
taxIncludedInPrice: boolean;
|
|
5027
|
+
taxBreakdown: {
|
|
5028
|
+
rate?: {
|
|
5029
|
+
amount: string;
|
|
5030
|
+
formattedAmount: string;
|
|
5031
|
+
};
|
|
5032
|
+
taxAmount?: {
|
|
5033
|
+
amount: string;
|
|
5034
|
+
formattedAmount: string;
|
|
5035
|
+
};
|
|
5036
|
+
jurisdictionType: JurisdictionType;
|
|
5037
|
+
}[];
|
|
5038
|
+
};
|
|
4933
5039
|
digitalFile?: {
|
|
4934
5040
|
fileId: string;
|
|
4935
5041
|
};
|
|
@@ -5479,6 +5585,28 @@ export interface UpdateOrderResponseNonNullableFields {
|
|
|
5479
5585
|
formattedAmount: string;
|
|
5480
5586
|
};
|
|
5481
5587
|
};
|
|
5588
|
+
taxInfo?: {
|
|
5589
|
+
taxAmount?: {
|
|
5590
|
+
amount: string;
|
|
5591
|
+
formattedAmount: string;
|
|
5592
|
+
};
|
|
5593
|
+
taxableAmount?: {
|
|
5594
|
+
amount: string;
|
|
5595
|
+
formattedAmount: string;
|
|
5596
|
+
};
|
|
5597
|
+
taxIncludedInPrice: boolean;
|
|
5598
|
+
taxBreakdown: {
|
|
5599
|
+
rate?: {
|
|
5600
|
+
amount: string;
|
|
5601
|
+
formattedAmount: string;
|
|
5602
|
+
};
|
|
5603
|
+
taxAmount?: {
|
|
5604
|
+
amount: string;
|
|
5605
|
+
formattedAmount: string;
|
|
5606
|
+
};
|
|
5607
|
+
jurisdictionType: JurisdictionType;
|
|
5608
|
+
}[];
|
|
5609
|
+
};
|
|
5482
5610
|
digitalFile?: {
|
|
5483
5611
|
fileId: string;
|
|
5484
5612
|
};
|
|
@@ -6028,6 +6156,28 @@ export interface CancelOrderResponseNonNullableFields {
|
|
|
6028
6156
|
formattedAmount: string;
|
|
6029
6157
|
};
|
|
6030
6158
|
};
|
|
6159
|
+
taxInfo?: {
|
|
6160
|
+
taxAmount?: {
|
|
6161
|
+
amount: string;
|
|
6162
|
+
formattedAmount: string;
|
|
6163
|
+
};
|
|
6164
|
+
taxableAmount?: {
|
|
6165
|
+
amount: string;
|
|
6166
|
+
formattedAmount: string;
|
|
6167
|
+
};
|
|
6168
|
+
taxIncludedInPrice: boolean;
|
|
6169
|
+
taxBreakdown: {
|
|
6170
|
+
rate?: {
|
|
6171
|
+
amount: string;
|
|
6172
|
+
formattedAmount: string;
|
|
6173
|
+
};
|
|
6174
|
+
taxAmount?: {
|
|
6175
|
+
amount: string;
|
|
6176
|
+
formattedAmount: string;
|
|
6177
|
+
};
|
|
6178
|
+
jurisdictionType: JurisdictionType;
|
|
6179
|
+
}[];
|
|
6180
|
+
};
|
|
6031
6181
|
digitalFile?: {
|
|
6032
6182
|
fileId: string;
|
|
6033
6183
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoiceStatus = exports.DepositType = exports.ValueType = exports.CustomFieldGroup = exports.SourceType = exports.SubdivisionType = exports.Placement = exports.InventoryAction = exports.DeltaPaymentOptionType = exports.RestockType = exports.ManuallyRefundableReason = exports.NonRefundableReason = exports.RefundableStatus = exports.PaymentCollectabilityStatus = exports.PreviewEmailType = exports.VersioningMode = exports.RefundStatus = exports.MembershipPaymentStatus = exports.TransactionStatus = exports.SortOrder = exports.Namespace = exports.State = exports.ChannelType = exports.AttributionSource = exports.ActivityType = exports.LineItemQuantityChangeType = exports.DiscountReason = exports.DiscountType = exports.
|
|
3
|
+
exports.InvoiceStatus = exports.DepositType = exports.ValueType = exports.CustomFieldGroup = exports.SourceType = exports.SubdivisionType = exports.Placement = exports.InventoryAction = exports.DeltaPaymentOptionType = exports.RestockType = exports.ManuallyRefundableReason = exports.NonRefundableReason = exports.RefundableStatus = exports.PaymentCollectabilityStatus = exports.PreviewEmailType = exports.VersioningMode = exports.RefundStatus = exports.MembershipPaymentStatus = exports.TransactionStatus = exports.SortOrder = exports.Namespace = exports.State = exports.ChannelType = exports.AttributionSource = exports.ActivityType = exports.LineItemQuantityChangeType = exports.DiscountReason = exports.DiscountType = exports.OrderStatus = exports.PickupMethod = exports.VatType = exports.WeightUnit = exports.FulfillmentStatus = exports.PaymentStatus = exports.SubscriptionFrequency = exports.JurisdictionType = exports.PaymentOptionType = exports.ItemTypeItemType = exports.DescriptionLineType = void 0;
|
|
4
4
|
var DescriptionLineType;
|
|
5
5
|
(function (DescriptionLineType) {
|
|
6
6
|
DescriptionLineType["UNRECOGNISED"] = "UNRECOGNISED";
|
|
@@ -29,6 +29,16 @@ var PaymentOptionType;
|
|
|
29
29
|
/** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
|
|
30
30
|
PaymentOptionType["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
31
31
|
})(PaymentOptionType || (exports.PaymentOptionType = PaymentOptionType = {}));
|
|
32
|
+
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
33
|
+
var JurisdictionType;
|
|
34
|
+
(function (JurisdictionType) {
|
|
35
|
+
JurisdictionType["UNDEFINED"] = "UNDEFINED";
|
|
36
|
+
JurisdictionType["COUNTRY"] = "COUNTRY";
|
|
37
|
+
JurisdictionType["STATE"] = "STATE";
|
|
38
|
+
JurisdictionType["COUNTY"] = "COUNTY";
|
|
39
|
+
JurisdictionType["CITY"] = "CITY";
|
|
40
|
+
JurisdictionType["SPECIAL"] = "SPECIAL";
|
|
41
|
+
})(JurisdictionType || (exports.JurisdictionType = JurisdictionType = {}));
|
|
32
42
|
/** Frequency unit of recurring payment */
|
|
33
43
|
var SubscriptionFrequency;
|
|
34
44
|
(function (SubscriptionFrequency) {
|
|
@@ -96,16 +106,6 @@ var OrderStatus;
|
|
|
96
106
|
OrderStatus["APPROVED"] = "APPROVED";
|
|
97
107
|
OrderStatus["CANCELED"] = "CANCELED";
|
|
98
108
|
})(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
|
|
99
|
-
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
100
|
-
var JurisdictionType;
|
|
101
|
-
(function (JurisdictionType) {
|
|
102
|
-
JurisdictionType["UNDEFINED"] = "UNDEFINED";
|
|
103
|
-
JurisdictionType["COUNTRY"] = "COUNTRY";
|
|
104
|
-
JurisdictionType["STATE"] = "STATE";
|
|
105
|
-
JurisdictionType["COUNTY"] = "COUNTY";
|
|
106
|
-
JurisdictionType["CITY"] = "CITY";
|
|
107
|
-
JurisdictionType["SPECIAL"] = "SPECIAL";
|
|
108
|
-
})(JurisdictionType || (exports.JurisdictionType = JurisdictionType = {}));
|
|
109
109
|
var DiscountType;
|
|
110
110
|
(function (DiscountType) {
|
|
111
111
|
DiscountType["GLOBAL"] = "GLOBAL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-order.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-order.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-v1-order.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-order.types.ts"],"names":[],"mappings":";;;AAqUA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,gDAAyB,CAAA;IACzB,sCAAe,CAAA;AACjB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAkDD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;AACrB,CAAC,EANW,gBAAgB,gC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nB,mCAAqB,CAAA;IACrB,6BAAe,CAAA;IACf,6BAAe,CAAA;AACjB,CAAC,EANW,UAAU,0BAAV,UAAU,QAMrB;AAmHD,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,6EAAyD,CAAA;IACzD,yDAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACjB,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAOD,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,sDAAyC,CAAA;IACzC,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;AACnB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB;AAeD,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,wCAAyB,CAAA;AAC3B,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAED;;;;;;;;;GASG;AACH,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,0CAAyB,CAAA;IACzB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,gDAA+B,CAAA;IAC/B,wDAAuC,CAAA;AACzC,CAAC,EAVW,aAAa,6BAAb,aAAa,QAUxB"}
|
|
@@ -195,8 +195,13 @@ export interface OrderLineItem {
|
|
|
195
195
|
* + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Eligible for catalog items with type `DEPOSIT_ONLINE` only.
|
|
196
196
|
*/
|
|
197
197
|
paymentOption?: PaymentOptionType;
|
|
198
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* Deprecated. Use `taxInfo` instead.
|
|
200
|
+
* This field will be removed on September 30, 2024.
|
|
201
|
+
*/
|
|
199
202
|
taxDetails?: ItemTaxFullDetails;
|
|
203
|
+
/** Represents all the relevant tax details for a specific line item. */
|
|
204
|
+
taxInfo?: LineItemTaxInfo;
|
|
200
205
|
/** Subscription info. */
|
|
201
206
|
subscriptionInfo?: SubscriptionInfo;
|
|
202
207
|
/** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
|
|
@@ -361,6 +366,52 @@ export interface ItemTaxFullDetails {
|
|
|
361
366
|
/** The calculated tax, based on the `taxableAmount` and `taxRate`. */
|
|
362
367
|
totalTax?: Price;
|
|
363
368
|
}
|
|
369
|
+
export interface LineItemTaxInfo {
|
|
370
|
+
/** Calculated tax, based on `taxable_amount` and `tax_rate`. */
|
|
371
|
+
taxAmount?: Price;
|
|
372
|
+
/** Amount for which tax is calculated. */
|
|
373
|
+
taxableAmount?: Price;
|
|
374
|
+
/** Tax rate %, as a decimal point between 0 and 1. */
|
|
375
|
+
taxRate?: string | null;
|
|
376
|
+
/** The app id of the calculator that calculated this line tax. */
|
|
377
|
+
appId?: string | null;
|
|
378
|
+
/** Indicates whether the price already includes tax. */
|
|
379
|
+
taxIncludedInPrice?: boolean;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* TaxBreakdown represents tax information for a line item.
|
|
383
|
+
* It holds the tax amount and the tax rate for each tax authority that apply on the line item.
|
|
384
|
+
*/
|
|
385
|
+
export interface LineItemTaxBreakdown {
|
|
386
|
+
/** Jurisdiction that taxes were calculated for. For example, "New York", or "Quebec". */
|
|
387
|
+
jurisdiction?: string | null;
|
|
388
|
+
/** Non-taxable amount of the line item price. */
|
|
389
|
+
nonTaxableAmount?: string | null;
|
|
390
|
+
/** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000. */
|
|
391
|
+
rate?: Price;
|
|
392
|
+
/** Amount of tax calculated for this line item. */
|
|
393
|
+
taxAmount?: Price;
|
|
394
|
+
/** Taxable amount of the line item price. */
|
|
395
|
+
taxableAmount?: string | null;
|
|
396
|
+
/** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
|
|
397
|
+
taxType?: string | null;
|
|
398
|
+
/**
|
|
399
|
+
* The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
|
|
400
|
+
* This name should be explicit enough to allow the merchant to understand what tax was calculated.
|
|
401
|
+
*/
|
|
402
|
+
taxName?: string | null;
|
|
403
|
+
/** Type of jurisdiction that taxes were calculated for. */
|
|
404
|
+
jurisdictionType?: JurisdictionType;
|
|
405
|
+
}
|
|
406
|
+
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
407
|
+
export declare enum JurisdictionType {
|
|
408
|
+
UNDEFINED = "UNDEFINED",
|
|
409
|
+
COUNTRY = "COUNTRY",
|
|
410
|
+
STATE = "STATE",
|
|
411
|
+
COUNTY = "COUNTY",
|
|
412
|
+
CITY = "CITY",
|
|
413
|
+
SPECIAL = "SPECIAL"
|
|
414
|
+
}
|
|
364
415
|
export interface DigitalFile {
|
|
365
416
|
/** ID of the secure file in media. */
|
|
366
417
|
fileId?: string;
|
|
@@ -688,15 +739,6 @@ export interface OrderTaxBreakdown {
|
|
|
688
739
|
/** The sum of all the tax from line items that calculated by the tax identifiers. */
|
|
689
740
|
aggregatedTaxAmount?: Price;
|
|
690
741
|
}
|
|
691
|
-
/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
|
|
692
|
-
export declare enum JurisdictionType {
|
|
693
|
-
UNDEFINED = "UNDEFINED",
|
|
694
|
-
COUNTRY = "COUNTRY",
|
|
695
|
-
STATE = "STATE",
|
|
696
|
-
COUNTY = "COUNTY",
|
|
697
|
-
CITY = "CITY",
|
|
698
|
-
SPECIAL = "SPECIAL"
|
|
699
|
-
}
|
|
700
742
|
export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
701
743
|
/** Applied coupon info. */
|
|
702
744
|
coupon?: Coupon;
|
|
@@ -3794,6 +3836,17 @@ export interface GetOrderResponseNonNullableFields {
|
|
|
3794
3836
|
formattedAmount: string;
|
|
3795
3837
|
};
|
|
3796
3838
|
};
|
|
3839
|
+
taxInfo?: {
|
|
3840
|
+
taxAmount?: {
|
|
3841
|
+
amount: string;
|
|
3842
|
+
formattedAmount: string;
|
|
3843
|
+
};
|
|
3844
|
+
taxableAmount?: {
|
|
3845
|
+
amount: string;
|
|
3846
|
+
formattedAmount: string;
|
|
3847
|
+
};
|
|
3848
|
+
taxIncludedInPrice: boolean;
|
|
3849
|
+
};
|
|
3797
3850
|
subscriptionInfo?: {
|
|
3798
3851
|
cycleNumber: number;
|
|
3799
3852
|
subscriptionOptionTitle: string;
|
|
@@ -4077,6 +4130,17 @@ export interface SearchOrdersResponseNonNullableFields {
|
|
|
4077
4130
|
formattedAmount: string;
|
|
4078
4131
|
};
|
|
4079
4132
|
};
|
|
4133
|
+
taxInfo?: {
|
|
4134
|
+
taxAmount?: {
|
|
4135
|
+
amount: string;
|
|
4136
|
+
formattedAmount: string;
|
|
4137
|
+
};
|
|
4138
|
+
taxableAmount?: {
|
|
4139
|
+
amount: string;
|
|
4140
|
+
formattedAmount: string;
|
|
4141
|
+
};
|
|
4142
|
+
taxIncludedInPrice: boolean;
|
|
4143
|
+
};
|
|
4080
4144
|
subscriptionInfo?: {
|
|
4081
4145
|
cycleNumber: number;
|
|
4082
4146
|
subscriptionOptionTitle: string;
|
|
@@ -4360,6 +4424,17 @@ export interface CreateOrderResponseNonNullableFields {
|
|
|
4360
4424
|
formattedAmount: string;
|
|
4361
4425
|
};
|
|
4362
4426
|
};
|
|
4427
|
+
taxInfo?: {
|
|
4428
|
+
taxAmount?: {
|
|
4429
|
+
amount: string;
|
|
4430
|
+
formattedAmount: string;
|
|
4431
|
+
};
|
|
4432
|
+
taxableAmount?: {
|
|
4433
|
+
amount: string;
|
|
4434
|
+
formattedAmount: string;
|
|
4435
|
+
};
|
|
4436
|
+
taxIncludedInPrice: boolean;
|
|
4437
|
+
};
|
|
4363
4438
|
subscriptionInfo?: {
|
|
4364
4439
|
cycleNumber: number;
|
|
4365
4440
|
subscriptionOptionTitle: string;
|
|
@@ -4643,6 +4718,17 @@ export interface UpdateOrderResponseNonNullableFields {
|
|
|
4643
4718
|
formattedAmount: string;
|
|
4644
4719
|
};
|
|
4645
4720
|
};
|
|
4721
|
+
taxInfo?: {
|
|
4722
|
+
taxAmount?: {
|
|
4723
|
+
amount: string;
|
|
4724
|
+
formattedAmount: string;
|
|
4725
|
+
};
|
|
4726
|
+
taxableAmount?: {
|
|
4727
|
+
amount: string;
|
|
4728
|
+
formattedAmount: string;
|
|
4729
|
+
};
|
|
4730
|
+
taxIncludedInPrice: boolean;
|
|
4731
|
+
};
|
|
4646
4732
|
subscriptionInfo?: {
|
|
4647
4733
|
cycleNumber: number;
|
|
4648
4734
|
subscriptionOptionTitle: string;
|
|
@@ -4926,6 +5012,17 @@ export interface CancelOrderResponseNonNullableFields {
|
|
|
4926
5012
|
formattedAmount: string;
|
|
4927
5013
|
};
|
|
4928
5014
|
};
|
|
5015
|
+
taxInfo?: {
|
|
5016
|
+
taxAmount?: {
|
|
5017
|
+
amount: string;
|
|
5018
|
+
formattedAmount: string;
|
|
5019
|
+
};
|
|
5020
|
+
taxableAmount?: {
|
|
5021
|
+
amount: string;
|
|
5022
|
+
formattedAmount: string;
|
|
5023
|
+
};
|
|
5024
|
+
taxIncludedInPrice: boolean;
|
|
5025
|
+
};
|
|
4929
5026
|
subscriptionInfo?: {
|
|
4930
5027
|
cycleNumber: number;
|
|
4931
5028
|
subscriptionOptionTitle: string;
|