@spritz-finance/service-client 0.3.89 → 0.3.90

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.
@@ -75,6 +75,7 @@ export type UpsertVirtualCardInput = {
75
75
  country: string;
76
76
  mask: string;
77
77
  name: string;
78
+ nickname?: string;
78
79
  details: {
79
80
  number: string;
80
81
  expirationMonth: string;
@@ -11,6 +11,7 @@ export declare function validateContractAddress(input: {
11
11
  contractAddress: string;
12
12
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<boolean>>;
13
13
  export declare function getApplicationStatus(userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<ApplicationStatus>>;
14
- export declare function createRainCard({ userId }: {
14
+ export declare function createRainCard({ userId, nickname, }: {
15
15
  userId: string;
16
+ nickname?: string;
16
17
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<RainCard>>;
@@ -51,9 +51,9 @@ async function getApplicationStatus(userId) {
51
51
  .then((res) => res.data);
52
52
  }
53
53
  exports.getApplicationStatus = getApplicationStatus;
54
- async function createRainCard({ userId }) {
54
+ async function createRainCard({ userId, nickname, }) {
55
55
  return serviceClient_1.baseClient
56
- .post(`${RAIN_ENDPOINT}/card`, { userId })
56
+ .post(`${RAIN_ENDPOINT}/card`, { userId, nickname })
57
57
  .then((res) => res.data);
58
58
  }
59
59
  exports.createRainCard = createRainCard;
@@ -54,6 +54,7 @@ export type ApplicationStatus = typeof ApplicationStatus[keyof typeof Applicatio
54
54
  export type RainCard = {
55
55
  id: string;
56
56
  externalId: string;
57
+ accountId: string;
57
58
  userId: string;
58
59
  type: 'virtual' | 'physical';
59
60
  status: CardStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.89",
3
+ "version": "0.3.90",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",