@kard-financial/sdk 9.0.0 → 10.0.1

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@kard-financial/sdk",
46
- "X-Fern-SDK-Version": "9.0.0",
47
- "User-Agent": "@kard-financial/sdk/9.0.0",
46
+ "X-Fern-SDK-Version": "10.0.1",
47
+ "User-Agent": "@kard-financial/sdk/10.0.1",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -39,7 +39,7 @@ import type * as KardApi from "../../../index.js";
39
39
  * type: "earnedRewardApproved",
40
40
  * id: "d80a6f28-1b24-4d65-9e42-e1cf3379bc98",
41
41
  * attributes: {
42
- * message: "You have earned a 72 cent reward on your transaction at McDonald's",
42
+ * message: "Thanks for shopping at McDonald's! We're checking to see if your purchase qualifies for cash back.",
43
43
  * name: "McDonald's",
44
44
  * attributionUrl: "www.attribution.com/token",
45
45
  * surveyUrl: "www.survey.com",
@@ -167,7 +167,8 @@ export declare class TransactionsClient {
167
167
  * status: "SETTLED",
168
168
  * settledDate: "2024-10-15T14:30:00Z",
169
169
  * authorizationDate: "2024-10-15T14:25:00Z",
170
- * financialInstitutionName: "west union bank"
170
+ * financialInstitutionName: "west union bank",
171
+ * cardLastFours: ["4321"]
171
172
  * }
172
173
  * }]
173
174
  * })
@@ -210,7 +210,8 @@ class TransactionsClient {
210
210
  * status: "SETTLED",
211
211
  * settledDate: "2024-10-15T14:30:00Z",
212
212
  * authorizationDate: "2024-10-15T14:25:00Z",
213
- * financialInstitutionName: "west union bank"
213
+ * financialInstitutionName: "west union bank",
214
+ * cardLastFours: ["4321"]
214
215
  * }
215
216
  * }]
216
217
  * })
@@ -20,6 +20,6 @@ export interface CoreTransactionAttributes {
20
20
  authorizationDate: string;
21
21
  /** Name of the financial institution */
22
22
  financialInstitutionName: string;
23
- /** Last four digits of the card used for the transaction. */
24
- cardLastFour?: string;
23
+ /** Last four digits of the card(s) that may have been used for the transaction. When the issuer cannot determine which specific card was used, multiple values are provided as candidates. */
24
+ cardLastFours?: string[];
25
25
  }
@@ -136,7 +136,8 @@ import type * as KardApi from "../../../index.js";
136
136
  * status: "SETTLED",
137
137
  * settledDate: "2024-10-15T14:30:00Z",
138
138
  * authorizationDate: "2024-10-15T14:25:00Z",
139
- * financialInstitutionName: "west union bank"
139
+ * financialInstitutionName: "west union bank",
140
+ * cardLastFours: ["4321"]
140
141
  * }
141
142
  * }]
142
143
  * }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "9.0.0";
1
+ export declare const SDK_VERSION = "10.0.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "9.0.0";
4
+ exports.SDK_VERSION = "10.0.1";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@kard-financial/sdk",
9
- "X-Fern-SDK-Version": "9.0.0",
10
- "User-Agent": "@kard-financial/sdk/9.0.0",
9
+ "X-Fern-SDK-Version": "10.0.1",
10
+ "User-Agent": "@kard-financial/sdk/10.0.1",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -39,7 +39,7 @@ import type * as KardApi from "../../../index.mjs";
39
39
  * type: "earnedRewardApproved",
40
40
  * id: "d80a6f28-1b24-4d65-9e42-e1cf3379bc98",
41
41
  * attributes: {
42
- * message: "You have earned a 72 cent reward on your transaction at McDonald's",
42
+ * message: "Thanks for shopping at McDonald's! We're checking to see if your purchase qualifies for cash back.",
43
43
  * name: "McDonald's",
44
44
  * attributionUrl: "www.attribution.com/token",
45
45
  * surveyUrl: "www.survey.com",
@@ -167,7 +167,8 @@ export declare class TransactionsClient {
167
167
  * status: "SETTLED",
168
168
  * settledDate: "2024-10-15T14:30:00Z",
169
169
  * authorizationDate: "2024-10-15T14:25:00Z",
170
- * financialInstitutionName: "west union bank"
170
+ * financialInstitutionName: "west union bank",
171
+ * cardLastFours: ["4321"]
171
172
  * }
172
173
  * }]
173
174
  * })
@@ -174,7 +174,8 @@ export class TransactionsClient {
174
174
  * status: "SETTLED",
175
175
  * settledDate: "2024-10-15T14:30:00Z",
176
176
  * authorizationDate: "2024-10-15T14:25:00Z",
177
- * financialInstitutionName: "west union bank"
177
+ * financialInstitutionName: "west union bank",
178
+ * cardLastFours: ["4321"]
178
179
  * }
179
180
  * }]
180
181
  * })
@@ -20,6 +20,6 @@ export interface CoreTransactionAttributes {
20
20
  authorizationDate: string;
21
21
  /** Name of the financial institution */
22
22
  financialInstitutionName: string;
23
- /** Last four digits of the card used for the transaction. */
24
- cardLastFour?: string;
23
+ /** Last four digits of the card(s) that may have been used for the transaction. When the issuer cannot determine which specific card was used, multiple values are provided as candidates. */
24
+ cardLastFours?: string[];
25
25
  }
@@ -136,7 +136,8 @@ import type * as KardApi from "../../../index.mjs";
136
136
  * status: "SETTLED",
137
137
  * settledDate: "2024-10-15T14:30:00Z",
138
138
  * authorizationDate: "2024-10-15T14:25:00Z",
139
- * financialInstitutionName: "west union bank"
139
+ * financialInstitutionName: "west union bank",
140
+ * cardLastFours: ["4321"]
140
141
  * }
141
142
  * }]
142
143
  * }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "9.0.0";
1
+ export declare const SDK_VERSION = "10.0.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "9.0.0";
1
+ export const SDK_VERSION = "10.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "9.0.0",
3
+ "version": "10.0.1",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",