-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlocation.js
59 lines (56 loc) · 1.99 KB
/
location.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'use strict';
var eBayResource = require('../../eBayResource');
var eBayMethod = eBayResource.method;
module.exports = eBayResource.extend({
createInventoryLocation: eBayMethod({
authorization: 'User',
contentType: 'application/json',
method: 'POST',
path: 'sell/inventory/v1/location/{merchantLocationKey}',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
updateInventoryLocation: eBayMethod({
authorization: 'User',
contentType: 'application/json',
method: 'POST',
path: 'sell/inventory/v1/location/{merchantLocationKey}/update_location_details',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
enableInventoryLocation: eBayMethod({
authorization: 'User',
contentType: 'application/json',
method: 'POST',
path: 'sell/inventory/v1/location/{merchantLocationKey}/enable',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
disableInventoryLocation: eBayMethod({
authorization: 'User',
contentType: 'application/json',
method: 'POST',
path: 'sell/inventory/v1/location/{merchantLocationKey}/disable',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
getInventoryLocation: eBayMethod({
authorization: 'User',
method: 'GET',
path: 'sell/inventory/v1/location/{merchantLocationKey}',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
deleteInventoryLocation: eBayMethod({
authorization: 'User',
method: 'GET',
path: 'sell/inventory/v1/location/{merchantLocationKey}',
urlParams: ['merchantLocationKey'],
required: ['merchantLocationKey']
}),
getInventoryLocations: eBayMethod({
authorization: 'User',
method: 'GET',
path: 'sell/inventory/v1/location'
})
});