@kard-financial/sdk 31.1.0 → 31.2.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 (31) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/commons/types/NotificationType.d.ts +1 -0
  3. package/dist/cjs/api/resources/commons/types/NotificationType.js +1 -0
  4. package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedAttributes.d.ts +12 -0
  5. package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedAttributes.js +3 -0
  6. package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedData.d.ts +7 -0
  7. package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedData.js +3 -0
  8. package/dist/cjs/api/resources/notifications/types/NotificationDataUnion.d.ts +4 -1
  9. package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +29 -0
  10. package/dist/cjs/api/resources/notifications/types/RejectedTransactionRelationships.d.ts +5 -0
  11. package/dist/cjs/api/resources/notifications/types/RejectedTransactionRelationships.js +3 -0
  12. package/dist/cjs/api/resources/notifications/types/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/notifications/types/index.js +3 -0
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/BaseClient.mjs +2 -2
  17. package/dist/esm/api/resources/commons/types/NotificationType.d.mts +1 -0
  18. package/dist/esm/api/resources/commons/types/NotificationType.mjs +1 -0
  19. package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedAttributes.d.mts +12 -0
  20. package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedAttributes.mjs +2 -0
  21. package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedData.d.mts +7 -0
  22. package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedData.mjs +2 -0
  23. package/dist/esm/api/resources/notifications/types/NotificationDataUnion.d.mts +4 -1
  24. package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +29 -0
  25. package/dist/esm/api/resources/notifications/types/RejectedTransactionRelationships.d.mts +5 -0
  26. package/dist/esm/api/resources/notifications/types/RejectedTransactionRelationships.mjs +2 -0
  27. package/dist/esm/api/resources/notifications/types/index.d.mts +3 -0
  28. package/dist/esm/api/resources/notifications/types/index.mjs +3 -0
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
@@ -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": "31.1.0",
47
- "User-Agent": "@kard-financial/sdk/31.1.0",
46
+ "X-Fern-SDK-Version": "31.2.0",
47
+ "User-Agent": "@kard-financial/sdk/31.2.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);
@@ -1,6 +1,7 @@
1
1
  export declare const NotificationType: {
2
2
  readonly EarnedRewardApproved: "earnedRewardApproved";
3
3
  readonly EarnedRewardSettled: "earnedRewardSettled";
4
+ readonly EarnedRewardRejected: "earnedRewardRejected";
4
5
  readonly ValidTransaction: "validTransaction";
5
6
  readonly FailedTransaction: "failedTransaction";
6
7
  readonly Clawback: "clawback";
@@ -5,6 +5,7 @@ exports.NotificationType = void 0;
5
5
  exports.NotificationType = {
6
6
  EarnedRewardApproved: "earnedRewardApproved",
7
7
  EarnedRewardSettled: "earnedRewardSettled",
8
+ EarnedRewardRejected: "earnedRewardRejected",
8
9
  ValidTransaction: "validTransaction",
9
10
  FailedTransaction: "failedTransaction",
10
11
  Clawback: "clawback",
@@ -0,0 +1,12 @@
1
+ export interface EarnedRewardRejectedAttributes {
2
+ /** The reason code for why the transaction did not result in a reward */
3
+ reason: string;
4
+ /** The display message associated to the notification */
5
+ message: string;
6
+ /** The transaction ID */
7
+ transactionId: string;
8
+ /** The amount of the originating transaction in cents */
9
+ transactionAmountInCents: number;
10
+ /** The timestamp of the originating transaction in ISO format */
11
+ transactionTimestamp?: string | undefined;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as KardApi from "../../../index.js";
2
+ export interface EarnedRewardRejectedData {
3
+ /** The internal ID of the notification */
4
+ id: string;
5
+ attributes: KardApi.EarnedRewardRejectedAttributes;
6
+ relationships: KardApi.RejectedTransactionRelationships;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.js";
2
- export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
2
+ export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.EarnedRewardRejected | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
3
3
  export declare namespace NotificationDataUnion {
4
4
  interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
5
5
  type: "earnedRewardApproved";
@@ -7,6 +7,9 @@ export declare namespace NotificationDataUnion {
7
7
  interface EarnedRewardSettled extends KardApi.EarnedRewardSettledData {
8
8
  type: "earnedRewardSettled";
9
9
  }
10
+ interface EarnedRewardRejected extends KardApi.EarnedRewardRejectedData {
11
+ type: "earnedRewardRejected";
12
+ }
10
13
  interface ValidTransaction extends KardApi.ValidTransactionData {
11
14
  type: "validTransaction";
12
15
  }
@@ -83,6 +83,35 @@ import type * as KardApi from "../../../index.js";
83
83
  * @example
84
84
  * {
85
85
  * data: {
86
+ * type: "earnedRewardRejected",
87
+ * id: "cdbbf8eb-b3b9-5f96-beb5-6e37d124e776",
88
+ * attributes: {
89
+ * reason: "AGGREGATOR_CARD_OVERLAP",
90
+ * message: "Your transaction did not result in a reward.",
91
+ * transactionId: "a9f3d7c1-6b25-4f91-8c0e-2d5a7b3e9f42",
92
+ * transactionAmountInCents: 3000,
93
+ * transactionTimestamp: "2026-06-23T22:15:26.124Z"
94
+ * },
95
+ * relationships: {
96
+ * user: {
97
+ * data: {
98
+ * type: "user",
99
+ * id: "1234567890"
100
+ * }
101
+ * },
102
+ * transaction: {
103
+ * data: {
104
+ * type: "transaction",
105
+ * id: "6179473f14ef7a000882acbe"
106
+ * }
107
+ * }
108
+ * }
109
+ * }
110
+ * }
111
+ *
112
+ * @example
113
+ * {
114
+ * data: {
86
115
  * type: "validTransaction",
87
116
  * id: "a12b34c56d78e90f1234",
88
117
  * attributes: {
@@ -0,0 +1,5 @@
1
+ import type * as KardApi from "../../../index.js";
2
+ export interface RejectedTransactionRelationships {
3
+ user: KardApi.RelationshipSingle;
4
+ transaction: KardApi.RelationshipSingle;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,8 @@ export * from "./AuditUpdateData.js";
3
3
  export * from "./AuditUpdateRelationships.js";
4
4
  export * from "./ClawbackData.js";
5
5
  export * from "./EarnedRewardApprovedData.js";
6
+ export * from "./EarnedRewardRejectedAttributes.js";
7
+ export * from "./EarnedRewardRejectedData.js";
6
8
  export * from "./EarnedRewardRelationships.js";
7
9
  export * from "./EarnedRewardSettledAttributes.js";
8
10
  export * from "./EarnedRewardSettledData.js";
@@ -19,6 +21,7 @@ export * from "./NotificationPayload.js";
19
21
  export * from "./PushNotificationPlacementFileAttributes.js";
20
22
  export * from "./PushNotificationPlacementFileData.js";
21
23
  export * from "./PushNotificationPlacementFileRelationships.js";
24
+ export * from "./RejectedTransactionRelationships.js";
22
25
  export * from "./RewardNotificationAttributes.js";
23
26
  export * from "./TransactionRelationships.js";
24
27
  export * from "./ValidTransactionAttributes.js";
@@ -19,6 +19,8 @@ __exportStar(require("./AuditUpdateData.js"), exports);
19
19
  __exportStar(require("./AuditUpdateRelationships.js"), exports);
20
20
  __exportStar(require("./ClawbackData.js"), exports);
21
21
  __exportStar(require("./EarnedRewardApprovedData.js"), exports);
22
+ __exportStar(require("./EarnedRewardRejectedAttributes.js"), exports);
23
+ __exportStar(require("./EarnedRewardRejectedData.js"), exports);
22
24
  __exportStar(require("./EarnedRewardRelationships.js"), exports);
23
25
  __exportStar(require("./EarnedRewardSettledAttributes.js"), exports);
24
26
  __exportStar(require("./EarnedRewardSettledData.js"), exports);
@@ -35,6 +37,7 @@ __exportStar(require("./NotificationPayload.js"), exports);
35
37
  __exportStar(require("./PushNotificationPlacementFileAttributes.js"), exports);
36
38
  __exportStar(require("./PushNotificationPlacementFileData.js"), exports);
37
39
  __exportStar(require("./PushNotificationPlacementFileRelationships.js"), exports);
40
+ __exportStar(require("./RejectedTransactionRelationships.js"), exports);
38
41
  __exportStar(require("./RewardNotificationAttributes.js"), exports);
39
42
  __exportStar(require("./TransactionRelationships.js"), exports);
40
43
  __exportStar(require("./ValidTransactionAttributes.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "31.1.0";
1
+ export declare const SDK_VERSION = "31.2.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 = "31.1.0";
4
+ exports.SDK_VERSION = "31.2.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": "31.1.0",
10
- "User-Agent": "@kard-financial/sdk/31.1.0",
9
+ "X-Fern-SDK-Version": "31.2.0",
10
+ "User-Agent": "@kard-financial/sdk/31.2.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);
@@ -1,6 +1,7 @@
1
1
  export declare const NotificationType: {
2
2
  readonly EarnedRewardApproved: "earnedRewardApproved";
3
3
  readonly EarnedRewardSettled: "earnedRewardSettled";
4
+ readonly EarnedRewardRejected: "earnedRewardRejected";
4
5
  readonly ValidTransaction: "validTransaction";
5
6
  readonly FailedTransaction: "failedTransaction";
6
7
  readonly Clawback: "clawback";
@@ -2,6 +2,7 @@
2
2
  export const NotificationType = {
3
3
  EarnedRewardApproved: "earnedRewardApproved",
4
4
  EarnedRewardSettled: "earnedRewardSettled",
5
+ EarnedRewardRejected: "earnedRewardRejected",
5
6
  ValidTransaction: "validTransaction",
6
7
  FailedTransaction: "failedTransaction",
7
8
  Clawback: "clawback",
@@ -0,0 +1,12 @@
1
+ export interface EarnedRewardRejectedAttributes {
2
+ /** The reason code for why the transaction did not result in a reward */
3
+ reason: string;
4
+ /** The display message associated to the notification */
5
+ message: string;
6
+ /** The transaction ID */
7
+ transactionId: string;
8
+ /** The amount of the originating transaction in cents */
9
+ transactionAmountInCents: number;
10
+ /** The timestamp of the originating transaction in ISO format */
11
+ transactionTimestamp?: string | undefined;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as KardApi from "../../../index.mjs";
2
+ export interface EarnedRewardRejectedData {
3
+ /** The internal ID of the notification */
4
+ id: string;
5
+ attributes: KardApi.EarnedRewardRejectedAttributes;
6
+ relationships: KardApi.RejectedTransactionRelationships;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.mjs";
2
- export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
2
+ export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.EarnedRewardRejected | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
3
3
  export declare namespace NotificationDataUnion {
4
4
  interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
5
5
  type: "earnedRewardApproved";
@@ -7,6 +7,9 @@ export declare namespace NotificationDataUnion {
7
7
  interface EarnedRewardSettled extends KardApi.EarnedRewardSettledData {
8
8
  type: "earnedRewardSettled";
9
9
  }
10
+ interface EarnedRewardRejected extends KardApi.EarnedRewardRejectedData {
11
+ type: "earnedRewardRejected";
12
+ }
10
13
  interface ValidTransaction extends KardApi.ValidTransactionData {
11
14
  type: "validTransaction";
12
15
  }
@@ -83,6 +83,35 @@ import type * as KardApi from "../../../index.mjs";
83
83
  * @example
84
84
  * {
85
85
  * data: {
86
+ * type: "earnedRewardRejected",
87
+ * id: "cdbbf8eb-b3b9-5f96-beb5-6e37d124e776",
88
+ * attributes: {
89
+ * reason: "AGGREGATOR_CARD_OVERLAP",
90
+ * message: "Your transaction did not result in a reward.",
91
+ * transactionId: "a9f3d7c1-6b25-4f91-8c0e-2d5a7b3e9f42",
92
+ * transactionAmountInCents: 3000,
93
+ * transactionTimestamp: "2026-06-23T22:15:26.124Z"
94
+ * },
95
+ * relationships: {
96
+ * user: {
97
+ * data: {
98
+ * type: "user",
99
+ * id: "1234567890"
100
+ * }
101
+ * },
102
+ * transaction: {
103
+ * data: {
104
+ * type: "transaction",
105
+ * id: "6179473f14ef7a000882acbe"
106
+ * }
107
+ * }
108
+ * }
109
+ * }
110
+ * }
111
+ *
112
+ * @example
113
+ * {
114
+ * data: {
86
115
  * type: "validTransaction",
87
116
  * id: "a12b34c56d78e90f1234",
88
117
  * attributes: {
@@ -0,0 +1,5 @@
1
+ import type * as KardApi from "../../../index.mjs";
2
+ export interface RejectedTransactionRelationships {
3
+ user: KardApi.RelationshipSingle;
4
+ transaction: KardApi.RelationshipSingle;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -3,6 +3,8 @@ export * from "./AuditUpdateData.mjs";
3
3
  export * from "./AuditUpdateRelationships.mjs";
4
4
  export * from "./ClawbackData.mjs";
5
5
  export * from "./EarnedRewardApprovedData.mjs";
6
+ export * from "./EarnedRewardRejectedAttributes.mjs";
7
+ export * from "./EarnedRewardRejectedData.mjs";
6
8
  export * from "./EarnedRewardRelationships.mjs";
7
9
  export * from "./EarnedRewardSettledAttributes.mjs";
8
10
  export * from "./EarnedRewardSettledData.mjs";
@@ -19,6 +21,7 @@ export * from "./NotificationPayload.mjs";
19
21
  export * from "./PushNotificationPlacementFileAttributes.mjs";
20
22
  export * from "./PushNotificationPlacementFileData.mjs";
21
23
  export * from "./PushNotificationPlacementFileRelationships.mjs";
24
+ export * from "./RejectedTransactionRelationships.mjs";
22
25
  export * from "./RewardNotificationAttributes.mjs";
23
26
  export * from "./TransactionRelationships.mjs";
24
27
  export * from "./ValidTransactionAttributes.mjs";
@@ -3,6 +3,8 @@ export * from "./AuditUpdateData.mjs";
3
3
  export * from "./AuditUpdateRelationships.mjs";
4
4
  export * from "./ClawbackData.mjs";
5
5
  export * from "./EarnedRewardApprovedData.mjs";
6
+ export * from "./EarnedRewardRejectedAttributes.mjs";
7
+ export * from "./EarnedRewardRejectedData.mjs";
6
8
  export * from "./EarnedRewardRelationships.mjs";
7
9
  export * from "./EarnedRewardSettledAttributes.mjs";
8
10
  export * from "./EarnedRewardSettledData.mjs";
@@ -19,6 +21,7 @@ export * from "./NotificationPayload.mjs";
19
21
  export * from "./PushNotificationPlacementFileAttributes.mjs";
20
22
  export * from "./PushNotificationPlacementFileData.mjs";
21
23
  export * from "./PushNotificationPlacementFileRelationships.mjs";
24
+ export * from "./RejectedTransactionRelationships.mjs";
22
25
  export * from "./RewardNotificationAttributes.mjs";
23
26
  export * from "./TransactionRelationships.mjs";
24
27
  export * from "./ValidTransactionAttributes.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "31.1.0";
1
+ export declare const SDK_VERSION = "31.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "31.1.0";
1
+ export const SDK_VERSION = "31.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "31.1.0",
3
+ "version": "31.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",