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