@kard-financial/sdk 2.2.2 → 3.0.0

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.
Files changed (35) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transactions/client/Client.d.ts +1 -7
  3. package/dist/cjs/api/resources/transactions/client/Client.js +1 -7
  4. package/dist/cjs/api/resources/transactions/types/CoreTransactionAttributes.d.ts +2 -4
  5. package/dist/cjs/api/resources/transactions/types/TransactionsRequestBody.d.ts +1 -7
  6. package/dist/cjs/api/resources/transactions/types/index.d.ts +0 -2
  7. package/dist/cjs/api/resources/transactions/types/index.js +0 -2
  8. package/dist/cjs/api/resources/users/resources/rewards/types/CtaAction.d.ts +9 -0
  9. package/dist/cjs/api/resources/users/resources/rewards/types/CtaComponent.d.ts +2 -0
  10. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +1 -0
  12. package/dist/cjs/version.d.ts +1 -1
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/esm/BaseClient.mjs +2 -2
  15. package/dist/esm/api/resources/transactions/client/Client.d.mts +1 -7
  16. package/dist/esm/api/resources/transactions/client/Client.mjs +1 -7
  17. package/dist/esm/api/resources/transactions/types/CoreTransactionAttributes.d.mts +2 -4
  18. package/dist/esm/api/resources/transactions/types/TransactionsRequestBody.d.mts +1 -7
  19. package/dist/esm/api/resources/transactions/types/index.d.mts +0 -2
  20. package/dist/esm/api/resources/transactions/types/index.mjs +0 -2
  21. package/dist/esm/api/resources/users/resources/rewards/types/CtaAction.d.mts +9 -0
  22. package/dist/esm/api/resources/users/resources/rewards/types/CtaComponent.d.mts +2 -0
  23. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +1 -0
  24. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +1 -0
  25. package/dist/esm/version.d.mts +1 -1
  26. package/dist/esm/version.mjs +1 -1
  27. package/package.json +1 -1
  28. package/dist/cjs/api/resources/transactions/types/CoreMerchant.d.ts +0 -4
  29. package/dist/cjs/api/resources/transactions/types/FinancialInstitution.d.ts +0 -6
  30. package/dist/cjs/api/resources/transactions/types/FinancialInstitution.js +0 -3
  31. package/dist/esm/api/resources/transactions/types/CoreMerchant.d.mts +0 -4
  32. package/dist/esm/api/resources/transactions/types/FinancialInstitution.d.mts +0 -6
  33. package/dist/esm/api/resources/transactions/types/FinancialInstitution.mjs +0 -2
  34. /package/dist/cjs/api/resources/{transactions/types/CoreMerchant.js → users/resources/rewards/types/CtaAction.js} +0 -0
  35. /package/dist/esm/api/resources/{transactions/types/CoreMerchant.mjs → users/resources/rewards/types/CtaAction.mjs} +0 -0
@@ -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": "2.2.2",
47
- "User-Agent": "@kard-financial/sdk/2.2.2",
46
+ "X-Fern-SDK-Version": "3.0.0",
47
+ "User-Agent": "@kard-financial/sdk/3.0.0",
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);
@@ -167,13 +167,7 @@ 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
- * financialInstitution: {
171
- * rssdId: "852218",
172
- * name: "First National Bank"
173
- * },
174
- * merchant: {
175
- * addrZipcode: "75001"
176
- * }
170
+ * financialInstitutionName: "First National Bank"
177
171
  * }
178
172
  * }]
179
173
  * })
@@ -210,13 +210,7 @@ class TransactionsClient {
210
210
  * status: "SETTLED",
211
211
  * settledDate: "2024-10-15T14:30:00Z",
212
212
  * authorizationDate: "2024-10-15T14:25:00Z",
213
- * financialInstitution: {
214
- * rssdId: "852218",
215
- * name: "First National Bank"
216
- * },
217
- * merchant: {
218
- * addrZipcode: "75001"
219
- * }
213
+ * financialInstitutionName: "First National Bank"
220
214
  * }
221
215
  * }]
222
216
  * })
