ebay-mcp 1.4.3
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/LICENSE +201 -0
- package/README.md +586 -0
- package/build/api/account-management/account.d.ts +216 -0
- package/build/api/account-management/account.js +305 -0
- package/build/api/analytics-and-report/analytics.d.ts +33 -0
- package/build/api/analytics-and-report/analytics.js +102 -0
- package/build/api/client.d.ts +89 -0
- package/build/api/client.js +343 -0
- package/build/api/communication/feedback.d.ts +45 -0
- package/build/api/communication/feedback.js +119 -0
- package/build/api/communication/message.d.ts +55 -0
- package/build/api/communication/message.js +131 -0
- package/build/api/communication/negotiation.d.ts +39 -0
- package/build/api/communication/negotiation.js +97 -0
- package/build/api/communication/notification.d.ts +128 -0
- package/build/api/communication/notification.js +373 -0
- package/build/api/index.d.ts +96 -0
- package/build/api/index.js +121 -0
- package/build/api/listing-management/inventory.d.ts +216 -0
- package/build/api/listing-management/inventory.js +633 -0
- package/build/api/listing-metadata/metadata.d.ts +154 -0
- package/build/api/listing-metadata/metadata.js +485 -0
- package/build/api/listing-metadata/taxonomy.d.ts +38 -0
- package/build/api/listing-metadata/taxonomy.js +58 -0
- package/build/api/marketing-and-promotions/marketing.d.ts +395 -0
- package/build/api/marketing-and-promotions/marketing.js +565 -0
- package/build/api/marketing-and-promotions/recommendation.d.ts +20 -0
- package/build/api/marketing-and-promotions/recommendation.js +32 -0
- package/build/api/order-management/dispute.d.ts +65 -0
- package/build/api/order-management/dispute.js +69 -0
- package/build/api/order-management/fulfillment.d.ts +80 -0
- package/build/api/order-management/fulfillment.js +89 -0
- package/build/api/other/compliance.d.ts +26 -0
- package/build/api/other/compliance.js +47 -0
- package/build/api/other/edelivery.d.ts +153 -0
- package/build/api/other/edelivery.js +219 -0
- package/build/api/other/identity.d.ts +17 -0
- package/build/api/other/identity.js +24 -0
- package/build/api/other/translation.d.ts +14 -0
- package/build/api/other/translation.js +22 -0
- package/build/api/other/vero.d.ts +30 -0
- package/build/api/other/vero.js +48 -0
- package/build/auth/oauth-metadata.d.ts +46 -0
- package/build/auth/oauth-metadata.js +59 -0
- package/build/auth/oauth-middleware.d.ts +35 -0
- package/build/auth/oauth-middleware.js +99 -0
- package/build/auth/oauth-types.d.ts +66 -0
- package/build/auth/oauth-types.js +4 -0
- package/build/auth/oauth.d.ts +93 -0
- package/build/auth/oauth.js +383 -0
- package/build/auth/scope-utils.d.ts +70 -0
- package/build/auth/scope-utils.js +304 -0
- package/build/auth/token-verifier.d.ts +57 -0
- package/build/auth/token-verifier.js +172 -0
- package/build/config/environment.d.ts +61 -0
- package/build/config/environment.js +260 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +98 -0
- package/build/schemas/account-management/account.d.ts +5324 -0
- package/build/schemas/account-management/account.js +366 -0
- package/build/schemas/analytics/analytics.d.ts +167 -0
- package/build/schemas/analytics/analytics.js +191 -0
- package/build/schemas/communication/messages.d.ts +1872 -0
- package/build/schemas/communication/messages.js +348 -0
- package/build/schemas/fulfillment/orders.d.ts +4655 -0
- package/build/schemas/fulfillment/orders.js +317 -0
- package/build/schemas/index.d.ts +2100 -0
- package/build/schemas/index.js +68 -0
- package/build/schemas/inventory-management/inventory.d.ts +6419 -0
- package/build/schemas/inventory-management/inventory.js +450 -0
- package/build/schemas/marketing/marketing.d.ts +14181 -0
- package/build/schemas/marketing/marketing.js +1088 -0
- package/build/schemas/metadata/metadata.d.ts +5259 -0
- package/build/schemas/metadata/metadata.js +614 -0
- package/build/schemas/other/other-apis.d.ts +257 -0
- package/build/schemas/other/other-apis.js +372 -0
- package/build/schemas/taxonomy/taxonomy.d.ts +215 -0
- package/build/schemas/taxonomy/taxonomy.js +571 -0
- package/build/scripts/auto-setup.d.ts +12 -0
- package/build/scripts/auto-setup.js +277 -0
- package/build/scripts/diagnostics.d.ts +8 -0
- package/build/scripts/diagnostics.js +299 -0
- package/build/scripts/download-specs.d.ts +1 -0
- package/build/scripts/download-specs.js +116 -0
- package/build/scripts/interactive-setup.d.ts +21 -0
- package/build/scripts/interactive-setup.js +723 -0
- package/build/server-http.d.ts +11 -0
- package/build/server-http.js +361 -0
- package/build/tools/definitions/account-with-schemas.d.ts +39 -0
- package/build/tools/definitions/account-with-schemas.js +170 -0
- package/build/tools/definitions/account.d.ts +12 -0
- package/build/tools/definitions/account.js +428 -0
- package/build/tools/definitions/analytics.d.ts +25 -0
- package/build/tools/definitions/analytics.js +66 -0
- package/build/tools/definitions/communication.d.ts +12 -0
- package/build/tools/definitions/communication.js +151 -0
- package/build/tools/definitions/fulfillment.d.ts +12 -0
- package/build/tools/definitions/fulfillment.js +326 -0
- package/build/tools/definitions/index.d.ts +25 -0
- package/build/tools/definitions/index.js +37 -0
- package/build/tools/definitions/inventory.d.ts +12 -0
- package/build/tools/definitions/inventory.js +429 -0
- package/build/tools/definitions/marketing.d.ts +12 -0
- package/build/tools/definitions/marketing.js +1095 -0
- package/build/tools/definitions/metadata.d.ts +12 -0
- package/build/tools/definitions/metadata.js +188 -0
- package/build/tools/definitions/other.d.ts +13 -0
- package/build/tools/definitions/other.js +309 -0
- package/build/tools/definitions/taxonomy.d.ts +25 -0
- package/build/tools/definitions/taxonomy.js +64 -0
- package/build/tools/definitions/token-management.d.ts +35 -0
- package/build/tools/definitions/token-management.js +103 -0
- package/build/tools/index.d.ts +11 -0
- package/build/tools/index.js +1003 -0
- package/build/tools/schemas.d.ts +14764 -0
- package/build/tools/schemas.js +667 -0
- package/build/tools/tool-definitions.d.ts +35 -0
- package/build/tools/tool-definitions.js +3534 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.d.ts +197 -0
- package/build/types/application-settings/developerAnalyticsV1BetaOas3.js +5 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.d.ts +155 -0
- package/build/types/application-settings/developerClientRegistrationV1Oas3.js +5 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.d.ts +246 -0
- package/build/types/application-settings/developerKeyManagementV1Oas3.js +5 -0
- package/build/types/ebay-enums.d.ts +1204 -0
- package/build/types/ebay-enums.js +1330 -0
- package/build/types/ebay.d.ts +143 -0
- package/build/types/ebay.js +123 -0
- package/build/types/index.d.ts +6 -0
- package/build/types/index.js +10 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.d.ts +2579 -0
- package/build/types/sell-apps/account-management/sellAccountV1Oas3.js +5 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.d.ts +446 -0
- package/build/types/sell-apps/analytics-and-report/sellAnalyticsV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.d.ts +705 -0
- package/build/types/sell-apps/communication/commerceFeedbackV1BetaOas3.js +5 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.d.ts +590 -0
- package/build/types/sell-apps/communication/commerceMessageV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.d.ts +1276 -0
- package/build/types/sell-apps/communication/commerceNotificationV1Oas3.js +5 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.d.ts +277 -0
- package/build/types/sell-apps/communication/sellNegotiationV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.d.ts +3133 -0
- package/build/types/sell-apps/listing-management/sellInventoryV1Oas3.js +5 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.d.ts +2289 -0
- package/build/types/sell-apps/listing-metadata/sellMetadataV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/markeitng-and-promotions/sellRecommendationV1Oas3.js +5 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.d.ts +1869 -0
- package/build/types/sell-apps/order-management/sellFulfillmentV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.d.ts +178 -0
- package/build/types/sell-apps/other-apis/commerceIdentityV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.d.ts +128 -0
- package/build/types/sell-apps/other-apis/commerceTranslationV1BetaOas3.js +5 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.d.ts +417 -0
- package/build/types/sell-apps/other-apis/commerceVeroV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.d.ts +273 -0
- package/build/types/sell-apps/other-apis/sellComplianceV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.d.ts +2537 -0
- package/build/types/sell-apps/other-apis/sellEdeliveryInternationalShippingOas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.d.ts +6650 -0
- package/build/types/sell-apps/other-apis/sellMarketingV1Oas3.js +5 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.d.ts +172 -0
- package/build/types/sell-apps/other-apis/sellRecommendationV1Oas3.js +5 -0
- package/build/utils/account-management/account.d.ts +1094 -0
- package/build/utils/account-management/account.js +831 -0
- package/build/utils/communication/feedback.d.ts +152 -0
- package/build/utils/communication/feedback.js +216 -0
- package/build/utils/communication/message.d.ts +174 -0
- package/build/utils/communication/message.js +242 -0
- package/build/utils/communication/negotiation.d.ts +123 -0
- package/build/utils/communication/negotiation.js +150 -0
- package/build/utils/communication/notification.d.ts +370 -0
- package/build/utils/communication/notification.js +369 -0
- package/build/utils/date-converter.d.ts +59 -0
- package/build/utils/date-converter.js +160 -0
- package/build/utils/llm-client-detector.d.ts +54 -0
- package/build/utils/llm-client-detector.js +318 -0
- package/build/utils/oauth-helper.d.ts +37 -0
- package/build/utils/oauth-helper.js +315 -0
- package/build/utils/order-management/dispute.d.ts +346 -0
- package/build/utils/order-management/dispute.js +369 -0
- package/build/utils/order-management/fulfillment.d.ts +200 -0
- package/build/utils/order-management/fulfillment.js +205 -0
- package/build/utils/other/compliance.d.ts +49 -0
- package/build/utils/other/compliance.js +76 -0
- package/build/utils/other/edelivery.d.ts +310 -0
- package/build/utils/other/edelivery.js +241 -0
- package/build/utils/other/identity.d.ts +13 -0
- package/build/utils/other/identity.js +13 -0
- package/build/utils/other/translation.d.ts +28 -0
- package/build/utils/other/translation.js +41 -0
- package/build/utils/other/vero.d.ts +61 -0
- package/build/utils/other/vero.js +90 -0
- package/build/utils/scope-helper.d.ts +49 -0
- package/build/utils/scope-helper.js +207 -0
- package/build/utils/security-checker.d.ts +46 -0
- package/build/utils/security-checker.js +248 -0
- package/build/utils/setup-validator.d.ts +25 -0
- package/build/utils/setup-validator.js +305 -0
- package/build/utils/token-utils.d.ts +40 -0
- package/build/utils/token-utils.js +40 -0
- package/package.json +115 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dispute API - Manage payment disputes
|
|
3
|
+
* Based on: docs/sell-apps/order-management/sell_fulfillment_v1_oas3.json
|
|
4
|
+
*/
|
|
5
|
+
export class DisputeApi {
|
|
6
|
+
client;
|
|
7
|
+
basePath = '/sell/fulfillment/v1';
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get payment dispute details
|
|
13
|
+
*/
|
|
14
|
+
async getPaymentDispute(paymentDisputeId) {
|
|
15
|
+
return await this.client.get(`${this.basePath}/payment_dispute/${paymentDisputeId}`);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get payment dispute evidence file
|
|
19
|
+
*/
|
|
20
|
+
async fetchEvidenceContent(paymentDisputeId, evidenceId, fileId) {
|
|
21
|
+
const params = {
|
|
22
|
+
evidence_id: evidenceId,
|
|
23
|
+
file_id: fileId,
|
|
24
|
+
};
|
|
25
|
+
return await this.client.get(`${this.basePath}/payment_dispute/${paymentDisputeId}/fetch_evidence_content`, params);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get payment dispute activity
|
|
29
|
+
*/
|
|
30
|
+
async getActivities(paymentDisputeId) {
|
|
31
|
+
return await this.client.get(`${this.basePath}/payment_dispute/${paymentDisputeId}/activity`);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Search for payment disputes
|
|
35
|
+
*/
|
|
36
|
+
async getPaymentDisputeSummaries(params) {
|
|
37
|
+
return await this.client.get(`${this.basePath}/payment_dispute_summary`, params);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Contest a payment dispute
|
|
41
|
+
*/
|
|
42
|
+
async contestPaymentDispute(paymentDisputeId, body) {
|
|
43
|
+
return await this.client.post(`${this.basePath}/payment_dispute/${paymentDisputeId}/contest`, body);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Accept a payment dispute
|
|
47
|
+
*/
|
|
48
|
+
async acceptPaymentDispute(paymentDisputeId, body) {
|
|
49
|
+
return await this.client.post(`${this.basePath}/payment_dispute/${paymentDisputeId}/accept`, body);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Upload an evidence file
|
|
53
|
+
*/
|
|
54
|
+
async uploadEvidenceFile(paymentDisputeId, body) {
|
|
55
|
+
return await this.client.post(`${this.basePath}/payment_dispute/${paymentDisputeId}/upload_evidence_file`, body, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Add an evidence file
|
|
59
|
+
*/
|
|
60
|
+
async addEvidence(paymentDisputeId, body) {
|
|
61
|
+
return await this.client.post(`${this.basePath}/payment_dispute/${paymentDisputeId}/add_evidence`, body);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Update an evidence file
|
|
65
|
+
*/
|
|
66
|
+
async updateEvidence(paymentDisputeId, body) {
|
|
67
|
+
return await this.client.post(`${this.basePath}/payment_dispute/${paymentDisputeId}/update_evidence`, body);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { components } from '../../types/sell-apps/order-management/sellFulfillmentV1Oas3.js';
|
|
2
|
+
import type { EbayApiClient } from '../client.js';
|
|
3
|
+
type IssueRefundRequest = components['schemas']['IssueRefundRequest'];
|
|
4
|
+
type ShippingFulfillmentDetails = components['schemas']['ShippingFulfillmentDetails'];
|
|
5
|
+
type Order = components['schemas']['Order'];
|
|
6
|
+
type OrderSearchPagedCollection = components['schemas']['OrderSearchPagedCollection'];
|
|
7
|
+
type Refund = components['schemas']['Refund'];
|
|
8
|
+
type ShippingFulfillment = components['schemas']['ShippingFulfillment'];
|
|
9
|
+
type ShippingFulfillmentPagedCollection = components['schemas']['ShippingFulfillmentPagedCollection'];
|
|
10
|
+
/**
|
|
11
|
+
* Fulfillment API - Order processing and shipping
|
|
12
|
+
* Based on: docs/sell-apps/order-management/sell_fulfillment_v1_oas3.json
|
|
13
|
+
*/
|
|
14
|
+
export declare class FulfillmentApi {
|
|
15
|
+
private client;
|
|
16
|
+
private readonly basePath;
|
|
17
|
+
constructor(client: EbayApiClient);
|
|
18
|
+
/**
|
|
19
|
+
* Get orders for the seller
|
|
20
|
+
*/
|
|
21
|
+
getOrders(filter?: string, limit?: number, offset?: number): Promise<OrderSearchPagedCollection>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a specific order
|
|
24
|
+
*/
|
|
25
|
+
getOrder(orderId: string): Promise<Order>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a shipping fulfillment
|
|
28
|
+
*/
|
|
29
|
+
createShippingFulfillment(orderId: string, fulfillment: ShippingFulfillmentDetails): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Get shipping fulfillments for an order
|
|
32
|
+
*/
|
|
33
|
+
getShippingFulfillments(orderId: string): Promise<ShippingFulfillmentPagedCollection>;
|
|
34
|
+
/**
|
|
35
|
+
* Get a specific shipping fulfillment
|
|
36
|
+
* @param orderId The unique identifier of the order.
|
|
37
|
+
* @param fulfillmentId The unique identifier of the fulfillment.
|
|
38
|
+
*/
|
|
39
|
+
getShippingFulfillment(orderId: string, fulfillmentId: string): Promise<ShippingFulfillment>;
|
|
40
|
+
/**
|
|
41
|
+
* Issue a refund
|
|
42
|
+
*/
|
|
43
|
+
issueRefund(orderId: string, refund: IssueRefundRequest): Promise<Refund>;
|
|
44
|
+
/**
|
|
45
|
+
* Get payment dispute summaries
|
|
46
|
+
* Note: This method delegates to the DisputeApi
|
|
47
|
+
*/
|
|
48
|
+
getPaymentDisputeSummaries(params?: {
|
|
49
|
+
order_id?: string;
|
|
50
|
+
buyer_username?: string;
|
|
51
|
+
open_date_from?: string;
|
|
52
|
+
open_date_to?: string;
|
|
53
|
+
payment_dispute_status?: string;
|
|
54
|
+
limit?: number;
|
|
55
|
+
offset?: number;
|
|
56
|
+
}): Promise<unknown>;
|
|
57
|
+
/**
|
|
58
|
+
* Get payment dispute activities
|
|
59
|
+
* Note: This method delegates to the DisputeApi
|
|
60
|
+
*/
|
|
61
|
+
getActivities(paymentDisputeId: string): Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Get payment dispute details
|
|
64
|
+
* Note: This method delegates to the DisputeApi
|
|
65
|
+
*/
|
|
66
|
+
getPaymentDispute(paymentDisputeId: string): Promise<unknown>;
|
|
67
|
+
/**
|
|
68
|
+
* Get shipping quote
|
|
69
|
+
*/
|
|
70
|
+
getShippingQuote(request: {
|
|
71
|
+
rateTableId?: string;
|
|
72
|
+
shippingAddress?: unknown;
|
|
73
|
+
lineItems?: unknown[];
|
|
74
|
+
}): Promise<unknown>;
|
|
75
|
+
/**
|
|
76
|
+
* Get cancellation details for an order
|
|
77
|
+
*/
|
|
78
|
+
getCancellation(orderId: string, cancellationId: string): Promise<unknown>;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fulfillment API - Order processing and shipping
|
|
3
|
+
* Based on: docs/sell-apps/order-management/sell_fulfillment_v1_oas3.json
|
|
4
|
+
*/
|
|
5
|
+
export class FulfillmentApi {
|
|
6
|
+
client;
|
|
7
|
+
basePath = '/sell/fulfillment/v1';
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get orders for the seller
|
|
13
|
+
*/
|
|
14
|
+
async getOrders(filter, limit, offset) {
|
|
15
|
+
const params = {};
|
|
16
|
+
if (filter)
|
|
17
|
+
params.filter = filter;
|
|
18
|
+
if (limit)
|
|
19
|
+
params.limit = limit;
|
|
20
|
+
if (offset)
|
|
21
|
+
params.offset = offset;
|
|
22
|
+
return await this.client.get(`${this.basePath}/order`, params);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get a specific order
|
|
26
|
+
*/
|
|
27
|
+
async getOrder(orderId) {
|
|
28
|
+
return await this.client.get(`${this.basePath}/order/${orderId}`);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Create a shipping fulfillment
|
|
32
|
+
*/
|
|
33
|
+
async createShippingFulfillment(orderId, fulfillment) {
|
|
34
|
+
return await this.client.post(`${this.basePath}/order/${orderId}/shipping_fulfillment`, fulfillment);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Get shipping fulfillments for an order
|
|
38
|
+
*/
|
|
39
|
+
async getShippingFulfillments(orderId) {
|
|
40
|
+
return await this.client.get(`${this.basePath}/order/${orderId}/shipping_fulfillment`);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a specific shipping fulfillment
|
|
44
|
+
* @param orderId The unique identifier of the order.
|
|
45
|
+
* @param fulfillmentId The unique identifier of the fulfillment.
|
|
46
|
+
*/
|
|
47
|
+
async getShippingFulfillment(orderId, fulfillmentId) {
|
|
48
|
+
return await this.client.get(`${this.basePath}/order/${orderId}/shipping_fulfillment/${fulfillmentId}`);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Issue a refund
|
|
52
|
+
*/
|
|
53
|
+
async issueRefund(orderId, refund) {
|
|
54
|
+
return await this.client.post(`${this.basePath}/order/${orderId}/issue_refund`, refund);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get payment dispute summaries
|
|
58
|
+
* Note: This method delegates to the DisputeApi
|
|
59
|
+
*/
|
|
60
|
+
async getPaymentDisputeSummaries(params) {
|
|
61
|
+
return await this.client.get(`${this.basePath}/payment_dispute_summary`, params);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get payment dispute activities
|
|
65
|
+
* Note: This method delegates to the DisputeApi
|
|
66
|
+
*/
|
|
67
|
+
async getActivities(paymentDisputeId) {
|
|
68
|
+
return await this.client.get(`${this.basePath}/payment_dispute/${paymentDisputeId}/activity`);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get payment dispute details
|
|
72
|
+
* Note: This method delegates to the DisputeApi
|
|
73
|
+
*/
|
|
74
|
+
async getPaymentDispute(paymentDisputeId) {
|
|
75
|
+
return await this.client.get(`${this.basePath}/payment_dispute/${paymentDisputeId}`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get shipping quote
|
|
79
|
+
*/
|
|
80
|
+
async getShippingQuote(request) {
|
|
81
|
+
return await this.client.post(`${this.basePath}/shipping_quote`, request);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get cancellation details for an order
|
|
85
|
+
*/
|
|
86
|
+
async getCancellation(orderId, cancellationId) {
|
|
87
|
+
return await this.client.get(`${this.basePath}/order/${orderId}/cancellation/${cancellationId}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { EbayApiClient } from '../client.js';
|
|
2
|
+
/**
|
|
3
|
+
* Compliance API - Listing compliance checks
|
|
4
|
+
* Based on: docs/sell-apps/other-apis/sell_compliance_v1_oas3.json
|
|
5
|
+
*/
|
|
6
|
+
export declare class ComplianceApi {
|
|
7
|
+
private client;
|
|
8
|
+
private readonly basePath;
|
|
9
|
+
constructor(client: EbayApiClient);
|
|
10
|
+
/**
|
|
11
|
+
* Get listing violations
|
|
12
|
+
*/
|
|
13
|
+
getListingViolations(complianceType?: string, offset?: number, limit?: number): Promise<unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Get listing violation summary
|
|
16
|
+
*/
|
|
17
|
+
getListingViolationsSummary(complianceType?: string): Promise<unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Suppress a violation
|
|
20
|
+
*/
|
|
21
|
+
suppressViolation(listingViolationId: string): Promise<unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* Get compliance snapshot (alias for getListingViolations)
|
|
24
|
+
*/
|
|
25
|
+
getComplianceSnapshot(complianceType?: string, offset?: number, limit?: number): Promise<unknown>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compliance API - Listing compliance checks
|
|
3
|
+
* Based on: docs/sell-apps/other-apis/sell_compliance_v1_oas3.json
|
|
4
|
+
*/
|
|
5
|
+
export class ComplianceApi {
|
|
6
|
+
client;
|
|
7
|
+
basePath = '/sell/compliance/v1';
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Get listing violations
|
|
13
|
+
*/
|
|
14
|
+
async getListingViolations(complianceType, offset, limit) {
|
|
15
|
+
const params = {};
|
|
16
|
+
if (complianceType)
|
|
17
|
+
params.compliance_type = complianceType;
|
|
18
|
+
if (offset)
|
|
19
|
+
params.offset = offset;
|
|
20
|
+
if (limit)
|
|
21
|
+
params.limit = limit;
|
|
22
|
+
return await this.client.get(`${this.basePath}/listing_violation`, params);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get listing violation summary
|
|
26
|
+
*/
|
|
27
|
+
async getListingViolationsSummary(complianceType) {
|
|
28
|
+
const params = {};
|
|
29
|
+
if (complianceType)
|
|
30
|
+
params.compliance_type = complianceType;
|
|
31
|
+
return await this.client.get(`${this.basePath}/listing_violation_summary`, params);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Suppress a violation
|
|
35
|
+
*/
|
|
36
|
+
async suppressViolation(listingViolationId) {
|
|
37
|
+
return await this.client.post(`${this.basePath}/suppress_violation`, {
|
|
38
|
+
listing_violation_id: listingViolationId,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get compliance snapshot (alias for getListingViolations)
|
|
43
|
+
*/
|
|
44
|
+
async getComplianceSnapshot(complianceType, offset, limit) {
|
|
45
|
+
return this.getListingViolations(complianceType, offset, limit);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import type { EbayApiClient } from '../client.js';
|
|
2
|
+
/**
|
|
3
|
+
* eDelivery API - International shipping eDelivery
|
|
4
|
+
* Based on: docs/sell-apps/other-apis/sell_edelivery_international_shipping_oas3.json
|
|
5
|
+
*/
|
|
6
|
+
export declare class EDeliveryApi {
|
|
7
|
+
private client;
|
|
8
|
+
private readonly basePath;
|
|
9
|
+
constructor(client: EbayApiClient);
|
|
10
|
+
/**
|
|
11
|
+
* Create shipping quote
|
|
12
|
+
*/
|
|
13
|
+
createShippingQuote(shippingQuoteRequest: Record<string, unknown>): Promise<unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Get shipping quote
|
|
16
|
+
*/
|
|
17
|
+
getShippingQuote(shippingQuoteId: string): Promise<unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Get actual costs for shipped packages
|
|
20
|
+
* Endpoint: GET /actual_costs
|
|
21
|
+
*/
|
|
22
|
+
getActualCosts(params?: Record<string, string>): Promise<unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Get address preferences
|
|
25
|
+
* Endpoint: GET /address_preference
|
|
26
|
+
*/
|
|
27
|
+
getAddressPreferences(): Promise<unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Create address preference
|
|
30
|
+
* Endpoint: POST /address_preference
|
|
31
|
+
*/
|
|
32
|
+
createAddressPreference(addressPreference: Record<string, unknown>): Promise<unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Get consign preferences
|
|
35
|
+
* Endpoint: GET /consign_preference
|
|
36
|
+
*/
|
|
37
|
+
getConsignPreferences(): Promise<unknown>;
|
|
38
|
+
/**
|
|
39
|
+
* Create consign preference
|
|
40
|
+
* Endpoint: POST /consign_preference
|
|
41
|
+
*/
|
|
42
|
+
createConsignPreference(consignPreference: Record<string, unknown>): Promise<unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Get available shipping agents
|
|
45
|
+
* Endpoint: GET /agents
|
|
46
|
+
*/
|
|
47
|
+
getAgents(params?: Record<string, string>): Promise<unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* Get battery qualifications
|
|
50
|
+
* Endpoint: GET /battery_qualifications
|
|
51
|
+
*/
|
|
52
|
+
getBatteryQualifications(params?: Record<string, string>): Promise<unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Get dropoff sites
|
|
55
|
+
* Endpoint: GET /dropoff_sites
|
|
56
|
+
*/
|
|
57
|
+
getDropoffSites(params: Record<string, string>): Promise<unknown>;
|
|
58
|
+
/**
|
|
59
|
+
* Get available shipping services
|
|
60
|
+
* Endpoint: GET /services
|
|
61
|
+
*/
|
|
62
|
+
getShippingServices(params?: Record<string, string>): Promise<unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a bundle of packages
|
|
65
|
+
* Endpoint: POST /bundle
|
|
66
|
+
*/
|
|
67
|
+
createBundle(bundleRequest: Record<string, unknown>): Promise<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* Get bundle by ID
|
|
70
|
+
* Endpoint: GET /bundle/{bundle_id}
|
|
71
|
+
*/
|
|
72
|
+
getBundle(bundleId: string): Promise<unknown>;
|
|
73
|
+
/**
|
|
74
|
+
* Cancel a bundle
|
|
75
|
+
* Endpoint: POST /bundle/{bundle_id}/cancel
|
|
76
|
+
*/
|
|
77
|
+
cancelBundle(bundleId: string): Promise<unknown>;
|
|
78
|
+
/**
|
|
79
|
+
* Get bundle label
|
|
80
|
+
* Endpoint: GET /bundle/{bundle_id}/label
|
|
81
|
+
*/
|
|
82
|
+
getBundleLabel(bundleId: string): Promise<unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a package
|
|
85
|
+
* Endpoint: POST /package
|
|
86
|
+
*/
|
|
87
|
+
createPackage(packageRequest: Record<string, unknown>): Promise<unknown>;
|
|
88
|
+
/**
|
|
89
|
+
* Get package by ID
|
|
90
|
+
* Endpoint: GET /package/{package_id}
|
|
91
|
+
*/
|
|
92
|
+
getPackage(packageId: string): Promise<unknown>;
|
|
93
|
+
/**
|
|
94
|
+
* Delete a package
|
|
95
|
+
* Endpoint: DELETE /package/{package_id}
|
|
96
|
+
*/
|
|
97
|
+
deletePackage(packageId: string): Promise<unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* Get package by order line item
|
|
100
|
+
* Endpoint: GET /package/{order_line_item_id}/item
|
|
101
|
+
*/
|
|
102
|
+
getPackageByOrderLineItem(orderLineItemId: string): Promise<unknown>;
|
|
103
|
+
/**
|
|
104
|
+
* Cancel a package
|
|
105
|
+
* Endpoint: POST /package/{package_id}/cancel
|
|
106
|
+
*/
|
|
107
|
+
cancelPackage(packageId: string): Promise<unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* Clone a package
|
|
110
|
+
* Endpoint: POST /package/{package_id}/clone
|
|
111
|
+
*/
|
|
112
|
+
clonePackage(packageId: string): Promise<unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* Confirm a package
|
|
115
|
+
* Endpoint: POST /package/{package_id}/confirm
|
|
116
|
+
*/
|
|
117
|
+
confirmPackage(packageId: string): Promise<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Bulk cancel packages
|
|
120
|
+
* Endpoint: POST /package/bulk_cancel_packages
|
|
121
|
+
*/
|
|
122
|
+
bulkCancelPackages(bulkCancelRequest: Record<string, unknown>): Promise<unknown>;
|
|
123
|
+
/**
|
|
124
|
+
* Bulk confirm packages
|
|
125
|
+
* Endpoint: POST /package/bulk_confirm_packages
|
|
126
|
+
*/
|
|
127
|
+
bulkConfirmPackages(bulkConfirmRequest: Record<string, unknown>): Promise<unknown>;
|
|
128
|
+
/**
|
|
129
|
+
* Bulk delete packages
|
|
130
|
+
* Endpoint: POST /package/bulk_delete_packages
|
|
131
|
+
*/
|
|
132
|
+
bulkDeletePackages(bulkDeleteRequest: Record<string, unknown>): Promise<unknown>;
|
|
133
|
+
/**
|
|
134
|
+
* Get labels
|
|
135
|
+
* Endpoint: GET /labels
|
|
136
|
+
*/
|
|
137
|
+
getLabels(params?: Record<string, string>): Promise<unknown>;
|
|
138
|
+
/**
|
|
139
|
+
* Get handover sheet
|
|
140
|
+
* Endpoint: GET /handover_sheet
|
|
141
|
+
*/
|
|
142
|
+
getHandoverSheet(params?: Record<string, string>): Promise<unknown>;
|
|
143
|
+
/**
|
|
144
|
+
* Get tracking information
|
|
145
|
+
* Endpoint: GET /tracking
|
|
146
|
+
*/
|
|
147
|
+
getTracking(params: Record<string, string>): Promise<unknown>;
|
|
148
|
+
/**
|
|
149
|
+
* Create a complaint
|
|
150
|
+
* Endpoint: POST /complaint
|
|
151
|
+
*/
|
|
152
|
+
createComplaint(complaintRequest: Record<string, unknown>): Promise<unknown>;
|
|
153
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* eDelivery API - International shipping eDelivery
|
|
3
|
+
* Based on: docs/sell-apps/other-apis/sell_edelivery_international_shipping_oas3.json
|
|
4
|
+
*/
|
|
5
|
+
export class EDeliveryApi {
|
|
6
|
+
client;
|
|
7
|
+
basePath = '/sell/logistics/v1';
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create shipping quote
|
|
13
|
+
*/
|
|
14
|
+
async createShippingQuote(shippingQuoteRequest) {
|
|
15
|
+
return await this.client.post(`${this.basePath}/shipping_quote`, shippingQuoteRequest);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get shipping quote
|
|
19
|
+
*/
|
|
20
|
+
async getShippingQuote(shippingQuoteId) {
|
|
21
|
+
return await this.client.get(`${this.basePath}/shipping_quote/${shippingQuoteId}`);
|
|
22
|
+
}
|
|
23
|
+
// ==================== Cost & Preferences ====================
|
|
24
|
+
/**
|
|
25
|
+
* Get actual costs for shipped packages
|
|
26
|
+
* Endpoint: GET /actual_costs
|
|
27
|
+
*/
|
|
28
|
+
async getActualCosts(params) {
|
|
29
|
+
return await this.client.get(`${this.basePath}/actual_costs`, params);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get address preferences
|
|
33
|
+
* Endpoint: GET /address_preference
|
|
34
|
+
*/
|
|
35
|
+
async getAddressPreferences() {
|
|
36
|
+
return await this.client.get(`${this.basePath}/address_preference`);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create address preference
|
|
40
|
+
* Endpoint: POST /address_preference
|
|
41
|
+
*/
|
|
42
|
+
async createAddressPreference(addressPreference) {
|
|
43
|
+
return await this.client.post(`${this.basePath}/address_preference`, addressPreference);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get consign preferences
|
|
47
|
+
* Endpoint: GET /consign_preference
|
|
48
|
+
*/
|
|
49
|
+
async getConsignPreferences() {
|
|
50
|
+
return await this.client.get(`${this.basePath}/consign_preference`);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Create consign preference
|
|
54
|
+
* Endpoint: POST /consign_preference
|
|
55
|
+
*/
|
|
56
|
+
async createConsignPreference(consignPreference) {
|
|
57
|
+
return await this.client.post(`${this.basePath}/consign_preference`, consignPreference);
|
|
58
|
+
}
|
|
59
|
+
// ==================== Agents & Services ====================
|
|
60
|
+
/**
|
|
61
|
+
* Get available shipping agents
|
|
62
|
+
* Endpoint: GET /agents
|
|
63
|
+
*/
|
|
64
|
+
async getAgents(params) {
|
|
65
|
+
return await this.client.get(`${this.basePath}/agents`, params);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get battery qualifications
|
|
69
|
+
* Endpoint: GET /battery_qualifications
|
|
70
|
+
*/
|
|
71
|
+
async getBatteryQualifications(params) {
|
|
72
|
+
return await this.client.get(`${this.basePath}/battery_qualifications`, params);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get dropoff sites
|
|
76
|
+
* Endpoint: GET /dropoff_sites
|
|
77
|
+
*/
|
|
78
|
+
async getDropoffSites(params) {
|
|
79
|
+
return await this.client.get(`${this.basePath}/dropoff_sites`, params);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get available shipping services
|
|
83
|
+
* Endpoint: GET /services
|
|
84
|
+
*/
|
|
85
|
+
async getShippingServices(params) {
|
|
86
|
+
return await this.client.get(`${this.basePath}/services`, params);
|
|
87
|
+
}
|
|
88
|
+
// ==================== Bundles ====================
|
|
89
|
+
/**
|
|
90
|
+
* Create a bundle of packages
|
|
91
|
+
* Endpoint: POST /bundle
|
|
92
|
+
*/
|
|
93
|
+
async createBundle(bundleRequest) {
|
|
94
|
+
return await this.client.post(`${this.basePath}/bundle`, bundleRequest);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get bundle by ID
|
|
98
|
+
* Endpoint: GET /bundle/{bundle_id}
|
|
99
|
+
*/
|
|
100
|
+
async getBundle(bundleId) {
|
|
101
|
+
return await this.client.get(`${this.basePath}/bundle/${bundleId}`);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Cancel a bundle
|
|
105
|
+
* Endpoint: POST /bundle/{bundle_id}/cancel
|
|
106
|
+
*/
|
|
107
|
+
async cancelBundle(bundleId) {
|
|
108
|
+
return await this.client.post(`${this.basePath}/bundle/${bundleId}/cancel`, {});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Get bundle label
|
|
112
|
+
* Endpoint: GET /bundle/{bundle_id}/label
|
|
113
|
+
*/
|
|
114
|
+
async getBundleLabel(bundleId) {
|
|
115
|
+
return await this.client.get(`${this.basePath}/bundle/${bundleId}/label`);
|
|
116
|
+
}
|
|
117
|
+
// ==================== Packages (Single) ====================
|
|
118
|
+
/**
|
|
119
|
+
* Create a package
|
|
120
|
+
* Endpoint: POST /package
|
|
121
|
+
*/
|
|
122
|
+
async createPackage(packageRequest) {
|
|
123
|
+
return await this.client.post(`${this.basePath}/package`, packageRequest);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Get package by ID
|
|
127
|
+
* Endpoint: GET /package/{package_id}
|
|
128
|
+
*/
|
|
129
|
+
async getPackage(packageId) {
|
|
130
|
+
return await this.client.get(`${this.basePath}/package/${packageId}`);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Delete a package
|
|
134
|
+
* Endpoint: DELETE /package/{package_id}
|
|
135
|
+
*/
|
|
136
|
+
async deletePackage(packageId) {
|
|
137
|
+
return await this.client.delete(`${this.basePath}/package/${packageId}`);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Get package by order line item
|
|
141
|
+
* Endpoint: GET /package/{order_line_item_id}/item
|
|
142
|
+
*/
|
|
143
|
+
async getPackageByOrderLineItem(orderLineItemId) {
|
|
144
|
+
return await this.client.get(`${this.basePath}/package/${orderLineItemId}/item`);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Cancel a package
|
|
148
|
+
* Endpoint: POST /package/{package_id}/cancel
|
|
149
|
+
*/
|
|
150
|
+
async cancelPackage(packageId) {
|
|
151
|
+
return await this.client.post(`${this.basePath}/package/${packageId}/cancel`, {});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Clone a package
|
|
155
|
+
* Endpoint: POST /package/{package_id}/clone
|
|
156
|
+
*/
|
|
157
|
+
async clonePackage(packageId) {
|
|
158
|
+
return await this.client.post(`${this.basePath}/package/${packageId}/clone`, {});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Confirm a package
|
|
162
|
+
* Endpoint: POST /package/{package_id}/confirm
|
|
163
|
+
*/
|
|
164
|
+
async confirmPackage(packageId) {
|
|
165
|
+
return await this.client.post(`${this.basePath}/package/${packageId}/confirm`, {});
|
|
166
|
+
}
|
|
167
|
+
// ==================== Packages (Bulk) ====================
|
|
168
|
+
/**
|
|
169
|
+
* Bulk cancel packages
|
|
170
|
+
* Endpoint: POST /package/bulk_cancel_packages
|
|
171
|
+
*/
|
|
172
|
+
async bulkCancelPackages(bulkCancelRequest) {
|
|
173
|
+
return await this.client.post(`${this.basePath}/package/bulk_cancel_packages`, bulkCancelRequest);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Bulk confirm packages
|
|
177
|
+
* Endpoint: POST /package/bulk_confirm_packages
|
|
178
|
+
*/
|
|
179
|
+
async bulkConfirmPackages(bulkConfirmRequest) {
|
|
180
|
+
return await this.client.post(`${this.basePath}/package/bulk_confirm_packages`, bulkConfirmRequest);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Bulk delete packages
|
|
184
|
+
* Endpoint: POST /package/bulk_delete_packages
|
|
185
|
+
*/
|
|
186
|
+
async bulkDeletePackages(bulkDeleteRequest) {
|
|
187
|
+
return await this.client.post(`${this.basePath}/package/bulk_delete_packages`, bulkDeleteRequest);
|
|
188
|
+
}
|
|
189
|
+
// ==================== Labels & Tracking ====================
|
|
190
|
+
/**
|
|
191
|
+
* Get labels
|
|
192
|
+
* Endpoint: GET /labels
|
|
193
|
+
*/
|
|
194
|
+
async getLabels(params) {
|
|
195
|
+
return await this.client.get(`${this.basePath}/labels`, params);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Get handover sheet
|
|
199
|
+
* Endpoint: GET /handover_sheet
|
|
200
|
+
*/
|
|
201
|
+
async getHandoverSheet(params) {
|
|
202
|
+
return await this.client.get(`${this.basePath}/handover_sheet`, params);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Get tracking information
|
|
206
|
+
* Endpoint: GET /tracking
|
|
207
|
+
*/
|
|
208
|
+
async getTracking(params) {
|
|
209
|
+
return await this.client.get(`${this.basePath}/tracking`, params);
|
|
210
|
+
}
|
|
211
|
+
// ==================== Other ====================
|
|
212
|
+
/**
|
|
213
|
+
* Create a complaint
|
|
214
|
+
* Endpoint: POST /complaint
|
|
215
|
+
*/
|
|
216
|
+
async createComplaint(complaintRequest) {
|
|
217
|
+
return await this.client.post(`${this.basePath}/complaint`, complaintRequest);
|
|
218
|
+
}
|
|
219
|
+
}
|