btrz-api-client 5.208.0 → 5.209.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/lib/client-standalone-min.js +1 -1
- package/lib/endpoints/inventory/financing-costs.js +4 -1
- package/lib/endpoints/sales/cart.js +4 -1
- package/package.json +1 -1
- package/src/endpoints/inventory/financing-costs.js +8 -1
- package/src/endpoints/sales/cart.js +2 -1
- package/types/client.d.ts +4 -2
- package/types/endpoints/inventory/financing-costs.d.ts +2 -1
- package/types/endpoints/sales/cart.d.ts +2 -1
- package/types/initializedClient.d.ts +4 -2
|
@@ -24,9 +24,12 @@ function financingCostsFactory(_ref) {
|
|
|
24
24
|
var id = _ref3.id,
|
|
25
25
|
token = _ref3.token,
|
|
26
26
|
headers = _ref3.headers,
|
|
27
|
-
jwtToken = _ref3.jwtToken
|
|
27
|
+
jwtToken = _ref3.jwtToken,
|
|
28
|
+
_ref3$query = _ref3.query,
|
|
29
|
+
query = _ref3$query === undefined ? {} : _ref3$query;
|
|
28
30
|
|
|
29
31
|
return client.get("/financing-costs/" + id, {
|
|
32
|
+
params: query,
|
|
30
33
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
31
34
|
});
|
|
32
35
|
}
|
|
@@ -167,11 +167,14 @@ function cartFactory(_ref) {
|
|
|
167
167
|
jwtToken = _ref12.jwtToken,
|
|
168
168
|
headers = _ref12.headers,
|
|
169
169
|
cartId = _ref12.cartId,
|
|
170
|
-
financingCost = _ref12.financingCost
|
|
170
|
+
financingCost = _ref12.financingCost,
|
|
171
|
+
_ref12$query = _ref12.query,
|
|
172
|
+
query = _ref12$query === undefined ? {} : _ref12$query;
|
|
171
173
|
|
|
172
174
|
return client({
|
|
173
175
|
url: "/carts/" + cartId + "/financing-costs",
|
|
174
176
|
method: "POST",
|
|
177
|
+
params: query,
|
|
175
178
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
176
179
|
data: {
|
|
177
180
|
financingcost: financingCost
|
package/package.json
CHANGED
|
@@ -15,8 +15,15 @@ function financingCostsFactory({client, internalAuthTokenProvider}) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
function get({
|
|
18
|
+
function get({
|
|
19
|
+
id,
|
|
20
|
+
token,
|
|
21
|
+
headers,
|
|
22
|
+
jwtToken,
|
|
23
|
+
query = {}
|
|
24
|
+
}) {
|
|
19
25
|
return client.get(`/financing-costs/${id}`, {
|
|
26
|
+
params: query,
|
|
20
27
|
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
21
28
|
});
|
|
22
29
|
}
|
|
@@ -99,10 +99,11 @@ function cartFactory({client, internalAuthTokenProvider}) {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
const financingCosts = {
|
|
102
|
-
create({token, jwtToken, headers, cartId, financingCost}) {
|
|
102
|
+
create({token, jwtToken, headers, cartId, financingCost, query = {}}) {
|
|
103
103
|
return client({
|
|
104
104
|
url: `/carts/${cartId}/financing-costs`,
|
|
105
105
|
method: "POST",
|
|
106
|
+
params: query,
|
|
106
107
|
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
107
108
|
data: {
|
|
108
109
|
financingcost: financingCost
|
package/types/client.d.ts
CHANGED
|
@@ -1699,11 +1699,12 @@ export function createApiClient(options: {
|
|
|
1699
1699
|
query?: {};
|
|
1700
1700
|
headers: any;
|
|
1701
1701
|
}) => any;
|
|
1702
|
-
get: ({ id, token, headers, jwtToken }: {
|
|
1702
|
+
get: ({ id, token, headers, jwtToken, query }: {
|
|
1703
1703
|
id: any;
|
|
1704
1704
|
token: any;
|
|
1705
1705
|
headers: any;
|
|
1706
1706
|
jwtToken: any;
|
|
1707
|
+
query?: {};
|
|
1707
1708
|
}) => any;
|
|
1708
1709
|
create: ({ jwtToken, token, financingCost, headers }: {
|
|
1709
1710
|
jwtToken: any;
|
|
@@ -2906,12 +2907,13 @@ export function createApiClient(options: {
|
|
|
2906
2907
|
}): any;
|
|
2907
2908
|
};
|
|
2908
2909
|
financingCosts: {
|
|
2909
|
-
create({ token, jwtToken, headers, cartId, financingCost }: {
|
|
2910
|
+
create({ token, jwtToken, headers, cartId, financingCost, query }: {
|
|
2910
2911
|
token: any;
|
|
2911
2912
|
jwtToken: any;
|
|
2912
2913
|
headers: any;
|
|
2913
2914
|
cartId: any;
|
|
2914
2915
|
financingCost: any;
|
|
2916
|
+
query?: {};
|
|
2915
2917
|
}): any;
|
|
2916
2918
|
delete({ token, jwtToken, headers, cartId }: {
|
|
2917
2919
|
token: any;
|
|
@@ -9,11 +9,12 @@ declare function financingCostsFactory({ client, internalAuthTokenProvider }: {
|
|
|
9
9
|
query?: {};
|
|
10
10
|
headers: any;
|
|
11
11
|
}) => any;
|
|
12
|
-
get: ({ id, token, headers, jwtToken }: {
|
|
12
|
+
get: ({ id, token, headers, jwtToken, query }: {
|
|
13
13
|
id: any;
|
|
14
14
|
token: any;
|
|
15
15
|
headers: any;
|
|
16
16
|
jwtToken: any;
|
|
17
|
+
query?: {};
|
|
17
18
|
}) => any;
|
|
18
19
|
create: ({ jwtToken, token, financingCost, headers }: {
|
|
19
20
|
jwtToken: any;
|
|
@@ -78,12 +78,13 @@ declare function cartFactory({ client, internalAuthTokenProvider }: {
|
|
|
78
78
|
}): any;
|
|
79
79
|
};
|
|
80
80
|
financingCosts: {
|
|
81
|
-
create({ token, jwtToken, headers, cartId, financingCost }: {
|
|
81
|
+
create({ token, jwtToken, headers, cartId, financingCost, query }: {
|
|
82
82
|
token: any;
|
|
83
83
|
jwtToken: any;
|
|
84
84
|
headers: any;
|
|
85
85
|
cartId: any;
|
|
86
86
|
financingCost: any;
|
|
87
|
+
query?: {};
|
|
87
88
|
}): any;
|
|
88
89
|
delete({ token, jwtToken, headers, cartId }: {
|
|
89
90
|
token: any;
|
|
@@ -1653,11 +1653,12 @@ declare const _exports: {
|
|
|
1653
1653
|
query?: {};
|
|
1654
1654
|
headers: any;
|
|
1655
1655
|
}) => any;
|
|
1656
|
-
get: ({ id, token, headers, jwtToken }: {
|
|
1656
|
+
get: ({ id, token, headers, jwtToken, query }: {
|
|
1657
1657
|
id: any;
|
|
1658
1658
|
token: any;
|
|
1659
1659
|
headers: any;
|
|
1660
1660
|
jwtToken: any;
|
|
1661
|
+
query?: {};
|
|
1661
1662
|
}) => any;
|
|
1662
1663
|
create: ({ jwtToken, token, financingCost, headers }: {
|
|
1663
1664
|
jwtToken: any;
|
|
@@ -2860,12 +2861,13 @@ declare const _exports: {
|
|
|
2860
2861
|
}): any;
|
|
2861
2862
|
};
|
|
2862
2863
|
financingCosts: {
|
|
2863
|
-
create({ token, jwtToken, headers, cartId, financingCost }: {
|
|
2864
|
+
create({ token, jwtToken, headers, cartId, financingCost, query }: {
|
|
2864
2865
|
token: any;
|
|
2865
2866
|
jwtToken: any;
|
|
2866
2867
|
headers: any;
|
|
2867
2868
|
cartId: any;
|
|
2868
2869
|
financingCost: any;
|
|
2870
|
+
query?: {};
|
|
2869
2871
|
}): any;
|
|
2870
2872
|
delete({ token, jwtToken, headers, cartId }: {
|
|
2871
2873
|
token: any;
|