tremendous 4.8.0 → 4.10.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.8.0"
2
+ ".": "4.10.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.10.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.9.0...tremendous-v4.10.0) (2026-04-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * add `external_name`, `external_email`, `role` to connected org ([c77d3ec](https://github.com/tremendous-rewards/tremendous-node/commit/c77d3ecb8def39ed4a6b7cb04fbaecbfa32d18ac))
9
+
10
+ ## [4.9.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.8.0...tremendous-v4.9.0) (2026-04-22)
11
+
12
+
13
+ ### Features
14
+
15
+ * add `currency_code` to balance transactions ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
16
+ * add `currency_code` to order payment details ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
17
+ * add `currency_code` to payment refund details ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
18
+ * add `currency_code` to organizations ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
19
+ * add `currency_code` to create organization request ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
20
+ * add `currency_code` to funding source meta ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
21
+ * add `currency_code` to topups ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
22
+ * add `currency_code` to fraud review related rewards ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
23
+ * add `fee_charged_to` enum to campaigns ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
24
+ * add `available_amount`, `pending_amount`, `credit_limit_amount` to funding source meta ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
25
+ * add `instant_credit_amount`, `settled_amount`, `expected_settlement_at` to topups ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
26
+ * add `partially_credited` topup status ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * make recipient `name` field nullable ([cd04278](https://github.com/tremendous-rewards/tremendous-node/commit/cd0427864062399b49efb808fdd18a798ac35171))
3
32
  ## [4.8.0](https://github.com/tremendous-rewards/tremendous-node/compare/tremendous-v4.7.0...tremendous-v4.8.0) (2026-04-17)
4
33
 
5
34
 
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
@@ -607,6 +658,24 @@ export interface CreateConnectedOrganizationMemberRequest {
607
658
  * @memberof CreateConnectedOrganizationMemberRequest
608
659
  */
609
660
  'connected_organization_id': string;
661
+ /**
662
+ * The name associated with the user in your systems.
663
+ * @type {string}
664
+ * @memberof CreateConnectedOrganizationMemberRequest
665
+ */
666
+ 'external_name'?: string;
667
+ /**
668
+ * The email associated with the user in your systems.
669
+ * @type {string}
670
+ * @memberof CreateConnectedOrganizationMemberRequest
671
+ */
672
+ 'external_email'?: string;
673
+ /**
674
+ * The role ID to assign to the member within the organization. Only applicable when the connected organization is already linked to an existing Tremendous organization.
675
+ * @type {string}
676
+ * @memberof CreateConnectedOrganizationMemberRequest
677
+ */
678
+ 'role'?: string;
610
679
  }
611
680
  /**
612
681
  *
@@ -962,7 +1031,7 @@ export interface CreateOrder200ResponseOrder {
962
1031
  */
963
1032
  'campaign_id'?: string | null;
964
1033
  /**
965
- * Date the order has been created
1034
+ * Date the order was created
966
1035
  * @type {string}
967
1036
  * @memberof CreateOrder200ResponseOrder
968
1037
  */
@@ -1165,6 +1234,12 @@ export interface CreateOrganization {
1165
1234
  * @memberof CreateOrganization
1166
1235
  */
1167
1236
  'phone'?: string;
1237
+ /**
1238
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1239
+ * @type {string}
1240
+ * @memberof CreateOrganization
1241
+ */
1242
+ 'currency_code'?: string;
1168
1243
  /**
1169
1244
  * Timestamp of when the organization has been created.
1170
1245
  * @type {string}
@@ -1221,6 +1296,12 @@ export interface CreateOrganization200ResponseOrganization {
1221
1296
  * @memberof CreateOrganization200ResponseOrganization
1222
1297
  */
1223
1298
  'phone'?: string | null;
1299
+ /**
1300
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1301
+ * @type {string}
1302
+ * @memberof CreateOrganization200ResponseOrganization
1303
+ */
1304
+ 'currency_code'?: string;
1224
1305
  /**
1225
1306
  * Timestamp of when the organization has been created.
1226
1307
  * @type {string}
@@ -1276,6 +1357,12 @@ export interface CreateOrganizationForResponse {
1276
1357
  * @memberof CreateOrganizationForResponse
1277
1358
  */
1278
1359
  'phone'?: string | null;
1360
+ /**
1361
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1362
+ * @type {string}
1363
+ * @memberof CreateOrganizationForResponse
1364
+ */
1365
+ 'currency_code'?: string;
1279
1366
  /**
1280
1367
  * Timestamp of when the organization has been created.
1281
1368
  * @type {string}
@@ -1325,6 +1412,12 @@ export interface CreateOrganizationProperties {
1325
1412
  * @memberof CreateOrganizationProperties
1326
1413
  */
1327
1414
  'phone'?: string;
1415
+ /**
1416
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1417
+ * @type {string}
1418
+ * @memberof CreateOrganizationProperties
1419
+ */
1420
+ 'currency_code'?: string;
1328
1421
  /**
1329
1422
  * Timestamp of when the organization has been created.
1330
1423
  * @type {string}
@@ -1368,6 +1461,12 @@ export interface CreateOrganizationRequest {
1368
1461
  * @memberof CreateOrganizationRequest
1369
1462
  */
1370
1463
  'phone'?: string;
1464
+ /**
1465
+ * Currency code for the new organization. Defaults to the current organization\'s currency if not provided.
1466
+ * @type {string}
1467
+ * @memberof CreateOrganizationRequest
1468
+ */
1469
+ 'currency_code'?: string;
1371
1470
  }
1372
1471
  /**
1373
1472
  * A list of the settings that you wish to copy over to the new organization.
@@ -1686,7 +1785,7 @@ export interface CreateTopupRequest {
1686
1785
  */
1687
1786
  'idempotency_key': string;
1688
1787
  /**
1689
- * Amount in USD intended to be added to your organizations balance.
1788
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
1690
1789
  * @type {number}
1691
1790
  * @memberof CreateTopupRequest
1692
1791
  */
@@ -2138,7 +2237,7 @@ export interface FraudConfigIP {
2138
2237
  */
2139
2238
  export interface FraudConfigRedeemedRewardsAmount {
2140
2239
  /**
2141
- * The total amount in USD of redeemed rewards to use as a threshold.
2240
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
2142
2241
  * @type {number}
2143
2242
  * @memberof FraudConfigRedeemedRewardsAmount
2144
2243
  */
@@ -2293,10 +2392,10 @@ export interface FraudReview {
2293
2392
  'risk'?: FraudReviewRiskEnum;
2294
2393
  /**
2295
2394
  *
2296
- * @type {GetFraudReview200ResponseFraudReviewRelatedRewards}
2395
+ * @type {FraudReviewRelatedRewards}
2297
2396
  * @memberof FraudReview
2298
2397
  */
2299
- 'related_rewards'?: GetFraudReview200ResponseFraudReviewRelatedRewards;
2398
+ 'related_rewards'?: FraudReviewRelatedRewards;
2300
2399
  }
2301
2400
  export declare const FraudReviewStatusEnum: {
2302
2401
  readonly Flagged: "flagged";
@@ -2632,7 +2731,7 @@ export declare const FraudReviewRedemptionMethod: {
2632
2731
  };
2633
2732
  export type FraudReviewRedemptionMethod = typeof FraudReviewRedemptionMethod[keyof typeof FraudReviewRedemptionMethod];
2634
2733
  /**
2635
- *
2734
+ * The related rewards associated with the fraud review.
2636
2735
  * @export
2637
2736
  * @interface FraudReviewRelatedRewards
2638
2737
  */
@@ -2656,11 +2755,17 @@ export interface FraudReviewRelatedRewards {
2656
2755
  */
2657
2756
  'blocked_count'?: number;
2658
2757
  /**
2659
- * Total amount claimed by the related rewards (in USD).
2758
+ * Total amount claimed by the related rewards, denominated in `currency_code`.
2660
2759
  * @type {number}
2661
2760
  * @memberof FraudReviewRelatedRewards
2662
2761
  */
2663
2762
  'aggregated_value'?: number;
2763
+ /**
2764
+ * Currency of the aggregated value. Always matches the organization\'s currency.
2765
+ * @type {string}
2766
+ * @memberof FraudReviewRelatedRewards
2767
+ */
2768
+ 'currency_code'?: string;
2664
2769
  }
2665
2770
  /**
2666
2771
  * The fraud risk associated with the reward.
@@ -2785,7 +2890,7 @@ export interface FraudRuleRequestConfig {
2785
2890
  */
2786
2891
  'domains'?: Array<string>;
2787
2892
  /**
2788
- * The total amount in USD of redeemed rewards to use as a threshold.
2893
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
2789
2894
  * @type {number}
2790
2895
  * @memberof FraudRuleRequestConfig
2791
2896
  */
@@ -2812,7 +2917,7 @@ export declare const FraudRuleRequestConfigPeriodEnum: {
2812
2917
  };
2813
2918
  export type FraudRuleRequestConfigPeriodEnum = typeof FraudRuleRequestConfigPeriodEnum[keyof typeof FraudRuleRequestConfigPeriodEnum];
2814
2919
  /**
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
2920
+ * * `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
2921
  * @export
2817
2922
  * @enum {string}
2818
2923
  */
@@ -2837,7 +2942,7 @@ export type FraudRuleType = typeof FraudRuleType[keyof typeof FraudRuleType];
2837
2942
  */
2838
2943
  export interface FraudRulesListItem {
2839
2944
  /**
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
2945
+ * * `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
2946
  * @type {string}
2842
2947
  * @memberof FraudRulesListItem
2843
2948
  */
@@ -3148,11 +3253,17 @@ export interface GetFraudReview200ResponseFraudReviewRelatedRewards {
3148
3253
  */
3149
3254
  'blocked_count'?: number;
3150
3255
  /**
3151
- * Total amount claimed by the related rewards (in USD).
3256
+ * Total amount claimed by the related rewards, denominated in `currency_code`.
3152
3257
  * @type {number}
3153
3258
  * @memberof GetFraudReview200ResponseFraudReviewRelatedRewards
3154
3259
  */
3155
3260
  'aggregated_value'?: number;
3261
+ /**
3262
+ * Currency of the aggregated value. Always matches the organization\'s currency.
3263
+ * @type {string}
3264
+ * @memberof GetFraudReview200ResponseFraudReviewRelatedRewards
3265
+ */
3266
+ 'currency_code'?: string;
3156
3267
  }
3157
3268
  /**
3158
3269
  *
@@ -3486,13 +3597,19 @@ export interface ListBalanceTransactions200ResponseTransactionsInner {
3486
3597
  */
3487
3598
  'created_at': string;
3488
3599
  /**
3489
- * Amount of the transaction in USD
3600
+ * Amount of the transaction, denominated in `currency_code`.
3490
3601
  * @type {number}
3491
3602
  * @memberof ListBalanceTransactions200ResponseTransactionsInner
3492
3603
  */
3493
3604
  'amount': number;
3494
3605
  /**
3495
- * The updated total after the transaction. Note that this running balance may be delayed and contain `null`.
3606
+ * Currency of the transaction amount and running balance. Always matches the organization\'s currency.
3607
+ * @type {string}
3608
+ * @memberof ListBalanceTransactions200ResponseTransactionsInner
3609
+ */
3610
+ 'currency_code': string;
3611
+ /**
3612
+ * The updated total after the transaction, denominated in `currency_code`. Note that this running balance may be delayed and contain `null`.
3496
3613
  * @type {number}
3497
3614
  * @memberof ListBalanceTransactions200ResponseTransactionsInner
3498
3615
  */
@@ -3548,29 +3665,35 @@ export interface ListBalanceTransactions200ResponseTransactionsInnerOrder {
3548
3665
  */
3549
3666
  export interface ListBalanceTransactions200ResponseTransactionsInnerOrderPayment {
3550
3667
  /**
3551
- * Total price of the order before fees (in USD)
3668
+ * Total price of the order before fees, denominated in `currency_code`.
3552
3669
  * @type {number}
3553
3670
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3554
3671
  */
3555
3672
  'subtotal': number;
3556
3673
  /**
3557
- * Total price of the order including fees (in USD)
3674
+ * Total price of the order including fees, denominated in `currency_code`.
3558
3675
  * @type {number}
3559
3676
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3560
3677
  */
3561
3678
  'total': number;
3562
3679
  /**
3563
- * Fees for the order (in USD)
3680
+ * Fees for the order, denominated in `currency_code`.
3564
3681
  * @type {number}
3565
3682
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3566
3683
  */
3567
3684
  'fees': number;
3568
3685
  /**
3569
- * Discount for the order (in USD)
3686
+ * Discount for the order, denominated in `currency_code`.
3570
3687
  * @type {number}
3571
3688
  * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3572
3689
  */
3573
3690
  'discount': number;
3691
+ /**
3692
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
3693
+ * @type {string}
3694
+ * @memberof ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
3695
+ */
3696
+ 'currency_code': string;
3574
3697
  /**
3575
3698
  *
3576
3699
  * @type {ListOrders200ResponseOrdersInnerPaymentRefund}
@@ -3621,6 +3744,12 @@ export interface ListCampaigns200ResponseCampaignsInner {
3621
3744
  * @memberof ListCampaigns200ResponseCampaignsInner
3622
3745
  */
3623
3746
  'products': Array<string>;
3747
+ /**
3748
+ * 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.
3749
+ * @type {string}
3750
+ * @memberof ListCampaigns200ResponseCampaignsInner
3751
+ */
3752
+ 'fee_charged_to'?: ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum | null;
3624
3753
  /**
3625
3754
  *
3626
3755
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -3634,6 +3763,11 @@ export interface ListCampaigns200ResponseCampaignsInner {
3634
3763
  */
3635
3764
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
3636
3765
  }
3766
+ export declare const ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum: {
3767
+ readonly Sender: "SENDER";
3768
+ readonly Recipient: "RECIPIENT";
3769
+ };
3770
+ export type ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = typeof ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum[keyof typeof ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum];
3637
3771
  /**
3638
3772
  * Definition of the email style
3639
3773
  * @export
@@ -3916,6 +4050,12 @@ export interface ListConnectedOrganizations200ResponseConnectedOrganizationsInne
3916
4050
  * @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization
3917
4051
  */
3918
4052
  'website': string;
4053
+ /**
4054
+ * Currency used for this organization\'s balances, orders, and transactions.
4055
+ * @type {string}
4056
+ * @memberof ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganization
4057
+ */
4058
+ 'currency_code'?: string;
3919
4059
  /**
3920
4060
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
3921
4061
  * @type {string}
@@ -4212,7 +4352,7 @@ export interface ListFraudRules200Response {
4212
4352
  */
4213
4353
  export interface ListFraudRules200ResponseFraudRulesInner {
4214
4354
  /**
4215
- * * `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
4355
+ * * `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
4216
4356
  * @type {string}
4217
4357
  * @memberof ListFraudRules200ResponseFraudRulesInner
4218
4358
  */
@@ -4328,19 +4468,43 @@ export type ListFundingSources200ResponseFundingSourcesInnerTypeEnum = typeof Li
4328
4468
  */
4329
4469
  export interface ListFundingSources200ResponseFundingSourcesInnerMeta {
4330
4470
  /**
4331
- * **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.*
4471
+ * **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.*
4472
+ * @type {number}
4473
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4474
+ */
4475
+ 'available_amount'?: number;
4476
+ /**
4477
+ * Same as `available_amount`, but in cents.
4332
4478
  * @type {number}
4333
4479
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4334
4480
  */
4335
4481
  'available_cents'?: number;
4336
4482
  /**
4337
- * **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).
4483
+ * **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.
4484
+ * @type {string}
4485
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4486
+ */
4487
+ 'currency_code'?: string;
4488
+ /**
4489
+ * **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`.
4490
+ * @type {number}
4491
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4492
+ */
4493
+ 'pending_amount'?: number;
4494
+ /**
4495
+ * Same as `pending_amount`, but in cents.
4338
4496
  * @type {number}
4339
4497
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4340
4498
  */
4341
4499
  'pending_cents'?: number;
4342
4500
  /**
4343
- * **Only exists for commercial invoicing.** Available credit limit (in cents USD)
4501
+ * **Only exists for commercial invoicing.** Available credit limit denominated in `currency_code`.
4502
+ * @type {number}
4503
+ * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4504
+ */
4505
+ 'credit_limit_amount'?: number;
4506
+ /**
4507
+ * Same as `credit_limit_amount`, but in cents.
4344
4508
  * @type {number}
4345
4509
  * @memberof ListFundingSources200ResponseFundingSourcesInnerMeta
4346
4510
  */
@@ -4762,7 +4926,7 @@ export interface ListOrders200ResponseOrdersInner {
4762
4926
  */
4763
4927
  'campaign_id'?: string | null;
4764
4928
  /**
4765
- * Date the order has been created
4929
+ * Date the order was created
4766
4930
  * @type {string}
4767
4931
  * @memberof ListOrders200ResponseOrdersInner
4768
4932
  */
@@ -4820,35 +4984,41 @@ export declare const ListOrders200ResponseOrdersInnerChannelEnum: {
4820
4984
  };
4821
4985
  export type ListOrders200ResponseOrdersInnerChannelEnum = typeof ListOrders200ResponseOrdersInnerChannelEnum[keyof typeof ListOrders200ResponseOrdersInnerChannelEnum];
4822
4986
  /**
4823
- * 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`).
4987
+ * 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`).
4824
4988
  * @export
4825
4989
  * @interface ListOrders200ResponseOrdersInnerPayment
4826
4990
  */
4827
4991
  export interface ListOrders200ResponseOrdersInnerPayment {
4828
4992
  /**
4829
- * Total price of the order before fees (in USD)
4993
+ * Total price of the order before fees, denominated in `currency_code`.
4830
4994
  * @type {number}
4831
4995
  * @memberof ListOrders200ResponseOrdersInnerPayment
4832
4996
  */
4833
4997
  'subtotal': number;
4834
4998
  /**
4835
- * Total price of the order including fees (in USD)
4999
+ * Total price of the order including fees, denominated in `currency_code`.
4836
5000
  * @type {number}
4837
5001
  * @memberof ListOrders200ResponseOrdersInnerPayment
4838
5002
  */
4839
5003
  'total': number;
4840
5004
  /**
4841
- * Fees for the order (in USD)
5005
+ * Fees for the order, denominated in `currency_code`.
4842
5006
  * @type {number}
4843
5007
  * @memberof ListOrders200ResponseOrdersInnerPayment
4844
5008
  */
4845
5009
  'fees': number;
4846
5010
  /**
4847
- * Discount for the order (in USD)
5011
+ * Discount for the order, denominated in `currency_code`.
4848
5012
  * @type {number}
4849
5013
  * @memberof ListOrders200ResponseOrdersInnerPayment
4850
5014
  */
4851
5015
  'discount': number;
5016
+ /**
5017
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
5018
+ * @type {string}
5019
+ * @memberof ListOrders200ResponseOrdersInnerPayment
5020
+ */
5021
+ 'currency_code': string;
4852
5022
  /**
4853
5023
  *
4854
5024
  * @type {ListOrders200ResponseOrdersInnerPaymentRefund}
@@ -4857,17 +5027,23 @@ export interface ListOrders200ResponseOrdersInnerPayment {
4857
5027
  'refund'?: ListOrders200ResponseOrdersInnerPaymentRefund;
4858
5028
  }
4859
5029
  /**
4860
- * 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.
5030
+ * 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.
4861
5031
  * @export
4862
5032
  * @interface ListOrders200ResponseOrdersInnerPaymentRefund
4863
5033
  */
4864
5034
  export interface ListOrders200ResponseOrdersInnerPaymentRefund {
4865
5035
  /**
4866
- * Total amount of the order refunds (in USD)
5036
+ * Total amount of the order refunds, denominated in `currency_code`.
4867
5037
  * @type {number}
4868
5038
  * @memberof ListOrders200ResponseOrdersInnerPaymentRefund
4869
5039
  */
4870
5040
  'total': number;
5041
+ /**
5042
+ * Currency of the refund. Always matches the organization\'s currency.
5043
+ * @type {string}
5044
+ * @memberof ListOrders200ResponseOrdersInnerPaymentRefund
5045
+ */
5046
+ 'currency_code': string;
4871
5047
  }
4872
5048
  /**
4873
5049
  *
@@ -4906,6 +5082,12 @@ export interface ListOrganizations200ResponseOrganizationsInner {
4906
5082
  * @memberof ListOrganizations200ResponseOrganizationsInner
4907
5083
  */
4908
5084
  'website': string;
5085
+ /**
5086
+ * Currency used for this organization\'s balances, orders, and transactions.
5087
+ * @type {string}
5088
+ * @memberof ListOrganizations200ResponseOrganizationsInner
5089
+ */
5090
+ 'currency_code'?: string;
4909
5091
  /**
4910
5092
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
4911
5093
  * @type {string}
@@ -5393,7 +5575,7 @@ export interface ListRewards200ResponseRewardsInnerRecipient {
5393
5575
  * @type {string}
5394
5576
  * @memberof ListRewards200ResponseRewardsInnerRecipient
5395
5577
  */
5396
- 'name'?: string;
5578
+ 'name'?: string | null;
5397
5579
  /**
5398
5580
  * Email address of the recipient
5399
5581
  * @type {string}
@@ -5669,11 +5851,17 @@ export interface ListTopups200ResponseTopupsInner {
5669
5851
  */
5670
5852
  'id'?: string;
5671
5853
  /**
5672
- * Amount in USD intended to be added to your organizations balance.
5854
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
5673
5855
  * @type {number}
5674
5856
  * @memberof ListTopups200ResponseTopupsInner
5675
5857
  */
5676
5858
  'amount'?: number;
5859
+ /**
5860
+ * Currency of the topup amount. Always matches the organization\'s currency.
5861
+ * @type {string}
5862
+ * @memberof ListTopups200ResponseTopupsInner
5863
+ */
5864
+ 'currency_code'?: string;
5677
5865
  /**
5678
5866
  * Amount of the processing fee for the topup (typically reserved for credit card topups).
5679
5867
  * @type {number}
@@ -5687,7 +5875,7 @@ export interface ListTopups200ResponseTopupsInner {
5687
5875
  */
5688
5876
  'funding_source_id'?: string;
5689
5877
  /**
5690
- * 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>
5878
+ * 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>
5691
5879
  * @type {string}
5692
5880
  * @memberof ListTopups200ResponseTopupsInner
5693
5881
  */
@@ -5728,6 +5916,24 @@ export interface ListTopups200ResponseTopupsInner {
5728
5916
  * @memberof ListTopups200ResponseTopupsInner
5729
5917
  */
5730
5918
  'idempotency_key'?: string | null;
5919
+ /**
5920
+ * 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.
5921
+ * @type {number}
5922
+ * @memberof ListTopups200ResponseTopupsInner
5923
+ */
5924
+ 'instant_credit_amount'?: number;
5925
+ /**
5926
+ * Amount that will be available once the settlement period elapses. 0 if nothing is settling.
5927
+ * @type {number}
5928
+ * @memberof ListTopups200ResponseTopupsInner
5929
+ */
5930
+ 'settled_amount'?: number;
5931
+ /**
5932
+ * Timestamp indicating when the pending amount will be credited to the balance. Null if the topup was fully credited immediately.
5933
+ * @type {string}
5934
+ * @memberof ListTopups200ResponseTopupsInner
5935
+ */
5936
+ 'expected_settlement_at'?: string | null;
5731
5937
  }
5732
5938
  /**
5733
5939
  *
@@ -6027,7 +6233,7 @@ export interface Order {
6027
6233
  */
6028
6234
  'campaign_id'?: string | null;
6029
6235
  /**
6030
- * Date the order has been created
6236
+ * Date the order was created
6031
6237
  * @type {string}
6032
6238
  * @memberof Order
6033
6239
  */
@@ -6109,7 +6315,7 @@ export interface OrderBase {
6109
6315
  */
6110
6316
  'campaign_id'?: string | null;
6111
6317
  /**
6112
- * Date the order has been created
6318
+ * Date the order was created
6113
6319
  * @type {string}
6114
6320
  * @memberof OrderBase
6115
6321
  */
@@ -6161,35 +6367,41 @@ export declare const OrderBaseChannelEnum: {
6161
6367
  };
6162
6368
  export type OrderBaseChannelEnum = typeof OrderBaseChannelEnum[keyof typeof OrderBaseChannelEnum];
6163
6369
  /**
6164
- * 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`).
6370
+ * 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`).
6165
6371
  * @export
6166
6372
  * @interface OrderBasePayment
6167
6373
  */
6168
6374
  export interface OrderBasePayment {
6169
6375
  /**
6170
- * Total price of the order before fees (in USD)
6376
+ * Total price of the order before fees, denominated in `currency_code`.
6171
6377
  * @type {number}
6172
6378
  * @memberof OrderBasePayment
6173
6379
  */
6174
6380
  'subtotal': number;
6175
6381
  /**
6176
- * Total price of the order including fees (in USD)
6382
+ * Total price of the order including fees, denominated in `currency_code`.
6177
6383
  * @type {number}
6178
6384
  * @memberof OrderBasePayment
6179
6385
  */
6180
6386
  'total': number;
6181
6387
  /**
6182
- * Fees for the order (in USD)
6388
+ * Fees for the order, denominated in `currency_code`.
6183
6389
  * @type {number}
6184
6390
  * @memberof OrderBasePayment
6185
6391
  */
6186
6392
  'fees': number;
6187
6393
  /**
6188
- * Discount for the order (in USD)
6394
+ * Discount for the order, denominated in `currency_code`.
6189
6395
  * @type {number}
6190
6396
  * @memberof OrderBasePayment
6191
6397
  */
6192
6398
  'discount': number;
6399
+ /**
6400
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
6401
+ * @type {string}
6402
+ * @memberof OrderBasePayment
6403
+ */
6404
+ 'currency_code': string;
6193
6405
  /**
6194
6406
  *
6195
6407
  * @type {PaymentDetailsRefund}
@@ -6237,7 +6449,7 @@ export interface OrderWithLink {
6237
6449
  */
6238
6450
  'campaign_id'?: string | null;
6239
6451
  /**
6240
- * Date the order has been created
6452
+ * Date the order was created
6241
6453
  * @type {string}
6242
6454
  * @memberof OrderWithLink
6243
6455
  */
@@ -6392,7 +6604,7 @@ export interface OrderWithoutLink {
6392
6604
  */
6393
6605
  'campaign_id'?: string | null;
6394
6606
  /**
6395
- * Date the order has been created
6607
+ * Date the order was created
6396
6608
  * @type {string}
6397
6609
  * @memberof OrderWithoutLink
6398
6610
  */
@@ -6546,6 +6758,12 @@ export interface Organization {
6546
6758
  * @memberof Organization
6547
6759
  */
6548
6760
  'website': string;
6761
+ /**
6762
+ * Currency used for this organization\'s balances, orders, and transactions.
6763
+ * @type {string}
6764
+ * @memberof Organization
6765
+ */
6766
+ 'currency_code'?: string;
6549
6767
  /**
6550
6768
  * Status of the organization. Organizations need to be approved to be able to use them to send out rewards.
6551
6769
  * @type {string}
@@ -6572,29 +6790,35 @@ export type OrganizationStatusEnum = typeof OrganizationStatusEnum[keyof typeof
6572
6790
  */
6573
6791
  export interface PaymentDetails {
6574
6792
  /**
6575
- * Total price of the order before fees (in USD)
6793
+ * Total price of the order before fees, denominated in `currency_code`.
6576
6794
  * @type {number}
6577
6795
  * @memberof PaymentDetails
6578
6796
  */
6579
6797
  'subtotal': number;
6580
6798
  /**
6581
- * Total price of the order including fees (in USD)
6799
+ * Total price of the order including fees, denominated in `currency_code`.
6582
6800
  * @type {number}
6583
6801
  * @memberof PaymentDetails
6584
6802
  */
6585
6803
  'total': number;
6586
6804
  /**
6587
- * Fees for the order (in USD)
6805
+ * Fees for the order, denominated in `currency_code`.
6588
6806
  * @type {number}
6589
6807
  * @memberof PaymentDetails
6590
6808
  */
6591
6809
  'fees': number;
6592
6810
  /**
6593
- * Discount for the order (in USD)
6811
+ * Discount for the order, denominated in `currency_code`.
6594
6812
  * @type {number}
6595
6813
  * @memberof PaymentDetails
6596
6814
  */
6597
6815
  'discount': number;
6816
+ /**
6817
+ * Currency in which the payment amounts (subtotal, total, fees, discount, refund) are denominated. This always matches the organization\'s currency.
6818
+ * @type {string}
6819
+ * @memberof PaymentDetails
6820
+ */
6821
+ 'currency_code': string;
6598
6822
  /**
6599
6823
  *
6600
6824
  * @type {PaymentDetailsRefund}
@@ -6603,17 +6827,23 @@ export interface PaymentDetails {
6603
6827
  'refund'?: PaymentDetailsRefund;
6604
6828
  }
6605
6829
  /**
6606
- * 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.
6830
+ * 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.
6607
6831
  * @export
6608
6832
  * @interface PaymentDetailsRefund
6609
6833
  */
6610
6834
  export interface PaymentDetailsRefund {
6611
6835
  /**
6612
- * Total amount of the order refunds (in USD)
6836
+ * Total amount of the order refunds, denominated in `currency_code`.
6613
6837
  * @type {number}
6614
6838
  * @memberof PaymentDetailsRefund
6615
6839
  */
6616
6840
  'total': number;
6841
+ /**
6842
+ * Currency of the refund. Always matches the organization\'s currency.
6843
+ * @type {string}
6844
+ * @memberof PaymentDetailsRefund
6845
+ */
6846
+ 'currency_code': string;
6617
6847
  }
6618
6848
  /**
6619
6849
  *
@@ -6929,7 +7159,7 @@ export interface Recipient {
6929
7159
  * @type {string}
6930
7160
  * @memberof Recipient
6931
7161
  */
6932
- 'name'?: string;
7162
+ 'name'?: string | null;
6933
7163
  /**
6934
7164
  * Email address of the recipient
6935
7165
  * @type {string}
@@ -6950,11 +7180,17 @@ export interface Recipient {
6950
7180
  */
6951
7181
  export interface RefundDetails {
6952
7182
  /**
6953
- * Total amount of the order refunds (in USD)
7183
+ * Total amount of the order refunds, denominated in `currency_code`.
6954
7184
  * @type {number}
6955
7185
  * @memberof RefundDetails
6956
7186
  */
6957
7187
  'total': number;
7188
+ /**
7189
+ * Currency of the refund. Always matches the organization\'s currency.
7190
+ * @type {string}
7191
+ * @memberof RefundDetails
7192
+ */
7193
+ 'currency_code': string;
6958
7194
  }
6959
7195
  /**
6960
7196
  * 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.
@@ -7146,7 +7382,7 @@ export interface ReviewIp1 {
7146
7382
  */
7147
7383
  export interface ReviewRedeemedRewardsAmount {
7148
7384
  /**
7149
- * The total amount in USD of redeemed rewards to use as a threshold.
7385
+ * The total amount of redeemed rewards to use as a threshold. The amount is denominated in the organization\'s currency.
7150
7386
  * @type {number}
7151
7387
  * @memberof ReviewRedeemedRewardsAmount
7152
7388
  */
@@ -8070,7 +8306,7 @@ export interface SingleRewardOrderWithLinkOrder {
8070
8306
  */
8071
8307
  'campaign_id'?: string | null;
8072
8308
  /**
8073
- * Date the order has been created
8309
+ * Date the order was created
8074
8310
  * @type {string}
8075
8311
  * @memberof SingleRewardOrderWithLinkOrder
8076
8312
  */
@@ -8165,7 +8401,7 @@ export interface SingleRewardOrderWithoutLinkOrder {
8165
8401
  */
8166
8402
  'campaign_id'?: string | null;
8167
8403
  /**
8168
- * Date the order has been created
8404
+ * Date the order was created
8169
8405
  * @type {string}
8170
8406
  * @memberof SingleRewardOrderWithoutLinkOrder
8171
8407
  */
@@ -8235,11 +8471,17 @@ export interface Topup {
8235
8471
  */
8236
8472
  'id'?: string;
8237
8473
  /**
8238
- * Amount in USD intended to be added to your organizations balance.
8474
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
8239
8475
  * @type {number}
8240
8476
  * @memberof Topup
8241
8477
  */
8242
8478
  'amount'?: number;
8479
+ /**
8480
+ * Currency of the topup amount. Always matches the organization\'s currency.
8481
+ * @type {string}
8482
+ * @memberof Topup
8483
+ */
8484
+ 'currency_code'?: string;
8243
8485
  /**
8244
8486
  * Amount of the processing fee for the topup (typically reserved for credit card topups).
8245
8487
  * @type {number}
@@ -8253,7 +8495,7 @@ export interface Topup {
8253
8495
  */
8254
8496
  'funding_source_id'?: string;
8255
8497
  /**
8256
- * 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>
8498
+ * 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>
8257
8499
  * @type {string}
8258
8500
  * @memberof Topup
8259
8501
  */
@@ -8294,6 +8536,24 @@ export interface Topup {
8294
8536
  * @memberof Topup
8295
8537
  */
8296
8538
  'idempotency_key'?: string | null;
8539
+ /**
8540
+ * 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.
8541
+ * @type {number}
8542
+ * @memberof Topup
8543
+ */
8544
+ 'instant_credit_amount'?: number;
8545
+ /**
8546
+ * Amount that will be available once the settlement period elapses. 0 if nothing is settling.
8547
+ * @type {number}
8548
+ * @memberof Topup
8549
+ */
8550
+ 'settled_amount'?: number;
8551
+ /**
8552
+ * Timestamp indicating when the pending amount will be credited to the balance. Null if the topup was fully credited immediately.
8553
+ * @type {string}
8554
+ * @memberof Topup
8555
+ */
8556
+ 'expected_settlement_at'?: string | null;
8297
8557
  }
8298
8558
  /**
8299
8559
  *
@@ -8314,7 +8574,7 @@ export interface TopupCreateRequest {
8314
8574
  */
8315
8575
  'idempotency_key': string;
8316
8576
  /**
8317
- * Amount in USD intended to be added to your organizations balance.
8577
+ * Amount to add to your organization\'s balance, denominated in `currency_code`.
8318
8578
  * @type {number}
8319
8579
  * @memberof TopupCreateRequest
8320
8580
  */
@@ -8350,6 +8610,12 @@ export interface UpdateCampaign {
8350
8610
  * @memberof UpdateCampaign
8351
8611
  */
8352
8612
  'products'?: Array<string>;
8613
+ /**
8614
+ * 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.
8615
+ * @type {string}
8616
+ * @memberof UpdateCampaign
8617
+ */
8618
+ 'fee_charged_to'?: UpdateCampaignFeeChargedToEnum | null;
8353
8619
  /**
8354
8620
  *
8355
8621
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -8363,6 +8629,11 @@ export interface UpdateCampaign {
8363
8629
  */
8364
8630
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
8365
8631
  }
8632
+ export declare const UpdateCampaignFeeChargedToEnum: {
8633
+ readonly Sender: "SENDER";
8634
+ readonly Recipient: "RECIPIENT";
8635
+ };
8636
+ export type UpdateCampaignFeeChargedToEnum = typeof UpdateCampaignFeeChargedToEnum[keyof typeof UpdateCampaignFeeChargedToEnum];
8366
8637
  /**
8367
8638
  * 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.
8368
8639
  * @export
@@ -8387,6 +8658,12 @@ export interface UpdateCampaignRequest {
8387
8658
  * @memberof UpdateCampaignRequest
8388
8659
  */
8389
8660
  'products'?: Array<string>;
8661
+ /**
8662
+ * 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.
8663
+ * @type {string}
8664
+ * @memberof UpdateCampaignRequest
8665
+ */
8666
+ 'fee_charged_to'?: UpdateCampaignRequestFeeChargedToEnum | null;
8390
8667
  /**
8391
8668
  *
8392
8669
  * @type {ListCampaigns200ResponseCampaignsInnerWebpageStyle}
@@ -8400,6 +8677,11 @@ export interface UpdateCampaignRequest {
8400
8677
  */
8401
8678
  'email_style'?: ListCampaigns200ResponseCampaignsInnerEmailStyle;
8402
8679
  }
8680
+ export declare const UpdateCampaignRequestFeeChargedToEnum: {
8681
+ readonly Sender: "SENDER";
8682
+ readonly Recipient: "RECIPIENT";
8683
+ };
8684
+ export type UpdateCampaignRequestFeeChargedToEnum = typeof UpdateCampaignRequestFeeChargedToEnum[keyof typeof UpdateCampaignRequestFeeChargedToEnum];
8403
8685
  /**
8404
8686
  *
8405
8687
  * @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.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.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.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.InvoiceCurrencyCodeEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = void 0;
30
- 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 = exports.ProductCategoryEnum = exports.PayoutStatusEnum = 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 = exports.FraudRulesApi = exports.FraudRulesApiFactory = 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
  */
@@ -660,6 +673,10 @@ exports.InvoiceStatusEnum = {
660
673
  Open: 'OPEN',
661
674
  MarkedAsPaid: 'MARKED_AS_PAID'
662
675
  };
676
+ exports.ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = {
677
+ Sender: 'SENDER',
678
+ Recipient: 'RECIPIENT'
679
+ };
663
680
  exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = {
664
681
  Registered: 'REGISTERED',
665
682
  Invited: 'INVITED'
@@ -1540,6 +1557,14 @@ exports.SingleRewardOrderWithoutLinkOrderChannelEnum = {
1540
1557
  SurveyMonkey: 'SURVEY MONKEY',
1541
1558
  Yotpo: 'YOTPO'
1542
1559
  };
1560
+ exports.UpdateCampaignFeeChargedToEnum = {
1561
+ Sender: 'SENDER',
1562
+ Recipient: 'RECIPIENT'
1563
+ };
1564
+ exports.UpdateCampaignRequestFeeChargedToEnum = {
1565
+ Sender: 'SENDER',
1566
+ Recipient: 'RECIPIENT'
1567
+ };
1543
1568
  exports.UpdateFraudRuleListRequestOperationEnum = {
1544
1569
  Add: 'add',
1545
1570
  Remove: 'remove'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tremendous",
3
- "version": "4.8.0",
3
+ "version": "4.10.0",
4
4
  "description": "A node.js client for the Tremendous API",
5
5
  "keywords": [
6
6
  "tremendous",