@@ -18,8 +18,6 @@ export interface CoreTransactionAttributes {
18
18
  settledDate: string;
19
19
  /** Timestamp for transaction authorization. Date string should be in ISO 8601 format i.e.'YYYY-MM-DDThh:mm:ss.sTZD' where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. 1994-11-05T08:15:30-05:00 OR 1994-11-05T08:15:30Z */
20
20
  authorizationDate: string;
21
- /** Financial institution details */
22
- financialInstitution: KardApi.FinancialInstitution;
23
- /** Merchant details */
24
- merchant: KardApi.CoreMerchant;
21
+ /** Name of the financial institution */
22
+ financialInstitutionName: string;
25
23
  }
@@ -136,13 +136,7 @@ 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
- * financialInstitution: {
140
- * rssdId: "852218",
141
- * name: "First National Bank"
142
- * },
143
- * merchant: {
144
- * addrZipcode: "75001"
145
- * }
139
+ * financialInstitutionName: "First National Bank"
146
140
  * }
147
141
  * }]
148
142
  * }
@@ -5,7 +5,6 @@ export * from "./AuditResponseData.js";
5
5
  export * from "./AuditStatus.js";
6
6
  export * from "./CardNetwork.js";
7
7
  export * from "./CommissionEarnedDetails.js";
8
- export * from "./CoreMerchant.js";
9
8
  export * from "./CoreTransactionAttributes.js";
10
9
  export * from "./CoreTransactionRequest.js";
11
10
  export * from "./CreateAuditMultiStatusResponse.js";
@@ -14,7 +13,6 @@ export * from "./CreateAuditRequestDataUnion.js";
14
13
  export * from "./CreateAuditResponseBody.js";
15
14
  export * from "./CreateAuditResponseDataUnion.js";
16
15
  export * from "./DirectionType.js";
17
- export * from "./FinancialInstitution.js";
18
16
  export * from "./FraudulentTransactionAttributes.js";
19
17
  export * from "./FraudulentTransactionData.js";
20
18
  export * from "./FraudulentTransactionObject.js";
@@ -21,7 +21,6 @@ __exportStar(require("./AuditResponseData.js"), exports);
21
21
  __exportStar(require("./AuditStatus.js"), exports);
22
22
  __exportStar(require("./CardNetwork.js"), exports);
23
23
  __exportStar(require("./CommissionEarnedDetails.js"), exports);
24
- __exportStar(require("./CoreMerchant.js"), exports);
25
24
  __exportStar(require("./CoreTransactionAttributes.js"), exports);
26
25
  __exportStar(require("./CoreTransactionRequest.js"), exports);
27
26
  __exportStar(require("./CreateAuditMultiStatusResponse.js"), exports);
@@ -30,7 +29,6 @@ __exportStar(require("./CreateAuditRequestDataUnion.js"), exports);
30
29
  __exportStar(require("./CreateAuditResponseBody.js"), exports);
31
30
  __exportStar(require("./CreateAuditResponseDataUnion.js"), exports);
32
31
  __exportStar(require("./DirectionType.js"), exports);
33
- __exportStar(require("./FinancialInstitution.js"), exports);
34
32
  __exportStar(require("./FraudulentTransactionAttributes.js"), exports);
35
33
  __exportStar(require("./FraudulentTransactionData.js"), exports);
