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,38 +1,12 @@
|
|
|
1
1
|
import { SellFeedParams } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/sell_feed_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
|
-
/**
|
|
5
|
-
* The <strong>Feed API</strong> lets sellers upload input files, download reports and files including their status, filter reports using URI parameters, and retrieve customer service metrics task details.
|
|
6
|
-
*/
|
|
7
4
|
export default class Feed extends Restful implements OpenApi<operations> {
|
|
8
5
|
static id: string;
|
|
9
6
|
get basePath(): string;
|
|
10
|
-
/**
|
|
11
|
-
* This method returns the details and status for an array of order tasks based on a specified feed_type or scheduled_id.
|
|
12
|
-
*
|
|
13
|
-
* @param dateRange The order tasks creation date range.
|
|
14
|
-
* @param feedType The feed type associated with the task.
|
|
15
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
16
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
17
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
18
|
-
* @param scheduleId The schedule ID associated with the order task.
|
|
19
|
-
*/
|
|
20
7
|
getOrderTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId }?: SellFeedParams): Promise<any>;
|
|
21
|
-
/**
|
|
22
|
-
* This method creates an order download task with filter criteria for the order report.
|
|
23
|
-
*
|
|
24
|
-
* @param data The CreateOrderTaskRequest
|
|
25
|
-
*/
|
|
26
8
|
createOrderTask(data: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* This method retrieves the task details and status of the specified task.
|
|
29
|
-
*
|
|
30
|
-
* @param taskId The ID of the task. This ID is generated when the task was created by the createOrderTask method.
|
|
31
|
-
*/
|
|
32
9
|
getOrderTask(taskId: string): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* This method searches for multiple tasks of a specific feed type, and includes date filters and pagination.
|
|
35
|
-
*/
|
|
36
10
|
getInventoryTasks({ feedType, scheduleId, lookBackDays, dateRange, limit, offset }?: {
|
|
37
11
|
feedType?: string;
|
|
38
12
|
scheduleId?: string;
|
|
@@ -41,132 +15,23 @@ export default class Feed extends Restful implements OpenApi<operations> {
|
|
|
41
15
|
limit?: number;
|
|
42
16
|
offset?: number;
|
|
43
17
|
}): Promise<any>;
|
|
44
|
-
/**
|
|
45
|
-
* This method creates an inventory-related download task for a specified feed type with optional filter criteria.
|
|
46
|
-
*/
|
|
47
18
|
createInventoryTask(data: any): Promise<any>;
|
|
48
|
-
/**
|
|
49
|
-
* This method retrieves the task details and status of the specified inventory-related task.
|
|
50
|
-
* @param taskId The ID of the task.
|
|
51
|
-
*/
|
|
52
19
|
getInventoryTask(taskId: string): Promise<any>;
|
|
53
|
-
/**
|
|
54
|
-
* This method retrieves an array containing the details and status of all schedules based on the specified feed_type.
|
|
55
|
-
*
|
|
56
|
-
* @param feedType The feedType associated with the schedule.
|
|
57
|
-
* @param limit The maximum number of schedules that can be returned on each page of the paginated response.
|
|
58
|
-
* @param offset The number of schedules to skip in the result set before returning the first schedule in the paginated response.
|
|
59
|
-
*/
|
|
60
20
|
getSchedules({ feedType, limit, offset, }?: SellFeedParams): Promise<any>;
|
|
61
|
-
/**
|
|
62
|
-
* This method creates a schedule, which is a subscription to the specified schedule template.
|
|
63
|
-
*
|
|
64
|
-
* @params data The CreateUserScheduleRequest
|
|
65
|
-
*/
|
|
66
21
|
createSchedule(data: any): Promise<any>;
|
|
67
|
-
/**
|
|
68
|
-
* This method retrieves schedule details and status of the specified schedule.
|
|
69
|
-
*
|
|
70
|
-
* @param scheduleId The ID of the schedule for which to retrieve the details.
|
|
71
|
-
*/
|
|
72
22
|
getSchedule(scheduleId: string): Promise<any>;
|
|
73
|
-
/**
|
|
74
|
-
* This method updates an existing schedule.
|
|
75
|
-
*
|
|
76
|
-
* @param scheduleId The ID of the schedule to update.
|
|
77
|
-
* @param data The UpdateUserScheduleRequest.
|
|
78
|
-
*/
|
|
79
23
|
updateSchedule(scheduleId: string, data?: any): Promise<any>;
|
|
80
|
-
/**
|
|
81
|
-
* This method deletes an existing schedule.
|
|
82
|
-
*
|
|
83
|
-
* @param scheduleId The schedule_id of the schedule to delete.
|
|
84
|
-
*/
|
|
85
24
|
deleteSchedule(scheduleId: string): Promise<any>;
|
|
86
|
-
/**
|
|
87
|
-
* This method downloads the latest result file generated by the schedule.
|
|
88
|
-
*
|
|
89
|
-
* @param scheduleId The ID of the schedule for which to retrieve the latest result file.
|
|
90
|
-
*/
|
|
91
25
|
getLatestResultFile(scheduleId: string): Promise<any>;
|
|
92
|
-
/**
|
|
93
|
-
* This method downloads the latest result file generated by the schedule.
|
|
94
|
-
*
|
|
95
|
-
* @param scheduleTemplateId The ID of the template to retrieve.
|
|
96
|
-
*/
|
|
97
26
|
getScheduleTemplate(scheduleTemplateId: string): Promise<any>;
|
|
98
|
-
/**
|
|
99
|
-
* This method retrieves an array containing the details and status of all schedule templates based on the specified feed_type.
|
|
100
|
-
*
|
|
101
|
-
* @param feedType The feedType associated with the schedule.
|
|
102
|
-
* @param limit The maximum number of schedules that can be returned on each page of the paginated response.
|
|
103
|
-
* @param offset The number of schedules to skip in the result set before returning the first schedule in the paginated response.
|
|
104
|
-
*/
|
|
105
27
|
getScheduleTemplates({ feedType, limit, offset, }?: SellFeedParams): Promise<any>;
|
|
106
|
-
/**
|
|
107
|
-
* This method returns the details and status for an array of tasks based on a specified feed_type or scheduledId.
|
|
108
|
-
*
|
|
109
|
-
* @param dateRange The order tasks creation date range.
|
|
110
|
-
* @param feedType The feed type associated with the task.
|
|
111
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
112
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
113
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
114
|
-
* @param scheduleId The schedule ID associated with the task.
|
|
115
|
-
*/
|
|
116
28
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId }?: SellFeedParams): Promise<any>;
|
|
117
|
-
/**
|
|
118
|
-
* This method creates an upload task or a download task without filter criteria.
|
|
119
|
-
*
|
|
120
|
-
* @param data The CreateTaskRequest.
|
|
121
|
-
*/
|
|
122
29
|
createTask(data: any): Promise<any>;
|
|
123
|
-
/**
|
|
124
|
-
* This method downloads the file previously uploaded using uploadFile.
|
|
125
|
-
*
|
|
126
|
-
* @param taskId The task ID associated with the file to be downloaded.
|
|
127
|
-
*/
|
|
128
30
|
getInputFile(taskId: string): Promise<any>;
|
|
129
|
-
/**
|
|
130
|
-
* This method retrieves the generated file that is associated with the specified task ID.
|
|
131
|
-
*
|
|
132
|
-
* @param taskId The task ID associated with the file to be downloaded.
|
|
133
|
-
*/
|
|
134
31
|
getResultFile(taskId: string): Promise<any>;
|
|
135
|
-
/**
|
|
136
|
-
* This method retrieves the details and status of the specified task.
|
|
137
|
-
*
|
|
138
|
-
* @param taskId The ID of the task.
|
|
139
|
-
*/
|
|
140
32
|
getTask(taskId: string): Promise<any>;
|
|
141
|
-
/**
|
|
142
|
-
* This method associates the specified file with the specified task ID and uploads the input file.
|
|
143
|
-
*
|
|
144
|
-
* @param taskId The task_id associated with the file that will be uploaded.
|
|
145
|
-
* @param data FormDataContentDisposition.
|
|
146
|
-
*/
|
|
147
33
|
uploadFile(taskId: string, data?: any): Promise<any>;
|
|
148
|
-
/**
|
|
149
|
-
* Use this method to return an array of customer service metric tasks.
|
|
150
|
-
*
|
|
151
|
-
* @param dateRange The order tasks creation date range.
|
|
152
|
-
* @param feedType The feed type associated with the task.
|
|
153
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
154
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
155
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
156
|
-
* @param scheduleId The schedule ID associated with the task.
|
|
157
|
-
*/
|
|
158
34
|
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset, }?: SellFeedParams): Promise<any>;
|
|
159
|
-
/**
|
|
160
|
-
* Use this method to create a customer service metrics download task with filter criteria for the customer service metrics report.
|
|
161
|
-
*
|
|
162
|
-
* @params acceptLanguage Use this header to specify the natural language in which the authenticated user desires the response.
|
|
163
|
-
* @params data The CreateServiceMetricsTaskRequest
|
|
164
|
-
*/
|
|
165
35
|
createCustomerServiceMetricTask(acceptLanguage: string, data: any): Promise<any>;
|
|
166
|
-
/**
|
|
167
|
-
* Use this method to retrieve customer service metric task details for the specified task.
|
|
168
|
-
*
|
|
169
|
-
* @param taskId Use this path parameter to specify the task ID value for the customer service metric task to retrieve.
|
|
170
|
-
*/
|
|
171
36
|
getCustomerServiceMetricTask(taskId: string): Promise<any>;
|
|
172
37
|
}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { multipartHeader } from '../../../../request.js';
|
|
2
2
|
import Restful from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* The <strong>Feed API</strong> lets sellers upload input files, download reports and files including their status, filter reports using URI parameters, and retrieve customer service metrics task details.
|
|
5
|
-
*/
|
|
6
3
|
class Feed extends Restful {
|
|
7
4
|
get basePath() {
|
|
8
5
|
return '/sell/feed/v1';
|
|
9
6
|
}
|
|
10
|
-
/**
|
|
11
|
-
* This method returns the details and status for an array of order tasks based on a specified feed_type or scheduled_id.
|
|
12
|
-
*
|
|
13
|
-
* @param dateRange The order tasks creation date range.
|
|
14
|
-
* @param feedType The feed type associated with the task.
|
|
15
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
16
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
17
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
18
|
-
* @param scheduleId The schedule ID associated with the order task.
|
|
19
|
-
*/
|
|
20
7
|
getOrderTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
21
8
|
return this.get(`/order_task`, {
|
|
22
9
|
params: {
|
|
@@ -29,26 +16,13 @@ class Feed extends Restful {
|
|
|
29
16
|
}
|
|
30
17
|
});
|
|
31
18
|
}
|
|
32
|
-
/**
|
|
33
|
-
* This method creates an order download task with filter criteria for the order report.
|
|
34
|
-
*
|
|
35
|
-
* @param data The CreateOrderTaskRequest
|
|
36
|
-
*/
|
|
37
19
|
createOrderTask(data) {
|
|
38
20
|
return this.post(`/order_task`, data);
|
|
39
21
|
}
|
|
40
|
-
/**
|
|
41
|
-
* This method retrieves the task details and status of the specified task.
|
|
42
|
-
*
|
|
43
|
-
* @param taskId The ID of the task. This ID is generated when the task was created by the createOrderTask method.
|
|
44
|
-
*/
|
|
45
22
|
getOrderTask(taskId) {
|
|
46
23
|
taskId = encodeURIComponent(taskId);
|
|
47
24
|
return this.get(`/order_task/${taskId}`);
|
|
48
25
|
}
|
|
49
|
-
/**
|
|
50
|
-
* This method searches for multiple tasks of a specific feed type, and includes date filters and pagination.
|
|
51
|
-
*/
|
|
52
26
|
getInventoryTasks({ feedType, scheduleId, lookBackDays, dateRange, limit, offset } = {}) {
|
|
53
27
|
return this.get('/inventory_task', {
|
|
54
28
|
params: {
|
|
@@ -61,27 +35,13 @@ class Feed extends Restful {
|
|
|
61
35
|
}
|
|
62
36
|
});
|
|
63
37
|
}
|
|
64
|
-
/**
|
|
65
|
-
* This method creates an inventory-related download task for a specified feed type with optional filter criteria.
|
|
66
|
-
*/
|
|
67
38
|
createInventoryTask(data) {
|
|
68
39
|
return this.post('/inventory_task', data);
|
|
69
40
|
}
|
|
70
|
-
/**
|
|
71
|
-
* This method retrieves the task details and status of the specified inventory-related task.
|
|
72
|
-
* @param taskId The ID of the task.
|
|
73
|
-
*/
|
|
74
41
|
getInventoryTask(taskId) {
|
|
75
42
|
taskId = encodeURIComponent(taskId);
|
|
76
43
|
return this.get(`/inventory_task/${taskId}`);
|
|
77
44
|
}
|
|
78
|
-
/**
|
|
79
|
-
* This method retrieves an array containing the details and status of all schedules based on the specified feed_type.
|
|
80
|
-
*
|
|
81
|
-
* @param feedType The feedType associated with the schedule.
|
|
82
|
-
* @param limit The maximum number of schedules that can be returned on each page of the paginated response.
|
|
83
|
-
* @param offset The number of schedules to skip in the result set before returning the first schedule in the paginated response.
|
|
84
|
-
*/
|
|
85
45
|
getSchedules({ feedType, limit, offset, } = {}) {
|
|
86
46
|
return this.get(`/schedule`, {
|
|
87
47
|
params: {
|
|
@@ -91,67 +51,29 @@ class Feed extends Restful {
|
|
|
91
51
|
}
|
|
92
52
|
});
|
|
93
53
|
}
|
|
94
|
-
/**
|
|
95
|
-
* This method creates a schedule, which is a subscription to the specified schedule template.
|
|
96
|
-
*
|
|
97
|
-
* @params data The CreateUserScheduleRequest
|
|
98
|
-
*/
|
|
99
54
|
createSchedule(data) {
|
|
100
55
|
return this.post(`/schedule`, data);
|
|
101
56
|
}
|
|
102
|
-
/**
|
|
103
|
-
* This method retrieves schedule details and status of the specified schedule.
|
|
104
|
-
*
|
|
105
|
-
* @param scheduleId The ID of the schedule for which to retrieve the details.
|
|
106
|
-
*/
|
|
107
57
|
getSchedule(scheduleId) {
|
|
108
58
|
scheduleId = encodeURIComponent(scheduleId);
|
|
109
59
|
return this.get(`/schedule/${scheduleId}`);
|
|
110
60
|
}
|
|
111
|
-
/**
|
|
112
|
-
* This method updates an existing schedule.
|
|
113
|
-
*
|
|
114
|
-
* @param scheduleId The ID of the schedule to update.
|
|
115
|
-
* @param data The UpdateUserScheduleRequest.
|
|
116
|
-
*/
|
|
117
61
|
updateSchedule(scheduleId, data) {
|
|
118
62
|
scheduleId = encodeURIComponent(scheduleId);
|
|
119
63
|
return this.put(`/schedule/${scheduleId}`, data);
|
|
120
64
|
}
|
|
121
|
-
/**
|
|
122
|
-
* This method deletes an existing schedule.
|
|
123
|
-
*
|
|
124
|
-
* @param scheduleId The schedule_id of the schedule to delete.
|
|
125
|
-
*/
|
|
126
65
|
deleteSchedule(scheduleId) {
|
|
127
66
|
scheduleId = encodeURIComponent(scheduleId);
|
|
128
67
|
return this.delete(`/schedule/${scheduleId}`);
|
|
129
68
|
}
|
|
130
|
-
/**
|
|
131
|
-
* This method downloads the latest result file generated by the schedule.
|
|
132
|
-
*
|
|
133
|
-
* @param scheduleId The ID of the schedule for which to retrieve the latest result file.
|
|
134
|
-
*/
|
|
135
69
|
getLatestResultFile(scheduleId) {
|
|
136
70
|
scheduleId = encodeURIComponent(scheduleId);
|
|
137
71
|
return this.get(`/schedule/${scheduleId}/download_result_file`);
|
|
138
72
|
}
|
|
139
|
-
/**
|
|
140
|
-
* This method downloads the latest result file generated by the schedule.
|
|
141
|
-
*
|
|
142
|
-
* @param scheduleTemplateId The ID of the template to retrieve.
|
|
143
|
-
*/
|
|
144
73
|
getScheduleTemplate(scheduleTemplateId) {
|
|
145
74
|
scheduleTemplateId = encodeURIComponent(scheduleTemplateId);
|
|
146
75
|
return this.get(`/schedule_template/${scheduleTemplateId}`);
|
|
147
76
|
}
|
|
148
|
-
/**
|
|
149
|
-
* This method retrieves an array containing the details and status of all schedule templates based on the specified feed_type.
|
|
150
|
-
*
|
|
151
|
-
* @param feedType The feedType associated with the schedule.
|
|
152
|
-
* @param limit The maximum number of schedules that can be returned on each page of the paginated response.
|
|
153
|
-
* @param offset The number of schedules to skip in the result set before returning the first schedule in the paginated response.
|
|
154
|
-
*/
|
|
155
77
|
getScheduleTemplates({ feedType, limit, offset, } = {}) {
|
|
156
78
|
return this.get(`/schedule_template`, {
|
|
157
79
|
params: {
|
|
@@ -161,16 +83,6 @@ class Feed extends Restful {
|
|
|
161
83
|
}
|
|
162
84
|
});
|
|
163
85
|
}
|
|
164
|
-
/**
|
|
165
|
-
* This method returns the details and status for an array of tasks based on a specified feed_type or scheduledId.
|
|
166
|
-
*
|
|
167
|
-
* @param dateRange The order tasks creation date range.
|
|
168
|
-
* @param feedType The feed type associated with the task.
|
|
169
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
170
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
171
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
172
|
-
* @param scheduleId The schedule ID associated with the task.
|
|
173
|
-
*/
|
|
174
86
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId } = {}) {
|
|
175
87
|
return this.get(`/task`, {
|
|
176
88
|
params: {
|
|
@@ -183,63 +95,27 @@ class Feed extends Restful {
|
|
|
183
95
|
}
|
|
184
96
|
});
|
|
185
97
|
}
|
|
186
|
-
/**
|
|
187
|
-
* This method creates an upload task or a download task without filter criteria.
|
|
188
|
-
*
|
|
189
|
-
* @param data The CreateTaskRequest.
|
|
190
|
-
*/
|
|
191
98
|
createTask(data) {
|
|
192
99
|
return this.post(`/task`, data);
|
|
193
100
|
}
|
|
194
|
-
/**
|
|
195
|
-
* This method downloads the file previously uploaded using uploadFile.
|
|
196
|
-
*
|
|
197
|
-
* @param taskId The task ID associated with the file to be downloaded.
|
|
198
|
-
*/
|
|
199
101
|
getInputFile(taskId) {
|
|
200
102
|
taskId = encodeURIComponent(taskId);
|
|
201
103
|
return this.get(`/task/${taskId}/download_input_file`);
|
|
202
104
|
}
|
|
203
|
-
/**
|
|
204
|
-
* This method retrieves the generated file that is associated with the specified task ID.
|
|
205
|
-
*
|
|
206
|
-
* @param taskId The task ID associated with the file to be downloaded.
|
|
207
|
-
*/
|
|
208
105
|
getResultFile(taskId) {
|
|
209
106
|
taskId = encodeURIComponent(taskId);
|
|
210
107
|
return this.get(`/task/${taskId}/download_result_file`);
|
|
211
108
|
}
|
|
212
|
-
/**
|
|
213
|
-
* This method retrieves the details and status of the specified task.
|
|
214
|
-
*
|
|
215
|
-
* @param taskId The ID of the task.
|
|
216
|
-
*/
|
|
217
109
|
getTask(taskId) {
|
|
218
110
|
taskId = encodeURIComponent(taskId);
|
|
219
111
|
return this.get(`/task/${taskId}`);
|
|
220
112
|
}
|
|
221
|
-
/**
|
|
222
|
-
* This method associates the specified file with the specified task ID and uploads the input file.
|
|
223
|
-
*
|
|
224
|
-
* @param taskId The task_id associated with the file that will be uploaded.
|
|
225
|
-
* @param data FormDataContentDisposition.
|
|
226
|
-
*/
|
|
227
113
|
uploadFile(taskId, data) {
|
|
228
114
|
taskId = encodeURIComponent(taskId);
|
|
229
115
|
return this.post(`/task/${taskId}/upload_file`, data, {
|
|
230
116
|
headers: multipartHeader,
|
|
231
117
|
});
|
|
232
118
|
}
|
|
233
|
-
/**
|
|
234
|
-
* Use this method to return an array of customer service metric tasks.
|
|
235
|
-
*
|
|
236
|
-
* @param dateRange The order tasks creation date range.
|
|
237
|
-
* @param feedType The feed type associated with the task.
|
|
238
|
-
* @param limit The maximum number of order tasks that can be returned on each page of the paginated response.
|
|
239
|
-
* @param lookBackDays The number of previous days in which to search for tasks. Do not use with the date_range parameter.
|
|
240
|
-
* @param offset The number of order tasks to skip in the result set before returning the first order in the paginated response.
|
|
241
|
-
* @param scheduleId The schedule ID associated with the task.
|
|
242
|
-
*/
|
|
243
119
|
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset, } = {}) {
|
|
244
120
|
return this.get(`/customer_service_metric_task`, {
|
|
245
121
|
params: {
|
|
@@ -251,12 +127,6 @@ class Feed extends Restful {
|
|
|
251
127
|
}
|
|
252
128
|
});
|
|
253
129
|
}
|
|
254
|
-
/**
|
|
255
|
-
* Use this method to create a customer service metrics download task with filter criteria for the customer service metrics report.
|
|
256
|
-
*
|
|
257
|
-
* @params acceptLanguage Use this header to specify the natural language in which the authenticated user desires the response.
|
|
258
|
-
* @params data The CreateServiceMetricsTaskRequest
|
|
259
|
-
*/
|
|
260
130
|
createCustomerServiceMetricTask(acceptLanguage, data) {
|
|
261
131
|
return this.post(`/customer_service_metric_task`, data, {
|
|
262
132
|
headers: {
|
|
@@ -264,11 +134,6 @@ class Feed extends Restful {
|
|
|
264
134
|
}
|
|
265
135
|
});
|
|
266
136
|
}
|
|
267
|
-
/**
|
|
268
|
-
* Use this method to retrieve customer service metric task details for the specified task.
|
|
269
|
-
*
|
|
270
|
-
* @param taskId Use this path parameter to specify the task ID value for the customer service metric task to retrieve.
|
|
271
|
-
*/
|
|
272
137
|
getCustomerServiceMetricTask(taskId) {
|
|
273
138
|
taskId = encodeURIComponent(taskId);
|
|
274
139
|
return this.get(`/customer_service_metric_task/${taskId}`);
|
|
@@ -1,79 +1,28 @@
|
|
|
1
1
|
import { operations } from '../../../../types/restful/specs/sell_finances_v1_oas3.js';
|
|
2
2
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
|
-
/**
|
|
4
|
-
* The Finances API is used by sellers in eBay's managed payments program to retrieve seller payout information.
|
|
5
|
-
*
|
|
6
|
-
* https://api.ebay.com/oauth/api_scope/sell.finances
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
3
|
export default class Finances extends Restful implements OpenApi<operations> {
|
|
10
4
|
static id: string;
|
|
11
5
|
get basePath(): string;
|
|
12
6
|
get subdomain(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Use this call to retrieve the details of a specific seller payout.
|
|
15
|
-
*
|
|
16
|
-
* @param payoutId The unique identifier of the payout.
|
|
17
|
-
*/
|
|
18
7
|
getPayout(payoutId: string): Promise<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Use this call to search for and retrieve one or more payout based on their payout date,
|
|
21
|
-
* or payout status using the filter parameter.
|
|
22
|
-
*
|
|
23
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of payout returned by this
|
|
24
|
-
* call.
|
|
25
|
-
* @param limit The number of payouts to return per page of the result set.
|
|
26
|
-
* @param offset Specifies the number of payouts to skip in the result set before returning the first payout in the
|
|
27
|
-
* paginated response.
|
|
28
|
-
* @param sort Allows sorting by payouts date in descending order with '-payoutDate' (default) and ascending with 'payoutDate'
|
|
29
|
-
*/
|
|
30
8
|
getPayouts({ filter, limit, offset, sort, }?: {
|
|
31
9
|
filter?: string;
|
|
32
10
|
limit?: number;
|
|
33
11
|
offset?: number;
|
|
34
12
|
sort?: 'payoutDate' | '-payoutDate';
|
|
35
13
|
}): Promise<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Search for and retrieve the details of multiple payouts.
|
|
38
|
-
* *
|
|
39
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of payout returned by this
|
|
40
|
-
* call.
|
|
41
|
-
*/
|
|
42
14
|
getPayoutSummary({ filter, }?: {
|
|
43
15
|
filter?: string;
|
|
44
16
|
}): Promise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieve details of one or more monetary transactions.
|
|
47
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of transaction returned by this
|
|
48
|
-
* call.
|
|
49
|
-
* @param limit The number of transaction to return per page of the result set.
|
|
50
|
-
* @param offset Specifies the number of payouts to skip in the result set before returning the first transaction in the
|
|
51
|
-
* paginated response.
|
|
52
|
-
* @param sort Allows sorting by transaction date in descending order with '-transactionDate' (default) and ascending with 'transactionDate'
|
|
53
|
-
*/
|
|
54
17
|
getTransactions({ filter, limit, offset, sort }?: {
|
|
55
18
|
filter?: string;
|
|
56
19
|
limit?: number;
|
|
57
20
|
offset?: number;
|
|
58
21
|
sort?: 'transactionDate' | '-transactionDate';
|
|
59
22
|
}): Promise<any>;
|
|
60
|
-
/**
|
|
61
|
-
* Retrieve total counts and values of the seller's order sales, seller credits, buyer refunds, and payment holds.
|
|
62
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of transaction returned by this
|
|
63
|
-
* call.
|
|
64
|
-
* @param limit The number of transaction to return per page of the result set.
|
|
65
|
-
*/
|
|
66
23
|
getTransactionSummary({ filter, }?: {
|
|
67
24
|
filter?: string;
|
|
68
25
|
}): Promise<any>;
|
|
69
|
-
/**
|
|
70
|
-
* Retrieve detailed information on a TRANSFER transaction type.
|
|
71
|
-
*
|
|
72
|
-
* @param transferId The unique identifier of the transfer.
|
|
73
|
-
*/
|
|
74
26
|
getTransfer(transferId: string): Promise<any>;
|
|
75
|
-
/**
|
|
76
|
-
* Retrieve all pending funds that have not yet been distributed through a seller payout.
|
|
77
|
-
*/
|
|
78
27
|
getSellerFundsSummary(): Promise<any>;
|
|
79
28
|
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import Restful from '../../index.js';
|
|
2
|
-
/**
|
|
3
|
-
* The Finances API is used by sellers in eBay's managed payments program to retrieve seller payout information.
|
|
4
|
-
*
|
|
5
|
-
* https://api.ebay.com/oauth/api_scope/sell.finances
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
2
|
class Finances extends Restful {
|
|
9
3
|
get basePath() {
|
|
10
4
|
return '/sell/finances/v1';
|
|
@@ -12,26 +6,10 @@ class Finances extends Restful {
|
|
|
12
6
|
get subdomain() {
|
|
13
7
|
return 'apiz';
|
|
14
8
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Use this call to retrieve the details of a specific seller payout.
|
|
17
|
-
*
|
|
18
|
-
* @param payoutId The unique identifier of the payout.
|
|
19
|
-
*/
|
|
20
9
|
getPayout(payoutId) {
|
|
21
10
|
payoutId = encodeURIComponent(payoutId);
|
|
22
11
|
return this.get(`/payout/${payoutId}`);
|
|
23
12
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Use this call to search for and retrieve one or more payout based on their payout date,
|
|
26
|
-
* or payout status using the filter parameter.
|
|
27
|
-
*
|
|
28
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of payout returned by this
|
|
29
|
-
* call.
|
|
30
|
-
* @param limit The number of payouts to return per page of the result set.
|
|
31
|
-
* @param offset Specifies the number of payouts to skip in the result set before returning the first payout in the
|
|
32
|
-
* paginated response.
|
|
33
|
-
* @param sort Allows sorting by payouts date in descending order with '-payoutDate' (default) and ascending with 'payoutDate'
|
|
34
|
-
*/
|
|
35
13
|
getPayouts({ filter, limit, offset, sort, } = {}) {
|
|
36
14
|
return this.get(`/payout`, {
|
|
37
15
|
params: {
|
|
@@ -42,24 +20,9 @@ class Finances extends Restful {
|
|
|
42
20
|
},
|
|
43
21
|
});
|
|
44
22
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Search for and retrieve the details of multiple payouts.
|
|
47
|
-
* *
|
|
48
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of payout returned by this
|
|
49
|
-
* call.
|
|
50
|
-
*/
|
|
51
23
|
getPayoutSummary({ filter, } = {}) {
|
|
52
24
|
return this.get(`/payout_summary`, { params: { filter } });
|
|
53
25
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Retrieve details of one or more monetary transactions.
|
|
56
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of transaction returned by this
|
|
57
|
-
* call.
|
|
58
|
-
* @param limit The number of transaction to return per page of the result set.
|
|
59
|
-
* @param offset Specifies the number of payouts to skip in the result set before returning the first transaction in the
|
|
60
|
-
* paginated response.
|
|
61
|
-
* @param sort Allows sorting by transaction date in descending order with '-transactionDate' (default) and ascending with 'transactionDate'
|
|
62
|
-
*/
|
|
63
26
|
getTransactions({ filter, limit, offset, sort } = {}) {
|
|
64
27
|
return this.get(`/transaction`, {
|
|
65
28
|
params: {
|
|
@@ -70,12 +33,6 @@ class Finances extends Restful {
|
|
|
70
33
|
},
|
|
71
34
|
});
|
|
72
35
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Retrieve total counts and values of the seller's order sales, seller credits, buyer refunds, and payment holds.
|
|
75
|
-
* @param filter One or more comma-separated criteria for narrowing down the collection of transaction returned by this
|
|
76
|
-
* call.
|
|
77
|
-
* @param limit The number of transaction to return per page of the result set.
|
|
78
|
-
*/
|
|
79
36
|
getTransactionSummary({ filter, } = {}) {
|
|
80
37
|
return this.get(`/transaction_summary`, {
|
|
81
38
|
params: {
|
|
@@ -83,18 +40,10 @@ class Finances extends Restful {
|
|
|
83
40
|
},
|
|
84
41
|
});
|
|
85
42
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Retrieve detailed information on a TRANSFER transaction type.
|
|
88
|
-
*
|
|
89
|
-
* @param transferId The unique identifier of the transfer.
|
|
90
|
-
*/
|
|
91
43
|
getTransfer(transferId) {
|
|
92
44
|
transferId = encodeURIComponent(transferId);
|
|
93
45
|
return this.get(`/transfer/${transferId}`);
|
|
94
46
|
}
|
|
95
|
-
/**
|
|
96
|
-
* Retrieve all pending funds that have not yet been distributed through a seller payout.
|
|
97
|
-
*/
|
|
98
47
|
getSellerFundsSummary() {
|
|
99
48
|
return this.get(`/seller_funds_summary`);
|
|
100
49
|
}
|