@kard-financial/sdk 16.2.0 → 18.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 (25) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/notifications/types/EarnedRewardApprovedData.d.ts +1 -1
  3. package/dist/cjs/api/resources/notifications/types/EarnedRewardSettledAttributes.d.ts +0 -2
  4. package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +9 -3
  5. package/dist/cjs/api/resources/notifications/types/RewardNotificationAttributes.d.ts +6 -0
  6. package/dist/cjs/api/resources/notifications/types/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/notifications/types/index.js +0 -1
  8. package/dist/cjs/api/resources/users/resources/rewards/types/LocationAttributes.d.ts +2 -2
  9. package/dist/cjs/version.d.ts +1 -1
  10. package/dist/cjs/version.js +1 -1
  11. package/dist/esm/BaseClient.mjs +2 -2
  12. package/dist/esm/api/resources/notifications/types/EarnedRewardApprovedData.d.mts +1 -1
  13. package/dist/esm/api/resources/notifications/types/EarnedRewardSettledAttributes.d.mts +0 -2
  14. package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +9 -3
  15. package/dist/esm/api/resources/notifications/types/RewardNotificationAttributes.d.mts +6 -0
  16. package/dist/esm/api/resources/notifications/types/index.d.mts +0 -1
  17. package/dist/esm/api/resources/notifications/types/index.mjs +0 -1
  18. package/dist/esm/api/resources/users/resources/rewards/types/LocationAttributes.d.mts +2 -2
  19. package/dist/esm/version.d.mts +1 -1
  20. package/dist/esm/version.mjs +1 -1
  21. package/package.json +1 -1
  22. package/dist/cjs/api/resources/notifications/types/EarnedRewardAttributes.d.ts +0 -5
  23. package/dist/cjs/api/resources/notifications/types/EarnedRewardAttributes.js +0 -3
  24. package/dist/esm/api/resources/notifications/types/EarnedRewardAttributes.d.mts +0 -5
  25. package/dist/esm/api/resources/notifications/types/EarnedRewardAttributes.mjs +0 -2
@@ -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": "16.2.0",
47
- "User-Agent": "@kard-financial/sdk/16.2.0",
46
+ "X-Fern-SDK-Version": "18.0.0",
47
+ "User-Agent": "@kard-financial/sdk/18.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.EarnedRewardAttributes;
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);
@@ -5,6 +5,6 @@ export interface LocationAttributes {
5
5
  coordinates: KardApi.users.Coordinates;
6
6
  phone: string;
7
7
  operationHours: KardApi.users.OperationHours;
8
- /** List of ids associated with the location from third party partners. Only included on LOCAL locations. */
9
- partnerIds?: KardApi.users.LocationPartnerId[] | undefined;
8
+ /** List of ids associated with the location from third party partners. Only applicable for LOCAL locations. */
9
+ partnerIds: KardApi.users.LocationPartnerId[];
10
10
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "16.2.0";
1
+ export declare const SDK_VERSION = "18.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 = "16.2.0";
4
+ exports.SDK_VERSION = "18.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": "16.2.0",
10
- "User-Agent": "@kard-financial/sdk/16.2.0",
9
+ "X-Fern-SDK-Version": "18.0.0",
10
+ "User-Agent": "@kard-financial/sdk/18.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.EarnedRewardAttributes;
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";
@@ -5,6 +5,6 @@ export interface LocationAttributes {
5
5
  coordinates: KardApi.users.Coordinates;
6
6
  phone: string;
7
7
  operationHours: KardApi.users.OperationHours;
8
- /** List of ids associated with the location from third party partners. Only included on LOCAL locations. */
9
- partnerIds?: KardApi.users.LocationPartnerId[] | undefined;
8
+ /** List of ids associated with the location from third party partners. Only applicable for LOCAL locations. */
9
+ partnerIds: KardApi.users.LocationPartnerId[];
10
10
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "16.2.0";
1
+ export declare const SDK_VERSION = "18.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "16.2.0";
1
+ export const SDK_VERSION = "18.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "16.2.0",
3
+ "version": "18.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface EarnedRewardAttributes extends KardApi.RewardNotificationAttributes {
3
- /** The timestamp of the originating transaction in ISO format */
4
- transactionTimestamp?: string | undefined;
5
- }
@@ -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,5 +0,0 @@
1
- import type * as KardApi from "../../../index.mjs";
2
- export interface EarnedRewardAttributes extends KardApi.RewardNotificationAttributes {
3
- /** The timestamp of the originating transaction in ISO format */
4
- transactionTimestamp?: string | undefined;
5
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};