36
34
  __exportStar(require("./FraudulentTransactionObject.js"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Action configuration for CTA button
3
+ */
4
+ export interface CtaAction {
5
+ /** URL endpoint to call when button is clicked */
6
+ url: string;
7
+ /** HTTP method to use (e.g., POST) */
8
+ method: string;
9
+ }
@@ -7,4 +7,6 @@ export interface CtaComponent {
7
7
  buttonText: string;
8
8
  /** Style of the button */
9
9
  buttonStyle: KardApi.users.ButtonStyle;
10
+ /** Action to perform when the button is clicked */
11
+ action?: KardApi.users.CtaAction;
10
12
  }
@@ -11,6 +11,7 @@ export * from "./CategoryRelationshipObject.js";
11
11
  export * from "./Commission.js";
12
12
  export * from "./ComponentType.js";
13
13
  export * from "./Coordinates.js";
14
+ export * from "./CtaAction.js";
14
15
  export * from "./CtaComponent.js";
15
16
  export * from "./EligibilityLocationAddress.js";
16
17
  export * from "./EligibilityLocationIncluded.js";
@@ -27,6 +27,7 @@ __exportStar(require("./CategoryRelationshipObject.js"), exports);
27
27
  __exportStar(require("./Commission.js"), exports);
28
28
  __exportStar(require("./ComponentType.js"), exports);
29
29
  __exportStar(require("./Coordinates.js"), exports);
30
+ __exportStar(require("./CtaAction.js"), exports);
30
31
  __exportStar(require("./CtaComponent.js"), exports);
31
32
  __exportStar(require("./EligibilityLocationAddress.js"), exports);
32
33
  __exportStar(require("./EligibilityLocationIncluded.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.2.2";
1
+ export declare const SDK_VERSION = "3.0.0";
@@ -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 = "2.2.2";
4
+ exports.SDK_VERSION = "3.0.0";
@@ -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": "2.2.2",
10
- "User-Agent": "@kard-financial/sdk/2.2.2",
9
+ "X-Fern-SDK-Version": "3.0.0",
10
+ "User-Agent": "@kard-financial/sdk/3.0.0",
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);
@@ -167,13 +167,7 @@ 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
- * financialInstitution: {
171
- * rssdId: "852218",
172
- * name: "First National Bank"
173
- * },
174
- * merchant: {
175
- * addrZipcode: "75001"
176
- * }
170
+ * financialInstitutionName: "First National Bank"
177
171
  * }
178
172
  * }]
179
173
  * })
@@ -174,13 +174,7 @@ export class TransactionsClient {
174
174
  * status: "SETTLED",
175
175
  * settledDate: "2024-10-15T14:30:00Z",
176
176
  * authorizationDate: "2024-10-15T14:25:00Z",
177
- * financialInstitution: {
178
- * rssdId: "852218",
179
- * name: "First National Bank"
180
- * },
181
- * merchant: {
182
- * addrZipcode: "75001"
183
- * }
177
+ * financialInstitutionName: "First National Bank"
184
178
  * }
185
179
  * }]
186
180
  * })
@@ -18,8 +18,6 @@ export interface CoreTransactionAttributes {
18
18
  settledDate: string;
19
19
  /** Timestamp for transaction authorization. Date string should be in ISO 8601 format i.e.'YYYY-MM-DDThh:mm:ss.sTZD' where TZD = time zone designator (Z or +hh:mm or -hh:mm) i.e. 1994-11-05T08:15:30-05:00 OR 1994-11-05T08:15:30Z */
20
20
  authorizationDate: string;
21
- /** Financial institution details */
22
- financialInstitution: KardApi.FinancialInstitution;
23
- /** Merchant details */
24
- merchant: KardApi.CoreMerchant;
21
+ /** Name of the financial institution */
22
+ financialInstitutionName: string;
25
23
  }
@@ -136,13 +136,7 @@ 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
- * financialInstitution: {
140
- * rssdId: "852218",
141
- * name: "First National Bank"
142
- * },
143
- * merchant: {
144
- * addrZipcode: "75001"
145
- * }
139
+ * financialInstitutionName: "First National Bank"
146
140
  * }
147
141
  * }]
148
142
  * }
@@ -5,7 +5,6 @@ export * from "./AuditResponseData.mjs";
5
5
  export * from "./AuditStatus.mjs";
6
6
  export * from "./CardNetwork.mjs";
7
7
  export * from "./CommissionEarnedDetails.mjs";
8
- export * from "./CoreMerchant.mjs";
9
8
  export * from "./CoreTransactionAttributes.mjs";
10
9
  export * from "./CoreTransactionRequest.mjs";
11
10
  export * from "./CreateAuditMultiStatusResponse.mjs";
@@ -14,7 +13,6 @@ export * from "./CreateAuditRequestDataUnion.mjs";
14
13
  export * from "./CreateAuditResponseBody.mjs";
