@kard-financial/sdk 13.0.0 → 14.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/transactions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transactions/client/Client.js +2 -2
- package/dist/cjs/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.ts +4 -3
- 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/transactions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transactions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.mts +4 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +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": "
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "14.0.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/14.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);
|
|
@@ -287,7 +287,7 @@ export declare class TransactionsClient {
|
|
|
287
287
|
* @example
|
|
288
288
|
* await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
289
289
|
* "page[size]": 10,
|
|
290
|
-
* "filter[status]": "APPROVED
|
|
290
|
+
* "filter[status]": "APPROVED",
|
|
291
291
|
* include: "merchant,offer"
|
|
292
292
|
* })
|
|
293
293
|
*/
|
|
@@ -514,7 +514,7 @@ class TransactionsClient {
|
|
|
514
514
|
* @example
|
|
515
515
|
* await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
516
516
|
* "page[size]": 10,
|
|
517
|
-
* "filter[status]": "APPROVED
|
|
517
|
+
* "filter[status]": "APPROVED",
|
|
518
518
|
* include: "merchant,offer"
|
|
519
519
|
* })
|
|
520
520
|
*/
|
|
@@ -529,7 +529,7 @@ class TransactionsClient {
|
|
|
529
529
|
"page[after]": pageAfter,
|
|
530
530
|
"page[before]": pageBefore,
|
|
531
531
|
"page[size]": pageSize,
|
|
532
|
-
"filter[status]": filterStatus,
|
|
532
|
+
"filter[status]": filterStatus != null ? filterStatus : undefined,
|
|
533
533
|
include,
|
|
534
534
|
};
|
|
535
535
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* "page[size]": 10,
|
|
5
|
-
* "filter[status]": "APPROVED
|
|
6
|
+
* "filter[status]": "APPROVED",
|
|
6
7
|
* include: "merchant,offer"
|
|
7
8
|
* }
|
|
8
9
|
*/
|
|
@@ -13,8 +14,8 @@ export interface GetEarnedRewardsRequest {
|
|
|
13
14
|
"page[before]"?: string;
|
|
14
15
|
/** Number of results per page */
|
|
15
16
|
"page[size]"?: number;
|
|
16
|
-
/**
|
|
17
|
-
"filter[status]"?:
|
|
17
|
+
/** Filter by transaction status. Supported values are `APPROVED` and `SETTLED`. Defaults to `SETTLED` when omitted. When `APPROVED` is specified, only approved transactions that do not yet have a corresponding settled transaction are returned. */
|
|
18
|
+
"filter[status]"?: KardApi.RewardedTransactionStatus;
|
|
18
19
|
/** Comma-separated list of related resources to include in the response. Supported values are `merchant` and `offer`. */
|
|
19
20
|
include?: string;
|
|
20
21
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "14.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": "14.0.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/14.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);
|
|
@@ -287,7 +287,7 @@ export declare class TransactionsClient {
|
|
|
287
287
|
* @example
|
|
288
288
|
* await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
289
289
|
* "page[size]": 10,
|
|
290
|
-
* "filter[status]": "APPROVED
|
|
290
|
+
* "filter[status]": "APPROVED",
|
|
291
291
|
* include: "merchant,offer"
|
|
292
292
|
* })
|
|
293
293
|
*/
|
|
@@ -478,7 +478,7 @@ export class TransactionsClient {
|
|
|
478
478
|
* @example
|
|
479
479
|
* await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
480
480
|
* "page[size]": 10,
|
|
481
|
-
* "filter[status]": "APPROVED
|
|
481
|
+
* "filter[status]": "APPROVED",
|
|
482
482
|
* include: "merchant,offer"
|
|
483
483
|
* })
|
|
484
484
|
*/
|
|
@@ -493,7 +493,7 @@ export class TransactionsClient {
|
|
|
493
493
|
"page[after]": pageAfter,
|
|
494
494
|
"page[before]": pageBefore,
|
|
495
495
|
"page[size]": pageSize,
|
|
496
|
-
"filter[status]": filterStatus,
|
|
496
|
+
"filter[status]": filterStatus != null ? filterStatus : undefined,
|
|
497
497
|
include,
|
|
498
498
|
};
|
|
499
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* "page[size]": 10,
|
|
5
|
-
* "filter[status]": "APPROVED
|
|
6
|
+
* "filter[status]": "APPROVED",
|
|
6
7
|
* include: "merchant,offer"
|
|
7
8
|
* }
|
|
8
9
|
*/
|
|
@@ -13,8 +14,8 @@ export interface GetEarnedRewardsRequest {
|
|
|
13
14
|
"page[before]"?: string;
|
|
14
15
|
/** Number of results per page */
|
|
15
16
|
"page[size]"?: number;
|
|
16
|
-
/**
|
|
17
|
-
"filter[status]"?:
|
|
17
|
+
/** Filter by transaction status. Supported values are `APPROVED` and `SETTLED`. Defaults to `SETTLED` when omitted. When `APPROVED` is specified, only approved transactions that do not yet have a corresponding settled transaction are returned. */
|
|
18
|
+
"filter[status]"?: KardApi.RewardedTransactionStatus;
|
|
18
19
|
/** Comma-separated list of related resources to include in the response. Supported values are `merchant` and `offer`. */
|
|
19
20
|
include?: string;
|
|
20
21
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "14.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "14.0.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -849,7 +849,7 @@ Retrieve rewarded transaction history for a specific user. By default this retur
|
|
|
849
849
|
```typescript
|
|
850
850
|
await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
851
851
|
"page[size]": 10,
|
|
852
|
-
"filter[status]": "APPROVED
|
|
852
|
+
"filter[status]": "APPROVED",
|
|
853
853
|
include: "merchant,offer"
|
|
854
854
|
});
|
|
855
855
|
|