@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
@@ -178,207 +178,6 @@ import type * as KardApi from "../../../index.mjs";
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.mjs";
2
2
  export * from "./AuditUpdateData.mjs";
3
3
  export * from "./AuditUpdateRelationships.mjs";
4
- export * from "./BrokerAmount.mjs";
5
- export * from "./BrokerAmountType.mjs";
6
- export * from "./BrokerAsset.mjs";
7
- export * from "./BrokerAssetType.mjs";
8
- export * from "./BrokerOperationHours.mjs";
9
- export * from "./BrokerOperationPeriod.mjs";
10
- export * from "./BrokerPurchaseChannel.mjs";
11
- export * from "./BrokerReward.mjs";
12
- export * from "./BrokerRewardType.mjs";
13
4
  export * from "./ClawbackData.mjs";
14
5
  export * from "./EarnedRewardApprovedData.mjs";
15
6
  export * from "./EarnedRewardAttributes.mjs";
@@ -20,31 +11,11 @@ export * from "./FailedTransactionAttributes.mjs";
20
11
  export * from "./FailedTransactionData.mjs";
21
12
  export * from "./FailedTransactionRelationships.mjs";
22
13
  export * from "./FileResultData.mjs";
23
- export * from "./LocationAddress.mjs";
24
- export * from "./LocationCoordinates.mjs";
25
- export * from "./LocationStatus.mjs";
26
- export * from "./MerchantSource.mjs";
27
14
  export * from "./NotificationDataUnion.mjs";
28
15
  export * from "./NotificationMetadata.mjs";
29
16
  export * from "./NotificationPayload.mjs";
30
- export * from "./OfferStatus.mjs";
31
- export * from "./OfferType.mjs";
32
17
  export * from "./RewardNotificationAttributes.mjs";
33
- export * from "./TimePeriod.mjs";
34
18
  export * from "./TransactionRelationships.mjs";
35
- export * from "./UserOfferStatus.mjs";
36
19
  export * from "./ValidTransactionAttributes.mjs";
37
20
  export * from "./ValidTransactionCommissionEarned.mjs";
38
21
  export * from "./ValidTransactionData.mjs";
39
- export * from "./WebhookLocationsAttributes.mjs";
40
- export * from "./WebhookLocationsData.mjs";
41
- export * from "./WebhookLocationsRelationships.mjs";
42
- export * from "./WebhookMerchantAttributes.mjs";
43
- export * from "./WebhookMerchantData.mjs";
44
- export * from "./WebhookMerchantRelationships.mjs";
45
- export * from "./WebhookOfferAttributes.mjs";
46
- export * from "./WebhookOfferData.mjs";
47
- export * from "./WebhookOfferRelationships.mjs";
48
- export * from "./WebhookUserOfferAttributes.mjs";
49
- export * from "./WebhookUserOfferData.mjs";
50
- export * from "./WebhookUserOfferRelationships.mjs";
@@ -1,15 +1,6 @@
1
1
  export * from "./AuditUpdateAttributes.mjs";
2
2
  export * from "./AuditUpdateData.mjs";
3
3
  export * from "./AuditUpdateRelationships.mjs";
4
- export * from "./BrokerAmount.mjs";
5
- export * from "./BrokerAmountType.mjs";
6
- export * from "./BrokerAsset.mjs";
7
- export * from "./BrokerAssetType.mjs";
8
- export * from "./BrokerOperationHours.mjs";
9
- export * from "./BrokerOperationPeriod.mjs";
10
- export * from "./BrokerPurchaseChannel.mjs";
11
- export * from "./BrokerReward.mjs";
12
- export * from "./BrokerRewardType.mjs";
13
4
  export * from "./ClawbackData.mjs";
14
5
  export * from "./EarnedRewardApprovedData.mjs";
15
6
  export * from "./EarnedRewardAttributes.mjs";
@@ -20,31 +11,11 @@ export * from "./FailedTransactionAttributes.mjs";
20
11
  export * from "./FailedTransactionData.mjs";
21
12
  export * from "./FailedTransactionRelationships.mjs";
22
13
  export * from "./FileResultData.mjs";
