ebay-api 1.13.4 → 6.0.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/LICENSE +18 -19
- package/README.md +512 -118
- package/lib/api/apiFactory.d.ts +27 -0
- package/lib/api/apiFactory.js +100 -0
- package/lib/api/apiFactory.js.map +1 -0
- package/lib/api/base.d.ts +13 -0
- package/lib/api/base.js +25 -0
- package/lib/api/base.js.map +1 -0
- package/lib/api/index.d.ts +11 -0
- package/lib/api/index.js +18 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/restful/buy/browse/index.d.ts +84 -0
- package/lib/api/restful/buy/browse/index.js +142 -0
- package/lib/api/restful/buy/browse/index.js.map +1 -0
- package/lib/api/restful/buy/deal/index.d.ts +55 -0
- package/lib/api/restful/buy/deal/index.js +80 -0
- package/lib/api/restful/buy/deal/index.js.map +1 -0
- package/lib/api/restful/buy/feed/index.d.ts +43 -0
- package/lib/api/restful/buy/feed/index.js +85 -0
- package/lib/api/restful/buy/feed/index.js.map +1 -0
- package/lib/api/restful/buy/index.d.ts +17 -0
- package/lib/api/restful/buy/index.js +21 -0
- package/lib/api/restful/buy/index.js.map +1 -0
- package/lib/api/restful/buy/marketing/index.d.ts +27 -0
- package/lib/api/restful/buy/marketing/index.js +51 -0
- package/lib/api/restful/buy/marketing/index.js.map +1 -0
- package/lib/api/restful/buy/marketplaceInsights/index.d.ts +28 -0
- package/lib/api/restful/buy/marketplaceInsights/index.js +51 -0
- package/lib/api/restful/buy/marketplaceInsights/index.js.map +1 -0
- package/lib/api/restful/buy/offer/index.d.ts +23 -0
- package/lib/api/restful/buy/offer/index.js +37 -0
- package/lib/api/restful/buy/offer/index.js.map +1 -0
- package/lib/api/restful/buy/order/index.d.ts +264 -0
- package/lib/api/restful/buy/order/index.js +369 -0
- package/lib/api/restful/buy/order/index.js.map +1 -0
- package/lib/api/restful/commerce/catalog/index.d.ts +73 -0
- package/lib/api/restful/commerce/catalog/index.js +108 -0
- package/lib/api/restful/commerce/catalog/index.js.map +1 -0
- package/lib/api/restful/commerce/charity/index.d.ts +34 -0
- package/lib/api/restful/commerce/charity/index.js +56 -0
- package/lib/api/restful/commerce/charity/index.js.map +1 -0
- package/lib/api/restful/commerce/identity/index.d.ts +14 -0
- package/lib/api/restful/commerce/identity/index.js +27 -0
- package/lib/api/restful/commerce/identity/index.js.map +1 -0
- package/lib/api/restful/commerce/index.d.ts +15 -0
- package/lib/api/restful/commerce/index.js +19 -0
- package/lib/api/restful/commerce/index.js.map +1 -0
- package/lib/api/restful/commerce/notification/index.d.ts +117 -0
- package/lib/api/restful/commerce/notification/index.js +187 -0
- package/lib/api/restful/commerce/notification/index.js.map +1 -0
- package/lib/api/restful/commerce/taxonomy/index.d.ts +78 -0
- package/lib/api/restful/commerce/taxonomy/index.js +135 -0
- package/lib/api/restful/commerce/taxonomy/index.js.map +1 -0
- package/lib/api/restful/commerce/translation/index.d.ts +15 -0
- package/lib/api/restful/commerce/translation/index.js +25 -0
- package/lib/api/restful/commerce/translation/index.js.map +1 -0
- package/lib/api/restful/developer/analytics/index.d.ts +22 -0
- package/lib/api/restful/developer/analytics/index.js +45 -0
- package/lib/api/restful/developer/analytics/index.js.map +1 -0
- package/lib/api/restful/developer/index.d.ts +5 -0
- package/lib/api/restful/developer/index.js +9 -0
- package/lib/api/restful/developer/index.js.map +1 -0
- package/lib/api/restful/index.d.ts +63 -0
- package/lib/api/restful/index.js +165 -0
- package/lib/api/restful/index.js.map +1 -0
- package/lib/api/restful/postOrder/cancellation/index.d.ts +57 -0
- package/lib/api/restful/postOrder/cancellation/index.js +95 -0
- package/lib/api/restful/postOrder/cancellation/index.js.map +1 -0
- package/lib/api/restful/postOrder/case/index.d.ts +63 -0
- package/lib/api/restful/postOrder/case/index.js +97 -0
- package/lib/api/restful/postOrder/case/index.js.map +1 -0
- package/lib/api/restful/postOrder/index.d.ts +11 -0
- package/lib/api/restful/postOrder/index.js +15 -0
- package/lib/api/restful/postOrder/index.js.map +1 -0
- package/lib/api/restful/postOrder/inquiry/index.d.ts +82 -0
- package/lib/api/restful/postOrder/inquiry/index.js +131 -0
- package/lib/api/restful/postOrder/inquiry/index.js.map +1 -0
- package/lib/api/restful/postOrder/return/index.d.ts +231 -0
- package/lib/api/restful/postOrder/return/index.js +361 -0
- package/lib/api/restful/postOrder/return/index.js.map +1 -0
- package/lib/api/restful/sell/account/index.d.ts +217 -0
- package/lib/api/restful/sell/account/index.js +337 -0
- package/lib/api/restful/sell/account/index.js.map +1 -0
- package/lib/api/restful/sell/analytics/index.d.ts +41 -0
- package/lib/api/restful/sell/analytics/index.js +61 -0
- package/lib/api/restful/sell/analytics/index.js.map +1 -0
- package/lib/api/restful/sell/compliance/index.d.ts +37 -0
- package/lib/api/restful/sell/compliance/index.js +57 -0
- package/lib/api/restful/sell/compliance/index.js.map +1 -0
- package/lib/api/restful/sell/feed/index.d.ts +151 -0
- package/lib/api/restful/sell/feed/index.js +255 -0
- package/lib/api/restful/sell/feed/index.js.map +1 -0
- package/lib/api/restful/sell/finances/index.d.ts +74 -0
- package/lib/api/restful/sell/finances/index.js +105 -0
- package/lib/api/restful/sell/finances/index.js.map +1 -0
- package/lib/api/restful/sell/fulfillment/index.d.ts +137 -0
- package/lib/api/restful/sell/fulfillment/index.js +199 -0
- package/lib/api/restful/sell/fulfillment/index.js.map +1 -0
- package/lib/api/restful/sell/index.d.ts +29 -0
- package/lib/api/restful/sell/index.js +33 -0
- package/lib/api/restful/sell/index.js.map +1 -0
- package/lib/api/restful/sell/inventory/index.d.ts +248 -0
- package/lib/api/restful/sell/inventory/index.js +346 -0
- package/lib/api/restful/sell/inventory/index.js.map +1 -0
- package/lib/api/restful/sell/listing/index.d.ts +14 -0
- package/lib/api/restful/sell/listing/index.js +25 -0
- package/lib/api/restful/sell/listing/index.js.map +1 -0
- package/lib/api/restful/sell/logistics/index.d.ts +44 -0
- package/lib/api/restful/sell/logistics/index.js +66 -0
- package/lib/api/restful/sell/logistics/index.js.map +1 -0
- package/lib/api/restful/sell/marketing/index.d.ts +443 -0
- package/lib/api/restful/sell/marketing/index.js +609 -0
- package/lib/api/restful/sell/marketing/index.js.map +1 -0
- package/lib/api/restful/sell/metadata/index.d.ts +77 -0
- package/lib/api/restful/sell/metadata/index.js +131 -0
- package/lib/api/restful/sell/metadata/index.js.map +1 -0
- package/lib/api/restful/sell/negotiation/index.d.ts +24 -0
- package/lib/api/restful/sell/negotiation/index.js +39 -0
- package/lib/api/restful/sell/negotiation/index.js.map +1 -0
- package/lib/api/restful/sell/recommendation/index.d.ts +26 -0
- package/lib/api/restful/sell/recommendation/index.js +39 -0
- package/lib/api/restful/sell/recommendation/index.js.map +1 -0
- package/lib/api/traditional/XMLRequest.d.ts +98 -0
- package/lib/api/traditional/XMLRequest.js +191 -0
- package/lib/api/traditional/XMLRequest.js.map +1 -0
- package/lib/api/traditional/clientAlerts/index.d.ts +9 -0
- package/lib/api/traditional/clientAlerts/index.js +15 -0
- package/lib/api/traditional/clientAlerts/index.js.map +1 -0
- package/lib/api/traditional/clientAlerts/types.d.ts +31 -0
- package/lib/api/traditional/clientAlerts/types.js +36 -0
- package/lib/api/traditional/clientAlerts/types.js.map +1 -0
- package/lib/api/traditional/fields.d.ts +1948 -0
- package/lib/api/traditional/fields.js +1949 -0
- package/lib/api/traditional/fields.js.map +1 -0
- package/lib/api/traditional/finding/index.d.ts +12 -0
- package/lib/api/traditional/finding/index.js +16 -0
- package/lib/api/traditional/finding/index.js.map +1 -0
- package/lib/api/traditional/index.d.ts +17 -0
- package/lib/api/traditional/index.js +207 -0
- package/lib/api/traditional/index.js.map +1 -0
- package/lib/api/traditional/merchandising/index.d.ts +7 -0
- package/lib/api/traditional/merchandising/index.js +11 -0
- package/lib/api/traditional/merchandising/index.js.map +1 -0
- package/lib/api/traditional/shopping/index.d.ts +11 -0
- package/lib/api/traditional/shopping/index.js +16 -0
- package/lib/api/traditional/shopping/index.js.map +1 -0
- package/lib/api/traditional/trading/index.d.ts +142 -0
- package/lib/api/traditional/trading/index.js +146 -0
- package/lib/api/traditional/trading/index.js.map +1 -0
- package/lib/auth/authNAuth.d.ts +49 -0
- package/lib/auth/authNAuth.js +122 -0
- package/lib/auth/authNAuth.js.map +1 -0
- package/lib/auth/index.d.ts +17 -0
- package/lib/auth/index.js +32 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/oAuth2.d.ts +90 -0
- package/lib/auth/oAuth2.js +258 -0
- package/lib/auth/oAuth2.js.map +1 -0
- package/lib/ebay-api.min.js +2 -0
- package/lib/ebay-api.min.js.map +1 -0
- package/lib/enums/apiEnums.d.ts +49 -0
- package/lib/enums/apiEnums.js +55 -0
- package/lib/enums/apiEnums.js.map +1 -0
- package/lib/enums/index.d.ts +2 -0
- package/lib/enums/index.js +15 -0
- package/lib/enums/index.js.map +1 -0
- package/lib/enums/restfulEnums.d.ts +672 -0
- package/lib/enums/restfulEnums.js +714 -0
- package/lib/enums/restfulEnums.js.map +1 -0
- package/lib/errors/index.d.ts +66 -0
- package/lib/errors/index.js +208 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/index.d.ts +55 -0
- package/lib/index.js +98 -0
- package/lib/index.js.map +1 -0
- package/lib/request.d.ts +26 -0
- package/lib/request.js +51 -0
- package/lib/request.js.map +1 -0
- package/lib/types/apiTypes.d.ts +28 -0
- package/lib/types/apiTypes.js +3 -0
- package/lib/types/apiTypes.js.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +16 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/restfulTypes.d.ts +1067 -0
- package/lib/types/restfulTypes.js +3 -0
- package/lib/types/restfulTypes.js.map +1 -0
- package/lib/types/traditonalTypes.d.ts +34 -0
- package/lib/types/traditonalTypes.js +3 -0
- package/lib/types/traditonalTypes.js.map +1 -0
- package/package.json +115 -21
- package/.npmignore +0 -17
- package/.travis.yml +0 -7
- package/examples/Finding-FindItemsByKeywords.js +0 -46
- package/examples/Merchandising-GetMostWatchedItemsRequest.js +0 -16
- package/examples/Shopping-GetSingleItem.js +0 -18
- package/examples/Trading-GetOrders.js +0 -26
- package/index.js +0 -10
- package/lib/deep-to-array.js +0 -42
- package/lib/defaults.js +0 -69
- package/lib/errors.js +0 -44
- package/lib/json-parser.js +0 -336
- package/lib/key-lists.js +0 -64
- package/lib/urls.js +0 -64
- package/lib/versions.js +0 -35
- package/lib/xml-converter.js +0 -21
- package/lib/xml-request.js +0 -207
- package/scripts/parse-input-xml.js +0 -41
- package/test/deep-to-array.test.js +0 -100
- package/test/errors.test.js +0 -75
- package/test/helpers.js +0 -22
- package/test/mocha.opts +0 -1
- package/test/mocks/GetMultipleItems.xml +0 -115
- package/test/mocks/GetOrders-empty.xml +0 -17
- package/test/mocks/GetOrders.xml +0 -463
- package/test/pagination.test.js +0 -5
- package/test/parsing.test.js +0 -248
- package/test/xml-request.test.js +0 -447
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const __1 = __importDefault(require("../../"));
|
|
7
|
+
/**
|
|
8
|
+
* The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file
|
|
9
|
+
* of the items that have changed within an hour for a specific category, date and marketplace.
|
|
10
|
+
*/
|
|
11
|
+
class Feed extends __1.default {
|
|
12
|
+
get basePath() {
|
|
13
|
+
return '/buy/feed/v1_beta';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* This method lets you download a TSV_GZIP (tab separated value gzip) Item feed file.
|
|
17
|
+
*
|
|
18
|
+
* @param {BuyFeedParams} params
|
|
19
|
+
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
|
|
20
|
+
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
|
|
21
|
+
*/
|
|
22
|
+
getItemFeed(params, range) {
|
|
23
|
+
return this.get(`/item`, {
|
|
24
|
+
params,
|
|
25
|
+
headers: {
|
|
26
|
+
'Range': range
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* This method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file.
|
|
32
|
+
* @param {BuyFeedParams} params
|
|
33
|
+
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
|
|
34
|
+
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
|
|
35
|
+
*/
|
|
36
|
+
getItemGroupFeed(params, range) {
|
|
37
|
+
return this.get(`/item_group`, {
|
|
38
|
+
params,
|
|
39
|
+
headers: {
|
|
40
|
+
'Range': range
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The Hourly Snapshot feed file is generated each hour every day for all categories.
|
|
46
|
+
*
|
|
47
|
+
* @param {BuyFeedParams} params
|
|
48
|
+
* @param {String} snapshotDate
|
|
49
|
+
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
|
|
50
|
+
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
|
|
51
|
+
*/
|
|
52
|
+
getItemSnapshotFeed(params, snapshotDate, range) {
|
|
53
|
+
return this.get(`/item_snapshot`, {
|
|
54
|
+
params: {
|
|
55
|
+
...params,
|
|
56
|
+
snapshot_date: snapshotDate
|
|
57
|
+
},
|
|
58
|
+
headers: {
|
|
59
|
+
'Range': range
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The Hourly Snapshot feed file is generated each hour every day for all categories.
|
|
65
|
+
*
|
|
66
|
+
* @param {BuyFeedParams} params
|
|
67
|
+
* @param {String} snapshotDate
|
|
68
|
+
* @param range his header specifies the range in bytes of the chunks of the gzip file being returned.
|
|
69
|
+
* Format: bytes=startpos-endpos For example, the following retrieves the first 10 MBs of the feed file.
|
|
70
|
+
*/
|
|
71
|
+
getProductFeed(params, snapshotDate, range) {
|
|
72
|
+
return this.get(`/product`, {
|
|
73
|
+
params: {
|
|
74
|
+
...params,
|
|
75
|
+
snapshot_date: snapshotDate
|
|
76
|
+
},
|
|
77
|
+
headers: {
|
|
78
|
+
'Range': range
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.default = Feed;
|
|
84
|
+
Feed.id = 'Feed';
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/restful/buy/feed/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAA6B;AAG7B;;;GAGG;AACH,MAAqB,IAAK,SAAQ,WAAO;IAIvC,IAAI,QAAQ;QACV,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,MAAqB,EAAE,KAAa;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;YACvB,MAAM;YACN,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;SACF,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,MAAqB,EAAE,KAAa;QAC1D,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE;YAC7B,MAAM;YACN,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;SACF,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,mBAAmB,CAAC,MAAqB,EAAE,YAAoB,EAAE,KAAa;QACnF,OAAO,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE;YAChC,MAAM,EAAE;gBACN,GAAG,MAAM;gBACT,aAAa,EAAE,YAAY;aAC5B;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;SACF,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,cAAc,CAAC,MAAqB,EAAE,YAAoB,EAAE,KAAa;QAC9E,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE;gBACN,GAAG,MAAM;gBACT,aAAa,EAAE,YAAY;aAC5B;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;aACf;SACF,CAAC,CAAC;IACL,CAAC;;AA7EH,uBA8EC;AA5EQ,OAAE,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Browse from './browse';
|
|
2
|
+
import Feed from './feed';
|
|
3
|
+
import Marketing from './marketing';
|
|
4
|
+
import Offer from './offer';
|
|
5
|
+
import Order from './order';
|
|
6
|
+
import Deal from './deal';
|
|
7
|
+
import MarketplaceInsights from './marketplaceInsights';
|
|
8
|
+
export declare type Buy = {
|
|
9
|
+
browse: Browse;
|
|
10
|
+
deal: Deal;
|
|
11
|
+
feed: Feed;
|
|
12
|
+
marketing: Marketing;
|
|
13
|
+
marketplaceInsights: MarketplaceInsights;
|
|
14
|
+
offer: Offer;
|
|
15
|
+
order: Order;
|
|
16
|
+
};
|
|
17
|
+
export { Browse, Deal, Feed, Marketing, MarketplaceInsights, Offer, Order };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Order = exports.Offer = exports.MarketplaceInsights = exports.Marketing = exports.Feed = exports.Deal = exports.Browse = void 0;
|
|
7
|
+
const browse_1 = __importDefault(require("./browse"));
|
|
8
|
+
exports.Browse = browse_1.default;
|
|
9
|
+
const feed_1 = __importDefault(require("./feed"));
|
|
10
|
+
exports.Feed = feed_1.default;
|
|
11
|
+
const marketing_1 = __importDefault(require("./marketing"));
|
|
12
|
+
exports.Marketing = marketing_1.default;
|
|
13
|
+
const offer_1 = __importDefault(require("./offer"));
|
|
14
|
+
exports.Offer = offer_1.default;
|
|
15
|
+
const order_1 = __importDefault(require("./order"));
|
|
16
|
+
exports.Order = order_1.default;
|
|
17
|
+
const deal_1 = __importDefault(require("./deal"));
|
|
18
|
+
exports.Deal = deal_1.default;
|
|
19
|
+
const marketplaceInsights_1 = __importDefault(require("./marketplaceInsights"));
|
|
20
|
+
exports.MarketplaceInsights = marketplaceInsights_1.default;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/restful/buy/index.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAmB5B,iBAnBK,gBAAM,CAmBL;AAlBR,kDAA0B;AAoBxB,eApBK,cAAI,CAoBL;AAnBN,4DAAoC;AAoBlC,oBApBK,mBAAS,CAoBL;AAnBX,oDAA4B;AAqB1B,gBArBK,eAAK,CAqBL;AApBP,oDAA4B;AAqB1B,gBArBK,eAAK,CAqBL;AApBP,kDAA0B;AAexB,eAfK,cAAI,CAeL;AAdN,gFAAuD;AAiBrD,8BAjBK,6BAAmB,CAiBL"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import Restful from '../../';
|
|
2
|
+
import { AlsoBoughtByProductParams, AlsoViewedByProductParams, MerchandisedProductsParams } from '../../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* The Marketing API retrieves eBay products based on a metric, such as Best Selling, as well as products that were
|
|
5
|
+
* also bought and also viewed.
|
|
6
|
+
*/
|
|
7
|
+
export default class Marketing extends Restful {
|
|
8
|
+
static id: string;
|
|
9
|
+
get basePath(): string;
|
|
10
|
+
/**
|
|
11
|
+
* This call returns products that were also bought when shoppers bought the product specified in the request.
|
|
12
|
+
* @param params
|
|
13
|
+
*/
|
|
14
|
+
getAlsoBoughtByProduct(params: AlsoBoughtByProductParams): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* This call returns products that were also viewed when shoppers viewed the product specified in the request.
|
|
17
|
+
*
|
|
18
|
+
* @param params
|
|
19
|
+
*/
|
|
20
|
+
getAlsoViewedByProduct(params: AlsoViewedByProductParams): Promise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* This call returns an array of products based on the category and metric specified.
|
|
23
|
+
*
|
|
24
|
+
* @param params
|
|
25
|
+
*/
|
|
26
|
+
getMerchandisedProducts(params: MerchandisedProductsParams): Promise<any>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const __1 = __importDefault(require("../../"));
|
|
7
|
+
/**
|
|
8
|
+
* The Marketing API retrieves eBay products based on a metric, such as Best Selling, as well as products that were
|
|
9
|
+
* also bought and also viewed.
|
|
10
|
+
*/
|
|
11
|
+
class Marketing extends __1.default {
|
|
12
|
+
get basePath() {
|
|
13
|
+
return '/buy/marketing/v1_beta';
|
|
14
|
+
}
|
|
15
|
+
//
|
|
16
|
+
// Marketing
|
|
17
|
+
// Client Credentials: https://api.ebay.com/oauth/api_scope/buy.marketing
|
|
18
|
+
//
|
|
19
|
+
/**
|
|
20
|
+
* This call returns products that were also bought when shoppers bought the product specified in the request.
|
|
21
|
+
* @param params
|
|
22
|
+
*/
|
|
23
|
+
getAlsoBoughtByProduct(params) {
|
|
24
|
+
return this.get(`/merchandised_product/get_also_bought_products`, {
|
|
25
|
+
params
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This call returns products that were also viewed when shoppers viewed the product specified in the request.
|
|
30
|
+
*
|
|
31
|
+
* @param params
|
|
32
|
+
*/
|
|
33
|
+
getAlsoViewedByProduct(params) {
|
|
34
|
+
return this.get(`/merchandised_product/get_also_viewed_products`, {
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* This call returns an array of products based on the category and metric specified.
|
|
40
|
+
*
|
|
41
|
+
* @param params
|
|
42
|
+
*/
|
|
43
|
+
getMerchandisedProducts(params) {
|
|
44
|
+
return this.get(`/merchandised_product`, {
|
|
45
|
+
params
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = Marketing;
|
|
50
|
+
Marketing.id = 'Marketing';
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/restful/buy/marketing/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAA6B;AAG7B;;;GAGG;AACH,MAAqB,SAAU,SAAQ,WAAO;IAI5C,IAAI,QAAQ;QACV,OAAO,wBAAwB,CAAC;IAClC,CAAC;IAED,EAAE;IACF,YAAY;IACZ,yEAAyE;IACzE,EAAE;IAEF;;;OAGG;IACI,sBAAsB,CAAC,MAAiC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,gDAAgD,EAAE;YAChE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACI,sBAAsB,CAAC,MAAiC;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,gDAAgD,EAAE;YAChE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACI,uBAAuB,CAAC,MAAkC;QAC/D,OAAO,IAAI,CAAC,GAAG,CAAC,uBAAuB,EAAE;YACvC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;;AA3CH,4BA4CC;AA1CQ,YAAE,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Restful from '../../';
|
|
2
|
+
import { MarketingInsightsSearchParams } from '../../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* (Limited Release) The Marketplace Insights API provides the ability to search for sold items on eBay by keyword,
|
|
5
|
+
* GTIN, category, and product and returns the of sales history of those items.
|
|
6
|
+
*/
|
|
7
|
+
export default class MarketplaceInsights extends Restful {
|
|
8
|
+
static id: string;
|
|
9
|
+
get basePath(): string;
|
|
10
|
+
/**
|
|
11
|
+
* (Limited Release) This method searches for sold eBay items by various URI query parameters and retrieves the sales
|
|
12
|
+
* history of the items for the last 90 days. You can search by keyword, category, eBay product ID (ePID), or GTIN,
|
|
13
|
+
* or a combination of these.
|
|
14
|
+
*
|
|
15
|
+
* @param itemId
|
|
16
|
+
* @param aspectFilter This field lets you filter by item aspects.
|
|
17
|
+
* @param categoryIds The category ID is required and is used to limit the results.
|
|
18
|
+
* @param epid The ePID is the eBay product identifier of a product from the eBay product catalog.
|
|
19
|
+
* @param fieldgroups This field lets you control what is to be returned in the response and accepts a comma separated list of values.
|
|
20
|
+
* @param filter This field supports multiple field filters that can be used to limit/customize the result set.
|
|
21
|
+
* @param gtin This field lets you search by the Global Trade Item Number of the item as defined by https://www.gtin.info.
|
|
22
|
+
* @param limit The number of items, from the result set, returned in a single page.
|
|
23
|
+
* @param offset Specifies the number of items to skip in the result set.
|
|
24
|
+
* @param q A string consisting of one or more keywords that are used to search for items on eBay.
|
|
25
|
+
* @param sort This field specifies the order and the field name to use to sort the items.
|
|
26
|
+
*/
|
|
27
|
+
search({ aspectFilter, categoryIds, epid, fieldgroups, filter, gtin, limit, offset, q, sort, }: MarketingInsightsSearchParams): Promise<any>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const __1 = __importDefault(require("../../"));
|
|
7
|
+
/**
|
|
8
|
+
* (Limited Release) The Marketplace Insights API provides the ability to search for sold items on eBay by keyword,
|
|
9
|
+
* GTIN, category, and product and returns the of sales history of those items.
|
|
10
|
+
*/
|
|
11
|
+
class MarketplaceInsights extends __1.default {
|
|
12
|
+
get basePath() {
|
|
13
|
+
return '/buy/marketplace_insights/v1_beta';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* (Limited Release) This method searches for sold eBay items by various URI query parameters and retrieves the sales
|
|
17
|
+
* history of the items for the last 90 days. You can search by keyword, category, eBay product ID (ePID), or GTIN,
|
|
18
|
+
* or a combination of these.
|
|
19
|
+
*
|
|
20
|
+
* @param itemId
|
|
21
|
+
* @param aspectFilter This field lets you filter by item aspects.
|
|
22
|
+
* @param categoryIds The category ID is required and is used to limit the results.
|
|
23
|
+
* @param epid The ePID is the eBay product identifier of a product from the eBay product catalog.
|
|
24
|
+
* @param fieldgroups This field lets you control what is to be returned in the response and accepts a comma separated list of values.
|
|
25
|
+
* @param filter This field supports multiple field filters that can be used to limit/customize the result set.
|
|
26
|
+
* @param gtin This field lets you search by the Global Trade Item Number of the item as defined by https://www.gtin.info.
|
|
27
|
+
* @param limit The number of items, from the result set, returned in a single page.
|
|
28
|
+
* @param offset Specifies the number of items to skip in the result set.
|
|
29
|
+
* @param q A string consisting of one or more keywords that are used to search for items on eBay.
|
|
30
|
+
* @param sort This field specifies the order and the field name to use to sort the items.
|
|
31
|
+
*/
|
|
32
|
+
search({ aspectFilter, categoryIds, epid, fieldgroups, filter, gtin, limit, offset, q, sort, }) {
|
|
33
|
+
return this.get(`/item_sales/search`, {
|
|
34
|
+
params: {
|
|
35
|
+
aspect_filter: aspectFilter,
|
|
36
|
+
category_ids: categoryIds,
|
|
37
|
+
epid,
|
|
38
|
+
fieldgroups,
|
|
39
|
+
filter,
|
|
40
|
+
gtin,
|
|
41
|
+
limit,
|
|
42
|
+
offset,
|
|
43
|
+
q,
|
|
44
|
+
sort,
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = MarketplaceInsights;
|
|
50
|
+
MarketplaceInsights.id = 'MarketplaceInsights';
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/restful/buy/marketplaceInsights/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAA6B;AAG7B;;;GAGG;AACH,MAAqB,mBAAoB,SAAQ,WAAO;IAItD,IAAI,QAAQ;QACV,OAAO,mCAAmC,CAAC;IAC7C,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACI,MAAM,CAAC,EACZ,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,WAAW,EACX,MAAM,EACN,IAAI,EACJ,KAAK,EACL,MAAM,EACN,CAAC,EACD,IAAI,GAC0B;QAC9B,OAAO,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE;YACpC,MAAM,EAAE;gBACN,aAAa,EAAE,YAAY;gBAC3B,YAAY,EAAE,WAAW;gBACzB,IAAI;gBACJ,WAAW;gBACX,MAAM;gBACN,IAAI;gBACJ,KAAK;gBACL,MAAM;gBACN,CAAC;gBACD,IAAI;aACL;SACF,CAAC,CAAC;IACL,CAAC;;AAnDH,sCAoDC;AAlDQ,sBAAE,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Restful from '../../';
|
|
2
|
+
import { PlaceProxyBidRequest } from '../../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* The Api Offer API enables Partners to place proxy bids for a buyer and retrieve the auctions where the buyer is
|
|
5
|
+
* bidding. Client Credentials: https://api.ebay.com/oauth/api_scope/buy.offer.auction
|
|
6
|
+
*/
|
|
7
|
+
export default class Offer extends Restful {
|
|
8
|
+
static id: string;
|
|
9
|
+
get basePath(): string;
|
|
10
|
+
/**
|
|
11
|
+
* This method retrieves the bidding details that are specific to the buyer of the specified auction.
|
|
12
|
+
*
|
|
13
|
+
* @param itemId
|
|
14
|
+
*/
|
|
15
|
+
getBidding(itemId: string): Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* This method uses a user access token to place a proxy bid for the buyer on a specific auction item.
|
|
18
|
+
*
|
|
19
|
+
* @param itemId
|
|
20
|
+
* @param {PlaceProxyBidRequest} body
|
|
21
|
+
*/
|
|
22
|
+
placeProxyBid(itemId: string, body?: PlaceProxyBidRequest): Promise<any>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const __1 = __importDefault(require("../../"));
|
|
7
|
+
/**
|
|
8
|
+
* The Api Offer API enables Partners to place proxy bids for a buyer and retrieve the auctions where the buyer is
|
|
9
|
+
* bidding. Client Credentials: https://api.ebay.com/oauth/api_scope/buy.offer.auction
|
|
10
|
+
*/
|
|
11
|
+
class Offer extends __1.default {
|
|
12
|
+
get basePath() {
|
|
13
|
+
return '/buy/offer/v1_beta';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* This method retrieves the bidding details that are specific to the buyer of the specified auction.
|
|
17
|
+
*
|
|
18
|
+
* @param itemId
|
|
19
|
+
*/
|
|
20
|
+
getBidding(itemId) {
|
|
21
|
+
const id = encodeURIComponent(itemId);
|
|
22
|
+
return this.get(`/bidding/${id}`);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* This method uses a user access token to place a proxy bid for the buyer on a specific auction item.
|
|
26
|
+
*
|
|
27
|
+
* @param itemId
|
|
28
|
+
* @param {PlaceProxyBidRequest} body
|
|
29
|
+
*/
|
|
30
|
+
placeProxyBid(itemId, body) {
|
|
31
|
+
const id = encodeURIComponent(itemId);
|
|
32
|
+
return this.post(`/bidding/${id}/place_proxy_bid`, body);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.default = Offer;
|
|
36
|
+
Offer.id = 'Offer';
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/restful/buy/offer/index.ts"],"names":[],"mappings":";;;;;AAAA,+CAA6B;AAG7B;;;GAGG;AACH,MAAqB,KAAM,SAAQ,WAAO;IAIxC,IAAI,QAAQ;QACV,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED;;;;OAIG;IACI,UAAU,CAAC,MAAc;QAC9B,MAAM,EAAE,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,MAAc,EAAE,IAA2B;QAC9D,MAAM,EAAE,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,kBAAkB,EAAE,IAAI,CAAE,CAAC;IAC5D,CAAC;;AA3BH,wBA4BC;AA1BQ,QAAE,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import Api from '../../';
|
|
2
|
+
import { CheckoutSessionRequest, CouponRequest, CreateSignInCheckoutSessionRequest, GuestPlaceOrderRequest, InitiatePaymentRequest, ShippingAddressImpl, UpdatePaymentInformation, UpdateQuantity, UpdateShippingOption } from '../../../../types';
|
|
3
|
+
/**
|
|
4
|
+
* The Order API provides interfaces that lets shoppers pay for items (for both eBay guest and eBay member buyers).
|
|
5
|
+
* Client Credentials: https://api.ebay.com/oauth/api_scope/buy.order
|
|
6
|
+
*/
|
|
7
|
+
export default class Order extends Api {
|
|
8
|
+
static id: string;
|
|
9
|
+
get basePath(): string;
|
|
10
|
+
/**
|
|
11
|
+
* (Limited Release) You must be whitelisted to use this method.
|
|
12
|
+
* This method adds a coupon to an eBay proxy guest checkout session and applies it to all the eligible items in
|
|
13
|
+
* the order.
|
|
14
|
+
*
|
|
15
|
+
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
16
|
+
* returned by the initiateCheckoutSession method.
|
|
17
|
+
* @param body The container for the fields used to apply a coupon to a checkout session.
|
|
18
|
+
*/
|
|
19
|
+
applyCoupon(checkoutSessionId: string, body: CouponRequest): Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* This method returns the details of the specified eBay member checkout session.
|
|
22
|
+
*
|
|
23
|
+
* @param {String} checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is
|
|
24
|
+
* returned by the initiateCheckoutSession method.
|
|
25
|
+
*/
|
|
26
|
+
getCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* This method creates a eBay member checkout session, which is the first step in performing a checkout.
|
|
29
|
+
*
|
|
30
|
+
* @param body The container for the fields used by the initiateCheckoutSession method.
|
|
31
|
+
*/
|
|
32
|
+
initiateCheckoutSession(body?: CreateSignInCheckoutSessionRequest): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* This method creates the purchase order, pays for the items, and terminates the specified eBay member checkout
|
|
35
|
+
* session.
|
|
36
|
+
*
|
|
37
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
38
|
+
* initiateCheckoutSession method.
|
|
39
|
+
*/
|
|
40
|
+
placeOrder(checkoutSessionId: string): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay member
|
|
43
|
+
* checkout session.
|
|
44
|
+
*
|
|
45
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
46
|
+
* initiateCheckoutSession method.
|
|
47
|
+
* @param body CouponRequest
|
|
48
|
+
*/
|
|
49
|
+
removeCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
50
|
+
/**
|
|
51
|
+
* This method changes the payment method information of the specified eBay member checkout session.
|
|
52
|
+
*
|
|
53
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
54
|
+
* initiateCheckoutSession method.
|
|
55
|
+
* @param body UpdatePaymentInformation
|
|
56
|
+
*/
|
|
57
|
+
updatePaymentInfo(checkoutSessionId: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
58
|
+
/**
|
|
59
|
+
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
60
|
+
*
|
|
61
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
62
|
+
* initiateCheckoutSession method.
|
|
63
|
+
* @param body UpdateQuantity
|
|
64
|
+
*/
|
|
65
|
+
updateQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
66
|
+
/**
|
|
67
|
+
* This method changes the quantity of the specified line item in an eBay member checkout session.
|
|
68
|
+
*
|
|
69
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
70
|
+
* initiateCheckoutSession method.
|
|
71
|
+
* @param body UpdateQuantity
|
|
72
|
+
*/
|
|
73
|
+
checkoutSessionId(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
74
|
+
/**
|
|
75
|
+
* This method changes the shipping address for in an eBay member checkout session.
|
|
76
|
+
*
|
|
77
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
78
|
+
* initiateCheckoutSession method.
|
|
79
|
+
* @param body ShippingAddressImpl
|
|
80
|
+
*/
|
|
81
|
+
updateShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
82
|
+
/**
|
|
83
|
+
* This method changes the shipping method for the specified line item in an eBay member checkout session.
|
|
84
|
+
*
|
|
85
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
86
|
+
* initiateCheckoutSession method.
|
|
87
|
+
* @param body UpdateShippingOption
|
|
88
|
+
*/
|
|
89
|
+
updateShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay guest
|
|
92
|
+
* checkout
|
|
93
|
+
* session and applies it to all the eligible items in the order.
|
|
94
|
+
*
|
|
95
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
96
|
+
* initiateCheckoutSession method.
|
|
97
|
+
* @param body CouponRequest
|
|
98
|
+
*/
|
|
99
|
+
applyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
100
|
+
/**
|
|
101
|
+
* This method returns the details of the specified guest checkout session. The checkoutSessionId is passed in as a
|
|
102
|
+
* URI parameter and is required.
|
|
103
|
+
*
|
|
104
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
105
|
+
* initiateCheckoutSession method.
|
|
106
|
+
*/
|
|
107
|
+
getGuestCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
108
|
+
/**
|
|
109
|
+
* This method creates an eBay guest checkout session, which is the first step in performing a checkout.
|
|
110
|
+
*
|
|
111
|
+
* @param body CheckoutSessionRequest
|
|
112
|
+
*/
|
|
113
|
+
initiateGuestCheckoutSession(body?: CheckoutSessionRequest): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* This method is used only in the PayPal Smart Button eBay guest payment flow.
|
|
116
|
+
*
|
|
117
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
118
|
+
* initiateCheckoutSession method.
|
|
119
|
+
* @param body InitiatePaymentRequest
|
|
120
|
+
*/
|
|
121
|
+
initiateGuestPayment(checkoutSessionId: string, body?: InitiatePaymentRequest): Promise<any>;
|
|
122
|
+
/**
|
|
123
|
+
* This method creates the purchase order, pays for the items, and terminates the specified guest checkout session.
|
|
124
|
+
*
|
|
125
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
126
|
+
* initiateCheckoutSession method.
|
|
127
|
+
* @param body GuestPlaceOrderRequest
|
|
128
|
+
*/
|
|
129
|
+
placeGuestOrder(checkoutSessionId: string, body?: GuestPlaceOrderRequest): Promise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay guest
|
|
132
|
+
* checkout session.
|
|
133
|
+
*
|
|
134
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
135
|
+
* initiateCheckoutSession method.
|
|
136
|
+
* @param body CouponRequest
|
|
137
|
+
*/
|
|
138
|
+
removeGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
139
|
+
/**
|
|
140
|
+
* This method changes the payment method information of the specified guest checkout session.
|
|
141
|
+
*
|
|
142
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
143
|
+
* initiateCheckoutSession method.
|
|
144
|
+
* @param body UpdatePaymentInformation
|
|
145
|
+
*/
|
|
146
|
+
updateGuestPaymentInfo(checkoutSessionId: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
147
|
+
/**
|
|
148
|
+
* This method changes the quantity of the specified line item in an eBay guest checkout session.
|
|
149
|
+
*
|
|
150
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
151
|
+
* initiateCheckoutSession method.
|
|
152
|
+
* @param body UpdateQuantity
|
|
153
|
+
*/
|
|
154
|
+
updateGuestQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
155
|
+
/**
|
|
156
|
+
* This method changes the shipping address for the order in an eBay guest checkout session.
|
|
157
|
+
*
|
|
158
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
159
|
+
* initiateCheckoutSession method.
|
|
160
|
+
* @param body ShippingAddressImpl
|
|
161
|
+
*/
|
|
162
|
+
updateGuestShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
163
|
+
/**
|
|
164
|
+
* This method changes the shipping method for the specified line item in an eBay guest checkout session.
|
|
165
|
+
*
|
|
166
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
167
|
+
* initiateCheckoutSession method.
|
|
168
|
+
* @param body UpdateShippingOption
|
|
169
|
+
*/
|
|
170
|
+
updateGuestShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
171
|
+
/**
|
|
172
|
+
* (Limited Release) You must be whitelisted to use this method. This method adds a coupon to an eBay proxy guest
|
|
173
|
+
* checkout session and applies it to all the eligible items in the order.
|
|
174
|
+
*
|
|
175
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
176
|
+
* initiateCheckoutSession method.
|
|
177
|
+
* @param body CouponRequest
|
|
178
|
+
*/
|
|
179
|
+
applyProxyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
180
|
+
/**
|
|
181
|
+
* This method returns the details of the specified eBay proxy guest checkout session.
|
|
182
|
+
*
|
|
183
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
184
|
+
* initiateCheckoutSession method.
|
|
185
|
+
*/
|
|
186
|
+
getProxyGuestCheckoutSession(checkoutSessionId: string): Promise<any>;
|
|
187
|
+
/**
|
|
188
|
+
* This method creates an eBay proxy guest checkout session, which is a payment flow that requires integration
|
|
189
|
+
* with a VSP (vault service provider), such as Braintree. The VSP handles only the methods within this flow that
|
|
190
|
+
* contain payment information.
|
|
191
|
+
*
|
|
192
|
+
* @param body CheckoutSessionRequest
|
|
193
|
+
*/
|
|
194
|
+
initiateProxyGuestCheckoutSession(body?: CheckoutSessionRequest): Promise<any>;
|
|
195
|
+
/**
|
|
196
|
+
* This method creates the proxy guest purchase order, pays for the items, and terminates the specified guest
|
|
197
|
+
* checkout session.
|
|
198
|
+
*
|
|
199
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
200
|
+
* initiateCheckoutSession method.
|
|
201
|
+
* @param body GuestPlaceOrderRequest
|
|
202
|
+
*/
|
|
203
|
+
placeProxyGuestOrder(checkoutSessionId: string, body?: GuestPlaceOrderRequest): Promise<any>;
|
|
204
|
+
/**
|
|
205
|
+
* (Limited Release) You must be whitelisted to use this method. This method removes a coupon from an eBay proxy
|
|
206
|
+
* guest checkout session. The checkoutSessionId is passed in as a URI parameter and is required.
|
|
207
|
+
*
|
|
208
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
209
|
+
* initiateCheckoutSession method.
|
|
210
|
+
* @param body CouponRequest
|
|
211
|
+
*/
|
|
212
|
+
removeProxyGuestCoupon(checkoutSessionId: string, body?: CouponRequest): Promise<any>;
|
|
213
|
+
/**
|
|
214
|
+
* This method adds or changes the payment information of the specified proxy guest checkout session.
|
|
215
|
+
*
|
|
216
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
217
|
+
* initiateCheckoutSession method.
|
|
218
|
+
* @param authorization The oAuth2 token. Note: The eBay partner must include this header in the request.
|
|
219
|
+
* @param date The UTC timestamp of the request, which is generated and added to the request by the VSP.
|
|
220
|
+
* @param requestNonce A UUID (a 128-bit universal unique ID), which is generated and added to the request by the
|
|
221
|
+
* VSP.
|
|
222
|
+
* @param signature The HMAC signature, which is generated and added to the request by the VSP.
|
|
223
|
+
* @param body UpdatePaymentInformation
|
|
224
|
+
*/
|
|
225
|
+
updateProxyGuestPaymentInfo(checkoutSessionId: string, authorization: string, date: string, requestNonce: string, signature: string, body?: UpdatePaymentInformation): Promise<any>;
|
|
226
|
+
/**
|
|
227
|
+
* This method changes the quantity of the specified line item in an eBay proxy guest checkout session.
|
|
228
|
+
*
|
|
229
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
230
|
+
* initiateCheckoutSession method.
|
|
231
|
+
* @param body UpdateQuantity
|
|
232
|
+
*/
|
|
233
|
+
updateProxyGuestQuantity(checkoutSessionId: string, body?: UpdateQuantity): Promise<any>;
|
|
234
|
+
/**
|
|
235
|
+
* This method changes the shipping address for the order in an eBay proxy guest checkout session.
|
|
236
|
+
*
|
|
237
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
238
|
+
* initiateCheckoutSession method.
|
|
239
|
+
* @param body ShippingAddressImpl
|
|
240
|
+
*/
|
|
241
|
+
updateProxyGuestShippingAddress(checkoutSessionId: string, body?: ShippingAddressImpl): Promise<any>;
|
|
242
|
+
/**
|
|
243
|
+
* This method changes the shipping method for the specified line item in an eBay proxy guest checkout session.
|
|
244
|
+
*
|
|
245
|
+
* @param checkoutSessionId The eBay-assigned session ID, for a specific eBay marketplace, that is returned by the
|
|
246
|
+
* initiateCheckoutSession method.
|
|
247
|
+
* @param body UpdateShippingOption
|
|
248
|
+
*/
|
|
249
|
+
updateProxyGuestShippingOption(checkoutSessionId: string, body?: UpdateShippingOption): Promise<any>;
|
|
250
|
+
/**
|
|
251
|
+
* This method retrieves the details about a specific guest purchase order.
|
|
252
|
+
*
|
|
253
|
+
* @param purchaseOrderId The unique identifier of a purchase order made by a guest buyer, for which details are to
|
|
254
|
+
* be retrieved.
|
|
255
|
+
*/
|
|
256
|
+
getGuestPurchaseOrder(purchaseOrderId: string): Promise<any>;
|
|
257
|
+
/**
|
|
258
|
+
* This method retrieves the details about a specific eBay member purchase order.
|
|
259
|
+
*
|
|
260
|
+
* @param purchaseOrderId The unique identifier of a purchase order made by an eBay member, for which details are
|
|
261
|
+
* to be retrieved.
|
|
262
|
+
*/
|
|
263
|
+
getPurchaseOrder(purchaseOrderId: string): Promise<any>;
|
|
264
|
+
}
|