@spritz-finance/service-client 0.3.124 → 0.3.125

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.
@@ -106,15 +106,13 @@ export type UpsertVirtualCardInput = {
106
106
  };
107
107
  shippingInfo?: {
108
108
  address: {
109
- line1: string;
110
- line2?: string | undefined;
109
+ street: string;
110
+ street2?: string;
111
111
  city: string;
112
- region: string;
112
+ subdivision: string;
113
113
  postalCode: string;
114
114
  countryCode: string;
115
115
  };
116
- country: string;
117
- phoneNumber?: string | undefined;
118
116
  method?: string | undefined;
119
117
  } | undefined;
120
118
  };
@@ -15,11 +15,11 @@ export declare function getApplicationStatus(userId: string): Promise<import("..
15
15
  status: ApplicationStatus;
16
16
  applicationCompletionLink: string | undefined;
17
17
  }>>;
18
- export declare function createRainCard({ userId, nickname, type, shippingDetails, }: {
18
+ export declare function createRainCard({ userId, nickname, type, shipping, }: {
19
19
  userId: string;
20
20
  nickname?: string;
21
21
  type?: CardType;
22
- shippingDetails?: ShippingDetails;
22
+ shipping?: ShippingDetails;
23
23
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<RainCard>>;
24
24
  export declare function updateCardStatus({ userId, status, cardExternalId, }: {
25
25
  userId: string;
@@ -51,13 +51,13 @@ async function getApplicationStatus(userId) {
51
51
  .then((res) => res.data);
52
52
  }
53
53
  exports.getApplicationStatus = getApplicationStatus;
54
- async function createRainCard({ userId, nickname, type, shippingDetails, }) {
54
+ async function createRainCard({ userId, nickname, type, shipping, }) {
55
55
  return serviceClient_1.baseClient
56
56
  .post(`${RAIN_ENDPOINT}/card`, {
57
57
  userId,
58
58
  nickname,
59
59
  type,
60
- shippingDetails,
60
+ shipping,
61
61
  })
62
62
  .then((res) => res.data);
63
63
  }
@@ -41,10 +41,10 @@ export declare const CardStatus: {
41
41
  export type CardStatus = typeof CardStatus[keyof typeof CardStatus];
42
42
  export type ShippingDetails = {
43
43
  address: {
44
- line1: string;
45
- line2?: string;
44
+ street: string;
45
+ street2?: string;
46
46
  city: string;
47
- region: string;
47
+ subdivision: string;
48
48
  postalCode: string;
49
49
  countryCode: string;
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.124",
3
+ "version": "0.3.125",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",