ebay-api
Version:
eBay API for Node and Browser
73 lines (72 loc) • 2.57 kB
JavaScript
import Restful from '../../index.js';
class Metadata extends Restful {
get basePath() {
return '/sell/metadata/v1';
}
getSalesTaxJurisdictions(countryCode) {
countryCode = encodeURIComponent(countryCode);
return this.get(`/country/${countryCode}/sales_tax_jurisdiction`);
}
getAutomotivePartsCompatibilityPolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_automotive_parts_compatibility_policies`, {
params: {
filter
}
});
}
getExtendedProducerResponsibilityPolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_extended_producer_responsibility_policies`, {
params: {
filter
}
});
}
getItemConditionPolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_item_condition_policies`, {
params: {
filter
}
});
}
getListingStructurePolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_listing_structure_policies`, {
params: {
filter
}
});
}
getNegotiatedPricePolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_negotiated_price_policies`, {
params: {
filter
}
});
}
getProductAdoptionPolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_product_adoption_policies`, {
params: {
filter
}
});
}
getReturnPolicies(marketplaceId, filter) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_return_policies`, {
params: {
filter
}
});
}
getHazardousMaterialsLabels(marketplaceId) {
marketplaceId = encodeURIComponent(marketplaceId);
return this.get(`/marketplace/${marketplaceId}/get_hazardous_materials_labels`);
}
}
Metadata.id = 'Metadata';
export default Metadata;