tremendous_ruby 5.10.0 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tremendous/api/tremendous_api.rb +8 -5
  3. data/lib/tremendous/api_client.rb +1 -1
  4. data/lib/tremendous/api_error.rb +1 -1
  5. data/lib/tremendous/configuration.rb +1 -1
  6. data/lib/tremendous/models/allow_email.rb +20 -4
  7. data/lib/tremendous/models/allow_email1.rb +20 -4
  8. data/lib/tremendous/models/allow_ip.rb +20 -4
  9. data/lib/tremendous/models/allow_ip1.rb +20 -4
  10. data/lib/tremendous/models/balance_transaction.rb +60 -4
  11. data/lib/tremendous/models/balance_transaction_order.rb +10 -4
  12. data/lib/tremendous/models/balance_transaction_order_payment.rb +10 -4
  13. data/lib/tremendous/models/base_order_for_create.rb +20 -4
  14. data/lib/tremendous/models/campaign.rb +30 -4
  15. data/lib/tremendous/models/campaign_base.rb +10 -4
  16. data/lib/tremendous/models/channel.rb +3 -2
  17. data/lib/tremendous/models/connected_organization.rb +30 -4
  18. data/lib/tremendous/models/connected_organization_member.rb +20 -4
  19. data/lib/tremendous/models/connected_organization_member_member.rb +20 -4
  20. data/lib/tremendous/models/connected_organization_member_session.rb +50 -4
  21. data/lib/tremendous/models/connected_organization_organization.rb +30 -4
  22. data/lib/tremendous/models/create_api_key200_response.rb +10 -4
  23. data/lib/tremendous/models/create_campaign200_response.rb +20 -4
  24. data/lib/tremendous/models/create_campaign_request.rb +30 -4
  25. data/lib/tremendous/models/create_connected_organization200_response.rb +20 -4
  26. data/lib/tremendous/models/create_connected_organization_member200_response.rb +20 -4
  27. data/lib/tremendous/models/create_connected_organization_member_request.rb +20 -4
  28. data/lib/tremendous/models/create_connected_organization_member_session200_response.rb +20 -4
  29. data/lib/tremendous/models/create_connected_organization_member_session200_response_connected_organization_member_session.rb +50 -4
  30. data/lib/tremendous/models/create_connected_organization_member_session_request.rb +20 -4
  31. data/lib/tremendous/models/create_connected_organization_request.rb +20 -4
  32. data/lib/tremendous/models/create_invoice200_response.rb +20 -4
  33. data/lib/tremendous/models/create_invoice_request.rb +20 -4
  34. data/lib/tremendous/models/create_member.rb +30 -4
  35. data/lib/tremendous/models/create_member200_response.rb +20 -4
  36. data/lib/tremendous/models/create_member_request.rb +30 -4
  37. data/lib/tremendous/models/create_order200_response.rb +20 -4
  38. data/lib/tremendous/models/create_order200_response_order.rb +22 -6
  39. data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +10 -4
  40. data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +10 -4
  41. data/lib/tremendous/models/create_order_request.rb +1 -1
  42. data/lib/tremendous/models/create_organization.rb +40 -4
  43. data/lib/tremendous/models/create_organization200_response.rb +10 -4
  44. data/lib/tremendous/models/create_organization200_response_organization.rb +30 -4
  45. data/lib/tremendous/models/create_organization_for_response.rb +30 -4
  46. data/lib/tremendous/models/create_organization_properties.rb +10 -4
  47. data/lib/tremendous/models/create_organization_request.rb +40 -4
  48. data/lib/tremendous/models/create_organization_request_copy_settings.rb +10 -4
  49. data/lib/tremendous/models/create_report200_response.rb +20 -4
  50. data/lib/tremendous/models/create_report200_response_report.rb +10 -4
  51. data/lib/tremendous/models/create_report_request.rb +10 -4
  52. data/lib/tremendous/models/create_report_request_filters.rb +10 -4
  53. data/lib/tremendous/models/create_report_request_filters_digital_rewards.rb +10 -4
  54. data/lib/tremendous/models/create_report_request_filters_digital_rewards_amount.rb +10 -4
  55. data/lib/tremendous/models/create_report_request_filters_digital_rewards_created_at.rb +10 -4
  56. data/lib/tremendous/models/create_webhook200_response.rb +10 -4
  57. data/lib/tremendous/models/create_webhook_request.rb +20 -4
  58. data/lib/tremendous/models/currency_codes.rb +1 -1
  59. data/lib/tremendous/models/custom_field.rb +10 -4
  60. data/lib/tremendous/models/delete_fraud_rule200_response.rb +20 -4
  61. data/lib/tremendous/models/delivery_details.rb +10 -4
  62. data/lib/tremendous/models/delivery_details_with_link.rb +10 -4
  63. data/lib/tremendous/models/delivery_metadata.rb +10 -4
  64. data/lib/tremendous/models/delivery_method.rb +1 -1
  65. data/lib/tremendous/models/delivery_status.rb +1 -1
  66. data/lib/tremendous/models/error_model.rb +20 -4
  67. data/lib/tremendous/models/field.rb +10 -4
  68. data/lib/tremendous/models/fraud_config_allow_email.rb +20 -4
  69. data/lib/tremendous/models/fraud_config_country.rb +20 -4
  70. data/lib/tremendous/models/fraud_config_country_update_list.rb +20 -4
  71. data/lib/tremendous/models/fraud_config_ip.rb +20 -4
  72. data/lib/tremendous/models/fraud_config_redeemed_rewards_amount.rb +10 -4
  73. data/lib/tremendous/models/fraud_config_redeemed_rewards_count.rb +10 -4
  74. data/lib/tremendous/models/fraud_config_review_email.rb +10 -4
  75. data/lib/tremendous/models/fraud_generic_response.rb +20 -4
  76. data/lib/tremendous/models/fraud_review.rb +10 -4
  77. data/lib/tremendous/models/fraud_review_geo.rb +10 -4
  78. data/lib/tremendous/models/fraud_review_list_item.rb +10 -4
  79. data/lib/tremendous/models/fraud_review_reason.rb +1 -1
  80. data/lib/tremendous/models/fraud_review_redemption_method.rb +1 -1
  81. data/lib/tremendous/models/fraud_review_related_rewards.rb +10 -4
  82. data/lib/tremendous/models/fraud_review_risk.rb +1 -1
  83. data/lib/tremendous/models/fraud_review_status.rb +1 -1
  84. data/lib/tremendous/models/fraud_rule200_response.rb +20 -4
  85. data/lib/tremendous/models/fraud_rule400_response.rb +20 -4
  86. data/lib/tremendous/models/fraud_rule422_response.rb +20 -4
  87. data/lib/tremendous/models/fraud_rule_request.rb +10 -4
  88. data/lib/tremendous/models/fraud_rule_request_config.rb +1 -1
  89. data/lib/tremendous/models/fraud_rule_type.rb +1 -1
  90. data/lib/tremendous/models/fraud_rules_list_item.rb +10 -4
  91. data/lib/tremendous/models/funding_source.rb +22 -6
  92. data/lib/tremendous/models/generate_reward_link200_response.rb +20 -4
  93. data/lib/tremendous/models/generate_reward_link200_response_reward.rb +10 -4
  94. data/lib/tremendous/models/generate_reward_link403_response.rb +20 -4
  95. data/lib/tremendous/models/get_fraud_review200_response.rb +20 -4
  96. data/lib/tremendous/models/get_fraud_review200_response_fraud_review.rb +10 -4
  97. data/lib/tremendous/models/get_fraud_review200_response_fraud_review_geo.rb +10 -4
  98. data/lib/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.rb +10 -4
  99. data/lib/tremendous/models/get_funding_source200_response.rb +20 -4
  100. data/lib/tremendous/models/get_member200_response.rb +20 -4
  101. data/lib/tremendous/models/get_member200_response_member.rb +20 -4
  102. data/lib/tremendous/models/get_member200_response_member_events_inner.rb +10 -4
  103. data/lib/tremendous/models/get_order200_response.rb +20 -4
  104. data/lib/tremendous/models/get_organization200_response.rb +10 -4
  105. data/lib/tremendous/models/get_product_response.rb +20 -4
  106. data/lib/tremendous/models/get_reward200_response.rb +20 -4
  107. data/lib/tremendous/models/inline_object.rb +231 -0
  108. data/lib/tremendous/models/inline_object1.rb +237 -0
  109. data/lib/tremendous/models/inline_object1_reward.rb +263 -0
  110. data/lib/tremendous/models/invoice.rb +40 -4
  111. data/lib/tremendous/models/list_balance_transactions200_response.rb +20 -4
  112. data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner.rb +60 -4
  113. data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order.rb +10 -4
  114. data/lib/tremendous/models/list_balance_transactions200_response_transactions_inner_order_payment.rb +10 -4
  115. data/lib/tremendous/models/list_campaigns200_response.rb +20 -4
  116. data/lib/tremendous/models/list_campaigns200_response_campaigns_inner.rb +30 -4
  117. data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.rb +10 -4
  118. data/lib/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.rb +10 -4
  119. data/lib/tremendous/models/list_connected_organization_members200_response.rb +30 -4
  120. data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner.rb +20 -4
  121. data/lib/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner_member.rb +20 -4
  122. data/lib/tremendous/models/list_connected_organizations200_response.rb +30 -4
  123. data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.rb +30 -4
  124. data/lib/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.rb +30 -4
  125. data/lib/tremendous/models/list_fields200_response.rb +10 -4
  126. data/lib/tremendous/models/list_fields200_response_fields_inner.rb +10 -4
  127. data/lib/tremendous/models/list_forex_response.rb +20 -4
  128. data/lib/tremendous/models/list_fraud_reviews200_response.rb +30 -4
  129. data/lib/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.rb +10 -4
  130. data/lib/tremendous/models/list_fraud_rules200_response.rb +20 -4
  131. data/lib/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.rb +10 -4
  132. data/lib/tremendous/models/list_funding_sources200_response.rb +20 -4
  133. data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner.rb +22 -6
  134. data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.rb +144 -6
  135. data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.rb +10 -4
  136. data/lib/tremendous/models/list_invoices200_response.rb +30 -4
  137. data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +40 -4
  138. data/lib/tremendous/models/list_members200_response.rb +20 -4
  139. data/lib/tremendous/models/list_members200_response_members_inner.rb +20 -4
  140. data/lib/tremendous/models/list_orders200_response.rb +30 -4
  141. data/lib/tremendous/models/list_orders200_response_orders_inner.rb +22 -6
  142. data/lib/tremendous/models/list_orders200_response_orders_inner_payment.rb +10 -4
  143. data/lib/tremendous/models/list_orders200_response_orders_inner_payment_refund.rb +10 -4
  144. data/lib/tremendous/models/list_organizations200_response.rb +10 -4
  145. data/lib/tremendous/models/list_organizations200_response_organizations_inner.rb +30 -4
  146. data/lib/tremendous/models/list_products_response.rb +20 -4
  147. data/lib/tremendous/models/list_products_response_products_inner.rb +40 -4
  148. data/lib/tremendous/models/list_products_response_products_inner_countries_inner.rb +20 -4
  149. data/lib/tremendous/models/list_products_response_products_inner_documents.rb +10 -4
  150. data/lib/tremendous/models/list_products_response_products_inner_images_inner.rb +20 -4
  151. data/lib/tremendous/models/list_products_response_products_inner_skus_inner.rb +10 -4
  152. data/lib/tremendous/models/list_rewards200_response.rb +10 -4
  153. data/lib/tremendous/models/list_rewards200_response_rewards_inner.rb +10 -4
  154. data/lib/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.rb +10 -4
  155. data/lib/tremendous/models/list_rewards200_response_rewards_inner_delivery.rb +10 -4
  156. data/lib/tremendous/models/list_rewards200_response_rewards_inner_recipient.rb +10 -4
  157. data/lib/tremendous/models/list_rewards200_response_rewards_inner_value.rb +20 -4
  158. data/lib/tremendous/models/list_rewards401_response.rb +20 -4
  159. data/lib/tremendous/models/list_rewards401_response_errors.rb +10 -4
  160. data/lib/tremendous/models/list_rewards429_response.rb +20 -4
  161. data/lib/tremendous/models/list_roles200_response.rb +20 -4
  162. data/lib/tremendous/models/list_roles200_response_roles_inner.rb +30 -4
  163. data/lib/tremendous/models/list_webhook_events200_response.rb +10 -4
  164. data/lib/tremendous/models/list_webhooks200_response.rb +10 -4
  165. data/lib/tremendous/models/list_webhooks200_response_webhooks_inner.rb +10 -4
  166. data/lib/tremendous/models/member.rb +20 -4
  167. data/lib/tremendous/models/member_base.rb +20 -4
  168. data/lib/tremendous/models/member_with_events.rb +20 -4
  169. data/lib/tremendous/models/member_without_events.rb +20 -4
  170. data/lib/tremendous/models/order.rb +22 -6
  171. data/lib/tremendous/models/order_base.rb +22 -6
  172. data/lib/tremendous/models/order_base_payment.rb +10 -4
  173. data/lib/tremendous/models/order_status.rb +1 -1
  174. data/lib/tremendous/models/order_with_link.rb +22 -6
  175. data/lib/tremendous/models/order_with_link_rewards_inner.rb +10 -4
  176. data/lib/tremendous/models/order_without_link.rb +22 -6
  177. data/lib/tremendous/models/order_without_link_rewards_inner.rb +10 -4
  178. data/lib/tremendous/models/organization.rb +30 -4
  179. data/lib/tremendous/models/payment_details.rb +10 -4
  180. data/lib/tremendous/models/payment_details_refund.rb +10 -4
  181. data/lib/tremendous/models/payout.rb +10 -4
  182. data/lib/tremendous/models/product.rb +40 -4
  183. data/lib/tremendous/models/product_documents.rb +10 -4
  184. data/lib/tremendous/models/recipient.rb +10 -4
  185. data/lib/tremendous/models/refund_details.rb +10 -4
  186. data/lib/tremendous/models/report.rb +10 -4
  187. data/lib/tremendous/models/resend_reward422_response.rb +20 -4
  188. data/lib/tremendous/models/resend_reward_request.rb +10 -4
  189. data/lib/tremendous/models/review_country.rb +20 -4
  190. data/lib/tremendous/models/review_country1.rb +20 -4
  191. data/lib/tremendous/models/review_email.rb +10 -4
  192. data/lib/tremendous/models/review_email1.rb +10 -4
  193. data/lib/tremendous/models/review_ip.rb +20 -4
  194. data/lib/tremendous/models/review_ip1.rb +20 -4
  195. data/lib/tremendous/models/review_redeemed_rewards_amount.rb +10 -4
  196. data/lib/tremendous/models/review_redeemed_rewards_count.rb +10 -4
  197. data/lib/tremendous/models/reward.rb +10 -4
  198. data/lib/tremendous/models/reward_base.rb +10 -4
  199. data/lib/tremendous/models/reward_base_custom_fields_inner.rb +10 -4
  200. data/lib/tremendous/models/reward_for_order_create.rb +10 -4
  201. data/lib/tremendous/models/reward_link.rb +10 -4
  202. data/lib/tremendous/models/reward_token.rb +10 -4
  203. data/lib/tremendous/models/reward_value.rb +20 -4
  204. data/lib/tremendous/models/reward_with_link.rb +10 -4
  205. data/lib/tremendous/models/reward_with_link_delivery.rb +10 -4
  206. data/lib/tremendous/models/reward_without_link.rb +10 -4
  207. data/lib/tremendous/models/reward_without_link_delivery.rb +10 -4
  208. data/lib/tremendous/models/role.rb +30 -4
  209. data/lib/tremendous/models/simulate_webhook_request.rb +20 -4
  210. data/lib/tremendous/models/single_reward_order.rb +20 -4
  211. data/lib/tremendous/models/single_reward_order_payment.rb +20 -4
  212. data/lib/tremendous/models/single_reward_order_reward.rb +10 -4
  213. data/lib/tremendous/models/single_reward_order_reward_custom_fields_inner.rb +10 -4
  214. data/lib/tremendous/models/single_reward_order_reward_delivery.rb +10 -4
  215. data/lib/tremendous/models/single_reward_order_reward_delivery_meta.rb +10 -4
  216. data/lib/tremendous/models/single_reward_order_with_link.rb +20 -4
  217. data/lib/tremendous/models/single_reward_order_with_link_order.rb +22 -6
  218. data/lib/tremendous/models/single_reward_order_without_link.rb +20 -4
  219. data/lib/tremendous/models/single_reward_order_without_link_order.rb +22 -6
  220. data/lib/tremendous/models/update_campaign.rb +10 -4
  221. data/lib/tremendous/models/update_campaign_request.rb +10 -4
  222. data/lib/tremendous/models/update_fraud_rule_list200_response.rb +20 -4
  223. data/lib/tremendous/models/update_fraud_rule_list_request.rb +20 -4
  224. data/lib/tremendous/models/update_fraud_rule_list_request_config.rb +1 -1
  225. data/lib/tremendous/models/webhook.rb +10 -4
  226. data/lib/tremendous/models/webhook_post.rb +20 -4
  227. data/lib/tremendous/version.rb +1 -1
  228. data/lib/tremendous.rb +4 -1
  229. metadata +5 -2
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -24,9 +24,14 @@ module Tremendous
24
24
  }
