@kard-financial/sdk 16.2.0 → 17.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/notifications/types/EarnedRewardApprovedData.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/types/EarnedRewardSettledAttributes.d.ts +0 -2
- package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +9 -3
- package/dist/cjs/api/resources/notifications/types/RewardNotificationAttributes.d.ts +6 -0
- package/dist/cjs/api/resources/notifications/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/notifications/types/index.js +0 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/notifications/types/EarnedRewardApprovedData.d.mts +1 -1
- package/dist/esm/api/resources/notifications/types/EarnedRewardSettledAttributes.d.mts +0 -2
- package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +9 -3
- package/dist/esm/api/resources/notifications/types/RewardNotificationAttributes.d.mts +6 -0
- package/dist/esm/api/resources/notifications/types/index.d.mts +0 -1
- package/dist/esm/api/resources/notifications/types/index.mjs +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/notifications/types/EarnedRewardAttributes.d.ts +0 -5
- package/dist/cjs/api/resources/notifications/types/EarnedRewardAttributes.js +0 -3
- package/dist/esm/api/resources/notifications/types/EarnedRewardAttributes.d.mts +0 -5
- package/dist/esm/api/resources/notifications/types/EarnedRewardAttributes.mjs +0 -2
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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": "
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "17.0.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/17.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);
|
|
@@ -2,6 +2,6 @@ import type * as KardApi from "../../../index.js";
|
|
|
2
2
|
export interface EarnedRewardApprovedData {
|
|
3
3
|
/** The internal ID of the notification */
|
|
4
4
|
id: string;
|
|
5
|
-
attributes: KardApi.
|
|
5
|
+
attributes: KardApi.RewardNotificationAttributes;
|
|
6
6
|
relationships: KardApi.EarnedRewardRelationships;
|
|
7
7
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.js";
|
|
2
2
|
export interface EarnedRewardSettledAttributes extends KardApi.RewardNotificationAttributes {
|
|
3
3
|
commissionEarned: KardApi.CommissionValue;
|
|
4
|
-
/** The timestamp of the originating transaction in ISO format */
|
|
5
|
-
transactionTimestamp?: string | undefined;
|
|
6
4
|
}
|
|
@@ -15,7 +15,9 @@ import type * as KardApi from "../../../index.js";
|
|
|
15
15
|
* attributionUrl: "www.attribution.com/token",
|
|
16
16
|
* surveyUrl: "www.survey.com",
|
|
17
17
|
* cardProductId: "card_product_123",
|
|
18
|
-
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
18
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
19
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
20
|
+
* transactionAmountInCents: 3000
|
|
19
21
|
* },
|
|
20
22
|
* relationships: {
|
|
21
23
|
* user: {
|
|
@@ -45,7 +47,9 @@ import type * as KardApi from "../../../index.js";
|
|
|
45
47
|
* attributionUrl: "www.attribution.com/token",
|
|
46
48
|
* surveyUrl: "www.survey.com",
|
|
47
49
|
* cardProductId: "card_product_123",
|
|
48
|
-
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
50
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
51
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
52
|
+
* transactionAmountInCents: 3000
|
|
49
53
|
* },
|
|
50
54
|
* relationships: {
|
|
51
55
|
* user: {
|
|
@@ -84,7 +88,9 @@ import type * as KardApi from "../../../index.js";
|
|
|
84
88
|
* },
|
|
85
89
|
* attributionUrl: "www.attribution.com/token",
|
|
86
90
|
* surveyUrl: "www.survey.com",
|
|
87
|
-
* cardProductId: "card_product_123"
|
|
91
|
+
* cardProductId: "card_product_123",
|
|
92
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
93
|
+
* transactionAmountInCents: 3000
|
|
88
94
|
* },
|
|
89
95
|
* relationships: {
|
|
90
96
|
* user: {
|
|
@@ -9,4 +9,10 @@ export interface RewardNotificationAttributes {
|
|
|
9
9
|
surveyUrl?: string | undefined;
|
|
10
10
|
/** The ID of the card product */
|
|
11
11
|
cardProductId?: string | undefined;
|
|
12
|
+
/** The timestamp of the originating transaction in ISO format */
|
|
13
|
+
transactionTimestamp?: string | undefined;
|
|
14
|
+
/** The transaction ID */
|
|
15
|
+
transactionId: string;
|
|
16
|
+
/** The amount of the originating transaction in cents */
|
|
17
|
+
transactionAmountInCents: number;
|
|
12
18
|
}
|
|
@@ -3,7 +3,6 @@ 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 "./EarnedRewardAttributes.js";
|
|
7
6
|
export * from "./EarnedRewardRelationships.js";
|
|
8
7
|
export * from "./EarnedRewardSettledAttributes.js";
|
|
9
8
|
export * from "./EarnedRewardSettledData.js";
|
|
@@ -19,7 +19,6 @@ __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("./EarnedRewardAttributes.js"), exports);
|
|
23
22
|
__exportStar(require("./EarnedRewardRelationships.js"), exports);
|
|
24
23
|
__exportStar(require("./EarnedRewardSettledAttributes.js"), exports);
|
|
25
24
|
__exportStar(require("./EarnedRewardSettledData.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "17.0.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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": "
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "17.0.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/17.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);
|
|
@@ -2,6 +2,6 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
2
2
|
export interface EarnedRewardApprovedData {
|
|
3
3
|
/** The internal ID of the notification */
|
|
4
4
|
id: string;
|
|
5
|
-
attributes: KardApi.
|
|
5
|
+
attributes: KardApi.RewardNotificationAttributes;
|
|
6
6
|
relationships: KardApi.EarnedRewardRelationships;
|
|
7
7
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.mjs";
|
|
2
2
|
export interface EarnedRewardSettledAttributes extends KardApi.RewardNotificationAttributes {
|
|
3
3
|
commissionEarned: KardApi.CommissionValue;
|
|
4
|
-
/** The timestamp of the originating transaction in ISO format */
|
|
5
|
-
transactionTimestamp?: string | undefined;
|
|
6
4
|
}
|
|
@@ -15,7 +15,9 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
15
15
|
* attributionUrl: "www.attribution.com/token",
|
|
16
16
|
* surveyUrl: "www.survey.com",
|
|
17
17
|
* cardProductId: "card_product_123",
|
|
18
|
-
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
18
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
19
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
20
|
+
* transactionAmountInCents: 3000
|
|
19
21
|
* },
|
|
20
22
|
* relationships: {
|
|
21
23
|
* user: {
|
|
@@ -45,7 +47,9 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
45
47
|
* attributionUrl: "www.attribution.com/token",
|
|
46
48
|
* surveyUrl: "www.survey.com",
|
|
47
49
|
* cardProductId: "card_product_123",
|
|
48
|
-
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
50
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
51
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
52
|
+
* transactionAmountInCents: 3000
|
|
49
53
|
* },
|
|
50
54
|
* relationships: {
|
|
51
55
|
* user: {
|
|
@@ -84,7 +88,9 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
84
88
|
* },
|
|
85
89
|
* attributionUrl: "www.attribution.com/token",
|
|
86
90
|
* surveyUrl: "www.survey.com",
|
|
87
|
-
* cardProductId: "card_product_123"
|
|
91
|
+
* cardProductId: "card_product_123",
|
|
92
|
+
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
93
|
+
* transactionAmountInCents: 3000
|
|
88
94
|
* },
|
|
89
95
|
* relationships: {
|
|
90
96
|
* user: {
|
|
@@ -9,4 +9,10 @@ export interface RewardNotificationAttributes {
|
|
|
9
9
|
surveyUrl?: string | undefined;
|
|
10
10
|
/** The ID of the card product */
|
|
11
11
|
cardProductId?: string | undefined;
|
|
12
|
+
/** The timestamp of the originating transaction in ISO format */
|
|
13
|
+
transactionTimestamp?: string | undefined;
|
|
14
|
+
/** The transaction ID */
|
|
15
|
+
transactionId: string;
|
|
16
|
+
/** The amount of the originating transaction in cents */
|
|
17
|
+
transactionAmountInCents: number;
|
|
12
18
|
}
|
|
@@ -3,7 +3,6 @@ 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 "./EarnedRewardAttributes.mjs";
|
|
7
6
|
export * from "./EarnedRewardRelationships.mjs";
|
|
8
7
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
9
8
|
export * from "./EarnedRewardSettledData.mjs";
|
|
@@ -3,7 +3,6 @@ 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 "./EarnedRewardAttributes.mjs";
|
|
7
6
|
export * from "./EarnedRewardRelationships.mjs";
|
|
8
7
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
9
8
|
export * from "./EarnedRewardSettledData.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "17.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "17.0.0";
|
package/package.json
CHANGED