@kard-financial/sdk 16.0.0 → 16.1.1
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/EarnedRewardAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/types/EarnedRewardSettledAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +4 -2
- package/dist/cjs/api/resources/users/resources/rewards/types/LocationsResponseObject.d.ts +6 -6
- package/dist/cjs/api/resources/users/resources/rewards/types/OffersResponseObject.d.ts +6 -6
- 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/EarnedRewardAttributes.d.mts +2 -0
- package/dist/esm/api/resources/notifications/types/EarnedRewardSettledAttributes.d.mts +2 -0
- package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +4 -2
- package/dist/esm/api/resources/users/resources/rewards/types/LocationsResponseObject.d.mts +6 -6
- package/dist/esm/api/resources/users/resources/rewards/types/OffersResponseObject.d.mts +6 -6
- 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": "16.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/16.
|
|
46
|
+
"X-Fern-SDK-Version": "16.1.1",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/16.1.1",
|
|
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,4 +1,6 @@
|
|
|
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;
|
|
4
6
|
}
|
|
@@ -14,7 +14,8 @@ import type * as KardApi from "../../../index.js";
|
|
|
14
14
|
* },
|
|
15
15
|
* attributionUrl: "www.attribution.com/token",
|
|
16
16
|
* surveyUrl: "www.survey.com",
|
|
17
|
-
* cardProductId: "card_product_123"
|
|
17
|
+
* cardProductId: "card_product_123",
|
|
18
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
18
19
|
* },
|
|
19
20
|
* relationships: {
|
|
20
21
|
* user: {
|
|
@@ -43,7 +44,8 @@ import type * as KardApi from "../../../index.js";
|
|
|
43
44
|
* name: "McDonald's",
|
|
44
45
|
* attributionUrl: "www.attribution.com/token",
|
|
45
46
|
* surveyUrl: "www.survey.com",
|
|
46
|
-
* cardProductId: "card_product_123"
|
|
47
|
+
* cardProductId: "card_product_123",
|
|
48
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
47
49
|
* },
|
|
48
50
|
* relationships: {
|
|
49
51
|
* user: {
|
|
@@ -121,13 +121,13 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
121
121
|
* maxRedemptions: 1,
|
|
122
122
|
* isTargeted: true,
|
|
123
123
|
* assets: [{
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
124
|
+
* url: "http://attribution.getkard.com/logos/breakfastbunny_logo.png?subtype=IMG_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
125
|
+
* alt: "",
|
|
126
|
+
* type: "IMG_VIEW"
|
|
127
127
|
* }, {
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* url: "https://attribution.getkard.com/public/banners/breakfast-bunny-banner.jpg?subtype=BANNER_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
129
|
+
* alt: "",
|
|
130
|
+
* type: "BANNER_VIEW"
|
|
131
131
|
* }],
|
|
132
132
|
* websiteUrl: "http://worldsgreatestchickent.test.com",
|
|
133
133
|
* description: "Worlds Greatest Chicken brings you the tastiest crispy, double fried spicy chicken in the world."
|
|
@@ -34,13 +34,13 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
34
34
|
* maxRedemptions: 1,
|
|
35
35
|
* isTargeted: true,
|
|
36
36
|
* assets: [{
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
37
|
+
* url: "http://attribution.getkard.com/logos/breakfastbunny_logo.png?subtype=IMG_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
38
|
+
* alt: "",
|
|
39
|
+
* type: "IMG_VIEW"
|
|
40
40
|
* }, {
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* url: "https://attribution.getkard.com/public/banners/breakfast-bunny-banner.jpg?subtype=BANNER_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
42
|
+
* alt: "",
|
|
43
|
+
* type: "BANNER_VIEW"
|
|
44
44
|
* }],
|
|
45
45
|
* websiteUrl: "http://worldsgreatestchickent.test.com",
|
|
46
46
|
* description: "Worlds Greatest Chicken brings you the tastiest crispy, double fried spicy chicken in the world."
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.
|
|
1
|
+
export declare const SDK_VERSION = "16.1.1";
|
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": "16.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/16.
|
|
9
|
+
"X-Fern-SDK-Version": "16.1.1",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/16.1.1",
|
|
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,4 +1,6 @@
|
|
|
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;
|
|
4
6
|
}
|
|
@@ -14,7 +14,8 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
14
14
|
* },
|
|
15
15
|
* attributionUrl: "www.attribution.com/token",
|
|
16
16
|
* surveyUrl: "www.survey.com",
|
|
17
|
-
* cardProductId: "card_product_123"
|
|
17
|
+
* cardProductId: "card_product_123",
|
|
18
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
18
19
|
* },
|
|
19
20
|
* relationships: {
|
|
20
21
|
* user: {
|
|
@@ -43,7 +44,8 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
43
44
|
* name: "McDonald's",
|
|
44
45
|
* attributionUrl: "www.attribution.com/token",
|
|
45
46
|
* surveyUrl: "www.survey.com",
|
|
46
|
-
* cardProductId: "card_product_123"
|
|
47
|
+
* cardProductId: "card_product_123",
|
|
48
|
+
* transactionTimestamp: "2024-10-01T14:32:10.000Z"
|
|
47
49
|
* },
|
|
48
50
|
* relationships: {
|
|
49
51
|
* user: {
|
|
@@ -121,13 +121,13 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
121
121
|
* maxRedemptions: 1,
|
|
122
122
|
* isTargeted: true,
|
|
123
123
|
* assets: [{
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
124
|
+
* url: "http://attribution.getkard.com/logos/breakfastbunny_logo.png?subtype=IMG_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
125
|
+
* alt: "",
|
|
126
|
+
* type: "IMG_VIEW"
|
|
127
127
|
* }, {
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* url: "https://attribution.getkard.com/public/banners/breakfast-bunny-banner.jpg?subtype=BANNER_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
129
|
+
* alt: "",
|
|
130
|
+
* type: "BANNER_VIEW"
|
|
131
131
|
* }],
|
|
132
132
|
* websiteUrl: "http://worldsgreatestchickent.test.com",
|
|
133
133
|
* description: "Worlds Greatest Chicken brings you the tastiest crispy, double fried spicy chicken in the world."
|
|
@@ -34,13 +34,13 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
34
34
|
* maxRedemptions: 1,
|
|
35
35
|
* isTargeted: true,
|
|
36
36
|
* assets: [{
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
37
|
+
* url: "http://attribution.getkard.com/logos/breakfastbunny_logo.png?subtype=IMG_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
38
|
+
* alt: "",
|
|
39
|
+
* type: "IMG_VIEW"
|
|
40
40
|
* }, {
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* url: "https://attribution.getkard.com/public/banners/breakfast-bunny-banner.jpg?subtype=BANNER_VIEW&offerId=629fc220b7a4290009a188ec&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWZlcnJpbmdQYXJ0bmVyVXNlcklkIjoiNDM4MTAzIiwiaXNzdWVySWQiOiIwMDAwNDMyMSIsInR5cGUiOiJPRkZFUiIsInBheWxvYWQiOnsiand0VGltZXN0YW1wIjoiMjAyNi0wNC0yMyJ9fQ.4f9QmoGpgXVIXu9Tq8XFVcx7Rz0jptsYNYpmaIBszyc&state=eyJyYW5rIjoxLCJmaWx0ZXJzIjpbXX0%3D",
|
|
42
|
+
* alt: "",
|
|
43
|
+
* type: "BANNER_VIEW"
|
|
44
44
|
* }],
|
|
45
45
|
* websiteUrl: "http://worldsgreatestchickent.test.com",
|
|
46
46
|
* description: "Worlds Greatest Chicken brings you the tastiest crispy, double fried spicy chicken in the world."
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "16.
|
|
1
|
+
export declare const SDK_VERSION = "16.1.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "16.
|
|
1
|
+
export const SDK_VERSION = "16.1.1";
|