@wix/ecom 1.0.506 → 1.0.508

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/src/ecom-v1-order.context.d.ts +1 -2
  2. package/build/cjs/src/ecom-v1-order.context.js +1 -12
  3. package/build/cjs/src/ecom-v1-order.context.js.map +1 -1
  4. package/build/cjs/src/ecom-v1-order.http.d.ts +1 -2
  5. package/build/cjs/src/ecom-v1-order.http.js +1 -89
  6. package/build/cjs/src/ecom-v1-order.http.js.map +1 -1
  7. package/build/cjs/src/ecom-v1-order.meta.d.ts +0 -1
  8. package/build/cjs/src/ecom-v1-order.meta.js +1 -20
  9. package/build/cjs/src/ecom-v1-order.meta.js.map +1 -1
  10. package/build/cjs/src/ecom-v1-order.public.d.ts +57 -4
  11. package/build/cjs/src/ecom-v1-order.public.js +2 -7
  12. package/build/cjs/src/ecom-v1-order.public.js.map +1 -1
  13. package/build/cjs/src/ecom-v1-order.types.d.ts +163 -548
  14. package/build/cjs/src/ecom-v1-order.types.js +11 -1
  15. package/build/cjs/src/ecom-v1-order.types.js.map +1 -1
  16. package/build/cjs/src/ecom-v1-order.universal.d.ts +174 -312
  17. package/build/cjs/src/ecom-v1-order.universal.js +12 -86
  18. package/build/cjs/src/ecom-v1-order.universal.js.map +1 -1
  19. package/build/es/src/ecom-v1-order.context.d.ts +1 -2
  20. package/build/es/src/ecom-v1-order.context.js +1 -11
  21. package/build/es/src/ecom-v1-order.context.js.map +1 -1
  22. package/build/es/src/ecom-v1-order.http.d.ts +1 -2
  23. package/build/es/src/ecom-v1-order.http.js +0 -87
  24. package/build/es/src/ecom-v1-order.http.js.map +1 -1
  25. package/build/es/src/ecom-v1-order.meta.d.ts +0 -1
  26. package/build/es/src/ecom-v1-order.meta.js +0 -18
  27. package/build/es/src/ecom-v1-order.meta.js.map +1 -1
  28. package/build/es/src/ecom-v1-order.public.d.ts +57 -4
  29. package/build/es/src/ecom-v1-order.public.js +2 -7
  30. package/build/es/src/ecom-v1-order.public.js.map +1 -1
  31. package/build/es/src/ecom-v1-order.types.d.ts +163 -548
  32. package/build/es/src/ecom-v1-order.types.js +10 -0
  33. package/build/es/src/ecom-v1-order.types.js.map +1 -1
  34. package/build/es/src/ecom-v1-order.universal.d.ts +174 -312
  35. package/build/es/src/ecom-v1-order.universal.js +11 -84
  36. package/build/es/src/ecom-v1-order.universal.js.map +1 -1
  37. package/package.json +2 -2
@@ -102,6 +102,11 @@ export interface Order {
102
102
  checkoutId?: string | null;
103
103
  /** Custom fields. */
104
104
  customFields?: CustomField[];
105
+ /**
106
+ * Order balance summary.
107
+ * @readonly
108
+ */
109
+ balanceSummary?: BalanceSummary;
105
110
  /** Additional fees applied to the order. */
106
111
  additionalFees?: AdditionalFee[];
107
112
  /**
@@ -158,6 +163,11 @@ export interface OrderLineItem {
158
163
  * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).
159
164
  */
160
165
  fulfillerId?: string | null;
166
+ /**
167
+ * Number of items that was already refunded
168
+ * @readonly
169
+ */
170
+ refundQuantity?: number | null;
161
171
  /**
162
172
  * quantity of inventory requested to be returned. Whether to restock or ignore the request is up the vertical.
163
173
  * @readonly
@@ -199,6 +209,8 @@ export interface OrderLineItem {
199
209
  * @readonly
200
210
  */
201
211
  depositAmount?: Price;
212
+ /** Total price **after** catalog-defined discount and line item discounts. */
213
+ lineItemPrice?: Price;
202
214
  }
