@kard-financial/sdk 12.4.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 +2 -1
- package/dist/cjs/api/resources/transactions/client/Client.js +4 -2
- package/dist/cjs/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.ts +4 -0
- package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsMeta.d.ts +4 -0
- package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsMeta.js +3 -0
- package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsResponse.d.ts +49 -1
- package/dist/cjs/api/resources/transactions/types/RewardedTransactionStatus.d.ts +1 -0
- package/dist/cjs/api/resources/transactions/types/RewardedTransactionStatus.js +1 -0
- package/dist/cjs/api/resources/transactions/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/transactions/types/index.js +1 -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/transactions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/transactions/client/Client.mjs +4 -2
- package/dist/esm/api/resources/transactions/client/requests/GetEarnedRewardsRequest.d.mts +4 -0
- package/dist/esm/api/resources/transactions/types/GetEarnedRewardsMeta.d.mts +4 -0
- package/dist/esm/api/resources/transactions/types/GetEarnedRewardsMeta.mjs +2 -0
- package/dist/esm/api/resources/transactions/types/GetEarnedRewardsResponse.d.mts +49 -1
- package/dist/esm/api/resources/transactions/types/RewardedTransactionStatus.d.mts +1 -0
- package/dist/esm/api/resources/transactions/types/RewardedTransactionStatus.mjs +1 -0
- package/dist/esm/api/resources/transactions/types/index.d.mts +1 -0
- package/dist/esm/api/resources/transactions/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -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);
|
|
@@ -268,7 +268,7 @@ export declare class TransactionsClient {
|
|
|
268
268
|
createBulkTransactionsUploadUrl(organizationId: KardApi.OrganizationId, request: KardApi.CreateFileUploadRequestBody, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<KardApi.CreateFileUploadUrlResponse>;
|
|
269
269
|
private __createBulkTransactionsUploadUrl;
|
|
270
270
|
/**
|
|
271
|
-
* Retrieve rewarded transaction history for a specific user.
|
|
271
|
+
* Retrieve rewarded transaction history for a specific user. By default this returns only SETTLED transactions within the last 12 months.
|
|
272
272
|
* <br/>
|
|
273
273
|
* <b>Required scopes:</b> `transaction:read`
|
|
274
274
|
* <br/>
|
|
@@ -287,6 +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
291
|
* include: "merchant,offer"
|
|
291
292
|
* })
|
|
292
293
|
*/
|
|
@@ -495,7 +495,7 @@ class TransactionsClient {
|
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
|
-
* Retrieve rewarded transaction history for a specific user.
|
|
498
|
+
* Retrieve rewarded transaction history for a specific user. By default this returns only SETTLED transactions within the last 12 months.
|
|
499
499
|
* <br/>
|
|
500
500
|
* <b>Required scopes:</b> `transaction:read`
|
|
501
501
|
* <br/>
|
|
@@ -514,6 +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
518
|
* include: "merchant,offer"
|
|
518
519
|
* })
|
|
519
520
|
*/
|
|
@@ -523,11 +524,12 @@ class TransactionsClient {
|
|
|
523
524
|
__getEarnedRewards(organizationId_1, userId_1) {
|
|
524
525
|
return __awaiter(this, arguments, void 0, function* (organizationId, userId, request = {}, requestOptions) {
|
|
525
526
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
526
|
-
const { "page[after]": pageAfter, "page[before]": pageBefore, "page[size]": pageSize, include } = request;
|
|
527
|
+
const { "page[after]": pageAfter, "page[before]": pageBefore, "page[size]": pageSize, "filter[status]": filterStatus, include, } = request;
|
|
527
528
|
const _queryParams = {
|
|
528
529
|
"page[after]": pageAfter,
|
|
529
530
|
"page[before]": pageBefore,
|
|
530
531
|
"page[size]": pageSize,
|
|
532
|
+
"filter[status]": filterStatus != null ? filterStatus : undefined,
|
|
531
533
|
include,
|
|
532
534
|
};
|
|
533
535
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* "page[size]": 10,
|
|
6
|
+
* "filter[status]": "APPROVED",
|
|
5
7
|
* include: "merchant,offer"
|
|
6
8
|
* }
|
|
7
9
|
*/
|
|
@@ -12,6 +14,8 @@ export interface GetEarnedRewardsRequest {
|
|
|
12
14
|
"page[before]"?: string;
|
|
13
15
|
/** Number of results per page */
|
|
14
16
|
"page[size]"?: number;
|
|
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;
|
|
15
19
|
/** Comma-separated list of related resources to include in the response. Supported values are `merchant` and `offer`. */
|
|
16
20
|
include?: string;
|
|
17
21
|
}
|
|
@@ -6,7 +6,7 @@ import type * as KardApi from "../../../index.js";
|
|
|
6
6
|
* type: "rewardedTransaction",
|
|
7
7
|
* id: "fcabf024-3870-41f3-9fbd-b43ea85a3d19",
|
|
8
8
|
* attributes: {
|
|
9
|
-
* status: KardApi.RewardedTransactionStatus.
|
|
9
|
+
* status: KardApi.RewardedTransactionStatus.Approved,
|
|
10
10
|
* transactionId: "TXN-20241001-F21-127964",
|
|
11
11
|
* transactionAmountInCents: 12796,
|
|
12
12
|
* transactionTimestamp: "2024-10-01T01:36:57Z",
|
|
@@ -45,11 +45,57 @@ import type * as KardApi from "../../../index.js";
|
|
|
45
45
|
* }
|
|
46
46
|
* }
|
|
47
47
|
* }
|
|
48
|
+
* }, {
|
|
49
|
+
* type: "rewardedTransaction",
|
|
50
|
+
* id: "7bcbdb95-f3a5-4f56-a9be-4c25f313eb0a",
|
|
51
|
+
* attributes: {
|
|
52
|
+
* status: KardApi.RewardedTransactionStatus.Settled,
|
|
53
|
+
* transactionId: "TXN-20240928-TGT-778813",
|
|
54
|
+
* transactionAmountInCents: 8800,
|
|
55
|
+
* transactionTimestamp: "2024-09-28T14:11:22Z",
|
|
56
|
+
* paidToIssuer: KardApi.PaymentStatus.PaidInFull,
|
|
57
|
+
* payoutTimestamp: "2024-09-29T10:15:00Z",
|
|
58
|
+
* cardBIN: "123456",
|
|
59
|
+
* cardLastFour: "4321",
|
|
60
|
+
* commissionEarned: {
|
|
61
|
+
* issuer: {
|
|
62
|
+
* type: KardApi.CommissionValueType.Cents,
|
|
63
|
+
* value: 70
|
|
64
|
+
* },
|
|
65
|
+
* user: {
|
|
66
|
+
* type: KardApi.CommissionValueType.Cents,
|
|
67
|
+
* value: 220
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* },
|
|
71
|
+
* relationships: {
|
|
72
|
+
* user: {
|
|
73
|
+
* data: {
|
|
74
|
+
* type: "user",
|
|
75
|
+
* id: "8c52423a-c319-44ee-8fc7-508e97b43892"
|
|
76
|
+
* }
|
|
77
|
+
* },
|
|
78
|
+
* merchant: {
|
|
79
|
+
* data: {
|
|
80
|
+
* type: "merchant",
|
|
81
|
+
* id: "5f3e2d1c40abc50008cc4821"
|
|
82
|
+
* }
|
|
83
|
+
* },
|
|
84
|
+
* offer: {
|
|
85
|
+
* data: {
|
|
86
|
+
* type: "offer",
|
|
87
|
+
* id: "OFF-TGT-ONLINE-2024Q4-002"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
48
91
|
* }],
|
|
49
92
|
* links: {
|
|
50
93
|
* self: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10",
|
|
51
94
|
* next: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10&page[after]=eyJpZCI6ImZjYWJmMDI0LTM4NzAtNDFmMy05ZmJkLWI0M2VhODVhM2QxOSIsInRzIjoiMjAyNC0xMC0wMVQwMTozNjo1N1oifQ=="
|
|
52
95
|
* },
|
|
96
|
+
* meta: {
|
|
97
|
+
* lifetimeRewardsInCents: 540
|
|
98
|
+
* },
|
|
53
99
|
* included: [{
|
|
54
100
|
* type: "merchant",
|
|
55
101
|
* id: "633ed2ab30dcb60009dd5699",
|
|
@@ -80,6 +126,8 @@ import type * as KardApi from "../../../index.js";
|
|
|
80
126
|
export interface GetEarnedRewardsResponse {
|
|
81
127
|
data: KardApi.RewardedTransactionUnion[];
|
|
82
128
|
links: KardApi.Links;
|
|
129
|
+
/** Additional metadata for the earned rewards response. */
|
|
130
|
+
meta: KardApi.GetEarnedRewardsMeta;
|
|
83
131
|
/** Additional resources referenced in the response */
|
|
84
132
|
included?: KardApi.TransactionIncludedResource[] | undefined;
|
|
85
133
|
}
|
|
@@ -24,6 +24,7 @@ export * from "./FraudulentTransactionData.js";
|
|
|
24
24
|
export * from "./FraudulentTransactionObject.js";
|
|
25
25
|
export * from "./FraudulentTransactionRequestBody.js";
|
|
26
26
|
export * from "./FraudulentTransactionResponse.js";
|
|
27
|
+
export * from "./GetEarnedRewardsMeta.js";
|
|
27
28
|
export * from "./GetEarnedRewardsResponse.js";
|
|
28
29
|
export * from "./MatchedTransactionsAttributes.js";
|
|
29
30
|
export * from "./MatchedTransactionsRequest.js";
|
|
@@ -40,6 +40,7 @@ __exportStar(require("./FraudulentTransactionData.js"), exports);
|
|
|
40
40
|
__exportStar(require("./FraudulentTransactionObject.js"), exports);
|
|
41
41
|
__exportStar(require("./FraudulentTransactionRequestBody.js"), exports);
|
|
42
42
|
__exportStar(require("./FraudulentTransactionResponse.js"), exports);
|
|
43
|
+
__exportStar(require("./GetEarnedRewardsMeta.js"), exports);
|
|
43
44
|
__exportStar(require("./GetEarnedRewardsResponse.js"), exports);
|
|
44
45
|
__exportStar(require("./MatchedTransactionsAttributes.js"), exports);
|
|
45
46
|
__exportStar(require("./MatchedTransactionsRequest.js"), exports);
|
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);
|
|
@@ -268,7 +268,7 @@ export declare class TransactionsClient {
|
|
|
268
268
|
createBulkTransactionsUploadUrl(organizationId: KardApi.OrganizationId, request: KardApi.CreateFileUploadRequestBody, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<KardApi.CreateFileUploadUrlResponse>;
|
|
269
269
|
private __createBulkTransactionsUploadUrl;
|
|
270
270
|
/**
|
|
271
|
-
* Retrieve rewarded transaction history for a specific user.
|
|
271
|
+
* Retrieve rewarded transaction history for a specific user. By default this returns only SETTLED transactions within the last 12 months.
|
|
272
272
|
* <br/>
|
|
273
273
|
* <b>Required scopes:</b> `transaction:read`
|
|
274
274
|
* <br/>
|
|
@@ -287,6 +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
291
|
* include: "merchant,offer"
|
|
291
292
|
* })
|
|
292
293
|
*/
|
|
@@ -459,7 +459,7 @@ export class TransactionsClient {
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
|
-
* Retrieve rewarded transaction history for a specific user.
|
|
462
|
+
* Retrieve rewarded transaction history for a specific user. By default this returns only SETTLED transactions within the last 12 months.
|
|
463
463
|
* <br/>
|
|
464
464
|
* <b>Required scopes:</b> `transaction:read`
|
|
465
465
|
* <br/>
|
|
@@ -478,6 +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
482
|
* include: "merchant,offer"
|
|
482
483
|
* })
|
|
483
484
|
*/
|
|
@@ -487,11 +488,12 @@ export class TransactionsClient {
|
|
|
487
488
|
__getEarnedRewards(organizationId_1, userId_1) {
|
|
488
489
|
return __awaiter(this, arguments, void 0, function* (organizationId, userId, request = {}, requestOptions) {
|
|
489
490
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
490
|
-
const { "page[after]": pageAfter, "page[before]": pageBefore, "page[size]": pageSize, include } = request;
|
|
491
|
+
const { "page[after]": pageAfter, "page[before]": pageBefore, "page[size]": pageSize, "filter[status]": filterStatus, include, } = request;
|
|
491
492
|
const _queryParams = {
|
|
492
493
|
"page[after]": pageAfter,
|
|
493
494
|
"page[before]": pageBefore,
|
|
494
495
|
"page[size]": pageSize,
|
|
496
|
+
"filter[status]": filterStatus != null ? filterStatus : undefined,
|
|
495
497
|
include,
|
|
496
498
|
};
|
|
497
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* "page[size]": 10,
|
|
6
|
+
* "filter[status]": "APPROVED",
|
|
5
7
|
* include: "merchant,offer"
|
|
6
8
|
* }
|
|
7
9
|
*/
|
|
@@ -12,6 +14,8 @@ export interface GetEarnedRewardsRequest {
|
|
|
12
14
|
"page[before]"?: string;
|
|
13
15
|
/** Number of results per page */
|
|
14
16
|
"page[size]"?: number;
|
|
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;
|
|
15
19
|
/** Comma-separated list of related resources to include in the response. Supported values are `merchant` and `offer`. */
|
|
16
20
|
include?: string;
|
|
17
21
|
}
|
|
@@ -6,7 +6,7 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
6
6
|
* type: "rewardedTransaction",
|
|
7
7
|
* id: "fcabf024-3870-41f3-9fbd-b43ea85a3d19",
|
|
8
8
|
* attributes: {
|
|
9
|
-
* status: KardApi.RewardedTransactionStatus.
|
|
9
|
+
* status: KardApi.RewardedTransactionStatus.Approved,
|
|
10
10
|
* transactionId: "TXN-20241001-F21-127964",
|
|
11
11
|
* transactionAmountInCents: 12796,
|
|
12
12
|
* transactionTimestamp: "2024-10-01T01:36:57Z",
|
|
@@ -45,11 +45,57 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
45
45
|
* }
|
|
46
46
|
* }
|
|
47
47
|
* }
|
|
48
|
+
* }, {
|
|
49
|
+
* type: "rewardedTransaction",
|
|
50
|
+
* id: "7bcbdb95-f3a5-4f56-a9be-4c25f313eb0a",
|
|
51
|
+
* attributes: {
|
|
52
|
+
* status: KardApi.RewardedTransactionStatus.Settled,
|
|
53
|
+
* transactionId: "TXN-20240928-TGT-778813",
|
|
54
|
+
* transactionAmountInCents: 8800,
|
|
55
|
+
* transactionTimestamp: "2024-09-28T14:11:22Z",
|
|
56
|
+
* paidToIssuer: KardApi.PaymentStatus.PaidInFull,
|
|
57
|
+
* payoutTimestamp: "2024-09-29T10:15:00Z",
|
|
58
|
+
* cardBIN: "123456",
|
|
59
|
+
* cardLastFour: "4321",
|
|
60
|
+
* commissionEarned: {
|
|
61
|
+
* issuer: {
|
|
62
|
+
* type: KardApi.CommissionValueType.Cents,
|
|
63
|
+
* value: 70
|
|
64
|
+
* },
|
|
65
|
+
* user: {
|
|
66
|
+
* type: KardApi.CommissionValueType.Cents,
|
|
67
|
+
* value: 220
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* },
|
|
71
|
+
* relationships: {
|
|
72
|
+
* user: {
|
|
73
|
+
* data: {
|
|
74
|
+
* type: "user",
|
|
75
|
+
* id: "8c52423a-c319-44ee-8fc7-508e97b43892"
|
|
76
|
+
* }
|
|
77
|
+
* },
|
|
78
|
+
* merchant: {
|
|
79
|
+
* data: {
|
|
80
|
+
* type: "merchant",
|
|
81
|
+
* id: "5f3e2d1c40abc50008cc4821"
|
|
82
|
+
* }
|
|
83
|
+
* },
|
|
84
|
+
* offer: {
|
|
85
|
+
* data: {
|
|
86
|
+
* type: "offer",
|
|
87
|
+
* id: "OFF-TGT-ONLINE-2024Q4-002"
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
48
91
|
* }],
|
|
49
92
|
* links: {
|
|
50
93
|
* self: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10",
|
|
51
94
|
* next: "/v2/issuers/org-123/users/user-456/earned-rewards?page[size]=10&page[after]=eyJpZCI6ImZjYWJmMDI0LTM4NzAtNDFmMy05ZmJkLWI0M2VhODVhM2QxOSIsInRzIjoiMjAyNC0xMC0wMVQwMTozNjo1N1oifQ=="
|
|
52
95
|
* },
|
|
96
|
+
* meta: {
|
|
97
|
+
* lifetimeRewardsInCents: 540
|
|
98
|
+
* },
|
|
53
99
|
* included: [{
|
|
54
100
|
* type: "merchant",
|
|
55
101
|
* id: "633ed2ab30dcb60009dd5699",
|
|
@@ -80,6 +126,8 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
80
126
|
export interface GetEarnedRewardsResponse {
|
|
81
127
|
data: KardApi.RewardedTransactionUnion[];
|
|
82
128
|
links: KardApi.Links;
|
|
129
|
+
/** Additional metadata for the earned rewards response. */
|
|
130
|
+
meta: KardApi.GetEarnedRewardsMeta;
|
|
83
131
|
/** Additional resources referenced in the response */
|
|
84
132
|
included?: KardApi.TransactionIncludedResource[] | undefined;
|
|
85
133
|
}
|
|
@@ -24,6 +24,7 @@ export * from "./FraudulentTransactionData.mjs";
|
|
|
24
24
|
export * from "./FraudulentTransactionObject.mjs";
|
|
25
25
|
export * from "./FraudulentTransactionRequestBody.mjs";
|
|
26
26
|
export * from "./FraudulentTransactionResponse.mjs";
|
|
27
|
+
export * from "./GetEarnedRewardsMeta.mjs";
|
|
27
28
|
export * from "./GetEarnedRewardsResponse.mjs";
|
|
28
29
|
export * from "./MatchedTransactionsAttributes.mjs";
|
|
29
30
|
export * from "./MatchedTransactionsRequest.mjs";
|
|
@@ -24,6 +24,7 @@ export * from "./FraudulentTransactionData.mjs";
|
|
|
24
24
|
export * from "./FraudulentTransactionObject.mjs";
|
|
25
25
|
export * from "./FraudulentTransactionRequestBody.mjs";
|
|
26
26
|
export * from "./FraudulentTransactionResponse.mjs";
|
|
27
|
+
export * from "./GetEarnedRewardsMeta.mjs";
|
|
27
28
|
export * from "./GetEarnedRewardsResponse.mjs";
|
|
28
29
|
export * from "./MatchedTransactionsAttributes.mjs";
|
|
29
30
|
export * from "./MatchedTransactionsRequest.mjs";
|
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
|
@@ -828,7 +828,7 @@ await client.transactions.createBulkTransactionsUploadUrl("organization-123", {
|
|
|
828
828
|
<dl>
|
|
829
829
|
<dd>
|
|
830
830
|
|
|
831
|
-
Retrieve rewarded transaction history for a specific user.
|
|
831
|
+
Retrieve rewarded transaction history for a specific user. By default this returns only SETTLED transactions within the last 12 months.
|
|
832
832
|
<br/>
|
|
833
833
|
<b>Required scopes:</b> `transaction:read`
|
|
834
834
|
<br/>
|
|
@@ -849,6 +849,7 @@ Retrieve rewarded transaction history for a specific user. Returns only SETTLED
|
|
|
849
849
|
```typescript
|
|
850
850
|
await client.transactions.getEarnedRewards("org-123", "user-456", {
|
|
851
851
|
"page[size]": 10,
|
|
852
|
+
"filter[status]": "APPROVED",
|
|
852
853
|
include: "merchant,offer"
|
|
853
854
|
});
|
|
854
855
|
|