25
25
  end
26
26
 
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
27
32
  # Returns all the JSON keys this model knows about
28
33
  def self.acceptable_attributes
29
- attribute_map.values
34
+ acceptable_attribute_map.values
30
35
  end
31
36
 
32
37
  # Attribute type mapping.
@@ -50,9 +55,10 @@ module Tremendous
50
55
  end
51
56
 
52
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
53
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudRules200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudRules200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
56
62
  end
57
63
  h[k.to_sym] = v
58
64
  }
@@ -86,6 +92,16 @@ module Tremendous
86
92
  true
87
93
  end
88
94
 
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] fraud_rules Value to be assigned
97
+ def fraud_rules=(fraud_rules)
98
+ if fraud_rules.nil?
99
+ fail ArgumentError, 'fraud_rules cannot be nil'
100
+ end
101
+
102
+ @fraud_rules = fraud_rules
103
+ end
104
+
89
105
  # Checks equality by comparing each attribute.
90
106
  # @param [Object] Object to be compared
91
107
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -52,9 +52,14 @@ module Tremendous
52
52
  }
53
53
  end
54
54
 
55
+ # Returns attribute mapping this model knows about
56
+ def self.acceptable_attribute_map
57
+ attribute_map
58
+ end
59
+
55
60
  # Returns all the JSON keys this model knows about