15
14
  export * from "./CreateAuditResponseDataUnion.mjs";
16
15
  export * from "./DirectionType.mjs";
17
- export * from "./FinancialInstitution.mjs";
18
16
  export * from "./FraudulentTransactionAttributes.mjs";
19
17
  export * from "./FraudulentTransactionData.mjs";
20
18
  export * from "./FraudulentTransactionObject.mjs";
@@ -5,7 +5,6 @@ export * from "./AuditResponseData.mjs";
5
5
  export * from "./AuditStatus.mjs";
6
6
  export * from "./CardNetwork.mjs";
7
7
  export * from "./CommissionEarnedDetails.mjs";
8
- export * from "./CoreMerchant.mjs";
9
8
  export * from "./CoreTransactionAttributes.mjs";
10
9
  export * from "./CoreTransactionRequest.mjs";
11
10
  export * from "./CreateAuditMultiStatusResponse.mjs";
@@ -14,7 +13,6 @@ export * from "./CreateAuditRequestDataUnion.mjs";
14
13
  export * from "./CreateAuditResponseBody.mjs";
15
14
  export * from "./CreateAuditResponseDataUnion.mjs";
16
15
  export * from "./DirectionType.mjs";
17
- export * from "./FinancialInstitution.mjs";
18
16
  export * from "./FraudulentTransactionAttributes.mjs";
19
17
  export * from "./FraudulentTransactionData.mjs";
20
18
  export * from "./FraudulentTransactionObject.mjs";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Action configuration for CTA button
3
+ */
4
+ export interface CtaAction {
5
+ /** URL endpoint to call when button is clicked */
6
+ url: string;
7
+ /** HTTP method to use (e.g., POST) */
8
+ method: string;
9
+ }
@@ -7,4 +7,6 @@ export interface CtaComponent {
7
7
  buttonText: string;
8
8
  /** Style of the button */
9
9
  buttonStyle: KardApi.users.ButtonStyle;
10
+ /** Action to perform when the button is clicked */
11
+ action?: KardApi.users.CtaAction;
10
12
  }
@@ -11,6 +11,7 @@ export * from "./CategoryRelationshipObject.mjs";
11
11
  export * from "./Commission.mjs";
12
12
  export * from "./ComponentType.mjs";
13
13
  export * from "./Coordinates.mjs";
14
+ export * from "./CtaAction.mjs";
14
15
  export * from "./CtaComponent.mjs";
15
16
  export * from "./EligibilityLocationAddress.mjs";
16
17
  export * from "./EligibilityLocationIncluded.mjs";
@@ -11,6 +11,7 @@ export * from "./CategoryRelationshipObject.mjs";
11
11
  export * from "./Commission.mjs";
12
12
  export * from "./ComponentType.mjs";
13
13
  export * from "./Coordinates.mjs";
14
+ export * from "./CtaAction.mjs";
14
15
  export * from "./CtaComponent.mjs";
15
16
  export * from "./EligibilityLocationAddress.mjs";
16
17
  export * from "./EligibilityLocationIncluded.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.2.2";
1
+ export declare const SDK_VERSION = "3.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.2.2";
1
+ export const SDK_VERSION = "3.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "2.2.2",
3
+ "version": "3.0.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",
@@ -1,4 +0,0 @@
1
- export interface CoreMerchant {
2
- /** Merchant address zip code associated with transaction */
3
- addrZipcode: string;
4
- }
@@ -1,6 +0,0 @@
1
- export interface FinancialInstitution {
2
- /** Research, Statistics, Supervision, Discount ID (RSSD) - Federal Reserve identifier for financial institutions */
3
- rssdId: string;
4
- /** Name of the financial institution */
5
- name: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface CoreMerchant {
2
- /** Merchant address zip code associated with transaction */
3
- addrZipcode: string;
4
- }
@@ -1,6 +0,0 @@
1
- export interface FinancialInstitution {
2
- /** Research, Statistics, Supervision, Discount ID (RSSD) - Federal Reserve identifier for financial institutions */
3
- rssdId: string;
4
- /** Name of the financial institution */
5
- name: string;
6
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};