@kard-financial/sdk 11.0.1 → 12.1.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 (149) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/commons/types/NotificationType.d.ts +0 -4
  3. package/dist/cjs/api/resources/commons/types/NotificationType.js +0 -4
  4. package/dist/cjs/api/resources/notifications/types/NotificationDataUnion.d.ts +1 -13
  5. package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +0 -201
  6. package/dist/cjs/api/resources/notifications/types/index.d.ts +0 -29
  7. package/dist/cjs/api/resources/notifications/types/index.js +0 -29
  8. package/dist/cjs/api/resources/transactions/types/CreateFileUploadData.d.ts +1 -1
  9. package/dist/cjs/api/resources/transactions/types/CreateFileUploadUrlResponse.d.ts +2 -2
  10. package/dist/cjs/api/resources/transactions/types/FileUploadType.d.ts +6 -0
  11. package/dist/cjs/api/resources/transactions/types/FileUploadType.js +9 -0
  12. package/dist/cjs/api/resources/transactions/types/FileUploadUrlData.d.ts +1 -1
  13. package/dist/cjs/api/resources/transactions/types/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/transactions/types/index.js +1 -0
  15. package/dist/cjs/version.d.ts +1 -1
  16. package/dist/cjs/version.js +1 -1
  17. package/dist/esm/BaseClient.mjs +2 -2
  18. package/dist/esm/api/resources/commons/types/NotificationType.d.mts +0 -4
  19. package/dist/esm/api/resources/commons/types/NotificationType.mjs +0 -4
  20. package/dist/esm/api/resources/notifications/types/NotificationDataUnion.d.mts +1 -13
  21. package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +0 -201
  22. package/dist/esm/api/resources/notifications/types/index.d.mts +0 -29
  23. package/dist/esm/api/resources/notifications/types/index.mjs +0 -29
  24. package/dist/esm/api/resources/transactions/types/CreateFileUploadData.d.mts +1 -1
  25. package/dist/esm/api/resources/transactions/types/CreateFileUploadUrlResponse.d.mts +2 -2
  26. package/dist/esm/api/resources/transactions/types/FileUploadType.d.mts +6 -0
  27. package/dist/esm/api/resources/transactions/types/FileUploadType.mjs +6 -0
  28. package/dist/esm/api/resources/transactions/types/FileUploadUrlData.d.mts +1 -1
  29. package/dist/esm/api/resources/transactions/types/index.d.mts +1 -0
  30. package/dist/esm/api/resources/transactions/types/index.mjs +1 -0
  31. package/dist/esm/version.d.mts +1 -1
  32. package/dist/esm/version.mjs +1 -1
  33. package/package.json +1 -1
  34. package/dist/cjs/api/resources/notifications/types/BrokerAmount.d.ts +0 -7
  35. package/dist/cjs/api/resources/notifications/types/BrokerAmount.js +0 -3
  36. package/dist/cjs/api/resources/notifications/types/BrokerAmountType.d.ts +0 -4
  37. package/dist/cjs/api/resources/notifications/types/BrokerAmountType.js +0 -7
  38. package/dist/cjs/api/resources/notifications/types/BrokerAsset.d.ts +0 -9
  39. package/dist/cjs/api/resources/notifications/types/BrokerAsset.js +0 -3
  40. package/dist/cjs/api/resources/notifications/types/BrokerAssetType.d.ts +0 -5
  41. package/dist/cjs/api/resources/notifications/types/BrokerAssetType.js +0 -8
  42. package/dist/cjs/api/resources/notifications/types/BrokerOperationHours.d.ts +0 -7
  43. package/dist/cjs/api/resources/notifications/types/BrokerOperationHours.js +0 -3
  44. package/dist/cjs/api/resources/notifications/types/BrokerOperationPeriod.d.ts +0 -7
  45. package/dist/cjs/api/resources/notifications/types/BrokerOperationPeriod.js +0 -3
  46. package/dist/cjs/api/resources/notifications/types/BrokerPurchaseChannel.d.ts +0 -5
  47. package/dist/cjs/api/resources/notifications/types/BrokerPurchaseChannel.js +0 -8
  48. package/dist/cjs/api/resources/notifications/types/BrokerReward.d.ts +0 -7
  49. package/dist/cjs/api/resources/notifications/types/BrokerReward.js +0 -3
  50. package/dist/cjs/api/resources/notifications/types/BrokerRewardType.d.ts +0 -5
  51. package/dist/cjs/api/resources/notifications/types/BrokerRewardType.js +0 -8
  52. package/dist/cjs/api/resources/notifications/types/LocationAddress.d.ts +0 -10
  53. package/dist/cjs/api/resources/notifications/types/LocationAddress.js +0 -3
  54. package/dist/cjs/api/resources/notifications/types/LocationCoordinates.d.ts +0 -6
  55. package/dist/cjs/api/resources/notifications/types/LocationCoordinates.js +0 -3
  56. package/dist/cjs/api/resources/notifications/types/LocationStatus.d.ts +0 -5
  57. package/dist/cjs/api/resources/notifications/types/LocationStatus.js +0 -8
  58. package/dist/cjs/api/resources/notifications/types/MerchantSource.d.ts +0 -5
  59. package/dist/cjs/api/resources/notifications/types/MerchantSource.js +0 -8
  60. package/dist/cjs/api/resources/notifications/types/OfferStatus.d.ts +0 -5
  61. package/dist/cjs/api/resources/notifications/types/OfferStatus.js +0 -8
  62. package/dist/cjs/api/resources/notifications/types/OfferType.d.ts +0 -4
  63. package/dist/cjs/api/resources/notifications/types/OfferType.js +0 -7
  64. package/dist/cjs/api/resources/notifications/types/TimePeriod.d.ts +0 -6
  65. package/dist/cjs/api/resources/notifications/types/TimePeriod.js +0 -3
  66. package/dist/cjs/api/resources/notifications/types/UserOfferStatus.d.ts +0 -5
  67. package/dist/cjs/api/resources/notifications/types/UserOfferStatus.js +0 -8
  68. package/dist/cjs/api/resources/notifications/types/WebhookLocationsAttributes.d.ts +0 -21
  69. package/dist/cjs/api/resources/notifications/types/WebhookLocationsAttributes.js +0 -3
  70. package/dist/cjs/api/resources/notifications/types/WebhookLocationsData.d.ts +0 -7
  71. package/dist/cjs/api/resources/notifications/types/WebhookLocationsData.js +0 -3
  72. package/dist/cjs/api/resources/notifications/types/WebhookLocationsRelationships.d.ts +0 -4
  73. package/dist/cjs/api/resources/notifications/types/WebhookLocationsRelationships.js +0 -3
  74. package/dist/cjs/api/resources/notifications/types/WebhookMerchantAttributes.d.ts +0 -21
  75. package/dist/cjs/api/resources/notifications/types/WebhookMerchantAttributes.js +0 -3
  76. package/dist/cjs/api/resources/notifications/types/WebhookMerchantData.d.ts +0 -7
  77. package/dist/cjs/api/resources/notifications/types/WebhookMerchantData.js +0 -3
  78. package/dist/cjs/api/resources/notifications/types/WebhookMerchantRelationships.d.ts +0 -4
  79. package/dist/cjs/api/resources/notifications/types/WebhookMerchantRelationships.js +0 -3
  80. package/dist/cjs/api/resources/notifications/types/WebhookOfferAttributes.d.ts +0 -43
  81. package/dist/cjs/api/resources/notifications/types/WebhookOfferAttributes.js +0 -3
  82. package/dist/cjs/api/resources/notifications/types/WebhookOfferData.d.ts +0 -7
  83. package/dist/cjs/api/resources/notifications/types/WebhookOfferData.js +0 -3
  84. package/dist/cjs/api/resources/notifications/types/WebhookOfferRelationships.d.ts +0 -4
  85. package/dist/cjs/api/resources/notifications/types/WebhookOfferRelationships.js +0 -3
  86. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferAttributes.d.ts +0 -11
  87. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferAttributes.js +0 -3
  88. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferData.d.ts +0 -7
  89. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferData.js +0 -3
  90. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferRelationships.d.ts +0 -5
  91. package/dist/cjs/api/resources/notifications/types/WebhookUserOfferRelationships.js +0 -3
  92. package/dist/esm/api/resources/notifications/types/BrokerAmount.d.mts +0 -7
  93. package/dist/esm/api/resources/notifications/types/BrokerAmount.mjs +0 -2
  94. package/dist/esm/api/resources/notifications/types/BrokerAmountType.d.mts +0 -4
  95. package/dist/esm/api/resources/notifications/types/BrokerAmountType.mjs +0 -4
  96. package/dist/esm/api/resources/notifications/types/BrokerAsset.d.mts +0 -9
  97. package/dist/esm/api/resources/notifications/types/BrokerAsset.mjs +0 -2
  98. package/dist/esm/api/resources/notifications/types/BrokerAssetType.d.mts +0 -5
  99. package/dist/esm/api/resources/notifications/types/BrokerAssetType.mjs +0 -5
  100. package/dist/esm/api/resources/notifications/types/BrokerOperationHours.d.mts +0 -7
  101. package/dist/esm/api/resources/notifications/types/BrokerOperationHours.mjs +0 -2
  102. package/dist/esm/api/resources/notifications/types/BrokerOperationPeriod.d.mts +0 -7
  103. package/dist/esm/api/resources/notifications/types/BrokerOperationPeriod.mjs +0 -2
  104. package/dist/esm/api/resources/notifications/types/BrokerPurchaseChannel.d.mts +0 -5
  105. package/dist/esm/api/resources/notifications/types/BrokerPurchaseChannel.mjs +0 -5
  106. package/dist/esm/api/resources/notifications/types/BrokerReward.d.mts +0 -7
  107. package/dist/esm/api/resources/notifications/types/BrokerReward.mjs +0 -2
  108. package/dist/esm/api/resources/notifications/types/BrokerRewardType.d.mts +0 -5
  109. package/dist/esm/api/resources/notifications/types/BrokerRewardType.mjs +0 -5
  110. package/dist/esm/api/resources/notifications/types/LocationAddress.d.mts +0 -10
  111. package/dist/esm/api/resources/notifications/types/LocationAddress.mjs +0 -2
  112. package/dist/esm/api/resources/notifications/types/LocationCoordinates.d.mts +0 -6
  113. package/dist/esm/api/resources/notifications/types/LocationCoordinates.mjs +0 -2
  114. package/dist/esm/api/resources/notifications/types/LocationStatus.d.mts +0 -5
  115. package/dist/esm/api/resources/notifications/types/LocationStatus.mjs +0 -5
  116. package/dist/esm/api/resources/notifications/types/MerchantSource.d.mts +0 -5
  117. package/dist/esm/api/resources/notifications/types/MerchantSource.mjs +0 -5
  118. package/dist/esm/api/resources/notifications/types/OfferStatus.d.mts +0 -5
  119. package/dist/esm/api/resources/notifications/types/OfferStatus.mjs +0 -5
  120. package/dist/esm/api/resources/notifications/types/OfferType.d.mts +0 -4
  121. package/dist/esm/api/resources/notifications/types/OfferType.mjs +0 -4
  122. package/dist/esm/api/resources/notifications/types/TimePeriod.d.mts +0 -6
  123. package/dist/esm/api/resources/notifications/types/TimePeriod.mjs +0 -2
  124. package/dist/esm/api/resources/notifications/types/UserOfferStatus.d.mts +0 -5
  125. package/dist/esm/api/resources/notifications/types/UserOfferStatus.mjs +0 -5
  126. package/dist/esm/api/resources/notifications/types/WebhookLocationsAttributes.d.mts +0 -21
  127. package/dist/esm/api/resources/notifications/types/WebhookLocationsAttributes.mjs +0 -2
  128. package/dist/esm/api/resources/notifications/types/WebhookLocationsData.d.mts +0 -7
  129. package/dist/esm/api/resources/notifications/types/WebhookLocationsData.mjs +0 -2
  130. package/dist/esm/api/resources/notifications/types/WebhookLocationsRelationships.d.mts +0 -4
  131. package/dist/esm/api/resources/notifications/types/WebhookLocationsRelationships.mjs +0 -2
  132. package/dist/esm/api/resources/notifications/types/WebhookMerchantAttributes.d.mts +0 -21
  133. package/dist/esm/api/resources/notifications/types/WebhookMerchantAttributes.mjs +0 -2
  134. package/dist/esm/api/resources/notifications/types/WebhookMerchantData.d.mts +0 -7
  135. package/dist/esm/api/resources/notifications/types/WebhookMerchantData.mjs +0 -2
  136. package/dist/esm/api/resources/notifications/types/WebhookMerchantRelationships.d.mts +0 -4
  137. package/dist/esm/api/resources/notifications/types/WebhookMerchantRelationships.mjs +0 -2
  138. package/dist/esm/api/resources/notifications/types/WebhookOfferAttributes.d.mts +0 -43
  139. package/dist/esm/api/resources/notifications/types/WebhookOfferAttributes.mjs +0 -2
  140. package/dist/esm/api/resources/notifications/types/WebhookOfferData.d.mts +0 -7
  141. package/dist/esm/api/resources/notifications/types/WebhookOfferData.mjs +0 -2
  142. package/dist/esm/api/resources/notifications/types/WebhookOfferRelationships.d.mts +0 -4
  143. package/dist/esm/api/resources/notifications/types/WebhookOfferRelationships.mjs +0 -2
  144. package/dist/esm/api/resources/notifications/types/WebhookUserOfferAttributes.d.mts +0 -11
  145. package/dist/esm/api/resources/notifications/types/WebhookUserOfferAttributes.mjs +0 -2
  146. package/dist/esm/api/resources/notifications/types/WebhookUserOfferData.d.mts +0 -7
  147. package/dist/esm/api/resources/notifications/types/WebhookUserOfferData.mjs +0 -2
  148. package/dist/esm/api/resources/notifications/types/WebhookUserOfferRelationships.d.mts +0 -5
  149. package/dist/esm/api/resources/notifications/types/WebhookUserOfferRelationships.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": "11.0.1",