56
61
  def self.acceptable_attributes
57
- attribute_map.values
62
+ acceptable_attribute_map.values
58
63
  end
59
64
 
60
65
  # Attribute type mapping.
@@ -80,9 +85,10 @@ module Tremendous
80
85
  end
81
86
 
82
87
  # check to see if the attribute exists and convert string to symbol for hash key
88
+ acceptable_attribute_map = self.class.acceptable_attribute_map
83
89
  attributes = attributes.each_with_object({}) { |(k, v), h|
84
- if (!self.class.attribute_map.key?(k.to_sym))
85
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudRules200ResponseFraudRulesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
+ if (!acceptable_attribute_map.key?(k.to_sym))
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFraudRules200ResponseFraudRulesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
92
  end
87
93
  h[k.to_sym] = v
88
94
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -24,9 +24,14 @@ module Tremendous
24
24
  }
25
25
  end
26
26
 
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
27
32
  # Returns all the JSON keys this model knows about
28
33
  def self.acceptable_attributes
29
- attribute_map.values
34
+ acceptable_attribute_map.values
30
35
  end
31
36
 
32
37
  # Attribute type mapping.
@@ -50,9 +55,10 @@ module Tremendous
50
55
  end
51
56
 
52
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
53
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
- if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
56
62
  end
57
63
  h[k.to_sym] = v