23
- export * from "./LocationAddress.mjs";
24
- export * from "./LocationCoordinates.mjs";
25
- export * from "./LocationStatus.mjs";
26
- export * from "./MerchantSource.mjs";
27
14
  export * from "./NotificationDataUnion.mjs";
28
15
  export * from "./NotificationMetadata.mjs";
29
16
  export * from "./NotificationPayload.mjs";
30
- export * from "./OfferStatus.mjs";
31
- export * from "./OfferType.mjs";
32
17
  export * from "./RewardNotificationAttributes.mjs";
33
- export * from "./TimePeriod.mjs";
34
18
  export * from "./TransactionRelationships.mjs";
35
- export * from "./UserOfferStatus.mjs";
36
19
  export * from "./ValidTransactionAttributes.mjs";
37
20
  export * from "./ValidTransactionCommissionEarned.mjs";
38
21
  export * from "./ValidTransactionData.mjs";
39
- export * from "./WebhookLocationsAttributes.mjs";
40
- export * from "./WebhookLocationsData.mjs";
41
- export * from "./WebhookLocationsRelationships.mjs";
42
- export * from "./WebhookMerchantAttributes.mjs";
43
- export * from "./WebhookMerchantData.mjs";
44
- export * from "./WebhookMerchantRelationships.mjs";
45
- export * from "./WebhookOfferAttributes.mjs";
46
- export * from "./WebhookOfferData.mjs";
47
- export * from "./WebhookOfferRelationships.mjs";
48
- export * from "./WebhookUserOfferAttributes.mjs";
49
- export * from "./WebhookUserOfferData.mjs";
50
- export * from "./WebhookUserOfferRelationships.mjs";
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.mjs";
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.mjs";
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,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** 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. */
3
+ export const FileUploadType = {
4
+ IncomingTransactionsFile: "incomingTransactionsFile",
5
+ HistoricalTransactionsFile: "historicalTransactionsFile",
6
+ };
@@ -1,6 +1,6 @@
1
1
  import type * as KardApi from "../../../index.mjs";
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.mjs";
17
17
  export * from "./CreateFileUploadRequestBody.mjs";
18
18
  export * from "./CreateFileUploadUrlResponse.mjs";
19
19
  export * from "./DirectionType.mjs";
20
+ export * from "./FileUploadType.mjs";
20
21
  export * from "./FileUploadUrlAttributes.mjs";
21
22
  export * from "./FileUploadUrlData.mjs";
22
23
  export * from "./FraudulentTransactionAttributes.mjs";
@@ -17,6 +17,7 @@ export * from "./CreateFileUploadData.mjs";
17
17
  export * from "./CreateFileUploadRequestBody.mjs";
18
18
  export * from "./CreateFileUploadUrlResponse.mjs";
19
19
  export * from "./DirectionType.mjs";
20
+ export * from "./FileUploadType.mjs";
20
21
  export * from "./FileUploadUrlAttributes.mjs";
21
22
  export * from "./FileUploadUrlData.mjs";
22
23
  export * from "./FraudulentTransactionAttributes.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.0.1";
