feed-common 1.77.5 → 1.77.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/constants/profile.constants.d.ts +4 -0
- package/dist/constants/profile.constants.d.ts.map +1 -1
- package/dist/constants/profile.constants.js +28 -0
- package/dist/constants/profile.constants.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/sources/ebay-measurement-units.source.d.ts +5 -0
- package/dist/sources/ebay-measurement-units.source.d.ts.map +1 -0
- package/dist/sources/ebay-measurement-units.source.js +5 -0
- package/dist/sources/ebay-measurement-units.source.js.map +1 -0
- package/dist/sources/ebay-paid-by-cost.source.d.ts +5 -0
- package/dist/sources/ebay-paid-by-cost.source.d.ts.map +1 -0
- package/dist/sources/ebay-paid-by-cost.source.js +5 -0
- package/dist/sources/ebay-paid-by-cost.source.js.map +1 -0
- package/dist/sources/ebay-refund-options.source.d.ts +5 -0
- package/dist/sources/ebay-refund-options.source.d.ts.map +1 -0
- package/dist/sources/ebay-refund-options.source.js +5 -0
- package/dist/sources/ebay-refund-options.source.js.map +1 -0
- package/dist/sources/ebay-returns-accepted.source.d.ts +5 -0
- package/dist/sources/ebay-returns-accepted.source.d.ts.map +1 -0
- package/dist/sources/ebay-returns-accepted.source.js +5 -0
- package/dist/sources/ebay-returns-accepted.source.js.map +1 -0
- package/dist/utils/feed-templates/ebay.template.d.ts.map +1 -1
- package/dist/utils/feed-templates/ebay.template.js +275 -21
- package/dist/utils/feed-templates/ebay.template.js.map +1 -1
- package/dist/utils/profile.d.ts.map +1 -1
- package/dist/utils/profile.js +13 -1
- package/dist/utils/profile.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/profile.constants.ts +28 -0
- package/src/index.ts +5 -0
- package/src/sources/ebay-measurement-units.source.ts +4 -0
- package/src/sources/ebay-paid-by-cost.source.ts +4 -0
- package/src/sources/ebay-refund-options.source.ts +4 -0
- package/src/sources/ebay-returns-accepted.source.ts +4 -0
- package/src/utils/feed-templates/ebay.template.ts +286 -20
- package/src/utils/profile.ts +16 -0
@@ -4,8 +4,12 @@ import { validateIfNoMacro } from './common-schemas.js';
|
|
4
4
|
import {
|
5
5
|
ACTION_ARRAY_FIRST_ITEMS,
|
6
6
|
SOURCE_EBAY_GALLERY_TYPE,
|
7
|
+
SOURCE_EBAY_INTERNATIONAL_REFUND_OPTIONS,
|
8
|
+
SOURCE_EBAY_INTERNATIONAL_RETURNS_ACCEPTED,
|
7
9
|
SOURCE_EBAY_INVENTORY_TRACKING,
|
8
10
|
SOURCE_EBAY_LISTING_TYPE,
|
11
|
+
SOURCE_EBAY_MEASUREMENT_UNITS,
|
12
|
+
SOURCE_EBAY_PAID_BY_COST,
|
9
13
|
SOURCE_EBAY_YES_NO,
|
10
14
|
SOURCE_SHOPIFY_DESCRIPTION_HTML,
|
11
15
|
SOURCE_SHOPIFY_IMAGE,
|
@@ -32,7 +36,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
32
36
|
documentation: 'https://developer.ebay.com/devzone/xml/docs/reference/ebay/AddFixedPriceItem.html',
|
33
37
|
mapping: [
|
34
38
|
{
|
35
|
-
attribute: 'AutoPay',
|
39
|
+
attribute: ' Item.AutoPay',
|
36
40
|
label: 'AutoPay',
|
37
41
|
description: 'Indicates whether the seller requires immediate payment for the item',
|
38
42
|
required: false,
|
@@ -45,7 +49,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
45
49
|
singleChoice: true,
|
46
50
|
},
|
47
51
|
{
|
48
|
-
attribute: 'BestOfferEnabled',
|
52
|
+
attribute: 'Item.BestOfferEnabled',
|
49
53
|
label: 'Best Offer Enabled',
|
50
54
|
description: 'Indicates whether the seller is accepting Best Offers for the item',
|
51
55
|
required: false,
|
@@ -58,7 +62,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
58
62
|
singleChoice: true,
|
59
63
|
},
|
60
64
|
{
|
61
|
-
attribute: 'CategoryMappingAllowed',
|
65
|
+
attribute: 'Item.CategoryMappingAllowed',
|
62
66
|
label: 'Category Mapping Allowed',
|
63
67
|
description:
|
64
68
|
'This boolean field controls whether or not eBay automatically maps outdated Category ID(s) specified in a PrimaryCategory and/or SecondaryCategory container(s) to the updated Category ID(s) no longer exists in the current category structure',
|
@@ -72,7 +76,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
72
76
|
singleChoice: true,
|
73
77
|
},
|
74
78
|
{
|
75
|
-
attribute: 'ConditionID',
|
79
|
+
attribute: 'Item.ConditionID',
|
76
80
|
label: 'Condition',
|
77
81
|
description: 'The condition of the item. For example, New, Used, or Refurbished',
|
78
82
|
required: false,
|
@@ -83,7 +87,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
83
87
|
singleChoice: true,
|
84
88
|
},
|
85
89
|
{
|
86
|
-
attribute: 'Country',
|
90
|
+
attribute: 'Item.Country',
|
87
91
|
label: 'Country',
|
88
92
|
description: 'The country where the item is located',
|
89
93
|
required: true,
|
@@ -95,7 +99,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
95
99
|
singleChoice: true,
|
96
100
|
},
|
97
101
|
{
|
98
|
-
attribute: 'Currency',
|
102
|
+
attribute: 'Item.Currency',
|
99
103
|
label: 'Currency',
|
100
104
|
description: 'The currency of the item price',
|
101
105
|
required: true,
|
@@ -107,7 +111,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
107
111
|
singleChoice: true,
|
108
112
|
},
|
109
113
|
{
|
110
|
-
attribute: 'Description',
|
114
|
+
attribute: 'Item.Description',
|
111
115
|
label: 'Description',
|
112
116
|
description: 'The description of the item',
|
113
117
|
required: true,
|
@@ -119,7 +123,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
119
123
|
singleChoice: true,
|
120
124
|
},
|
121
125
|
{
|
122
|
-
attribute: '
|
126
|
+
attribute: 'Item.DiscountPriceInfo.MinimumAdvertisedPrice', // TODO: check if this is correct
|
123
127
|
label: 'Discount Price',
|
124
128
|
description: 'The discount price of the item',
|
125
129
|
required: false,
|
@@ -131,7 +135,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
131
135
|
singleChoice: true,
|
132
136
|
},
|
133
137
|
{
|
134
|
-
attribute: 'DispatchTimeMax',
|
138
|
+
attribute: 'Item.DispatchTimeMax',
|
135
139
|
label: 'Dispatch Time Max',
|
136
140
|
description:
|
137
141
|
'The maximum number of business days the seller commits to for shipping an item to a buyer after receiving a cleared payment',
|
@@ -144,7 +148,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
144
148
|
singleChoice: true,
|
145
149
|
},
|
146
150
|
{
|
147
|
-
attribute: 'InventoryTrackingMethod',
|
151
|
+
attribute: 'Item.InventoryTrackingMethod',
|
148
152
|
label: 'Inventory Tracking Method',
|
149
153
|
description: 'The method used to track the inventory level of the item',
|
150
154
|
required: false,
|
@@ -163,7 +167,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
163
167
|
// TODO: add compatibility list items
|
164
168
|
// TODO: add item specifics
|
165
169
|
{
|
166
|
-
attribute: 'ListingDuration',
|
170
|
+
attribute: 'Item.ListingDuration',
|
167
171
|
label: 'Listing Duration',
|
168
172
|
description: 'The length of time the listing will be active',
|
169
173
|
required: false,
|
@@ -175,7 +179,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
175
179
|
singleChoice: true,
|
176
180
|
},
|
177
181
|
{
|
178
|
-
attribute: 'ListingType',
|
182
|
+
attribute: 'Item.ListingType',
|
179
183
|
label: 'Listing Type',
|
180
184
|
description: 'The type of listing',
|
181
185
|
required: true,
|
@@ -200,7 +204,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
200
204
|
},
|
201
205
|
// TODO: set PictureSource to Vendor
|
202
206
|
{
|
203
|
-
attribute: 'PictureURL',
|
207
|
+
attribute: 'Item.PictureDetails.PictureURL',
|
204
208
|
label: 'Picture URL',
|
205
209
|
description:
|
206
210
|
'Contains comma separated list of product picture URLs. You can pass in up to 24 picture URLs for each listing. The Gallery image will be the first PictureURL in the list',
|
@@ -217,7 +221,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
217
221
|
singleChoice: true,
|
218
222
|
},
|
219
223
|
{
|
220
|
-
attribute: 'PostalCode',
|
224
|
+
attribute: 'Item.PostalCode',
|
221
225
|
label: 'Postal Code',
|
222
226
|
description: 'The postal code where the item is located',
|
223
227
|
required: false,
|
@@ -228,7 +232,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
228
232
|
singleChoice: true,
|
229
233
|
},
|
230
234
|
{
|
231
|
-
attribute: '
|
235
|
+
attribute: 'Item.PrimaryCategory.CategoryID',
|
232
236
|
label: 'Primary Category',
|
233
237
|
description: 'The primary category of the item',
|
234
238
|
required: true,
|
@@ -240,7 +244,19 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
240
244
|
singleChoice: true,
|
241
245
|
},
|
242
246
|
{
|
243
|
-
attribute: '
|
247
|
+
attribute: 'Item.SecondaryCategory.CategoryID',
|
248
|
+
label: 'Secondary Category',
|
249
|
+
description: 'The secondary category of the item',
|
250
|
+
required: false,
|
251
|
+
type: 'macro-input',
|
252
|
+
defaultValue: '', // TODO: add source
|
253
|
+
rules: { sections: [] },
|
254
|
+
baseMode: true,
|
255
|
+
fixedValue: false,
|
256
|
+
singleChoice: true,
|
257
|
+
},
|
258
|
+
{
|
259
|
+
attribute: 'Item.ProductListingDetails.BrandMPN.Brand',
|
244
260
|
label: 'Brand',
|
245
261
|
description: 'The brand of the item',
|
246
262
|
required: false,
|
@@ -253,7 +269,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
253
269
|
singleChoice: true,
|
254
270
|
},
|
255
271
|
{
|
256
|
-
attribute: 'MPN',
|
272
|
+
attribute: 'Item.ProductListingDetails.BrandMPN.MPN',
|
257
273
|
label: 'MPN',
|
258
274
|
description: 'The Manufacturer Part Number of the item',
|
259
275
|
required: false,
|
@@ -266,7 +282,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
266
282
|
singleChoice: true,
|
267
283
|
},
|
268
284
|
{
|
269
|
-
attribute: 'EAN',
|
285
|
+
attribute: 'Item.ProductListingDetails.EAN',
|
270
286
|
label: 'EAN',
|
271
287
|
description: 'The European Article Number of the item',
|
272
288
|
required: false,
|
@@ -278,7 +294,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
278
294
|
singleChoice: true,
|
279
295
|
},
|
280
296
|
{
|
281
|
-
attribute: 'UPC',
|
297
|
+
attribute: 'Item.ProductListingDetails.UPC',
|
282
298
|
label: 'UPC',
|
283
299
|
description: 'The Universal Product Code of the item',
|
284
300
|
required: false,
|
@@ -290,7 +306,7 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
290
306
|
singleChoice: true,
|
291
307
|
},
|
292
308
|
{
|
293
|
-
attribute: 'Quantity',
|
309
|
+
attribute: 'Item.Quantity',
|
294
310
|
label: 'Quantity',
|
295
311
|
description: 'The number of items available for purchase',
|
296
312
|
required: false,
|
@@ -301,5 +317,255 @@ export const eBayFeedTemplate: XmlFeedTemplateType = {
|
|
301
317
|
fixedValue: false,
|
302
318
|
singleChoice: true,
|
303
319
|
},
|
320
|
+
{
|
321
|
+
attribute: 'Item.QuantityRestrictionPerBuyer.MaximumQuantity',
|
322
|
+
label: 'Maximum Quantity Per Buyer',
|
323
|
+
description: 'The maximum number of items that a buyer can purchase',
|
324
|
+
required: false,
|
325
|
+
type: 'macro-input',
|
326
|
+
defaultValue: '',
|
327
|
+
rules: { sections: [] },
|
328
|
+
baseMode: false,
|
329
|
+
fixedValue: false,
|
330
|
+
singleChoice: true,
|
331
|
+
validator: v => validateIfNoMacro(v, z.coerce.number().gte(0).optional()),
|
332
|
+
},
|
333
|
+
{
|
334
|
+
attribute: 'Item.SellerProfiles.SellerPaymentProfile.PaymentProfileID',
|
335
|
+
label: 'Business Policy Payment Profile',
|
336
|
+
description: 'The payment profile to use for the listing',
|
337
|
+
required: false,
|
338
|
+
type: 'macro-input',
|
339
|
+
defaultValue: '', // TODO: add source
|
340
|
+
rules: { sections: [] },
|
341
|
+
baseMode: false,
|
342
|
+
fixedValue: true,
|
343
|
+
singleChoice: true,
|
344
|
+
},
|
345
|
+
{
|
346
|
+
attribute: 'Item.SellerProfiles.SellerReturnProfile.ReturnProfileID',
|
347
|
+
label: 'Business Policy Return Profile',
|
348
|
+
description: 'The return profile to use for the listing',
|
349
|
+
required: false,
|
350
|
+
type: 'macro-input',
|
351
|
+
defaultValue: '', // TODO: add source
|
352
|
+
rules: { sections: [] },
|
353
|
+
baseMode: false,
|
354
|
+
fixedValue: true,
|
355
|
+
singleChoice: true,
|
356
|
+
},
|
357
|
+
{
|
358
|
+
attribute: 'Item.SellerProfiles.SellerShippingProfile.ShippingProfileID',
|
359
|
+
label: 'Business Policy Shipping Profile',
|
360
|
+
description: 'The shipping profile to use for the listing',
|
361
|
+
required: false,
|
362
|
+
type: 'macro-input',
|
363
|
+
defaultValue: '', // TODO: add source
|
364
|
+
rules: { sections: [] },
|
365
|
+
baseMode: false,
|
366
|
+
fixedValue: true,
|
367
|
+
singleChoice: true,
|
368
|
+
},
|
369
|
+
{
|
370
|
+
attribute: 'Item.ReturnPolicy.InternationalRefundOption',
|
371
|
+
label: 'International Refund Option',
|
372
|
+
description: 'This field indicates how the seller compensates international buyers for returns',
|
373
|
+
required: false,
|
374
|
+
type: 'macro-input',
|
375
|
+
defaultValue: makeMacroString(SOURCE_EBAY_INTERNATIONAL_REFUND_OPTIONS, ['MoneyBack']),
|
376
|
+
rules: { sections: [] },
|
377
|
+
baseMode: false,
|
378
|
+
fixedValue: true,
|
379
|
+
singleChoice: true,
|
380
|
+
},
|
381
|
+
{
|
382
|
+
attribute: 'Item.ReturnPolicy.InternationalReturnsAcceptedOption',
|
383
|
+
label: 'International Returns Accepted Option',
|
384
|
+
description:
|
385
|
+
'The value in this field indicates whether or not the seller accepts returns from international buyers',
|
386
|
+
required: false,
|
387
|
+
type: 'macro-input',
|
388
|
+
defaultValue: makeMacroString(SOURCE_EBAY_INTERNATIONAL_RETURNS_ACCEPTED),
|
389
|
+
rules: { sections: [] },
|
390
|
+
baseMode: false,
|
391
|
+
fixedValue: true,
|
392
|
+
singleChoice: true,
|
393
|
+
},
|
394
|
+
{
|
395
|
+
attribute: 'Item.ReturnPolicy.InternationalReturnsWithinOption',
|
396
|
+
label: 'International Returns Within Option',
|
397
|
+
description:
|
398
|
+
'The value in this field indicates the number of days that an international buyer has to return an item',
|
399
|
+
required: false,
|
400
|
+
type: 'macro-input',
|
401
|
+
defaultValue: '', // TODO: add source
|
402
|
+
rules: { sections: [] },
|
403
|
+
baseMode: false,
|
404
|
+
fixedValue: true,
|
405
|
+
singleChoice: true,
|
406
|
+
},
|
407
|
+
{
|
408
|
+
attribute: 'Item.ReturnPolicy.InternationalShippingCostPaidByOption',
|
409
|
+
label: 'International Shipping Cost Paid By Option',
|
410
|
+
description:
|
411
|
+
'The value in this field indicates whether the buyer or seller is responsible for return shipping costs for international returns',
|
412
|
+
required: false,
|
413
|
+
type: 'macro-input',
|
414
|
+
defaultValue: makeMacroString(SOURCE_EBAY_PAID_BY_COST),
|
415
|
+
rules: { sections: [] },
|
416
|
+
baseMode: false,
|
417
|
+
fixedValue: true,
|
418
|
+
singleChoice: true,
|
419
|
+
},
|
420
|
+
{
|
421
|
+
attribute: 'Item.ReturnPolicy.RefundOption',
|
422
|
+
label: 'Refund Option',
|
423
|
+
description: 'This field indicates how the seller compensates buyers for returns',
|
424
|
+
required: false,
|
425
|
+
type: 'macro-input',
|
426
|
+
defaultValue: makeMacroString(SOURCE_EBAY_INTERNATIONAL_REFUND_OPTIONS, ['MoneyBack']),
|
427
|
+
rules: { sections: [] },
|
428
|
+
baseMode: false,
|
429
|
+
fixedValue: true,
|
430
|
+
singleChoice: true,
|
431
|
+
},
|
432
|
+
{
|
433
|
+
attribute: 'Item.ReturnPolicy.ReturnsAcceptedOption',
|
434
|
+
label: 'Returns Accepted Option',
|
435
|
+
description: 'This field indicates whether or not the seller accepts returns',
|
436
|
+
required: false,
|
437
|
+
type: 'macro-input',
|
438
|
+
defaultValue: makeMacroString(SOURCE_EBAY_INTERNATIONAL_RETURNS_ACCEPTED),
|
439
|
+
rules: { sections: [] },
|
440
|
+
baseMode: false,
|
441
|
+
fixedValue: true,
|
442
|
+
singleChoice: true,
|
443
|
+
},
|
444
|
+
{
|
445
|
+
attribute: 'Item.ReturnPolicy.ReturnsWithinOption',
|
446
|
+
label: 'Returns Within Option',
|
447
|
+
description: 'Specifies the amount of time the buyer has to return an item',
|
448
|
+
required: false,
|
449
|
+
type: 'macro-input',
|
450
|
+
defaultValue: '', // TODO: add source
|
451
|
+
rules: { sections: [] },
|
452
|
+
baseMode: false,
|
453
|
+
fixedValue: true,
|
454
|
+
singleChoice: true,
|
455
|
+
},
|
456
|
+
{
|
457
|
+
attribute: 'Item.ReturnPolicy.ShippingCostPaidByOption',
|
458
|
+
label: 'Shipping Cost Paid By Option',
|
459
|
+
description: 'This option specifies whether the buyer or the seller pays for return shipping charges',
|
460
|
+
required: false,
|
461
|
+
type: 'macro-input',
|
462
|
+
defaultValue: makeMacroString(SOURCE_EBAY_PAID_BY_COST),
|
463
|
+
rules: { sections: [] },
|
464
|
+
baseMode: false,
|
465
|
+
fixedValue: true,
|
466
|
+
singleChoice: true,
|
467
|
+
},
|
468
|
+
{
|
469
|
+
attribute: 'Item.SellerProvidedTitle',
|
470
|
+
label: 'Seller Provided Title',
|
471
|
+
description:
|
472
|
+
"A descriptive free-text title for a US or CA eBay Motors vehicle listing. This title appears below eBay's pre-filled listing title on the View Item page",
|
473
|
+
required: false,
|
474
|
+
type: 'macro-input',
|
475
|
+
defaultValue: '',
|
476
|
+
rules: { sections: [] },
|
477
|
+
baseMode: false,
|
478
|
+
fixedValue: false,
|
479
|
+
singleChoice: false,
|
480
|
+
validator: v => validateIfNoMacro(v, z.string().max(80).optional()),
|
481
|
+
},
|
482
|
+
{
|
483
|
+
attribute: 'Item.ShippingPackageDetails.MeasurementUnit',
|
484
|
+
label: 'Measurement Unit',
|
485
|
+
description:
|
486
|
+
"The unit of measurement used to specify the dimensions of a shipping package. This field is required if the seller is specifying the dimensions of a shipping package in the 'ShippingPackageDetails' container",
|
487
|
+
required: false,
|
488
|
+
type: 'macro-input',
|
489
|
+
defaultValue: makeMacroString(SOURCE_EBAY_MEASUREMENT_UNITS),
|
490
|
+
rules: { sections: [] },
|
491
|
+
baseMode: false,
|
492
|
+
fixedValue: true,
|
493
|
+
singleChoice: true,
|
494
|
+
},
|
495
|
+
{
|
496
|
+
attribute: 'Item.ShippingPackageDetails.PackageDepth',
|
497
|
+
label: 'Package Depth',
|
498
|
+
description: 'Depth of the package, in whole number of inches, needed to ship the item',
|
499
|
+
required: false,
|
500
|
+
type: 'macro-input',
|
501
|
+
defaultValue: '',
|
502
|
+
rules: { sections: [] },
|
503
|
+
baseMode: false,
|
504
|
+
fixedValue: false,
|
505
|
+
singleChoice: true,
|
506
|
+
},
|
507
|
+
{
|
508
|
+
attribute: 'Item.ShippingPackageDetails.PackageLength',
|
509
|
+
label: 'Package Length',
|
510
|
+
description: 'Length of the package, in whole number of inches, needed to ship the item',
|
511
|
+
required: false,
|
512
|
+
type: 'macro-input',
|
513
|
+
defaultValue: '',
|
514
|
+
rules: { sections: [] },
|
515
|
+
baseMode: false,
|
516
|
+
fixedValue: false,
|
517
|
+
singleChoice: true,
|
518
|
+
},
|
519
|
+
{
|
520
|
+
attribute: 'Item.ShippingPackageDetail.PackageWidth',
|
521
|
+
label: 'Package Width',
|
522
|
+
description: 'Width of the package, in whole number of inches, needed to ship the item',
|
523
|
+
required: false,
|
524
|
+
type: 'macro-input',
|
525
|
+
defaultValue: '',
|
526
|
+
rules: { sections: [] },
|
527
|
+
baseMode: false,
|
528
|
+
fixedValue: false,
|
529
|
+
singleChoice: true,
|
530
|
+
},
|
531
|
+
{
|
532
|
+
attribute: 'Item.ShippingPackageDetails.ShippingIrregular',
|
533
|
+
label: 'Shipping Irregular',
|
534
|
+
description:
|
535
|
+
'Whether a package is irregular and therefore cannot go through the stamping machine at the shipping service office and thus requires special or fragile handling. For calculated shipping only',
|
536
|
+
required: false,
|
537
|
+
type: 'macro-input',
|
538
|
+
defaultValue: makeMacroString(SOURCE_EBAY_YES_NO),
|
539
|
+
rules: { sections: [] },
|
540
|
+
baseMode: false,
|
541
|
+
fixedValue: true,
|
542
|
+
singleChoice: true,
|
543
|
+
},
|
544
|
+
{
|
545
|
+
attribute: 'Item.ShippingPackageDetails.WeightMajor',
|
546
|
+
label: 'Weight Major',
|
547
|
+
description:
|
548
|
+
'WeightMajor is used to specify the weight of the package in pounds (in US) or kilograms (all countries that use metric system). The value needs to by rounded up to the nearest whole number',
|
549
|
+
required: false,
|
550
|
+
type: 'macro-input',
|
551
|
+
defaultValue: '',
|
552
|
+
rules: { sections: [] },
|
553
|
+
baseMode: false,
|
554
|
+
fixedValue: false,
|
555
|
+
singleChoice: true,
|
556
|
+
},
|
557
|
+
{
|
558
|
+
attribute: 'Item.ShippingPackageDetails.WeightMinor',
|
559
|
+
label: 'Weight Minor',
|
560
|
+
description:
|
561
|
+
'WeightMinor is used to specify the weight of the package in ounces (in US) or grams (all countries that use metric system). The value needs to by rounded up to the nearest whole number',
|
562
|
+
required: false,
|
563
|
+
type: 'macro-input',
|
564
|
+
defaultValue: '',
|
565
|
+
rules: { sections: [] },
|
566
|
+
baseMode: false,
|
567
|
+
fixedValue: false,
|
568
|
+
singleChoice: true,
|
569
|
+
},
|
304
570
|
],
|
305
571
|
};
|
package/src/utils/profile.ts
CHANGED
@@ -20,8 +20,12 @@ import {
|
|
20
20
|
SOURCE_COUNTRY,
|
21
21
|
SOURCE_CURRENCY,
|
22
22
|
SOURCE_EBAY_GALLERY_TYPE,
|
23
|
+
SOURCE_EBAY_INTERNATIONAL_REFUND_OPTIONS,
|
24
|
+
SOURCE_EBAY_INTERNATIONAL_RETURNS_ACCEPTED,
|
23
25
|
SOURCE_EBAY_INVENTORY_TRACKING,
|
24
26
|
SOURCE_EBAY_LISTING_TYPE,
|
27
|
+
SOURCE_EBAY_MEASUREMENT_UNITS,
|
28
|
+
SOURCE_EBAY_PAID_BY_COST,
|
25
29
|
SOURCE_EBAY_YES_NO,
|
26
30
|
SOURCE_ENERGY_EFFICIENCY,
|
27
31
|
SOURCE_FB_AGE_GROUP,
|
@@ -69,6 +73,10 @@ import { EbayYesNoSource } from '../sources/ebay-yes-no.source.js';
|
|
69
73
|
import { eBayInventoryTrackingSource } from '../sources/ebay-inventory-tracking.source.js';
|
70
74
|
import { EbayListingTypeSource } from '../sources/ebay-listing-type.source.js';
|
71
75
|
import { EbayGalleryTypeSource } from '../sources/ebay-gallery-type.source.js';
|
76
|
+
import { EbayInternationalRefundOptionsSource } from '../sources/ebay-refund-options.source.js';
|
77
|
+
import { EbayInternationalReturnsAcceptedSource } from '../sources/ebay-returns-accepted.source.js';
|
78
|
+
import { EbayPaidByCostSource } from '../sources/ebay-paid-by-cost.source.js';
|
79
|
+
import { EbayMeasurementUnitsSource } from '../sources/ebay-measurement-units.source.js';
|
72
80
|
|
73
81
|
/**
|
74
82
|
* Check for rules duplication
|
@@ -421,6 +429,14 @@ export function resolveSourceValue(source: string): SelectItem[] | null {
|
|
421
429
|
return EbayListingTypeSource;
|
422
430
|
case SOURCE_EBAY_GALLERY_TYPE:
|
423
431
|
return EbayGalleryTypeSource;
|
432
|
+
case SOURCE_EBAY_INTERNATIONAL_REFUND_OPTIONS:
|
433
|
+
return EbayInternationalRefundOptionsSource;
|
434
|
+
case SOURCE_EBAY_INTERNATIONAL_RETURNS_ACCEPTED:
|
435
|
+
return EbayInternationalReturnsAcceptedSource;
|
436
|
+
case SOURCE_EBAY_PAID_BY_COST:
|
437
|
+
return EbayPaidByCostSource;
|
438
|
+
case SOURCE_EBAY_MEASUREMENT_UNITS:
|
439
|
+
return EbayMeasurementUnitsSource;
|
424
440
|
default:
|
425
441
|
return null;
|
426
442
|
}
|