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
|
@@ -1,231 +1,41 @@
|
|
|
1
1
|
import { FilePurpose, GetReturnFieldGroupEnum } from '../../../../enums/index.js';
|
|
2
2
|
import { CheckEligibilityRequest, CloseReturnRequest, CreateReturnRequest, DecideReturnRequest, EscalateRequest, GetEstimateRequest, MarkAsReceivedRequest, MarkAsShippedRequest, MarkRefundSentRequest, PostOrderIssueRefundRequest, ProvideLabelRequest, ReturnRequestType, SearchReturnParams, SendMessageRequest, SetReturnCreationSessionRequest, UpdateTrackingRequest, UploadFileRequest, VoidLabelRequest } from '../../../../types/index.js';
|
|
3
3
|
import Restful from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* Post-Order Return API
|
|
6
|
-
*/
|
|
7
4
|
export default class Return extends Restful {
|
|
8
5
|
static id: string;
|
|
9
6
|
get basePath(): string;
|
|
10
7
|
get useIaf(): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Create or update a shipping label provided by the seller.
|
|
13
|
-
*
|
|
14
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
15
|
-
* @param payload the ProvideLabelRequest
|
|
16
|
-
*/
|
|
17
8
|
addShippingLabelInfo(returnId: string, payload: ProvideLabelRequest): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Cancel a return request.
|
|
20
|
-
*
|
|
21
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
22
|
-
* @param payload The CloseReturnRequest.
|
|
23
|
-
*/
|
|
24
9
|
cancelReturnRequest(returnId: string, payload?: CloseReturnRequest): Promise<any>;
|
|
25
|
-
/**
|
|
26
|
-
* Check to see if an item is eligible for a return.
|
|
27
|
-
*
|
|
28
|
-
* @param payload the CheckEligibilityRequest
|
|
29
|
-
*/
|
|
30
10
|
checkReturnEligibility(payload: CheckEligibilityRequest): Promise<any>;
|
|
31
|
-
/**
|
|
32
|
-
* Validate the eligibility of an existing shipping label.
|
|
33
|
-
*
|
|
34
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
35
|
-
*/
|
|
36
11
|
checkShippingLabelEligibility(returnId: string): Promise<any>;
|
|
37
|
-
/**
|
|
38
|
-
* Create a return draft.
|
|
39
|
-
*
|
|
40
|
-
* @param payload the SetReturnCreationSessionRequest
|
|
41
|
-
*/
|
|
42
12
|
createReturnDraft(payload: SetReturnCreationSessionRequest): Promise<any>;
|
|
43
|
-
/**
|
|
44
|
-
* Request a return for an item.
|
|
45
|
-
*
|
|
46
|
-
* @param payload the CreateReturnRequest
|
|
47
|
-
* @param fieldGroups can be used in the call URI to control the detail level that is returned in response.
|
|
48
|
-
*/
|
|
49
13
|
createReturnRequest(payload: CreateReturnRequest, fieldGroups?: GetReturnFieldGroupEnum | `${GetReturnFieldGroupEnum}`): Promise<any>;
|
|
50
|
-
/**
|
|
51
|
-
* Create an eBay shipping label for the buyer.
|
|
52
|
-
*
|
|
53
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
54
|
-
*/
|
|
55
14
|
createReturnShippingLabel(returnId: string): Promise<any>;
|
|
56
|
-
/**
|
|
57
|
-
* Delete a file associated with a return draft.
|
|
58
|
-
*
|
|
59
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
60
|
-
* @param fileId The unique eBay-assigned ID of the draft file.
|
|
61
|
-
*/
|
|
62
15
|
deleteReturnDraftFile(draftId: string, fileId: string): Promise<any>;
|
|
63
|
-
/**
|
|
64
|
-
* Escalate an existing return to eBay customer support.
|
|
65
|
-
*
|
|
66
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
67
|
-
* @param payload the EscalateRequest
|
|
68
|
-
*/
|
|
69
16
|
escalateReturn(returnId: string, payload?: EscalateRequest): Promise<any>;
|
|
70
|
-
/**
|
|
71
|
-
* Retrieve the details of a specific return.
|
|
72
|
-
*
|
|
73
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
74
|
-
* @param fieldGroups can be used in the call URI to control the detail level that is returned in response.
|
|
75
|
-
*/
|
|
76
17
|
getReturn(returnId: string, fieldGroups?: GetReturnFieldGroupEnum | `${GetReturnFieldGroupEnum}`): Promise<any>;
|
|
77
|
-
/**
|
|
78
|
-
* Retrieve a return draft.
|
|
79
|
-
*
|
|
80
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
81
|
-
*/
|
|
82
18
|
getReturnDraft(returnId: string): Promise<any>;
|
|
83
|
-
/**
|
|
84
|
-
* Retrieve the files associated with a return draft.
|
|
85
|
-
*
|
|
86
|
-
* @param returnId The unique eBay-assigned ID of the return draft.
|
|
87
|
-
*/
|
|
88
19
|
getReturnDraftFiles(returnId: string): Promise<any>;
|
|
89
|
-
/**
|
|
90
|
-
* Retrieve the cost estimate of a refund with its shipping cost.
|
|
91
|
-
*
|
|
92
|
-
* @param payload the GetEstimateRequest
|
|
93
|
-
*/
|
|
94
20
|
getReturnEstimate(payload: GetEstimateRequest): Promise<any>;
|
|
95
|
-
/**
|
|
96
|
-
* Retrieve the cost estimate of a refund with its shipping cost.
|
|
97
|
-
*
|
|
98
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
99
|
-
*/
|
|
100
21
|
getReturnFiles(returnId: string): Promise<any>;
|
|
101
|
-
/**
|
|
102
|
-
* Retrieve seller's return preferences.
|
|
103
|
-
*/
|
|
104
22
|
getReturnPreferences(): Promise<any>;
|
|
105
|
-
/**
|
|
106
|
-
* Retrieve the data for an existing shipping label.
|
|
107
|
-
*
|
|
108
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
109
|
-
*/
|
|
110
23
|
getReturnShippingLabel(returnId: string): Promise<any>;
|
|
111
|
-
/**
|
|
112
|
-
* Retrieve shipment tracking activity for a return.
|
|
113
|
-
*
|
|
114
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
115
|
-
* @param carrierUsed The shipping carrier used to to ship the package.
|
|
116
|
-
* @param trackingNumber The tracking number of the package.
|
|
117
|
-
*/
|
|
118
24
|
getShipmentTrackingInfo(returnId: string, carrierUsed: string, trackingNumber: string): Promise<any>;
|
|
119
|
-
/**
|
|
120
|
-
* Issue a refund.
|
|
121
|
-
*
|
|
122
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
123
|
-
* @param payload The IssueRefundRequest.
|
|
124
|
-
*/
|
|
125
25
|
issueReturnRefund(returnId: string, payload: PostOrderIssueRefundRequest): Promise<any>;
|
|
126
|
-
/**
|
|
127
|
-
* Mark a returned item as received.
|
|
128
|
-
*
|
|
129
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
130
|
-
* @param payload the MarkAsReceivedRequest
|
|
131
|
-
*/
|
|
132
26
|
markReturnReceived(returnId: string, payload?: MarkAsReceivedRequest): Promise<any>;
|
|
133
|
-
/**
|
|
134
|
-
* Mark a refund as received.
|
|
135
|
-
*
|
|
136
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
137
|
-
*/
|
|
138
27
|
markReturnRefundReceived(returnId: string): Promise<any>;
|
|
139
|
-
/**
|
|
140
|
-
* Notify the buyer that a refund has been issued.
|
|
141
|
-
*
|
|
142
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
143
|
-
* @param payload the MarkRefundSentRequest
|
|
144
|
-
*/
|
|
145
28
|
markReturnRefundSent(returnId: string, payload: MarkRefundSentRequest): Promise<any>;
|
|
146
|
-
/**
|
|
147
|
-
* Mark a return as shipped.
|
|
148
|
-
*
|
|
149
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
150
|
-
* @param payload the MarkAsShippedRequest
|
|
151
|
-
*/
|
|
152
29
|
markReturnShipped(returnId: string, payload?: MarkAsShippedRequest): Promise<any>;
|
|
153
|
-
/**
|
|
154
|
-
* Perform an action on a return, such as APPROVE.
|
|
155
|
-
*
|
|
156
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
157
|
-
* @param payload the DecideReturnRequest
|
|
158
|
-
*/
|
|
159
30
|
processReturnRequest(returnId: string, payload: DecideReturnRequest): Promise<any>;
|
|
160
|
-
/**
|
|
161
|
-
* Retrieve details on items being returned.
|
|
162
|
-
*
|
|
163
|
-
* @param params the SearchReturnParams
|
|
164
|
-
*/
|
|
165
31
|
search(params: SearchReturnParams): Promise<any>;
|
|
166
|
-
/**
|
|
167
|
-
* Send a message to the buyer or seller regarding a return.
|
|
168
|
-
*
|
|
169
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
170
|
-
* @param payload the SendMessageRequest
|
|
171
|
-
*/
|
|
172
32
|
sendReturnMessage(returnId: string, payload?: SendMessageRequest): Promise<any>;
|
|
173
|
-
/**
|
|
174
|
-
* Send a shipping label to an email address.
|
|
175
|
-
*
|
|
176
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
177
|
-
* @param toEmailAddress The recipient's email address is specified in this field.
|
|
178
|
-
*/
|
|
179
33
|
sendReturnShippingLabel(returnId: string, toEmailAddress?: string): Promise<any>;
|
|
180
|
-
/**
|
|
181
|
-
* Send a shipping label to an email address.
|
|
182
|
-
*
|
|
183
|
-
* @param rmaRequired This field is included and set to true if the seller wishes to require that the buyer provide
|
|
184
|
-
* a Return Merchandise Authorization (RMA) when returning an item.
|
|
185
|
-
*/
|
|
186
34
|
setReturnPreferences(rmaRequired: boolean): Promise<any>;
|
|
187
|
-
/**
|
|
188
|
-
* Activate the files associated with a return.
|
|
189
|
-
*
|
|
190
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
191
|
-
* @param filePurpose This value is used to indicate if the file(s) are being used to provide more information
|
|
192
|
-
* about the condition of the item, or intended to provide more information about shipment tracking or about
|
|
193
|
-
* the shipping label.
|
|
194
|
-
*/
|
|
195
35
|
submitReturnFile(returnId: string, filePurpose?: FilePurpose | keyof typeof FilePurpose): Promise<any>;
|
|
196
|
-
/**
|
|
197
|
-
* Update an existing return draft.
|
|
198
|
-
*
|
|
199
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
200
|
-
* @param returnRequest the ReturnRequestType
|
|
201
|
-
*/
|
|
202
36
|
updateReturnDraft(draftId: string, returnRequest: ReturnRequestType): Promise<any>;
|
|
203
|
-
/**
|
|
204
|
-
* Update shipment tracking information.
|
|
205
|
-
*
|
|
206
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
207
|
-
* @param payload the UpdateTrackingRequest
|
|
208
|
-
*/
|
|
209
37
|
updateShipmentTrackingInfo(returnId: string, payload: UpdateTrackingRequest): Promise<any>;
|
|
210
|
-
/**
|
|
211
|
-
* Upload the files relating to a return draft.
|
|
212
|
-
*
|
|
213
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
214
|
-
* @param payload the UploadFileRequest
|
|
215
|
-
*/
|
|
216
38
|
uploadReturnDraftFile(draftId: string, payload: UploadFileRequest): Promise<any>;
|
|
217
|
-
/**
|
|
218
|
-
* Upload the files relating to a return.
|
|
219
|
-
*
|
|
220
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
221
|
-
* @param payload the UploadFileRequest
|
|
222
|
-
*/
|
|
223
39
|
uploadReturnFile(returnId: string, payload: UploadFileRequest): Promise<any>;
|
|
224
|
-
/**
|
|
225
|
-
* Void a shipping label.
|
|
226
|
-
*
|
|
227
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
228
|
-
* @param payload the VoidLabelRequest
|
|
229
|
-
*/
|
|
230
40
|
voidShippingLabel(returnId: string, payload: VoidLabelRequest): Promise<any>;
|
|
231
41
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import Restful from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Post-Order Return API
|
|
4
|
-
*/
|
|
5
2
|
class Return extends Restful {
|
|
6
3
|
get basePath() {
|
|
7
4
|
return '/post-order/v2';
|
|
@@ -9,22 +6,10 @@ class Return extends Restful {
|
|
|
9
6
|
get useIaf() {
|
|
10
7
|
return true;
|
|
11
8
|
}
|
|
12
|
-
/**
|
|
13
|
-
* Create or update a shipping label provided by the seller.
|
|
14
|
-
*
|
|
15
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
16
|
-
* @param payload the ProvideLabelRequest
|
|
17
|
-
*/
|
|
18
9
|
addShippingLabelInfo(returnId, payload) {
|
|
19
10
|
const id = encodeURIComponent(returnId);
|
|
20
11
|
return this.post(`/return/${id}/add_shipping_label`, payload);
|
|
21
12
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Cancel a return request.
|
|
24
|
-
*
|
|
25
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
26
|
-
* @param payload The CloseReturnRequest.
|
|
27
|
-
*/
|
|
28
13
|
cancelReturnRequest(returnId, payload) {
|
|
29
14
|
const id = encodeURIComponent(returnId);
|
|
30
15
|
if (payload && payload.buyerCloseReason) {
|
|
@@ -32,37 +17,16 @@ class Return extends Restful {
|
|
|
32
17
|
}
|
|
33
18
|
return this.post(`/return/${id}/cancel`, payload);
|
|
34
19
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Check to see if an item is eligible for a return.
|
|
37
|
-
*
|
|
38
|
-
* @param payload the CheckEligibilityRequest
|
|
39
|
-
*/
|
|
40
20
|
checkReturnEligibility(payload) {
|
|
41
21
|
return this.post(`/return/check_eligibility`, payload);
|
|
42
22
|
}
|
|
43
|
-
/**
|
|
44
|
-
* Validate the eligibility of an existing shipping label.
|
|
45
|
-
*
|
|
46
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
47
|
-
*/
|
|
48
23
|
checkShippingLabelEligibility(returnId) {
|
|
49
24
|
const id = encodeURIComponent(returnId);
|
|
50
25
|
return this.get(`/return/${id}/check_label_print_eligibility`);
|
|
51
26
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Create a return draft.
|
|
54
|
-
*
|
|
55
|
-
* @param payload the SetReturnCreationSessionRequest
|
|
56
|
-
*/
|
|
57
27
|
createReturnDraft(payload) {
|
|
58
28
|
return this.post(`/return/draft`, payload);
|
|
59
29
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Request a return for an item.
|
|
62
|
-
*
|
|
63
|
-
* @param payload the CreateReturnRequest
|
|
64
|
-
* @param fieldGroups can be used in the call URI to control the detail level that is returned in response.
|
|
65
|
-
*/
|
|
66
30
|
createReturnRequest(payload, fieldGroups) {
|
|
67
31
|
return this.post(`/return`, payload, {
|
|
68
32
|
params: {
|
|
@@ -70,42 +34,19 @@ class Return extends Restful {
|
|
|
70
34
|
}
|
|
71
35
|
});
|
|
72
36
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Create an eBay shipping label for the buyer.
|
|
75
|
-
*
|
|
76
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
77
|
-
*/
|
|
78
37
|
createReturnShippingLabel(returnId) {
|
|
79
38
|
const id = encodeURIComponent(returnId);
|
|
80
39
|
return this.post(`/return/${id}/initiate_shipping_label`);
|
|
81
40
|
}
|
|
82
|
-
/**
|
|
83
|
-
* Delete a file associated with a return draft.
|
|
84
|
-
*
|
|
85
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
86
|
-
* @param fileId The unique eBay-assigned ID of the draft file.
|
|
87
|
-
*/
|
|
88
41
|
deleteReturnDraftFile(draftId, fileId) {
|
|
89
42
|
draftId = encodeURIComponent(draftId);
|
|
90
43
|
fileId = encodeURIComponent(fileId);
|
|
91
44
|
return this.delete(`/return/draft/${draftId}/file/${fileId}`);
|
|
92
45
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Escalate an existing return to eBay customer support.
|
|
95
|
-
*
|
|
96
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
97
|
-
* @param payload the EscalateRequest
|
|
98
|
-
*/
|
|
99
46
|
escalateReturn(returnId, payload) {
|
|
100
47
|
const id = encodeURIComponent(returnId);
|
|
101
48
|
return this.post(`/return/${id}/escalate`, payload);
|
|
102
49
|
}
|
|
103
|
-
/**
|
|
104
|
-
* Retrieve the details of a specific return.
|
|
105
|
-
*
|
|
106
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
107
|
-
* @param fieldGroups can be used in the call URI to control the detail level that is returned in response.
|
|
108
|
-
*/
|
|
109
50
|
getReturn(returnId, fieldGroups) {
|
|
110
51
|
returnId = encodeURIComponent(returnId);
|
|
111
52
|
return this.get(`/return/${returnId}`, {
|
|
@@ -114,63 +55,28 @@ class Return extends Restful {
|
|
|
114
55
|
}
|
|
115
56
|
});
|
|
116
57
|
}
|
|
117
|
-
/**
|
|
118
|
-
* Retrieve a return draft.
|
|
119
|
-
*
|
|
120
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
121
|
-
*/
|
|
122
58
|
getReturnDraft(returnId) {
|
|
123
59
|
const id = encodeURIComponent(returnId);
|
|
124
60
|
return this.get(`/return/draft/${id}`);
|
|
125
61
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Retrieve the files associated with a return draft.
|
|
128
|
-
*
|
|
129
|
-
* @param returnId The unique eBay-assigned ID of the return draft.
|
|
130
|
-
*/
|
|
131
62
|
getReturnDraftFiles(returnId) {
|
|
132
63
|
const id = encodeURIComponent(returnId);
|
|
133
64
|
return this.get(`/return/draft/${id}/files`);
|
|
134
65
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Retrieve the cost estimate of a refund with its shipping cost.
|
|
137
|
-
*
|
|
138
|
-
* @param payload the GetEstimateRequest
|
|
139
|
-
*/
|
|
140
66
|
getReturnEstimate(payload) {
|
|
141
67
|
return this.post(`/return/estimate`, payload);
|
|
142
68
|
}
|
|
143
|
-
/**
|
|
144
|
-
* Retrieve the cost estimate of a refund with its shipping cost.
|
|
145
|
-
*
|
|
146
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
147
|
-
*/
|
|
148
69
|
getReturnFiles(returnId) {
|
|
149
70
|
const id = encodeURIComponent(returnId);
|
|
150
71
|
return this.get(`/return/${id}/files`);
|
|
151
72
|
}
|
|
152
|
-
/**
|
|
153
|
-
* Retrieve seller's return preferences.
|
|
154
|
-
*/
|
|
155
73
|
getReturnPreferences() {
|
|
156
74
|
return this.get(`/return/preference`);
|
|
157
75
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Retrieve the data for an existing shipping label.
|
|
160
|
-
*
|
|
161
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
162
|
-
*/
|
|
163
76
|
getReturnShippingLabel(returnId) {
|
|
164
77
|
returnId = encodeURIComponent(returnId);
|
|
165
78
|
return this.get(`/return/${returnId}/get_shipping_label`);
|
|
166
79
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Retrieve shipment tracking activity for a return.
|
|
169
|
-
*
|
|
170
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
171
|
-
* @param carrierUsed The shipping carrier used to to ship the package.
|
|
172
|
-
* @param trackingNumber The tracking number of the package.
|
|
173
|
-
*/
|
|
174
80
|
getShipmentTrackingInfo(returnId, carrierUsed, trackingNumber) {
|
|
175
81
|
returnId = encodeURIComponent(returnId);
|
|
176
82
|
return this.get(`/return/${returnId}/tracking`, {
|
|
@@ -180,91 +86,39 @@ class Return extends Restful {
|
|
|
180
86
|
}
|
|
181
87
|
});
|
|
182
88
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Issue a refund.
|
|
185
|
-
*
|
|
186
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
187
|
-
* @param payload The IssueRefundRequest.
|
|
188
|
-
*/
|
|
189
89
|
issueReturnRefund(returnId, payload) {
|
|
190
90
|
returnId = encodeURIComponent(returnId);
|
|
191
91
|
return this.post(`/return/${returnId}/issue_refund`, payload);
|
|
192
92
|
}
|
|
193
|
-
/**
|
|
194
|
-
* Mark a returned item as received.
|
|
195
|
-
*
|
|
196
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
197
|
-
* @param payload the MarkAsReceivedRequest
|
|
198
|
-
*/
|
|
199
93
|
markReturnReceived(returnId, payload) {
|
|
200
94
|
returnId = encodeURIComponent(returnId);
|
|
201
95
|
return this.post(`/return/${returnId}/mark_as_received`, payload);
|
|
202
96
|
}
|
|
203
|
-
/**
|
|
204
|
-
* Mark a refund as received.
|
|
205
|
-
*
|
|
206
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
207
|
-
*/
|
|
208
97
|
markReturnRefundReceived(returnId) {
|
|
209
98
|
returnId = encodeURIComponent(returnId);
|
|
210
99
|
return this.post(`/return/${returnId}/mark_refund_received`);
|
|
211
100
|
}
|
|
212
|
-
/**
|
|
213
|
-
* Notify the buyer that a refund has been issued.
|
|
214
|
-
*
|
|
215
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
216
|
-
* @param payload the MarkRefundSentRequest
|
|
217
|
-
*/
|
|
218
101
|
markReturnRefundSent(returnId, payload) {
|
|
219
102
|
returnId = encodeURIComponent(returnId);
|
|
220
103
|
return this.post(`/return/${returnId}/mark_refund_sent`, payload);
|
|
221
104
|
}
|
|
222
|
-
/**
|
|
223
|
-
* Mark a return as shipped.
|
|
224
|
-
*
|
|
225
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
226
|
-
* @param payload the MarkAsShippedRequest
|
|
227
|
-
*/
|
|
228
105
|
markReturnShipped(returnId, payload) {
|
|
229
106
|
returnId = encodeURIComponent(returnId);
|
|
230
107
|
return this.post(`/return/${returnId}/mark_as_shipped`, payload);
|
|
231
108
|
}
|
|
232
|
-
/**
|
|
233
|
-
* Perform an action on a return, such as APPROVE.
|
|
234
|
-
*
|
|
235
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
236
|
-
* @param payload the DecideReturnRequest
|
|
237
|
-
*/
|
|
238
109
|
processReturnRequest(returnId, payload) {
|
|
239
110
|
returnId = encodeURIComponent(returnId);
|
|
240
111
|
return this.post(`/return/${returnId}/decide`, payload);
|
|
241
112
|
}
|
|
242
|
-
/**
|
|
243
|
-
* Retrieve details on items being returned.
|
|
244
|
-
*
|
|
245
|
-
* @param params the SearchReturnParams
|
|
246
|
-
*/
|
|
247
113
|
search(params) {
|
|
248
114
|
return this.get(`/return/search`, {
|
|
249
115
|
params
|
|
250
116
|
});
|
|
251
117
|
}
|
|
252
|
-
/**
|
|
253
|
-
* Send a message to the buyer or seller regarding a return.
|
|
254
|
-
*
|
|
255
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
256
|
-
* @param payload the SendMessageRequest
|
|
257
|
-
*/
|
|
258
118
|
sendReturnMessage(returnId, payload) {
|
|
259
119
|
returnId = encodeURIComponent(returnId);
|
|
260
120
|
return this.post(`/return/${returnId}/send_message`, payload);
|
|
261
121
|
}
|
|
262
|
-
/**
|
|
263
|
-
* Send a shipping label to an email address.
|
|
264
|
-
*
|
|
265
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
266
|
-
* @param toEmailAddress The recipient's email address is specified in this field.
|
|
267
|
-
*/
|
|
268
122
|
sendReturnShippingLabel(returnId, toEmailAddress) {
|
|
269
123
|
returnId = encodeURIComponent(returnId);
|
|
270
124
|
return this.post(`/return/${returnId}/send_shipping_label`, {}, {
|
|
@@ -273,79 +127,35 @@ class Return extends Restful {
|
|
|
273
127
|
}
|
|
274
128
|
});
|
|
275
129
|
}
|
|
276
|
-
/**
|
|
277
|
-
* Send a shipping label to an email address.
|
|
278
|
-
*
|
|
279
|
-
* @param rmaRequired This field is included and set to true if the seller wishes to require that the buyer provide
|
|
280
|
-
* a Return Merchandise Authorization (RMA) when returning an item.
|
|
281
|
-
*/
|
|
282
130
|
setReturnPreferences(rmaRequired) {
|
|
283
131
|
return this.post(`/return/preference`, {
|
|
284
132
|
rmaRequired
|
|
285
133
|
});
|
|
286
134
|
}
|
|
287
|
-
/**
|
|
288
|
-
* Activate the files associated with a return.
|
|
289
|
-
*
|
|
290
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
291
|
-
* @param filePurpose This value is used to indicate if the file(s) are being used to provide more information
|
|
292
|
-
* about the condition of the item, or intended to provide more information about shipment tracking or about
|
|
293
|
-
* the shipping label.
|
|
294
|
-
*/
|
|
295
135
|
submitReturnFile(returnId, filePurpose) {
|
|
296
136
|
returnId = encodeURIComponent(returnId);
|
|
297
137
|
return this.post(`/return/${returnId}/file/submit`, {
|
|
298
138
|
filePurpose
|
|
299
139
|
});
|
|
300
140
|
}
|
|
301
|
-
/**
|
|
302
|
-
* Update an existing return draft.
|
|
303
|
-
*
|
|
304
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
305
|
-
* @param returnRequest the ReturnRequestType
|
|
306
|
-
*/
|
|
307
141
|
updateReturnDraft(draftId, returnRequest) {
|
|
308
142
|
draftId = encodeURIComponent(draftId);
|
|
309
143
|
return this.put(`/return/draft/${draftId}`, {
|
|
310
144
|
returnRequest
|
|
311
145
|
});
|
|
312
146
|
}
|
|
313
|
-
/**
|
|
314
|
-
* Update shipment tracking information.
|
|
315
|
-
*
|
|
316
|
-
* @param returnId The unique eBay-assigned ID of the return request.
|
|
317
|
-
* @param payload the UpdateTrackingRequest
|
|
318
|
-
*/
|
|
319
147
|
updateShipmentTrackingInfo(returnId, payload) {
|
|
320
148
|
returnId = encodeURIComponent(returnId);
|
|
321
149
|
return this.put(`/return/${returnId}/update_tracking`, payload);
|
|
322
150
|
}
|
|
323
|
-
/**
|
|
324
|
-
* Upload the files relating to a return draft.
|
|
325
|
-
*
|
|
326
|
-
* @param draftId The unique eBay-assigned ID of the return draft.
|
|
327
|
-
* @param payload the UploadFileRequest
|
|
328
|
-
*/
|
|
329
151
|
uploadReturnDraftFile(draftId, payload) {
|
|
330
152
|
draftId = encodeURIComponent(draftId);
|
|
331
153
|
return this.post(`/return/draft/${draftId}/file/upload`, payload);
|
|
332
154
|
}
|
|
333
|
-
/**
|
|
334
|
-
* Upload the files relating to a return.
|
|
335
|
-
*
|
|
336
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
337
|
-
* @param payload the UploadFileRequest
|
|
338
|
-
*/
|
|
339
155
|
uploadReturnFile(returnId, payload) {
|
|
340
156
|
returnId = encodeURIComponent(returnId);
|
|
341
157
|
return this.post(`/return/${returnId}/file/upload`, payload);
|
|
342
158
|
}
|
|
343
|
-
/**
|
|
344
|
-
* Void a shipping label.
|
|
345
|
-
*
|
|
346
|
-
* @param returnId The unique eBay-assigned ID of the return.
|
|
347
|
-
* @param payload the VoidLabelRequest
|
|
348
|
-
*/
|
|
349
159
|
voidShippingLabel(returnId, payload) {
|
|
350
160
|
returnId = encodeURIComponent(returnId);
|
|
351
161
|
return this.post(`/return/${returnId}/void_shipping_label`, payload);
|