203
215
  export interface ProductName {
204
216
  /**
@@ -403,6 +415,8 @@ export interface SubscriptionInfo {
403
415
  export interface SubscriptionSettings {
404
416
  /** Frequency of recurring payment. */
405
417
  frequency?: SubscriptionFrequency;
418
+ /** Interval of recurring payment */
419
+ interval?: number | null;
406
420
  /** Whether subscription is renewed automatically at the end of each period. */
407
421
  autoRenewal?: boolean;
408
422
  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */
@@ -698,6 +712,39 @@ export interface TaxSummary {
698
712
  */
699
713
  totalTax?: Price;
700
714
  }
715
+ export interface OrderTaxInfo {
716
+ /** Calculated tax, added from line items. */
717
+ totalTax?: Price;
718
+ /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */
719
+ taxBreakdown?: OrderTaxBreakdown[];
720
+ }
721
+ /**
722
+ * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
723
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
724
+ */
725
+ export interface OrderTaxBreakdown {
726
+ /** The name of the tax against which this tax amount was calculated. */
727
+ taxName?: string;
728
+ /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
729
+ taxType?: string;
730
+ /** The name of the jurisdiction in which this tax detail applies. */
731
+ jurisdiction?: string;
732
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
733
+ jurisdictionType?: JurisdictionType;
734
+ /** The rate at which this tax detail was calculated. */
735
+ rate?: string;
736
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
737
+ aggregatedTaxAmount?: Price;
738
+ }
739
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
740
+ export declare enum JurisdictionType {
741
+ UNDEFINED = "UNDEFINED",
742
+ COUNTRY = "COUNTRY",
743
+ STATE = "STATE",
744
+ COUNTY = "COUNTY",
745
+ CITY = "CITY",
746
+ SPECIAL = "SPECIAL"
747
+ }
701
748
  export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
702
749
  /** Applied coupon info. */
703
750
  coupon?: Coupon;
@@ -1052,6 +1099,17 @@ export interface BalanceSummary {
1052
1099
  * @readonly
1053
1100
  */
1054
1101
  balance?: Balance;
1102
+ /**
1103
+ * Sum of all historically approved (succeeded) payments
1104
+ * including those which had been subsequently refunded or partially refunded
1105
+ * @readonly
1106
+ */
1107
+ paid?: Price;
1108
+ /**
1109
+ * Sum of all refunded payments ( with status success )
1110
+ * @readonly
1111
+ */
1112
+ refunded?: Price;
1055
1113
  }
1056
1114
  /**
1057
1115
  * Order balance. Reflects amount left to be paid on order and is calculated dynamically. Can be negative per balance definition.
@@ -2468,7 +2526,7 @@ export interface UpdateOrderResponse {
2468
2526
  }
2469
2527
  export interface BulkUpdateOrderRequest {
2470
2528
  /** Orders to be updated. */
2471
- orders: MaskedOrder[];
2529
+ orders?: MaskedOrder[];
2472
2530
  /** Set to `true` if you wish to receive back the updated orders in the response */
2473
2531
  returnEntity?: boolean;
2474
2532
  }
@@ -2477,7 +2535,9 @@ export interface MaskedOrder {
2477
2535
  order?: Order;
2478
2536
  }
2479
2537
  export interface BulkUpdateOrderResponse {
2538
+ /** Bulk action results. */
2480
2539
  results?: BulkOrderResult[];
2540
+ /** Bulk action metadata. */
2481
2541
  bulkActionMetadata?: BulkActionMetadata;
2482
2542
  }
