tremendous 4.7.0 → 4.9.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.7.0"
2
+ ".": "4.9.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.9.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.8.0...tremendous-v4.9.0) (2026-04-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * add `currency_code` to balance transactions ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
9
+ * add `currency_code` to order payment details ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
10
+ * add `currency_code` to payment refund details ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
11
+ * add `currency_code` to organizations ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
12
+ * add `currency_code` to create organization request ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
13
+ * add `currency_code` to funding source meta ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
14
+ * add `currency_code` to topups ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
15
+ * add `currency_code` to fraud review related rewards ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
16
+ * add `fee_charged_to` enum to campaigns ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
17
+ * add `available_amount`, `pending_amount`, `credit_limit_amount` to funding source meta ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
18
+ * add `instant_credit_amount`, `settled_amount`, `expected_settlement_at` to topups ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
19
+ * add `partially_credited` topup status ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * make recipient `name` field nullable ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
25
+ ## [4.8.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.7.0...tremendous-v4.8.0) (2026-04-17)
26
+
27
+
28
+ ### Features
29
+
30
+ * add `currency_code` field to invoices ([a8cc7b6](https://github.com/tremendous-rewards/tremendous-node/commit/a8cc7b6de752f0d6bc10af1ac5d2140501647de2))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * deprecate `currency` field on invoices ([a8cc7b6](https://github.com/tremendous-rewards/tremendous-node/commit/a8cc7b6de752f0d6bc10af1ac5d2140501647de2))
36
+
3
37
  ## [4.7.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.6.0...tremendous-v4.7.0) (2026-04-16)
4
38
 
5
39
 
package/dist/api.d.ts CHANGED
@@ -79,13 +79,19 @@ export interface BalanceTransaction {
79
79
  */
80
80
  'created_at': string;
81
81
  /**
82
- * Amount of the transaction in USD
82
+ * Amount of the transaction, denominated in `currency_code`.
83
83
  * @type {number}
84
84
  * @memberof BalanceTransaction
85
85
  */
86
86
  'amount': number;
87
87
  /**
88
- * The updated total after the transaction. Note that this running balance may be delayed and contain `null`.
88
+ * Currency of the transaction amount and running balance. Always matches the organization\'s currency.
89
+ * @type {string}
90
+ * @memberof BalanceTransaction
91
+ */
92
+ 'currency_code': string;
93
+ /**
94
+ * The updated total after the transaction, denominated in `currency_code`. Note that this running balance may be delayed and contain `null`.
89
95
  * @type {number}
90
96
  * @memberof BalanceTransaction
91
97
  */
@@ -141,29 +147,35 @@ export interface BalanceTransactionOrder {
141
147
  */
142
148
  export interface BalanceTransactionOrderPayment {
143
149
  /**
144
- * Total price of the order before fees (in USD)
150
+ * Total price of the order before fees, denominated in `currency_code`.
145
151
  * @type {number}
146
152
  * @memberof BalanceTransactionOrderPayment
147
153
  */
148
154
  'subtotal': number;
149
155
  /**
150
- * Total price of the order including fees (in USD)
156
+ * Total price of the order including fees, denominated in `currency_code`.
151
157
  * @type {number}
152
158
  * @memberof BalanceTransactionOrderPayment
153
159
  */
154
160
  'total': number;
155
161
  /**
156
- * Fees for the order (in USD)
162
+ * Fees for the order, denominated in `currency_code`.
157
163
  * @type {number}
158
164
  * @memberof BalanceTransactionOrderPayment
159
165
  */
160
166
  'fees': number;
161
167
  /**
162
- * Discount for the order (in USD)
168
+ * Discount for the order, denominated in `currency_code`.
163
169
  * @type {number}
164
170
  * @memberof BalanceTransactionOrderPayment
165
171
  */
166
172
  'discount': number;
173
+ /**
174
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
175
+ * @type {string}
176
+ * @memberof BalanceTransactionOrderPayment
177
+ */
178
+ 'currency_code': string;
167
179
  /**
168
180
  *
169
181
  * @type {PaymentDetailsRefund}
@@ -220,6 +232,12 @@ export interface Campaign {
220
232
  * @memberof Campaign
221
233
  */
222
234
  'products': Array<string>;
235
+ /**
236
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
237
+ * @type {string}
238
+ * @memberof Campaign
239
+ */
240
+ 'fee_charged_to'?: CampaignFeeChargedToEnum | null;
223
241
  /**
224
242
  *
225
243
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -233,6 +251,11 @@ export interface Campaign {
233
251
  */
234
252
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
235
253
  }
254
+ export declare const CampaignFeeChargedToEnum: {
255
+ readonly Sender: "SENDER";
256
+ readonly Recipient: "RECIPIENT";
257
+ };
258
+ export type CampaignFeeChargedToEnum = typeof CampaignFeeChargedToEnum[keyof typeof CampaignFeeChargedToEnum];
236
259
  /**
237
260
  * With a campaign you can define the look & feel of how rewards are sent out. It also lets you set the available products (different gift cards, charity, etc.) recipients can choose from.
238
261
  * @export
@@ -263,6 +286,12 @@ export interface CampaignBase {
263
286
  * @memberof CampaignBase
264
287
  */
265
288
  'products'?: Array<string>;
289
+ /**
290
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
291
+ * @type {string}
292
+ * @memberof CampaignBase
293
+ */
294
+ 'fee_charged_to'?: CampaignBaseFeeChargedToEnum | null;
266
295
  /**
267
296
  *
268
297
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -276,6 +305,11 @@ export interface CampaignBase {
276
305
  */
277
306
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
278
307
  }
308
+ export declare const CampaignBaseFeeChargedToEnum: {
309
+ readonly Sender: "SENDER";
310
+ readonly Recipient: "RECIPIENT";
311
+ };
312
+ export type CampaignBaseFeeChargedToEnum = typeof CampaignBaseFeeChargedToEnum[keyof typeof CampaignBaseFeeChargedToEnum];
279
313
  /**
280
314
  * Name of the channel in which the order was created
281
315
  * @export
@@ -487,6 +521,12 @@ export interface ConnectedOrganizationOrganization {
487
521
  * @memberof ConnectedOrganizationOrganization
488
522
  */
489
523
  'website': string;
524
+ /**
525
+ * Currency used for this organization\'s balances, orders, and transactions.
526
+ * @type {string}
527
+ * @memberof ConnectedOrganizationOrganization
528
+ */
529
+ 'currency_code'?: string;
490
530
  /**
491
531
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
492
532
  * @type {string}
@@ -556,6 +596,12 @@ export interface CreateCampaignRequest {
556
596
  * @memberof CreateCampaignRequest
557
597
  */
558
598
  'products': Array<string>;
599
+ /**
600
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
601
+ * @type {string}
602
+ * @memberof CreateCampaignRequest
603
+ */
604
+ 'fee_charged_to'?: CreateCampaignRequestFeeChargedToEnum | null;
559
605
  /**
560
606
  *
561
607
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -569,6 +615,11 @@ export interface CreateCampaignRequest {
569
615
  */
570
616
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
571
617
  }
618
+ export declare const CreateCampaignRequestFeeChargedToEnum: {
619
+ readonly Sender: "SENDER";
620
+ readonly Recipient: "RECIPIENT";
621
+ };
622
+ export type CreateCampaignRequestFeeChargedToEnum = typeof CreateCampaignRequestFeeChargedToEnum[keyof typeof CreateCampaignRequestFeeChargedToEnum];
572
623
  /**
573
624
  *
574
625
  * @export
@@ -962,7 +1013,7 @@ export interface CreateOrder200ResponseOrder {
962
1013
  */
963
1014
  'campaign_id'?: string | null;
964
1015
  /**
965
- * Date the order has been created
1016
+ * Date the order was created
966
1017
  * @type {string}
967
1018
  * @memberof CreateOrder200ResponseOrder
968
1019
  */
@@ -1165,6 +1216,12 @@ export interface CreateOrganization {
1165
1216
  * @memberof CreateOrganization
1166
1217
  */
1167
1218
  'phone'?: string;
1219
+ /**
1220
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1221
+ * @type {string}
1222
+ * @memberof CreateOrganization
1223
+ */
1224
+ 'currency_code'?: string;
1168
1225
  /**
1169
1226
  * Timestamp of when the organization has been created.
1170
1227
  * @type {string}
@@ -1221,6 +1278,12 @@ export interface CreateOrganization200ResponseOrganization {
1221
1278
  * @memberof CreateOrganization200ResponseOrganization
1222
1279
  */
1223
1280
  'phone'?: string | null;
1281
+ /**
1282
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1283
+ * @type {string}
1284
+ * @memberof CreateOrganization200ResponseOrganization
1285
+ */
1286
+ 'currency_code'?: string;
1224
1287
  /**
1225
1288
  * Timestamp of when the organization has been created.
1226
1289
  * @type {string}
@@ -1276,6 +1339,12 @@ export interface CreateOrganizationForResponse {
1276
1339
  * @memberof CreateOrganizationForResponse
1277
1340
  */
1278
1341
  'phone'?: string | null;
1342
+ /**
1343
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1344
+ * @type {string}
1345
+ * @memberof CreateOrganizationForResponse
1346
+ */
1347
+ 'currency_code'?: string;
1279
1348
  /**
1280
1349
  * Timestamp of when the organization has been created.
1281
1350
  * @type {string}
@@ -1325,6 +1394,12 @@ export interface CreateOrganizationProperties {
1325
1394
  * @memberof CreateOrganizationProperties
1326
1395
  */
1327
1396
  'phone'?: string;
1397
+ /**
1398
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1399
+ * @type {string}
1400
+ * @memberof CreateOrganizationProperties
1401
+ */
1402
+ 'currency_code'?: string;
1328
1403
  /**
1329
1404
  * Timestamp of when the organization has been created.
1330
1405
  * @type {string}
@@ -1368,6 +1443,12 @@ export interface CreateOrganizationRequest {
1368
1443
  * @memberof CreateOrganizationRequest
1369
1444
  */
1370
1445
  'phone'?: string;
1446
+ /**
1447
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1448
+ * @type {string}
1449
+ * @memberof CreateOrganizationRequest
1450
+ */
1451
+ 'currency_code'?: string;
1371
1452
  }
1372
1453
  /**
1373
1454
  * A list of the settings that you wish to copy over to the new organization.
@@ -1686,7 +1767,7 @@ export interface CreateTopupRequest {
1686
1767
  */
1687
1768
  'idempotency_key': string;
1688
1769
  /**
1689
- * Amount in USD intended to be added to your organizations balance.
1770
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
1690
1771
  * @type {number}
1691
1772
  * @memberof CreateTopupRequest
1692
1773
  */
@@ -2138,7 +2219,7 @@ export interface FraudConfigIP {
2138
2219
  */
2139
2220
  export interface FraudConfigRedeemedRewardsAmount {
2140
2221
  /**
2141
- * The total amount in USD of redeemed rewards to use as a threshold.
2222
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
2142
2223
  * @type {number}
2143
2224
  * @memberof FraudConfigRedeemedRewardsAmount
2144
2225
  */
@@ -2293,10 +2374,10 @@ export interface FraudReview {
2293
2374
  'risk'?: FraudReviewRiskEnum;
2294
2375
  /**
2295
2376
  *
2296
- * @type {GetFraudReview200ResponseFraudReviewRelatedRewards}
2377
+ * @type {FraudReviewRelatedRewards}
2297
2378
  * @memberof FraudReview
2298
2379
  */
2299
- 'related_rewards'?: GetFraudReview200ResponseFraudReviewRelatedRewards;
2380
+ 'related_rewards'?: FraudReviewRelatedRewards;
2300
2381
  }
2301
2382
  export declare const FraudReviewStatusEnum: {
2302
2383
  readonly Flagged: "flagged";
@@ -2632,7 +2713,7 @@ export declare const FraudReviewRedemptionMethod: {
2632
2713
  };
2633
2714
  export type FraudReviewRedemptionMethod = typeof FraudReviewRedemptionMethod[keyof typeof FraudReviewRedemptionMethod];
2634
2715
  /**
2635
- *
2716
+ * The related rewards associated with the fraud review.
2636
2717
  * @export
2637
2718
  * @interface FraudReviewRelatedRewards
2638
2719
  */
@@ -2656,11 +2737,17 @@ export interface FraudReviewRelatedRewards {
2656
2737
  */
2657
2738
  'blocked_count'?: number;
2658
2739
  /**
2659
- * Total amount claimed by the related rewards (in USD).
2740
+ * Total amount claimed by the related rewards, denominated in `currency_code`.
2660
2741
  * @type {number}
2661
2742
  * @memberof FraudReviewRelatedRewards
2662
2743
  */
2663
2744
  'aggregated_value'?: number;
2745
+ /**
2746
+ * Currency of the aggregated value. Always matches the organization\'s currency.
2747
+ * @type {string}
2748
+ * @memberof FraudReviewRelatedRewards
2749
+ */
2750
+ 'currency_code'?: string;
2664
2751
  }
2665
2752
  /**
2666
2753
  * The fraud risk associated with the reward.
@@ -2785,7 +2872,7 @@ export interface FraudRuleRequestConfig {
2785
2872
  */
2786
2873
  'domains'?: Array<string>;
2787
2874
  /**
2788
- * The total amount in USD of redeemed rewards to use as a threshold.
2875
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
2789
2876
  * @type {number}
2790
2877
  * @memberof FraudRuleRequestConfig
2791
2878
  */
@@ -2812,7 +2899,7 @@ export declare const FraudRuleRequestConfigPeriodEnum: {
2812
2899
  };
2813
2900
  export type FraudRuleRequestConfigPeriodEnum = typeof FraudRuleRequestConfigPeriodEnum[keyof typeof FraudRuleRequestConfigPeriodEnum];
2814
2901
  /**
2815
- * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
2902
+ * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config. The amount is denominated in the organization\'s currency. * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
2816
2903
  * @export
2817
2904
  * @enum {string}
2818
2905
  */
@@ -2837,7 +2924,7 @@ export type FraudRuleType = typeof FraudRuleType[keyof typeof FraudRuleType];
2837
2924
  */
2838
2925
  export interface FraudRulesListItem {
2839
2926
  /**
2840
- * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
2927
+ * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config. The amount is denominated in the organization\'s currency. * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
2841
2928
  * @type {string}
2842
2929
  * @memberof FraudRulesListItem
2843
2930
  */
@@ -3148,11 +3235,17 @@ export interface GetFraudReview200ResponseFraudReviewRelatedRewards {
3148
3235
  */
3149
3236
  'blocked_count'?: number;
3150
3237
  /**
3151
- * Total amount claimed by the related rewards (in USD).
3238
+ * Total amount claimed by the related rewards, denominated in `currency_code`.
3152
3239
  * @type {number}
3153
3240
  * @memberof GetFraudReview200ResponseFraudReviewRelatedRewards
3154
3241
  */
3155
3242
  'aggregated_value'?: number;
3243
+ /**
3244
+ * Currency of the aggregated value. Always matches the organization\'s currency.
3245
+ * @type {string}
3246
+ * @memberof GetFraudReview200ResponseFraudReviewRelatedRewards
3247
+ */
3248
+ 'currency_code'?: string;
3156
3249
  }
3157
3250
  /**
3158
3251
  *
@@ -3396,6 +3489,13 @@ export interface Invoice {
3396
3489
  * @type {string}
3397
3490
  * @memberof Invoice
3398
3491
  */
3492
+ 'currency_code'?: InvoiceCurrencyCodeEnum;
3493
+ /**
3494
+ * Deprecated: Use `currency_code` instead.
3495
+ * @type {string}
3496
+ * @memberof Invoice
3497
+ * @deprecated
3498
+ */
3399
3499
  'currency'?: InvoiceCurrencyEnum;
3400
3500
  /**
3401
3501
  *
@@ -3434,6 +3534,12 @@ export interface Invoice {
3434
3534
  */
3435
3535
  'paid_at': string | null;
3436
3536
  }
3537
+ export declare const InvoiceCurrencyCodeEnum: {
3538
+ readonly Usd: "USD";
3539
+ readonly Eur: "EUR";
3540
+ readonly Gbp: "GBP";
3541
+ };
3542
+ export type InvoiceCurrencyCodeEnum = typeof InvoiceCurrencyCodeEnum[keyof typeof InvoiceCurrencyCodeEnum];
3437
3543
  export declare const InvoiceCurrencyEnum: {
3438
3544
  readonly Usd: "USD";
3439
3545
  readonly Eur: "EUR";
@@ -3473,13 +3579,19 @@ export interface ListBalanceTransactions200ResponseTransactionsInner {
3473
3579
  */
3474
3580
  'created_at': string;
3475
3581
  /**
3476
- * Amount of the transaction in USD
3582
+ * Amount of the transaction, denominated in `currency_code`.
3477
3583
  * @type {number}
3478
3584
  * @memberof ListBalanceTransactions200ResponseTransactionsInner
3479
3585
  */
3480
3586
  'amount': number;
3481
3587
  /**
3482
- * The updated total after the transaction. Note that this running balance may be delayed and contain `null`.
3588
+ * Currency of the transaction amount and running balance. Always matches the organization\'s currency.
3589
+ * @type {string}
3590
+ * @memberof ListBalanceTransactions200ResponseTransactionsInner
3591
+ */
3592
+ 'currency_code': string;
3593
+ /**
3594
+ * The updated total after the transaction, denominated in `currency_code`. Note that this running balance may be delayed and contain `null`.
3483
3595
  * @type {number}
3484
3596
  * @memberof ListBalanceTransactions200ResponseTransactionsInner
3485
3597
  */
@@ -3535,29 +3647,35 @@ export interface ListBalanceTransactions200ResponseTransactionsInnerOrder {
3535
3647
  */
3536
3648
  export interface ListBalanceTransactions200ResponseTransactionsInnerOrderPayment {
3537
3649
  /**
3538
- * Total price of the order before fees (in USD)
3650
+ * Total price of the order before fees, denominated in `currency_code`.
3539
3651
  * @type {number}
3540
3652
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3541
3653
  */
3542
3654
  'subtotal': number;
3543
3655
  /**
3544
- * Total price of the order including fees (in USD)
3656
+ * Total price of the order including fees, denominated in `currency_code`.
3545
3657
  * @type {number}
3546
3658
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3547
3659
  */
3548
3660
  'total': number;
3549
3661
  /**
3550
- * Fees for the order (in USD)
3662
+ * Fees for the order, denominated in `currency_code`.
3551
3663
  * @type {number}
3552
3664
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3553
3665
  */
3554
3666
  'fees': number;
3555
3667
  /**
3556
- * Discount for the order (in USD)
3668
+ * Discount for the order, denominated in `currency_code`.
3557
3669
  * @type {number}
3558
3670
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3559
3671
  */
3560
3672
  'discount': number;
3673
+ /**
3674
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
3675
+ * @type {string}
3676
+ * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3677
+ */
3678
+ 'currency_code': string;
3561
3679
  /**
3562
3680
  *
3563
3681
  * @type {ListOrders200ResponseOrdersInnerPaymentRefund}
@@ -3608,6 +3726,12 @@ export interface ListCampaigns200ResponseCampaignsInner {
3608
3726
  * @memberof ListCampaigns200ResponseCampaignsInner
3609
3727
  */
3610
3728
  'products': Array<string>;
3729
+ /**
3730
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
3731
+ * @type {string}
3732
+ * @memberof ListCampaigns200ResponseCampaignsInner
3733
+ */
3734
+ 'fee_charged_to'?: ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum | null;
3611
3735
  /**
3612
3736
  *
3613
3737
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -3621,6 +3745,11 @@ export interface ListCampaigns200ResponseCampaignsInner {
3621
3745
  */
3622
3746
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
3623
3747
  }
3748
+ export declare const ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum: {
3749
+ readonly Sender: "SENDER";
3750
+ readonly Recipient: "RECIPIENT";
3751
+ };
3752
+ export type ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = typeof ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum[keyof typeof ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum];
3624
3753
  /**
3625
3754
  * Definition of the email style
3626
3755
  * @export
@@ -3903,6 +4032,12 @@ export interface ListConnectedOrganizations200ResponseConnectedOrganizationsInne
3903
4032
  * @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization
3904
4033
  */
3905
4034
  'website': string;
4035
+ /**
4036
+ * Currency used for this organization\'s balances, orders, and transactions.
4037
+ * @type {string}
4038
+ * @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization
4039
+ */
4040
+ 'currency_code'?: string;
3906
4041
  /**
3907
4042
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
3908
4043
  * @type {string}
@@ -4199,7 +4334,7 @@ export interface ListFraudRules200Response {
4199
4334
  */
4200
4335
  export interface ListFraudRules200ResponseFraudRulesInner {
4201
4336
  /**
4202
- * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
4337
+ * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config. The amount is denominated in the organization\'s currency. * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
4203
4338
  * @type {string}
4204
4339
  * @memberof ListFraudRules200ResponseFraudRulesInner
4205
4340
  */
@@ -4315,19 +4450,43 @@ export type ListFundingSources200ResponseFundingSourcesInnerTypeEnum = typeof Li
4315
4450
  */
4316
4451
  export interface ListFundingSources200ResponseFundingSourcesInnerMeta {
4317
4452
  /**
4318
- * **Only exists for balance and commercial invoicing.** For balance: available amount (in cents USD) For commercial invoicing: available credit amount calculated as (credit limit - outstanding balance) (in cents USD) *Caution: In the \"list funding sources\" endpoint this value is cached and may not be up to date. Use the \"get funding source\" endpoint to get the most up to date value.*
4453
+ * **Only exists for balance and commercial invoicing.** For balance: available amount denominated in `currency_code`. For commercial invoicing: available credit amount denominated in `currency_code`, calculated as (credit limit - outstanding balance). *Caution: In the \"list funding sources\" endpoint this value is cached and may not be up to date. Use the \"get funding source\" endpoint to get the most up to date value.*
4454
+ * @type {number}
4455
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4456
+ */
4457
+ 'available_amount'?: number;
4458
+ /**
4459
+ * Same as `available_amount`, but in cents.
4319
4460
  * @type {number}
4320
4461
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4321
4462
  */
4322
4463
  'available_cents'?: number;
4323
4464
  /**
4324
- * **Only available when `method` is set to `balance`.** Funds that are already registered on your Tremendous account but which have not yet been deposited in your account (e.g. payments that need to be manually reviewed by our ops team) (in Cents USD).
4465
+ * **Only exists for balance and commercial invoicing.** The currency of the balance or credit amounts (e.g. `available_amount`, `pending_amount`, `credit_limit_amount`). Always matches the organization\'s currency.
4466
+ * @type {string}
4467
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4468
+ */
4469
+ 'currency_code'?: string;
4470
+ /**
4471
+ * **Only available when `method` is set to `balance`.** Funds registered on your Tremendous account but not yet deposited in your account (e.g. payments that need to be manually reviewed by our ops team). Denominated in `currency_code`.
4472
+ * @type {number}
4473
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4474
+ */
4475
+ 'pending_amount'?: number;
4476
+ /**
4477
+ * Same as `pending_amount`, but in cents.
4325
4478
  * @type {number}
4326
4479
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4327
4480
  */
4328
4481
  'pending_cents'?: number;
4329
4482
  /**
4330
- * **Only exists for commercial invoicing.** Available credit limit (in cents USD)
4483
+ * **Only exists for commercial invoicing.** Available credit limit denominated in `currency_code`.
4484
+ * @type {number}
4485
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4486
+ */
4487
+ 'credit_limit_amount'?: number;
4488
+ /**
4489
+ * Same as `credit_limit_amount`, but in cents.
4331
4490
  * @type {number}
4332
4491
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4333
4492
  */
@@ -4568,6 +4727,13 @@ export interface ListInvoices200ResponseInvoicesInner {
4568
4727
  * @type {string}
4569
4728
  * @memberof ListInvoices200ResponseInvoicesInner
4570
4729
  */
4730
+ 'currency_code'?: ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum;
4731
+ /**
4732
+ * Deprecated: Use `currency_code` instead.
4733
+ * @type {string}
4734
+ * @memberof ListInvoices200ResponseInvoicesInner
4735
+ * @deprecated
4736
+ */
4571
4737
  'currency'?: ListInvoices200ResponseInvoicesInnerCurrencyEnum;
4572
4738
  /**
4573
4739
  *
@@ -4606,6 +4772,12 @@ export interface ListInvoices200ResponseInvoicesInner {
4606
4772
  */
4607
4773
  'paid_at': string | null;
4608
4774
  }
4775
+ export declare const ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum: {
4776
+ readonly Usd: "USD";
4777
+ readonly Eur: "EUR";
4778
+ readonly Gbp: "GBP";
4779
+ };
4780
+ export type ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum = typeof ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum[keyof typeof ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum];
4609
4781
  export declare const ListInvoices200ResponseInvoicesInnerCurrencyEnum: {
4610
4782
  readonly Usd: "USD";
4611
4783
  readonly Eur: "EUR";
@@ -4736,7 +4908,7 @@ export interface ListOrders200ResponseOrdersInner {
4736
4908
  */
4737
4909
  'campaign_id'?: string | null;
4738
4910
  /**
4739
- * Date the order has been created
4911
+ * Date the order was created
4740
4912
  * @type {string}
4741
4913
  * @memberof ListOrders200ResponseOrdersInner
4742
4914
  */
@@ -4794,35 +4966,41 @@ export declare const ListOrders200ResponseOrdersInnerChannelEnum: {
4794
4966
  };
4795
4967
  export type ListOrders200ResponseOrdersInnerChannelEnum = typeof ListOrders200ResponseOrdersInnerChannelEnum[keyof typeof ListOrders200ResponseOrdersInnerChannelEnum];
4796
4968
  /**
4797
- * Cost breakdown of the order (cost of rewards + fees). Cost and fees are always denominated in USD, independent from the currency of the ordered rewards. Note that this property will only appear for processed orders (`status` is `EXECUTED`).
4969
+ * Cost breakdown of the order (cost of rewards + fees). Cost and fees are denominated in the organization\'s currency (see payment `currency_code`), independent of the ordered rewards\' currency. Note that this property will only appear for processed orders (`status` is `EXECUTED`).
4798
4970
  * @export
4799
4971
  * @interface ListOrders200ResponseOrdersInnerPayment
4800
4972
  */
4801
4973
  export interface ListOrders200ResponseOrdersInnerPayment {
4802
4974
  /**
4803
- * Total price of the order before fees (in USD)
4975
+ * Total price of the order before fees, denominated in `currency_code`.
4804
4976
  * @type {number}
4805
4977
  * @memberof ListOrders200ResponseOrdersInnerPayment
4806
4978
  */
4807
4979
  'subtotal': number;
4808
4980
  /**
4809
- * Total price of the order including fees (in USD)
4981
+ * Total price of the order including fees, denominated in `currency_code`.
4810
4982
  * @type {number}
4811
4983
  * @memberof ListOrders200ResponseOrdersInnerPayment
4812
4984
  */
4813
4985
  'total': number;
4814
4986
  /**
4815
- * Fees for the order (in USD)
4987
+ * Fees for the order, denominated in `currency_code`.
4816
4988
  * @type {number}
4817
4989
  * @memberof ListOrders200ResponseOrdersInnerPayment
4818
4990
  */
4819
4991
  'fees': number;
4820
4992
  /**
4821
- * Discount for the order (in USD)
4993
+ * Discount for the order, denominated in `currency_code`.
4822
4994
  * @type {number}
4823
4995
  * @memberof ListOrders200ResponseOrdersInnerPayment
4824
4996
  */
4825
4997
  'discount': number;
4998
+ /**
4999
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
5000
+ * @type {string}
5001
+ * @memberof ListOrders200ResponseOrdersInnerPayment
5002
+ */
5003
+ 'currency_code': string;
4826
5004
  /**
4827
5005
  *
4828
5006
  * @type {ListOrders200ResponseOrdersInnerPaymentRefund}
@@ -4831,17 +5009,23 @@ export interface ListOrders200ResponseOrdersInnerPayment {
4831
5009
  'refund'?: ListOrders200ResponseOrdersInnerPaymentRefund;
4832
5010
  }
4833
5011
  /**
4834
- * Breakdown of the order refunds (total amount in USD, independent from the currency of the ordered rewards). Note that this property will only appear for canceled orders or orders with canceled rewards.
5012
+ * Breakdown of the order refunds (total denominated in `currency_code`, independent of the ordered rewards\' currency). Note that this property will only appear for canceled orders or orders with canceled rewards.
4835
5013
  * @export
4836
5014
  * @interface ListOrders200ResponseOrdersInnerPaymentRefund
4837
5015
  */
4838
5016
  export interface ListOrders200ResponseOrdersInnerPaymentRefund {
4839
5017
  /**
4840
- * Total amount of the order refunds (in USD)
5018
+ * Total amount of the order refunds, denominated in `currency_code`.
4841
5019
  * @type {number}
4842
5020
  * @memberof ListOrders200ResponseOrdersInnerPaymentRefund
4843
5021
  */
4844
5022
  'total': number;
5023
+ /**
5024
+ * Currency of the refund. Always matches the organization\'s currency.
5025
+ * @type {string}
5026
+ * @memberof ListOrders200ResponseOrdersInnerPaymentRefund
5027
+ */
5028
+ 'currency_code': string;
4845
5029
  }
4846
5030
  /**
4847
5031
  *
@@ -4880,6 +5064,12 @@ export interface ListOrganizations200ResponseOrganizationsInner {
4880
5064
  * @memberof ListOrganizations200ResponseOrganizationsInner
4881
5065
  */
4882
5066
  'website': string;
5067
+ /**
5068
+ * Currency used for this organization\'s balances, orders, and transactions.
5069
+ * @type {string}
5070
+ * @memberof ListOrganizations200ResponseOrganizationsInner
5071
+ */
5072
+ 'currency_code'?: string;
4883
5073
  /**
4884
5074
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
4885
5075
  * @type {string}
@@ -5367,7 +5557,7 @@ export interface ListRewards200ResponseRewardsInnerRecipient {
5367
5557
  * @type {string}
5368
5558
  * @memberof ListRewards200ResponseRewardsInnerRecipient
5369
5559
  */
5370
- 'name'?: string;
5560
+ 'name'?: string | null;
5371
5561
  /**
5372
5562
  * Email address of the recipient
5373
5563
  * @type {string}
@@ -5643,11 +5833,17 @@ export interface ListTopups200ResponseTopupsInner {
5643
5833
  */
5644
5834
  'id'?: string;
5645
5835
  /**
5646
- * Amount in USD intended to be added to your organizations balance.
5836
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
5647
5837
  * @type {number}
5648
5838
  * @memberof ListTopups200ResponseTopupsInner
5649
5839
  */
5650
5840
  'amount'?: number;
5841
+ /**
5842
+ * Currency of the topup amount. Always matches the organization\'s currency.
5843
+ * @type {string}
5844
+ * @memberof ListTopups200ResponseTopupsInner
5845
+ */
5846
+ 'currency_code'?: string;
5651
5847
  /**
5652
5848
  * Amount of the processing fee for the topup (typically reserved for credit card topups).
5653
5849
  * @type {number}
@@ -5661,7 +5857,7 @@ export interface ListTopups200ResponseTopupsInner {
5661
5857
  */
5662
5858
  'funding_source_id'?: string;
5663
5859
  /**
5664
- * Status of the topup <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> created </code> </td> <td> The topup is processing (and may be under review). </td> </tr> <tr> <td> <code> fully_credited </code> </td> <td> The funds have been added to the balance. </td> </tr> <tr> <td> <code> reversed </code> </td> <td> The topup was credited, but then reversed due to a chargeback or ACH return. </td> </tr> <tr> <td> <code> rejected </code> </td> <td> The topup was rejected by an admin. </td> </tr> </tbody> </table>
5860
+ * Status of the topup <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> created </code> </td> <td> The topup is processing (and may be under review). </td> </tr> <tr> <td> <code> partially_credited </code> </td> <td> Some funds have been credited to the balance. The remainder will be credited by <code>expected_settlement_at</code>. </td> </tr> <tr> <td> <code> fully_credited </code> </td> <td> All funds have been added to the balance. </td> </tr> <tr> <td> <code> reversed </code> </td> <td> The topup was credited, but then reversed due to a chargeback or ACH return. </td> </tr> <tr> <td> <code> rejected </code> </td> <td> The topup was rejected by an admin. </td> </tr> </tbody> </table>
5665
5861
  * @type {string}
5666
5862
  * @memberof ListTopups200ResponseTopupsInner
5667
5863
  */
@@ -5702,6 +5898,24 @@ export interface ListTopups200ResponseTopupsInner {
5702
5898
  * @memberof ListTopups200ResponseTopupsInner
5703
5899
  */
5704
5900
  'idempotency_key'?: string | null;
5901
+ /**
5902
+ * Amount credited to the balance immediately. Equals `amount` for non-ACH topups or ACH debits fully within instant funding limits. Can be 0 if nothing was credited instantly.
5903
+ * @type {number}
5904
+ * @memberof ListTopups200ResponseTopupsInner
5905
+ */
5906
+ 'instant_credit_amount'?: number;
5907
+ /**
5908
+ * Amount that will be available once the settlement period elapses. 0 if nothing is settling.
5909
+ * @type {number}
5910
+ * @memberof ListTopups200ResponseTopupsInner
5911
+ */
5912
+ 'settled_amount'?: number;
5913
+ /**
5914
+ * Timestamp indicating when the pending amount will be credited to the balance. Null if the topup was fully credited immediately.
5915
+ * @type {string}
5916
+ * @memberof ListTopups200ResponseTopupsInner
5917
+ */
5918
+ 'expected_settlement_at'?: string | null;
5705
5919
  }
5706
5920
  /**
5707
5921
  *
@@ -6001,7 +6215,7 @@ export interface Order {
6001
6215
  */
6002
6216
  'campaign_id'?: string | null;
6003
6217
  /**
6004
- * Date the order has been created
6218
+ * Date the order was created
6005
6219
  * @type {string}
6006
6220
  * @memberof Order
6007
6221
  */
@@ -6083,7 +6297,7 @@ export interface OrderBase {
6083
6297
  */
6084
6298
  'campaign_id'?: string | null;
6085
6299
  /**
6086
- * Date the order has been created
6300
+ * Date the order was created
6087
6301
  * @type {string}
6088
6302
  * @memberof OrderBase
6089
6303
  */
@@ -6135,35 +6349,41 @@ export declare const OrderBaseChannelEnum: {
6135
6349
  };
6136
6350
  export type OrderBaseChannelEnum = typeof OrderBaseChannelEnum[keyof typeof OrderBaseChannelEnum];
6137
6351
  /**
6138
- * Cost breakdown of the order (cost of rewards + fees). Cost and fees are always denominated in USD, independent from the currency of the ordered rewards. Note that this property will only appear for processed orders (`status` is `EXECUTED`).
6352
+ * Cost breakdown of the order (cost of rewards + fees). Cost and fees are denominated in the organization\'s currency (see payment `currency_code`), independent of the ordered rewards\' currency. Note that this property will only appear for processed orders (`status` is `EXECUTED`).
6139
6353
  * @export
6140
6354
  * @interface OrderBasePayment
6141
6355
  */
6142
6356
  export interface OrderBasePayment {
6143
6357
  /**
6144
- * Total price of the order before fees (in USD)
6358
+ * Total price of the order before fees, denominated in `currency_code`.
6145
6359
  * @type {number}
6146
6360
  * @memberof OrderBasePayment
6147
6361
  */
6148
6362
  'subtotal': number;
6149
6363
  /**
6150
- * Total price of the order including fees (in USD)
6364
+ * Total price of the order including fees, denominated in `currency_code`.
6151
6365
  * @type {number}
6152
6366
  * @memberof OrderBasePayment
6153
6367
  */
6154
6368
  'total': number;
6155
6369
  /**
6156
- * Fees for the order (in USD)
6370
+ * Fees for the order, denominated in `currency_code`.
6157
6371
  * @type {number}
6158
6372
  * @memberof OrderBasePayment
6159
6373
  */
6160
6374
  'fees': number;
6161
6375
  /**
6162
- * Discount for the order (in USD)
6376
+ * Discount for the order, denominated in `currency_code`.
6163
6377
  * @type {number}
6164
6378
  * @memberof OrderBasePayment
6165
6379
  */
6166
6380
  'discount': number;
6381
+ /**
6382
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
6383
+ * @type {string}
6384
+ * @memberof OrderBasePayment
6385
+ */
6386
+ 'currency_code': string;
6167
6387
  /**
6168
6388
  *
6169
6389
  * @type {PaymentDetailsRefund}
@@ -6211,7 +6431,7 @@ export interface OrderWithLink {
6211
6431
  */
6212
6432
  'campaign_id'?: string | null;
6213
6433
  /**
6214
- * Date the order has been created
6434
+ * Date the order was created
6215
6435
  * @type {string}
6216
6436
  * @memberof OrderWithLink
6217
6437
  */
@@ -6366,7 +6586,7 @@ export interface OrderWithoutLink {
6366
6586
  */
6367
6587
  'campaign_id'?: string | null;
6368
6588
  /**
6369
- * Date the order has been created
6589
+ * Date the order was created
6370
6590
  * @type {string}
6371
6591
  * @memberof OrderWithoutLink
6372
6592
  */
@@ -6520,6 +6740,12 @@ export interface Organization {
6520
6740
  * @memberof Organization
6521
6741
  */
6522
6742
  'website': string;
6743
+ /**
6744
+ * Currency used for this organization\'s balances, orders, and transactions.
6745
+ * @type {string}
6746
+ * @memberof Organization
6747
+ */
6748
+ 'currency_code'?: string;
6523
6749
  /**
6524
6750
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
6525
6751
  * @type {string}
@@ -6546,29 +6772,35 @@ export type OrganizationStatusEnum = typeof OrganizationStatusEnum[keyof typeof
6546
6772
  */
6547
6773
  export interface PaymentDetails {
6548
6774
  /**
6549
- * Total price of the order before fees (in USD)
6775
+ * Total price of the order before fees, denominated in `currency_code`.
6550
6776
  * @type {number}
6551
6777
  * @memberof PaymentDetails
6552
6778
  */
6553
6779
  'subtotal': number;
6554
6780
  /**
6555
- * Total price of the order including fees (in USD)
6781
+ * Total price of the order including fees, denominated in `currency_code`.
6556
6782
  * @type {number}
6557
6783
  * @memberof PaymentDetails
6558
6784
  */
6559
6785
  'total': number;
6560
6786
  /**
6561
- * Fees for the order (in USD)
6787
+ * Fees for the order, denominated in `currency_code`.
6562
6788
  * @type {number}
6563
6789
  * @memberof PaymentDetails
6564
6790
  */
6565
6791
  'fees': number;
6566
6792
  /**
6567
- * Discount for the order (in USD)
6793
+ * Discount for the order, denominated in `currency_code`.
6568
6794
  * @type {number}
6569
6795
  * @memberof PaymentDetails
6570
6796
  */
6571
6797
  'discount': number;
6798
+ /**
6799
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
6800
+ * @type {string}
6801
+ * @memberof PaymentDetails
6802
+ */
6803
+ 'currency_code': string;
6572
6804
  /**
6573
6805
  *
6574
6806
  * @type {PaymentDetailsRefund}
@@ -6577,17 +6809,23 @@ export interface PaymentDetails {
6577
6809
  'refund'?: PaymentDetailsRefund;
6578
6810
  }
6579
6811
  /**
6580
- * Breakdown of the order refunds (total amount in USD, independent from the currency of the ordered rewards). Note that this property will only appear for canceled orders or orders with canceled rewards.
6812
+ * Breakdown of the order refunds (total denominated in `currency_code`, independent of the ordered rewards\' currency). Note that this property will only appear for canceled orders or orders with canceled rewards.
6581
6813
  * @export
6582
6814
  * @interface PaymentDetailsRefund
6583
6815
  */
6584
6816
  export interface PaymentDetailsRefund {
6585
6817
  /**
6586
- * Total amount of the order refunds (in USD)
6818
+ * Total amount of the order refunds, denominated in `currency_code`.
6587
6819
  * @type {number}
6588
6820
  * @memberof PaymentDetailsRefund
6589
6821
  */
6590
6822
  'total': number;
6823
+ /**
6824
+ * Currency of the refund. Always matches the organization\'s currency.
6825
+ * @type {string}
6826
+ * @memberof PaymentDetailsRefund
6827
+ */
6828
+ 'currency_code': string;
6591
6829
  }
6592
6830
  /**
6593
6831
  *
@@ -6903,7 +7141,7 @@ export interface Recipient {
6903
7141
  * @type {string}
6904
7142
  * @memberof Recipient
6905
7143
  */
6906
- 'name'?: string;
7144
+ 'name'?: string | null;
6907
7145
  /**
6908
7146
  * Email address of the recipient
6909
7147
  * @type {string}
@@ -6924,11 +7162,17 @@ export interface Recipient {
6924
7162
  */
6925
7163
  export interface RefundDetails {
6926
7164
  /**
6927
- * Total amount of the order refunds (in USD)
7165
+ * Total amount of the order refunds, denominated in `currency_code`.
6928
7166
  * @type {number}
6929
7167
  * @memberof RefundDetails
6930
7168
  */
6931
7169
  'total': number;
7170
+ /**
7171
+ * Currency of the refund. Always matches the organization\'s currency.
7172
+ * @type {string}
7173
+ * @memberof RefundDetails
7174
+ */
7175
+ 'currency_code': string;
6932
7176
  }
6933
7177
  /**
6934
7178
  * Reports represent a collection of your Tremendous data that can be filtered and downloaded. The report object that is returned has a unique ID, a status, and an predicted time of report generation completion. When the report generation is complete, it will also contain an expiring url where you can retrieve your report.
@@ -7120,7 +7364,7 @@ export interface ReviewIp1 {
7120
7364
  */
7121
7365
  export interface ReviewRedeemedRewardsAmount {
7122
7366
  /**
7123
- * The total amount in USD of redeemed rewards to use as a threshold.
7367
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
7124
7368
  * @type {number}
7125
7369
  * @memberof ReviewRedeemedRewardsAmount
7126
7370
  */
@@ -8044,7 +8288,7 @@ export interface SingleRewardOrderWithLinkOrder {
8044
8288
  */
8045
8289
  'campaign_id'?: string | null;
8046
8290
  /**
8047
- * Date the order has been created
8291
+ * Date the order was created
8048
8292
  * @type {string}
8049
8293
  * @memberof SingleRewardOrderWithLinkOrder
8050
8294
  */
@@ -8139,7 +8383,7 @@ export interface SingleRewardOrderWithoutLinkOrder {
8139
8383
  */
8140
8384
  'campaign_id'?: string | null;
8141
8385
  /**
8142
- * Date the order has been created
8386
+ * Date the order was created
8143
8387
  * @type {string}
8144
8388
  * @memberof SingleRewardOrderWithoutLinkOrder
8145
8389
  */
@@ -8209,11 +8453,17 @@ export interface Topup {
8209
8453
  */
8210
8454
  'id'?: string;
8211
8455
  /**
8212
- * Amount in USD intended to be added to your organizations balance.
8456
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
8213
8457
  * @type {number}
8214
8458
  * @memberof Topup
8215
8459
  */
8216
8460
  'amount'?: number;
8461
+ /**
8462
+ * Currency of the topup amount. Always matches the organization\'s currency.
8463
+ * @type {string}
8464
+ * @memberof Topup
8465
+ */
8466
+ 'currency_code'?: string;
8217
8467
  /**
8218
8468
  * Amount of the processing fee for the topup (typically reserved for credit card topups).
8219
8469
  * @type {number}
@@ -8227,7 +8477,7 @@ export interface Topup {
8227
8477
  */
8228
8478
  'funding_source_id'?: string;
8229
8479
  /**
8230
- * Status of the topup <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> created </code> </td> <td> The topup is processing (and may be under review). </td> </tr> <tr> <td> <code> fully_credited </code> </td> <td> The funds have been added to the balance. </td> </tr> <tr> <td> <code> reversed </code> </td> <td> The topup was credited, but then reversed due to a chargeback or ACH return. </td> </tr> <tr> <td> <code> rejected </code> </td> <td> The topup was rejected by an admin. </td> </tr> </tbody> </table>
8480
+ * Status of the topup <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> created </code> </td> <td> The topup is processing (and may be under review). </td> </tr> <tr> <td> <code> partially_credited </code> </td> <td> Some funds have been credited to the balance. The remainder will be credited by <code>expected_settlement_at</code>. </td> </tr> <tr> <td> <code> fully_credited </code> </td> <td> All funds have been added to the balance. </td> </tr> <tr> <td> <code> reversed </code> </td> <td> The topup was credited, but then reversed due to a chargeback or ACH return. </td> </tr> <tr> <td> <code> rejected </code> </td> <td> The topup was rejected by an admin. </td> </tr> </tbody> </table>
8231
8481
  * @type {string}
8232
8482
  * @memberof Topup
8233
8483
  */
@@ -8268,6 +8518,24 @@ export interface Topup {
8268
8518
  * @memberof Topup
8269
8519
  */
8270
8520
  'idempotency_key'?: string | null;
8521
+ /**
8522
+ * Amount credited to the balance immediately. Equals `amount` for non-ACH topups or ACH debits fully within instant funding limits. Can be 0 if nothing was credited instantly.
8523
+ * @type {number}
8524
+ * @memberof Topup
8525
+ */
8526
+ 'instant_credit_amount'?: number;
8527
+ /**
8528
+ * Amount that will be available once the settlement period elapses. 0 if nothing is settling.
8529
+ * @type {number}
8530
+ * @memberof Topup
8531
+ */
8532
+ 'settled_amount'?: number;
8533
+ /**
8534
+ * Timestamp indicating when the pending amount will be credited to the balance. Null if the topup was fully credited immediately.
8535
+ * @type {string}
8536
+ * @memberof Topup
8537
+ */
8538
+ 'expected_settlement_at'?: string | null;
8271
8539
  }
8272
8540
  /**
8273
8541
  *
@@ -8288,7 +8556,7 @@ export interface TopupCreateRequest {
8288
8556
  */
8289
8557
  'idempotency_key': string;
8290
8558
  /**
8291
- * Amount in USD intended to be added to your organizations balance.
8559
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
8292
8560
  * @type {number}
8293
8561
  * @memberof TopupCreateRequest
8294
8562
  */
@@ -8324,6 +8592,12 @@ export interface UpdateCampaign {
8324
8592
  * @memberof UpdateCampaign
8325
8593
  */
8326
8594
  'products'?: Array<string>;
8595
+ /**
8596
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
8597
+ * @type {string}
8598
+ * @memberof UpdateCampaign
8599
+ */
8600
+ 'fee_charged_to'?: UpdateCampaignFeeChargedToEnum | null;
8327
8601
  /**
8328
8602
  *
8329
8603
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -8337,6 +8611,11 @@ export interface UpdateCampaign {
8337
8611
  */
8338
8612
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
8339
8613
  }
8614
+ export declare const UpdateCampaignFeeChargedToEnum: {
8615
+ readonly Sender: "SENDER";
8616
+ readonly Recipient: "RECIPIENT";
8617
+ };
8618
+ export type UpdateCampaignFeeChargedToEnum = typeof UpdateCampaignFeeChargedToEnum[keyof typeof UpdateCampaignFeeChargedToEnum];
8340
8619
  /**
8341
8620
  * With a campaign you can define the look & feel of how rewards are sent out. It also lets you set the available products (different gift cards, charity, etc.) recipients can choose from.
8342
8621
  * @export
@@ -8361,6 +8640,12 @@ export interface UpdateCampaignRequest {
8361
8640
  * @memberof UpdateCampaignRequest
8362
8641
  */
8363
8642
  'products'?: Array<string>;
8643
+ /**
8644
+ * Determines whether fees for premium products are added to the order total (`SENDER`) or deducted from the recipient\'s reward amount (`RECIPIENT`). Campaigns with `RECIPIENT` must include at least one fee-free product.
8645
+ * @type {string}
8646
+ * @memberof UpdateCampaignRequest
8647
+ */
8648
+ 'fee_charged_to'?: UpdateCampaignRequestFeeChargedToEnum | null;
8364
8649
  /**
8365
8650
  *
8366
8651
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -8374,6 +8659,11 @@ export interface UpdateCampaignRequest {
8374
8659
  */
8375
8660
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
8376
8661
  }
8662
+ export declare const UpdateCampaignRequestFeeChargedToEnum: {
8663
+ readonly Sender: "SENDER";
8664
+ readonly Recipient: "RECIPIENT";
8665
+ };
8666
+ export type UpdateCampaignRequestFeeChargedToEnum = typeof UpdateCampaignRequestFeeChargedToEnum[keyof typeof UpdateCampaignRequestFeeChargedToEnum];
8377
8667
  /**
8378
8668
  *
8379
8669
  * @export
package/dist/api.js CHANGED
@@ -25,16 +25,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = exports.FundingSourceMethodEnum = exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateInvoiceRequestCurrencyCodeEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
29
- exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = exports.OrderWithLinkStatusEnum = exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = void 0;
30
- exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = exports.FraudReviewsApiAxiosParamCreator = exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = exports.ProductSubcategoryEnum = void 0;
31
- exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = exports.DeleteFraudRuleRuleTypeEnum = void 0;
28
+ exports.FundingSourceMethodEnum = exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateInvoiceRequestCurrencyCodeEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.CreateCampaignRequestFeeChargedToEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = exports.CampaignBaseFeeChargedToEnum = exports.CampaignFeeChargedToEnum = void 0;
29
+ exports.OrderWithLinkStatusEnum = exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.InvoiceCurrencyCodeEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = void 0;
30
+ exports.FraudReviewsApiAxiosParamCreator = exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.UpdateCampaignRequestFeeChargedToEnum = exports.UpdateCampaignFeeChargedToEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = exports.ProductSubcategoryEnum = exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = void 0;
31
+ exports.TopupsApiFactory = exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = exports.DeleteFraudRuleRuleTypeEnum = exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = void 0;
32
+ exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = void 0;
32
33
  const axios_1 = __importDefault(require("axios"));
33
34
  // Some imports not used depending on template conditions
34
35
  // @ts-ignore
35
36
  const common_1 = require("./common");
36
37
  // @ts-ignore
37
38
  const base_1 = require("./base");
39
+ exports.CampaignFeeChargedToEnum = {
40
+ Sender: 'SENDER',
41
+ Recipient: 'RECIPIENT'
42
+ };
43
+ exports.CampaignBaseFeeChargedToEnum = {
44
+ Sender: 'SENDER',
45
+ Recipient: 'RECIPIENT'
46
+ };
38
47
  /**
39
48
  * Name of the channel in which the order was created
40
49
  * @export
@@ -59,6 +68,10 @@ exports.ConnectedOrganizationOrganizationStatusEnum = {
59
68
  Approved: 'APPROVED',
60
69
  Rejected: 'REJECTED'
61
70
  };
71
+ exports.CreateCampaignRequestFeeChargedToEnum = {
72
+ Sender: 'SENDER',
73
+ Recipient: 'RECIPIENT'
74
+ };
62
75
  exports.CreateFieldDataTypeEnum = {
63
76
  Checkbox: 'Checkbox',
64
77
  Currency: 'Currency',
@@ -542,7 +555,7 @@ exports.FraudRuleRequestConfigPeriodEnum = {
542
555
  AllTime: 'all_time'
543
556
  };
544
557
  /**
545
- * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
558
+ * * `review_country` - Flags when the recipient\'s IP country matches the criteria in the rule * `review_ip` - Flags when recipient\'s IP matches one in the list * `review_email` - Flags when the recipient\'s email matches one in the list * `review_redeemed_rewards_count` - Flags when the recipient redeemed more than the number of rewards specified in the config * `review_redeemed_rewards_amount` - Flags when the recipient redeemed more than the total amount specified in the config. The amount is denominated in the organization\'s currency. * `review_multiple_emails` - Flags when recipient\'s device or account has multiple emails associated * `review_vpn` - Flags when VPN is suspected * `review_tremendous_flag_list` - Flags rewards when redemption attributes match at least one criteria defined by the Tremendous flag list * `review_previously_blocked_recipients` - Flags rewards when the recipient has been blocked before * `allow_ip` - Releases a reward when a recipient\'s IP matches one in the list * `allow_email` - Releases a reward when the recipient\'s email matches one in the list
546
559
  * @export
547
560
  * @enum {string}
548
561
  */
@@ -644,6 +657,11 @@ exports.GetMember200ResponseMemberEventsInnerTypeEnum = {
644
657
  Created: 'created',
645
658
  LastLogin: 'last_login'
646
659
  };
660
+ exports.InvoiceCurrencyCodeEnum = {
661
+ Usd: 'USD',
662
+ Eur: 'EUR',
663
+ Gbp: 'GBP'
664
+ };
647
665
  exports.InvoiceCurrencyEnum = {
648
666
  Usd: 'USD',
649
667
  Eur: 'EUR',
@@ -655,6 +673,10 @@ exports.InvoiceStatusEnum = {
655
673
  Open: 'OPEN',
656
674
  MarkedAsPaid: 'MARKED_AS_PAID'
657
675
  };
676
+ exports.ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = {
677
+ Sender: 'SENDER',
678
+ Recipient: 'RECIPIENT'
679
+ };
658
680
  exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = {
659
681
  Registered: 'REGISTERED',
660
682
  Invited: 'INVITED'
@@ -764,6 +786,11 @@ exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = {
764
786
  Maestro: 'Maestro',
765
787
  Solo: 'Solo'
766
788
  };
789
+ exports.ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum = {
790
+ Usd: 'USD',
791
+ Eur: 'EUR',
792
+ Gbp: 'GBP'
793
+ };
767
794
  exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = {
768
795
  Usd: 'USD',
769
796
  Eur: 'EUR',
@@ -1530,6 +1557,14 @@ exports.SingleRewardOrderWithoutLinkOrderChannelEnum = {
1530
1557
  SurveyMonkey: 'SURVEY MONKEY',
1531
1558
  Yotpo: 'YOTPO'
1532
1559
  };
1560
+ exports.UpdateCampaignFeeChargedToEnum = {
1561
+ Sender: 'SENDER',
1562
+ Recipient: 'RECIPIENT'
1563
+ };
1564
+ exports.UpdateCampaignRequestFeeChargedToEnum = {
1565
+ Sender: 'SENDER',
1566
+ Recipient: 'RECIPIENT'
1567
+ };
1533
1568
  exports.UpdateFraudRuleListRequestOperationEnum = {
1534
1569
  Add: 'add',
1535
1570
  Remove: 'remove'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tremendous",
3
- "version": "4.7.0",
3
+ "version": "4.9.0",
4
4
  "description": "A node.js client for the Tremendous API",
5
5
  "keywords": [
6
6
  "tremendous",