@technance/technance-payment-sdk 1.0.7 → 1.0.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @technance/technance-payment-sdk
2
2
 
3
+ ## 1.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ce7bff: Add `backoffice.getPartnerVaultBalances(partnerId)` for the balances of a partner's own bank wallets (`GET /api/v1/backoffice/vault/partners/:partnerId/balances`).
8
+
3
9
  ## 1.0.7
4
10
 
5
11
  ### Patch Changes
@@ -46,6 +46,7 @@ declare class Client {
46
46
  getWithdrawalOrders(query?: GetManyWithdrawalOrders.Query): Promise<axios.AxiosResponse<Pagination<BackofficeWithdrawalOrder>, any, {}>>;
47
47
  getWithdrawalOrder(id: string | number): Promise<axios.AxiosResponse<BackofficeWithdrawalOrderDetail, any, {}>>;
48
48
  getVaultBalances(): Promise<axios.AxiosResponse<VaultBalance[], any, {}>>;
49
+ getPartnerVaultBalances(partnerId: string | number): Promise<axios.AxiosResponse<VaultBalance[], any, {}>>;
49
50
  getWebhookDeliveries(query?: GetManyWebhookDeliveries.Query): Promise<axios.AxiosResponse<Pagination<BackofficeWebhookDelivery>, any, {}>>;
50
51
  retryWebhookDelivery(id: string): Promise<axios.AxiosResponse<BackofficeWebhookDelivery, any, {}>>;
51
52
  }
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { A as ApiClient, f as createApiClient } from './ApiClient-YcAJEgtc.js';
2
+ export { A as ApiClient, f as createApiClient } from './ApiClient-BSk4V0dr.js';
3
3
  import './types/WithdrawalOrder.js';
4
4
  import './types/GetManyWithdrawalOrder.js';
5
5
  import './types/Pagination.js';
package/dist/Client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { e as ClientParams, g as createClient } from './ApiClient-YcAJEgtc.js';
2
+ export { e as ClientParams, g as createClient } from './ApiClient-BSk4V0dr.js';
3
3
  import './types/WithdrawalOrder.js';
4
4
  import './types/GetManyWithdrawalOrder.js';
5
5
  import './types/Pagination.js';
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { C as Client } from '../../ApiClient-YcAJEgtc.js';
2
+ export { C as Client } from '../../ApiClient-BSk4V0dr.js';
3
3
  import '../../types/Backoffice.js';
4
4
  import '../../types/Pagination.js';
5
5
  import './types.js';
@@ -1 +1 @@
1
- 'use strict';var routing=require('../../routing');class o{constructor(e){this.apiClient=e;}getWithdrawalOrders(e){const t=routing.routing.backoffice.withdrawals.getMany;return this.apiClient.get(t,{params:e})}getWithdrawalOrder(e){const t=routing.routing.backoffice.withdrawals.getOne(e);return this.apiClient.get(t)}getVaultBalances(){const e=routing.routing.backoffice.vault.balances;return this.apiClient.get(e)}getWebhookDeliveries(e){const t=routing.routing.backoffice.webhooks.getMany;return this.apiClient.get(t,{params:e})}retryWebhookDelivery(e){const t=routing.routing.backoffice.webhooks.retry(e);return this.apiClient.post(t)}}exports.Client=o;
1
+ 'use strict';var routing=require('../../routing');class n{constructor(e){this.apiClient=e;}getWithdrawalOrders(e){const t=routing.routing.backoffice.withdrawals.getMany;return this.apiClient.get(t,{params:e})}getWithdrawalOrder(e){const t=routing.routing.backoffice.withdrawals.getOne(e);return this.apiClient.get(t)}getVaultBalances(){const e=routing.routing.backoffice.vault.balances;return this.apiClient.get(e)}getPartnerVaultBalances(e){const t=routing.routing.backoffice.vault.partnerBalances(e);return this.apiClient.get(t)}getWebhookDeliveries(e){const t=routing.routing.backoffice.webhooks.getMany;return this.apiClient.get(t,{params:e})}retryWebhookDelivery(e){const t=routing.routing.backoffice.webhooks.retry(e);return this.apiClient.post(t)}}exports.Client=n;
@@ -1,4 +1,4 @@
1
- export { C as Client } from '../../ApiClient-YcAJEgtc.js';
1
+ export { C as Client } from '../../ApiClient-BSk4V0dr.js';
2
2
  export { GetManyWebhookDeliveries, GetManyWithdrawalOrders } from './types.js';
3
3
  import 'axios';
4
4
  import '../../types/WithdrawalOrder.js';
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { a as Client } from '../../ApiClient-YcAJEgtc.js';
2
+ export { a as Client } from '../../ApiClient-BSk4V0dr.js';
3
3
  import '../../types/Currency.js';
4
4
  import '../../types/WithdrawalOrder.js';