58
64
  }
@@ -86,6 +92,16 @@ module Tremendous
86
92
  true
87
93
  end
88
94
 
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] funding_sources Value to be assigned
97
+ def funding_sources=(funding_sources)
98
+ if funding_sources.nil?
99
+ fail ArgumentError, 'funding_sources cannot be nil'
100
+ end
101
+
102
+ @funding_sources = funding_sources
103
+ end
104
+
89
105
  # Checks equality by comparing each attribute.
90
106
  # @param [Object] Object to be compared
91
107
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -21,10 +21,10 @@ module Tremendous
21
21
  # You can pay for rewards using different payment methods on Tremendous: <table> <thead> <tr> <th>Payment Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>balance</code></td> <td>Pre-funded balance in your Tremendous account to draw funds from to send rewards to recipients.</td> </tr> <tr> <td><code>bank_account</code></td> <td>Bank account to draw funds from to send rewards to recipients.</td> </tr> <tr> <td><code>credit_card</code></td> <td>Credit card to draw funds from to send rewards to recipients.</td> </tr> <tr> <td><code>invoice</code></td> <td>Send rewards to recipients and pay by invoice.</td> </tr> </tbody> </table>
22
22
  attr_accessor :method
23
23
 
24
- # Indicates the level of access granted for using this funding source. Permissions is an array containing the following: * `api_orders` * `dashboard_orders` * `balance_funding`
24
+ # Indicates which actions this funding source can perform. <table> <thead> <tr> <th>Permission</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>api_orders</code></td> <td>Usable for orders via API.</td> </tr> <tr> <td><code>dashboard_orders</code></td> <td>Usable for orders via Tremendous dashboard.</td> </tr> <tr> <td><code>balance_funding</code></td> <td>Usable to add funds to a balance (via dashboard or API).</td> </tr> </tbody> </table>
25
25
  attr_accessor :usage_permissions