1
+ export declare const SDK_VERSION = "12.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "11.0.1";
1
+ export const SDK_VERSION = "12.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "11.0.1",
3
+ "version": "12.1.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",
@@ -1,7 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface BrokerAmount {
3
- /** Type of amount */
4
- type: KardApi.BrokerAmountType;
5
- /** Amount value */
6
- value: number;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export declare const BrokerAmountType: {
2
- readonly Cents: "CENTS";
3
- };
4
- export type BrokerAmountType = (typeof BrokerAmountType)[keyof typeof BrokerAmountType];
@@ -1,7 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BrokerAmountType = void 0;
5
- exports.BrokerAmountType = {
6
- Cents: "CENTS",
7
- };
@@ -1,9 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface BrokerAsset {
3
- /** Type of asset */
4
- type: KardApi.BrokerAssetType;
5
- /** URL to the asset */
6
- url: string;
7
- /** Alt text for the asset */
8
- alt?: string;
9
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare const BrokerAssetType: {
2
- readonly LogoImage: "LOGO_IMAGE";
3
- readonly BannerImage: "BANNER_IMAGE";
4
- };
5
- export type BrokerAssetType = (typeof BrokerAssetType)[keyof typeof BrokerAssetType];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BrokerAssetType = void 0;
5
- exports.BrokerAssetType = {
6
- LogoImage: "LOGO_IMAGE",
7
- BannerImage: "BANNER_IMAGE",
8
- };
@@ -1,7 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface BrokerOperationHours {
3
- /** Operating hour periods by day of week */
4
- periods?: KardApi.BrokerOperationPeriod[];
5
- /** Human-readable description of operating hours */
6
- weekdayText: string[];
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface BrokerOperationPeriod {
3
- /** When the location opens */
4
- open: KardApi.TimePeriod;
5
- /** When the location closes */
6
- close: KardApi.TimePeriod;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare const BrokerPurchaseChannel: {
2
- readonly Instore: "INSTORE";
3
- readonly Online: "ONLINE";
4
- };
5
- export type BrokerPurchaseChannel = (typeof BrokerPurchaseChannel)[keyof typeof BrokerPurchaseChannel];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BrokerPurchaseChannel = void 0;
5
- exports.BrokerPurchaseChannel = {
6
- Instore: "INSTORE",
7
- Online: "ONLINE",
8
- };
@@ -1,7 +0,0 @@
1
- import type * as KardApi from "../../../index.js";
2
- export interface BrokerReward {
3
- /** Type of reward */
4
- type: KardApi.BrokerRewardType;
5
- /** Reward value */
6
- value: number;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare const BrokerRewardType: {
2
- readonly Percent: "PERCENT";
3
- readonly Flat: "FLAT";
4
- };
5
- export type BrokerRewardType = (typeof BrokerRewardType)[keyof typeof BrokerRewardType];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BrokerRewardType = void 0;
5
- exports.BrokerRewardType = {
6
- Percent: "PERCENT",
7
- Flat: "FLAT",
8
- };
@@ -1,10 +0,0 @@
1
- export interface LocationAddress {
2
- /** The street address */
3
- street: string;
4
- /** The city */
5
- city: string;
6
- /** The state or province */
7
- state: string;
8
- /** The postal or ZIP code */
9
- zipCode: string;
10
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface LocationCoordinates {
2
- /** The longitude coordinate */
3
- longitude: number;
4
- /** The latitude coordinate */
5
- latitude: number;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export declare const LocationStatus: {
2
- readonly Active: "ACTIVE";
3
- readonly Inactive: "INACTIVE";
4
- };
5
- export type LocationStatus = (typeof LocationStatus)[keyof typeof LocationStatus];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LocationStatus = void 0;
5
- exports.LocationStatus = {
6
- Active: "ACTIVE",
7
- Inactive: "INACTIVE",
8
- };
@@ -1,5 +0,0 @@
1
- export declare const MerchantSource: {
2
- readonly National: "NATIONAL";
3
- readonly Local: "LOCAL";
4
- };
5
- export type MerchantSource = (typeof MerchantSource)[keyof typeof MerchantSource];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MerchantSource = void 0;
5
- exports.MerchantSource = {
6
- National: "NATIONAL",
7
- Local: "LOCAL",
8
- };
@@ -1,5 +0,0 @@
1
- export declare const OfferStatus: {
2
- readonly Inactive: "INACTIVE";
3
- readonly Active: "ACTIVE";
4
- };
5
- export type OfferStatus = (typeof OfferStatus)[keyof typeof OfferStatus];
@@ -1,8 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.OfferStatus = void 0;
5
- exports.OfferStatus = {
6
- Inactive: "INACTIVE",
7
- Active: "ACTIVE",
8
- };
@@ -1,4 +0,0 @@
1
- export declare const OfferType: {
2
- readonly StandardOffer: "standardOffer";
3
- };
4
- export type OfferType = (typeof OfferType)[keyof typeof OfferType];
@@ -1,7 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.OfferType = void 0;
5
- exports.OfferType = {
6
- StandardOffer: "standardOffer",
7
- };
@@ -1,6 +0,0 @@
1
- export interface TimePeriod {
2
- /** Day of week (0=Sunday, 1=Monday, etc.) */
3
- day: number;
4
- /** Time in 24-hour format (e.g. "0900" for 9:00 AM) */
5
- time: string;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });