@spritz-finance/service-client 0.2.49 → 0.2.51

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.
@@ -17,10 +17,16 @@ interface AddressMembershipResponse {
17
17
  address: string;
18
18
  membership: string;
19
19
  }
20
+ interface ReservePaymentAddressResponse {
21
+ address: string;
22
+ network: string;
23
+ accountId: string;
24
+ }
20
25
  export declare class TransactionsServiceClient {
21
26
  client: AxiosInstance;
22
27
  constructor();
23
28
  createPaymentInvoice(network: string, amount: number, paymentReference: string, tokenAddress?: string): Promise<UtxoInvoice>;
29
+ reserveAddress(network: string, accountId: string): Promise<ReservePaymentAddressResponse>;
24
30
  getWalletMembership(address: string): Promise<AddressMembershipResponse>;
25
31
  }
26
32
  export {};
@@ -19,6 +19,14 @@ class TransactionsServiceClient {
19
19
  })
20
20
  .then((res) => res.data);
21
21
  }
22
+ async reserveAddress(network, accountId) {
23
+ return this.client
24
+ .post(`/addresses/reserve`, {
25
+ network,
26
+ accountId,
27
+ })
28
+ .then((res) => res.data);
29
+ }
22
30
  async getWalletMembership(address) {
23
31
  return this.client
24
32
  .get(`/addresses/${address}/membership`)
@@ -39,7 +39,7 @@ export declare type Verification = {
39
39
  };
40
40
  virtualCard: {
41
41
  status: VerificationModuleStatus;
42
- payableTypes: PayableType[];
42
+ availableCardTypes: PayableType[];
43
43
  };
44
44
  };
45
45
  declare type User = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",