ebay-api 8.5.0 → 8.6.0
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 +4 -4
- 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 +0 -43
- 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 +1 -12
- package/dist/eBayApi.js +0 -14
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/enums/restfulEnums.d.ts +24 -23
- package/dist/enums/restfulEnums.js +52 -51
- package/dist/errors/index.d.ts +0 -19
- package/dist/errors/index.js +1 -20
- package/dist/types/apiTypes.d.ts +2 -2
- 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 +0 -43
- 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 +1 -12
- package/lib/eBayApi.js +0 -14
- package/lib/ebay-api.min.js +1 -1
- package/lib/enums/restfulEnums.d.ts +24 -23
- package/lib/enums/restfulEnums.js +52 -52
- package/lib/errors/index.d.ts +0 -19
- package/lib/errors/index.js +1 -20
- package/lib/types/apiTypes.d.ts +2 -2
- 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,299 +1,105 @@
|
|
|
1
1
|
import Api from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* The Order API provides interfaces that lets shoppers pay for items (for both eBay guest and eBay member buyers).
|
|
4
|
-
* Client Credentials: https://api.ebay.com/oauth/api_scope/buy.order
|
|
5
|
-
*/
|
|
6
2
|
class Order extends Api {
|
|
7
3
|
get basePath() {
|
|
8
4
|
return '/buy/order/v1';
|
|
9
5
|
}
|
|
10
|
-
/**
|
|
11
|
-
* (Limited Release) You must be whitelisted to use this method.
|
|
12
|
-
* This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in
|
|
13
|
-
* the order.
|
|
14
|
-
*
|
|
15
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
16
|
-
* returned by the initiateCheckoutSession method.
|
|
17
|
-
* @param body The container for the fields used to apply a coupon to a checkout session.
|
|
18
|
-
*/
|
|
19
6
|
applyCoupon(checkoutSessionId, body) {
|
|
20
7
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
21
8
|
return this.post(`/checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
22
9
|
}
|
|
23
|
-
/**
|
|
24
|
-
* This method returns the details of the specified eBay member checkout session.
|
|
25
|
-
*
|
|
26
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
27
|
-
* returned by the initiateCheckoutSession method.
|
|
28
|
-
*/
|
|
29
10
|
getCheckoutSession(checkoutSessionId) {
|
|
30
11
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
31
12
|
return this.get(`/checkout_session/${checkoutSessionId}`);
|
|
32
13
|
}
|
|
33
|
-
/**
|
|
34
|
-
* This method creates a eBay member checkout session, which is the first step in performing a checkout.
|
|
35
|
-
*
|
|
36
|
-
* @param body The container for the fields used by the initiateCheckoutSession method.
|
|
37
|
-
*/
|
|
38
14
|
initiateCheckoutSession(body) {
|
|
39
15
|
return this.post(`/checkout_session/initiate`, body);
|
|
40
16
|
}
|
|
41
|
-
/**
|
|
42
|
-
* This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout
|
|
43
|
-
* session.
|
|
44
|
-
*
|
|
45
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
46
|
-
* initiateCheckoutSession method.
|
|
47
|
-
*/
|
|
48
17
|
placeOrder(checkoutSessionId) {
|
|
49
18
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
50
19
|
return this.post(`/checkout_session/${checkoutSessionId}/place_order`);
|
|
51
20
|
}
|
|
52
|
-
/**
|
|
53
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member
|
|
54
|
-
* checkout session.
|
|
55
|
-
*
|
|
56
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
57
|
-
* initiateCheckoutSession method.
|
|
58
|
-
* @param body CouponRequest
|
|
59
|
-
*/
|
|
60
21
|
removeCoupon(checkoutSessionId, body) {
|
|
61
22
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
62
23
|
return this.post(`/checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
63
24
|
}
|
|
64
|
-
/**
|
|
65
|
-
* This method changes the payment method information of the specified eBay member checkout session.
|
|
66
|
-
*
|
|
67
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
68
|
-
* initiateCheckoutSession method.
|
|
69
|
-
* @param body UpdatePaymentInformation
|
|
70
|
-
*/
|
|
71
25
|
updatePaymentInfo(checkoutSessionId, body) {
|
|
72
26
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
73
27
|
return this.post(`/checkout_session/${checkoutSessionId}/update_payment_info`, body);
|
|
74
28
|
}
|
|
75
|
-
/**
|
|
76
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
77
|
-
*
|
|
78
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
79
|
-
* initiateCheckoutSession method.
|
|
80
|
-
* @param body UpdateQuantity
|
|
81
|
-
*/
|
|
82
29
|
updateQuantity(checkoutSessionId, body) {
|
|
83
30
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
84
31
|
return this.post(`/checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
85
32
|
}
|
|
86
|
-
/**
|
|
87
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
88
|
-
*
|
|
89
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
90
|
-
* initiateCheckoutSession method.
|
|
91
|
-
* @param body UpdateQuantity
|
|
92
|
-
*/
|
|
93
33
|
checkoutSessionId(checkoutSessionId, body) {
|
|
94
34
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
95
35
|
return this.post(`/checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
96
36
|
}
|
|
97
|
-
/**
|
|
98
|
-
* This method changes the shipping address for in an eBay member checkout session.
|
|
99
|
-
*
|
|
100
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
101
|
-
* initiateCheckoutSession method.
|
|
102
|
-
* @param body ShippingAddressImpl
|
|
103
|
-
*/
|
|
104
37
|
updateShippingAddress(checkoutSessionId, body) {
|
|
105
38
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
106
39
|
return this.post(`/checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
107
40
|
}
|
|
108
|
-
/**
|
|
109
|
-
* This method changes the shipping method for the specified line item in an eBay member checkout session.
|
|
110
|
-
*
|
|
111
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
112
|
-
* initiateCheckoutSession method.
|
|
113
|
-
* @param body UpdateShippingOption
|
|
114
|
-
*/
|
|
115
41
|
updateShippingOption(checkoutSessionId, body) {
|
|
116
42
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
117
43
|
return this.post(`/checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
118
44
|
}
|
|
119
|
-
/**
|
|
120
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest
|
|
121
|
-
* checkout
|
|
122
|
-
* session and applies it to all the eligible items in the order.
|
|
123
|
-
*
|
|
124
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
125
|
-
* initiateCheckoutSession method.
|
|
126
|
-
* @param body CouponRequest
|
|
127
|
-
*/
|
|
128
45
|
applyGuestCoupon(checkoutSessionId, body) {
|
|
129
46
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
130
47
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
131
48
|
}
|
|
132
|
-
/**
|
|
133
|
-
* This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a
|
|
134
|
-
* URI parameter and is required.
|
|
135
|
-
*
|
|
136
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
137
|
-
* initiateCheckoutSession method.
|
|
138
|
-
*/
|
|
139
49
|
getGuestCheckoutSession(checkoutSessionId) {
|
|
140
50
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
141
51
|
return this.get(`/guest_checkout_session/${checkoutSessionId}`);
|
|
142
52
|
}
|
|
143
|
-
/**
|
|
144
|
-
* This method creates an eBay guest checkout session, which is the first step in performing a checkout.
|
|
145
|
-
*
|
|
146
|
-
* @param body CheckoutSessionRequest
|
|
147
|
-
*/
|
|
148
53
|
initiateGuestCheckoutSession(body) {
|
|
149
54
|
return this.post(`/guest_checkout_session/initiate`, body);
|
|
150
55
|
}
|
|
151
|
-
/**
|
|
152
|
-
* This method is used only in the PayPal Smart Button eBay guest payment flow.
|
|
153
|
-
*
|
|
154
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
155
|
-
* initiateCheckoutSession method.
|
|
156
|
-
* @param body InitiatePaymentRequest
|
|
157
|
-
*/
|
|
158
56
|
initiateGuestPayment(checkoutSessionId, body) {
|
|
159
57
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
160
58
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/initiate_payment`, body);
|
|
161
59
|
}
|
|
162
|
-
/**
|
|
163
|
-
* This method creates the purchase order, pays for the items, and terminates the specified guest checkout session.
|
|
164
|
-
*
|
|
165
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
166
|
-
* initiateCheckoutSession method.
|
|
167
|
-
* @param body GuestPlaceOrderRequest
|
|
168
|
-
*/
|
|
169
60
|
placeGuestOrder(checkoutSessionId, body) {
|
|
170
61
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
171
62
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/place_order`, body);
|
|
172
63
|
}
|
|
173
|
-
/**
|
|
174
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest
|
|
175
|
-
* checkout session.
|
|
176
|
-
*
|
|
177
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
178
|
-
* initiateCheckoutSession method.
|
|
179
|
-
* @param body CouponRequest
|
|
180
|
-
*/
|
|
181
64
|
removeGuestCoupon(checkoutSessionId, body) {
|
|
182
65
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
183
66
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
184
67
|
}
|
|
185
|
-
/**
|
|
186
|
-
* This method changes the payment method information of the specified guest checkout session.
|
|
187
|
-
*
|
|
188
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
189
|
-
* initiateCheckoutSession method.
|
|
190
|
-
* @param body UpdatePaymentInformation
|
|
191
|
-
*/
|
|
192
68
|
updateGuestPaymentInfo(checkoutSessionId, body) {
|
|
193
69
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
194
70
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_payment_info`, body);
|
|
195
71
|
}
|
|
196
|
-
/**
|
|
197
|
-
* This method changes the quantity of the specified line item in an eBay guest checkout session.
|
|
198
|
-
*
|
|
199
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
200
|
-
* initiateCheckoutSession method.
|
|
201
|
-
* @param body UpdateQuantity
|
|
202
|
-
*/
|
|
203
72
|
updateGuestQuantity(checkoutSessionId, body) {
|
|
204
73
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
205
74
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
206
75
|
}
|
|
207
|
-
/**
|
|
208
|
-
* This method changes the shipping address for the order in an eBay guest checkout session.
|
|
209
|
-
*
|
|
210
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
211
|
-
* initiateCheckoutSession method.
|
|
212
|
-
* @param body ShippingAddressImpl
|
|
213
|
-
*/
|
|
214
76
|
updateGuestShippingAddress(checkoutSessionId, body) {
|
|
215
77
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
216
78
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
217
79
|
}
|
|
218
|
-
/**
|
|
219
|
-
* This method changes the shipping method for the specified line item in an eBay guest checkout session.
|
|
220
|
-
*
|
|
221
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
222
|
-
* initiateCheckoutSession method.
|
|
223
|
-
* @param body UpdateShippingOption
|
|
224
|
-
*/
|
|
225
80
|
updateGuestShippingOption(checkoutSessionId, body) {
|
|
226
81
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
227
82
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
228
83
|
}
|
|
229
|
-
/**
|
|
230
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest
|
|
231
|
-
* checkout session and applies it to all the eligible items in the order.
|
|
232
|
-
*
|
|
233
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
234
|
-
* initiateCheckoutSession method.
|
|
235
|
-
* @param body CouponRequest
|
|
236
|
-
*/
|
|
237
84
|
applyProxyGuestCoupon(checkoutSessionId, body) {
|
|
238
85
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
239
86
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
240
87
|
}
|
|
241
|
-
/**
|
|
242
|
-
* This method returns the details of the specified eBay proxy guest checkout session.
|
|
243
|
-
*
|
|
244
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
245
|
-
* initiateCheckoutSession method.
|
|
246
|
-
*/
|
|
247
88
|
getProxyGuestCheckoutSession(checkoutSessionId) {
|
|
248
89
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
249
90
|
return this.get(`/proxy_guest_checkout_session/${checkoutSessionId}`);
|
|
250
91
|
}
|
|
251
|
-
/**
|
|
252
|
-
* This method creates an eBay proxy guest checkout session, which is a payment flow that requires apps
|
|
253
|
-
* with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that
|
|
254
|
-
* contain payment information.
|
|
255
|
-
*
|
|
256
|
-
* @param body CheckoutSessionRequest
|
|
257
|
-
*/
|
|
258
92
|
initiateProxyGuestCheckoutSession(body) {
|
|
259
93
|
return this.post(`/proxy_guest_checkout_session/initiate`, body);
|
|
260
94
|
}
|
|
261
|
-
/**
|
|
262
|
-
* This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest
|
|
263
|
-
* checkout session.
|
|
264
|
-
*
|
|
265
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
266
|
-
* initiateCheckoutSession method.
|
|
267
|
-
* @param body GuestPlaceOrderRequest
|
|
268
|
-
*/
|
|
269
95
|
placeProxyGuestOrder(checkoutSessionId, body) {
|
|
270
96
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
271
97
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/place_order`, body);
|
|
272
98
|
}
|
|
273
|
-
/**
|
|
274
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy
|
|
275
|
-
* guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required.
|
|
276
|
-
*
|
|
277
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
278
|
-
* initiateCheckoutSession method.
|
|
279
|
-
* @param body CouponRequest
|
|
280
|
-
*/
|
|
281
99
|
removeProxyGuestCoupon(checkoutSessionId, body) {
|
|
282
100
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
283
101
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
284
102
|
}
|
|
285
|
-
/**
|
|
286
|
-
* This method adds or changes the payment information of the specified proxy guest checkout session.
|
|
287
|
-
*
|
|
288
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
289
|
-
* initiateCheckoutSession method.
|
|
290
|
-
* @param authorization The oAuth2 token. Note: The eBay partner must include this header in the request.
|
|
291
|
-
* @param date The UTC timestamp of the request, which is generated and added to the request by the VSP.
|
|
292
|
-
* @param requestNonce A UUID (a 128-bit universal unique ID), which is generated and added to the request by the
|
|
293
|
-
* VSP.
|
|
294
|
-
* @param signature The HMAC signature, which is generated and added to the request by the VSP.
|
|
295
|
-
* @param body UpdatePaymentInformation
|
|
296
|
-
*/
|
|
297
103
|
updateProxyGuestPaymentInfo(checkoutSessionId, authorization, date, requestNonce, signature, body) {
|
|
298
104
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
299
105
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_payment_info`, body, {
|
|
@@ -305,55 +111,22 @@ class Order extends Api {
|
|
|
305
111
|
}
|
|
306
112
|
});
|
|
307
113
|
}
|
|
308
|
-
/**
|
|
309
|
-
* This method changes the quantity of the specified line item in an eBay proxy guest checkout session.
|
|
310
|
-
*
|
|
311
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
312
|
-
* initiateCheckoutSession method.
|
|
313
|
-
* @param body UpdateQuantity
|
|
314
|
-
*/
|
|
315
114
|
updateProxyGuestQuantity(checkoutSessionId, body) {
|
|
316
115
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
317
116
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
318
117
|
}
|
|
319
|
-
/**
|
|
320
|
-
* This method changes the shipping address for the order in an eBay proxy guest checkout session.
|
|
321
|
-
*
|
|
322
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
323
|
-
* initiateCheckoutSession method.
|
|
324
|
-
* @param body ShippingAddressImpl
|
|
325
|
-
*/
|
|
326
118
|
updateProxyGuestShippingAddress(checkoutSessionId, body) {
|
|
327
119
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
328
120
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
329
121
|
}
|
|
330
|
-
/**
|
|
331
|
-
* This method changes the shipping method for the specified line item in an eBay proxy guest checkout session.
|
|
332
|
-
*
|
|
333
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
334
|
-
* initiateCheckoutSession method.
|
|
335
|
-
* @param body UpdateShippingOption
|
|
336
|
-
*/
|
|
337
122
|
updateProxyGuestShippingOption(checkoutSessionId, body) {
|
|
338
123
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
339
124
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
340
125
|
}
|
|
341
|
-
/**
|
|
342
|
-
* This method retrieves the details about a specific guest purchase order.
|
|
343
|
-
*
|
|
344
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by a guest buyer, for which details are to
|
|
345
|
-
* be retrieved.
|
|
346
|
-
*/
|
|
347
126
|
getGuestPurchaseOrder(purchaseOrderId) {
|
|
348
127
|
purchaseOrderId = encodeURIComponent(purchaseOrderId);
|
|
349
128
|
return this.get(`/guest_purchase_order/${purchaseOrderId}`);
|
|
350
129
|
}
|
|
351
|
-
/**
|
|
352
|
-
* This method retrieves the details about a specific eBay member purchase order.
|
|
353
|
-
*
|
|
354
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by an eBay member, for which details are
|
|
355
|
-
* to be retrieved.
|
|
356
|
-
*/
|
|
357
130
|
getPurchaseOrder(purchaseOrderId) {
|
|
358
131
|
purchaseOrderId = encodeURIComponent(purchaseOrderId);
|
|
359
132
|
return this.get(`/purchase_order/${purchaseOrderId}`);
|
|
@@ -1,74 +1,20 @@
|
|
|
1
1
|
import { CommerceCatalogSearchParams } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/commerce_catalog_v1_beta_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* Use the Catalog API to search the eBay catalog for products on which to base a seller's item listing;
|
|
6
|
-
*/
|
|
7
4
|
export default class Catalog extends Restful implements OpenApi<Omit<operations, 'createChangeRequest'>> {
|
|
8
5
|
static id: string;
|
|
9
6
|
get basePath(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
12
|
-
* decommissioned in Q1 of 2020.
|
|
13
|
-
*
|
|
14
|
-
* @param changeRequestId The unique identifier of the change request being requested.
|
|
15
|
-
*/
|
|
16
7
|
getChangeRequest(changeRequestId: string): Promise<any>;
|
|
17
|
-
/**
|
|
18
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
19
|
-
* decommissioned in Q1 of 2020.
|
|
20
|
-
*
|
|
21
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of change requests returned
|
|
22
|
-
* by this call.
|
|
23
|
-
* @param limit The number of change requests to return. This is the result set, a subset of the full collection of
|
|
24
|
-
* change requests that match the filter criteria of this call.
|
|
25
|
-
* @param offset The first change request to return based on its position in the returned collection of change
|
|
26
|
-
* requests.
|
|
27
|
-
*/
|
|
28
8
|
getChangeRequests({ filter, limit, offset }?: {
|
|
29
9
|
filter?: string;
|
|
30
10
|
limit?: number;
|
|
31
11
|
offset?: number;
|
|
32
12
|
}): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in
|
|
35
|
-
* the request.
|
|
36
|
-
*
|
|
37
|
-
* @param epid The ePID of the product being requested.
|
|
38
|
-
*/
|
|
39
13
|
getProduct(epid: string): Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search
|
|
42
|
-
* criteria provided by a seller.
|
|
43
|
-
*
|
|
44
|
-
* @param params SearchCatalogParams
|
|
45
|
-
*/
|
|
46
14
|
search(params?: CommerceCatalogSearchParams): Promise<any>;
|
|
47
|
-
/**
|
|
48
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
49
|
-
* catalog product and its associated or suggested categories, as well as the values currently associated with that
|
|
50
|
-
* product.
|
|
51
|
-
*
|
|
52
|
-
* @param epid The unique eBay product identifier of the catalog product that you want to update.
|
|
53
|
-
* @param acceptLanguage This request header sets the natural language that will be provided in the field values of
|
|
54
|
-
* the response payload.
|
|
55
|
-
* @param otherApplicableCategoryIds Use only if you are also including the primary_category_id parameter in the
|
|
56
|
-
* request.
|
|
57
|
-
* @param primaryCategoryId Use only if the seller believes this product is associated with the wrong primary
|
|
58
|
-
* category.
|
|
59
|
-
* @param marketplaceId Use this header to specify the eBay marketplace identifier.
|
|
60
|
-
*/
|
|
61
15
|
getProductMetadata(epid: string, { otherApplicableCategoryIds, primaryCategoryId }?: {
|
|
62
16
|
otherApplicableCategoryIds?: string;
|
|
63
17
|
primaryCategoryId?: string;
|
|
64
18
|
}): Promise<any>;
|
|
65
|
-
/**
|
|
66
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
67
|
-
* eBay categories.
|
|
68
|
-
*
|
|
69
|
-
* @param primaryCategoryId The unique identifier of the primary eBay category for which you will retrieve product
|
|
70
|
-
* aspects.
|
|
71
|
-
* @param otherApplicableCategoryIds A string of comma-separated category IDs.
|
|
72
|
-
*/
|
|
73
19
|
getProductMetadataForCategories(primaryCategoryId: string, otherApplicableCategoryIds?: string): Promise<any>;
|
|
74
20
|
}
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import Restful from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Use the Catalog API to search the eBay catalog for products on which to base a seller's item listing;
|
|
4
|
-
*/
|
|
5
2
|
class Catalog extends Restful {
|
|
6
3
|
get basePath() {
|
|
7
4
|
return '/commerce/catalog/v1_beta';
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
11
|
-
* decommissioned in Q1 of 2020.
|
|
12
|
-
*
|
|
13
|
-
* @param changeRequestId The unique identifier of the change request being requested.
|
|
14
|
-
*/
|
|
15
6
|
getChangeRequest(changeRequestId) {
|
|
16
7
|
return this.get(`/change_request/${changeRequestId}`);
|
|
17
8
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Note: The three catalog change request methods in the Catalog API are deprecated, and are scheduled to be
|
|
20
|
-
* decommissioned in Q1 of 2020.
|
|
21
|
-
*
|
|
22
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of change requests returned
|
|
23
|
-
* by this call.
|
|
24
|
-
* @param limit The number of change requests to return. This is the result set, a subset of the full collection of
|
|
25
|
-
* change requests that match the filter criteria of this call.
|
|
26
|
-
* @param offset The first change request to return based on its position in the returned collection of change
|
|
27
|
-
* requests.
|
|
28
|
-
*/
|
|
29
9
|
getChangeRequests({ filter, limit, offset } = {}) {
|
|
30
10
|
return this.get(`/change_request`, {
|
|
31
11
|
params: {
|
|
@@ -35,41 +15,15 @@ class Catalog extends Restful {
|
|
|
35
15
|
}
|
|
36
16
|
});
|
|
37
17
|
}
|
|
38
|
-
/**
|
|
39
|
-
* This call retrieves details of the catalog product identified by the eBay product identifier (ePID) specified in
|
|
40
|
-
* the request.
|
|
41
|
-
*
|
|
42
|
-
* @param epid The ePID of the product being requested.
|
|
43
|
-
*/
|
|
44
18
|
getProduct(epid) {
|
|
45
19
|
const e = encodeURIComponent(epid);
|
|
46
20
|
return this.get(`/product/${e}`);
|
|
47
21
|
}
|
|
48
|
-
/**
|
|
49
|
-
* This call searches for and retrieves summaries of one or more products in the eBay catalog that match the search
|
|
50
|
-
* criteria provided by a seller.
|
|
51
|
-
*
|
|
52
|
-
* @param params SearchCatalogParams
|
|
53
|
-
*/
|
|
54
22
|
search(params) {
|
|
55
23
|
return this.get(`/product_summary/search`, {
|
|
56
24
|
params
|
|
57
25
|
});
|
|
58
26
|
}
|
|
59
|
-
/**
|
|
60
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
61
|
-
* catalog product and its associated or suggested categories, as well as the values currently associated with that
|
|
62
|
-
* product.
|
|
63
|
-
*
|
|
64
|
-
* @param epid The unique eBay product identifier of the catalog product that you want to update.
|
|
65
|
-
* @param acceptLanguage This request header sets the natural language that will be provided in the field values of
|
|
66
|
-
* the response payload.
|
|
67
|
-
* @param otherApplicableCategoryIds Use only if you are also including the primary_category_id parameter in the
|
|
68
|
-
* request.
|
|
69
|
-
* @param primaryCategoryId Use only if the seller believes this product is associated with the wrong primary
|
|
70
|
-
* category.
|
|
71
|
-
* @param marketplaceId Use this header to specify the eBay marketplace identifier.
|
|
72
|
-
*/
|
|
73
27
|
getProductMetadata(epid, { otherApplicableCategoryIds, primaryCategoryId } = {}) {
|
|
74
28
|
return this.get(`/get_product_metadata`, {
|
|
75
29
|
params: {
|
|
@@ -79,14 +33,6 @@ class Catalog extends Restful {
|
|
|
79
33
|
}
|
|
80
34
|
});
|
|
81
35
|
}
|
|
82
|
-
/**
|
|
83
|
-
* This call retrieves an array of all supported aspects, aspect constraints, and aspect values for the specified
|
|
84
|
-
* eBay categories.
|
|
85
|
-
*
|
|
86
|
-
* @param primaryCategoryId The unique identifier of the primary eBay category for which you will retrieve product
|
|
87
|
-
* aspects.
|
|
88
|
-
* @param otherApplicableCategoryIds A string of comma-separated category IDs.
|
|
89
|
-
*/
|
|
90
36
|
getProductMetadataForCategories(primaryCategoryId, otherApplicableCategoryIds) {
|
|
91
37
|
return this.get(`/get_product_metadata_for_categories`, {
|
|
92
38
|
params: {
|
|
@@ -1,35 +1,14 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/commerce_charity_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* The Charity API allows third-party developers to search for and access details on supported charitable organizations.
|
|
5
|
-
*/
|
|
6
3
|
export default class Charity extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
|
-
/**
|
|
10
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
11
|
-
*
|
|
12
|
-
* @param charityOrgId The unique ID of the charitable organization.
|
|
13
|
-
*/
|
|
14
6
|
getCharityOrg(charityOrgId: string): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
17
|
-
*
|
|
18
|
-
* @param limit The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
|
|
19
|
-
* @param offset The number of items that will be skipped in the result set.
|
|
20
|
-
* @param q A query string that matches the keywords in name, mission statement, or description.
|
|
21
|
-
* @param registrationIds A comma-separated list of charitable organization registration IDs.
|
|
22
|
-
*/
|
|
23
7
|
getCharityOrgs({ limit, offset, q, registrationIds }: {
|
|
24
8
|
limit?: string;
|
|
25
9
|
offset?: string;
|
|
26
10
|
q?: string;
|
|
27
11
|
registrationIds?: string;
|
|
28
12
|
}): Promise<any>;
|
|
29
|
-
/**
|
|
30
|
-
* This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID.
|
|
31
|
-
*
|
|
32
|
-
* @param legacyCharityOrgId The legacy ID of the charitable organization.
|
|
33
|
-
*/
|
|
34
13
|
getCharityOrgByLegacyId(legacyCharityOrgId: string): Promise<any>;
|
|
35
14
|
}
|
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
import Restful from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* The Charity API allows third-party developers to search for and access details on supported charitable organizations.
|
|
4
|
-
*/
|
|
5
2
|
class Charity extends Restful {
|
|
6
3
|
get basePath() {
|
|
7
4
|
return '/commerce/charity/v1';
|
|
8
5
|
}
|
|
9
|
-
/**
|
|
10
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
11
|
-
*
|
|
12
|
-
* @param charityOrgId The unique ID of the charitable organization.
|
|
13
|
-
*/
|
|
14
6
|
getCharityOrg(charityOrgId) {
|
|
15
7
|
charityOrgId = encodeURIComponent(charityOrgId);
|
|
16
8
|
return this.get(`/charity_org/${charityOrgId}`);
|
|
17
9
|
}
|
|
18
|
-
/**
|
|
19
|
-
* This call is used to retrieve detailed information about supported charitable organizations.
|
|
20
|
-
*
|
|
21
|
-
* @param limit The number of items, from the result set, returned in a single page. Valid Values: 1-100 Default: 20
|
|
22
|
-
* @param offset The number of items that will be skipped in the result set.
|
|
23
|
-
* @param q A query string that matches the keywords in name, mission statement, or description.
|
|
24
|
-
* @param registrationIds A comma-separated list of charitable organization registration IDs.
|
|
25
|
-
*/
|
|
26
10
|
getCharityOrgs({ limit, offset, q, registrationIds }) {
|
|
27
11
|
return this.get(`/charity_org`, {
|
|
28
12
|
params: {
|
|
@@ -33,11 +17,6 @@ class Charity extends Restful {
|
|
|
33
17
|
}
|
|
34
18
|
});
|
|
35
19
|
}
|
|
36
|
-
/**
|
|
37
|
-
* This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID.
|
|
38
|
-
*
|
|
39
|
-
* @param legacyCharityOrgId The legacy ID of the charitable organization.
|
|
40
|
-
*/
|
|
41
20
|
getCharityOrgByLegacyId(legacyCharityOrgId) {
|
|
42
21
|
return this.get(`/charity_org/get_charity_org_by_legacy_id`, {
|
|
43
22
|
params: {
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/commerce_identity_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Retrieves the authenticated user's account profile information.
|
|
5
|
-
*/
|
|
6
3
|
export default class Identity extends Restful implements OpenApi<operations> {
|
|
7
4
|
static id: string;
|
|
8
5
|
get basePath(): string;
|
|
9
6
|
get subdomain(): string;
|
|
10
|
-
/**
|
|
11
|
-
* This method retrieves the account profile information for an authenticated user, which requires a User access
|
|
12
|
-
* token. What is returned is controlled by the scopes.
|
|
13
|
-
*/
|
|
14
7
|
getUser(): Promise<any>;
|
|
15
8
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import Restful from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves the authenticated user's account profile information.
|
|
4
|
-
*/
|
|
5
2
|
class Identity extends Restful {
|
|
6
3
|
get basePath() {
|
|
7
4
|
return '/commerce/identity/v1';
|
|
@@ -9,10 +6,6 @@ class Identity extends Restful {
|
|
|
9
6
|
get subdomain() {
|
|
10
7
|
return 'apiz';
|
|
11
8
|
}
|
|
12
|
-
/**
|
|
13
|
-
* This method retrieves the account profile information for an authenticated user, which requires a User access
|
|
14
|
-
* token. What is returned is controlled by the scopes.
|
|
15
|
-
*/
|
|
16
9
|
getUser() {
|
|
17
10
|
return this.get(`/user/`);
|
|
18
11
|
}
|