26
26
 
27
- # Status of the funding_source
27
+ # Status of the funding_source <table> <thead> <tr> <th>Status</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>active</code></td> <td>Ready for use.</td> </tr> <tr> <td><code>deleted</code></td> <td>Manually removed, and not usable.</td> </tr> <tr> <td><code>pending_confirmation</code></td> <td>Awaiting verification of ownership.</td> </tr> <tr> <td><code>failed</code></td> <td>Last payment attempt failed, and not usable (contact Tremendous support to reinstate).</td> </tr> </tbody> </table>
28
28
  attr_accessor :status
29
29
 
30
30
  # **Only available when `method` is set to `invoice`.**
@@ -66,9 +66,14 @@ module Tremendous
66
66
  }
67
67
  end
68
68
 
69
+ # Returns attribute mapping this model knows about
70
+ def self.acceptable_attribute_map
71
+ attribute_map
72
+ end
73
+
69
74
  # Returns all the JSON keys this model knows about
70
75
  def self.acceptable_attributes
71
- attribute_map.values
76
+ acceptable_attribute_map.values
72
77
  end
73
78
 
74
79
  # Attribute type mapping.
@@ -97,9 +102,10 @@ module Tremendous
97
102
  end
98
103
 
99
104
  # check to see if the attribute exists and convert string to symbol for hash key
105
+ acceptable_attribute_map = self.class.acceptable_attribute_map
100
106
  attributes = attributes.each_with_object({}) { |(k, v), h|
101
- if (!self.class.attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
107
+ if (!acceptable_attribute_map.key?(k.to_sym))
108
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
109
  end
104
110
  h[k.to_sym] = v
105
111
  }
@@ -224,6 +230,16 @@ module Tremendous
224
230
  @type = type
225
231
  end
226
232
 
233
+ # Custom attribute writer method with validation
234
+ # @param [Object] meta Value to be assigned
235
+ def meta=(meta)
236
+ if meta.nil?
237
+ fail ArgumentError, 'meta cannot be nil'
238
+ end
239
+
240
+ @meta = meta
241
+ end
242
+
227
243
  # Checks equality by comparing each attribute.
228
244
  # @param [Object] Object to be compared
229
245
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -15,12 +15,15 @@ require 'time'
15
15
 
16
16
  module Tremendous
17
17
  class ListFundingSources200ResponseFundingSourcesInnerMeta
18
- # **Only available when `method` is set to `balance`.** Available amount for this funding source (in Cents USD)
18
+ # **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)
19
19
  attr_accessor :available_cents
20
20
 
21
21
  # **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. unpaid invoices) (in Cents USD).
22
22
  attr_accessor :pending_cents
23
23
 
24
+ # **Only exists for commercial invoicing.** Available credit limit (in cents USD)
25
+ attr_accessor :credit_limit_cents
26
+
24
27
  # **Only available when `method` is set to `bank_account` or `credit_card`.** Name of the holder of the bank account or credit_card
25
28
  attr_accessor :accountholder_name
26
29
 
@@ -57,6 +60,42 @@ module Tremendous
57
60
  # **Only available when `method` is set to `bank_account` or `credit_card`.** Point in time when the last order failed using this bank account or credit card as a funding source.
58
61
  attr_accessor :last_payment_failed_at
59
62
 
63
+ # **Only available when `method` is set to `invoice`.** Type of invoice account (e.g., commercial, pro_forma, prefunding_only)
64
+ attr_accessor :invoice_type
65
+
66
+ # **Only available when `method` is set to `invoice` and `invoice_type` is `commercial`.** Billing interval for commercial invoice generation (e.g., daily, weekly, monthly, twice_monthly). Returns `null` for pro forma invoices.
67
+ attr_accessor :interval
68
+
69
+ # **Only available when `method` is set to `invoice` and `invoice_type` is `commercial`.** Day of the week when commercial invoices are generated (\"0\"=Sunday, \"1\"=Monday, etc.). Returns `null` for pro forma invoices.
70
+ attr_accessor :day_of_week
71
+
72
+ # **Only available when `method` is set to `invoice`.** Net payment terms in days (e.g., \"30\" for Net 30)
73
+ attr_accessor :net
74
+
75
+ # **Only available when `method` is set to `invoice`.** Company name for invoice billing
76
+ attr_accessor :company_name
77
+
78
+ # **Only available when `method` is set to `invoice`.** Primary billing address line
79
+ attr_accessor :address_1
80
+
81
+ # **Only available when `method` is set to `invoice`.** Secondary billing address line
82
+ attr_accessor :address_2
83
+
84
+ # **Only available when `method` is set to `invoice`.** Billing address city
85
+ attr_accessor :city
86
+
87
+ # **Only available when `method` is set to `invoice`.** Billing address state or province
88
+ attr_accessor :state
89
+
90
+ # **Only available when `method` is set to `invoice`.** Billing address postal code
91
+ attr_accessor :zip
92
+
93
+ # **Only available when `method` is set to `invoice`.** Contact phone number for billing
94
+ attr_accessor :phone
95
+
96
+ # **Only available when `method` is set to `invoice`.** Email addresses for invoice delivery (comma-separated)
97
+ attr_accessor :emails
98
+
60
99
  attr_accessor :failure_details
61
100
 
62
101
  class EnumAttributeValidator
@@ -86,6 +125,7 @@ module Tremendous
86
125
  {
87
126
  :'available_cents' => :'available_cents',
88
127
  :'pending_cents' => :'pending_cents',
128
+ :'credit_limit_cents' => :'credit_limit_cents',
89
129
  :'accountholder_name' => :'accountholder_name',
90
130
  :'account_type' => :'account_type',
91
131
  :'bank_name' => :'bank_name',
@@ -98,13 +138,30 @@ module Tremendous
98
138
  :'year' => :'year',
99
139
  :'month' => :'month',
100
140
  :'last_payment_failed_at' => :'last_payment_failed_at',
141
+ :'invoice_type' => :'invoice_type',
142
+ :'interval' => :'interval',
143
+ :'day_of_week' => :'day_of_week',
144
+ :'net' => :'net',
145
+ :'company_name' => :'company_name',
146
+ :'address_1' => :'address_1',
147
+ :'address_2' => :'address_2',
148
+ :'city' => :'city',
149
+ :'state' => :'state',
150
+ :'zip' => :'zip',
151
+ :'phone' => :'phone',
152
+ :'emails' => :'emails',
101
153
  :'failure_details' => :'failure_details'
102
154
  }
103
155
  end
104
156
 
157
+ # Returns attribute mapping this model knows about
158
+ def self.acceptable_attribute_map
159
+ attribute_map
160
+ end
161
+
105
162
  # Returns all the JSON keys this model knows about
106
163
  def self.acceptable_attributes
107
- attribute_map.values
164
+ acceptable_attribute_map.values
108
165
  end
109
166
 
110
167
  # Attribute type mapping.
@@ -112,6 +169,7 @@ module Tremendous
112
169
  {
113
170
  :'available_cents' => :'Integer',
114
171
  :'pending_cents' => :'Integer',
172
+ :'credit_limit_cents' => :'Integer',
115
173
  :'accountholder_name' => :'String',
116
174
  :'account_type' => :'String',
117
175
  :'bank_name' => :'String',
@@ -124,6 +182,18 @@ module Tremendous
124
182
  :'year' => :'String',
125
183
  :'month' => :'String',
126
184
  :'last_payment_failed_at' => :'Time',
185
+ :'invoice_type' => :'String',
186
+ :'interval' => :'String',
187
+ :'day_of_week' => :'String',
188
+ :'net' => :'String',
189
+ :'company_name' => :'String',
190
+ :'address_1' => :'String',
191
+ :'address_2' => :'String',
192
+ :'city' => :'String',
193
+ :'state' => :'String',
194
+ :'zip' => :'String',
195
+ :'phone' => :'String',
196
+ :'emails' => :'String',
127
197
  :'failure_details' => :'ListFundingSources200ResponseFundingSourcesInnerMetaFailureDetails'
128
198
  }
129
199
  end
@@ -133,6 +203,8 @@ module Tremendous
133
203
  Set.new([
134
204
  :'bank_name',
135
205
  :'last_payment_failed_at',
206
+ :'interval',
207
+ :'day_of_week',
136
208
  :'failure_details'
137
209
  ])
138
210
  end
@@ -145,9 +217,10 @@ module Tremendous
145
217
  end
146
218
 
147
219
  # check to see if the attribute exists and convert string to symbol for hash key
220
+ acceptable_attribute_map = self.class.acceptable_attribute_map
148
221
  attributes = attributes.each_with_object({}) { |(k, v), h|
149
- if (!self.class.attribute_map.key?(k.to_sym))
150
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInnerMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
222
+ if (!acceptable_attribute_map.key?(k.to_sym))
223
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInnerMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
151
224
  end
152
225
  h[k.to_sym] = v
153
226
  }
@@ -160,6 +233,10 @@ module Tremendous
160
233
  self.pending_cents = attributes[:'pending_cents']
161
234
  end
162
235
 
236
+ if attributes.key?(:'credit_limit_cents')
237
+ self.credit_limit_cents = attributes[:'credit_limit_cents']
238
+ end
239
+
163
240
  if attributes.key?(:'accountholder_name')
164
241
  self.accountholder_name = attributes[:'accountholder_name']
165
242
  end
@@ -208,6 +285,54 @@ module Tremendous
208
285
  self.last_payment_failed_at = attributes[:'last_payment_failed_at']
209
286
  end
210
287
 
288
+ if attributes.key?(:'invoice_type')
289
+ self.invoice_type = attributes[:'invoice_type']
290
+ end
291
+
292
+ if attributes.key?(:'interval')
293
+ self.interval = attributes[:'interval']
294
+ end
295
+
296
+ if attributes.key?(:'day_of_week')
297
+ self.day_of_week = attributes[:'day_of_week']
298
+ end
299
+
300
+ if attributes.key?(:'net')
301
+ self.net = attributes[:'net']
302
+ end
303
+
304
+ if attributes.key?(:'company_name')
305
+ self.company_name = attributes[:'company_name']
306
+ end
307
+
308
+ if attributes.key?(:'address_1')
309
+ self.address_1 = attributes[:'address_1']
310
+ end
311
+
312
+ if attributes.key?(:'address_2')
313
+ self.address_2 = attributes[:'address_2']
314
+ end
315
+
316
+ if attributes.key?(:'city')
317
+ self.city = attributes[:'city']
318
+ end
319
+
320
+ if attributes.key?(:'state')
321
+ self.state = attributes[:'state']
322
+ end
323
+
324
+ if attributes.key?(:'zip')
325
+ self.zip = attributes[:'zip']
326
+ end
327
+
328
+ if attributes.key?(:'phone')
329
+ self.phone = attributes[:'phone']
330
+ end
331
+
332
+ if attributes.key?(:'emails')
333
+ self.emails = attributes[:'emails']
334
+ end
335
+
211
336
  if attributes.key?(:'failure_details')
212
337
  self.failure_details = attributes[:'failure_details']
213
338
  end
@@ -322,6 +447,7 @@ module Tremendous
322
447
  self.class == o.class &&
323
448
  available_cents == o.available_cents &&
324
449
  pending_cents == o.pending_cents &&
450
+ credit_limit_cents == o.credit_limit_cents &&
325
451
  accountholder_name == o.accountholder_name &&
326
452
  account_type == o.account_type &&
327
453
  bank_name == o.bank_name &&
@@ -334,6 +460,18 @@ module Tremendous
334
460
  year == o.year &&
335
461
  month == o.month &&
336
462
  last_payment_failed_at == o.last_payment_failed_at &&
463
+ invoice_type == o.invoice_type &&
464
+ interval == o.interval &&
465
+ day_of_week == o.day_of_week &&
466
+ net == o.net &&
467
+ company_name == o.company_name &&
468
+ address_1 == o.address_1 &&
469
+ address_2 == o.address_2 &&
470
+ city == o.city &&
471
+ state == o.state &&
472
+ zip == o.zip &&
473
+ phone == o.phone &&
474
+ emails == o.emails &&
337
475
  failure_details == o.failure_details
338
476
  end
339
477
 
@@ -346,7 +484,7 @@ module Tremendous
346
484
  # Calculates hash code according to all attributes.
347
485
  # @return [Integer] Hash code
348
486
  def hash
349
- [available_cents, pending_cents, accountholder_name, account_type, bank_name, account_number_mask, account_routing_mask, refundable, network, last4, expired, year, month, last_payment_failed_at, failure_details].hash
487
+ [available_cents, pending_cents, credit_limit_cents, accountholder_name, account_type, bank_name, account_number_mask, account_routing_mask, refundable, network, last4, expired, year, month, last_payment_failed_at, invoice_type, interval, day_of_week, net, company_name, address_1, address_2, city, state, zip, phone, emails, failure_details].hash
350
488
  end
351
489
 
352
490
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -29,9 +29,14 @@ module Tremendous
29
29
  }
