This repository has been archived by the owner on May 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
model.go
2653 lines (2398 loc) Β· 134 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package shopeego
//=======================================================
// GetShopInfoResponse
//=======================================================
type GetShopInfoResponseShop struct {
// Affiliate shop's id.
AShopID string `json:"a_shopid,omitempty"`
// Affiliate Shop's area.
Country string `json:"country,omitempty"`
}
//=======================================================
// PerformanceResponse
//=======================================================
type PerformanceResponsePerformance struct {
// The threshold used to compare shop's actual performance to the target performance. It has four types: lt(less than), gt(greater than), lte(less than or equal), gte(greater than or equal).
ThresholdType string `json:"threshold_type,omitempty"`
// Null, not applicable.
Unit string `json:"unit,omitempty"`
// Your target performance index.
Target float64 `json:"target,omitempty"`
// Your actual performance index.
My float64 `json:"my,omitempty"`
}
//=======================================================
// GetShopCategoriesResponse
//=======================================================
type GetShopCategoriesResponseCategory struct {
// ShopCategory's unique identifier.
ShopCategoryID int64 `json:"shop_category_id,omitempty"`
// ShopCategory's status. Applicable values: NORMAL, INACTIVE, DELETED.
Status string `json:"status,omitempty"`
// ShopCategory's name.
Name string `json:"name,omitempty"`
// ShopCategory's sort weight.
SortWeight int `json:"sort_weight,omitempty"`
}
//=======================================================
// GetItemsResponse
//=======================================================
type GetItemsResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
}
//=======================================================
// GetCategoriesResponse
//=======================================================
type GetCategoriesResponseCategoryDaysToShipLimits struct {
// The maximum of dtsοΌ-1 means no dts.
MaxLimit int `json:"max_limit,omitempty"`
// The minimum of dts, -1 means no dts.
MinLimit int `json:"min_limit,omitempty"`
}
type GetCategoriesResponseCategory struct {
// The Identify of each category.
CategoryID int64 `json:"category_id,omitempty"`
// The Identify of the parent of the category.
ParentID int64 `json:"parent_id,omitempty"`
// The name of each category.
CategoryName string `json:"category_name,omitempty"`
// This is to indicate whether the category has children. Attributes can ONLY be fetched for the category_id WITHOUT children.
HasChildren bool `json:"has_children,omitempty"`
// The limits of pre-order items' days_to_ship based on per category.
DaysToShipLimits GetCategoriesResponseCategoryDaysToShipLimits `json:"days_to_ship_limits,omitempty"`
}
//=======================================================
// GetAttributesResponse
//=======================================================
type GetAttributesResponseAttributeValue struct {
// Value in original language. It's MANDATORY to use attributes in original_value to add items.
OriginalValue string `json:"original_value,omitempty"`
// Value in translated language. As referrence only, CANNOT be used to add item. If the selected language is not supported in certain shop location, this field will be empty.
TranslateValue string `json:"translate_value,omitempty"`
}
type GetAttributesResponseAttribute struct {
// The Identify of each category.
AttributeID int64 `json:"attribute_id,omitempty"`
// The name of each attribute.
AttributeName string `json:"attribute_name,omitempty"`
// This is to indicate whether this attribute is mandantory.
IsMandatory bool `json:"is_mandatory,omitempty"`
// Enumerated type that defines the type of the attribute. Applicable values: See Data Definition- AttributeType.
AttribuiteType string `json:"attribuite_type,omitempty"`
// Enumerated type that defines the input type of the attribute. Applicable values: See Data Definition- AttributeInputType.
InputType string `json:"input_type,omitempty"`
// All options that attribute contains.
Options []string `json:"options,omitempty"`
// The option values in different language.
Values []GetAttributesResponseAttributeValue `json:"values,omitempty"`
}
//=======================================================
// AddRequest
//=======================================================
type AddRequestVariation struct {
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price. Max Length: 20 letters
Name string `json:"name,omitempty"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// The current price of the variation in the listing currency.
Price float64 `json:"price,omitempty,string"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSku string `json:"variation_sku,omitempty"`
}
type AddRequestImage struct {
// Url of items' image.The system would synchronous download the image one by one.if one of those image can not fetch, would get a warning in result.But can continue the AddItem proccessing.
// if all image failed to fetch, would return an error.
URL string `json:"url,omitempty"`
}
type AddRequestWholesale struct {
// The min count of this tier wholesale. If the wholesale is not the first one, the min count must equal to max count of last tier plus one.
Min int `json:"min,omitempty"`
// The max count of this tier wholesale.
Max int `json:"max,omitempty"`
// The current price of the wholesale in the listing currency. The price must be cheaper than original price. And if the wholesale is not the first one, the price must be cheaper than previous tier.
UnitPrice float64 `json:"unit_price,omitempty,string"`
}
type AddRequestAttribute struct {
// related to shopee.item.GetAttributes result.attributes.attribute_id
AttributesID int64 `json:"attributes_id,omitempty"`
// related to shopee.item.GetAttributes one of result.attributes.options. Max length is 40 letters.
Value string `json:"value,omitempty"`
}
type AddRequestLogistic struct {
// related to shopee.logistics.GetLogistics result.logistics.logistic_id
LogisticID int64 `json:"logistic_id,omitempty"`
// related to shopee.logistics.GetLogistics result.logistics.enabled only affect current item
Enabled bool `json:"enabled,omitempty"`
// Only needed when logistics fee_type = CUSTOM_PRICE.
ShippingFee float64 `json:"shipping_fee,omitempty,string"`
// If specify logistic fee_type is SIZE_SELECTION size_id is required
SizeID int64 `json:"size_id,omitempty"`
// when seller chooses this option, the shipping fee of this channel on item will be set to 0. Default value is False.
IsFree bool `json:"is_free,omitempty"`
}
//=======================================================
// AddResponse
//=======================================================
type AddResponseItemVariation struct {
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// The current price of the variation in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// Enumerated type that defines the current status of the variation. Applicable values: MODEL_NORMAL and MODEL_DELETED.
Status string `json:"status,omitempty"`
// Timestamp that indicates the date and time that the variation was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the variation, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// The original price of the variation in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
// The ID of discount activity the variation is currently in. One variation can only have one discount at a time. discount_id will be 0 if the variation has no discount applied.
DiscountID int64 `json:"discount_id,omitempty"`
}
type AddResponseItemAttribute struct {
// The Identify of each category.
AttributeID int64 `json:"attribute_id,omitempty"`
// The name of each attribute.
AttributeName string `json:"attribute_name,omitempty"`
// This is to indicate whether this attribute is mandantory.
IsMandatory bool `json:"is_mandatory,omitempty"`
// Enumerated type that defines the type of the attribute. Applicable values: See Data Definition- AttributeType.
AttributeType string `json:"attribute_type,omitempty"`
// The value of this item attribute.
AtributeValue string `json:"atribute_value,omitempty"`
}
type AddResponseItemLogistic struct {
// The identity of logistic channel.
LogisticID int64 `json:"logistic_id,omitempty"`
// The name of logistic.
LogisticName string `json:"logistic_name,omitempty"`
// related to shopee.logistics.GetLogistics result.logistics.enabled only affect current item
Enabled bool `json:"enabled,omitempty"`
// Only needed when logistics fee_type = CUSTOM_PRICE.
ShippingFee float64 `json:"shipping_fee,omitempty,string"`
// If specify logistic fee_type is SIZE_SELECTION size_id is required.
SizeID int64 `json:"size_id,omitempty"`
// when seller chooses this option, the shipping fee of this channel on item will be set to 0. Default value is False.
IsFree bool `json:"is_free,omitempty"`
// Estimated shipping fee calculated by weight. Don't exist if channel is no-integrated.
EstimatedShippingFee float64 `json:"estimated_shipping_fee,omitempty,string"`
}
type AddResponseItemWholesale struct {
// The min count of this tier wholesale.
Min int `json:"min,omitempty"`
// The max count of this tier wholesale.
Max int `json:"max,omitempty"`
// The current price of the wholesale in the listing currency.If item is in promotion, this price is useless.
UnitPrice float64 `json:"unit_price,omitempty,string"`
}
type AddResponseItem struct {
// Shopee's unique identifier for a shop.
ShopID int64 `json:"shopid,omitempty"`
// An item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings.
ItemSKU string `json:"item_sku,omitempty"`
// Enumerated type that defines the current status of the item. Applicable values: NORMAL, DELETED, UNLIST and BANNED.
Status string `json:"status,omitempty"`
// Name of the item in local language.
Name string `json:"name,omitempty"`
// Description of the item in local language.
Description string `json:"description,omitempty"`
// Image URLs of the item. It contains at most 9 URLs.
Images []string `json:"images,omitempty"`
// The three-digit code representing the currency unit used for the item in Shopee Listings.
Currency string `json:"currency,omitempty"`
// This is to indicate whether the item has variation(s).
HasVariation bool `json:"has_variation,omitempty"`
// The current price of the item in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the item.
Stock int `json:"stock,omitempty"`
// Timestamp that indicates the date and time that the item was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the item, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// the net weight of this item, the unit is KG.
Weight float64 `json:"weight,omitempty,string"`
// Could call shopee.item.GetCategories to get category detail.Related to result.categories.category_id.
CategoryID int64 `json:"category_id,omitempty"`
// The original price of the item in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
// The variation list of item.
Variations []AddResponseItemVariation `json:"variations,omitempty"`
//
Attributes []AddResponseItemAttribute `json:"attributes,omitempty"`
// The logistics list.
Logistics []AddResponseItemLogistic `json:"logistics,omitempty"`
// The wholesales tier list.
Wholesales []AddResponseItemWholesale `json:"wholesales,omitempty"`
// The sales volume of item.
Sales int `json:"sales,omitempty"`
// The page view of item.
Views int `json:"views,omitempty"`
// The conllection number of item.
Likes int `json:"likes,omitempty"`
// The length of package for this single item, the unit is CM
PackageLength int `json:"package_length,omitempty"`
// The width of package for this single item, the unit is CM
PackageWidth int `json:"package_width,omitempty"`
// The height of package for this single item, the unit is CM
PackageHeight int `json:"package_height,omitempty"`
// The guaranteed days to ship orders. For pre-order, please input value from 7 to 30; for non pre-order, please exclude this field and it will default to the respective standard per your shop location.(e.g. 3 for CrossBorder)
DaysToShip int `json:"days_to_ship,omitempty"`
// The rating star scores of this item.
RatingStar float64 `json:"rating_star,omitempty,string"`
// Count of comments for the item.
CMTCount int `json:"cmt_count,omitempty"`
// This indicates whether the item is secondhand.
Condition string `json:"condition,omitempty"`
// The ID of discount activity the item is currently in. One item can only have one discount at a time. discount_id will be 0 if the item has no discount applied, or item has variation.
DiscountID int64 `json:"discount_id,omitempty"`
// Use this field to identify whether the item is pre-order. Applicable value: true/false.
IsPreOrder bool `json:"is_pre_order,omitempty"`
}
//=======================================================
// UnlistItemRequest
//=======================================================
type UnlistItemRequestItem struct {
// Item's unique identifier.
ItemID int64 `json:"item_id,omitempty"`
// True: unlist this item; False: list this item.
Unlist bool `json:"unlist,omitempty"`
}
//=======================================================
// UnlistItemResponse
//=======================================================
type UnlistItemResponseFailed struct {
// Item's unique identifier.
ItemID int64 `json:"item_id,omitempty"`
// Error message.
ErrorDesciption string `json:"error_desciption,omitempty"`
}
type UnlistItemResponseSuccess struct {
// Item's unique identifier.
ItemID int64 `json:"item_id,omitempty"`
// True: item is unlisted; False: item is listed.
Unlist bool `json:"unlist,omitempty"`
}
//=======================================================
// AddVariationsRequest
//=======================================================
type AddVariationsRequestVariation struct {
// Name of the variation that belongs to the same item.A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// The current price of the variation in the listing currency.
Price float64 `json:"price,omitempty,string"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
}
//=======================================================
// AddVariationsResponse
//=======================================================
type AddVariationsResponseVariation struct {
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// The current price of the variation in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// Enumerated type that defines the current status of the variation. Applicable values: MODEL_NORMAL and MODEL_DELETED.
Status string `json:"status,omitempty"`
// Timestamp that indicates the date and time that the variation was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the variation, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// The original price of the variation in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
}
//=======================================================
// GetItemsListResponse
//=======================================================
type GetItemsListResponseItemVariation struct {
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
type GetItemsListResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// Shopee's unique identifier for a shop.
ShopID int64 `json:"shopid,omitempty"`
// The latest update time of the item.
UpdateTime int `json:"update_time,omitempty"`
// Enumerated type that defines the current status of the item. Applicable values: NORMAL, BANNED and UNLIST.
Status string `json:"status,omitempty"`
// An item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings.
ItemSKU string `json:"item_sku,omitempty"`
// The variation list of item
Variations []GetItemsListResponseItemVariation `json:"variations,omitempty"`
// Whether 2-tier variation structure is activated for this item
Is2TierItem bool `json:"is_2_tier_item,omitempty"`
// Only for TW seller. List of installments
Tenures []int `json:"tenures,omitempty"`
}
//=======================================================
// GetItemDetailResponse
//=======================================================
type GetItemDetailResponseItemVariation struct {
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// The current price of the variation in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// Enumerated type that defines the current status of the variation. Applicable values: MODEL_NORMAL and MODEL_DELETED.
Status string `json:"status,omitempty"`
// Timestamp that indicates the date and time that the variation was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the variation, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// The original price of the variation in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
// The ID of discount activity the variation is currently in. One variation can only have one discount at a time. discount_id will be 0 if the variation has no discount applied.
DiscountID int64 `json:"discount_id,omitempty"`
// Use this field to get the locked stock of variation by promotions.
ReservedStock int64 `json:"reserved_stock,omitempty"`
// Use this field to indicate the after-tax price of variation.
InflatedPrice float64 `json:"inflated_price,omitempty,string"`
// Use this field to indicate the after-tax original price of variation.
InflatedOriginalPrice float64 `json:"inflated_original_price,omitempty,string"`
// The settlement price of SIP item.
SIPItemPrice float64 `json:"sip_item_price,omitempty,string"`
// The strategy of creating sip_item_price. auto: automatically created; manual: manually created.
PriceSource string `json:"price_source,omitempty"`
}
type GetItemDetailResponseItemAttribute struct {
// The Identify of each category
AttributeID int64 `json:"attribute_id,omitempty"`
// The name of each attribute
AttributeName string `json:"attribute_name,omitempty"`
// This is to indicate whether this attribute is mandantory
IsMandatory bool `json:"is_mandatory,omitempty"`
// Enumerated type that defines the type of the attribute. Applicable values: See Data Definition- AttributeType.
AttributeType string `json:"attribute_type,omitempty"`
// The value of this item attribute.
AttributeValue string `json:"attribute_value,omitempty"`
}
type GetItemDetailResponseItemLogistic struct {
// The identity of logistic channel
LogisticID int64 `json:"logistic_id,omitempty"`
// The name of logistic
LogisticName string `json:"logistic_name,omitempty"`
// related to shopee.logistics.GetLogistics result.logistics.enabled only affect current item
Enabled bool `json:"enabled,omitempty"`
// Only needed when logistics fee_type = CUSTOM_PRICE.
ShippingFee float64 `json:"shipping_fee,omitempty,string"`
// If specify logistic fee_type is SIZE_SELECTION size_id is required
SizeID int64 `json:"size_id,omitempty"`
// when seller chooses this option, the shipping fee of this channel on item will be set to 0. Default value is False.
IsFree bool `json:"is_free,omitempty"`
// Estimated shipping fee calculated by weight. Don't exist if channel is no-integrated.
EstimatedShippingFee float64 `json:"estimated_shipping_fee,omitempty,string"`
}
type GetItemDetailResponseItemWholesale struct {
// The min count of this tier wholesale.
Min int `json:"min,omitempty"`
// The max count of this tier wholesale.
Max int `json:"max,omitempty"`
// The current price of the wholesale in the listing currency.If item is in promotion, this price is useless.
UnitPrice float64 `json:"unit_price,omitempty,string"`
}
type GetItemDetailResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// Shopee's unique identifier for a shop.
ShopID int64 `json:"shopid,omitempty"`
// An item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings.
ItemSKU string `json:"item_sku,omitempty"`
// Enumerated type that defines the current status of the item. Applicable values: NORMAL, DELETED, BANNED and UNLIST.
Status string `json:"status,omitempty"`
// Name of the item in local language.
Name string `json:"name,omitempty"`
// Description of the item in local language.
Description string `json:"description,omitempty"`
// Image URLs of the item. It contains at most 9 URLs.
Images []string `json:"images,omitempty"`
// The three-digit code representing the currency unit used for the item in Shopee Listings.
Currency string `json:"currency,omitempty"`
// This is to indicate whether the item has variation(s).
HasVariaion bool `json:"has_variaion,omitempty"`
// The current price of the item in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the item.
Stock int `json:"stock,omitempty"`
// Timestamp that indicates the date and time that the item was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the item, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// the net weight of this item, the unit is KG.
Weight float64 `json:"weight,omitempty,string"`
// Could call shopee.item.GetCategories to get category detail.Related to result.categories.category_id
CategoryID int64 `json:"category_id,omitempty"`
// The original price of the item in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
// The variation list of item
Variations []GetItemDetailResponseItemVariation `json:"variations,omitempty"`
//
Attributes []GetItemDetailResponseItemAttribute `json:"attributes,omitempty"`
// The logistics list.
Logistics []GetItemDetailResponseItemLogistic `json:"logistics,omitempty"`
// The wholesales tier list.
Wholesales []GetItemDetailResponseItemWholesale `json:"wholesales,omitempty"`
// The rating star scores of this item.
RatingStar float64 `json:"rating_star,omitempty,string"`
// Count of comments for the item.
CMTCount int `json:"cmt_count,omitempty"`
// The sales volume of item.
Sales int `json:"sales,omitempty"`
// The page view of item.
Views int `json:"views,omitempty"`
// The conllection number of item.
Likes int `json:"likes,omitempty"`
// The length of package for this single item, the unit is CM
PackageLength float64 `json:"package_length,omitempty,string"`
// The width of package for this single item, the unit is CM
PackageWidth float64 `json:"package_width,omitempty,string"`
// The height of package for this single item, the unit is CM
PackageHeight float64 `json:"package_height,omitempty,string"`
// The days to ship.
DaysToShip int `json:"days_to_ship,omitempty"`
// url of size chart image. Only particular categories support it.
SizeChart string `json:"size_chart,omitempty"`
// This indicates whether the item is secondhand.
Condition string `json:"condition,omitempty"`
// The ID of discount activity the item is currently in. One item can only have one discount at a time. discount_id will be 0 if the item has no discount applied, or item has variation.
DiscountID int64 `json:"discount_id,omitempty"`
// Whether 2-tier variation structure is activated for this item
Is2TierItem bool `json:"is_2_tier_item,omitempty"`
// Only for TW seller. List of installments
Tenures []int `json:"tenures,omitempty"`
// Use this field to get the locked stock of item by promotions.
ReservedStock int `json:"reserved_stock,omitempty"`
// Use this field to identify whether the item is pre-order. Applicable value: true/false.
IsPreOrder bool `json:"is_pre_order,omitempty"`
}
//=======================================================
// UpdateItemRequest
//=======================================================
type UpdateItemRequestVariation struct {
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
}
type UpdateItemRequestAttribute struct {
// related to shopee.item.GetAttributes result.attributes.attribute_id
AttributesID int64 `json:"attributtes_id,omitempty"`
// related to shopee.item.GetAttributes one of result.attributes.options
Value string `json:"value,omitempty"`
}
type UpdateItemRequestWholesale struct {
// The min count of this tier wholesale. If the wholesale is not the first one, the min count must equal to max count of last tier plus one.
Min int `json:"min,omitempty"`
// The max count of this tier wholesale.
Max int `json:"max,omitempty"`
// The current price of the wholesale in the listing currency. The price must be cheaper than original price. And if the wholesale is not the first one, the price must be cheaper than previous tier.'
UnitPrice float64 `json:"unit_price,omitempty,string"`
}
type UpdateItemRequestLogistic struct {
// related to shopee.logistics.GetLogistics result.logistics.logistic_id
LogisticID int64 `json:"logistic_id,omitempty"`
// related to shopee.logistics.GetLogistics result.logistics.enabled only affect current item
Enabled bool `json:"enabled,omitempty"`
// Only needed when logistics fee_type = CUSTOM_PRICE.
ShippingFee float64 `json:"shipping_fee,omitempty,string"`
// If specify logistic fee_type is SIZE_SELECTION size_id is required
SizeID int64 `json:"size_id,omitempty"`
// when seller chooses this option, the shipping fee of this channel on item will be set to 0. Default value is False.
IsFree bool `json:"is_free,omitempty"`
}
//=======================================================
// UpdateItemResponse
//=======================================================
type UpdateItemResponseItemVariation struct {
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// A variation SKU (stock keeping unit) is an identifier defined by a seller. It is only intended for the seller's use. Many sellers assign a SKU to an item of a specific type, size, and color, which are variations of one item in Shopee Listings.
VariationSKU string `json:"variation_sku,omitempty"`
// Name of the variation that belongs to the same item. A seller can offer variations of the same item. For example, the seller could create a fixed-priced listing for a t-shirt design and offer the shirt in different colors and sizes. In this case, each color and size combination is a separate variation. Each variation can have a different quantity and price.
Name string `json:"name,omitempty"`
// The current price of the variation in the listing currency.If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the variation in the listing currency.
Stock int `json:"stock,omitempty"`
// Enumerated type that defines the current status of the variation. Applicable values: MODEL_NORMAL and MODEL_DELETED.
Status string `json:"status,omitempty"`
// Timestamp that indicates the date and time that the variation was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the variation, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// The original price of the variation in the listing currency.
OriginalPirce float64 `json:"original_pirce,omitempty,string"`
// The ID of discount activity the variation is currently in. One variation can only have one discount at a time. discount_id will be 0 if the variation has no discount applied.
DiscountID int64 `json:"discount_id,omitempty"`
}
type UpdateItemResponseItemAttribute struct {
// The Identify of each category
AttributeID int64 `json:"attribute_id,omitempty"`
// The name of each attribute
AttributeName string `json:"attribute_name,omitempty"`
// This is to indicate whether this attribute is mandantory
IsMandatory bool `json:"is_mandatory,omitempty"`
// Enumerated type that defines the type of the attribute. Applicable values: See Data Definition- AttributeType.
AttributeType string `json:"attribute_type,omitempty"`
// The value of this item attribute.
AttribueValue string `json:"attribue_value,omitempty"`
}
type UpdateItemResponseItemLogistic struct {
// The identity of logistic channel
LogisticID int64 `json:"logistic_id,omitempty"`
// The name of logistic
LogisticName string `json:"logistic_name,omitempty"`
// related to shopee.logistics.GetLogistics result.logistics.enabled only affect current item
Enabled bool `json:"enabled,omitempty"`
// Only needed when logistics fee_type = CUSTOM_PRICE.
ShippingFee float64 `json:"shipping_fee,omitempty,string"`
// If specify logistic fee_type is SIZE_SELECTION size_id is required
SizeID int64 `json:"size_id,omitempty"`
// when seller chooses this option, the shipping fee of this channel on item will be set to 0. Default value is False.
IsFree bool `json:"is_free,omitempty"`
// Estimated shipping fee calculated by weight. Don't exist if channel is no-integrated.
EstimatedShippingFee float64 `json:"estimated_shipping_fee,omitempty,string"`
}
type UpdateItemResponseItemWholesale struct {
// The min count of this tier wholesale.
Min int `json:"min,omitempty"`
// The max count of this tier wholesale.
Max int `json:"max,omitempty"`
// The current price of the wholesale in the listing currency.If item is in promotion, this price is useless.
UnitPrice float64 `json:"unit_price,omitempty,string"`
}
type UpdateItemResponseItem struct {
// Shopee's unique identifier for a shop.
ShopID int64 `json:"shopid,omitempty"`
// An item SKU (stock keeping unit) is an identifier defined by a seller, sometimes called parent SKU. Item SKU can be assigned to an item in Shopee Listings.
ItemSKU string `json:"item_sku,omitempty"`
// Enumerated type that defines the current status of the item. Applicable values: NORMAL, DELETED and BANNED.
Status string `json:"status,omitempty"`
// Name of the item in local language.
Name string `json:"name,omitempty"`
// Description of the item in local language.
Description string `json:"description,omitempty"`
// Image URLs of the item. It contains at most 9 URLs.
Images []string `json:"images,omitempty"`
// The three-digit code representing the currency unit used for the item in Shopee Listings.
Currency string `json:"currency,omitempty"`
// This is to indicate whether the item has variation(s).
HasVariation bool `json:"has_variation,omitempty"`
// The current price of the item in the listing currency. If item is in promotion, this value is discount price.
Price float64 `json:"price,omitempty,string"`
// The current stock quantity of the item.
Stock int `json:"stock,omitempty"`
// Timestamp that indicates the date and time that the item was created.
CreateTime int `json:"create_time,omitempty"`
// Timestamp that indicates the last time that there was a change in value of the item, such as price/stock change.
UpdateTime int `json:"update_time,omitempty"`
// the net weight of this item, the unit is KG.
Weight float64 `json:"weight,omitempty,string"`
// Could call shopee.item.GetCategories to get category detail.Related to result.categories.category_id
CategoryID int64 `json:"category_id,omitempty"`
// The original price of the item in the listing currency.
OriginalPrice float64 `json:"original_price,omitempty,string"`
// The variation list of item
Variations []UpdateItemResponseItemVariation `json:"variations,omitempty"`
//
Attritube []UpdateItemResponseItemAttribute `json:"attritube,omitempty"`
// The logistics list.
Logistics []UpdateItemResponseItemLogistic `json:"logistics,omitempty"`
// The wholesales tier list.
Wholesales []UpdateItemResponseItemWholesale `json:"wholesales,omitempty"`
// The rating star scores of this item.
RatingStar float64 `json:"rating_star,omitempty,string"`
// Count of comments for the item.
CMTCount int `json:"cmt_count,omitempty"`
// The sales volume of item.
Sales int `json:"sales,omitempty"`
// The page view of item.
Views int `json:"views,omitempty"`
// The conllection number of item.
Likes int `json:"likes,omitempty"`
// The length of package for this single item, the unit is CM
PackageLength int `json:"package_length,omitempty"`
// The width of package for this single item, the unit is CM
PackageWidth int `json:"package_width,omitempty"`
// The height of package for this single item, the unit is CM
PackageHeight int `json:"package_height,omitempty"`
// The guaranteed days to ship orders. Update value to less than 7 will default the value to the respective standard per your shop location and make this item non pre-order.(e.g. 3 for CrossBorder)
DaysToShip int `json:"days_to_ship,omitempty"`
// This indicates whether the item is secondhand.
Condition string `json:"condition,omitempty"`
// The ID of discount activity the item is currently in. One item can only have one discount at a time. discount_id will be 0 if the item has no discount applied, or item has variation.
DiscountID int64 `json:"discount_id,omitempty"`
// Use this field to identify whether the item is pre-order. Applicable value: true/false.
IsPreOrder bool `json:"is_pre_order,omitempty"`
}
//=======================================================
// UpdatePriceResponse
//=======================================================
type UpdatePriceResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// The time when price of the item is updated.
ModifiedTime int `json:"modified_time,omitempty"`
// Specify the revised price of the item.
Price float64 `json:"price,omitempty,string"`
}
//=======================================================
// UpdateStockResponse
//=======================================================
type UpdateStockResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// The time when price of the item is updated.
ModifiedTime int `json:"modified_time,omitempty"`
// Specify the updated stock quantity.
Stock int `json:"stock,omitempty"`
}
//=======================================================
// UpdateVariationPriceResponse
//=======================================================
type UpdateVariationPriceResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// The time when price of the item is updated.
ModifiedTime int `json:"modified_time,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
// Specify the revised price of one variation of the item.
Price float64 `json:"price,omitempty,string"`
}
//=======================================================
// UpdateVariationStockResponse
//=======================================================
type UpdateVariationStockResponseItem struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// The time when price of the item is updated.
ModifiedTime int `json:"modified_time,omitempty"`
// Specify the updated stock quantity.
Stock int `json:"stock,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
//=======================================================
// UpdatePriceBatchRequest
//=======================================================
type UpdatePriceBatchRequestItem struct {
// Shopee's unique identifier for an item. Please input the item_id of an item to be changed.
ItemID int64 `json:"item_id,omitempty"`
// New price value for this item.
Price int `json:"price,omitempty"`
}
//=======================================================
// UpdatePriceBatchResponse
//=======================================================
type UpdatePriceBatchResponseBatchResultFailure struct {
// Shopee's unique identifier for an item. Indicating items which failed to update.
ItemID int64 `json:"item_id,omitempty"`
// Detailed information for the failed updating.
ErrorDescription string `json:"error_description,omitempty"`
}
type UpdatePriceBatchResponseBatchResult struct {
// List of item_id which have been updated successfully.
Modifications []string `json:"modifications,omitempty"`
// Informations for failed stock updating.
Failures []UpdatePriceBatchResponseBatchResultFailure `json:"failures,omitempty"`
}
//=======================================================
// UpdateStockBatchRequest
//=======================================================
type UpdateStockBatchRequestItem struct {
// Shopee's unique identifier for an item. Please input the item_id of an item to be changed.
ItemID int64 `json:"item_id,omitempty"`
// New stock value for this item.
Stock int `json:"stock,omitempty"`
}
//=======================================================
// UpdateStockBatchResponse
//=======================================================
type UpdateStockBatchResponseBatchResultFailure struct {
// Shopee's unique identifier for an item. Indicating items which failed to update.
ItemID int64 `json:"item_id,omitempty"`
// Detailed information for the failed updating.
ErrorDescription string `json:"error_description,omitempty"`
}
type UpdateStockBatchResponseBatchResult struct {
// List of item_id which have been updated successfully.
Modifications []string `json:"modifications,omitempty"`
// Informations for failed stock updating.
Failures []UpdateStockBatchResponseBatchResultFailure `json:"failures,omitempty"`
}
//=======================================================
// UpdateVariationPriceBatchRequest
//=======================================================
type UpdateVariationPriceBatchRequestVariation struct {
// Shopee's unique identifier for a variation of an item. Please input the variation_id of a variation to be changed. The variation_id and item_id pair must be matched in order to perform the update.
VariationID int64 `json:"variation_id,omitempty"`
// New price value of this variation.
Price int `json:"price,omitempty"`
// Shopee's unique identifier for an item. Please input the item_id of an item to be changed.
ItemID int64 `json:"item_id,omitempty"`
}
//=======================================================
// UpdateVariationPriceBatchResponse
//=======================================================
type UpdateVariationPriceBatchResponseBatchResultFailure struct {
// Shopee's unique identifier for an item. Indicating items which failed to update.
ItemID int64 `json:"item_id,omitempty"`
// Detailed information for the failed updating.
ErrorDescription string `json:"error_description,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
type UpdateVariationPriceBatchResponseBatchResultModification struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
type UpdateVariationPriceBatchResponseBatchResult struct {
// List of item_id which have been updated successfully.
Modifications []UpdateVariationPriceBatchResponseBatchResultModification `json:"modifications,omitempty"`
// Informations for failed stock updating.
Failures []UpdateVariationPriceBatchResponseBatchResultFailure `json:"failures,omitempty"`
}
//=======================================================
// UpdateVariationStockBatchRequest
//=======================================================
type UpdateVariationStockBatchRequestVariation struct {
// Shopee's unique identifier for a variation of an item. Please input the variation_id of a variation to be changed. The variation_id and item_id pair must be matched in order to perform the update.
VariationID int64 `json:"variation_id,omitempty"`
// New stock value of this variation.
Stock int `json:"stock,omitempty"`
// Shopee's unique identifier for an item. Please input the item_id of an item to be changed.
ItemID int64 `json:"item_id,omitempty"`
}
//=======================================================
// UpdateVariationStockBatchResponse
//=======================================================
type UpdateVariationStockBatchResponseBatchResultFailure struct {
// Shopee's unique identifier for an item. Indicating items which failed to update.
ItemID int64 `json:"item_id,omitempty"`
// Detailed information for the failed updating.
ErrorDescription string `json:"error_description,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
type UpdateVariationStockBatchResponseBatchResultModification struct {
// Shopee's unique identifier for an item.
ItemID int64 `json:"item_id,omitempty"`
// Shopee's unique identifier for a variation of an item.
VariationID int64 `json:"variation_id,omitempty"`
}
type UpdateVariationStockBatchResponseBatchResult struct {
// List of item_id which have been updated successfully.
Modifications []UpdateVariationStockBatchResponseBatchResultModification `json:"modifications,omitempty"`
// Informations for failed stock updating.
Failures []UpdateVariationStockBatchResponseBatchResultFailure `json:"failures,omitempty"`
}
//=======================================================
// InitTierVariationRequest
//=======================================================
type InitTierVariationRequestTierVariation struct {
// Tier variation name.
Name string `json:"name,omitempty"`
// Tier variation value options list. Option length should be under 20. Quantity of combinations of all 2 tier options is up to 50.
Options []string `json:"options,omitempty"`
// Tier variation images. Can only be applied for the first level options. Urls sequence match the options sequence and urls number cannot exceed options number.
ImagesURL []string `json:"images_url,omitempty"`
}
type InitTierVariationRequestVariation struct {
// A list of tier variation combination index, which indicates variation's option position in tier_variation['options'] list. e.g. [0,1] means tier variation 1 option 1 and tier variation 2 option 2.
TierIndex []int `json:"tier_index,omitempty"`
// Stock value of this variation item. The original variation stock will be override when calling this API to initialize 2-tier structure for an existed item. 0 stock will make this variation a greyout option for buyer.
Stock int `json:"stock,omitempty"`
// Price value of this variation item. The original variation price will be override when calling this API to initialize 2-tier structure for an existed item.
Price float64 `json:"price,omitempty,string"`
// SKU string of this variation.SKU length should be under 100.
VariationSKU string `json:"variation_sku,omitempty"`
}
//=======================================================
// InitTierVariationResponse
//=======================================================
type InitTierVariationResponseVariation struct {
// A list of tier variation indexes, which indicate variation's options in tier_variation['options'] list.
TierIndex []int `json:"tier_index,omitempty"`
// The identity of the variation.
VariationID int64 `json:"variation_id,omitempty"`
}
//=======================================================
// AddTierVariationRequest
//=======================================================
type AddTierVariationRequestVariation struct {
// A list of tier variation combination index, which indicates variation's option position in tier_variation['options'] list. e.g. [0,1] means tier variation 1 option 1 and tier variation 2 option 2.
TierIndex []int `json:"tier_index,omitempty"`
// Stock value of this variation item. 0 stock will make this variation a greyout option for buyer.
Stock int `json:"stock,omitempty"`
// Price value of this variation item.
Price float64 `json:"price,omitempty,string"`
// SKU string of this variation item.
VariationSKU string `json:"variation_sku,omitempty"`
}
//=======================================================
// AddTierVariationResponse
//=======================================================
type AddTierVariationResponseVariation struct {
// A list of tier variation indexes, which indicate variation's options in tier_variation['options'] list.
TierIndex []int `json:"tier_index,omitempty"`
// The identity of the variation.
VariationID int64 `json:"variation_id,omitempty"`
}
//=======================================================
// GetVariationResponse
//=======================================================
type GetVariationResponseTierVariation struct {
// Tier variation name.
Name string `json:"name,omitempty"`
// Tier variation value options list.
Options []string `json:"options,omitempty"`
// Tier variation images. Can only be applied for the first level options. Urls sequence match the options sequence and urls number cannot exceed options number.
ImagesURL []string `json:"images_url,omitempty"`
}
type GetVariationResponseVariation struct {
// Unique identifier of the variation.
VariationID string `json:"variation_id,omitempty"`
// A list of tier variation combination index, which indicates variation's option position in tier_variation['options'] list. e.g. [0,1] means tier variation 1 option 1 and tier variation 2 option 2.
TierIndex []int `json:"tier_index,omitempty"`
}
//=======================================================
// UpdateTierVariationListRequest
//=======================================================
type UpdateTierVariationListRequestTierVariation struct {
// Tier variation name.
Name string `json:"name,omitempty"`
// Tier variation value options list. Lenght should be under 20. Combinations of 2 level options should be under 50.
Options []string `json:"options,omitempty"`
// Tier variation images. Can only be applied for the first level options. Urls sequence match the options sequence and urls number cannot exceed options number.
ImagesURL []string `json:"images_url,omitempty"`
}
//=======================================================
// UpdateTierVariationIndexRequest
//=======================================================