tremendous-python 4.1.0__tar.gz → 4.2.0__tar.gz

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 (228) hide show
  1. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/PKG-INFO +1 -1
  2. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/pyproject.toml +1 -1
  3. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/__init__.py +6 -1
  4. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/api/tremendous_api.py +19 -19
  5. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/__init__.py +6 -1
  6. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/balance_transaction.py +9 -3
  7. tremendous_python-4.2.0/tremendous/models/balance_transaction_order.py +114 -0
  8. tremendous_python-4.2.0/tremendous/models/balance_transaction_order_payment.py +109 -0
  9. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review.py +15 -1
  10. tremendous_python-4.2.0/tremendous/models/fraud_review_risk.py +39 -0
  11. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_fraud_review200_response_fraud_review.py +13 -1
  12. tremendous_python-4.2.0/tremendous/models/get_order200_response.py +92 -0
  13. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_balance_transactions200_response_transactions_inner.py +9 -3
  14. tremendous_python-4.2.0/tremendous/models/list_balance_transactions200_response_transactions_inner_order.py +112 -0
  15. tremendous_python-4.2.0/tremendous/models/list_balance_transactions200_response_transactions_inner_order_payment.py +101 -0
  16. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_orders200_response_orders_inner_payment.py +6 -4
  17. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_base_payment.py +8 -4
  18. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/payment_details.py +8 -4
  19. tremendous_python-4.2.0/tremendous/version.py +1 -0
  20. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous_python.egg-info/PKG-INFO +1 -1
  21. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous_python.egg-info/SOURCES.txt +6 -0
  22. tremendous_python-4.1.0/tremendous/version.py +0 -1
  23. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/LICENSE +0 -0
  24. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/README.md +0 -0
  25. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/setup.cfg +0 -0
  26. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/setup.py +0 -0
  27. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_campaigns.py +0 -0
  28. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_funding_sources.py +0 -0
  29. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_invoices.py +0 -0
  30. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_members.py +0 -0
  31. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_orders.py +0 -0
  32. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/test/test_products.py +0 -0
  33. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/api/__init__.py +0 -0
  34. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/api_client.py +0 -0
  35. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/api_response.py +0 -0
  36. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/configuration.py +0 -0
  37. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/exceptions.py +0 -0
  38. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/allow_email.py +0 -0
  39. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/allow_email1.py +0 -0
  40. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/allow_ip.py +0 -0
  41. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/allow_ip1.py +0 -0
  42. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/base_order_for_create.py +0 -0
  43. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/campaign.py +0 -0
  44. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/campaign_base.py +0 -0
  45. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/channel.py +0 -0
  46. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_api_key200_response.py +0 -0
  47. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_campaign201_response.py +0 -0
  48. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_campaign_request.py +0 -0
  49. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_invoice200_response.py +0 -0
  50. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_invoice_request.py +0 -0
  51. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_member.py +0 -0
  52. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_member200_response.py +0 -0
  53. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_member_request.py +0 -0
  54. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order200_response.py +0 -0
  55. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order200_response_order.py +0 -0
  56. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order200_response_order_rewards_inner.py +0 -0
  57. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order200_response_order_rewards_inner_delivery.py +0 -0
  58. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order201_response.py +0 -0
  59. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_order_request.py +0 -0
  60. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization.py +0 -0
  61. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization200_response.py +0 -0
  62. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization200_response_organization.py +0 -0
  63. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization_for_response.py +0 -0
  64. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization_properties.py +0 -0
  65. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization_request.py +0 -0
  66. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_organization_request_copy_settings.py +0 -0
  67. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report201_response.py +0 -0
  68. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report201_response_report.py +0 -0
  69. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report_request.py +0 -0
  70. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report_request_filters.py +0 -0
  71. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report_request_filters_digital_rewards.py +0 -0
  72. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report_request_filters_digital_rewards_amount.py +0 -0
  73. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_report_request_filters_digital_rewards_created_at.py +0 -0
  74. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_webhook200_response.py +0 -0
  75. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/create_webhook_request.py +0 -0
  76. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/currency_codes.py +0 -0
  77. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/custom_field.py +0 -0
  78. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/delete_fraud_rule200_response.py +0 -0
  79. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/delivery_details.py +0 -0
  80. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/delivery_details_with_link.py +0 -0
  81. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/delivery_method.py +0 -0
  82. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/delivery_status.py +0 -0
  83. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/error_model.py +0 -0
  84. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_allow_email.py +0 -0
  85. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_country.py +0 -0
  86. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_country_update_list.py +0 -0
  87. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_ip.py +0 -0
  88. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_redeemed_rewards_amount.py +0 -0
  89. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_redeemed_rewards_count.py +0 -0
  90. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_config_review_email.py +0 -0
  91. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_generic_response.py +0 -0
  92. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_geo.py +0 -0
  93. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_list_item.py +0 -0
  94. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_reason.py +0 -0
  95. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_redemption_method.py +0 -0
  96. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_related_rewards.py +0 -0
  97. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_review_status.py +0 -0
  98. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule200_response.py +0 -0
  99. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule400_response.py +0 -0
  100. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule422_response.py +0 -0
  101. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule_request.py +0 -0
  102. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule_request_config.py +0 -0
  103. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rule_type.py +0 -0
  104. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/fraud_rules_list_item.py +0 -0
  105. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/funding_source.py +0 -0
  106. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/generate_reward_link200_response.py +0 -0
  107. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/generate_reward_link200_response_reward.py +0 -0
  108. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/generate_reward_link403_response.py +0 -0
  109. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/generate_reward_token200_response.py +0 -0
  110. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/generate_reward_token200_response_reward.py +0 -0
  111. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_fraud_review200_response.py +0 -0
  112. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_fraud_review200_response_fraud_review_geo.py +0 -0
  113. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.py +0 -0
  114. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_funding_source200_response.py +0 -0
  115. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_member200_response.py +0 -0
  116. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_member200_response_member.py +0 -0
  117. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_member200_response_member_events_inner.py +0 -0
  118. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_organization200_response.py +0 -0
  119. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_product_response.py +0 -0
  120. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/get_reward200_response.py +0 -0
  121. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/invoice.py +0 -0
  122. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_balance_transactions200_response.py +0 -0
  123. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_campaigns200_response.py +0 -0
  124. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_campaigns200_response_campaigns_inner.py +0 -0
  125. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.py +0 -0
  126. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.py +0 -0
  127. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fields200_response.py +0 -0
  128. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fields200_response_fields_inner.py +0 -0
  129. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_forex_response.py +0 -0
  130. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fraud_reviews200_response.py +0 -0
  131. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.py +0 -0
  132. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fraud_rules200_response.py +0 -0
  133. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.py +0 -0
  134. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_funding_sources200_response.py +0 -0
  135. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner.py +0 -0
  136. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.py +0 -0
  137. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.py +0 -0
  138. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_invoices200_response.py +0 -0
  139. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_invoices200_response_invoices_inner.py +0 -0
  140. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_members200_response.py +0 -0
  141. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_members200_response_members_inner.py +0 -0
  142. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_orders200_response.py +0 -0
  143. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_orders200_response_orders_inner.py +0 -0
  144. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_orders200_response_orders_inner_payment_refund.py +0 -0
  145. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_organizations200_response.py +0 -0
  146. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_organizations200_response_organizations_inner.py +0 -0
  147. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_products_response.py +0 -0
  148. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_products_response_products_inner.py +0 -0
  149. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_products_response_products_inner_countries_inner.py +0 -0
  150. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_products_response_products_inner_images_inner.py +0 -0
  151. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_products_response_products_inner_skus_inner.py +0 -0
  152. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response.py +0 -0
  153. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response_rewards_inner.py +0 -0
  154. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.py +0 -0
  155. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response_rewards_inner_delivery.py +0 -0
  156. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response_rewards_inner_recipient.py +0 -0
  157. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards200_response_rewards_inner_value.py +0 -0
  158. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards401_response.py +0 -0
  159. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards401_response_errors.py +0 -0
  160. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_rewards429_response.py +0 -0
  161. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_roles200_response.py +0 -0
  162. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_roles200_response_roles_inner.py +0 -0
  163. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_webhook_events200_response.py +0 -0
  164. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_webhooks200_response.py +0 -0
  165. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/list_webhooks200_response_webhooks_inner.py +0 -0
  166. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/member.py +0 -0
  167. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/member_base.py +0 -0
  168. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/member_with_events.py +0 -0
  169. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/member_without_events.py +0 -0
  170. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/model_field.py +0 -0
  171. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order.py +0 -0
  172. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_base.py +0 -0
  173. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_status.py +0 -0
  174. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_with_link.py +0 -0
  175. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_with_link_rewards_inner.py +0 -0
  176. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_without_link.py +0 -0
  177. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/order_without_link_rewards_inner.py +0 -0
  178. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/organization.py +0 -0
  179. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/payment_details_refund.py +0 -0
  180. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/payout.py +0 -0
  181. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/product.py +0 -0
  182. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/recipient.py +0 -0
  183. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/refund_details.py +0 -0
  184. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/report.py +0 -0
  185. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/resend_reward422_response.py +0 -0
  186. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/resend_reward_request.py +0 -0
  187. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_country.py +0 -0
  188. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_country1.py +0 -0
  189. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_email.py +0 -0
  190. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_email1.py +0 -0
  191. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_ip.py +0 -0
  192. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_ip1.py +0 -0
  193. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_redeemed_rewards_amount.py +0 -0
  194. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/review_redeemed_rewards_count.py +0 -0
  195. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward.py +0 -0
  196. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_base.py +0 -0
  197. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_base_custom_fields_inner.py +0 -0
  198. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_for_order_create.py +0 -0
  199. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_link.py +0 -0
  200. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_token.py +0 -0
  201. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_value.py +0 -0
  202. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_with_link.py +0 -0
  203. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_with_link_delivery.py +0 -0
  204. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_without_link.py +0 -0
  205. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/reward_without_link_delivery.py +0 -0
  206. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/role.py +0 -0
  207. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/simulate_webhook_request.py +0 -0
  208. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order.py +0 -0
  209. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_payment.py +0 -0
  210. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_reward.py +0 -0
  211. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_reward_custom_fields_inner.py +0 -0
  212. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_reward_delivery.py +0 -0
  213. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_with_link.py +0 -0
  214. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_with_link_order.py +0 -0
  215. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_without_link.py +0 -0
  216. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/single_reward_order_without_link_order.py +0 -0
  217. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/update_campaign.py +0 -0
  218. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/update_campaign_request.py +0 -0
  219. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/update_fraud_rule_list200_response.py +0 -0
  220. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/update_fraud_rule_list_request.py +0 -0
  221. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/update_fraud_rule_list_request_config.py +0 -0
  222. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/webhook.py +0 -0
  223. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/models/webhook_post.py +0 -0
  224. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/py.typed +0 -0
  225. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous/rest.py +0 -0
  226. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous_python.egg-info/dependency_links.txt +0 -0
  227. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous_python.egg-info/requires.txt +0 -0
  228. {tremendous_python-4.1.0 → tremendous_python-4.2.0}/tremendous_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tremendous-python
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Summary: Python API client for Tremendous
5
5
  Home-page: https://github.com/tremendous-rewards/tremendous-python
6
6
  Author: Tremendous
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tremendous"
3
- version = "4.1.0"
3
+ version = "4.2.0"
4
4
  long_description="Python API client for Tremendous"
5
5
  description = "Python API client for Tremendous"
6
6
  authors = ["API Support <developers@tremendous.com>"]
@@ -37,6 +37,8 @@ from tremendous.models.allow_email1 import AllowEmail1
37
37
  from tremendous.models.allow_ip import AllowIp
38
38
  from tremendous.models.allow_ip1 import AllowIp1
39
39
  from tremendous.models.balance_transaction import BalanceTransaction
40
+ from tremendous.models.balance_transaction_order import BalanceTransactionOrder
41
+ from tremendous.models.balance_transaction_order_payment import BalanceTransactionOrderPayment
40
42
  from tremendous.models.base_order_for_create import BaseOrderForCreate
41
43
  from tremendous.models.campaign import Campaign
42
44
  from tremendous.models.campaign_base import CampaignBase
@@ -53,7 +55,6 @@ from tremendous.models.create_order200_response import CreateOrder200Response
53
55
  from tremendous.models.create_order200_response_order import CreateOrder200ResponseOrder
54
56
  from tremendous.models.create_order200_response_order_rewards_inner import CreateOrder200ResponseOrderRewardsInner
55
57
  from tremendous.models.create_order200_response_order_rewards_inner_delivery import CreateOrder200ResponseOrderRewardsInnerDelivery
56
- from tremendous.models.create_order201_response import CreateOrder201Response
57
58
  from tremendous.models.create_order_request import CreateOrderRequest
58
59
  from tremendous.models.create_organization import CreateOrganization
59
60
  from tremendous.models.create_organization200_response import CreateOrganization200Response
@@ -93,6 +94,7 @@ from tremendous.models.fraud_review_list_item import FraudReviewListItem
93
94
  from tremendous.models.fraud_review_reason import FraudReviewReason
94
95
  from tremendous.models.fraud_review_redemption_method import FraudReviewRedemptionMethod
95
96
  from tremendous.models.fraud_review_related_rewards import FraudReviewRelatedRewards
97
+ from tremendous.models.fraud_review_risk import FraudReviewRisk
96
98
  from tremendous.models.fraud_review_status import FraudReviewStatus
97
99
  from tremendous.models.fraud_rule200_response import FraudRule200Response
98
100
  from tremendous.models.fraud_rule400_response import FraudRule400Response
@@ -115,12 +117,15 @@ from tremendous.models.get_funding_source200_response import GetFundingSource200
115
117
  from tremendous.models.get_member200_response import GetMember200Response
116
118
  from tremendous.models.get_member200_response_member import GetMember200ResponseMember
117
119
  from tremendous.models.get_member200_response_member_events_inner import GetMember200ResponseMemberEventsInner
120
+ from tremendous.models.get_order200_response import GetOrder200Response
118
121
  from tremendous.models.get_organization200_response import GetOrganization200Response
119
122
  from tremendous.models.get_product_response import GetProductResponse
120
123
  from tremendous.models.get_reward200_response import GetReward200Response
121
124
  from tremendous.models.invoice import Invoice
122
125
  from tremendous.models.list_balance_transactions200_response import ListBalanceTransactions200Response
123
126
  from tremendous.models.list_balance_transactions200_response_transactions_inner import ListBalanceTransactions200ResponseTransactionsInner
127
+ from tremendous.models.list_balance_transactions200_response_transactions_inner_order import ListBalanceTransactions200ResponseTransactionsInnerOrder
128
+ from tremendous.models.list_balance_transactions200_response_transactions_inner_order_payment import ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
124
129
  from tremendous.models.list_campaigns200_response import ListCampaigns200Response
125
130
  from tremendous.models.list_campaigns200_response_campaigns_inner import ListCampaigns200ResponseCampaignsInner
126
131
  from tremendous.models.list_campaigns200_response_campaigns_inner_email_style import ListCampaigns200ResponseCampaignsInnerEmailStyle
@@ -28,7 +28,6 @@ from tremendous.models.create_invoice_request import CreateInvoiceRequest
28
28
  from tremendous.models.create_member200_response import CreateMember200Response
29
29
  from tremendous.models.create_member_request import CreateMemberRequest
30
30
  from tremendous.models.create_order200_response import CreateOrder200Response
31
- from tremendous.models.create_order201_response import CreateOrder201Response
32
31
  from tremendous.models.create_order_request import CreateOrderRequest
33
32
  from tremendous.models.create_organization200_response import CreateOrganization200Response
34
33
  from tremendous.models.create_organization_request import CreateOrganizationRequest