30
30
  end
31
31
 
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
32
37
  # Returns all the JSON keys this model knows about
33
38
  def self.acceptable_attributes
34
- attribute_map.values
39
+ acceptable_attribute_map.values
35
40
  end
36
41
 
37
42
  # Attribute type mapping.
@@ -56,9 +61,10 @@ module Tremendous
56
61
  end
57
62
 
58
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
65
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInnerMetaFailureDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListFundingSources200ResponseFundingSourcesInnerMetaFailureDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
68
  end
63
69
  h[k.to_sym] = v
64
70
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -28,9 +28,14 @@ module Tremendous
28
28
  }
29
29
  end
30
30
 
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
31
36
  # Returns all the JSON keys this model knows about
32
37
  def self.acceptable_attributes
33
- attribute_map.values
38
+ acceptable_attribute_map.values
34
39
  end
35
40
 
36
41
  # Attribute type mapping.
@@ -55,9 +60,10 @@ module Tremendous
55
60
  end
56
61
 
57
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
58
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
- if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListInvoices200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListInvoices200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
67
  end
62
68
  h[k.to_sym] = v
63
69
  }
@@ -102,6 +108,26 @@ module Tremendous
102
108
  true
103
109
  end
104
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] invoices Value to be assigned
113
+ def invoices=(invoices)
114
+ if invoices.nil?
115
+ fail ArgumentError, 'invoices cannot be nil'
116
+ end
117
+
118
+ @invoices = invoices
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] total_count Value to be assigned
123
+ def total_count=(total_count)
124
+ if total_count.nil?
125
+ fail ArgumentError, 'total_count cannot be nil'
126
+ end
127
+
128
+ @total_count = total_count
129
+ end
130
+
105
131
  # Checks equality by comparing each attribute.
