@kard-financial/sdk 31.1.0 → 31.3.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/commons/types/NotificationType.d.ts +1 -0
- package/dist/cjs/api/resources/commons/types/NotificationType.js +1 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardApprovedData.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/types/EarnedRewardNotificationAttributes.d.ts +15 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardNotificationAttributes.js +3 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedAttributes.d.ts +12 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedAttributes.js +3 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedData.d.ts +7 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardRejectedData.js +3 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardSettledAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/types/NotificationDataUnion.d.ts +4 -1
- package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +51 -2
- package/dist/cjs/api/resources/notifications/types/RejectedTransactionRelationships.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/types/RejectedTransactionRelationships.js +3 -0
- package/dist/cjs/api/resources/notifications/types/UserReward.d.ts +7 -0
- package/dist/cjs/api/resources/notifications/types/UserReward.js +3 -0
- package/dist/cjs/api/resources/notifications/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/types/index.js +5 -0
- 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/commons/types/NotificationType.d.mts +1 -0
- package/dist/esm/api/resources/commons/types/NotificationType.mjs +1 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardApprovedData.d.mts +1 -1
- package/dist/esm/api/resources/notifications/types/EarnedRewardNotificationAttributes.d.mts +15 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardNotificationAttributes.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedAttributes.d.mts +12 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedAttributes.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedData.d.mts +7 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardRejectedData.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardSettledAttributes.d.mts +1 -1
- package/dist/esm/api/resources/notifications/types/NotificationDataUnion.d.mts +4 -1
- package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +51 -2
- package/dist/esm/api/resources/notifications/types/RejectedTransactionRelationships.d.mts +5 -0
- package/dist/esm/api/resources/notifications/types/RejectedTransactionRelationships.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/UserReward.d.mts +7 -0
- package/dist/esm/api/resources/notifications/types/UserReward.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/index.d.mts +5 -0
- package/dist/esm/api/resources/notifications/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
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": "31.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/31.
|
|
46
|
+
"X-Fern-SDK-Version": "31.3.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/31.3.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",
|
|
@@ -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.EarnedRewardNotificationAttributes;
|
|
6
6
|
relationships: KardApi.EarnedRewardRelationships;
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.js";
|
|
2
|
+
export interface EarnedRewardNotificationAttributes extends KardApi.RewardNotificationAttributes {
|
|
3
|
+
/** The category of the offer, e.g. "Food & Dining" */
|
|
4
|
+
categoryName?: string | undefined;
|
|
5
|
+
/** Type of commission on offer (% or a flat $) */
|
|
6
|
+
userReward?: KardApi.UserReward | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Tracked asset images for the merchant. The asset
|
|
9
|
+
* URL is signed for attribution tracking and should be loaded as-is by the
|
|
10
|
+
* client.
|
|
11
|
+
*/
|
|
12
|
+
assets?: KardApi.MerchantAsset[] | undefined;
|
|
13
|
+
/** The purchase channels the offer applies to */
|
|
14
|
+
purchaseChannel?: KardApi.PurchaseChannel[] | undefined;
|
|
15
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.js";
|
|
2
|
-
export interface EarnedRewardSettledAttributes extends KardApi.
|
|
2
|
+
export interface EarnedRewardSettledAttributes extends KardApi.EarnedRewardNotificationAttributes {
|
|
3
3
|
commissionEarned: KardApi.CommissionValue;
|
|
4
4
|
}
|
|
@@ -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
|
}
|
|
@@ -17,7 +17,17 @@ import type * as KardApi from "../../../index.js";
|
|
|
17
17
|
* cardProductId: "card_product_123",
|
|
18
18
|
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
19
19
|
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
20
|
-
* transactionAmountInCents: 3000
|
|
20
|
+
* transactionAmountInCents: 3000,
|
|
21
|
+
* categoryName: "Food & Dining",
|
|
22
|
+
* userReward: {
|
|
23
|
+
* type: KardApi.CommissionType.Percent,
|
|
24
|
+
* value: 5.7
|
|
25
|
+
* },
|
|
26
|
+
* assets: [{
|
|
27
|
+
* type: KardApi.MerchantAssetType.ImgView,
|
|
28
|
+
* url: "https://cdn.getkard.com/merchants/mcdonalds.png"
|
|
29
|
+
* }],
|
|
30
|
+
* purchaseChannel: [KardApi.PurchaseChannel.Online, KardApi.PurchaseChannel.Instore]
|
|
21
31
|
* },
|
|
22
32
|
* relationships: {
|
|
23
33
|
* user: {
|
|
@@ -55,7 +65,17 @@ import type * as KardApi from "../../../index.js";
|
|
|
55
65
|
* cardProductId: "card_product_123",
|
|
56
66
|
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
57
67
|
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
58
|
-
* transactionAmountInCents: 3000
|
|
68
|
+
* transactionAmountInCents: 3000,
|
|
69
|
+
* categoryName: "Food & Dining",
|
|
70
|
+
* userReward: {
|
|
71
|
+
* type: KardApi.CommissionType.Percent,
|
|
72
|
+
* value: 5.7
|
|
73
|
+
* },
|
|
74
|
+
* assets: [{
|
|
75
|
+
* type: KardApi.MerchantAssetType.ImgView,
|
|
76
|
+
* url: "https://cdn.getkard.com/merchants/mcdonalds.png"
|
|
77
|
+
* }],
|
|
78
|
+
* purchaseChannel: [KardApi.PurchaseChannel.Online, KardApi.PurchaseChannel.Instore]
|
|
59
79
|
* },
|
|
60
80
|
* relationships: {
|
|
61
81
|
* user: {
|
|
@@ -83,6 +103,35 @@ import type * as KardApi from "../../../index.js";
|
|
|
83
103
|
* @example
|
|
84
104
|
* {
|
|
85
105
|
* data: {
|
|
106
|
+
* type: "earnedRewardRejected",
|
|
107
|
+
* id: "cdbbf8eb-b3b9-5f96-beb5-6e37d124e776",
|
|
108
|
+
* attributes: {
|
|
109
|
+
* reason: "AGGREGATOR_CARD_OVERLAP",
|
|
110
|
+
* message: "Your transaction did not result in a reward.",
|
|
111
|
+
* transactionId: "a9f3d7c1-6b25-4f91-8c0e-2d5a7b3e9f42",
|
|
112
|
+
* transactionAmountInCents: 3000,
|
|
113
|
+
* transactionTimestamp: "2026-06-23T22:15:26.124Z"
|
|
114
|
+
* },
|
|
115
|
+
* relationships: {
|
|
116
|
+
* user: {
|
|
117
|
+
* data: {
|
|
118
|
+
* type: "user",
|
|
119
|
+
* id: "1234567890"
|
|
120
|
+
* }
|
|
121
|
+
* },
|
|
122
|
+
* transaction: {
|
|
123
|
+
* data: {
|
|
124
|
+
* type: "transaction",
|
|
125
|
+
* id: "6179473f14ef7a000882acbe"
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* {
|
|
134
|
+
* data: {
|
|
86
135
|
* type: "validTransaction",
|
|
87
136
|
* id: "a12b34c56d78e90f1234",
|
|
88
137
|
* attributes: {
|
|
@@ -3,6 +3,9 @@ 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 "./EarnedRewardNotificationAttributes.js";
|
|
7
|
+
export * from "./EarnedRewardRejectedAttributes.js";
|
|
8
|
+
export * from "./EarnedRewardRejectedData.js";
|
|
6
9
|
export * from "./EarnedRewardRelationships.js";
|
|
7
10
|
export * from "./EarnedRewardSettledAttributes.js";
|
|
8
11
|
export * from "./EarnedRewardSettledData.js";
|
|
@@ -19,8 +22,10 @@ export * from "./NotificationPayload.js";
|
|
|
19
22
|
export * from "./PushNotificationPlacementFileAttributes.js";
|
|
20
23
|
export * from "./PushNotificationPlacementFileData.js";
|
|
21
24
|
export * from "./PushNotificationPlacementFileRelationships.js";
|
|
25
|
+
export * from "./RejectedTransactionRelationships.js";
|
|
22
26
|
export * from "./RewardNotificationAttributes.js";
|
|
23
27
|
export * from "./TransactionRelationships.js";
|
|
28
|
+
export * from "./UserReward.js";
|
|
24
29
|
export * from "./ValidTransactionAttributes.js";
|
|
25
30
|
export * from "./ValidTransactionCommissionEarned.js";
|
|
26
31
|
export * from "./ValidTransactionData.js";
|
|
@@ -19,6 +19,9 @@ __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("./EarnedRewardNotificationAttributes.js"), exports);
|
|
23
|
+
__exportStar(require("./EarnedRewardRejectedAttributes.js"), exports);
|
|
24
|
+
__exportStar(require("./EarnedRewardRejectedData.js"), exports);
|
|
22
25
|
__exportStar(require("./EarnedRewardRelationships.js"), exports);
|
|
23
26
|
__exportStar(require("./EarnedRewardSettledAttributes.js"), exports);
|
|
24
27
|
__exportStar(require("./EarnedRewardSettledData.js"), exports);
|
|
@@ -35,8 +38,10 @@ __exportStar(require("./NotificationPayload.js"), exports);
|
|
|
35
38
|
__exportStar(require("./PushNotificationPlacementFileAttributes.js"), exports);
|
|
36
39
|
__exportStar(require("./PushNotificationPlacementFileData.js"), exports);
|
|
37
40
|
__exportStar(require("./PushNotificationPlacementFileRelationships.js"), exports);
|
|
41
|
+
__exportStar(require("./RejectedTransactionRelationships.js"), exports);
|
|
38
42
|
__exportStar(require("./RewardNotificationAttributes.js"), exports);
|
|
39
43
|
__exportStar(require("./TransactionRelationships.js"), exports);
|
|
44
|
+
__exportStar(require("./UserReward.js"), exports);
|
|
40
45
|
__exportStar(require("./ValidTransactionAttributes.js"), exports);
|
|
41
46
|
__exportStar(require("./ValidTransactionCommissionEarned.js"), exports);
|
|
42
47
|
__exportStar(require("./ValidTransactionData.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "31.
|
|
1
|
+
export declare const SDK_VERSION = "31.3.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": "31.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/31.
|
|
9
|
+
"X-Fern-SDK-Version": "31.3.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/31.3.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",
|
|
@@ -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.EarnedRewardNotificationAttributes;
|
|
6
6
|
relationships: KardApi.EarnedRewardRelationships;
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.mjs";
|
|
2
|
+
export interface EarnedRewardNotificationAttributes extends KardApi.RewardNotificationAttributes {
|
|
3
|
+
/** The category of the offer, e.g. "Food & Dining" */
|
|
4
|
+
categoryName?: string | undefined;
|
|
5
|
+
/** Type of commission on offer (% or a flat $) */
|
|
6
|
+
userReward?: KardApi.UserReward | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Tracked asset images for the merchant. The asset
|
|
9
|
+
* URL is signed for attribution tracking and should be loaded as-is by the
|
|
10
|
+
* client.
|
|
11
|
+
*/
|
|
12
|
+
assets?: KardApi.MerchantAsset[] | undefined;
|
|
13
|
+
/** The purchase channels the offer applies to */
|
|
14
|
+
purchaseChannel?: KardApi.PurchaseChannel[] | undefined;
|
|
15
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.mjs";
|
|
2
|
-
export interface EarnedRewardSettledAttributes extends KardApi.
|
|
2
|
+
export interface EarnedRewardSettledAttributes extends KardApi.EarnedRewardNotificationAttributes {
|
|
3
3
|
commissionEarned: KardApi.CommissionValue;
|
|
4
4
|
}
|
|
@@ -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
|
}
|
|
@@ -17,7 +17,17 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
17
17
|
* cardProductId: "card_product_123",
|
|
18
18
|
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
19
19
|
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
20
|
-
* transactionAmountInCents: 3000
|
|
20
|
+
* transactionAmountInCents: 3000,
|
|
21
|
+
* categoryName: "Food & Dining",
|
|
22
|
+
* userReward: {
|
|
23
|
+
* type: KardApi.CommissionType.Percent,
|
|
24
|
+
* value: 5.7
|
|
25
|
+
* },
|
|
26
|
+
* assets: [{
|
|
27
|
+
* type: KardApi.MerchantAssetType.ImgView,
|
|
28
|
+
* url: "https://cdn.getkard.com/merchants/mcdonalds.png"
|
|
29
|
+
* }],
|
|
30
|
+
* purchaseChannel: [KardApi.PurchaseChannel.Online, KardApi.PurchaseChannel.Instore]
|
|
21
31
|
* },
|
|
22
32
|
* relationships: {
|
|
23
33
|
* user: {
|
|
@@ -55,7 +65,17 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
55
65
|
* cardProductId: "card_product_123",
|
|
56
66
|
* transactionTimestamp: "2024-10-01T14:32:10.000Z",
|
|
57
67
|
* transactionId: "019df940-babd-7cd3-acfc-a96de16643e9",
|
|
58
|
-
* transactionAmountInCents: 3000
|
|
68
|
+
* transactionAmountInCents: 3000,
|
|
69
|
+
* categoryName: "Food & Dining",
|
|
70
|
+
* userReward: {
|
|
71
|
+
* type: KardApi.CommissionType.Percent,
|
|
72
|
+
* value: 5.7
|
|
73
|
+
* },
|
|
74
|
+
* assets: [{
|
|
75
|
+
* type: KardApi.MerchantAssetType.ImgView,
|
|
76
|
+
* url: "https://cdn.getkard.com/merchants/mcdonalds.png"
|
|
77
|
+
* }],
|
|
78
|
+
* purchaseChannel: [KardApi.PurchaseChannel.Online, KardApi.PurchaseChannel.Instore]
|
|
59
79
|
* },
|
|
60
80
|
* relationships: {
|
|
61
81
|
* user: {
|
|
@@ -83,6 +103,35 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
83
103
|
* @example
|
|
84
104
|
* {
|
|
85
105
|
* data: {
|
|
106
|
+
* type: "earnedRewardRejected",
|
|
107
|
+
* id: "cdbbf8eb-b3b9-5f96-beb5-6e37d124e776",
|
|
108
|
+
* attributes: {
|
|
109
|
+
* reason: "AGGREGATOR_CARD_OVERLAP",
|
|
110
|
+
* message: "Your transaction did not result in a reward.",
|
|
111
|
+
* transactionId: "a9f3d7c1-6b25-4f91-8c0e-2d5a7b3e9f42",
|
|
112
|
+
* transactionAmountInCents: 3000,
|
|
113
|
+
* transactionTimestamp: "2026-06-23T22:15:26.124Z"
|
|
114
|
+
* },
|
|
115
|
+
* relationships: {
|
|
116
|
+
* user: {
|
|
117
|
+
* data: {
|
|
118
|
+
* type: "user",
|
|
119
|
+
* id: "1234567890"
|
|
120
|
+
* }
|
|
121
|
+
* },
|
|
122
|
+
* transaction: {
|
|
123
|
+
* data: {
|
|
124
|
+
* type: "transaction",
|
|
125
|
+
* id: "6179473f14ef7a000882acbe"
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* }
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* {
|
|
134
|
+
* data: {
|
|
86
135
|
* type: "validTransaction",
|
|
87
136
|
* id: "a12b34c56d78e90f1234",
|
|
88
137
|
* attributes: {
|
|
@@ -3,6 +3,9 @@ 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 "./EarnedRewardNotificationAttributes.mjs";
|
|
7
|
+
export * from "./EarnedRewardRejectedAttributes.mjs";
|
|
8
|
+
export * from "./EarnedRewardRejectedData.mjs";
|
|
6
9
|
export * from "./EarnedRewardRelationships.mjs";
|
|
7
10
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
8
11
|
export * from "./EarnedRewardSettledData.mjs";
|
|
@@ -19,8 +22,10 @@ export * from "./NotificationPayload.mjs";
|
|
|
19
22
|
export * from "./PushNotificationPlacementFileAttributes.mjs";
|
|
20
23
|
export * from "./PushNotificationPlacementFileData.mjs";
|
|
21
24
|
export * from "./PushNotificationPlacementFileRelationships.mjs";
|
|
25
|
+
export * from "./RejectedTransactionRelationships.mjs";
|
|
22
26
|
export * from "./RewardNotificationAttributes.mjs";
|
|
23
27
|
export * from "./TransactionRelationships.mjs";
|
|
28
|
+
export * from "./UserReward.mjs";
|
|
24
29
|
export * from "./ValidTransactionAttributes.mjs";
|
|
25
30
|
export * from "./ValidTransactionCommissionEarned.mjs";
|
|
26
31
|
export * from "./ValidTransactionData.mjs";
|
|
@@ -3,6 +3,9 @@ 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 "./EarnedRewardNotificationAttributes.mjs";
|
|
7
|
+
export * from "./EarnedRewardRejectedAttributes.mjs";
|
|
8
|
+
export * from "./EarnedRewardRejectedData.mjs";
|
|
6
9
|
export * from "./EarnedRewardRelationships.mjs";
|
|
7
10
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
8
11
|
export * from "./EarnedRewardSettledData.mjs";
|
|
@@ -19,8 +22,10 @@ export * from "./NotificationPayload.mjs";
|
|
|
19
22
|
export * from "./PushNotificationPlacementFileAttributes.mjs";
|
|
20
23
|
export * from "./PushNotificationPlacementFileData.mjs";
|
|
21
24
|
export * from "./PushNotificationPlacementFileRelationships.mjs";
|
|
25
|
+
export * from "./RejectedTransactionRelationships.mjs";
|
|
22
26
|
export * from "./RewardNotificationAttributes.mjs";
|
|
23
27
|
export * from "./TransactionRelationships.mjs";
|
|
28
|
+
export * from "./UserReward.mjs";
|
|
24
29
|
export * from "./ValidTransactionAttributes.mjs";
|
|
25
30
|
export * from "./ValidTransactionCommissionEarned.mjs";
|
|
26
31
|
export * from "./ValidTransactionData.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "31.
|
|
1
|
+
export declare const SDK_VERSION = "31.3.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "31.
|
|
1
|
+
export const SDK_VERSION = "31.3.0";
|