@@ -44,6 +43,7 @@ from tremendous.models.generate_reward_token200_response import GenerateRewardTo
44
43
  from tremendous.models.get_fraud_review200_response import GetFraudReview200Response
45
44
  from tremendous.models.get_funding_source200_response import GetFundingSource200Response
46
45
  from tremendous.models.get_member200_response import GetMember200Response
46
+ from tremendous.models.get_order200_response import GetOrder200Response
47
47
  from tremendous.models.get_organization200_response import GetOrganization200Response
48
48
  from tremendous.models.get_product_response import GetProductResponse
49
49
  from tremendous.models.get_reward200_response import GetReward200Response
@@ -103,7 +103,7 @@ class TremendousApi:
103
103
  _content_type: Optional[StrictStr] = None,
104
104
  _headers: Optional[Dict[StrictStr, Any]] = None,
105
105
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
106
- ) -> CreateOrder201Response:
106
+ ) -> GetOrder200Response:
107
107
  """Approve order
108
108
 
109
109
  Approves an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
@@ -141,7 +141,7 @@ class TremendousApi:
141
141
  )
142
142
 
143
143
  _response_types_map: Dict[str, Optional[str]] = {
144
- '200': "CreateOrder201Response",
144
+ '200': "GetOrder200Response",
145
145
  '401': "ListRewards401Response",
146
146
  '402': "ListRewards401Response",
147
147
  '403': "GenerateRewardLink403Response",
@@ -177,7 +177,7 @@ class TremendousApi:
177
177
  _content_type: Optional[StrictStr] = None,
178
178
  _headers: Optional[Dict[StrictStr, Any]] = None,
179
179
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
180
- ) -> ApiResponse[CreateOrder201Response]:
180
+ ) -> ApiResponse[GetOrder200Response]:
181
181
  """Approve order
182
182
 
183
183
  Approves an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
@@ -215,7 +215,7 @@ class TremendousApi:
215
215
  )
216
216
 
217
217
  _response_types_map: Dict[str, Optional[str]] = {
218
- '200': "CreateOrder201Response",
218
+ '200': "GetOrder200Response",
219
219
  '401': "ListRewards401Response",
220
220
  '402': "ListRewards401Response",
221
221
  '403': "GenerateRewardLink403Response",
@@ -289,7 +289,7 @@ class TremendousApi:
289
289
  )
290
290
 
291
291
  _response_types_map: Dict[str, Optional[str]] = {
292
- '200': "CreateOrder201Response",
292
+ '200': "GetOrder200Response",
293
293
  '401': "ListRewards401Response",
294
294
  '402': "ListRewards401Response",
295
295
  '403': "GenerateRewardLink403Response",
@@ -1792,7 +1792,7 @@ class TremendousApi:
1792
1792
 
1793
1793
  _response_types_map: Dict[str, Optional[str]] = {
1794
1794
  '200': "CreateOrder200Response",
1795
- '201': "CreateOrder201Response",
1795
+ '201': "CreateOrder200Response",
1796
1796
  '400': "ResendReward422Response",
1797
1797
  '401': "ListRewards401Response",
1798
1798
  '402': "ListRewards401Response",
@@ -1866,7 +1866,7 @@ class TremendousApi:
1866
1866
 
1867
1867
  _response_types_map: Dict[str, Optional[str]] = {
1868
1868
  '200': "CreateOrder200Response",
1869
- '201': "CreateOrder201Response",
1869
+ '201': "CreateOrder200Response",
1870
1870
  '400': "ResendReward422Response",
1871
1871
  '401': "ListRewards401Response",
1872
1872
  '402': "ListRewards401Response",
@@ -1940,7 +1940,7 @@ class TremendousApi:
1940
1940
 
1941
1941
  _response_types_map: Dict[str, Optional[str]] = {
1942
1942
  '200': "CreateOrder200Response",
1943
- '201': "CreateOrder201Response",
1943
+ '201': "CreateOrder200Response",
1944
1944
  '400': "ResendReward422Response",
1945
1945
  '401': "ListRewards401Response",
1946
1946
  '402': "ListRewards401Response",
@@ -6446,7 +6446,7 @@ class TremendousApi:
6446
6446
  _content_type: Optional[StrictStr] = None,
6447
6447
  _headers: Optional[Dict[StrictStr, Any]] = None,
6448
6448
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6449
- ) -> CreateOrder201Response:
6449
+ ) -> GetOrder200Response:
6450
6450
  """Retrieve order
6451
6451
 
6452
6452
  Retrieve the order, identified by the given `id` in the URL
@@ -6484,7 +6484,7 @@ class TremendousApi:
6484
6484
  )
6485
6485
 
6486
6486
  _response_types_map: Dict[str, Optional[str]] = {
6487
- '200': "CreateOrder201Response",
6487
+ '200': "GetOrder200Response",
6488
6488
  '401': "ListRewards401Response",
6489
6489
  '404': "ListRewards401Response",
6490
6490
  '429': "ListRewards429Response",
@@ -6517,7 +6517,7 @@ class TremendousApi:
6517
6517
  _content_type: Optional[StrictStr] = None,
6518
6518
  _headers: Optional[Dict[StrictStr, Any]] = None,
6519
6519
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6520
- ) -> ApiResponse[CreateOrder201Response]:
6520
+ ) -> ApiResponse[GetOrder200Response]:
6521
6521
  """Retrieve order
6522
6522
 
6523
6523
  Retrieve the order, identified by the given `id` in the URL
@@ -6555,7 +6555,7 @@ class TremendousApi:
6555
6555
  )
6556
6556
 
6557
6557
  _response_types_map: Dict[str, Optional[str]] = {
6558
- '200': "CreateOrder201Response",
6558
+ '200': "GetOrder200Response",
6559
6559
  '401': "ListRewards401Response",
6560
6560
  '404': "ListRewards401Response",
6561
6561
  '429': "ListRewards429Response",
@@ -6626,7 +6626,7 @@ class TremendousApi:
6626
6626
  )
6627
6627
 
6628
6628
  _response_types_map: Dict[str, Optional[str]] = {
6629
- '200': "CreateOrder201Response",
6629
+ '200': "GetOrder200Response",
6630
6630
  '401': "ListRewards401Response",
6631
6631
  '404': "ListRewards401Response",
6632
6632
  '429': "ListRewards429Response",
@@ -12510,7 +12510,7 @@ class TremendousApi:
12510
12510
  _content_type: Optional[StrictStr] = None,
12511
12511
  _headers: Optional[Dict[StrictStr, Any]] = None,
12512
12512
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
12513
- ) -> CreateOrder201Response:
12513
+ ) -> GetOrder200Response:
12514
12514
  """Reject order
12515
12515
 
12516
12516
  Rejects an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
@@ -12548,7 +12548,7 @@ class TremendousApi:
12548
12548
  )
12549
12549
 
12550
12550
  _response_types_map: Dict[str, Optional[str]] = {
12551
- '200': "CreateOrder201Response",
12551
+ '200': "GetOrder200Response",
12552
12552
  '401': "ListRewards401Response",
12553
12553
  '403': "GenerateRewardLink403Response",
12554
12554
  '404': "ListRewards401Response",
@@ -12583,7 +12583,7 @@ class TremendousApi:
12583
12583
  _content_type: Optional[StrictStr] = None,
12584
12584
  _headers: Optional[Dict[StrictStr, Any]] = None,
12585
12585
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
12586
- ) -> ApiResponse[CreateOrder201Response]:
12586
+ ) -> ApiResponse[GetOrder200Response]:
12587
12587
  """Reject order