2483
2543
  export interface CommitDeltasRequest {
@@ -2590,6 +2650,8 @@ export interface OrderLineItemChangedDetails {
2590
2650
  taxDetails?: ItemTaxFullDetails;
2591
2651
  /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
2592
2652
  priceDescription?: PriceDescription;
2653
+ /** Total price **after** catalog-defined discount and line item discounts. */
2654
+ lineItemPrice?: Price;
2593
2655
  /** Total price after all discounts excluding tax. */
2594
2656
  totalPriceBeforeTax?: Price;
2595
2657
  }
@@ -3275,6 +3337,21 @@ export interface RestockItem {
3275
3337
  /** Line item quantity being restocked. */
3276
3338
  quantity?: number;
3277
3339
  }
3340
+ export interface BulkUpdateOrderTagsRequest {
3341
+ /** IDs of orders to update tags for. */
3342
+ orderIds?: string[];
3343
+ /** Tags to be added to orders */
3344
+ assignTags?: Tags;
3345
+ /** Tags to be removed from orders */
3346
+ unassignTags?: Tags;
3347
+ }
3348
+ export interface BulkUpdateOrderTagsResponse {
3349
+ results?: BulkUpdateOrderTagsResult[];
3350
+ bulkActionMetadata?: BulkActionMetadata;
3351
+ }
3352
+ export interface BulkUpdateOrderTagsResult {
3353
+ itemMetadata?: ItemMetadata;
3354
+ }
3278
3355
  /** Triggered when the the order status changes to approved */
3279
3356
  export interface OrderApproved {
3280
3357
  /** The order that was updated */
@@ -3911,6 +3988,23 @@ export interface GetOrderResponseNonNullableFields {
3911
3988
  formattedAmount: string;
3912
3989
  };
3913
3990
  };
3991
+ taxInfo?: {
3992
+ totalTax?: {
3993
+ amount: string;
3994
+ formattedAmount: string;
3995
+ };
3996
+ taxBreakdown: {
3997
+ taxName: string;
3998
+ taxType: string;
3999
+ jurisdiction: string;
4000
+ jurisdictionType: JurisdictionType;
4001
+ rate: string;
4002
+ aggregatedTaxAmount?: {
4003
+ amount: string;
4004
+ formattedAmount: string;
4005
+ };
4006
+ }[];
4007
+ };
3914
4008
  appliedDiscounts: {
3915
4009
  coupon?: {
3916
4010
  id: string;
@@ -4443,6 +4537,23 @@ export interface SearchOrdersResponseNonNullableFields {
4443
4537
  formattedAmount: string;
4444
4538
  };
4445
4539
  };
4540
+ taxInfo?: {
4541
+ totalTax?: {
4542
+ amount: string;
4543
+ formattedAmount: string;
4544
+ };
4545
+ taxBreakdown: {
4546
+ taxName: string;
4547
+ taxType: string;
4548
+ jurisdiction: string;
4549
+ jurisdictionType: JurisdictionType;
4550
+ rate: string;
4551
+ aggregatedTaxAmount?: {
4552
+ amount: string;
4553
+ formattedAmount: string;
4554
+ };
4555
+ }[];
4556
+ };
4446
4557
  appliedDiscounts: {
4447
4558
  coupon?: {
4448
4559
  id: string;
@@ -4975,6 +5086,23 @@ export interface CreateOrderResponseNonNullableFields {
4975
5086
  formattedAmount: string;
4976
5087
  };
4977
5088
  };
5089
+ taxInfo?: {
5090
+ totalTax?: {
5091
+ amount: string;
5092
+ formattedAmount: string;
5093
+ };
5094
+ taxBreakdown: {
5095
+ taxName: string;
5096
+ taxType: string;
5097
+ jurisdiction: string;
5098
+ jurisdictionType: JurisdictionType;
5099
+ rate: string;
5100
+ aggregatedTaxAmount?: {
5101
+ amount: string;
5102
+ formattedAmount: string;
5103
+ };
5104
+ }[];
5105
+ };
4978
5106
  appliedDiscounts: {
4979
5107
  coupon?: {
4980
5108
  id: string;
@@ -5507,6 +5635,23 @@ export interface UpdateOrderResponseNonNullableFields {
5507
5635
  formattedAmount: string;
5508
5636
  };
5509
5637
  };
5638
+ taxInfo?: {
5639
+ totalTax?: {
5640
+ amount: string;
5641
+ formattedAmount: string;
5642
+ };
5643
+ taxBreakdown: {
5644
+ taxName: string;
5645
+ taxType: string;
5646
+ jurisdiction: string;
5647
+ jurisdictionType: JurisdictionType;
5648
+ rate: string;
5649
+ aggregatedTaxAmount?: {
5650
+ amount: string;
5651
+ formattedAmount: string;
5652
+ };
5653
+ }[];
5654
+ };
5510
5655
  appliedDiscounts: {
5511
5656
  coupon?: {
5512
5657
  id: string;
@@ -5811,553 +5956,6 @@ export interface UpdateOrderResponseNonNullableFields {
5811
5956
  };
5812
5957
  };
5813
5958
  }
5814
- export interface BulkUpdateOrderResponseNonNullableFields {
5815
- results: {
5816
- itemMetadata?: {
5817
- originalIndex: number;
5818
- success: boolean;
5819
- error?: {
5820
- code: string;
5821
- description: string;
5822
- };
5823
- };
5824
- item?: {
5825
- number: string;
5826
- lineItems: {
5827
- id: string;
5828
- productName?: {
5829
- original: string;
5830
- };
5831
- catalogReference?: {
5832
- catalogItemId: string;
5833
- appId: string;
5834
- };
5835
- quantity: number;
5836
- totalDiscount?: {
5837
- amount: string;
5838
- formattedAmount: string;
5839
- };
5840
- descriptionLines: {
5841
- plainText?: {
5842
- original: string;
5843
- };
5844
- colorInfo?: {
5845
- original: string;
5846
- };
5847
- plainTextValue?: {
5848
- original: string;
5849
- };
5850
- color: string;
5851
- name?: {
5852
- original: string;
5853
- };
5854
- lineType: DescriptionLineType;
5855
- }[];
5856
- image?: {
5857
- id: string;
5858
- url: string;
5859
- height: number;
5860
- width: number;
5861
- };
5862
- physicalProperties?: {
5863
- shippable: boolean;
5864
- };
5865
- itemType?: {
5866
- preset: ItemTypeItemType;
5867
- custom: string;
5868
- };
5869
- price?: {
5870
- amount: string;
5871
- formattedAmount: string;
5872
- };
5873
- priceBeforeDiscounts?: {
5874
- amount: string;
5875
- formattedAmount: string;
5876
- };
5877
- totalPriceBeforeTax?: {
5878
- amount: string;
5879
- formattedAmount: string;
5880
- };
5881
- totalPriceAfterTax?: {
5882
- amount: string;
5883
- formattedAmount: string;
5884
- };
5885
- paymentOption: PaymentOptionType;
5886
- taxDetails?: {
5887
- taxableAmount?: {
5888
- amount: string;
5889
- formattedAmount: string;
5890
- };
5891
- taxRate: string;
5892
- totalTax?: {
5893
- amount: string;
5894
- formattedAmount: string;
5895
- };
5896
- };
5897
- digitalFile?: {
5898
- fileId: string;
5899
- };
5900
- subscriptionInfo?: {
5901
- cycleNumber: number;
5902
- subscriptionOptionTitle: string;
5903
- subscriptionSettings?: {
5904
- frequency: SubscriptionFrequency;
5905
- autoRenewal: boolean;
5906
- };
5907
- };
5908
- priceDescription?: {
5909
- original: string;
5910
- };
5911
- depositAmount?: {
5912
- amount: string;
5913
- formattedAmount: string;
5914
- };
5915
- locations: {
5916
- id: string;
5917
- quantity: number;
5918
- }[];
5919
- lineItemPrice?: {
5920
- amount: string;
5921
- formattedAmount: string;
5922
- };
5923
- }[];
5924
- buyerInfo?: {
5925
- visitorId: string;
5926
- memberId: string;
5927
- };
5928
- paymentStatus: PaymentStatus;
5929
- fulfillmentStatus: FulfillmentStatus;
5930
- weightUnit: WeightUnit;
5931
- taxIncludedInPrices: boolean;
5932
- priceSummary?: {
5933
- subtotal?: {
5934
- amount: string;
5935
- formattedAmount: string;
5936
- };
5937
- shipping?: {
5938
- amount: string;
5939
- formattedAmount: string;
5940
- };
5941
- tax?: {
5942
- amount: string;
5943
- formattedAmount: string;
5944
- };
5945
- discount?: {
5946
- amount: string;
5947
- formattedAmount: string;
5948
- };
5949
- totalPrice?: {
5950
- amount: string;
5951
- formattedAmount: string;
5952
- };
5953
- total?: {
5954
- amount: string;
5955
- formattedAmount: string;
5956
- };
5957
- totalWithGiftCard?: {
5958
- amount: string;
5959
- formattedAmount: string;
5960
- };
5961
- totalWithoutGiftCard?: {
5962
- amount: string;
5963
- formattedAmount: string;
5964
- };
5965
- totalAdditionalFees?: {
5966
- amount: string;
5967
- formattedAmount: string;
5968
- };
5969
- };
5970
- billingInfo?: {
5971
- address?: {
5972
- streetAddress?: {
5973
- number: string;
5974
- name: string;
5975
- apt: string;
5976
- };
5977
- };
5978
- contactDetails?: {
5979
- vatId?: {
5980
- id: string;
5981
- type: VatType;
5982
- };
5983
- };
5984
- };
5985
- shippingInfo?: {
5986
- title: string;
5987
- logistics?: {
5988
- shippingDestination?: {
5989
- address?: {
5990
- streetAddress?: {
5991
- number: string;
5992
- name: string;
5993
- apt: string;
5994
- };
5995
- };
5996
- contactDetails?: {
5997
- vatId?: {
5998
- id: string;
5999
- type: VatType;
6000
- };
6001
- };
6002
- };
6003
- pickupDetails?: {
6004
- address?: {
6005
- streetAddress?: {
6006
- number: string;
6007
- name: string;
6008
- apt: string;
6009
- };
6010
- };
6011
- pickupMethod: PickupMethod;
6012
- };
6013
- };
6014
- cost?: {
6015
- price?: {
6016
- amount: string;
6017
- formattedAmount: string;
6018
- };
6019
- totalPriceBeforeTax?: {
6020
- amount: string;
6021
- formattedAmount: string;
6022
- };
6023
- totalPriceAfterTax?: {
6024
- amount: string;
6025
- formattedAmount: string;
6026
- };
6027
- taxDetails?: {
6028
- taxableAmount?: {
6029
- amount: string;
6030
- formattedAmount: string;
6031
- };
6032
- taxRate: string;
6033
- totalTax?: {
6034
- amount: string;
6035
- formattedAmount: string;
6036
- };
6037
- };
6038
- discount?: {
6039
- amount: string;
6040
- formattedAmount: string;
6041
- };
6042
- };
6043
- };
6044
- status: OrderStatus;
6045
- taxSummary?: {
6046
- totalTax?: {
6047
- amount: string;
6048
- formattedAmount: string;
6049
- };
6050
- };
6051
- appliedDiscounts: {
6052
- coupon?: {
6053
- id: string;
6054
- code: string;
6055
- name: string;
6056
- amount?: {
6057
- amount: string;
6058
- formattedAmount: string;
6059
- };
6060
- };
6061
- merchantDiscount?: {
6062
- discountReason: DiscountReason;
6063
- amount?: {
6064
- amount: string;
6065
- formattedAmount: string;
6066
- };
6067
- };
6068
- discountRule?: {
6069
- id: string;
6070
- name?: {
6071
- original: string;
6072
- };
6073
- amount?: {
6074
- amount: string;
6075
- formattedAmount: string;
6076
- };
6077
- };
6078
- discountType: DiscountType;
6079
- lineItemIds: string[];
6080
- }[];
6081
- activities: {
6082
- customActivity?: {
6083
- appId: string;
6084
- type: string;
6085
- };
6086
- merchantComment?: {
6087
- message: string;
6088
- };
6089
- orderRefunded?: {
6090
- manual: boolean;
6091
- amount?: {
6092
- amount: string;
6093
- formattedAmount: string;
6094
- };
6095
- reason: string;
6096
- };
6097
- orderCreatedFromExchange?: {
6098
- originalOrderId: string;
6099
- };
6100
- newExchangeOrderCreated?: {
6101
- exchangeOrderId: string;
6102
- lineItems: {
6103
- lineItemId: string;
6104
- quantity: number;
6105
- }[];
6106
- };
6107
- draftOrderChangesApplied?: {
6108
- draftOrderId: string;
6109
- changes: {
6110
- lineItemChanged?: {
6111
- id: string;
6112
- name?: {
6113
- original: string;
6114
- };
6115
- quantity?: {
6116
- originalQuantity: number;
6117
- newQuantity: number;
6118
- diff: number;
6119
- deltaType: LineItemQuantityChangeType;
6120
- };
6121
- price?: {
6122
- originalPrice?: {
6123
- amount: string;
6124
- formattedAmount: string;
6125
- };
6126
- newPrice?: {
6127
- amount: string;
6128
- formattedAmount: string;
6129
- };
6130
- };
6131
- };
6132
- lineItemAdded?: {
6133
- id: string;
6134
- name?: {
6135
- original: string;
6136
- };
6137
- quantity: number;
6138
- };
6139
- lineItemRemoved?: {
6140
- id: string;
6141
- name?: {
6142
- original: string;
6143
- };
6144
- quantity: number;
6145
- };
6146
- discountAdded?: {
6147
- id: string;
6148
- name?: {
6149
- original: string;
6150
- };
6151
- affectedLineItems: {
6152
- id: string;
6153
- name?: {
6154
- original: string;
6155
- };
6156
- amount?: {
6157
- amount: string;
6158
- formattedAmount: string;
6159
- };
6160
- }[];
6161
- totalAmount?: {
6162
- amount: string;
6163
- formattedAmount: string;
6164
- };
6165
- };
6166
- discountRemoved?: {
6167
- id: string;
6168
- name?: {
6169
- original: string;
6170
- };
6171
- affectedLineItems: {
6172
- id: string;
6173
- name?: {
6174
- original: string;
6175
- };
6176
- amount?: {
6177
- amount: string;
6178
- formattedAmount: string;
6179
- };
6180
- }[];
6181
- totalAmount?: {
6182
- amount: string;
6183
- formattedAmount: string;
6184
- };
6185
- };
6186
- additionalFeeAdded?: {
6187
- id: string;
6188
- name?: {
6189
- original: string;
6190
- };
6191
- affectedLineItems: {
6192
- id: string;
6193
- name?: {
6194
- original: string;
6195
- };
6196
- amount?: {
6197
- amount: string;
6198
- formattedAmount: string;
6199
- };
6200
- }[];
6201
- totalAmount?: {
6202
- amount: string;
6203
- formattedAmount: string;
6204
- };
6205
- };
6206
- additionalFeeRemoved?: {
6207
- id: string;
6208
- name?: {
6209
- original: string;
6210
- };
6211
- affectedLineItems: {
6212
- id: string;
6213
- name?: {
6214
- original: string;
6215
- };
6216
- amount?: {
6217
- amount: string;
6218
- formattedAmount: string;
6219
- };
6220
- }[];
6221
- totalAmount?: {
6222
- amount: string;
6223
- formattedAmount: string;
6224
- };
6225
- };
6226
- totalPriceChanged?: {
6227
- originalTotal?: {
6228
- amount: string;
6229
- formattedAmount: string;
6230
- };
6231
- newTotal?: {
6232
- amount: string;
6233
- formattedAmount: string;
6234
- };
6235
- };
6236
- }[];
6237
- };
6238
- type: ActivityType;
6239
- }[];
6240
- attributionSource: AttributionSource;
6241
- createdBy?: {
6242
- userId: string;
6243
- memberId: string;
6244
- visitorId: string;
6245
- appId: string;
6246
- };
6247
- channelInfo?: {
6248
- type: ChannelType;
6249
- };
6250
- customFields: {
6251
- title: string;
6252
- }[];
6253
- isInternalOrderCreate: boolean;
6254
- payNow?: {
6255
- subtotal?: {
6256
- amount: string;
6257
- formattedAmount: string;
6258
- };
6259
- shipping?: {
6260
- amount: string;
6261
- formattedAmount: string;
6262
- };
6263
- tax?: {
6264
- amount: string;
6265
- formattedAmount: string;
6266
- };
6267
- discount?: {
6268
- amount: string;
6269
- formattedAmount: string;
6270
- };
6271
- totalPrice?: {
6272
- amount: string;
6273
- formattedAmount: string;
6274
- };
6275
- total?: {
6276
- amount: string;
6277
- formattedAmount: string;
6278
- };
6279
- totalWithGiftCard?: {
6280
- amount: string;
6281
- formattedAmount: string;
6282
- };
6283
- totalWithoutGiftCard?: {
6284
- amount: string;
6285
- formattedAmount: string;
6286
- };
6287
- totalAdditionalFees?: {
6288
- amount: string;
6289
- formattedAmount: string;
6290
- };
6291
- };
6292
- balanceSummary?: {
6293
- balance?: {
6294
- amount: string;
6295
- formattedAmount: string;
6296
- };
6297
- paid?: {
6298
- amount: string;
6299
- formattedAmount: string;
6300
- };
6301
- refunded?: {
6302
- amount: string;
6303
- formattedAmount: string;
6304
- };
6305
- };
6306
- additionalFees: {
6307
- name: string;
6308
- price?: {
6309
- amount: string;
6310
- formattedAmount: string;
6311
- };
6312
- taxDetails?: {
6313
- taxableAmount?: {
6314
- amount: string;
6315
- formattedAmount: string;
6316
- };
6317
- taxRate: string;
6318
- totalTax?: {
6319
- amount: string;
6320
- formattedAmount: string;
6321
- };
6322
- };
6323
- priceBeforeTax?: {
6324
- amount: string;
6325
- formattedAmount: string;
6326
- };
6327
- id: string;
6328
- lineItemIds: string[];
6329
- }[];
6330
- recipientInfo?: {
6331
- address?: {
6332
- streetAddress?: {
6333
- number: string;
6334
- name: string;
6335
- apt: string;
6336
- };
6337
- };
6338
- contactDetails?: {
6339
- vatId?: {
6340
- id: string;
6341
- type: VatType;
6342
- };
6343
- };
6344
- };
6345
- tags?: {
6346
- privateTags?: {
6347
- tagIds: string[];
6348
- };
6349
- tags?: {
6350
- tagIds: string[];
6351
- };
6352
- };
6353
- };
6354
- }[];
6355
- bulkActionMetadata?: {
6356
- totalSuccesses: number;
6357
- totalFailures: number;
6358
- undetailedFailures: number;
6359
- };
6360
- }
6361
5959
  export interface CancelOrderResponseNonNullableFields {
6362
5960
  order?: {
6363
5961
  number: string;
@@ -6586,6 +6184,23 @@ export interface CancelOrderResponseNonNullableFields {
6586
6184
  formattedAmount: string;
6587
6185
  };
6588
6186
  };
6187
+ taxInfo?: {
6188
+ totalTax?: {
6189
+ amount: string;
6190
+ formattedAmount: string;
6191
+ };
6192
+ taxBreakdown: {
6193
+ taxName: string;
6194
+ taxType: string;
6195
+ jurisdiction: string;
6196
+ jurisdictionType: JurisdictionType;
6197
+ rate: string;
6198
+ aggregatedTaxAmount?: {
6199
+ amount: string;
6200
+ formattedAmount: string;
6201
+ };
6202
+ }[];
6203
+ };
6589
6204
  appliedDiscounts: {
6590
6205
  coupon?: {
6591
6206
  id: string;