tremendous 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -22,10 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.InvoiceStatusEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = 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.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewRiskEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = 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.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
26
- 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 = 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.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = void 0;
27
- 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 = 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 = void 0;
28
- exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = 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 = void 0;
25
+ exports.GetFraudReview200ResponseFraudReviewStatusEnum = 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.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = void 0;
26
+ exports.ProductSubcategoryEnum = 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 = void 0;
27
+ exports.DeleteFraudRuleRuleTypeEnum = 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 = void 0;
28
+ 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 = void 0;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -56,6 +56,35 @@ exports.ConnectedOrganizationOrganizationStatusEnum = {
56
56
  Approved: 'APPROVED',
57
57
  Rejected: 'REJECTED'
58
58
  };
59
+ exports.CreateFieldDataTypeEnum = {
60
+ Checkbox: 'Checkbox',
61
+ Currency: 'Currency',
62
+ Date: 'Date',
63
+ Dropdown: 'Dropdown',
64
+ Email: 'Email',
65
+ List: 'List',
66
+ Number: 'Number',
67
+ Phone: 'Phone',
68
+ Text: 'Text',
69
+ TextArea: 'TextArea'
70
+ };
71
+ exports.CreateFieldRequestDataTypeEnum = {
72
+ Checkbox: 'Checkbox',
73
+ Currency: 'Currency',
74
+ Date: 'Date',
75
+ Dropdown: 'Dropdown',
76
+ Email: 'Email',
77
+ List: 'List',
78
+ Number: 'Number',
79
+ Phone: 'Phone',
80
+ Text: 'Text',
81
+ TextArea: 'TextArea'
82
+ };
83
+ exports.CreateInvoiceRequestCurrencyEnum = {
84
+ Usd: 'USD',
85
+ Eur: 'EUR',
86
+ Gbp: 'GBP'
87
+ };
59
88
  exports.CreateOrder200ResponseOrderStatusEnum = {
60
89
  Canceled: 'CANCELED',
61
90
  Cart: 'CART',
@@ -282,6 +311,18 @@ exports.DeliveryStatus = {
282
311
  Succeeded: 'SUCCEEDED',
283
312
  Pending: 'PENDING'
284
313
  };
314
+ exports.FieldDataTypeEnum = {
315
+ Checkbox: 'Checkbox',
316
+ Currency: 'Currency',
317
+ Date: 'Date',
318
+ Dropdown: 'Dropdown',
319
+ Email: 'Email',
320
+ List: 'List',
321
+ Number: 'Number',
322
+ Phone: 'Phone',
323
+ Text: 'Text',
324
+ TextArea: 'TextArea'
325
+ };
285
326
  exports.FraudConfigCountryTypeEnum = {
286
327
  Whitelist: 'whitelist',
287
328
  Blacklist: 'blacklist'
@@ -307,12 +348,50 @@ exports.FraudReviewStatusEnum = {
307
348
  Blocked: 'blocked',
308
349
  Released: 'released'
309
350
  };
351
+ exports.FraudReviewReasonsEnum = {
352
+ DisallowedIp: 'Disallowed IP',
353
+ DisallowedEmail: 'Disallowed email',
354
+ DisallowedCountry: 'Disallowed country',
355
+ OverRewardDollarLimit: 'Over reward dollar limit',
356
+ OverRewardCountLimit: 'Over reward count limit',
357
+ VpnDetected: 'VPN detected',
358
+ DeviceRelatedToMultipleEmails: 'Device related to multiple emails',
359
+ DeviceOrAccountRelatedToMultipleEmails: 'Device or account related to multiple emails',
360
+ IpOnATremendousFraudList: 'IP on a Tremendous fraud list',
361
+ BankAccountOnATremendousFraudList: 'Bank account on a Tremendous fraud list',
362
+ FingerprintOnATremendousFraudList: 'Fingerprint on a Tremendous fraud list',
363
+ EmailOnATremendousFraudList: 'Email on a Tremendous fraud list',
364
+ PhoneOnATremendousFraudList: 'Phone on a Tremendous fraud list',
365
+ IpRelatedToABlockedReward: 'IP related to a blocked reward',
366
+ DeviceRelatedToABlockedReward: 'Device related to a blocked reward',
367
+ BankAccountRelatedToABlockedReward: 'Bank account related to a blocked reward',
368
+ FingerprintRelatedToABlockedReward: 'Fingerprint related to a blocked reward',
369
+ EmailRelatedToABlockedReward: 'Email related to a blocked reward',
370
+ PhoneRelatedToABlockedReward: 'Phone related to a blocked reward',
371
+ AllowedIp: 'Allowed IP',
372
+ AllowedEmail: 'Allowed email'
373
+ };
374
+ exports.FraudReviewRedemptionMethodEnum = {
375
+ BankTransfer: 'bank transfer',
376
+ Charity: 'charity',
377
+ InstantDebitTransfer: 'instant debit transfer',
378
+ InternationalBankTransfer: 'international bank transfer',
379
+ MerchantCard: 'merchant card',
380
+ Paypal: 'paypal',
381
+ Venmo: 'venmo',
382
+ VisaCard: 'visa card'
383
+ };
310
384
  exports.FraudReviewRiskEnum = {
311
385
  High: 'high',
312
386
  Medium: 'medium',
313
387
  Low: 'low'
314
388
  };
315
- exports.FraudReviewReasonsEnum = {
389
+ exports.FraudReviewBaseStatusEnum = {
390
+ Flagged: 'flagged',
391
+ Blocked: 'blocked',
392
+ Released: 'released'
393
+ };
394
+ exports.FraudReviewBaseReasonsEnum = {
316
395
  DisallowedIp: 'Disallowed IP',
317
396
  DisallowedEmail: 'Disallowed email',
318
397
  DisallowedCountry: 'Disallowed country',
@@ -335,13 +414,15 @@ exports.FraudReviewReasonsEnum = {
335
414
  AllowedIp: 'Allowed IP',
336
415
  AllowedEmail: 'Allowed email'
337
416
  };
338
- exports.FraudReviewRedemptionMethodEnum = {
339
- Paypal: 'paypal',
340
- Bank: 'bank',
341
- MerchantCard: 'merchant card',
342
- VisaCard: 'visa card',
417
+ exports.FraudReviewBaseRedemptionMethodEnum = {
418
+ BankTransfer: 'bank transfer',
343
419
  Charity: 'charity',
344
- Venmo: 'venmo'
420
+ InstantDebitTransfer: 'instant debit transfer',
421
+ InternationalBankTransfer: 'international bank transfer',
422
+ MerchantCard: 'merchant card',
423
+ Paypal: 'paypal',
424
+ Venmo: 'venmo',
425
+ VisaCard: 'visa card'
345
426
  };
346
427
  exports.FraudReviewListItemStatusEnum = {
347
428
  Flagged: 'flagged',
@@ -371,6 +452,16 @@ exports.FraudReviewListItemReasonsEnum = {
371
452
  AllowedIp: 'Allowed IP',
372
453
  AllowedEmail: 'Allowed email'
373
454
  };
455
+ exports.FraudReviewListItemRedemptionMethodEnum = {
456
+ BankTransfer: 'bank transfer',
457
+ Charity: 'charity',
458
+ InstantDebitTransfer: 'instant debit transfer',
459
+ InternationalBankTransfer: 'international bank transfer',
460
+ MerchantCard: 'merchant card',
461
+ Paypal: 'paypal',
462
+ Venmo: 'venmo',
463
+ VisaCard: 'visa card'
464
+ };
374
465
  /**
375
466
  *
376
467
  * @export
@@ -405,12 +496,14 @@ exports.FraudReviewReason = {
405
496
  * @enum {string}
406
497
  */
407
498
  exports.FraudReviewRedemptionMethod = {
408
- Paypal: 'paypal',
409
- Bank: 'bank',
410
- MerchantCard: 'merchant card',
411
- VisaCard: 'visa card',
499
+ BankTransfer: 'bank transfer',
412
500
  Charity: 'charity',
413
- Venmo: 'venmo'
501
+ InstantDebitTransfer: 'instant debit transfer',
502
+ InternationalBankTransfer: 'international bank transfer',
503
+ MerchantCard: 'merchant card',
504
+ Paypal: 'paypal',
505
+ Venmo: 'venmo',
506
+ VisaCard: 'visa card'
414
507
  };
415
508
  /**
416
509
  * The fraud risk associated with the reward.
@@ -501,11 +594,6 @@ exports.GetFraudReview200ResponseFraudReviewStatusEnum = {
501
594
  Blocked: 'blocked',
502
595
  Released: 'released'
503
596
  };
504
- exports.GetFraudReview200ResponseFraudReviewRiskEnum = {
505
- High: 'high',
506
- Medium: 'medium',
507
- Low: 'low'
508
- };
509
597
  exports.GetFraudReview200ResponseFraudReviewReasonsEnum = {
510
598
  DisallowedIp: 'Disallowed IP',
511
599
  DisallowedEmail: 'Disallowed email',
@@ -530,12 +618,19 @@ exports.GetFraudReview200ResponseFraudReviewReasonsEnum = {
530
618
  AllowedEmail: 'Allowed email'
531
619
  };
532
620
  exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = {
533
- Paypal: 'paypal',
534
- Bank: 'bank',
535
- MerchantCard: 'merchant card',
536
- VisaCard: 'visa card',
621
+ BankTransfer: 'bank transfer',
537
622
  Charity: 'charity',
538
- Venmo: 'venmo'
623
+ InstantDebitTransfer: 'instant debit transfer',
624
+ InternationalBankTransfer: 'international bank transfer',
625
+ MerchantCard: 'merchant card',
626
+ Paypal: 'paypal',
627
+ Venmo: 'venmo',
628
+ VisaCard: 'visa card'
629
+ };
630
+ exports.GetFraudReview200ResponseFraudReviewRiskEnum = {
631
+ High: 'high',
632
+ Medium: 'medium',
633
+ Low: 'low'
539
634
  };
540
635
  exports.GetMember200ResponseMemberStatusEnum = {
541
636
  Registered: 'REGISTERED',
@@ -545,6 +640,11 @@ exports.GetMember200ResponseMemberEventsInnerTypeEnum = {
545
640
  Created: 'created',
546
641
  LastLogin: 'last_login'
547
642
  };
643
+ exports.InvoiceCurrencyEnum = {
644
+ Usd: 'USD',
645
+ Eur: 'EUR',
646
+ Gbp: 'GBP'
647
+ };
548
648
  exports.InvoiceStatusEnum = {
549
649
  Deleted: 'DELETED',
550
650
  Paid: 'PAID',
@@ -560,6 +660,18 @@ exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganiza
560
660
  Approved: 'APPROVED',
561
661
  Rejected: 'REJECTED'
562
662
  };
663
+ exports.ListFields200ResponseFieldsInnerDataTypeEnum = {
664
+ Checkbox: 'Checkbox',
665
+ Currency: 'Currency',
666
+ Date: 'Date',
667
+ Dropdown: 'Dropdown',
668
+ Email: 'Email',
669
+ List: 'List',
670
+ Number: 'Number',
671
+ Phone: 'Phone',
672
+ Text: 'Text',
673
+ TextArea: 'TextArea'
674
+ };
563
675
  exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = {
564
676
  Flagged: 'flagged',
565
677
  Blocked: 'blocked',
@@ -588,6 +700,16 @@ exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = {
588
700
  AllowedIp: 'Allowed IP',
589
701
  AllowedEmail: 'Allowed email'
590
702
  };
703
+ exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = {
704
+ BankTransfer: 'bank transfer',
705
+ Charity: 'charity',
706
+ InstantDebitTransfer: 'instant debit transfer',
707
+ InternationalBankTransfer: 'international bank transfer',
708
+ MerchantCard: 'merchant card',
709
+ Paypal: 'paypal',
710
+ Venmo: 'venmo',
711
+ VisaCard: 'visa card'
712
+ };
591
713
  exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = {
592
714
  ReviewCountry: 'review_country',
593
715
  ReviewIp: 'review_ip',
@@ -638,6 +760,11 @@ exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = {
638
760
  Maestro: 'Maestro',
639
761
  Solo: 'Solo'
640
762
  };
763
+ exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = {
764
+ Usd: 'USD',
765
+ Eur: 'EUR',
766
+ Gbp: 'GBP'
767
+ };
641
768
  exports.ListInvoices200ResponseInvoicesInnerStatusEnum = {
642
769
  Deleted: 'DELETED',
643
770
  Paid: 'PAID',
@@ -2455,6 +2582,39 @@ exports.ConnectedOrganizationsApi = ConnectedOrganizationsApi;
2455
2582
  */
2456
2583
  const FieldsApiAxiosParamCreator = function (configuration) {
2457
2584
  return {
2585
+ /**
2586
+ * Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
2587
+ * @summary Create field
2588
+ * @param {CreateFieldRequest} createFieldRequest Field details
2589
+ * @param {*} [options] Override http request option.
2590
+ * @throws {RequiredError}
2591
+ */
2592
+ createField: (createFieldRequest_1, ...args_1) => __awaiter(this, [createFieldRequest_1, ...args_1], void 0, function* (createFieldRequest, options = {}) {
2593
+ // verify required parameter 'createFieldRequest' is not null or undefined
2594
+ (0, common_1.assertParamExists)('createField', 'createFieldRequest', createFieldRequest);
2595
+ const localVarPath = `/fields`;
2596
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2597
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2598
+ let baseOptions;
2599
+ if (configuration) {
2600
+ baseOptions = configuration.baseOptions;
2601
+ }
2602
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2603
+ const localVarHeaderParameter = {};
2604
+ const localVarQueryParameter = {};
2605
+ // authentication BearerApiKey required
2606
+ // http bearer authentication required
2607
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2608
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2609
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2610
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2611
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2612
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFieldRequest, localVarRequestOptions, configuration);
2613
+ return {
2614
+ url: (0, common_1.toPathString)(localVarUrlObj),
2615
+ options: localVarRequestOptions,
2616
+ };
2617
+ }),
2458
2618
  /**
2459
2619
  * For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
2460
2620
  * @summary List fields
@@ -2493,6 +2653,22 @@ exports.FieldsApiAxiosParamCreator = FieldsApiAxiosParamCreator;
2493
2653
  const FieldsApiFp = function (configuration) {
2494
2654
  const localVarAxiosParamCreator = (0, exports.FieldsApiAxiosParamCreator)(configuration);
2495
2655
  return {
2656
+ /**
2657
+ * Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
2658
+ * @summary Create field
2659
+ * @param {CreateFieldRequest} createFieldRequest Field details
2660
+ * @param {*} [options] Override http request option.
2661
+ * @throws {RequiredError}
2662
+ */
2663
+ createField(createFieldRequest, options) {
2664
+ return __awaiter(this, void 0, void 0, function* () {
2665
+ var _a, _b, _c;
2666
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createField(createFieldRequest, options);
2667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2668
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FieldsApi.createField']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2669
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2670
+ });
2671
+ },
2496
2672
  /**
2497
2673
  * For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
2498
2674
  * @summary List fields
@@ -2518,6 +2694,16 @@ exports.FieldsApiFp = FieldsApiFp;
2518
2694
  const FieldsApiFactory = function (configuration, basePath, axios) {
2519
2695
  const localVarFp = (0, exports.FieldsApiFp)(configuration);
2520
2696
  return {
2697
+ /**
2698
+ * Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
2699
+ * @summary Create field
2700
+ * @param {CreateFieldRequest} createFieldRequest Field details
2701
+ * @param {*} [options] Override http request option.
2702
+ * @throws {RequiredError}
2703
+ */
2704
+ createField(createFieldRequest, options) {
2705
+ return localVarFp.createField(createFieldRequest, options).then((request) => request(axios, basePath));
2706
+ },
2521
2707
  /**
2522
2708
  * For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
2523
2709
  * @summary List fields
@@ -2537,6 +2723,17 @@ exports.FieldsApiFactory = FieldsApiFactory;
2537
2723
  * @extends {BaseAPI}
2538
2724
  */
2539
2725
  class FieldsApi extends base_1.BaseAPI {
2726
+ /**
2727
+ * Create a custom field to be associated with rewards. Custom fields can be used for reporting and analytics purposes.
2728
+ * @summary Create field
2729
+ * @param {CreateFieldRequest} createFieldRequest Field details
2730
+ * @param {*} [options] Override http request option.
2731
+ * @throws {RequiredError}
2732
+ * @memberof FieldsApi
2733
+ */
2734
+ createField(createFieldRequest, options) {
2735
+ return (0, exports.FieldsApiFp)(this.configuration).createField(createFieldRequest, options).then((request) => request(this.axios, this.basePath));
2736
+ }
2540
2737
  /**
2541
2738
  * For reporting and analytics purposes, custom fields can be associated with rewards generated through the API. Custom fields must be first added by members of your admin team through the Tremendous Dashboard.
2542
2739
  * @summary List fields
@@ -3390,9 +3587,9 @@ exports.UpdateFraudRuleListRuleTypeEnum = {
3390
3587
  const FundingSourcesApiAxiosParamCreator = function (configuration) {
3391
3588
  return {
3392
3589
  /**
3393
- * Retrieve a funding source, identified by the given `id` in the URL
3590
+ * Retrieve a funding source, identified by the given `id` in the URL. You can also use the special keyword `BALANCE` (case-insensitive) to retrieve the organization\'s balance funding source.
3394
3591
  * @summary Retrieve funding source
3395
- * @param {string} id ID of the funding source that should be retrieved
3592
+ * @param {string} id ID of the funding source that should be retrieved. Can also use \"BALANCE\" (case-insensitive) to retrieve the organization\'s balance funding source.
3396
3593
  * @param {*} [options] Override http request option.
3397
3594
  * @throws {RequiredError}
3398
3595
  */
@@ -3460,9 +3657,9 @@ const FundingSourcesApiFp = function (configuration) {
3460
3657
  const localVarAxiosParamCreator = (0, exports.FundingSourcesApiAxiosParamCreator)(configuration);
3461
3658
  return {
3462
3659
  /**
3463
- * Retrieve a funding source, identified by the given `id` in the URL
3660
+ * Retrieve a funding source, identified by the given `id` in the URL. You can also use the special keyword `BALANCE` (case-insensitive) to retrieve the organization\'s balance funding source.
3464
3661
  * @summary Retrieve funding source
3465
- * @param {string} id ID of the funding source that should be retrieved
3662
+ * @param {string} id ID of the funding source that should be retrieved. Can also use \"BALANCE\" (case-insensitive) to retrieve the organization\'s balance funding source.
3466
3663
  * @param {*} [options] Override http request option.
3467
3664
  * @throws {RequiredError}
3468
3665
  */
@@ -3501,9 +3698,9 @@ const FundingSourcesApiFactory = function (configuration, basePath, axios) {
3501
3698
  const localVarFp = (0, exports.FundingSourcesApiFp)(configuration);
3502
3699
  return {
3503
3700
  /**
3504
- * Retrieve a funding source, identified by the given `id` in the URL
3701
+ * Retrieve a funding source, identified by the given `id` in the URL. You can also use the special keyword `BALANCE` (case-insensitive) to retrieve the organization\'s balance funding source.
3505
3702
  * @summary Retrieve funding source
3506
- * @param {string} id ID of the funding source that should be retrieved
3703
+ * @param {string} id ID of the funding source that should be retrieved. Can also use \"BALANCE\" (case-insensitive) to retrieve the organization\'s balance funding source.
3507
3704
  * @param {*} [options] Override http request option.
3508
3705
  * @throws {RequiredError}
3509
3706
  */
@@ -3530,9 +3727,9 @@ exports.FundingSourcesApiFactory = FundingSourcesApiFactory;
3530
3727
  */
3531
3728
  class FundingSourcesApi extends base_1.BaseAPI {
3532
3729
  /**
3533
- * Retrieve a funding source, identified by the given `id` in the URL
3730
+ * Retrieve a funding source, identified by the given `id` in the URL. You can also use the special keyword `BALANCE` (case-insensitive) to retrieve the organization\'s balance funding source.
3534
3731
  * @summary Retrieve funding source
3535
- * @param {string} id ID of the funding source that should be retrieved
3732
+ * @param {string} id ID of the funding source that should be retrieved. Can also use \"BALANCE\" (case-insensitive) to retrieve the organization\'s balance funding source.
3536
3733
  * @param {*} [options] Override http request option.
3537
3734
  * @throws {RequiredError}
3538
3735
  * @memberof FundingSourcesApi
@@ -3559,7 +3756,7 @@ exports.FundingSourcesApi = FundingSourcesApi;
3559
3756
  const InvoicesApiAxiosParamCreator = function (configuration) {
3560
3757
  return {
3561
3758
  /**
3562
- * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice in USD</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3759
+ * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3563
3760
  * @summary Create invoice
3564
3761
  * @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
3565
3762
  * @param {*} [options] Override http request option.
@@ -3766,7 +3963,7 @@ const InvoicesApiFp = function (configuration) {
3766
3963
  const localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
3767
3964
  return {
3768
3965
  /**
3769
- * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice in USD</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3966
+ * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3770
3967
  * @summary Create invoice
3771
3968
  * @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
3772
3969
  * @param {*} [options] Override http request option.
@@ -3873,7 +4070,7 @@ const InvoicesApiFactory = function (configuration, basePath, axios) {
3873
4070
  const localVarFp = (0, exports.InvoicesApiFp)(configuration);
3874
4071
  return {
3875
4072
  /**
3876
- * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice in USD</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
4073
+ * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3877
4074
  * @summary Create invoice
3878
4075
  * @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
3879
4076
  * @param {*} [options] Override http request option.
@@ -3944,7 +4141,7 @@ exports.InvoicesApiFactory = InvoicesApiFactory;
3944
4141
  */
3945
4142
  class InvoicesApi extends base_1.BaseAPI {
3946
4143
  /**
3947
- * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice in USD</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
4144
+ * Creating an invoice is the way for your organization to fund your account\'s balance. 1. Create an invoice 2. Pay the invoice 3. Funds get added to your account\'s balance ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">po_number</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference to the purchase order number within your organization</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the invoice</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">memo</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>A note to be included in the invoice. This is for your internal use and will not be visible to the recipient.</p> </td></tr> </tbody> </table> </div>
3948
4145
  * @summary Create invoice
3949
4146
  * @param {CreateInvoiceRequest} createInvoiceRequest Invoice details
3950
4147
  * @param {*} [options] Override http request option.
@@ -5834,6 +6031,250 @@ class RolesApi extends base_1.BaseAPI {
5834
6031
  }
5835
6032
  }
5836
6033
  exports.RolesApi = RolesApi;
6034
+ /**
6035
+ * TopupsApi - axios parameter creator
6036
+ * @export
6037
+ */
6038
+ const TopupsApiAxiosParamCreator = function (configuration) {
6039
+ return {
6040
+ /**
6041
+ *
6042
+ * @summary Create a topup
6043
+ * @param {CreateTopupRequest} [createTopupRequest] Parameters required to create a new topup. The &#x60;idempotency_key&#x60; should be unique for each request.
6044
+ * @param {*} [options] Override http request option.
6045
+ * @throws {RequiredError}
6046
+ */
6047
+ createTopup: (createTopupRequest_1, ...args_1) => __awaiter(this, [createTopupRequest_1, ...args_1], void 0, function* (createTopupRequest, options = {}) {
6048
+ const localVarPath = `/topups`;
6049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6050
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6051
+ let baseOptions;
6052
+ if (configuration) {
6053
+ baseOptions = configuration.baseOptions;
6054
+ }
6055
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6056
+ const localVarHeaderParameter = {};
6057
+ const localVarQueryParameter = {};
6058
+ // authentication BearerApiKey required
6059
+ // http bearer authentication required
6060
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6061
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6062
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6063
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6064
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6065
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTopupRequest, localVarRequestOptions, configuration);
6066
+ return {
6067
+ url: (0, common_1.toPathString)(localVarUrlObj),
6068
+ options: localVarRequestOptions,
6069
+ };
6070
+ }),
6071
+ /**
6072
+ * Retrieve a topup, identified by the given `id` in the URL.
6073
+ * @summary Retrieve single topup
6074
+ * @param {string} id ID of the topup request that should be retrieved
6075
+ * @param {*} [options] Override http request option.
6076
+ * @throws {RequiredError}
6077
+ */
6078
+ getTopup: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
6079
+ // verify required parameter 'id' is not null or undefined
6080
+ (0, common_1.assertParamExists)('getTopup', 'id', id);
6081
+ const localVarPath = `/topups/{id}`
6082
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6084
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6085
+ let baseOptions;
6086
+ if (configuration) {
6087
+ baseOptions = configuration.baseOptions;
6088
+ }
6089
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6090
+ const localVarHeaderParameter = {};
6091
+ const localVarQueryParameter = {};
6092
+ // authentication BearerApiKey required
6093
+ // http bearer authentication required
6094
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6095
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6097
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6098
+ return {
6099
+ url: (0, common_1.toPathString)(localVarUrlObj),
6100
+ options: localVarRequestOptions,
6101
+ };
6102
+ }),
6103
+ /**
6104
+ * Retrieve a list of all topup requests.
6105
+ * @summary List topups
6106
+ * @param {number} [offset] Offsets the returned list by the given number of topups. The returned topups are ordered and offset by their creation date (DESC).
6107
+ * @param {*} [options] Override http request option.
6108
+ * @throws {RequiredError}
6109
+ */
6110
+ listTopups: (offset_1, ...args_1) => __awaiter(this, [offset_1, ...args_1], void 0, function* (offset, options = {}) {
6111
+ const localVarPath = `/topups`;
6112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6113
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6114
+ let baseOptions;
6115
+ if (configuration) {
6116
+ baseOptions = configuration.baseOptions;
6117
+ }
6118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6119
+ const localVarHeaderParameter = {};
6120
+ const localVarQueryParameter = {};
6121
+ // authentication BearerApiKey required
6122
+ // http bearer authentication required
6123
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6124
+ if (offset !== undefined) {
6125
+ localVarQueryParameter['offset'] = offset;
6126
+ }
6127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6130
+ return {
6131
+ url: (0, common_1.toPathString)(localVarUrlObj),
6132
+ options: localVarRequestOptions,
6133
+ };
6134
+ }),
6135
+ };
6136
+ };
6137
+ exports.TopupsApiAxiosParamCreator = TopupsApiAxiosParamCreator;
6138
+ /**
6139
+ * TopupsApi - functional programming interface
6140
+ * @export
6141
+ */
6142
+ const TopupsApiFp = function (configuration) {
6143
+ const localVarAxiosParamCreator = (0, exports.TopupsApiAxiosParamCreator)(configuration);
6144
+ return {
6145
+ /**
6146
+ *
6147
+ * @summary Create a topup
6148
+ * @param {CreateTopupRequest} [createTopupRequest] Parameters required to create a new topup. The &#x60;idempotency_key&#x60; should be unique for each request.
6149
+ * @param {*} [options] Override http request option.
6150
+ * @throws {RequiredError}
6151
+ */
6152
+ createTopup(createTopupRequest, options) {
6153
+ return __awaiter(this, void 0, void 0, function* () {
6154
+ var _a, _b, _c;
6155
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTopup(createTopupRequest, options);
6156
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6157
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopupsApi.createTopup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6158
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6159
+ });
6160
+ },
6161
+ /**
6162
+ * Retrieve a topup, identified by the given `id` in the URL.
6163
+ * @summary Retrieve single topup
6164
+ * @param {string} id ID of the topup request that should be retrieved
6165
+ * @param {*} [options] Override http request option.
6166
+ * @throws {RequiredError}
6167
+ */
6168
+ getTopup(id, options) {
6169
+ return __awaiter(this, void 0, void 0, function* () {
6170
+ var _a, _b, _c;
6171
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopup(id, options);
6172
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6173
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopupsApi.getTopup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6175
+ });
6176
+ },
6177
+ /**
6178
+ * Retrieve a list of all topup requests.
6179
+ * @summary List topups
6180
+ * @param {number} [offset] Offsets the returned list by the given number of topups. The returned topups are ordered and offset by their creation date (DESC).
6181
+ * @param {*} [options] Override http request option.
6182
+ * @throws {RequiredError}
6183
+ */
6184
+ listTopups(offset, options) {
6185
+ return __awaiter(this, void 0, void 0, function* () {
6186
+ var _a, _b, _c;
6187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopups(offset, options);
6188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6189
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TopupsApi.listTopups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6190
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6191
+ });
6192
+ },
6193
+ };
6194
+ };
6195
+ exports.TopupsApiFp = TopupsApiFp;
6196
+ /**
6197
+ * TopupsApi - factory interface
6198
+ * @export
6199
+ */
6200
+ const TopupsApiFactory = function (configuration, basePath, axios) {
6201
+ const localVarFp = (0, exports.TopupsApiFp)(configuration);
6202
+ return {
6203
+ /**
6204
+ *
6205
+ * @summary Create a topup
6206
+ * @param {CreateTopupRequest} [createTopupRequest] Parameters required to create a new topup. The &#x60;idempotency_key&#x60; should be unique for each request.
6207
+ * @param {*} [options] Override http request option.
6208
+ * @throws {RequiredError}
6209
+ */
6210
+ createTopup(createTopupRequest, options) {
6211
+ return localVarFp.createTopup(createTopupRequest, options).then((request) => request(axios, basePath));
6212
+ },
6213
+ /**
6214
+ * Retrieve a topup, identified by the given `id` in the URL.
6215
+ * @summary Retrieve single topup
6216
+ * @param {string} id ID of the topup request that should be retrieved
6217
+ * @param {*} [options] Override http request option.
6218
+ * @throws {RequiredError}
6219
+ */
6220
+ getTopup(id, options) {
6221
+ return localVarFp.getTopup(id, options).then((request) => request(axios, basePath));
6222
+ },
6223
+ /**
6224
+ * Retrieve a list of all topup requests.
6225
+ * @summary List topups
6226
+ * @param {number} [offset] Offsets the returned list by the given number of topups. The returned topups are ordered and offset by their creation date (DESC).
6227
+ * @param {*} [options] Override http request option.
6228
+ * @throws {RequiredError}
6229
+ */
6230
+ listTopups(offset, options) {
6231
+ return localVarFp.listTopups(offset, options).then((request) => request(axios, basePath));
6232
+ },
6233
+ };
6234
+ };
6235
+ exports.TopupsApiFactory = TopupsApiFactory;
6236
+ /**
6237
+ * TopupsApi - object-oriented interface
6238
+ * @export
6239
+ * @class TopupsApi
6240
+ * @extends {BaseAPI}
6241
+ */
6242
+ class TopupsApi extends base_1.BaseAPI {
6243
+ /**
6244
+ *
6245
+ * @summary Create a topup
6246
+ * @param {CreateTopupRequest} [createTopupRequest] Parameters required to create a new topup. The &#x60;idempotency_key&#x60; should be unique for each request.
6247
+ * @param {*} [options] Override http request option.
6248
+ * @throws {RequiredError}
6249
+ * @memberof TopupsApi
6250
+ */
6251
+ createTopup(createTopupRequest, options) {
6252
+ return (0, exports.TopupsApiFp)(this.configuration).createTopup(createTopupRequest, options).then((request) => request(this.axios, this.basePath));
6253
+ }
6254
+ /**
6255
+ * Retrieve a topup, identified by the given `id` in the URL.
6256
+ * @summary Retrieve single topup
6257
+ * @param {string} id ID of the topup request that should be retrieved
6258
+ * @param {*} [options] Override http request option.
6259
+ * @throws {RequiredError}
6260
+ * @memberof TopupsApi
6261
+ */
6262
+ getTopup(id, options) {
6263
+ return (0, exports.TopupsApiFp)(this.configuration).getTopup(id, options).then((request) => request(this.axios, this.basePath));
6264
+ }
6265
+ /**
6266
+ * Retrieve a list of all topup requests.
6267
+ * @summary List topups
6268
+ * @param {number} [offset] Offsets the returned list by the given number of topups. The returned topups are ordered and offset by their creation date (DESC).
6269
+ * @param {*} [options] Override http request option.
6270
+ * @throws {RequiredError}
6271
+ * @memberof TopupsApi
6272
+ */
6273
+ listTopups(offset, options) {
6274
+ return (0, exports.TopupsApiFp)(this.configuration).listTopups(offset, options).then((request) => request(this.axios, this.basePath));
6275
+ }
6276
+ }
6277
+ exports.TopupsApi = TopupsApi;
5837
6278
  /**
5838
6279
  * WebhooksApi - axios parameter creator
5839
6280
  * @export