12588
12588
 
12589
12589
  Rejects an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
@@ -12621,7 +12621,7 @@ class TremendousApi:
12621
12621
  )
12622
12622
 
12623
12623
  _response_types_map: Dict[str, Optional[str]] = {
12624
- '200': "CreateOrder201Response",
12624
+ '200': "GetOrder200Response",
12625
12625
  '401': "ListRewards401Response",
12626
12626
  '403': "GenerateRewardLink403Response",
12627
12627
  '404': "ListRewards401Response",
@@ -12694,7 +12694,7 @@ class TremendousApi:
12694
12694
  )
12695
12695
 
12696
12696
  _response_types_map: Dict[str, Optional[str]] = {
12697
- '200': "CreateOrder201Response",
12697
+ '200': "GetOrder200Response",
12698
12698
  '401': "ListRewards401Response",
12699
12699
  '403': "GenerateRewardLink403Response",
12700
12700
  '404': "ListRewards401Response",
@@ -20,6 +20,8 @@ from tremendous.models.allow_email1 import AllowEmail1
20
20
  from tremendous.models.allow_ip import AllowIp
21
21
  from tremendous.models.allow_ip1 import AllowIp1
22
22
  from tremendous.models.balance_transaction import BalanceTransaction
23
+ from tremendous.models.balance_transaction_order import BalanceTransactionOrder
24
+ from tremendous.models.balance_transaction_order_payment import BalanceTransactionOrderPayment
23
25
  from tremendous.models.base_order_for_create import BaseOrderForCreate
24
26
  from tremendous.models.campaign import Campaign
25
27
  from tremendous.models.campaign_base import CampaignBase
@@ -36,7 +38,6 @@ from tremendous.models.create_order200_response import CreateOrder200Response
36
38
  from tremendous.models.create_order200_response_order import CreateOrder200ResponseOrder
37
39
  from tremendous.models.create_order200_response_order_rewards_inner import CreateOrder200ResponseOrderRewardsInner
38
40
  from tremendous.models.create_order200_response_order_rewards_inner_delivery import CreateOrder200ResponseOrderRewardsInnerDelivery
39
- from tremendous.models.create_order201_response import CreateOrder201Response
40
41
  from tremendous.models.create_order_request import CreateOrderRequest
41
42
  from tremendous.models.create_organization import CreateOrganization
42
43
  from tremendous.models.create_organization200_response import CreateOrganization200Response
@@ -76,6 +77,7 @@ from tremendous.models.fraud_review_list_item import FraudReviewListItem
76
77
  from tremendous.models.fraud_review_reason import FraudReviewReason
77
78
  from tremendous.models.fraud_review_redemption_method import FraudReviewRedemptionMethod
78
79
  from tremendous.models.fraud_review_related_rewards import FraudReviewRelatedRewards
80
+ from tremendous.models.fraud_review_risk import FraudReviewRisk
79
81
  from tremendous.models.fraud_review_status import FraudReviewStatus
80
82
  from tremendous.models.fraud_rule200_response import FraudRule200Response
81
83
  from tremendous.models.fraud_rule400_response import FraudRule400Response
@@ -98,12 +100,15 @@ from tremendous.models.get_funding_source200_response import GetFundingSource200
98
100
  from tremendous.models.get_member200_response import GetMember200Response
99
101
  from tremendous.models.get_member200_response_member import GetMember200ResponseMember
100
102
  from tremendous.models.get_member200_response_member_events_inner import GetMember200ResponseMemberEventsInner
103
+ from tremendous.models.get_order200_response import GetOrder200Response
101
104
  from tremendous.models.get_organization200_response import GetOrganization200Response
102
105
  from tremendous.models.get_product_response import GetProductResponse
103
106
  from tremendous.models.get_reward200_response import GetReward200Response
104
107
  from tremendous.models.invoice import Invoice
105
108
  from tremendous.models.list_balance_transactions200_response import ListBalanceTransactions200Response
106
109
  from tremendous.models.list_balance_transactions200_response_transactions_inner import ListBalanceTransactions200ResponseTransactionsInner
110
+ from tremendous.models.list_balance_transactions200_response_transactions_inner_order import ListBalanceTransactions200ResponseTransactionsInnerOrder
111
+ from tremendous.models.list_balance_transactions200_response_transactions_inner_order_payment import ListBalanceTransactions200ResponseTransactionsInnerOrderPayment
107
112
  from tremendous.models.list_campaigns200_response import ListCampaigns200Response
108
113
  from tremendous.models.list_campaigns200_response_campaigns_inner import ListCampaigns200ResponseCampaignsInner
109
114
  from tremendous.models.list_campaigns200_response_campaigns_inner_email_style import ListCampaigns200ResponseCampaignsInnerEmailStyle
@@ -20,7 +20,8 @@ import json
20
20
 
21
21
  from datetime import datetime
22
22
  from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
23
- from typing import Any, ClassVar, Dict, List, Union
23
+ from typing import Any, ClassVar, Dict, List, Optional, Union
24
+ from tremendous.models.balance_transaction_order import BalanceTransactionOrder
24
25
  from typing import Optional, Set
25
26
  from typing_extensions import Self
26
27
 
@@ -33,7 +34,8 @@ class BalanceTransaction(BaseModel):
33
34
  balance: Union[StrictFloat, StrictInt] = Field(description="The updated total after the transaction. Note that this running balance may be delayed and contain `null`.")
34
35
  action: StrictStr = Field(description="The action that was performed")
35
36
  description: StrictStr = Field(description="A brief description of the transaction")
36
- __properties: ClassVar[List[str]] = ["created_at", "amount", "balance", "action", "description"]
37
+ order: Optional[BalanceTransactionOrder] = None
38
+ __properties: ClassVar[List[str]] = ["created_at", "amount", "balance", "action", "description", "order"]
37
39
 
38
40
  model_config = ConfigDict(
39
41
  populate_by_name=True,
@@ -74,6 +76,9 @@ class BalanceTransaction(BaseModel):
74
76
  exclude=excluded_fields,
75
77
  exclude_none=True,
76
78
  )
79
+ # override the default output from pydantic by calling `to_dict()` of order
80
+ if self.order:
81
+ _dict['order'] = self.order.to_dict()
77
82
  return _dict
78
83
 
79
84
  @classmethod
@@ -90,7 +95,8 @@ class BalanceTransaction(BaseModel):
90
95
  "amount": obj.get("amount"),
91
96
  "balance": obj.get("balance"),
92
97
  "action": obj.get("action"),
93
- "description": obj.get("description")
98
+ "description": obj.get("description"),
99
+ "order": BalanceTransactionOrder.from_dict(obj["order"]) if obj.get("order") is not None else None
94
100
  })