47
- "User-Agent": "@kard-financial/sdk/11.0.1",
46
+ "X-Fern-SDK-Version": "12.1.0",
47
+ "User-Agent": "@kard-financial/sdk/12.1.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);
@@ -4,10 +4,6 @@ export declare const NotificationType: {
4
4
  readonly ValidTransaction: "validTransaction";
5
5
  readonly FailedTransaction: "failedTransaction";
6
6
  readonly Clawback: "clawback";
7
- readonly Offer: "offer";
8
- readonly Merchant: "merchant";
9
- readonly Location: "location";
10
- readonly UserOffer: "userOffer";
11
7
  readonly AuditUpdate: "auditUpdate";
12
8
  readonly FileProcessingResult: "fileProcessingResult";
13
9
  };
@@ -8,10 +8,6 @@ exports.NotificationType = {
8
8
  ValidTransaction: "validTransaction",
9
9
  FailedTransaction: "failedTransaction",
10
10
  Clawback: "clawback",
11
- Offer: "offer",
12
- Merchant: "merchant",
13
- Location: "location",
14
- UserOffer: "userOffer",
15
11
  AuditUpdate: "auditUpdate",
16
12
  FileProcessingResult: "fileProcessingResult",
17
13
  };
@@ -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.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
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;
3
3
  export declare namespace NotificationDataUnion {
4
4
  interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
5
5
  type: "earnedRewardApproved";
@@ -16,18 +16,6 @@ export declare namespace NotificationDataUnion {
16
16
  interface Clawback extends KardApi.ClawbackData {
17
17
  type: "clawback";
18
18
  }
19
- interface Offer extends KardApi.WebhookOfferData {
20
- type: "offer";
21
- }
22
- interface Merchant extends KardApi.WebhookMerchantData {
23
- type: "merchant";
24
- }
25
- interface Location extends KardApi.WebhookLocationsData {
26
- type: "location";
27
- }
28
- interface UserOffer extends KardApi.WebhookUserOfferData {
29
- type: "userOffer";
30
- }
31
19
  interface AuditUpdate extends KardApi.AuditUpdateData {
32
20
  type: "auditUpdate";
33
21
  }
@@ -178,207 +178,6 @@ import type * as KardApi from "../../../index.js";
178
178
  * @example
179
179
  * {
180
180
  * data: {
181
- * type: "userOffer",
182
- * id: "some-user-offer-notification-id",
183
- * attributes: {
184
- * status: KardApi.UserOfferStatus.Active,
185
- * createdAt: "2025-06-23T00:00:00Z",
186
- * updatedAt: "2025-06-23T00:00:00Z",
187
- * eventPriority: 1
188
- * },
189
- * relationships: {
190
- * offer: {
191
- * data: {
192
- * type: "offer",
193
- * id: "restaurant-offer-id"
194
- * }
195
- * },
196
- * user: {
197
- * data: {
198
- * type: "user",
199
- * id: "user-123"
200
- * }
201
- * }
202
- * }
203
- * }
204
- * }
205
- *
206
- * @example
207
- * {
208
- * data: {
209
- * type: "location",
210
- * id: "some-location-notification-id",
211
- * attributes: {
212
- * locationId: "restaurant-location-id",
213
- * name: "Local Restaurant",
214
- * status: KardApi.LocationStatus.Active,
215
- * address: {
216
- * street: "120 Main St",
217
- * city: "Philadelphia",
218
- * state: "PA",
219
- * zipCode: "19147"
220
- * },
221
- * coordinates: {
222
- * longitude: -75.1446869,
223
- * latitude: 39.9419429
224
- * },
225
- * phone: "+1 (123) 555-8880",
226
- * operationHours: {
227
- * periods: [{
228
- * close: {
229
- * day: 1,
230
- * time: "1700"
231
- * },
232
- * open: {
233
- * day: 1,
234
- * time: "0900"
235
- * }
236
- * }, {
237
- * close: {
238
- * day: 2,
239
- * time: "1700"
240
- * },
241
- * open: {
242
- * day: 2,
243
- * time: "0900"
244
- * }
245
- * }, {
246
- * close: {
247
- * day: 3,
248
- * time: "1700"
249
- * },
250
- * open: {
251
- * day: 3,
252
- * time: "0900"
253
- * }
254
- * }, {
255
- * close: {
256
- * day: 4,
257
- * time: "1700"
258
- * },
259
- * open: {
260
- * day: 4,
261
- * time: "0900"
262
- * }
263
- * }, {
264
- * close: {
265
- * day: 5,
266
- * time: "1700"
267
- * },
268
- * open: {
269
- * day: 5,
270
- * time: "0900"
271
- * }
272
- * }],
273
- * weekdayText: ["Monday: 9:00 AM \u2013 5:00 PM", "Tuesday: 9:00 AM \u2013 5:00 PM", "Wednesday: 9:00 AM \u2013 5:00 PM", "Thursday: 9:00 AM \u2013 5:00 PM", "Friday: 9:00 AM \u2013 5:00 PM", "Saturday: Closed", "Sunday: Closed"]
274
- * },
275
- * createdAt: "2025-06-22T00:00:00Z",
276
- * updatedAt: "2025-06-22T00:00:00Z"
277
- * },
278
- * relationships: {
279
- * merchant: {
280
- * data: {
281
- * type: "merchant",
282
- * id: "restaurant-merchant-id"
283
- * }
284
- * }
285
- * }
286
- * }
287
- * }
288
- *
289
- * @example
290
- * {
291
- * data: {
292
- * type: "offer",
293
- * id: "some-offer-notification-id",
294
- * attributes: {
295
- * offerId: "restaurant-offer-id",
296
- * offerType: KardApi.OfferType.StandardOffer,
297
- * name: "Local Restaurant",
298
- * terms: "This offer is valid for in-store purchases at participating locations and applies only to menu items as specified in the promotion details. Discounts cannot be combined with other promotions, applied to previous purchases, or redeemed for cash. The merchant reserves the right to modify or cancel the offer at any time without prior notice.",
299
- * status: KardApi.OfferStatus.Active,
300
- * purchaseChannel: [KardApi.BrokerPurchaseChannel.Instore, KardApi.BrokerPurchaseChannel.Online],
301
- * userReward: {
302
- * type: KardApi.BrokerRewardType.Percent,
303
- * value: 5
304
- * },
305
- * startDate: "2025-06-23T00:00:00Z",
306
- * expirationDate: "2025-07-10T00:00:00Z",
307
- * minRewardAmount: {
308
- * type: KardApi.BrokerAmountType.Cents,
309
- * value: 0
310
- * },
311
- * maxRewardAmount: {
312
- * type: KardApi.BrokerAmountType.Cents,
313
- * value: 2000
314
- * },
315
- * minUserRewardAmount: {
316
- * type: KardApi.BrokerAmountType.Cents,
317
- * value: 0
318
- * },
319
- * maxUserRewardAmount: {
320
- * type: KardApi.BrokerAmountType.Cents,
321
- * value: 2000
322
- * },
323
- * minTransactionAmount: {
324
- * type: KardApi.BrokerAmountType.Cents,
325
- * value: 500
326
- * },
327
- * maxTransactionAmount: {
328
- * type: KardApi.BrokerAmountType.Cents,
329
- * value: 10000
330
- * },
331
- * validMCCs: ["5812", "5813"],
332
- * maxRedemptions: 1,
333
- * isTargeted: false,
334
- * updatedAt: "2025-06-22T00:00:00Z",
335
- * createdAt: "2025-06-22T00:00:00Z"
336
- * },
337
- * relationships: {
338
- * merchant: {
339
- * data: {
340
- * type: "merchant",
341
- * id: "restaurant-merchant-id"
342
- * }
343
- * }
344
- * }
345
- * }
346
- * }
347
- *
348
- * @example
349
- * {
350
- * data: {
351
- * type: "merchant",
352
- * id: "some-merchant-notification-id",
353
- * attributes: {
354
- * merchantId: "restaurant-merchant-id",
355
- * name: "Local Restaurant",
356
- * assets: [{
357
- * type: KardApi.BrokerAssetType.LogoImage,
358
- * url: "http://assets.getkard.com/logo/img",
359
- * alt: "Restaurant Logo Image"
360
- * }],
361
- * websiteUrl: "https://www.example-restaurant.com",
362
- * description: "A local restaurant offering delicious food and great dining experiences.",
363
- * source: KardApi.MerchantSource.National,
364
- * category: "Food & Beverage",
365
- * updatedAt: "2025-06-22T00:00:00Z",
366
- * createdAt: "2025-06-22T00:00:00Z"
367
- * },
368
- * relationships: {
369
- * offer: {
370
- * data: [{
371
- * type: "offer",
372
- * id: "restaurant-offer-id"
373
- * }]
374
- * }
375
- * }
376
- * }
377
- * }
378
- *
379
- * @example
380
- * {
381
- * data: {
382
181
  * type: "auditUpdate",
383
182
  * id: "a12b34c56d78e90f1234",
384
183
  * attributes: {
@@ -1,15 +1,6 @@
1
1
  export * from "./AuditUpdateAttributes.js";
2
2
  export * from "./AuditUpdateData.js";
3
3
  export * from "./AuditUpdateRelationships.js";
4
- export * from "./BrokerAmount.js";
5
- export * from "./BrokerAmountType.js";
6
- export * from "./BrokerAsset.js";
7
- export * from "./BrokerAssetType.js";
8
- export * from "./BrokerOperationHours.js";
9
- export * from "./BrokerOperationPeriod.js";
10
- export * from "./BrokerPurchaseChannel.js";
11
- export * from "./BrokerReward.js";
12
- export * from "./BrokerRewardType.js";
13
4
  export * from "./ClawbackData.js";
14
5
  export * from "./EarnedRewardApprovedData.js";
15
6
  export * from "./EarnedRewardAttributes.js";
@@ -20,31 +11,11 @@ export * from "./FailedTransactionAttributes.js";
20
11
  export * from "./FailedTransactionData.js";
21
12
  export * from "./FailedTransactionRelationships.js";
22
13
  export * from "./FileResultData.js";
23
- export * from "./LocationAddress.js";
24
- export * from "./LocationCoordinates.js";
25
- export * from "./LocationStatus.js";
26
- export * from "./MerchantSource.js";
27
14
  export * from "./NotificationDataUnion.js";
28
15
  export * from "./NotificationMetadata.js";
29
16
  export * from "./NotificationPayload.js";
30
- export * from "./OfferStatus.js";
31
- export * from "./OfferType.js";
32
17
  export * from "./RewardNotificationAttributes.js";
33
- export * from "./TimePeriod.js";
34
18
  export * from "./TransactionRelationships.js";
35
- export * from "./UserOfferStatus.js";
36
19
  export * from "./ValidTransactionAttributes.js";
37
20
  export * from "./ValidTransactionCommissionEarned.js";
38
21
  export * from "./ValidTransactionData.js";
39
- export * from "./WebhookLocationsAttributes.js";
40
- export * from "./WebhookLocationsData.js";
41
- export * from "./WebhookLocationsRelationships.js";
42
- export * from "./WebhookMerchantAttributes.js";
43
- export * from "./WebhookMerchantData.js";
44
- export * from "./WebhookMerchantRelationships.js";
45
- export * from "./WebhookOfferAttributes.js";
46
- export * from "./WebhookOfferData.js";
47
- export * from "./WebhookOfferRelationships.js";
48
- export * from "./WebhookUserOfferAttributes.js";
49
- export * from "./WebhookUserOfferData.js";
50
- export * from "./WebhookUserOfferRelationships.js";
@@ -17,15 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AuditUpdateAttributes.js"), exports);
18
18
  __exportStar(require("./AuditUpdateData.js"), exports);
19
19
  __exportStar(require("./AuditUpdateRelationships.js"), exports);
20
- __exportStar(require("./BrokerAmount.js"), exports);
21
- __exportStar(require("./BrokerAmountType.js"), exports);
22
- __exportStar(require("./BrokerAsset.js"), exports);
23
- __exportStar(require("./BrokerAssetType.js"), exports);
24
- __exportStar(require("./BrokerOperationHours.js"), exports);
25
- __exportStar(require("./BrokerOperationPeriod.js"), exports);
26
- __exportStar(require("./BrokerPurchaseChannel.js"), exports);
27
- __exportStar(require("./BrokerReward.js"), exports);
28
- __exportStar(require("./BrokerRewardType.js"), exports);
29
20
  __exportStar(require("./ClawbackData.js"), exports);
30
21
  __exportStar(require("./EarnedRewardApprovedData.js"), exports);
31
22
  __exportStar(require("./EarnedRewardAttributes.js"), exports);
@@ -36,31 +27,11 @@ __exportStar(require("./FailedTransactionAttributes.js"), exports);
36
27
  __exportStar(require("./FailedTransactionData.js"), exports);
37
28
  __exportStar(require("./FailedTransactionRelationships.js"), exports);
38
29
  __exportStar(require("./FileResultData.js"), exports);
39
- __exportStar(require("./LocationAddress.js"), exports);
40
- __exportStar(require("./LocationCoordinates.js"), exports);
41
- __exportStar(require("./LocationStatus.js"), exports);
42
- __exportStar(require("./MerchantSource.js"), exports);
43
30
  __exportStar(require("./NotificationDataUnion.js"), exports);
44
31
  __exportStar(require("./NotificationMetadata.js"), exports);
45
32
  __exportStar(require("./NotificationPayload.js"), exports);
46
- __exportStar(require("./OfferStatus.js"), exports);
47
- __exportStar(require("./OfferType.js"), exports);
48
33
  __exportStar(require("./RewardNotificationAttributes.js"), exports);
49
- __exportStar(require("./TimePeriod.js"), exports);
50
34
  __exportStar(require("./TransactionRelationships.js"), exports);
51
- __exportStar(require("./UserOfferStatus.js"), exports);
52
35
  __exportStar(require("./ValidTransactionAttributes.js"), exports);
53
36
  __exportStar(require("./ValidTransactionCommissionEarned.js"), exports);
54
37
  __exportStar(require("./ValidTransactionData.js"), exports);
55
- __exportStar(require("./WebhookLocationsAttributes.js"), exports);
56
- __exportStar(require("./WebhookLocationsData.js"), exports);
57
- __exportStar(require("./WebhookLocationsRelationships.js"), exports);
58
- __exportStar(require("./WebhookMerchantAttributes.js"), exports);
59
- __exportStar(require("./WebhookMerchantData.js"), exports);
60
- __exportStar(require("./WebhookMerchantRelationships.js"), exports);
61
- __exportStar(require("./WebhookOfferAttributes.js"), exports);
62
- __exportStar(require("./WebhookOfferData.js"), exports);
63
- __exportStar(require("./WebhookOfferRelationships.js"), exports);
64
- __exportStar(require("./WebhookUserOfferAttributes.js"), exports);
65
- __exportStar(require("./WebhookUserOfferData.js"), exports);
66
- __exportStar(require("./WebhookUserOfferRelationships.js"), exports);
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface CreateFileUploadData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  attributes: KardApi.CreateFileUploadAttributes;
5
5
  }
@@ -3,14 +3,14 @@ import type * as KardApi from "../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * data: [{
6
- * type: "incomingTransactionsFile",
6
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
7
7
  * id: "2NxKz7TYmqVH8UrjGP1xK3hF2gs",
8
8
  * attributes: {
9
9
  * url: "https://s3.amazonaws.com/bucket/key1?X-Amz-Algorithm=...",
10
10
  * expiresIn: 900
11
11
  * }
12
12
  * }, {
13
- * type: "incomingTransactionsFile",
13
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
14
14
  * id: "3PqLa8UZnrWI9VskHQ2yL4iG3ht",
15
15
  * attributes: {
16
16
  * url: "https://s3.amazonaws.com/bucket/key2?X-Amz-Algorithm=...",
@@ -0,0 +1,6 @@
1
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
2
+ export declare const FileUploadType: {
3
+ readonly IncomingTransactionsFile: "incomingTransactionsFile";
4
+ readonly HistoricalTransactionsFile: "historicalTransactionsFile";
5
+ };
6
+ export type FileUploadType = (typeof FileUploadType)[keyof typeof FileUploadType];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FileUploadType = void 0;
5
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
6
+ exports.FileUploadType = {
7
+ IncomingTransactionsFile: "incomingTransactionsFile",
8
+ HistoricalTransactionsFile: "historicalTransactionsFile",
9
+ };
@@ -1,6 +1,6 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface FileUploadUrlData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  /** Upload session ID for traceability */
5
5
  id: string;
6
6
  attributes: KardApi.FileUploadUrlAttributes;
@@ -17,6 +17,7 @@ export * from "./CreateFileUploadData.js";
17
17
  export * from "./CreateFileUploadRequestBody.js";
18
18
  export * from "./CreateFileUploadUrlResponse.js";
19
19
  export * from "./DirectionType.js";
20
+ export * from "./FileUploadType.js";
20
21
  export * from "./FileUploadUrlAttributes.js";
21
22
  export * from "./FileUploadUrlData.js";
22
23
  export * from "./FraudulentTransactionAttributes.js";
@@ -33,6 +33,7 @@ __exportStar(require("./CreateFileUploadData.js"), exports);
33
33
  __exportStar(require("./CreateFileUploadRequestBody.js"), exports);
34
34
  __exportStar(require("./CreateFileUploadUrlResponse.js"), exports);
35
35
  __exportStar(require("./DirectionType.js"), exports);
36
+ __exportStar(require("./FileUploadType.js"), exports);
36
37
  __exportStar(require("./FileUploadUrlAttributes.js"), exports);
37
38
  __exportStar(require("./FileUploadUrlData.js"), exports);
38
39
  __exportStar(require("./FraudulentTransactionAttributes.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.0.1";
1
+ export declare const SDK_VERSION = "12.1.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 = "11.0.1";
4
+ exports.SDK_VERSION = "12.1.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": "11.0.1",
10
- "User-Agent": "@kard-financial/sdk/11.0.1",
9
+ "X-Fern-SDK-Version": "12.1.0",
10
+ "User-Agent": "@kard-financial/sdk/12.1.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);
@@ -4,10 +4,6 @@ export declare const NotificationType: {
4
4
  readonly ValidTransaction: "validTransaction";
5
5
  readonly FailedTransaction: "failedTransaction";
6
6
  readonly Clawback: "clawback";
7
- readonly Offer: "offer";
8
- readonly Merchant: "merchant";
9
- readonly Location: "location";
10
- readonly UserOffer: "userOffer";
11
7
  readonly AuditUpdate: "auditUpdate";
12
8
  readonly FileProcessingResult: "fileProcessingResult";
13
9
  };
@@ -5,10 +5,6 @@ export const NotificationType = {
5
5
  ValidTransaction: "validTransaction",
6
6
  FailedTransaction: "failedTransaction",
7
7
  Clawback: "clawback",
8
- Offer: "offer",
9
- Merchant: "merchant",
10
- Location: "location",
11
- UserOffer: "userOffer",
12
8
  AuditUpdate: "auditUpdate",
13
9
  FileProcessingResult: "fileProcessingResult",
14
10
  };
@@ -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.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
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;
3
3
  export declare namespace NotificationDataUnion {
4
4
  interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
5
5
  type: "earnedRewardApproved";
@@ -16,18 +16,6 @@ export declare namespace NotificationDataUnion {
16
16
  interface Clawback extends KardApi.ClawbackData {
17
17
  type: "clawback";
18
18
  }
19
- interface Offer extends KardApi.WebhookOfferData {
20
- type: "offer";
21
- }
22
- interface Merchant extends KardApi.WebhookMerchantData {
23
- type: "merchant";
24
- }
25
- interface Location extends KardApi.WebhookLocationsData {
26
- type: "location";
27
- }
28
- interface UserOffer extends KardApi.WebhookUserOfferData {
29
- type: "userOffer";
30
- }
31
19
  interface AuditUpdate extends KardApi.AuditUpdateData {
32
20
  type: "auditUpdate";
33
21
  }