btrz-api-client 8.47.0 → 8.48.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.
|
@@ -42,7 +42,41 @@ function externalCustomersFactory(_ref) {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
var saldoMax = {
|
|
46
|
+
/**
|
|
47
|
+
* GET /external-customers/ado - get SaldoMax user by email, phone or walletId.
|
|
48
|
+
* The querying precedence is (from higher to lower precedence):
|
|
49
|
+
*
|
|
50
|
+
* - email
|
|
51
|
+
* - phone
|
|
52
|
+
* - walletId
|
|
53
|
+
*
|
|
54
|
+
* Only the first option found is used in the lookup.
|
|
55
|
+
* @param {Object} opts
|
|
56
|
+
* @param {string} [opts.token] - API key
|
|
57
|
+
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
58
|
+
* @param {{email?: string, phone?: string, walletId?: string}} opts.query - Query to get the SaldoMax user
|
|
59
|
+
* @param {Object} [opts.headers] - Optional headers
|
|
60
|
+
* @returns {Promise<import("axios").AxiosResponse<{ adoUsers: Array<Object> }>>}
|
|
61
|
+
* @throws When response is 4xx/5xx (400, 401, 404 EXTERNAL_WALLET_NOT_FOUND, 500)
|
|
62
|
+
*/
|
|
63
|
+
get: function get(_ref3) {
|
|
64
|
+
var token = _ref3.token,
|
|
65
|
+
jwtToken = _ref3.jwtToken,
|
|
66
|
+
query = _ref3.query,
|
|
67
|
+
headers = _ref3.headers;
|
|
68
|
+
|
|
69
|
+
return client.get("/external-customers/ado", {
|
|
70
|
+
params: query,
|
|
71
|
+
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers })
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
create: registerSaldoMax
|
|
75
|
+
};
|
|
76
|
+
|
|
45
77
|
return {
|
|
78
|
+
saldoMax: saldoMax,
|
|
79
|
+
// Keep here for backwards compat
|
|
46
80
|
registerSaldoMax: registerSaldoMax
|
|
47
81
|
};
|
|
48
82
|
}
|
package/package.json
CHANGED
|
@@ -29,7 +29,36 @@ function externalCustomersFactory({client, internalAuthTokenProvider}) {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
const saldoMax = {
|
|
33
|
+
/**
|
|
34
|
+
* GET /external-customers/ado - get SaldoMax user by email, phone or walletId.
|
|
35
|
+
* The querying precedence is (from higher to lower precedence):
|
|
36
|
+
*
|
|
37
|
+
* - email
|
|
38
|
+
* - phone
|
|
39
|
+
* - walletId
|
|
40
|
+
*
|
|
41
|
+
* Only the first option found is used in the lookup.
|
|
42
|
+
* @param {Object} opts
|
|
43
|
+
* @param {string} [opts.token] - API key
|
|
44
|
+
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
45
|
+
* @param {{email?: string, phone?: string, walletId?: string}} opts.query - Query to get the SaldoMax user
|
|
46
|
+
* @param {Object} [opts.headers] - Optional headers
|
|
47
|
+
* @returns {Promise<import("axios").AxiosResponse<{ adoUsers: Array<Object> }>>}
|
|
48
|
+
* @throws When response is 4xx/5xx (400, 401, 404 EXTERNAL_WALLET_NOT_FOUND, 500)
|
|
49
|
+
*/
|
|
50
|
+
get: ({token, jwtToken, query, headers}) => {
|
|
51
|
+
return client.get("/external-customers/ado", {
|
|
52
|
+
params: query,
|
|
53
|
+
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers})
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
create: registerSaldoMax
|
|
57
|
+
};
|
|
58
|
+
|
|
32
59
|
return {
|
|
60
|
+
saldoMax,
|
|
61
|
+
// Keep here for backwards compat
|
|
33
62
|
registerSaldoMax
|
|
34
63
|
};
|
|
35
64
|
}
|