95
101
  return _obj
96
102
 
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ API Endpoints
5
+
6
+ Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and it's members within Tremendous, please see the Tremendous Organizational API.
7
+
8
+ The version of the OpenAPI document: 2
9
+ Contact: developers@tremendous.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing_extensions import Annotated
24
+ from tremendous.models.balance_transaction_order_payment import BalanceTransactionOrderPayment
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class BalanceTransactionOrder(BaseModel):
29
+ """
30
+ Order details
31
+ """ # noqa: E501
32
+ id: Optional[Annotated[str, Field(strict=True)]] = None
33
+ external_id: Optional[StrictStr] = Field(default=None, description="Reference for this order, supplied by the customer. When set, `external_id` makes order idempotent. All requests that use the same `external_id` after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a `201` response code. These responses **fail** to create any further orders. It also allows for retrieving by `external_id` instead of `id` only. ")
34
+ payment: Optional[BalanceTransactionOrderPayment] = None
35
+ __properties: ClassVar[List[str]] = ["id", "external_id", "payment"]
36
+
37
+ @field_validator('id')
38
+ def id_validate_regular_expression(cls, value):
39
+ """Validates the regular expression"""
40
+ if value is None:
41
+ return value
42
+
43
+ if not re.match(r"[A-Z0-9]{4,20}", value):
44
+ raise ValueError(r"must validate the regular expression /[A-Z0-9]{4,20}/")
45
+ return value
46
+
47
+ model_config = ConfigDict(
48
+ populate_by_name=True,
49
+ validate_assignment=True,
50
+ protected_namespaces=(),
51
+ )
52
+
53
+
54
+ def to_str(self) -> str:
55
+ """Returns the string representation of the model using alias"""
56
+ return pprint.pformat(self.model_dump(by_alias=True))
57
+
58
+ def to_json(self) -> str:
59
+ """Returns the JSON representation of the model using alias"""
60
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
61
+ return json.dumps(self.to_dict())
62
+
63
+ @classmethod
64
+ def from_json(cls, json_str: str) -> Optional[Self]:
65
+ """Create an instance of BalanceTransactionOrder from a JSON string"""
66
+ return cls.from_dict(json.loads(json_str))
67
+
68
+ def to_dict(self) -> Dict[str, Any]:
69
+ """Return the dictionary representation of the model using alias.
70
+
71
+ This has the following differences from calling pydantic's
72
+ `self.model_dump(by_alias=True)`:
73
+
74
+ * `None` is only added to the output dict for nullable fields that
75
+ were set at model initialization. Other fields with value `None`
76
+ are ignored.
77
+ * OpenAPI `readOnly` fields are excluded.
78
+ """
79
+ excluded_fields: Set[str] = set([
80
+ "id",
81
+ ])
82
+
83
+ _dict = self.model_dump(
84
+ by_alias=True,
85
+ exclude=excluded_fields,
86
+ exclude_none=True,
87
+ )
88
+ # override the default output from pydantic by calling `to_dict()` of payment
89
+ if self.payment:
90
+ _dict['payment'] = self.payment.to_dict()
91
+ # set to None if external_id (nullable) is None
92
+ # and model_fields_set contains the field
93
+ if self.external_id is None and "external_id" in self.model_fields_set:
94
+ _dict['external_id'] = None
95
+
96
+ return _dict
97
+
98
+ @classmethod
99
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
100
+ """Create an instance of BalanceTransactionOrder from a dict"""
101
+ if obj is None:
102
+ return None
103
+
104
+ if not isinstance(obj, dict):
105
+ return cls.model_validate(obj)
106
+
107
+ _obj = cls.model_validate({
108
+ "id": obj.get("id"),
109
+ "external_id": obj.get("external_id"),
110
+ "payment": BalanceTransactionOrderPayment.from_dict(obj["payment"]) if obj.get("payment") is not None else None
111
+ })
112
+ return _obj
113
+
114
+
@@ -0,0 +1,109 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ API Endpoints
5
+
6
+ Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and it's members within Tremendous, please see the Tremendous Organizational API.
7
+
8
+ The version of the OpenAPI document: 2
9
+ Contact: developers@tremendous.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field
22
+ from typing import Any, ClassVar, Dict, List, Optional, Union
23
+ from typing_extensions import Annotated
24
+ from tremendous.models.payment_details_refund import PaymentDetailsRefund
25
+ from typing import Optional, Set
26
+ from typing_extensions import Self
27
+
28
+ class BalanceTransactionOrderPayment(BaseModel):
29
+ """
30
+ BalanceTransactionOrderPayment
31
+ """ # noqa: E501
32
+ subtotal: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Total price of the order before fees (in USD)")
33
+ total: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Total price of the order including fees (in USD)")
34
+ fees: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Fees for the order (in USD)")
35
+ discount: Union[Annotated[float, Field(strict=True, ge=0)], Annotated[int, Field(strict=True, ge=0)]] = Field(description="Discount for the order (in USD)")
36
+ refund: Optional[PaymentDetailsRefund] = None
37
+ __properties: ClassVar[List[str]] = ["subtotal", "total", "fees", "discount", "refund"]
38
+
39
+ model_config = ConfigDict(
40
+ populate_by_name=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> Optional[Self]:
57
+ """Create an instance of BalanceTransactionOrderPayment from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self) -> Dict[str, Any]:
61
+ """Return the dictionary representation of the model using alias.
62
+
63
+ This has the following differences from calling pydantic's
64
+ `self.model_dump(by_alias=True)`:
65
+
66
+ * `None` is only added to the output dict for nullable fields that
67
+ were set at model initialization. Other fields with value `None`
68
+ are ignored.
69
+ * OpenAPI `readOnly` fields are excluded.
70
+ * OpenAPI `readOnly` fields are excluded.
71
+ * OpenAPI `readOnly` fields are excluded.
72
+ * OpenAPI `readOnly` fields are excluded.
73
+ """
74
+ excluded_fields: Set[str] = set([
75
+ "subtotal",
76
+ "total",
77
+ "fees",
78
+ "discount",
79
+ ])
80
+
81
+ _dict = self.model_dump(
82
+ by_alias=True,
83
+ exclude=excluded_fields,
84
+ exclude_none=True,
85
+ )
86
+ # override the default output from pydantic by calling `to_dict()` of refund
87
+ if self.refund:
88
+ _dict['refund'] = self.refund.to_dict()
89
+ return _dict
90
+
91
+ @classmethod
92
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
+ """Create an instance of BalanceTransactionOrderPayment from a dict"""
94
+ if obj is None:
95
+ return None
96
+
97
+ if not isinstance(obj, dict):
98
+ return cls.model_validate(obj)
99
+
100
+ _obj = cls.model_validate({
101
+ "subtotal": obj.get("subtotal"),
102
+ "total": obj.get("total"),
103
+ "fees": obj.get("fees"),
104
+ "discount": obj.get("discount"),
105
+ "refund": PaymentDetailsRefund.from_dict(obj["refund"]) if obj.get("refund") is not None else None
106
+ })
107
+ return _obj
108
+
109
+
@@ -32,6 +32,7 @@ class FraudReview(BaseModel):
32
32
  The fraud review associated with a reward.
33
33
  """ # noqa: E501
34
34
  status: Optional[StrictStr] = Field(default=None, description="The current status of the fraud review: * `flagged` - The reward has been flagged for and waiting manual review. * `blocked` - The reward was reviewed and blocked. * `released` - The reward was reviewed and released. ")
35
+ risk: Optional[StrictStr] = Field(default=None, description="The fraud risk associated with the reward.")
35
36
  reasons: Optional[List[StrictStr]] = Field(default=None, description="The array may contain multiple reasons, depending on which rule(s) flagged the reward for review. Reasons can be any of the following: * `Disallowed IP` * `Disallowed email` * `Disallowed country` * `Over reward dollar limit` * `Over reward count limit` * `VPN detected` * `Device related to multiple emails` * `Device or account related to multiple emails` * `IP on a Tremendous fraud list` * `Bank account on a Tremendous fraud list` * `Fingerprint on a Tremendous fraud list` * `Email on a Tremendous fraud list` * `Phone on a Tremendous fraud list` * `IP related to a blocked reward` * `Bank account related to a blocked reward` * `Fingerprint related to a blocked reward` * `Email related to a blocked reward` * `Phone related to a blocked reward` * `Allowed IP` * `Allowed email` ")
36
37
  reviewed_by: Optional[StrictStr] = Field(default=None, description="The name of the person who reviewed the reward, or `Automatic Review` if the reward was blocked automatically. Rewards can be automatically blocked if they remain in the flagged fraud queue for more than 30 days. This field is only present if the status is not `flagged`. ")
37
38
  reviewed_at: Optional[datetime] = Field(default=None, description="When the reward was blocked or released following fraud review. This field is only present if the status is not `flagged`. ")
@@ -41,7 +42,7 @@ class FraudReview(BaseModel):
41
42
  redeemed_at: Optional[datetime] = Field(default=None, description="Date the reward was redeemed")
42
43
  geo: Optional[GetFraudReview200ResponseFraudReviewGeo] = None
43
44
  reward: Optional[OrderWithoutLinkRewardsInner] = None
44
- __properties: ClassVar[List[str]] = ["status", "reasons", "reviewed_by", "reviewed_at", "related_rewards", "device_id", "redemption_method", "redeemed_at", "geo", "reward"]
45
+ __properties: ClassVar[List[str]] = ["status", "risk", "reasons", "reviewed_by", "reviewed_at", "related_rewards", "device_id", "redemption_method", "redeemed_at", "geo", "reward"]
45
46
 
46
47
  @field_validator('status')
47
48
  def status_validate_enum(cls, value):
@@ -53,6 +54,16 @@ class FraudReview(BaseModel):
53
54
  raise ValueError("must be one of enum values ('flagged', 'blocked', 'released')")
54
55
  return value
55
56
 
57
+ @field_validator('risk')
58
+ def risk_validate_enum(cls, value):
59
+ """Validates the enum"""
60
+ if value is None:
61
+ return value
62
+
63
+ if value not in set(['high', 'medium', 'low']):
64
+ raise ValueError("must be one of enum values ('high', 'medium', 'low')")
65
+ return value
66
+
56
67
  @field_validator('reasons')
57
68
  def reasons_validate_enum(cls, value):
58
69
  """Validates the enum"""
@@ -107,9 +118,11 @@ class FraudReview(BaseModel):
107
118
  * OpenAPI `readOnly` fields are excluded.
108
119
  * OpenAPI `readOnly` fields are excluded.
109
120
  * OpenAPI `readOnly` fields are excluded.
121
+ * OpenAPI `readOnly` fields are excluded.
110
122
  """
111
123
  excluded_fields: Set[str] = set([
112
124
  "status",
125
+ "risk",
113
126
  "reasons",
114
127
  "redemption_method",
115
128
  ])
@@ -141,6 +154,7 @@ class FraudReview(BaseModel):
141
154
 
142
155
  _obj = cls.model_validate({
143
156
  "status": obj.get("status"),
157
+ "risk": obj.get("risk"),
144
158
  "reasons": obj.get("reasons"),
145
159
  "reviewed_by": obj.get("reviewed_by"),
146
160
  "reviewed_at": obj.get("reviewed_at"),
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ API Endpoints
5
+
6
+ Deliver monetary rewards and incentives to employees, customers, survey participants, and more through the Tremendous API. For organizational tasks, like managing your organization and it's members within Tremendous, please see the Tremendous Organizational API.
7
+
8
+ The version of the OpenAPI document: 2
9
+ Contact: developers@tremendous.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import json
18
+ from enum import Enum
19
+ from typing_extensions import Self
20
+
21
+
22
+ class FraudReviewRisk(str, Enum):
23
+ """
24
+ The fraud risk associated with the reward.
25
+ """
26
+
27
+ """
28
+ allowed enum values
29
+ """
30
+ HIGH = 'high'
31
+ MEDIUM = 'medium'
32
+ LOW = 'low'
33
+
34
+ @classmethod
35
+ def from_json(cls, json_str: str) -> Self:
36
+ """Create an instance of FraudReviewRisk from a JSON string"""
37
+ return cls(json.loads(json_str))
38
+
39
+