5
5
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,4 +1,4 @@
1
- export { a as Client } from '../../ApiClient-YcAJEgtc.js';
1
+ export { a as Client } from '../../ApiClient-BSk4V0dr.js';
2
2
  import 'axios';
3
3
  import '../../types/WithdrawalOrder.js';
4
4
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { b as Client } from '../../ApiClient-YcAJEgtc.js';
2
+ export { b as Client } from '../../ApiClient-BSk4V0dr.js';
3
3
  import '../../types/Network.js';
4
4
  import '../../types/WithdrawalOrder.js';
5
5
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,4 +1,4 @@
1
- export { b as Client } from '../../ApiClient-YcAJEgtc.js';
1
+ export { b as Client } from '../../ApiClient-BSk4V0dr.js';
2
2
  import 'axios';
3
3
  import '../../types/WithdrawalOrder.js';
4
4
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { c as Client } from '../../ApiClient-YcAJEgtc.js';
2
+ export { c as Client } from '../../ApiClient-BSk4V0dr.js';
3
3
  import '../../types/Balance.js';
4
4
  import '../../types/Partner.js';
5
5
  import '../../types/WithdrawalOrder.js';
@@ -1,4 +1,4 @@
1
- export { c as Client } from '../../ApiClient-YcAJEgtc.js';
1
+ export { c as Client } from '../../ApiClient-BSk4V0dr.js';
2
2
  import 'axios';
3
3
  import '../../types/WithdrawalOrder.js';
4
4
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,5 +1,5 @@
1
1
  import 'axios';
2
- export { d as Client } from '../../ApiClient-YcAJEgtc.js';
2
+ export { d as Client } from '../../ApiClient-BSk4V0dr.js';
3
3
  import '../../types/WithdrawalOrder.js';
4
4
  import '../../types/GetManyWithdrawalOrder.js';
5
5
  import '../../types/Pagination.js';
@@ -1,4 +1,4 @@
1
- export { d as Client } from '../../ApiClient-YcAJEgtc.js';
1
+ export { d as Client } from '../../ApiClient-BSk4V0dr.js';
2
2
  import 'axios';
3
3
  import '../../types/WithdrawalOrder.js';
4
4
  import '../../types/GetManyWithdrawalOrder.js';
@@ -1,9 +1,9 @@
1
- export { i as WithdrawalOrders } from '../index-6Az0wEqj.js';
2
- export { i as Partners } from '../index-n6Xc_D9h.js';
3
- export { i as Currencies } from '../index-RYmKHYSW.js';
4
- export { i as Networks } from '../index-QRwWK6Tg.js';
5
- export { i as Backoffice } from '../index-gxIgyrPZ.js';
6
- import '../ApiClient-YcAJEgtc.js';
1
+ export { i as WithdrawalOrders } from '../index-CcICgWV6.js';
2
+ export { i as Partners } from '../index-BvLiNVn3.js';
3
+ export { i as Currencies } from '../index-h5XnZ43N.js';
4
+ export { i as Networks } from '../index-BaIPf8PZ.js';
5
+ export { i as Backoffice } from '../index-D-mEY-Cr.js';
6
+ import '../ApiClient-BSk4V0dr.js';
7
7
  import 'axios';
8
8
  import '../types/WithdrawalOrder.js';
9
9
  import '../types/GetManyWithdrawalOrder.js';
@@ -1,4 +1,4 @@
1
- import { c as Client } from './ApiClient-YcAJEgtc.js';
1
+ import { b as Client } from './ApiClient-BSk4V0dr.js';
2
2
 
3
3
  declare const index_Client: typeof Client;