106
132
  # @param [Object] Object to be compared
107
133
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 2
7
7
  Contact: developers@tremendous.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.12.0
10
10
 
11
11
  =end
12
12
 
@@ -79,9 +79,14 @@ module Tremendous
79
79
  }
80
80
  end
81
81
 
82
+ # Returns attribute mapping this model knows about
83
+ def self.acceptable_attribute_map
84
+ attribute_map
85
+ end
86
+
82
87
  # Returns all the JSON keys this model knows about
83
88
  def self.acceptable_attributes
84
- attribute_map.values
89
+ acceptable_attribute_map.values
85
90
  end
86
91
 
87
92
  # Attribute type mapping.
@@ -115,9 +120,10 @@ module Tremendous
115
120
  end
116
121
 
117
122
  # check to see if the attribute exists and convert string to symbol for hash key
123
+ acceptable_attribute_map = self.class.acceptable_attribute_map
118
124
  attributes = attributes.each_with_object({}) { |(k, v), h|
119
- if (!self.class.attribute_map.key?(k.to_sym))
120
- fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListInvoices200ResponseInvoicesInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
125
+ if (!acceptable_attribute_map.key?(k.to_sym))
126
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Tremendous::ListInvoices200ResponseInvoicesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
121
127
  end
122
128
  h[k.to_sym] = v
123
129
  }
@@ -210,6 +216,26 @@ module Tremendous
210
216
  true
211
217
  end
212
218
 
219
+ # Custom attribute writer method with validation
220
+ # @param [Object] id Value to be assigned
221
+ def id=(id)
222
+ if id.nil?
223
+ fail ArgumentError, 'id cannot be nil'
224
+ end
225
+
226
+ @id = id
227
+ end
228
+
229
+ # Custom attribute writer method with validation
230
+ # @param [Object] amount Value to be assigned
231
+ def amount=(amount)
232
+ if amount.nil?
233
+ fail ArgumentError, 'amount cannot be nil'
234
+ end
235
+
236
+ @amount = amount
237
+ end
238
+
213
239
  # Custom attribute writer method checking allowed values (enum).
214
240
  # @param [Object] status Object to be assigned
215
241
  def status=(status)
@@ -220,6 +246,16 @@ module Tremendous
220
246
  @status = status
221
247
  end
222
248
 
249
+ # Custom attribute writer method with validation
250
+ # @param [Object] created_at Value to be assigned
251
+ def created_at=(created_at)
252
+ if created_at.nil?
253
+ fail ArgumentError, 'created_at cannot be nil'
254
+ end
255
+
256
+ @created_at = created_at
257
+ end
258
+
223
259
  # Checks equality by comparing each attribute.
224
260
  # @param [Object] Object to be compared
225
261
  def ==(o)