ebay-api 9.4.3 → 10.0.0-RC.1
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 +33 -2
- package/dist/api/restful/buy/browse/index.d.ts +1 -4
- package/dist/api/restful/buy/browse/index.js +0 -9
- package/dist/api/restful/buy/feed/index.d.ts +1 -0
- package/dist/api/restful/buy/feed/index.js +8 -0
- package/dist/api/restful/buy/marketing/index.d.ts +1 -3
- package/dist/api/restful/buy/marketing/index.js +0 -10
- package/dist/api/restful/buy/order/index.d.ts +1 -1
- package/dist/api/restful/buy/order/index.js +1 -1
- package/dist/api/restful/commerce/media/index.d.ts +8 -1
- package/dist/api/restful/commerce/media/index.js +24 -0
- package/dist/api/restful/commerce/notification/index.d.ts +5 -2
- package/dist/api/restful/commerce/notification/index.js +15 -1
- package/dist/api/restful/commerce/taxonomy/index.d.ts +1 -0
- package/dist/api/restful/commerce/taxonomy/index.js +4 -0
- package/dist/api/restful/sell/compliance/index.d.ts +0 -2
- package/dist/api/restful/sell/compliance/index.js +0 -3
- package/dist/api/restful/sell/feed/index.d.ts +7 -7
- package/dist/api/restful/sell/finances/index.d.ts +1 -1
- package/dist/api/restful/sell/listing/index.d.ts +2 -1
- package/dist/api/restful/sell/logistics/index.d.ts +6 -5
- package/dist/api/restful/sell/marketing/index.d.ts +4 -1
- package/dist/api/restful/sell/marketing/index.js +10 -0
- package/dist/api/restful/sell/metadata/index.d.ts +15 -0
- package/dist/api/restful/sell/metadata/index.js +65 -0
- package/dist/api/restful/sell/negotiation/index.d.ts +2 -1
- package/dist/ebay-api.min.mjs +1 -1
- package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +239 -655
- package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +34 -171
- package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +146 -217
- package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +19 -208
- package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +13 -84
- package/dist/types/restful/specs/buy_order_v2_oas3.d.ts +470 -0
- package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +37 -562
- package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +10 -130
- package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +6 -39
- package/dist/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +209 -132
- package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +272 -716
- package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +77 -339
- package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +11 -38
- package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +24 -91
- package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +21 -132
- package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +193 -1696
- package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +21 -148
- package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +122 -902
- package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +99 -275
- package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +212 -1257
- package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +77 -281
- package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +563 -3197
- package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +709 -330
- package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +15 -82
- package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +10 -43
- package/dist/types/restfulTypes.d.ts +33 -14
- package/lib/api/restful/buy/browse/index.d.ts +1 -4
- package/lib/api/restful/buy/browse/index.js +0 -9
- package/lib/api/restful/buy/feed/index.d.ts +1 -0
- package/lib/api/restful/buy/feed/index.js +8 -0
- package/lib/api/restful/buy/marketing/index.d.ts +1 -3
- package/lib/api/restful/buy/marketing/index.js +0 -10
- package/lib/api/restful/buy/order/index.d.ts +1 -1
- package/lib/api/restful/buy/order/index.js +1 -1
- package/lib/api/restful/commerce/media/index.d.ts +8 -1
- package/lib/api/restful/commerce/media/index.js +24 -0
- package/lib/api/restful/commerce/notification/index.d.ts +5 -2
- package/lib/api/restful/commerce/notification/index.js +15 -1
- package/lib/api/restful/commerce/taxonomy/index.d.ts +1 -0
- package/lib/api/restful/commerce/taxonomy/index.js +4 -0
- package/lib/api/restful/sell/compliance/index.d.ts +0 -2
- package/lib/api/restful/sell/compliance/index.js +0 -3
- package/lib/api/restful/sell/feed/index.d.ts +7 -7
- package/lib/api/restful/sell/finances/index.d.ts +1 -1
- package/lib/api/restful/sell/listing/index.d.ts +2 -1
- package/lib/api/restful/sell/logistics/index.d.ts +6 -5
- package/lib/api/restful/sell/marketing/index.d.ts +4 -1
- package/lib/api/restful/sell/marketing/index.js +10 -0
- package/lib/api/restful/sell/metadata/index.d.ts +15 -0
- package/lib/api/restful/sell/metadata/index.js +65 -0
- package/lib/api/restful/sell/negotiation/index.d.ts +2 -1
- package/lib/ebay-api.min.js +1 -1
- package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +239 -655
- package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +34 -171
- package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +146 -217
- package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +19 -208
- package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +13 -84
- package/lib/types/restful/specs/buy_order_v2_oas3.d.ts +470 -0
- package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +37 -562
- package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +10 -130
- package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +6 -39
- package/lib/types/restful/specs/commerce_media_v1_beta_oas3.d.ts +209 -132
- package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +272 -716
- package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +77 -339
- package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +11 -38
- package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +24 -91
- package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +21 -132
- package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +193 -1696
- package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +21 -148
- package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +122 -902
- package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +99 -275
- package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +212 -1257
- package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +77 -281
- package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +563 -3197
- package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +709 -330
- package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +15 -82
- package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +10 -43
- package/lib/types/restfulTypes.d.ts +33 -14
- package/package.json +2 -1
- package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -2400
- package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -2400
- /package/dist/types/restful/specs/{buy_order_v1_beta_oas3.js → buy_order_v2_oas3.js} +0 -0
- /package/lib/types/restful/specs/{buy_order_v1_beta_oas3.js → buy_order_v2_oas3.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SellFeedParams } from '../../../../types/index.js';
|
|
1
|
+
import { SellFeedParams, CreateOrderTaskRequest, CreateInventoryTaskRequest, CreateUserScheduleRequest, UpdateUserScheduleRequest, CreateTaskRequest, CreateServiceMetricsTaskRequest } 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
4
|
export default class Feed extends Restful implements OpenApi<operations> {
|
|
5
5
|
static id: string;
|
|
6
6
|
get basePath(): string;
|
|
7
7
|
getOrderTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId }?: SellFeedParams): Promise<any>;
|
|
8
|
-
createOrderTask(data:
|
|
8
|
+
createOrderTask(data: CreateOrderTaskRequest): Promise<any>;
|
|
9
9
|
getOrderTask(taskId: string): Promise<any>;
|
|
10
10
|
getInventoryTasks({ feedType, scheduleId, lookBackDays, dateRange, limit, offset }?: {
|
|
11
11
|
feedType?: string;
|
|
@@ -15,23 +15,23 @@ export default class Feed extends Restful implements OpenApi<operations> {
|
|
|
15
15
|
limit?: number;
|
|
16
16
|
offset?: number;
|
|
17
17
|
}): Promise<any>;
|
|
18
|
-
createInventoryTask(data:
|
|
18
|
+
createInventoryTask(data: CreateInventoryTaskRequest): Promise<any>;
|
|
19
19
|
getInventoryTask(taskId: string): Promise<any>;
|
|
20
20
|
getSchedules({ feedType, limit, offset }?: SellFeedParams): Promise<any>;
|
|
21
|
-
createSchedule(data:
|
|
21
|
+
createSchedule(data: CreateUserScheduleRequest): Promise<any>;
|
|
22
22
|
getSchedule(scheduleId: string): Promise<any>;
|
|
23
|
-
updateSchedule(scheduleId: string, data?:
|
|
23
|
+
updateSchedule(scheduleId: string, data?: UpdateUserScheduleRequest): Promise<any>;
|
|
24
24
|
deleteSchedule(scheduleId: string): Promise<any>;
|
|
25
25
|
getLatestResultFile(scheduleId: string): Promise<any>;
|
|
26
26
|
getScheduleTemplate(scheduleTemplateId: string): Promise<any>;
|
|
27
27
|
getScheduleTemplates({ feedType, limit, offset }?: SellFeedParams): Promise<any>;
|
|
28
28
|
getTasks({ dateRange, feedType, limit, lookBackDays, offset, scheduleId }?: SellFeedParams): Promise<any>;
|
|
29
|
-
createTask(data:
|
|
29
|
+
createTask(data: CreateTaskRequest): Promise<any>;
|
|
30
30
|
getInputFile(taskId: string): Promise<any>;
|
|
31
31
|
getResultFile(taskId: string): Promise<any>;
|
|
32
32
|
getTask(taskId: string): Promise<any>;
|
|
33
33
|
uploadFile(taskId: string, data?: any): Promise<any>;
|
|
34
34
|
getCustomerServiceMetricTasks({ dateRange, feedType, limit, lookBackDays, offset }?: SellFeedParams): Promise<any>;
|
|
35
|
-
createCustomerServiceMetricTask(acceptLanguage: string, data:
|
|
35
|
+
createCustomerServiceMetricTask(acceptLanguage: string, data: CreateServiceMetricsTaskRequest): Promise<any>;
|
|
36
36
|
getCustomerServiceMetricTask(taskId: string): Promise<any>;
|
|
37
37
|
}
|
|
@@ -15,7 +15,7 @@ export default class Finances extends Restful implements OpenApi<operations> {
|
|
|
15
15
|
filter?: string;
|
|
16
16
|
}): Promise<any>;
|
|
17
17
|
getTransactions({ filter, limit, offset, sort }?: {
|
|
18
|
-
filter?: string;
|
|
18
|
+
filter?: string | string[];
|
|
19
19
|
limit?: number;
|
|
20
20
|
offset?: number;
|
|
21
21
|
sort?: 'transactionDate' | '-transactionDate';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ItemDraft } from '../../../../types/index.js';
|
|
1
2
|
import { operations } from '../../../../types/restful/specs/sell_listing_v1_beta_oas3.js';
|
|
2
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
4
|
export default class Listing extends Restful implements OpenApi<operations> {
|
|
4
5
|
static id: string;
|
|
5
6
|
get basePath(): string;
|
|
6
|
-
createItemDraft(data?:
|
|
7
|
+
createItemDraft(data?: ItemDraft): Promise<any>;
|
|
7
8
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { ShippingQuoteRequest, CreateShipmentFromQuoteRequest } from '../../../../types/index.js';
|
|
1
2
|
import { operations } from '../../../../types/restful/specs/sell_logistics_v1_oas3.js';
|
|
2
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
4
|
export default class Logistics extends Restful implements OpenApi<operations> {
|
|
4
5
|
static id: string;
|
|
5
6
|
get basePath(): string;
|
|
6
|
-
createShippingQuote(data:
|
|
7
|
+
createShippingQuote(data: ShippingQuoteRequest): Promise<any>;
|
|
7
8
|
getShippingQuote(shippingQuoteId: string): Promise<any>;
|
|
8
|
-
createFromShippingQuote(data:
|
|
9
|
-
getShipment(shipmentId:
|
|
10
|
-
downloadLabelFile(shipmentId:
|
|
11
|
-
cancelShipment(shipmentId:
|
|
9
|
+
createFromShippingQuote(data: CreateShipmentFromQuoteRequest): Promise<any>;
|
|
10
|
+
getShipment(shipmentId: string): Promise<any>;
|
|
11
|
+
downloadLabelFile(shipmentId: string): Promise<any>;
|
|
12
|
+
cancelShipment(shipmentId: string): Promise<any>;
|
|
12
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BulkCreateAdRequest, BulkCreateAdsByInventoryReferenceRequest, BulkCreateKeywordRequest, BulkCreateNegativeKeywordRequest, BulkDeleteAdRequest, BulkDeleteAdsByInventoryReferenceRequest, BulkUpdateAdStatusByListingIdRequest, BulkUpdateAdStatusRequest, BulkUpdateKeywordRequest, BulkUpdateNegativeKeywordRequest, CloneCampaignRequest, CreateAdGroupRequest, CreateAdRequest, CreateAdsByInventoryReferenceRequest, CreateCampaignRequest, CreateEmailCampaignRequest, CreateKeywordRequest, CreateNegativeKeywordRequest, CreateReportTask, ItemPriceMarkdown, ItemPromotion, QuickSetupRequest, TargetedBidRequest, TargetedKeywordRequest, UpdateAdGroupRequest, UpdateAdrateStrategyRequest, UpdateBidPercentageRequest, UpdateCampaignBudgetRequest, UpdateCampaignIdentificationRequest, UpdateCampaignRequest, UpdateKeywordRequest, UpdateNegativeKeywordRequest } from '../../../../types/index.js';
|
|
1
|
+
import { BulkCreateAdRequest, BulkCreateAdsByInventoryReferenceRequest, BulkCreateKeywordRequest, BulkCreateNegativeKeywordRequest, BulkDeleteAdRequest, BulkDeleteAdsByInventoryReferenceRequest, BulkUpdateAdStatusByListingIdRequest, BulkUpdateAdStatusRequest, BulkUpdateKeywordRequest, BulkUpdateNegativeKeywordRequest, CloneCampaignRequest, CreateAdGroupRequest, CreateAdRequest, CreateAdsByInventoryReferenceRequest, CreateCampaignRequest, CreateEmailCampaignRequest, CreateKeywordRequest, CreateNegativeKeywordRequest, CreateReportTask, ItemPriceMarkdown, ItemPromotion, QuickSetupRequest, TargetedBidRequest, TargetedKeywordRequest, UpdateAdGroupRequest, UpdateAdrateStrategyRequest, UpdateBidPercentageRequest, UpdateCampaignBudgetRequest, UpdateCampaignIdentificationRequest, UpdateCampaignRequest, UpdateKeywordRequest, UpdateNegativeKeywordRequest, SuggestMaxCpcRequest, UpdateBiddingStrategyRequest } from '../../../../types/index.js';
|
|
2
2
|
import { operations } from '../../../../types/restful/specs/sell_marketing_v1_oas3.js';
|
|
3
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
4
4
|
export default class Marketing extends Restful implements OpenApi<operations> {
|
|
@@ -145,4 +145,7 @@ export default class Marketing extends Restful implements OpenApi<operations> {
|
|
|
145
145
|
getEmailPreview(emailCampaignId: string): Promise<any>;
|
|
146
146
|
getAudiences(): Promise<any>;
|
|
147
147
|
getEmailReport(startDate: string, endDate: string): Promise<any>;
|
|
148
|
+
suggestBudget(): Promise<any>;
|
|
149
|
+
suggestMaxCpc(body?: SuggestMaxCpcRequest): Promise<any>;
|
|
150
|
+
updateBiddingStrategy(campaignId: string, body?: UpdateBiddingStrategyRequest): Promise<any>;
|
|
148
151
|
}
|
|
@@ -417,6 +417,16 @@ class Marketing extends index_js_1.default {
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
|
+
suggestBudget() {
|
|
421
|
+
return this.get('/ad_campaign/suggest_budget');
|
|
422
|
+
}
|
|
423
|
+
suggestMaxCpc(body) {
|
|
424
|
+
return this.post('/ad_campaign/suggest_max_cpc', body);
|
|
425
|
+
}
|
|
426
|
+
updateBiddingStrategy(campaignId, body) {
|
|
427
|
+
campaignId = encodeURIComponent(campaignId);
|
|
428
|
+
return this.post(`/ad_campaign/${campaignId}/update_bidding_strategy`, body);
|
|
429
|
+
}
|
|
420
430
|
}
|
|
421
431
|
Marketing.id = 'Marketing';
|
|
422
432
|
exports.default = Marketing;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SpecificationRequest, PropertyNamesRequest, PropertyValuesRequest, MultiCompatibilityPropertyValuesRequest, ProductRequest } from '../../../../types/index.js';
|
|
1
2
|
import { operations } from '../../../../types/restful/specs/sell_metadata_v1_oas3.js';
|
|
2
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
4
|
export default class Metadata extends Restful implements OpenApi<operations> {
|
|
@@ -12,4 +13,18 @@ export default class Metadata extends Restful implements OpenApi<operations> {
|
|
|
12
13
|
getProductAdoptionPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
13
14
|
getReturnPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
14
15
|
getHazardousMaterialsLabels(marketplaceId: string): Promise<any>;
|
|
16
|
+
getCategoryPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
17
|
+
getClassifiedAdPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
18
|
+
getCurrencies(marketplaceId: string): Promise<any>;
|
|
19
|
+
getListingTypePolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
20
|
+
getMotorsListingPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
21
|
+
getProductSafetyLabels(marketplaceId: string): Promise<any>;
|
|
22
|
+
getRegulatoryPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
23
|
+
getShippingPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
24
|
+
getSiteVisibilityPolicies(marketplaceId: string, filter?: string): Promise<any>;
|
|
25
|
+
getCompatibilitiesBySpecification(body?: SpecificationRequest): Promise<any>;
|
|
26
|
+
getCompatibilityPropertyNames(body?: PropertyNamesRequest): Promise<any>;
|
|
27
|
+
getCompatibilityPropertyValues(body?: PropertyValuesRequest): Promise<any>;
|
|
28
|
+
getMultiCompatibilityPropertyValues(body?: MultiCompatibilityPropertyValuesRequest): Promise<any>;
|
|
29
|
+
getProductCompatibilities(body?: ProductRequest): Promise<any>;
|
|
15
30
|
}
|
|
@@ -72,6 +72,71 @@ class Metadata extends index_js_1.default {
|
|
|
72
72
|
marketplaceId = encodeURIComponent(marketplaceId);
|
|
73
73
|
return this.get(`/marketplace/${marketplaceId}/get_hazardous_materials_labels`);
|
|
74
74
|
}
|
|
75
|
+
getCategoryPolicies(marketplaceId, filter) {
|
|
76
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
77
|
+
return this.get(`/marketplace/${marketplaceId}/get_category_policies`, {
|
|
78
|
+
params: { filter }
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
getClassifiedAdPolicies(marketplaceId, filter) {
|
|
82
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
83
|
+
return this.get(`/marketplace/${marketplaceId}/get_classified_ad_policies`, {
|
|
84
|
+
params: { filter }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
getCurrencies(marketplaceId) {
|
|
88
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
89
|
+
return this.get(`/marketplace/${marketplaceId}/get_currencies`);
|
|
90
|
+
}
|
|
91
|
+
getListingTypePolicies(marketplaceId, filter) {
|
|
92
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
93
|
+
return this.get(`/marketplace/${marketplaceId}/get_listing_type_policies`, {
|
|
94
|
+
params: { filter }
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
getMotorsListingPolicies(marketplaceId, filter) {
|
|
98
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
99
|
+
return this.get(`/marketplace/${marketplaceId}/get_motors_listing_policies`, {
|
|
100
|
+
params: { filter }
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
getProductSafetyLabels(marketplaceId) {
|
|
104
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
105
|
+
return this.get(`/marketplace/${marketplaceId}/get_product_safety_labels`);
|
|
106
|
+
}
|
|
107
|
+
getRegulatoryPolicies(marketplaceId, filter) {
|
|
108
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
109
|
+
return this.get(`/marketplace/${marketplaceId}/get_regulatory_policies`, {
|
|
110
|
+
params: { filter }
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
getShippingPolicies(marketplaceId, filter) {
|
|
114
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
115
|
+
return this.get(`/marketplace/${marketplaceId}/get_shipping_policies`, {
|
|
116
|
+
params: { filter }
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
getSiteVisibilityPolicies(marketplaceId, filter) {
|
|
120
|
+
marketplaceId = encodeURIComponent(marketplaceId);
|
|
121
|
+
return this.get(`/marketplace/${marketplaceId}/get_site_visibility_policies`, {
|
|
122
|
+
params: { filter }
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
getCompatibilitiesBySpecification(body) {
|
|
126
|
+
return this.post('/compatibilities/get_compatibilities_by_specification', body);
|
|
127
|
+
}
|
|
128
|
+
getCompatibilityPropertyNames(body) {
|
|
129
|
+
return this.post('/compatibilities/get_compatibility_property_names', body);
|
|
130
|
+
}
|
|
131
|
+
getCompatibilityPropertyValues(body) {
|
|
132
|
+
return this.post('/compatibilities/get_compatibility_property_values', body);
|
|
133
|
+
}
|
|
134
|
+
getMultiCompatibilityPropertyValues(body) {
|
|
135
|
+
return this.post('/compatibilities/get_multi_compatibility_property_values', body);
|
|
136
|
+
}
|
|
137
|
+
getProductCompatibilities(body) {
|
|
138
|
+
return this.post('/compatibilities/get_product_compatibilities', body);
|
|
139
|
+
}
|
|
75
140
|
}
|
|
76
141
|
Metadata.id = 'Metadata';
|
|
77
142
|
exports.default = Metadata;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CreateOffersRequest } from '../../../../types/index.js';
|
|
1
2
|
import { operations } from '../../../../types/restful/specs/sell_negotiation_v1_oas3.js';
|
|
2
3
|
import Restful, { OpenApi } from '../../index.js';
|
|
3
4
|
export default class Negotiation extends Restful implements OpenApi<operations> {
|
|
@@ -7,5 +8,5 @@ export default class Negotiation extends Restful implements OpenApi<operations>
|
|
|
7
8
|
limit?: string;
|
|
8
9
|
offset?: string;
|
|
9
10
|
}): Promise<any>;
|
|
10
|
-
sendOfferToInterestedBuyers(data:
|
|
11
|
+
sendOfferToInterestedBuyers(data: CreateOffersRequest): Promise<any>;
|
|
11
12
|
}
|