ebay-api 8.5.1 → 8.6.1
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/README.md +2 -2
- package/dist/api/apiFactory.d.ts +0 -3
- package/dist/api/apiFactory.js +0 -4
- package/dist/api/base.d.ts +0 -3
- package/dist/api/base.js +0 -3
- package/dist/api/digitalSignature.d.ts +0 -33
- package/dist/api/digitalSignature.js +1 -41
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/restful/buy/browse/index.d.ts +0 -66
- package/dist/api/restful/buy/browse/index.js +0 -73
- package/dist/api/restful/buy/deal/index.d.ts +0 -32
- package/dist/api/restful/buy/deal/index.js +0 -32
- package/dist/api/restful/buy/feed/index.d.ts +0 -33
- package/dist/api/restful/buy/feed/index.js +0 -33
- package/dist/api/restful/buy/marketing/index.d.ts +0 -18
- package/dist/api/restful/buy/marketing/index.js +0 -22
- package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/dist/api/restful/buy/offer/index.d.ts +0 -15
- package/dist/api/restful/buy/offer/index.js +0 -15
- package/dist/api/restful/buy/order/index.d.ts +0 -227
- package/dist/api/restful/buy/order/index.js +0 -227
- package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
- package/dist/api/restful/commerce/catalog/index.js +0 -54
- package/dist/api/restful/commerce/charity/index.d.ts +0 -21
- package/dist/api/restful/commerce/charity/index.js +0 -21
- package/dist/api/restful/commerce/identity/index.d.ts +0 -7
- package/dist/api/restful/commerce/identity/index.js +0 -7
- package/dist/api/restful/commerce/notification/index.d.ts +0 -93
- package/dist/api/restful/commerce/notification/index.js +0 -93
- package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/dist/api/restful/commerce/taxonomy/index.js +0 -64
- package/dist/api/restful/commerce/translation/index.d.ts +0 -8
- package/dist/api/restful/commerce/translation/index.js +0 -8
- package/dist/api/restful/developer/analytics/index.d.ts +0 -15
- package/dist/api/restful/developer/analytics/index.js +0 -15
- package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/dist/api/restful/developer/keyManagement/index.js +0 -15
- package/dist/api/restful/index.d.ts +0 -16
- package/dist/api/restful/index.js +1 -23
- package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/dist/api/restful/postOrder/cancellation/index.js +1 -46
- package/dist/api/restful/postOrder/case/index.d.ts +0 -46
- package/dist/api/restful/postOrder/case/index.js +0 -46
- package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/dist/api/restful/postOrder/inquiry/index.js +0 -64
- package/dist/api/restful/postOrder/return/index.d.ts +0 -190
- package/dist/api/restful/postOrder/return/index.js +0 -190
- package/dist/api/restful/sell/account/index.d.ts +0 -241
- package/dist/api/restful/sell/account/index.js +0 -241
- package/dist/api/restful/sell/analytics/index.d.ts +0 -26
- package/dist/api/restful/sell/analytics/index.js +0 -26
- package/dist/api/restful/sell/compliance/index.d.ts +0 -23
- package/dist/api/restful/sell/compliance/index.js +0 -23
- package/dist/api/restful/sell/feed/index.d.ts +0 -135
- package/dist/api/restful/sell/feed/index.js +0 -135
- package/dist/api/restful/sell/finances/index.d.ts +0 -51
- package/dist/api/restful/sell/finances/index.js +0 -51
- package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/dist/api/restful/sell/fulfillment/index.js +0 -108
- package/dist/api/restful/sell/inventory/index.d.ts +0 -197
- package/dist/api/restful/sell/inventory/index.js +0 -197
- package/dist/api/restful/sell/listing/index.d.ts +0 -8
- package/dist/api/restful/sell/listing/index.js +0 -8
- package/dist/api/restful/sell/logistics/index.d.ts +0 -33
- package/dist/api/restful/sell/logistics/index.js +0 -33
- package/dist/api/restful/sell/marketing/index.d.ts +16 -495
- package/dist/api/restful/sell/marketing/index.js +48 -494
- package/dist/api/restful/sell/metadata/index.d.ts +0 -65
- package/dist/api/restful/sell/metadata/index.js +0 -65
- package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
- package/dist/api/restful/sell/negotiation/index.js +0 -14
- package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
- package/dist/api/restful/sell/recommendation/index.js +0 -15
- package/dist/api/traditional/XMLRequest.d.ts +0 -44
- package/dist/api/traditional/XMLRequest.js +0 -46
- package/dist/api/traditional/clientAlerts/index.js +0 -1
- package/dist/api/traditional/index.d.ts +0 -3
- package/dist/api/traditional/index.js +0 -5
- package/dist/api/traditional/shopping/index.js +0 -1
- package/dist/auth/authNAuth.d.ts +0 -5
- package/dist/auth/authNAuth.js +0 -5
- package/dist/auth/index.d.ts +0 -3
- package/dist/auth/index.js +0 -3
- package/dist/auth/oAuth2.d.ts +0 -52
- package/dist/auth/oAuth2.js +0 -53
- package/dist/eBayApi.d.ts +0 -11
- package/dist/eBayApi.js +0 -14
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/enums/restfulEnums.d.ts +0 -5
- package/dist/enums/restfulEnums.js +0 -5
- package/dist/errors/index.d.ts +0 -19
- package/dist/errors/index.js +1 -21
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/dist/types/restful/specs/cancellation_oas3.js +0 -4
- package/dist/types/restful/specs/case_oas3.d.ts +0 -31
- package/dist/types/restful/specs/case_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/dist/types/restful/specs/inquiry_oas3.js +0 -4
- package/dist/types/restful/specs/return_oas3.d.ts +0 -130
- package/dist/types/restful/specs/return_oas3.js +0 -4
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/dist/types/restfulTypes.d.ts +3 -0
- package/lib/api/apiFactory.d.ts +0 -3
- package/lib/api/apiFactory.js +0 -4
- package/lib/api/base.d.ts +0 -3
- package/lib/api/base.js +0 -3
- package/lib/api/digitalSignature.d.ts +0 -33
- package/lib/api/digitalSignature.js +1 -41
- package/lib/api/index.d.ts +0 -3
- package/lib/api/index.js +0 -3
- package/lib/api/restful/buy/browse/index.d.ts +0 -66
- package/lib/api/restful/buy/browse/index.js +0 -73
- package/lib/api/restful/buy/deal/index.d.ts +0 -32
- package/lib/api/restful/buy/deal/index.js +0 -32
- package/lib/api/restful/buy/feed/index.d.ts +0 -33
- package/lib/api/restful/buy/feed/index.js +0 -33
- package/lib/api/restful/buy/marketing/index.d.ts +0 -18
- package/lib/api/restful/buy/marketing/index.js +0 -22
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
- package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
- package/lib/api/restful/buy/offer/index.d.ts +0 -15
- package/lib/api/restful/buy/offer/index.js +0 -15
- package/lib/api/restful/buy/order/index.d.ts +0 -227
- package/lib/api/restful/buy/order/index.js +0 -227
- package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
- package/lib/api/restful/commerce/catalog/index.js +0 -54
- package/lib/api/restful/commerce/charity/index.d.ts +0 -21
- package/lib/api/restful/commerce/charity/index.js +0 -21
- package/lib/api/restful/commerce/identity/index.d.ts +0 -7
- package/lib/api/restful/commerce/identity/index.js +0 -7
- package/lib/api/restful/commerce/notification/index.d.ts +0 -93
- package/lib/api/restful/commerce/notification/index.js +0 -93
- package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
- package/lib/api/restful/commerce/taxonomy/index.js +0 -64
- package/lib/api/restful/commerce/translation/index.d.ts +0 -8
- package/lib/api/restful/commerce/translation/index.js +0 -8
- package/lib/api/restful/developer/analytics/index.d.ts +0 -15
- package/lib/api/restful/developer/analytics/index.js +0 -15
- package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
- package/lib/api/restful/developer/keyManagement/index.js +0 -15
- package/lib/api/restful/index.d.ts +0 -16
- package/lib/api/restful/index.js +1 -23
- package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
- package/lib/api/restful/postOrder/cancellation/index.js +1 -46
- package/lib/api/restful/postOrder/case/index.d.ts +0 -46
- package/lib/api/restful/postOrder/case/index.js +0 -46
- package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
- package/lib/api/restful/postOrder/inquiry/index.js +0 -64
- package/lib/api/restful/postOrder/return/index.d.ts +0 -190
- package/lib/api/restful/postOrder/return/index.js +0 -190
- package/lib/api/restful/sell/account/index.d.ts +0 -241
- package/lib/api/restful/sell/account/index.js +0 -241
- package/lib/api/restful/sell/analytics/index.d.ts +0 -26
- package/lib/api/restful/sell/analytics/index.js +0 -26
- package/lib/api/restful/sell/compliance/index.d.ts +0 -23
- package/lib/api/restful/sell/compliance/index.js +0 -23
- package/lib/api/restful/sell/feed/index.d.ts +0 -135
- package/lib/api/restful/sell/feed/index.js +0 -135
- package/lib/api/restful/sell/finances/index.d.ts +0 -51
- package/lib/api/restful/sell/finances/index.js +0 -51
- package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
- package/lib/api/restful/sell/fulfillment/index.js +0 -108
- package/lib/api/restful/sell/inventory/index.d.ts +0 -197
- package/lib/api/restful/sell/inventory/index.js +0 -197
- package/lib/api/restful/sell/listing/index.d.ts +0 -8
- package/lib/api/restful/sell/listing/index.js +0 -8
- package/lib/api/restful/sell/logistics/index.d.ts +0 -33
- package/lib/api/restful/sell/logistics/index.js +0 -33
- package/lib/api/restful/sell/marketing/index.d.ts +16 -495
- package/lib/api/restful/sell/marketing/index.js +48 -494
- package/lib/api/restful/sell/metadata/index.d.ts +0 -65
- package/lib/api/restful/sell/metadata/index.js +0 -65
- package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
- package/lib/api/restful/sell/negotiation/index.js +0 -14
- package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
- package/lib/api/restful/sell/recommendation/index.js +0 -15
- package/lib/api/traditional/XMLRequest.d.ts +0 -44
- package/lib/api/traditional/XMLRequest.js +0 -46
- package/lib/api/traditional/clientAlerts/index.js +0 -1
- package/lib/api/traditional/index.d.ts +0 -3
- package/lib/api/traditional/index.js +0 -5
- package/lib/api/traditional/shopping/index.js +0 -1
- package/lib/auth/authNAuth.d.ts +0 -5
- package/lib/auth/authNAuth.js +0 -5
- package/lib/auth/index.d.ts +0 -3
- package/lib/auth/index.js +0 -3
- package/lib/auth/oAuth2.d.ts +0 -52
- package/lib/auth/oAuth2.js +0 -53
- package/lib/eBayApi.d.ts +0 -11
- package/lib/eBayApi.js +0 -14
- package/lib/ebay-api.min.js +1 -1
- package/lib/enums/restfulEnums.d.ts +0 -5
- package/lib/enums/restfulEnums.js +0 -5
- package/lib/errors/index.d.ts +0 -19
- package/lib/errors/index.js +1 -21
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
- package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
- package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
- package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
- package/lib/types/restful/specs/cancellation_oas3.js +0 -4
- package/lib/types/restful/specs/case_oas3.d.ts +0 -31
- package/lib/types/restful/specs/case_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
- package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
- package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
- package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
- package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
- package/lib/types/restful/specs/inquiry_oas3.js +0 -4
- package/lib/types/restful/specs/return_oas3.d.ts +0 -130
- package/lib/types/restful/specs/return_oas3.js +0 -4
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
- package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
- package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
- package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
- package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
- package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
- package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
- package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
- package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
- package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
- package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
- package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
- package/lib/types/restfulTypes.d.ts +3 -0
- package/package.json +2 -2
|
@@ -4,51 +4,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay
|
|
9
|
-
* marketplace.
|
|
10
|
-
*/
|
|
11
7
|
class Inventory extends index_js_1.default {
|
|
12
8
|
get basePath() {
|
|
13
9
|
return '/sell/inventory/v1';
|
|
14
10
|
}
|
|
15
|
-
/**
|
|
16
|
-
* This call retrieves all defined details of the inventory location that is specified by the
|
|
17
|
-
* <b>merchantLocationKey</b> path parameter.
|
|
18
|
-
*
|
|
19
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
20
|
-
*/
|
|
21
11
|
getInventoryLocation(merchantLocationKey) {
|
|
22
12
|
const key = encodeURIComponent(merchantLocationKey);
|
|
23
13
|
return this.get(`/location/${key}`);
|
|
24
14
|
}
|
|
25
|
-
/**
|
|
26
|
-
* <p>This call disables the inventory location that is specified in the <code>merchantLocationKey</code> path
|
|
27
|
-
* parameter.
|
|
28
|
-
*
|
|
29
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
30
|
-
*/
|
|
31
15
|
disableInventoryLocation(merchantLocationKey) {
|
|
32
16
|
const key = encodeURIComponent(merchantLocationKey);
|
|
33
17
|
return this.post(`/location/${key}/disable`);
|
|
34
18
|
}
|
|
35
|
-
/**
|
|
36
|
-
* <p>This call enables a disabled inventory location that is specified in the <code>merchantLocationKey</code>
|
|
37
|
-
* path parameter.
|
|
38
|
-
*
|
|
39
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
40
|
-
*/
|
|
41
19
|
enableInventoryLocation(merchantLocationKey) {
|
|
42
20
|
const key = encodeURIComponent(merchantLocationKey);
|
|
43
21
|
return this.post(`/location/${key}/enable`);
|
|
44
22
|
}
|
|
45
|
-
/**
|
|
46
|
-
* This call retrieves all defined details for every inventory location associated with the seller's account.
|
|
47
|
-
*
|
|
48
|
-
* @param limit The value passed in this query parameter sets the maximum number of records to return per page of
|
|
49
|
-
* data.
|
|
50
|
-
* @param offset The value passed in this query parameter sets the page number to retrieve.
|
|
51
|
-
*/
|
|
52
23
|
getInventoryLocations({ limit, offset, } = {}) {
|
|
53
24
|
return this.get(`/location`, {
|
|
54
25
|
params: {
|
|
@@ -57,74 +28,30 @@ class Inventory extends index_js_1.default {
|
|
|
57
28
|
},
|
|
58
29
|
});
|
|
59
30
|
}
|
|
60
|
-
/**
|
|
61
|
-
* <p>Use this call to create a new inventory location.
|
|
62
|
-
*
|
|
63
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
64
|
-
* @param body Inventory Location details
|
|
65
|
-
*/
|
|
66
31
|
createInventoryLocation(merchantLocationKey, body) {
|
|
67
32
|
const key = encodeURIComponent(merchantLocationKey);
|
|
68
33
|
return this.post(`/location/${key}`, body);
|
|
69
34
|
}
|
|
70
|
-
/**
|
|
71
|
-
* <p>This call deletes the inventory location that is specified in the <code>merchantLocationKey</code> path
|
|
72
|
-
* parameter.
|
|
73
|
-
*
|
|
74
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
75
|
-
*/
|
|
76
35
|
deleteInventoryLocation(merchantLocationKey) {
|
|
77
36
|
const key = encodeURIComponent(merchantLocationKey);
|
|
78
37
|
return this.delete(`/location/${key}`);
|
|
79
38
|
}
|
|
80
|
-
/**
|
|
81
|
-
* <p>Use this call to update non-physical location details for an existing inventory location.
|
|
82
|
-
*
|
|
83
|
-
* @param merchantLocationKey A unique merchant-defined key (ID) for an inventory location.
|
|
84
|
-
* @param body The inventory location details to be updated (other than the address and geo co-ordinates).
|
|
85
|
-
*/
|
|
86
39
|
updateInventoryLocation(merchantLocationKey, body) {
|
|
87
40
|
const key = encodeURIComponent(merchantLocationKey);
|
|
88
41
|
return this.post(`/location/${key}/update_location_details`, body);
|
|
89
42
|
}
|
|
90
|
-
/**
|
|
91
|
-
* This call retrieves the inventory item record for a given SKU.
|
|
92
|
-
*
|
|
93
|
-
* @param sku his is the seller-defined SKU value of the product whose inventory item record you wish to
|
|
94
|
-
* retrieve.<br/><br/><strong>Max length</strong>: 50.
|
|
95
|
-
*/
|
|
96
43
|
getInventoryItem(sku) {
|
|
97
44
|
sku = encodeURIComponent(sku);
|
|
98
45
|
return this.get(`/inventory_item/${sku}`);
|
|
99
46
|
}
|
|
100
|
-
/**
|
|
101
|
-
* This call creates a new inventory item record or replaces an existing inventory item record.
|
|
102
|
-
*
|
|
103
|
-
* @param sku The seller-defined SKU value for the inventory item is required whether the seller is creating a new
|
|
104
|
-
* inventory item, or updating an existing inventory item.
|
|
105
|
-
* @param body Details of the inventory item record.
|
|
106
|
-
*/
|
|
107
47
|
createOrReplaceInventoryItem(sku, body) {
|
|
108
48
|
sku = encodeURIComponent(sku);
|
|
109
49
|
return this.put(`/inventory_item/${sku}`, body);
|
|
110
50
|
}
|
|
111
|
-
/**
|
|
112
|
-
* This call is used to delete an inventory item record associated with a specified SKU.
|
|
113
|
-
*
|
|
114
|
-
* @param sku The seller-defined SKU value for the inventory item is required whether the seller is creating a new
|
|
115
|
-
* inventory item, or updating an existing inventory item.
|
|
116
|
-
*/
|
|
117
51
|
deleteInventoryItem(sku) {
|
|
118
52
|
sku = encodeURIComponent(sku);
|
|
119
53
|
return this.delete(`/inventory_item/${sku}`);
|
|
120
54
|
}
|
|
121
|
-
/**
|
|
122
|
-
* This call retrieves all inventory item records defined for the seller's account.
|
|
123
|
-
*
|
|
124
|
-
* @param limit The value passed in this query parameter sets the maximum number of records to return per page of
|
|
125
|
-
* data.
|
|
126
|
-
* @param offset The value passed in this query parameter sets the page number to retrieve.
|
|
127
|
-
*/
|
|
128
55
|
getInventoryItems({ limit, offset, } = {}) {
|
|
129
56
|
return this.get(`/inventory_item`, {
|
|
130
57
|
params: {
|
|
@@ -133,72 +60,27 @@ class Inventory extends index_js_1.default {
|
|
|
133
60
|
},
|
|
134
61
|
});
|
|
135
62
|
}
|
|
136
|
-
/**
|
|
137
|
-
* This call is used by the seller to update the total ship-to-home quantity of one inventory item,
|
|
138
|
-
* and/or to update the price and/or quantity of one or more offers associated with one inventory item.
|
|
139
|
-
*
|
|
140
|
-
* @param body BulkPriceQuantity
|
|
141
|
-
*/
|
|
142
63
|
bulkUpdatePriceQuantity(body) {
|
|
143
64
|
return this.post(`/bulk_update_price_quantity`, body);
|
|
144
65
|
}
|
|
145
|
-
/**
|
|
146
|
-
* This call can be used to create and/or update up to 25 new inventory item records.
|
|
147
|
-
*
|
|
148
|
-
* @param body BulkInventoryItem
|
|
149
|
-
*/
|
|
150
66
|
bulkCreateOrReplaceInventoryItem(body) {
|
|
151
67
|
return this.post(`/bulk_create_or_replace_inventory_item`, body);
|
|
152
68
|
}
|
|
153
|
-
/**
|
|
154
|
-
* This call retrieves up to 25 inventory item records. The SKU value of each inventory item record to retrieve is
|
|
155
|
-
* specified in the request payload.
|
|
156
|
-
*
|
|
157
|
-
* @param body BulkInventoryItem
|
|
158
|
-
*/
|
|
159
69
|
bulkGetInventoryItem(body) {
|
|
160
70
|
return this.post(`/bulk_get_inventory_item`, body);
|
|
161
71
|
}
|
|
162
|
-
/**
|
|
163
|
-
* This call is used by the seller to retrieve the list of products that are compatible with the inventory item.
|
|
164
|
-
*
|
|
165
|
-
* @param sku A SKU (stock keeping unit) is an unique identifier defined by a seller for a product
|
|
166
|
-
*/
|
|
167
72
|
getProductCompatibility(sku) {
|
|
168
73
|
sku = encodeURIComponent(sku);
|
|
169
74
|
return this.get(`/inventory_item/${sku}/product_compatibility`);
|
|
170
75
|
}
|
|
171
|
-
/**
|
|
172
|
-
* This call is used by the seller to create or replace a list of products that are compatible with the inventory
|
|
173
|
-
* item.
|
|
174
|
-
*
|
|
175
|
-
* @param sku A SKU (stock keeping unit) is an unique identifier defined by a seller for a product
|
|
176
|
-
* @param body Details of the compatibility
|
|
177
|
-
*/
|
|
178
76
|
createOrReplaceProductCompatibility(sku, body) {
|
|
179
77
|
sku = encodeURIComponent(sku);
|
|
180
78
|
return this.put(`/inventory_item/${sku}/product_compatibility`, body);
|
|
181
79
|
}
|
|
182
|
-
/**
|
|
183
|
-
* This call is used by the seller to delete the list of products that are compatible with the inventory item that
|
|
184
|
-
* is associated with the compatible product list.
|
|
185
|
-
*
|
|
186
|
-
* @param sku A SKU (stock keeping unit) is an unique identifier defined by a seller for a product
|
|
187
|
-
*/
|
|
188
80
|
deleteProductCompatibility(sku) {
|
|
189
81
|
sku = encodeURIComponent(sku);
|
|
190
82
|
return this.delete(`/inventory_item/${sku}/product_compatibility`);
|
|
191
83
|
}
|
|
192
|
-
/**
|
|
193
|
-
* This call retrieves all existing offers for the specified SKU value.
|
|
194
|
-
*
|
|
195
|
-
* @param sku The seller-defined SKU value is passed in as a query parameter.
|
|
196
|
-
* @param marketplace_id The unique identifier of the eBay marketplace.
|
|
197
|
-
* @param format This enumeration value sets the listing format for the offer.
|
|
198
|
-
* @param limit The value passed in this query parameter sets the maximum number of records to return per page of
|
|
199
|
-
* data.
|
|
200
|
-
* @param offset The value passed in this query parameter sets the page number to retrieve.
|
|
201
|
-
*/
|
|
202
84
|
getOffers({ sku, marketplaceId, format, limit, offset, } = {}) {
|
|
203
85
|
return this.get(`/offer`, {
|
|
204
86
|
params: {
|
|
@@ -210,133 +92,54 @@ class Inventory extends index_js_1.default {
|
|
|
210
92
|
},
|
|
211
93
|
});
|
|
212
94
|
}
|
|
213
|
-
/**
|
|
214
|
-
* This call retrieves a specific published or unpublished offer.
|
|
215
|
-
*
|
|
216
|
-
* @param offerId The unique identifier of the offer that is to be retrieved.
|
|
217
|
-
*/
|
|
218
95
|
getOffer(offerId) {
|
|
219
96
|
offerId = encodeURIComponent(offerId);
|
|
220
97
|
return this.get(`/offer/${offerId}`);
|
|
221
98
|
}
|
|
222
|
-
/**
|
|
223
|
-
* This call creates an offer for a specific inventory item on a specific eBay marketplace.
|
|
224
|
-
*
|
|
225
|
-
* @param body Details of the offer for the channel
|
|
226
|
-
*/
|
|
227
99
|
createOffer(body) {
|
|
228
100
|
return this.post(`/offer`, body);
|
|
229
101
|
}
|
|
230
|
-
/**
|
|
231
|
-
* This call updates an existing offer.
|
|
232
|
-
*
|
|
233
|
-
* @param offerId The unique identifier of the offer that is being updated.
|
|
234
|
-
* @param body Details of the offer for the channel
|
|
235
|
-
*/
|
|
236
102
|
updateOffer(offerId, body) {
|
|
237
103
|
offerId = encodeURIComponent(offerId);
|
|
238
104
|
return this.put(`/offer/${offerId}`, body);
|
|
239
105
|
}
|
|
240
|
-
/**
|
|
241
|
-
* If used against an unpublished offer, this call will permanently delete that offer.
|
|
242
|
-
*
|
|
243
|
-
* @param offerId The unique identifier of the offer to delete.
|
|
244
|
-
*/
|
|
245
106
|
deleteOffer(offerId) {
|
|
246
107
|
return this.delete(`/offer/${offerId}`);
|
|
247
108
|
}
|
|
248
|
-
/**
|
|
249
|
-
* This call is used to convert an unpublished offer into a published offer, or live eBay listing.
|
|
250
|
-
*
|
|
251
|
-
* @param offerId The unique identifier of the offer that is to be published.
|
|
252
|
-
*/
|
|
253
109
|
publishOffer(offerId) {
|
|
254
110
|
const id = encodeURIComponent(offerId);
|
|
255
111
|
return this.post(`/offer/${id}/publish/`);
|
|
256
112
|
}
|
|
257
|
-
/**
|
|
258
|
-
* This call is used to convert all unpublished offers associated with an inventory item group into an active,
|
|
259
|
-
* multiple-variation listing.
|
|
260
|
-
*
|
|
261
|
-
* @param body PublishByInventoryItemGroupRequest
|
|
262
|
-
*/
|
|
263
113
|
publishOfferByInventoryItemGroup(body) {
|
|
264
114
|
return this.post(`/offer/publish_by_inventory_item_group/`, body);
|
|
265
115
|
}
|
|
266
|
-
/**
|
|
267
|
-
* This call is used to end a multiple-variation eBay listing that is associated with the specified inventory item
|
|
268
|
-
* group.
|
|
269
|
-
*
|
|
270
|
-
* @param body WithdrawByInventoryItemGroupRequest
|
|
271
|
-
*/
|
|
272
116
|
withdrawOfferByInventoryItemGroup(body) {
|
|
273
117
|
return this.post(`/offer/withdraw_by_inventory_item_group`, body);
|
|
274
118
|
}
|
|
275
|
-
/**
|
|
276
|
-
* This call is used to retrieve the expected listing fees for up to 250 unpublished offers.
|
|
277
|
-
*
|
|
278
|
-
* @param body OfferKeysWithId
|
|
279
|
-
*/
|
|
280
119
|
getListingFees(body) {
|
|
281
120
|
return this.post(`/offer/get_listing_fees`, body);
|
|
282
121
|
}
|
|
283
|
-
/**
|
|
284
|
-
* This call creates multiple offers (up to 25) for specific inventory items on a specific eBay marketplace.
|
|
285
|
-
*
|
|
286
|
-
* @param body BulkEbayOfferDetailsWithKeys
|
|
287
|
-
*/
|
|
288
122
|
bulkCreateOffer(body) {
|
|
289
123
|
return this.post(`/bulk_create_offer`, body);
|
|
290
124
|
}
|
|
291
|
-
/**
|
|
292
|
-
* This call is used to convert unpublished offers (up to 25) into published offers, or live eBay listings.
|
|
293
|
-
*
|
|
294
|
-
* @param body BulkOffer
|
|
295
|
-
*/
|
|
296
125
|
bulkPublishOffer(body) {
|
|
297
126
|
return this.post(`/bulk_publish_offer`, body);
|
|
298
127
|
}
|
|
299
|
-
/**
|
|
300
|
-
* This call is used to end a single-variation listing that is associated with the specified offer.
|
|
301
|
-
*
|
|
302
|
-
* @param offerId he unique identifier of the offer that is to be withdrawn.
|
|
303
|
-
*/
|
|
304
128
|
withdrawOffer(offerId) {
|
|
305
129
|
const id = encodeURIComponent(offerId);
|
|
306
130
|
return this.post(`/offer/${id}/withdraw`);
|
|
307
131
|
}
|
|
308
|
-
/**
|
|
309
|
-
* This call retrieves the inventory item group for a given <strong>inventoryItemGroupKey</strong> value.
|
|
310
|
-
*
|
|
311
|
-
* @param inventoryItemGroupKey The unique identifier of an inventory item group.
|
|
312
|
-
*/
|
|
313
132
|
getInventoryItemGroup(inventoryItemGroupKey) {
|
|
314
133
|
inventoryItemGroupKey = encodeURIComponent(inventoryItemGroupKey);
|
|
315
134
|
return this.get(`/inventory_item_group/${inventoryItemGroupKey}`);
|
|
316
135
|
}
|
|
317
|
-
/**
|
|
318
|
-
* This call creates a new inventory item group or updates an existing inventory item group.
|
|
319
|
-
*
|
|
320
|
-
* @param inventoryItemGroupKey Unique identifier of the inventory item group.
|
|
321
|
-
* @param body Details of the inventory Item Group
|
|
322
|
-
*/
|
|
323
136
|
createOrReplaceInventoryItemGroup(inventoryItemGroupKey, body) {
|
|
324
137
|
inventoryItemGroupKey = encodeURIComponent(inventoryItemGroupKey);
|
|
325
138
|
return this.put(`/inventory_item_group/${inventoryItemGroupKey}`, body);
|
|
326
139
|
}
|
|
327
|
-
/**
|
|
328
|
-
* This call deletes the inventory item group for a given <strong>inventoryItemGroupKey</strong> value.
|
|
329
|
-
*
|
|
330
|
-
* @param inventoryItemGroupKey Unique identifier of the inventory item group.
|
|
331
|
-
*/
|
|
332
140
|
deleteInventoryItemGroup(inventoryItemGroupKey) {
|
|
333
141
|
return this.delete(`/inventory_item_group/${inventoryItemGroupKey}`);
|
|
334
142
|
}
|
|
335
|
-
/**
|
|
336
|
-
* This call is used to convert existing eBay Listings to the corresponding Inventory API objects.
|
|
337
|
-
*
|
|
338
|
-
* @param body BulkMigrateListing
|
|
339
|
-
*/
|
|
340
143
|
bulkMigrateListing(body) {
|
|
341
144
|
return this.post(`/bulk_migrate_listing`, body);
|
|
342
145
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/sell_listing_v1_beta_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Enables a seller adding an ad or item on a Partner's site to automatically create an eBay listing draft using the item details from the Partner's site.
|
|
5
|
-
*/
|
|
6
3
|
export default class Listing extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
|
-
/**
|
|
10
|
-
* This call gives Partners the ability to create an eBay draft of a item for their seller using information from their site.
|
|
11
|
-
*
|
|
12
|
-
* @param data The ItemDraft
|
|
13
|
-
*/
|
|
14
6
|
createItemDraft(data?: any): Promise<any>;
|
|
15
7
|
}
|
|
@@ -4,18 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* Enables a seller adding an ad or item on a Partner's site to automatically create an eBay listing draft using the item details from the Partner's site.
|
|
9
|
-
*/
|
|
10
7
|
class Listing extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/sell/listing/v1_beta';
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* This call gives Partners the ability to create an eBay draft of a item for their seller using information from their site.
|
|
16
|
-
*
|
|
17
|
-
* @param data The ItemDraft
|
|
18
|
-
*/
|
|
19
11
|
createItemDraft(data) {
|
|
20
12
|
return this.post(`/item_draft/`, data);
|
|
21
13
|
}
|
|
@@ -1,45 +1,12 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/sell_logistics_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* The <b>Logistics API</b> resources offer the following capabilities: <ul><li><b>shipping_quote</b> – Consolidates into a list a set of live shipping rates, or quotes, from which you can select a rate to ship a package.
|
|
5
|
-
*/
|
|
6
3
|
export default class Logistics extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
|
-
/**
|
|
10
|
-
* The createShippingQuote method returns a shipping quote that contains a list of live "rates."
|
|
11
|
-
*
|
|
12
|
-
* @param data The ShippingQuoteRequest
|
|
13
|
-
*/
|
|
14
6
|
createShippingQuote(data: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value.
|
|
17
|
-
*
|
|
18
|
-
* @param shippingQuoteId This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve.
|
|
19
|
-
*/
|
|
20
7
|
getShippingQuote(shippingQuoteId: string): Promise<any>;
|
|
21
|
-
/**
|
|
22
|
-
* This method creates a "shipment" based on the shippingQuoteId and rateId values supplied in the request.
|
|
23
|
-
*
|
|
24
|
-
* @param data The CreateShipmentFromQuoteRequest
|
|
25
|
-
*/
|
|
26
8
|
createFromShippingQuote(data: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* This method retrieves the shipment details for the specified shipment ID.
|
|
29
|
-
*
|
|
30
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment you want to retrieve.
|
|
31
|
-
*/
|
|
32
9
|
getShipment(shipmentId: any): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* This method returns the shipping label file that was generated for the shipmentId value specified in the request.
|
|
35
|
-
*
|
|
36
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment associated with the shipping label you want to download.
|
|
37
|
-
*/
|
|
38
10
|
downloadLabelFile(shipmentId: any): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted.
|
|
41
|
-
*
|
|
42
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled.
|
|
43
|
-
*/
|
|
44
11
|
cancelShipment(shipmentId: any): Promise<any>;
|
|
45
12
|
}
|
|
@@ -4,59 +4,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* The <b>Logistics API</b> resources offer the following capabilities: <ul><li><b>shipping_quote</b> – Consolidates into a list a set of live shipping rates, or quotes, from which you can select a rate to ship a package.
|
|
9
|
-
*/
|
|
10
7
|
class Logistics extends index_js_1.default {
|
|
11
8
|
get basePath() {
|
|
12
9
|
return '/sell/logistics/v1_beta';
|
|
13
10
|
}
|
|
14
|
-
/**
|
|
15
|
-
* The createShippingQuote method returns a shipping quote that contains a list of live "rates."
|
|
16
|
-
*
|
|
17
|
-
* @param data The ShippingQuoteRequest
|
|
18
|
-
*/
|
|
19
11
|
createShippingQuote(data) {
|
|
20
12
|
return this.post(`/shipping_quote`, data);
|
|
21
13
|
}
|
|
22
|
-
/**
|
|
23
|
-
* This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value.
|
|
24
|
-
*
|
|
25
|
-
* @param shippingQuoteId This path parameter specifies the unique eBay-assigned ID of the shipping quote you want to retrieve.
|
|
26
|
-
*/
|
|
27
14
|
getShippingQuote(shippingQuoteId) {
|
|
28
15
|
shippingQuoteId = encodeURIComponent(shippingQuoteId);
|
|
29
16
|
return this.get(`/shipping_quote/${shippingQuoteId}`);
|
|
30
17
|
}
|
|
31
|
-
/**
|
|
32
|
-
* This method creates a "shipment" based on the shippingQuoteId and rateId values supplied in the request.
|
|
33
|
-
*
|
|
34
|
-
* @param data The CreateShipmentFromQuoteRequest
|
|
35
|
-
*/
|
|
36
18
|
createFromShippingQuote(data) {
|
|
37
19
|
return this.post(`/shipment/create_from_shipping_quote`, data);
|
|
38
20
|
}
|
|
39
|
-
/**
|
|
40
|
-
* This method retrieves the shipment details for the specified shipment ID.
|
|
41
|
-
*
|
|
42
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment you want to retrieve.
|
|
43
|
-
*/
|
|
44
21
|
getShipment(shipmentId) {
|
|
45
22
|
return this.get(`/shipment/${shipmentId}`);
|
|
46
23
|
}
|
|
47
|
-
/**
|
|
48
|
-
* This method returns the shipping label file that was generated for the shipmentId value specified in the request.
|
|
49
|
-
*
|
|
50
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment associated with the shipping label you want to download.
|
|
51
|
-
*/
|
|
52
24
|
downloadLabelFile(shipmentId) {
|
|
53
25
|
return this.get(`/shipment/${shipmentId}/download_label_file`);
|
|
54
26
|
}
|
|
55
|
-
/**
|
|
56
|
-
* This method cancels the shipment associated with the specified shipment ID and the associated shipping label is deleted.
|
|
57
|
-
*
|
|
58
|
-
* @param shipmentId This path parameter specifies the unique eBay-assigned ID of the shipment to be canceled.
|
|
59
|
-
*/
|
|
60
27
|
cancelShipment(shipmentId) {
|
|
61
28
|
return this.post(`/shipment/${shipmentId}/cancel`);
|
|
62
29
|
}
|