4
4
  declare namespace index {
@@ -1,4 +1,4 @@
1
- import { d as Client } from './ApiClient-YcAJEgtc.js';
1
+ import { c as Client } from './ApiClient-BSk4V0dr.js';
2
2
 
3
3
  declare const index_Client: typeof Client;
4
4
  declare namespace index {
@@ -1,4 +1,4 @@
1
- import { b as Client } from './ApiClient-YcAJEgtc.js';
1
+ import { d as Client } from './ApiClient-BSk4V0dr.js';
2
2
 
3
3
  declare const index_Client: typeof Client;
4
4
  declare namespace index {
@@ -1,4 +1,4 @@
1
- import { C as Client } from './ApiClient-YcAJEgtc.js';
1
+ import { C as Client } from './ApiClient-BSk4V0dr.js';
2
2
  import { GetManyWebhookDeliveries, GetManyWithdrawalOrders } from './endpoints/Backoffice/types.js';
3
3
 
4
4
  declare const index_Client: typeof Client;
@@ -1,4 +1,4 @@
1
- import { a as Client } from './ApiClient-YcAJEgtc.js';
1
+ import { a as Client } from './ApiClient-BSk4V0dr.js';
2
2
 
3
3
  declare const index_Client: typeof Client;
4
4
  declare namespace index {
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as ApiClient, e as ClientParams, g as createClient } from './ApiClient-YcAJEgtc.js';
1
+ export { A as ApiClient, e as ClientParams, g as createClient } from './ApiClient-BSk4V0dr.js';
2
2
  export { TechnancePaymentWebhookValidationFailure, TechnancePaymentWebhookValidationFailureResult, TechnancePaymentWebhookValidationOutcome, TechnancePaymentWebhookValidationResult, ValidateTechnancePaymentWebhookParams, validateTechnancePaymentWebhook } from './webhooks/validator.js';
3
- export { i as WithdrawalOrders } from './index-6Az0wEqj.js';
4
- export { i as Partners } from './index-n6Xc_D9h.js';
5
- export { i as Currencies } from './index-RYmKHYSW.js';
6
- export { i as Networks } from './index-QRwWK6Tg.js';
7
- export { i as Backoffice } from './index-gxIgyrPZ.js';
3
+ export { i as WithdrawalOrders } from './index-CcICgWV6.js';
4
+ export { i as Partners } from './index-BvLiNVn3.js';
5
+ export { i as Currencies } from './index-h5XnZ43N.js';
6
+ export { i as Networks } from './index-BaIPf8PZ.js';
7
+ export { i as Backoffice } from './index-D-mEY-Cr.js';
8
8
  export { Balance } from './types/Balance.js';
9
9
  export { BackofficePaymentProvider, BackofficeWebhookDelivery, BackofficeWebhookDeliveryStatus, BackofficeWebhookEvent, BackofficeWithdrawal, BackofficeWithdrawalOrder, BackofficeWithdrawalOrderDetail, BackofficeWithdrawalStatus, VaultBalance } from './types/Backoffice.js';
10
10
  export { Currency } from './types/Currency.js';
package/dist/routing.d.ts CHANGED
@@ -23,6 +23,7 @@ declare const routing: {
23
23
  };
24
24
  vault: {
25
25
  balances: string;
26
+ partnerBalances: (partnerId: string | number) => string;
26
27
  };
27
28
  webhooks: {
28
29
  getMany: string;
package/dist/routing.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a={partners:{me:"/api/v1/partners",balances:"/api/v1/partner/balances"},withdrawalOrders:{placeOrder:"/api/v1/payment/withdrawals",getMany:"/api/v1/payment/withdrawals",getOne:e=>`/api/v1/payment/withdrawals/${encodeURIComponent(String(e))}`},currencies:{getAll:"/api/v1/currencies",getOne:e=>`/api/v1/currencies/${encodeURIComponent(String(e))}`},networks:{getAll:"/api/v1/networks",getOne:e=>`/api/v1/networks/${encodeURIComponent(String(e))}`},backoffice:{withdrawals:{getMany:"/api/v1/backoffice/withdrawals",getOne:e=>`/api/v1/backoffice/withdrawals/${encodeURIComponent(String(e))}`},vault:{balances:"/api/v1/backoffice/vault/balances"},webhooks:{getMany:"/api/v1/backoffice/webhooks",retry:e=>`/api/v1/backoffice/webhooks/${encodeURIComponent(String(e))}/retry`}}};exports.routing=a;
1
+ 'use strict';const a={partners:{me:"/api/v1/partners",balances:"/api/v1/partner/balances"},withdrawalOrders:{placeOrder:"/api/v1/payment/withdrawals",getMany:"/api/v1/payment/withdrawals",getOne:e=>`/api/v1/payment/withdrawals/${encodeURIComponent(String(e))}`},currencies:{getAll:"/api/v1/currencies",getOne:e=>`/api/v1/currencies/${encodeURIComponent(String(e))}`},networks:{getAll:"/api/v1/networks",getOne:e=>`/api/v1/networks/${encodeURIComponent(String(e))}`},backoffice:{withdrawals:{getMany:"/api/v1/backoffice/withdrawals",getOne:e=>`/api/v1/backoffice/withdrawals/${encodeURIComponent(String(e))}`},vault:{balances:"/api/v1/backoffice/vault/balances",partnerBalances:e=>`/api/v1/backoffice/vault/partners/${encodeURIComponent(String(e))}/balances`},webhooks:{getMany:"/api/v1/backoffice/webhooks",retry:e=>`/api/v1/backoffice/webhooks/${encodeURIComponent(String(e))}/retry`}}};exports.routing=a;
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "module": "./dist/index.js",
41
41
  "name": "@technance/technance-payment-sdk",
42
42
  "types": "./dist/index.d.ts",
43
- "version": "1.0.7",
43
+ "version": "1.0.8",
44
44
  "repository": {
45
45
  "type": "git",
46
46
  "url": "git+https://github.com/technance-foundation/technance-payment.git",