ebay-api 8.5.1 → 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 +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 +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 +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 +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 +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,265 +1,38 @@
|
|
|
1
1
|
import { CheckoutSessionRequestWithoutPayment, CouponRequest, CreateGuestCheckoutSessionRequest, CreateSignInCheckoutSessionRequest, GuestPlaceOrderRequest, InitiatePaymentRequest, ShippingAddressImpl, UpdatePaymentInformation, UpdateQuantity, UpdateShippingOption } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/buy_order_v1_beta_oas3.js';
|
|
3
3
|
import Api, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* The Order API provides interfaces that lets shoppers pay for items (for both eBay guest and eBay member buyers).
|
|
6
|
-
* Client Credentials: https://api.ebay.com/oauth/api_scope/buy.order
|
|
7
|
-
*/
|
|
8
4
|
export default class Order extends Api implements OpenApi<operations> {
|
|
9
5
|
static id: string;
|
|
10
6
|
get basePath(): string;
|
|
11
|
-
/**
|
|
12
|
-
* (Limited Release) You must be whitelisted to use this method.
|
|
13
|
-
* This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in
|
|
14
|
-
* the order.
|
|
15
|
-
*
|
|
16
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
17
|
-
* returned by the initiateCheckoutSession method.
|
|
18
|
-
* @param body The container for the fields used to apply a coupon to a checkout session.
|
|
19
|
-
*/
|
|
20
7
|
applyCoupon(checkoutSessionId: string, body: CouponRequest): Promise<any>;
|
|
21
|
-
/**
|
|
22
|
-
* This method returns the details of the specified eBay member checkout session.
|
|
23
|
-
*
|
|
24
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
25
|
-
* returned by the initiateCheckoutSession method.
|
|
26
|
-
*/
|
|
27
8
|
getCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
28
|
-
/**
|
|
29
|
-
* This method creates a eBay member checkout session, which is the first step in performing a checkout.
|
|
30
|
-
*
|
|
31
|
-
* @param body The container for the fields used by the initiateCheckoutSession method.
|
|
32
|
-
*/
|
|
33
9
|
initiateCheckoutSession(body?: CreateSignInCheckoutSessionRequest): Promise<any>;
|
|
34
|
-
/**
|
|
35
|
-
* This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout
|
|
36
|
-
* session.
|
|
37
|
-
*
|
|
38
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
39
|
-
* initiateCheckoutSession method.
|
|
40
|
-
*/
|
|
41
10
|
placeOrder(checkoutSessionId: string): Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member
|
|
44
|
-
* checkout session.
|
|
45
|
-
*
|
|
46
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
47
|
-
* initiateCheckoutSession method.
|
|
48
|
-
* @param body CouponRequest
|
|
49
|
-
*/
|
|
50
11
|
removeCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* This method changes the payment method information of the specified eBay member checkout session.
|
|
53
|
-
*
|
|
54
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
55
|
-
* initiateCheckoutSession method.
|
|
56
|
-
* @param body UpdatePaymentInformation
|
|
57
|
-
*/
|
|
58
12
|
updatePaymentInfo(checkoutSessionId: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
59
|
-
/**
|
|
60
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
61
|
-
*
|
|
62
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
63
|
-
* initiateCheckoutSession method.
|
|
64
|
-
* @param body UpdateQuantity
|
|
65
|
-
*/
|
|
66
13
|
updateQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
67
|
-
/**
|
|
68
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
69
|
-
*
|
|
70
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
71
|
-
* initiateCheckoutSession method.
|
|
72
|
-
* @param body UpdateQuantity
|
|
73
|
-
*/
|
|
74
14
|
checkoutSessionId(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
75
|
-
/**
|
|
76
|
-
* This method changes the shipping address for 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 ShippingAddressImpl
|
|
81
|
-
*/
|
|
82
15
|
updateShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
83
|
-
/**
|
|
84
|
-
* This method changes the shipping method for the specified line item in an eBay member checkout session.
|
|
85
|
-
*
|
|
86
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
87
|
-
* initiateCheckoutSession method.
|
|
88
|
-
* @param body UpdateShippingOption
|
|
89
|
-
*/
|
|
90
16
|
updateShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
91
|
-
/**
|
|
92
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest
|
|
93
|
-
* checkout
|
|
94
|
-
* session and applies it to all the eligible items in the order.
|
|
95
|
-
*
|
|
96
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
97
|
-
* initiateCheckoutSession method.
|
|
98
|
-
* @param body CouponRequest
|
|
99
|
-
*/
|
|
100
17
|
applyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
101
|
-
/**
|
|
102
|
-
* This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a
|
|
103
|
-
* URI parameter and is required.
|
|
104
|
-
*
|
|
105
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
106
|
-
* initiateCheckoutSession method.
|
|
107
|
-
*/
|
|
108
18
|
getGuestCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
109
|
-
/**
|
|
110
|
-
* This method creates an eBay guest checkout session, which is the first step in performing a checkout.
|
|
111
|
-
*
|
|
112
|
-
* @param body CheckoutSessionRequest
|
|
113
|
-
*/
|
|
114
19
|
initiateGuestCheckoutSession(body?: CreateGuestCheckoutSessionRequest): Promise<any>;
|
|
115
|
-
/**
|
|
116
|
-
* This method is used only in the PayPal Smart Button eBay guest payment flow.
|
|
117
|
-
*
|
|
118
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
119
|
-
* initiateCheckoutSession method.
|
|
120
|
-
* @param body InitiatePaymentRequest
|
|
121
|
-
*/
|
|
122
20
|
initiateGuestPayment(checkoutSessionId: string, body?: InitiatePaymentRequest): Promise<any>;
|
|
123
|
-
/**
|
|
124
|
-
* This method creates the purchase order, pays for the items, and terminates the specified guest checkout session.
|
|
125
|
-
*
|
|
126
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
127
|
-
* initiateCheckoutSession method.
|
|
128
|
-
* @param body GuestPlaceOrderRequest
|
|
129
|
-
*/
|
|
130
21
|
placeGuestOrder(checkoutSessionId: string, body?: GuestPlaceOrderRequest): Promise<any>;
|
|
131
|
-
/**
|
|
132
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest
|
|
133
|
-
* checkout session.
|
|
134
|
-
*
|
|
135
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
136
|
-
* initiateCheckoutSession method.
|
|
137
|
-
* @param body CouponRequest
|
|
138
|
-
*/
|
|
139
22
|
removeGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
140
|
-
/**
|
|
141
|
-
* This method changes the payment method information of the specified guest checkout session.
|
|
142
|
-
*
|
|
143
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
144
|
-
* initiateCheckoutSession method.
|
|
145
|
-
* @param body UpdatePaymentInformation
|
|
146
|
-
*/
|
|
147
23
|
updateGuestPaymentInfo(checkoutSessionId: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
148
|
-
/**
|
|
149
|
-
* This method changes the quantity of the specified line item in an eBay guest checkout session.
|
|
150
|
-
*
|
|
151
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
152
|
-
* initiateCheckoutSession method.
|
|
153
|
-
* @param body UpdateQuantity
|
|
154
|
-
*/
|
|
155
24
|
updateGuestQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
156
|
-
/**
|
|
157
|
-
* This method changes the shipping address for the order in an eBay guest checkout session.
|
|
158
|
-
*
|
|
159
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
160
|
-
* initiateCheckoutSession method.
|
|
161
|
-
* @param body ShippingAddressImpl
|
|
162
|
-
*/
|
|
163
25
|
updateGuestShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
164
|
-
/**
|
|
165
|
-
* This method changes the shipping method for the specified line item in an eBay guest checkout session.
|
|
166
|
-
*
|
|
167
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
168
|
-
* initiateCheckoutSession method.
|
|
169
|
-
* @param body UpdateShippingOption
|
|
170
|
-
*/
|
|
171
26
|
updateGuestShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
172
|
-
/**
|
|
173
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest
|
|
174
|
-
* checkout session and applies it to all the eligible items in the order.
|
|
175
|
-
*
|
|
176
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
177
|
-
* initiateCheckoutSession method.
|
|
178
|
-
* @param body CouponRequest
|
|
179
|
-
*/
|
|
180
27
|
applyProxyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
181
|
-
/**
|
|
182
|
-
* This method returns the details of the specified eBay proxy guest checkout session.
|
|
183
|
-
*
|
|
184
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
185
|
-
* initiateCheckoutSession method.
|
|
186
|
-
*/
|
|
187
28
|
getProxyGuestCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
188
|
-
/**
|
|
189
|
-
* This method creates an eBay proxy guest checkout session, which is a payment flow that requires apps
|
|
190
|
-
* with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that
|
|
191
|
-
* contain payment information.
|
|
192
|
-
*
|
|
193
|
-
* @param body CheckoutSessionRequest
|
|
194
|
-
*/
|
|
195
29
|
initiateProxyGuestCheckoutSession(body?: CheckoutSessionRequestWithoutPayment): Promise<any>;
|
|
196
|
-
/**
|
|
197
|
-
* This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest
|
|
198
|
-
* checkout session.
|
|
199
|
-
*
|
|
200
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
201
|
-
* initiateCheckoutSession method.
|
|
202
|
-
* @param body GuestPlaceOrderRequest
|
|
203
|
-
*/
|
|
204
30
|
placeProxyGuestOrder(checkoutSessionId: string, body?: GuestPlaceOrderRequest): Promise<any>;
|
|
205
|
-
/**
|
|
206
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy
|
|
207
|
-
* guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required.
|
|
208
|
-
*
|
|
209
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
210
|
-
* initiateCheckoutSession method.
|
|
211
|
-
* @param body CouponRequest
|
|
212
|
-
*/
|
|
213
31
|
removeProxyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
214
|
-
/**
|
|
215
|
-
* This method adds or changes the payment information of the specified proxy guest checkout session.
|
|
216
|
-
*
|
|
217
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
218
|
-
* initiateCheckoutSession method.
|
|
219
|
-
* @param authorization The oAuth2 token. Note: The eBay partner must include this header in the request.
|
|
220
|
-
* @param date The UTC timestamp of the request, which is generated and added to the request by the VSP.
|
|
221
|
-
* @param requestNonce A UUID (a 128-bit universal unique ID), which is generated and added to the request by the
|
|
222
|
-
* VSP.
|
|
223
|
-
* @param signature The HMAC signature, which is generated and added to the request by the VSP.
|
|
224
|
-
* @param body UpdatePaymentInformation
|
|
225
|
-
*/
|
|
226
32
|
updateProxyGuestPaymentInfo(checkoutSessionId: string, authorization: string, date: string, requestNonce: string, signature: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
227
|
-
/**
|
|
228
|
-
* This method changes the quantity of the specified line item in an eBay proxy guest checkout session.
|
|
229
|
-
*
|
|
230
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
231
|
-
* initiateCheckoutSession method.
|
|
232
|
-
* @param body UpdateQuantity
|
|
233
|
-
*/
|
|
234
33
|
updateProxyGuestQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
235
|
-
/**
|
|
236
|
-
* This method changes the shipping address for the order in an eBay proxy guest checkout session.
|
|
237
|
-
*
|
|
238
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
239
|
-
* initiateCheckoutSession method.
|
|
240
|
-
* @param body ShippingAddressImpl
|
|
241
|
-
*/
|
|
242
34
|
updateProxyGuestShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
243
|
-
/**
|
|
244
|
-
* This method changes the shipping method for the specified line item in an eBay proxy guest checkout session.
|
|
245
|
-
*
|
|
246
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
247
|
-
* initiateCheckoutSession method.
|
|
248
|
-
* @param body UpdateShippingOption
|
|
249
|
-
*/
|
|
250
35
|
updateProxyGuestShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
251
|
-
/**
|
|
252
|
-
* This method retrieves the details about a specific guest purchase order.
|
|
253
|
-
*
|
|
254
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by a guest buyer, for which details are to
|
|
255
|
-
* be retrieved.
|
|
256
|
-
*/
|
|
257
36
|
getGuestPurchaseOrder(purchaseOrderId: string): Promise<any>;
|
|
258
|
-
/**
|
|
259
|
-
* This method retrieves the details about a specific eBay member purchase order.
|
|
260
|
-
*
|
|
261
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by an eBay member, for which details are
|
|
262
|
-
* to be retrieved.
|
|
263
|
-
*/
|
|
264
37
|
getPurchaseOrder(purchaseOrderId: string): Promise<any>;
|
|
265
38
|
}
|
|
@@ -4,301 +4,107 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const index_js_1 = __importDefault(require("../../index.js"));
|
|
7
|
-
/**
|
|
8
|
-
* The Order API provides interfaces that lets shoppers pay for items (for both eBay guest and eBay member buyers).
|
|
9
|
-
* Client Credentials: https://api.ebay.com/oauth/api_scope/buy.order
|
|
10
|
-
*/
|
|
11
7
|
class Order extends index_js_1.default {
|
|
12
8
|
get basePath() {
|
|
13
9
|
return '/buy/order/v1';
|
|
14
10
|
}
|
|
15
|
-
/**
|
|
16
|
-
* (Limited Release) You must be whitelisted to use this method.
|
|
17
|
-
* This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in
|
|
18
|
-
* the order.
|
|
19
|
-
*
|
|
20
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
21
|
-
* returned by the initiateCheckoutSession method.
|
|
22
|
-
* @param body The container for the fields used to apply a coupon to a checkout session.
|
|
23
|
-
*/
|
|
24
11
|
applyCoupon(checkoutSessionId, body) {
|
|
25
12
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
26
13
|
return this.post(`/checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
27
14
|
}
|
|
28
|
-
/**
|
|
29
|
-
* This method returns the details of the specified eBay member checkout session.
|
|
30
|
-
*
|
|
31
|
-
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
32
|
-
* returned by the initiateCheckoutSession method.
|
|
33
|
-
*/
|
|
34
15
|
getCheckoutSession(checkoutSessionId) {
|
|
35
16
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
36
17
|
return this.get(`/checkout_session/${checkoutSessionId}`);
|
|
37
18
|
}
|
|
38
|
-
/**
|
|
39
|
-
* This method creates a eBay member checkout session, which is the first step in performing a checkout.
|
|
40
|
-
*
|
|
41
|
-
* @param body The container for the fields used by the initiateCheckoutSession method.
|
|
42
|
-
*/
|
|
43
19
|
initiateCheckoutSession(body) {
|
|
44
20
|
return this.post(`/checkout_session/initiate`, body);
|
|
45
21
|
}
|
|
46
|
-
/**
|
|
47
|
-
* This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout
|
|
48
|
-
* session.
|
|
49
|
-
*
|
|
50
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
51
|
-
* initiateCheckoutSession method.
|
|
52
|
-
*/
|
|
53
22
|
placeOrder(checkoutSessionId) {
|
|
54
23
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
55
24
|
return this.post(`/checkout_session/${checkoutSessionId}/place_order`);
|
|
56
25
|
}
|
|
57
|
-
/**
|
|
58
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member
|
|
59
|
-
* checkout session.
|
|
60
|
-
*
|
|
61
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
62
|
-
* initiateCheckoutSession method.
|
|
63
|
-
* @param body CouponRequest
|
|
64
|
-
*/
|
|
65
26
|
removeCoupon(checkoutSessionId, body) {
|
|
66
27
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
67
28
|
return this.post(`/checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
68
29
|
}
|
|
69
|
-
/**
|
|
70
|
-
* This method changes the payment method information of the specified eBay member checkout session.
|
|
71
|
-
*
|
|
72
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
73
|
-
* initiateCheckoutSession method.
|
|
74
|
-
* @param body UpdatePaymentInformation
|
|
75
|
-
*/
|
|
76
30
|
updatePaymentInfo(checkoutSessionId, body) {
|
|
77
31
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
78
32
|
return this.post(`/checkout_session/${checkoutSessionId}/update_payment_info`, body);
|
|
79
33
|
}
|
|
80
|
-
/**
|
|
81
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
82
|
-
*
|
|
83
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
84
|
-
* initiateCheckoutSession method.
|
|
85
|
-
* @param body UpdateQuantity
|
|
86
|
-
*/
|
|
87
34
|
updateQuantity(checkoutSessionId, body) {
|
|
88
35
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
89
36
|
return this.post(`/checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
90
37
|
}
|
|
91
|
-
/**
|
|
92
|
-
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
93
|
-
*
|
|
94
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
95
|
-
* initiateCheckoutSession method.
|
|
96
|
-
* @param body UpdateQuantity
|
|
97
|
-
*/
|
|
98
38
|
checkoutSessionId(checkoutSessionId, body) {
|
|
99
39
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
100
40
|
return this.post(`/checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
101
41
|
}
|
|
102
|
-
/**
|
|
103
|
-
* This method changes the shipping address for in an eBay member checkout session.
|
|
104
|
-
*
|
|
105
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
106
|
-
* initiateCheckoutSession method.
|
|
107
|
-
* @param body ShippingAddressImpl
|
|
108
|
-
*/
|
|
109
42
|
updateShippingAddress(checkoutSessionId, body) {
|
|
110
43
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
111
44
|
return this.post(`/checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
112
45
|
}
|
|
113
|
-
/**
|
|
114
|
-
* This method changes the shipping method for the specified line item in an eBay member checkout session.
|
|
115
|
-
*
|
|
116
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
117
|
-
* initiateCheckoutSession method.
|
|
118
|
-
* @param body UpdateShippingOption
|
|
119
|
-
*/
|
|
120
46
|
updateShippingOption(checkoutSessionId, body) {
|
|
121
47
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
122
48
|
return this.post(`/checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
123
49
|
}
|
|
124
|
-
/**
|
|
125
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest
|
|
126
|
-
* checkout
|
|
127
|
-
* session and applies it to all the eligible items in the order.
|
|
128
|
-
*
|
|
129
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
130
|
-
* initiateCheckoutSession method.
|
|
131
|
-
* @param body CouponRequest
|
|
132
|
-
*/
|
|
133
50
|
applyGuestCoupon(checkoutSessionId, body) {
|
|
134
51
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
135
52
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
136
53
|
}
|
|
137
|
-
/**
|
|
138
|
-
* This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a
|
|
139
|
-
* URI parameter and is required.
|
|
140
|
-
*
|
|
141
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
142
|
-
* initiateCheckoutSession method.
|
|
143
|
-
*/
|
|
144
54
|
getGuestCheckoutSession(checkoutSessionId) {
|
|
145
55
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
146
56
|
return this.get(`/guest_checkout_session/${checkoutSessionId}`);
|
|
147
57
|
}
|
|
148
|
-
/**
|
|
149
|
-
* This method creates an eBay guest checkout session, which is the first step in performing a checkout.
|
|
150
|
-
*
|
|
151
|
-
* @param body CheckoutSessionRequest
|
|
152
|
-
*/
|
|
153
58
|
initiateGuestCheckoutSession(body) {
|
|
154
59
|
return this.post(`/guest_checkout_session/initiate`, body);
|
|
155
60
|
}
|
|
156
|
-
/**
|
|
157
|
-
* This method is used only in the PayPal Smart Button eBay guest payment flow.
|
|
158
|
-
*
|
|
159
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
160
|
-
* initiateCheckoutSession method.
|
|
161
|
-
* @param body InitiatePaymentRequest
|
|
162
|
-
*/
|
|
163
61
|
initiateGuestPayment(checkoutSessionId, body) {
|
|
164
62
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
165
63
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/initiate_payment`, body);
|
|
166
64
|
}
|
|
167
|
-
/**
|
|
168
|
-
* This method creates the purchase order, pays for the items, and terminates the specified guest checkout session.
|
|
169
|
-
*
|
|
170
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
171
|
-
* initiateCheckoutSession method.
|
|
172
|
-
* @param body GuestPlaceOrderRequest
|
|
173
|
-
*/
|
|
174
65
|
placeGuestOrder(checkoutSessionId, body) {
|
|
175
66
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
176
67
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/place_order`, body);
|
|
177
68
|
}
|
|
178
|
-
/**
|
|
179
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest
|
|
180
|
-
* checkout session.
|
|
181
|
-
*
|
|
182
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
183
|
-
* initiateCheckoutSession method.
|
|
184
|
-
* @param body CouponRequest
|
|
185
|
-
*/
|
|
186
69
|
removeGuestCoupon(checkoutSessionId, body) {
|
|
187
70
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
188
71
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
189
72
|
}
|
|
190
|
-
/**
|
|
191
|
-
* This method changes the payment method information of the specified guest checkout session.
|
|
192
|
-
*
|
|
193
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
194
|
-
* initiateCheckoutSession method.
|
|
195
|
-
* @param body UpdatePaymentInformation
|
|
196
|
-
*/
|
|
197
73
|
updateGuestPaymentInfo(checkoutSessionId, body) {
|
|
198
74
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
199
75
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_payment_info`, body);
|
|
200
76
|
}
|
|
201
|
-
/**
|
|
202
|
-
* This method changes the quantity of the specified line item in an eBay guest checkout session.
|
|
203
|
-
*
|
|
204
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
205
|
-
* initiateCheckoutSession method.
|
|
206
|
-
* @param body UpdateQuantity
|
|
207
|
-
*/
|
|
208
77
|
updateGuestQuantity(checkoutSessionId, body) {
|
|
209
78
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
210
79
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
211
80
|
}
|
|
212
|
-
/**
|
|
213
|
-
* This method changes the shipping address for the order in an eBay guest checkout session.
|
|
214
|
-
*
|
|
215
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
216
|
-
* initiateCheckoutSession method.
|
|
217
|
-
* @param body ShippingAddressImpl
|
|
218
|
-
*/
|
|
219
81
|
updateGuestShippingAddress(checkoutSessionId, body) {
|
|
220
82
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
221
83
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
222
84
|
}
|
|
223
|
-
/**
|
|
224
|
-
* This method changes the shipping method for the specified line item in an eBay guest checkout session.
|
|
225
|
-
*
|
|
226
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
227
|
-
* initiateCheckoutSession method.
|
|
228
|
-
* @param body UpdateShippingOption
|
|
229
|
-
*/
|
|
230
85
|
updateGuestShippingOption(checkoutSessionId, body) {
|
|
231
86
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
232
87
|
return this.post(`/guest_checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
233
88
|
}
|
|
234
|
-
/**
|
|
235
|
-
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest
|
|
236
|
-
* checkout session and applies it to all the eligible items in the order.
|
|
237
|
-
*
|
|
238
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
239
|
-
* initiateCheckoutSession method.
|
|
240
|
-
* @param body CouponRequest
|
|
241
|
-
*/
|
|
242
89
|
applyProxyGuestCoupon(checkoutSessionId, body) {
|
|
243
90
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
244
91
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/apply_coupon`, body);
|
|
245
92
|
}
|
|
246
|
-
/**
|
|
247
|
-
* This method returns the details of the specified eBay proxy guest checkout session.
|
|
248
|
-
*
|
|
249
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
250
|
-
* initiateCheckoutSession method.
|
|
251
|
-
*/
|
|
252
93
|
getProxyGuestCheckoutSession(checkoutSessionId) {
|
|
253
94
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
254
95
|
return this.get(`/proxy_guest_checkout_session/${checkoutSessionId}`);
|
|
255
96
|
}
|
|
256
|
-
/**
|
|
257
|
-
* This method creates an eBay proxy guest checkout session, which is a payment flow that requires apps
|
|
258
|
-
* with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that
|
|
259
|
-
* contain payment information.
|
|
260
|
-
*
|
|
261
|
-
* @param body CheckoutSessionRequest
|
|
262
|
-
*/
|
|
263
97
|
initiateProxyGuestCheckoutSession(body) {
|
|
264
98
|
return this.post(`/proxy_guest_checkout_session/initiate`, body);
|
|
265
99
|
}
|
|
266
|
-
/**
|
|
267
|
-
* This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest
|
|
268
|
-
* checkout session.
|
|
269
|
-
*
|
|
270
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
271
|
-
* initiateCheckoutSession method.
|
|
272
|
-
* @param body GuestPlaceOrderRequest
|
|
273
|
-
*/
|
|
274
100
|
placeProxyGuestOrder(checkoutSessionId, body) {
|
|
275
101
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
276
102
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/place_order`, body);
|
|
277
103
|
}
|
|
278
|
-
/**
|
|
279
|
-
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy
|
|
280
|
-
* guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required.
|
|
281
|
-
*
|
|
282
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
283
|
-
* initiateCheckoutSession method.
|
|
284
|
-
* @param body CouponRequest
|
|
285
|
-
*/
|
|
286
104
|
removeProxyGuestCoupon(checkoutSessionId, body) {
|
|
287
105
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
288
106
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/remove_coupon`, body);
|
|
289
107
|
}
|
|
290
|
-
/**
|
|
291
|
-
* This method adds or changes the payment information of the specified proxy guest checkout session.
|
|
292
|
-
*
|
|
293
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
294
|
-
* initiateCheckoutSession method.
|
|
295
|
-
* @param authorization The oAuth2 token. Note: The eBay partner must include this header in the request.
|
|
296
|
-
* @param date The UTC timestamp of the request, which is generated and added to the request by the VSP.
|
|
297
|
-
* @param requestNonce A UUID (a 128-bit universal unique ID), which is generated and added to the request by the
|
|
298
|
-
* VSP.
|
|
299
|
-
* @param signature The HMAC signature, which is generated and added to the request by the VSP.
|
|
300
|
-
* @param body UpdatePaymentInformation
|
|
301
|
-
*/
|
|
302
108
|
updateProxyGuestPaymentInfo(checkoutSessionId, authorization, date, requestNonce, signature, body) {
|
|
303
109
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
304
110
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_payment_info`, body, {
|
|
@@ -310,55 +116,22 @@ class Order extends index_js_1.default {
|
|
|
310
116
|
}
|
|
311
117
|
});
|
|
312
118
|
}
|
|
313
|
-
/**
|
|
314
|
-
* This method changes the quantity of the specified line item in an eBay proxy guest checkout session.
|
|
315
|
-
*
|
|
316
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
317
|
-
* initiateCheckoutSession method.
|
|
318
|
-
* @param body UpdateQuantity
|
|
319
|
-
*/
|
|
320
119
|
updateProxyGuestQuantity(checkoutSessionId, body) {
|
|
321
120
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
322
121
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_quantity`, body);
|
|
323
122
|
}
|
|
324
|
-
/**
|
|
325
|
-
* This method changes the shipping address for the order in an eBay proxy guest checkout session.
|
|
326
|
-
*
|
|
327
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
328
|
-
* initiateCheckoutSession method.
|
|
329
|
-
* @param body ShippingAddressImpl
|
|
330
|
-
*/
|
|
331
123
|
updateProxyGuestShippingAddress(checkoutSessionId, body) {
|
|
332
124
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
333
125
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_shipping_address`, body);
|
|
334
126
|
}
|
|
335
|
-
/**
|
|
336
|
-
* This method changes the shipping method for the specified line item in an eBay proxy guest checkout session.
|
|
337
|
-
*
|
|
338
|
-
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
339
|
-
* initiateCheckoutSession method.
|
|
340
|
-
* @param body UpdateShippingOption
|
|
341
|
-
*/
|
|
342
127
|
updateProxyGuestShippingOption(checkoutSessionId, body) {
|
|
343
128
|
checkoutSessionId = encodeURIComponent(checkoutSessionId);
|
|
344
129
|
return this.post(`/proxy_guest_checkout_session/${checkoutSessionId}/update_shipping_option`, body);
|
|
345
130
|
}
|
|
346
|
-
/**
|
|
347
|
-
* This method retrieves the details about a specific guest purchase order.
|
|
348
|
-
*
|
|
349
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by a guest buyer, for which details are to
|
|
350
|
-
* be retrieved.
|
|
351
|
-
*/
|
|
352
131
|
getGuestPurchaseOrder(purchaseOrderId) {
|
|
353
132
|
purchaseOrderId = encodeURIComponent(purchaseOrderId);
|
|
354
133
|
return this.get(`/guest_purchase_order/${purchaseOrderId}`);
|
|
355
134
|
}
|
|
356
|
-
/**
|
|
357
|
-
* This method retrieves the details about a specific eBay member purchase order.
|
|
358
|
-
*
|
|
359
|
-
* @param purchaseOrderId The unique identifier of a purchase order made by an eBay member, for which details are
|
|
360
|
-
* to be retrieved.
|
|
361
|
-
*/
|
|
362
135
|
getPurchaseOrder(purchaseOrderId) {
|
|
363
136
|
purchaseOrderId = encodeURIComponent(purchaseOrderId);
|
|
364
137
|
return this.get(`/purchase_order/${purchaseOrderId}`);
|