@wix/ecom 1.0.506 → 1.0.507

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 +3 -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 +121 -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 +36 -312
  17. package/build/cjs/src/ecom-v1-order.universal.js +11 -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 +3 -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 +121 -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 +36 -312
  35. package/build/es/src/ecom-v1-order.universal.js +10 -84
  36. package/build/es/src/ecom-v1-order.universal.js.map +1 -1
  37. package/package.json +2 -2
@@ -698,6 +698,39 @@ export interface TaxSummary {
698
698
  */
699
699
  totalTax?: Price;
700
700
  }
701
+ export interface OrderTaxInfo {
702
+ /** Calculated tax, added from line items. */
703
+ totalTax?: Price;
704
+ /** 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. */
705
+ taxBreakdown?: OrderTaxBreakdown[];
706
+ }
707
+ /**
708
+ * 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.
709
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
710
+ */
711
+ export interface OrderTaxBreakdown {
712
+ /** The name of the tax against which this tax amount was calculated. */
713
+ taxName?: string;
714
+ /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
715
+ taxType?: string;
716
+ /** The name of the jurisdiction in which this tax detail applies. */
717
+ jurisdiction?: string;
718
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
719
+ jurisdictionType?: JurisdictionType;
720
+ /** The rate at which this tax detail was calculated. */
721
+ rate?: string;
722
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
723
+ aggregatedTaxAmount?: Price;
724
+ }
725
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
726
+ export declare enum JurisdictionType {
727
+ UNDEFINED = "UNDEFINED",
728
+ COUNTRY = "COUNTRY",
729
+ STATE = "STATE",
730
+ COUNTY = "COUNTY",
731
+ CITY = "CITY",
732
+ SPECIAL = "SPECIAL"
733
+ }
701
734
  export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
702
735
  /** Applied coupon info. */
703
736
  coupon?: Coupon;
@@ -2468,7 +2501,7 @@ export interface UpdateOrderResponse {
2468
2501
  }
2469
2502
  export interface BulkUpdateOrderRequest {
2470
2503
  /** Orders to be updated. */
2471
- orders: MaskedOrder[];
2504
+ orders?: MaskedOrder[];
2472
2505
  /** Set to `true` if you wish to receive back the updated orders in the response */
2473
2506
  returnEntity?: boolean;
2474
2507
  }
@@ -2477,7 +2510,9 @@ export interface MaskedOrder {
2477
2510
  order?: Order;
2478
2511
  }
2479
2512
  export interface BulkUpdateOrderResponse {
2513
+ /** Bulk action results. */
2480
2514
  results?: BulkOrderResult[];
2515
+ /** Bulk action metadata. */
2481
2516
  bulkActionMetadata?: BulkActionMetadata;
2482
2517
  }
2483
2518
  export interface CommitDeltasRequest {
@@ -3911,6 +3946,23 @@ export interface GetOrderResponseNonNullableFields {
3911
3946
  formattedAmount: string;
3912
3947
  };
3913
3948
  };
3949
+ taxInfo?: {
3950
+ totalTax?: {
3951
+ amount: string;
3952
+ formattedAmount: string;
3953
+ };
3954
+ taxBreakdown: {
3955
+ taxName: string;
3956
+ taxType: string;
3957
+ jurisdiction: string;
3958
+ jurisdictionType: JurisdictionType;
3959
+ rate: string;
3960
+ aggregatedTaxAmount?: {
3961
+ amount: string;
3962
+ formattedAmount: string;
3963
+ };
3964
+ }[];
3965
+ };
3914
3966
  appliedDiscounts: {
3915
3967
  coupon?: {
3916
3968
  id: string;
@@ -4443,6 +4495,23 @@ export interface SearchOrdersResponseNonNullableFields {
4443
4495
  formattedAmount: string;
4444
4496
  };
4445
4497
  };
4498
+ taxInfo?: {
4499
+ totalTax?: {
4500
+ amount: string;
4501
+ formattedAmount: string;
4502
+ };
4503
+ taxBreakdown: {
4504
+ taxName: string;
4505
+ taxType: string;
4506
+ jurisdiction: string;
4507
+ jurisdictionType: JurisdictionType;
4508
+ rate: string;
4509
+ aggregatedTaxAmount?: {
4510
+ amount: string;
4511
+ formattedAmount: string;
4512
+ };
4513
+ }[];
4514
+ };
4446
4515
  appliedDiscounts: {
4447
4516
  coupon?: {
4448
4517
  id: string;
@@ -4975,6 +5044,23 @@ export interface CreateOrderResponseNonNullableFields {
4975
5044
  formattedAmount: string;
4976
5045
  };
4977
5046
  };
5047
+ taxInfo?: {
5048
+ totalTax?: {
5049
+ amount: string;
5050
+ formattedAmount: string;
5051
+ };
5052
+ taxBreakdown: {
5053
+ taxName: string;
5054
+ taxType: string;
5055
+ jurisdiction: string;
5056
+ jurisdictionType: JurisdictionType;
5057
+ rate: string;
5058
+ aggregatedTaxAmount?: {
5059
+ amount: string;
5060
+ formattedAmount: string;
5061
+ };
5062
+ }[];
5063
+ };
4978
5064
  appliedDiscounts: {
4979
5065
  coupon?: {
4980
5066
  id: string;
@@ -5507,6 +5593,23 @@ export interface UpdateOrderResponseNonNullableFields {
5507
5593
  formattedAmount: string;
5508
5594
  };
5509
5595
  };
5596
+ taxInfo?: {
5597
+ totalTax?: {
5598
+ amount: string;
5599
+ formattedAmount: string;
5600
+ };
5601
+ taxBreakdown: {
5602
+ taxName: string;
5603
+ taxType: string;
5604
+ jurisdiction: string;
5605
+ jurisdictionType: JurisdictionType;
5606
+ rate: string;
5607
+ aggregatedTaxAmount?: {
5608
+ amount: string;
5609
+ formattedAmount: string;
5610
+ };
5611
+ }[];
5612
+ };
5510
5613
  appliedDiscounts: {
5511
5614
  coupon?: {
5512
5615
  id: string;
@@ -5811,553 +5914,6 @@ export interface UpdateOrderResponseNonNullableFields {
5811
5914
  };
5812
5915
  };
5813
5916
  }
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
5917
  export interface CancelOrderResponseNonNullableFields {
6362
5918
  order?: {
6363
5919
  number: string;
@@ -6586,6 +6142,23 @@ export interface CancelOrderResponseNonNullableFields {
6586
6142
  formattedAmount: string;
6587
6143
  };
6588
6144
  };
6145
+ taxInfo?: {
6146
+ totalTax?: {
6147
+ amount: string;
6148
+ formattedAmount: string;
6149
+ };
6150
+ taxBreakdown: {
6151
+ taxName: string;
6152
+ taxType: string;
6153
+ jurisdiction: string;
6154
+ jurisdictionType: JurisdictionType;
6155
+ rate: string;
6156
+ aggregatedTaxAmount?: {
6157
+ amount: string;
6158
+ formattedAmount: string;
6159
+ };
6160
+ }[];
6161
+ };
6589
6162
  appliedDiscounts: {
6590
6163
  coupon?: {
6591
6164
  id: string;