@dc-qash/sdk 1.3.2 → 1.3.4
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/dist/lib.d.ts +1 -1
- package/dist/lib.js +2 -2
- package/package.json +1 -1
package/dist/lib.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export type AccountHolder = IndividualAccountHolder;
|
|
|
69
69
|
export type AccountListQuery = {
|
|
70
70
|
partner?: string | string[];
|
|
71
71
|
type?: string | string[];
|
|
72
|
-
|
|
72
|
+
account_holder?: string | string[];
|
|
73
73
|
currency?: string | string[];
|
|
74
74
|
};
|
|
75
75
|
export type CurrencyExchangeRate = {
|
package/dist/lib.js
CHANGED
|
@@ -162,7 +162,7 @@ class QashCBS {
|
|
|
162
162
|
createIndividualAccountHolder(data) {
|
|
163
163
|
return new Promise(async (resolve, reject) => {
|
|
164
164
|
try {
|
|
165
|
-
let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/account-holders`, { method: "POST", body: JSON.stringify(Object.assign({ type: "individual" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}
|
|
165
|
+
let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/account-holders`, { method: "POST", body: JSON.stringify(Object.assign({ type: "individual" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}`, "Content-Type": "application/json" } }).then(r => r.json());
|
|
166
166
|
if (_q.error || _q.errors)
|
|
167
167
|
throw _q.errors || [_q.error];
|
|
168
168
|
return resolve(_q);
|
|
@@ -178,7 +178,7 @@ class QashCBS {
|
|
|
178
178
|
createCheckingAccount(data) {
|
|
179
179
|
return new Promise(async (resolve, reject) => {
|
|
180
180
|
try {
|
|
181
|
-
let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/accounts`, { method: "POST", body: JSON.stringify(Object.assign({ type: "checking_account" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}
|
|
181
|
+
let _q = await fetch(`${__classPrivateFieldGet(this, _QashCBS_sdk, "f").environment}/v1/cbs/accounts`, { method: "POST", body: JSON.stringify(Object.assign({ type: "checking_account" }, data)), headers: { Authorization: `Basic ${__classPrivateFieldGet(this, _QashCBS_sdk, "f").apiKey}`, "Content-Type": "application/json" } }).then(r => r.json());
|
|
182
182
|
if (_q.error || _q.errors)
|
|
183
183
|
throw _q.errors || [_q.error];
|
|
184
184
|
return resolve(_q);
|