tremendous-python 4.0.0__tar.gz → 4.0.1__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.
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/PKG-INFO +1 -1
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/pyproject.toml +1 -1
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/__init__.py +14 -3
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/api/tremendous_api.py +19 -18
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/api_client.py +1 -1
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/__init__.py +14 -3
- tremendous_python-4.0.1/tremendous/models/create_order200_response.py +92 -0
- tremendous_python-4.0.1/tremendous/models/create_order200_response_order.py +162 -0
- tremendous_python-4.0.1/tremendous/models/create_order200_response_order_rewards_inner.py +144 -0
- tremendous_python-4.0.0/tremendous/models/list_rewards200_response_rewards_inner_delivery.py → tremendous_python-4.0.1/tremendous/models/create_order200_response_order_rewards_inner_delivery.py +8 -6
- tremendous_python-4.0.0/tremendous/models/create_order200_response.py → tremendous_python-4.0.1/tremendous/models/create_order201_response.py +4 -4
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_organization.py +24 -4
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_organization200_response_organization.py +17 -16
- tremendous_python-4.0.1/tremendous/models/create_organization_for_response.py +125 -0
- tremendous_python-4.0.1/tremendous/models/create_organization_properties.py +120 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_organization_request.py +1 -1
- tremendous_python-4.0.1/tremendous/models/delivery_details.py +112 -0
- tremendous_python-4.0.0/tremendous/models/delivery_details.py → tremendous_python-4.0.1/tremendous/models/delivery_details_with_link.py +10 -6
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/error_model.py +5 -3
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule400_response.py +5 -3
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule422_response.py +5 -3
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/generate_reward_link403_response.py +5 -3
- tremendous_python-4.0.1/tremendous/models/list_rewards200_response_rewards_inner_delivery.py +110 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards401_response.py +5 -3
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards429_response.py +5 -3
- tremendous_python-4.0.1/tremendous/models/order_with_link.py +174 -0
- tremendous_python-4.0.1/tremendous/models/order_with_link_rewards_inner.py +169 -0
- tremendous_python-4.0.1/tremendous/models/payout.py +140 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/resend_reward422_response.py +5 -3
- tremendous_python-4.0.1/tremendous/models/reward_with_link.py +169 -0
- tremendous_python-4.0.0/tremendous/models/reward_without_link_delivery.py → tremendous_python-4.0.1/tremendous/models/reward_with_link_delivery.py +10 -6
- tremendous_python-4.0.1/tremendous/models/reward_without_link_delivery.py +112 -0
- tremendous_python-4.0.1/tremendous/models/single_reward_order_with_link.py +92 -0
- tremendous_python-4.0.1/tremendous/models/single_reward_order_with_link_order.py +174 -0
- tremendous_python-4.0.1/tremendous/version.py +1 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous_python.egg-info/PKG-INFO +1 -1
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous_python.egg-info/SOURCES.txt +14 -3
- tremendous_python-4.0.0/tremendous/models/create_public_key.py +0 -88
- tremendous_python-4.0.0/tremendous/models/public_key.py +0 -111
- tremendous_python-4.0.0/tremendous/models/test_public_key.py +0 -88
- tremendous_python-4.0.0/tremendous/version.py +0 -1
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/LICENSE +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/README.md +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/setup.cfg +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/setup.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_campaigns.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_funding_sources.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_invoices.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_members.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_orders.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/test/test_products.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/api/__init__.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/api_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/configuration.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/exceptions.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/allow_email.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/allow_email1.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/allow_ip.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/allow_ip1.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/balance_transaction.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/base_order_for_create.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/campaign.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/campaign_base.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/channel.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_api_key200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_campaign201_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_campaign_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_invoice200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_invoice_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_member.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_member200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_member_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_order_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_organization200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_organization_request_copy_settings.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_webhook200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/create_webhook_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/currency_codes.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/custom_field.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/delete_fraud_rule200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/delivery_method.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/delivery_status.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_allow_email.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_country.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_country_update_list.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_ip.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_redeemed_rewards_amount.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_redeemed_rewards_count.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_config_review_email.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_generic_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_geo.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_list_item.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_reason.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_redemption_method.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_related_rewards.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_review_status.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule_request_config.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rule_type.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/fraud_rules_list_item.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/funding_source.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/generate_reward_link200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/generate_reward_link200_response_reward.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/generate_reward_token200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/generate_reward_token200_response_reward.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_fraud_review200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_fraud_review200_response_fraud_review.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_fraud_review200_response_fraud_review_geo.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_funding_source200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_member200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_member200_response_member.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_member200_response_member_events_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_organization200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_product_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/get_reward200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/invoice.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_balance_transactions200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_balance_transactions200_response_transactions_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_campaigns200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_campaigns200_response_campaigns_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fields200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fields200_response_fields_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_forex_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fraud_reviews200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fraud_rules200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_funding_sources200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_funding_sources200_response_funding_sources_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_invoices200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_invoices200_response_invoices_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_members200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_members200_response_members_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_orders200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_orders200_response_orders_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_orders200_response_orders_inner_payment.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_orders200_response_orders_inner_payment_refund.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_organizations200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_organizations200_response_organizations_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_products_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_products_response_products_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_products_response_products_inner_countries_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_products_response_products_inner_images_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_products_response_products_inner_skus_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards200_response_rewards_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards200_response_rewards_inner_recipient.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards200_response_rewards_inner_value.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_rewards401_response_errors.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_roles200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_roles200_response_roles_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_webhook_events200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_webhooks200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/list_webhooks200_response_webhooks_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/member.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/member_base.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/member_with_events.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/member_without_events.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/model_field.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order_base.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order_base_payment.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order_status.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order_without_link.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/order_without_link_rewards_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/organization.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/payment_details.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/payment_details_refund.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/product.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/recipient.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/refund_details.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_country.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_country1.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_email.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_email1.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_ip.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_ip1.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_redeemed_rewards_amount.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/review_redeemed_rewards_count.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_base.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_base_custom_fields_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_for_order_create.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_link.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_token.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_value.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/reward_without_link.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/role.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/simulate_webhook_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_payment.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_reward.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_reward_custom_fields_inner.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_reward_delivery.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_without_link.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/single_reward_order_without_link_order.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/update_campaign.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/update_campaign_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/update_fraud_rule_list200_response.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/update_fraud_rule_list_request.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/update_fraud_rule_list_request_config.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/webhook.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/models/webhook_post.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/py.typed +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous/rest.py +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous_python.egg-info/dependency_links.txt +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous_python.egg-info/requires.txt +0 -0
- {tremendous_python-4.0.0 → tremendous_python-4.0.1}/tremendous_python.egg-info/top_level.txt +0 -0
|
@@ -50,19 +50,25 @@ from tremendous.models.create_member import CreateMember
|
|
|
50
50
|
from tremendous.models.create_member200_response import CreateMember200Response
|
|
51
51
|
from tremendous.models.create_member_request import CreateMemberRequest
|
|
52
52
|
from tremendous.models.create_order200_response import CreateOrder200Response
|
|
53
|
+
from tremendous.models.create_order200_response_order import CreateOrder200ResponseOrder
|
|
54
|
+
from tremendous.models.create_order200_response_order_rewards_inner import CreateOrder200ResponseOrderRewardsInner
|
|
55
|
+
from tremendous.models.create_order200_response_order_rewards_inner_delivery import CreateOrder200ResponseOrderRewardsInnerDelivery
|
|
56
|
+
from tremendous.models.create_order201_response import CreateOrder201Response
|
|
53
57
|
from tremendous.models.create_order_request import CreateOrderRequest
|
|
54
58
|
from tremendous.models.create_organization import CreateOrganization
|
|
55
59
|
from tremendous.models.create_organization200_response import CreateOrganization200Response
|
|
56
60
|
from tremendous.models.create_organization200_response_organization import CreateOrganization200ResponseOrganization
|
|
61
|
+
from tremendous.models.create_organization_for_response import CreateOrganizationForResponse
|
|
62
|
+
from tremendous.models.create_organization_properties import CreateOrganizationProperties
|
|
57
63
|
from tremendous.models.create_organization_request import CreateOrganizationRequest
|
|
58
64
|
from tremendous.models.create_organization_request_copy_settings import CreateOrganizationRequestCopySettings
|
|
59
|
-
from tremendous.models.create_public_key import CreatePublicKey
|
|
60
65
|
from tremendous.models.create_webhook200_response import CreateWebhook200Response
|
|
61
66
|
from tremendous.models.create_webhook_request import CreateWebhookRequest
|
|
62
67
|
from tremendous.models.currency_codes import CurrencyCodes
|
|
63
68
|
from tremendous.models.custom_field import CustomField
|
|
64
69
|
from tremendous.models.delete_fraud_rule200_response import DeleteFraudRule200Response
|
|
65
70
|
from tremendous.models.delivery_details import DeliveryDetails
|
|
71
|
+
from tremendous.models.delivery_details_with_link import DeliveryDetailsWithLink
|
|
66
72
|
from tremendous.models.delivery_method import DeliveryMethod
|
|
67
73
|
from tremendous.models.delivery_status import DeliveryStatus
|
|
68
74
|
from tremendous.models.error_model import ErrorModel
|
|
@@ -160,13 +166,15 @@ from tremendous.models.order import Order
|
|
|
160
166
|
from tremendous.models.order_base import OrderBase
|
|
161
167
|
from tremendous.models.order_base_payment import OrderBasePayment
|
|
162
168
|
from tremendous.models.order_status import OrderStatus
|
|
169
|
+
from tremendous.models.order_with_link import OrderWithLink
|
|
170
|
+
from tremendous.models.order_with_link_rewards_inner import OrderWithLinkRewardsInner
|
|
163
171
|
from tremendous.models.order_without_link import OrderWithoutLink
|
|
164
172
|
from tremendous.models.order_without_link_rewards_inner import OrderWithoutLinkRewardsInner
|
|
165
173
|
from tremendous.models.organization import Organization
|
|
166
174
|
from tremendous.models.payment_details import PaymentDetails
|
|
167
175
|
from tremendous.models.payment_details_refund import PaymentDetailsRefund
|
|
176
|
+
from tremendous.models.payout import Payout
|
|
168
177
|
from tremendous.models.product import Product
|
|
169
|
-
from tremendous.models.public_key import PublicKey
|
|
170
178
|
from tremendous.models.recipient import Recipient
|
|
171
179
|
from tremendous.models.refund_details import RefundDetails
|
|
172
180
|
from tremendous.models.resend_reward422_response import ResendReward422Response
|
|
@@ -185,6 +193,8 @@ from tremendous.models.reward_for_order_create import RewardForOrderCreate
|
|
|
185
193
|
from tremendous.models.reward_link import RewardLink
|
|
186
194
|
from tremendous.models.reward_token import RewardToken
|
|
187
195
|
from tremendous.models.reward_value import RewardValue
|
|
196
|
+
from tremendous.models.reward_with_link import RewardWithLink
|
|
197
|
+
from tremendous.models.reward_with_link_delivery import RewardWithLinkDelivery
|
|
188
198
|
from tremendous.models.reward_without_link import RewardWithoutLink
|
|
189
199
|
from tremendous.models.reward_without_link_delivery import RewardWithoutLinkDelivery
|
|
190
200
|
from tremendous.models.role import Role
|
|
@@ -194,9 +204,10 @@ from tremendous.models.single_reward_order_payment import SingleRewardOrderPayme
|
|
|
194
204
|
from tremendous.models.single_reward_order_reward import SingleRewardOrderReward
|
|
195
205
|
from tremendous.models.single_reward_order_reward_custom_fields_inner import SingleRewardOrderRewardCustomFieldsInner
|
|
196
206
|
from tremendous.models.single_reward_order_reward_delivery import SingleRewardOrderRewardDelivery
|
|
207
|
+
from tremendous.models.single_reward_order_with_link import SingleRewardOrderWithLink
|
|
208
|
+
from tremendous.models.single_reward_order_with_link_order import SingleRewardOrderWithLinkOrder
|
|
197
209
|
from tremendous.models.single_reward_order_without_link import SingleRewardOrderWithoutLink
|
|
198
210
|
from tremendous.models.single_reward_order_without_link_order import SingleRewardOrderWithoutLinkOrder
|
|
199
|
-
from tremendous.models.test_public_key import TestPublicKey
|
|
200
211
|
from tremendous.models.update_campaign import UpdateCampaign
|
|
201
212
|
from tremendous.models.update_campaign_request import UpdateCampaignRequest
|
|
202
213
|
from tremendous.models.update_fraud_rule_list200_response import UpdateFraudRuleList200Response
|
|
@@ -28,6 +28,7 @@ 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
|
|
31
32
|
from tremendous.models.create_order_request import CreateOrderRequest
|
|
32
33
|
from tremendous.models.create_organization200_response import CreateOrganization200Response
|
|
33
34
|
from tremendous.models.create_organization_request import CreateOrganizationRequest
|
|
@@ -99,7 +100,7 @@ class TremendousApi:
|
|
|
99
100
|
_content_type: Optional[StrictStr] = None,
|
|
100
101
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
101
102
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
102
|
-
) ->
|
|
103
|
+
) -> CreateOrder201Response:
|
|
103
104
|
"""Approve order
|
|
104
105
|
|
|
105
106
|
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.
|
|
@@ -137,7 +138,7 @@ class TremendousApi:
|
|
|
137
138
|
)
|
|
138
139
|
|
|
139
140
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
140
|
-
'200': "
|
|
141
|
+
'200': "CreateOrder201Response",
|
|
141
142
|
'401': "ListRewards401Response",
|
|
142
143
|
'402': "ListRewards401Response",
|
|
143
144
|
'403': "GenerateRewardLink403Response",
|
|
@@ -173,7 +174,7 @@ class TremendousApi:
|
|
|
173
174
|
_content_type: Optional[StrictStr] = None,
|
|
174
175
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
175
176
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
176
|
-
) -> ApiResponse[
|
|
177
|
+
) -> ApiResponse[CreateOrder201Response]:
|
|
177
178
|
"""Approve order
|
|
178
179
|
|
|
179
180
|
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.
|
|
@@ -211,7 +212,7 @@ class TremendousApi:
|
|
|
211
212
|
)
|
|
212
213
|
|
|
213
214
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
214
|
-
'200': "
|
|
215
|
+
'200': "CreateOrder201Response",
|
|
215
216
|
'401': "ListRewards401Response",
|
|
216
217
|
'402': "ListRewards401Response",
|
|
217
218
|
'403': "GenerateRewardLink403Response",
|
|
@@ -285,7 +286,7 @@ class TremendousApi:
|
|
|
285
286
|
)
|
|
286
287
|
|
|
287
288
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
288
|
-
'200': "
|
|
289
|
+
'200': "CreateOrder201Response",
|
|
289
290
|
'401': "ListRewards401Response",
|
|
290
291
|
'402': "ListRewards401Response",
|
|
291
292
|
'403': "GenerateRewardLink403Response",
|
|
@@ -1788,7 +1789,7 @@ class TremendousApi:
|
|
|
1788
1789
|
|
|
1789
1790
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1790
1791
|
'200': "CreateOrder200Response",
|
|
1791
|
-
'201': "
|
|
1792
|
+
'201': "CreateOrder201Response",
|
|
1792
1793
|
'400': "ResendReward422Response",
|
|
1793
1794
|
'401': "ListRewards401Response",
|
|
1794
1795
|
'402': "ListRewards401Response",
|
|
@@ -1862,7 +1863,7 @@ class TremendousApi:
|
|
|
1862
1863
|
|
|
1863
1864
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1864
1865
|
'200': "CreateOrder200Response",
|
|
1865
|
-
'201': "
|
|
1866
|
+
'201': "CreateOrder201Response",
|
|
1866
1867
|
'400': "ResendReward422Response",
|
|
1867
1868
|
'401': "ListRewards401Response",
|
|
1868
1869
|
'402': "ListRewards401Response",
|
|
@@ -1936,7 +1937,7 @@ class TremendousApi:
|
|
|
1936
1937
|
|
|
1937
1938
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1938
1939
|
'200': "CreateOrder200Response",
|
|
1939
|
-
'201': "
|
|
1940
|
+
'201': "CreateOrder201Response",
|
|
1940
1941
|
'400': "ResendReward422Response",
|
|
1941
1942
|
'401': "ListRewards401Response",
|
|
1942
1943
|
'402': "ListRewards401Response",
|
|
@@ -6156,7 +6157,7 @@ class TremendousApi:
|
|
|
6156
6157
|
_content_type: Optional[StrictStr] = None,
|
|
6157
6158
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6158
6159
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6159
|
-
) ->
|
|
6160
|
+
) -> CreateOrder201Response:
|
|
6160
6161
|
"""Retrieve order
|
|
6161
6162
|
|
|
6162
6163
|
Retrieve the order, identified by the given `id` in the URL
|
|
@@ -6194,7 +6195,7 @@ class TremendousApi:
|
|
|
6194
6195
|
)
|
|
6195
6196
|
|
|
6196
6197
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6197
|
-
'200': "
|
|
6198
|
+
'200': "CreateOrder201Response",
|
|
6198
6199
|
'401': "ListRewards401Response",
|
|
6199
6200
|
'404': "ListRewards401Response",
|
|
6200
6201
|
'429': "ListRewards429Response",
|
|
@@ -6227,7 +6228,7 @@ class TremendousApi:
|
|
|
6227
6228
|
_content_type: Optional[StrictStr] = None,
|
|
6228
6229
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
6229
6230
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
6230
|
-
) -> ApiResponse[
|
|
6231
|
+
) -> ApiResponse[CreateOrder201Response]:
|
|
6231
6232
|
"""Retrieve order
|
|
6232
6233
|
|
|
6233
6234
|
Retrieve the order, identified by the given `id` in the URL
|
|
@@ -6265,7 +6266,7 @@ class TremendousApi:
|
|
|
6265
6266
|
)
|
|
6266
6267
|
|
|
6267
6268
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6268
|
-
'200': "
|
|
6269
|
+
'200': "CreateOrder201Response",
|
|
6269
6270
|
'401': "ListRewards401Response",
|
|
6270
6271
|
'404': "ListRewards401Response",
|
|
6271
6272
|
'429': "ListRewards429Response",
|
|
@@ -6336,7 +6337,7 @@ class TremendousApi:
|
|
|
6336
6337
|
)
|
|
6337
6338
|
|
|
6338
6339
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
6339
|
-
'200': "
|
|
6340
|
+
'200': "CreateOrder201Response",
|
|
6340
6341
|
'401': "ListRewards401Response",
|
|
6341
6342
|
'404': "ListRewards401Response",
|
|
6342
6343
|
'429': "ListRewards429Response",
|
|
@@ -11947,7 +11948,7 @@ class TremendousApi:
|
|
|
11947
11948
|
_content_type: Optional[StrictStr] = None,
|
|
11948
11949
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
11949
11950
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
11950
|
-
) ->
|
|
11951
|
+
) -> CreateOrder201Response:
|
|
11951
11952
|
"""Reject order
|
|
11952
11953
|
|
|
11953
11954
|
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.
|
|
@@ -11985,7 +11986,7 @@ class TremendousApi:
|
|
|
11985
11986
|
)
|
|
11986
11987
|
|
|
11987
11988
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
11988
|
-
'200': "
|
|
11989
|
+
'200': "CreateOrder201Response",
|
|
11989
11990
|
'401': "ListRewards401Response",
|
|
11990
11991
|
'403': "GenerateRewardLink403Response",
|
|
11991
11992
|
'404': "ListRewards401Response",
|
|
@@ -12020,7 +12021,7 @@ class TremendousApi:
|
|
|
12020
12021
|
_content_type: Optional[StrictStr] = None,
|
|
12021
12022
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12022
12023
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12023
|
-
) -> ApiResponse[
|
|
12024
|
+
) -> ApiResponse[CreateOrder201Response]:
|
|
12024
12025
|
"""Reject order
|
|
12025
12026
|
|
|
12026
12027
|
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.
|
|
@@ -12058,7 +12059,7 @@ class TremendousApi:
|
|
|
12058
12059
|
)
|
|
12059
12060
|
|
|
12060
12061
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12061
|
-
'200': "
|
|
12062
|
+
'200': "CreateOrder201Response",
|
|
12062
12063
|
'401': "ListRewards401Response",
|
|
12063
12064
|
'403': "GenerateRewardLink403Response",
|
|
12064
12065
|
'404': "ListRewards401Response",
|
|
@@ -12131,7 +12132,7 @@ class TremendousApi:
|
|
|
12131
12132
|
)
|
|
12132
12133
|
|
|
12133
12134
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
12134
|
-
'200': "
|
|
12135
|
+
'200': "CreateOrder201Response",
|
|
12135
12136
|
'401': "ListRewards401Response",
|
|
12136
12137
|
'403': "GenerateRewardLink403Response",
|
|
12137
12138
|
'404': "ListRewards401Response",
|
|
@@ -88,7 +88,7 @@ class ApiClient:
|
|
|
88
88
|
self.default_headers[header_name] = header_value
|
|
89
89
|
self.cookie = cookie
|
|
90
90
|
# Set default User-Agent.
|
|
91
|
-
self.user_agent =
|
|
91
|
+
self.user_agent = f"Tremendous Python v{tremendous.__version__}"
|
|
92
92
|
self.client_side_validation = configuration.client_side_validation
|
|
93
93
|
|
|
94
94
|
def __enter__(self):
|
|
@@ -33,19 +33,25 @@ from tremendous.models.create_member import CreateMember
|
|
|
33
33
|
from tremendous.models.create_member200_response import CreateMember200Response
|
|
34
34
|
from tremendous.models.create_member_request import CreateMemberRequest
|
|
35
35
|
from tremendous.models.create_order200_response import CreateOrder200Response
|
|
36
|
+
from tremendous.models.create_order200_response_order import CreateOrder200ResponseOrder
|
|
37
|
+
from tremendous.models.create_order200_response_order_rewards_inner import CreateOrder200ResponseOrderRewardsInner
|
|
38
|
+
from tremendous.models.create_order200_response_order_rewards_inner_delivery import CreateOrder200ResponseOrderRewardsInnerDelivery
|
|
39
|
+
from tremendous.models.create_order201_response import CreateOrder201Response
|
|
36
40
|
from tremendous.models.create_order_request import CreateOrderRequest
|
|
37
41
|
from tremendous.models.create_organization import CreateOrganization
|
|
38
42
|
from tremendous.models.create_organization200_response import CreateOrganization200Response
|
|
39
43
|
from tremendous.models.create_organization200_response_organization import CreateOrganization200ResponseOrganization
|
|
44
|
+
from tremendous.models.create_organization_for_response import CreateOrganizationForResponse
|
|
45
|
+
from tremendous.models.create_organization_properties import CreateOrganizationProperties
|
|
40
46
|
from tremendous.models.create_organization_request import CreateOrganizationRequest
|
|
41
47
|
from tremendous.models.create_organization_request_copy_settings import CreateOrganizationRequestCopySettings
|
|
42
|
-
from tremendous.models.create_public_key import CreatePublicKey
|
|
43
48
|
from tremendous.models.create_webhook200_response import CreateWebhook200Response
|
|
44
49
|
from tremendous.models.create_webhook_request import CreateWebhookRequest
|
|
45
50
|
from tremendous.models.currency_codes import CurrencyCodes
|
|
46
51
|
from tremendous.models.custom_field import CustomField
|
|
47
52
|
from tremendous.models.delete_fraud_rule200_response import DeleteFraudRule200Response
|
|
48
53
|
from tremendous.models.delivery_details import DeliveryDetails
|
|
54
|
+
from tremendous.models.delivery_details_with_link import DeliveryDetailsWithLink
|
|
49
55
|
from tremendous.models.delivery_method import DeliveryMethod
|
|
50
56
|
from tremendous.models.delivery_status import DeliveryStatus
|
|
51
57
|
from tremendous.models.error_model import ErrorModel
|
|
@@ -143,13 +149,15 @@ from tremendous.models.order import Order
|
|
|
143
149
|
from tremendous.models.order_base import OrderBase
|
|
144
150
|
from tremendous.models.order_base_payment import OrderBasePayment
|
|
145
151
|
from tremendous.models.order_status import OrderStatus
|
|
152
|
+
from tremendous.models.order_with_link import OrderWithLink
|
|
153
|
+
from tremendous.models.order_with_link_rewards_inner import OrderWithLinkRewardsInner
|
|
146
154
|
from tremendous.models.order_without_link import OrderWithoutLink
|
|
147
155
|
from tremendous.models.order_without_link_rewards_inner import OrderWithoutLinkRewardsInner
|
|
148
156
|
from tremendous.models.organization import Organization
|
|
149
157
|
from tremendous.models.payment_details import PaymentDetails
|
|
150
158
|
from tremendous.models.payment_details_refund import PaymentDetailsRefund
|
|
159
|
+
from tremendous.models.payout import Payout
|
|
151
160
|
from tremendous.models.product import Product
|
|
152
|
-
from tremendous.models.public_key import PublicKey
|
|
153
161
|
from tremendous.models.recipient import Recipient
|
|
154
162
|
from tremendous.models.refund_details import RefundDetails
|
|
155
163
|
from tremendous.models.resend_reward422_response import ResendReward422Response
|
|
@@ -168,6 +176,8 @@ from tremendous.models.reward_for_order_create import RewardForOrderCreate
|
|
|
168
176
|
from tremendous.models.reward_link import RewardLink
|
|
169
177
|
from tremendous.models.reward_token import RewardToken
|
|
170
178
|
from tremendous.models.reward_value import RewardValue
|
|
179
|
+
from tremendous.models.reward_with_link import RewardWithLink
|
|
180
|
+
from tremendous.models.reward_with_link_delivery import RewardWithLinkDelivery
|
|
171
181
|
from tremendous.models.reward_without_link import RewardWithoutLink
|
|
172
182
|
from tremendous.models.reward_without_link_delivery import RewardWithoutLinkDelivery
|
|
173
183
|
from tremendous.models.role import Role
|
|
@@ -177,9 +187,10 @@ from tremendous.models.single_reward_order_payment import SingleRewardOrderPayme
|
|
|
177
187
|
from tremendous.models.single_reward_order_reward import SingleRewardOrderReward
|
|
178
188
|
from tremendous.models.single_reward_order_reward_custom_fields_inner import SingleRewardOrderRewardCustomFieldsInner
|
|
179
189
|
from tremendous.models.single_reward_order_reward_delivery import SingleRewardOrderRewardDelivery
|
|
190
|
+
from tremendous.models.single_reward_order_with_link import SingleRewardOrderWithLink
|
|
191
|
+
from tremendous.models.single_reward_order_with_link_order import SingleRewardOrderWithLinkOrder
|
|
180
192
|
from tremendous.models.single_reward_order_without_link import SingleRewardOrderWithoutLink
|
|
181
193
|
from tremendous.models.single_reward_order_without_link_order import SingleRewardOrderWithoutLinkOrder
|
|
182
|
-
from tremendous.models.test_public_key import TestPublicKey
|
|
183
194
|
from tremendous.models.update_campaign import UpdateCampaign
|
|
184
195
|
from tremendous.models.update_campaign_request import UpdateCampaignRequest
|
|
185
196
|
from tremendous.models.update_fraud_rule_list200_response import UpdateFraudRuleList200Response
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from tremendous.models.create_order200_response_order import CreateOrder200ResponseOrder
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class CreateOrder200Response(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CreateOrder200Response
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
order: CreateOrder200ResponseOrder
|
|
32
|
+
__properties: ClassVar[List[str]] = ["order"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of CreateOrder200Response from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
# override the default output from pydantic by calling `to_dict()` of order
|
|
74
|
+
if self.order:
|
|
75
|
+
_dict['order'] = self.order.to_dict()
|
|
76
|
+
return _dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
80
|
+
"""Create an instance of CreateOrder200Response from a dict"""
|
|
81
|
+
if obj is None:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
if not isinstance(obj, dict):
|
|
85
|
+
return cls.model_validate(obj)
|
|
86
|
+
|
|
87
|
+
_obj = cls.model_validate({
|
|
88
|
+
"order": CreateOrder200ResponseOrder.from_dict(obj["order"]) if obj.get("order") is not None else None
|
|
89
|
+
})
|
|
90
|
+
return _obj
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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 datetime import datetime
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
from tremendous.models.create_order200_response_order_rewards_inner import CreateOrder200ResponseOrderRewardsInner
|
|
26
|
+
from tremendous.models.list_orders200_response_orders_inner_payment import ListOrders200ResponseOrdersInnerPayment
|
|
27
|
+
from typing import Optional, Set
|
|
28
|
+
from typing_extensions import Self
|
|
29
|
+
|
|
30
|
+
class CreateOrder200ResponseOrder(BaseModel):
|
|
31
|
+
"""
|
|
32
|
+
An order wraps around the fulfilment of one or more rewards.
|
|
33
|
+
""" # noqa: E501
|
|
34
|
+
id: Annotated[str, Field(strict=True)] = Field(description="Tremendous ID of the order")
|
|
35
|
+
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. ")
|
|
36
|
+
campaign_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from. ")
|
|
37
|
+
created_at: datetime = Field(description="Date the order has been created")
|
|
38
|
+
status: StrictStr = Field(description="Execution status of a given order <table> <thead> <tr> <th> Status </th> <th> Description </th> </tr> </thead> <tbody> <tr> <td> <code> CANCELED </code> </td> <td> The order and all of its rewards were canceled. </td> </tr> <tr> <td> <code> CART </code> </td> <td> The order has been created, but hasn't yet been processed. </td> </tr> <tr> <td> <code> EXECUTED </code> </td> <td> The order has been executed. Payment has been handled and rewards are being delivered (if applicable). </td> </tr> <tr> <td> <code> FAILED </code> </td> <td> The order could not be processed due to an error. E.g. due to insufficient funds in the account. </td> </tr> <tr> <td> <code> PENDING APPROVAL </code> </td> <td> The order has been created but needs approval to be executed. </td> </tr> <tr> <td> <code> PENDING INTERNAL PAYMENT APPROVAL </code> </td> <td> The order has been created but it is under review and requires approval from our team. </td> </tr> </tbody> </table> ")
|
|
39
|
+
channel: Optional[StrictStr] = Field(default=None, description="Name of the channel in which the order was created")
|
|
40
|
+
payment: Optional[ListOrders200ResponseOrdersInnerPayment] = None
|
|
41
|
+
invoice_id: Optional[StrictStr] = Field(default=None, description="The ID for the invoice associated with this order")
|
|
42
|
+
rewards: Optional[List[CreateOrder200ResponseOrderRewardsInner]] = None
|
|
43
|
+
__properties: ClassVar[List[str]] = ["id", "external_id", "campaign_id", "created_at", "status", "channel", "payment", "invoice_id", "rewards"]
|
|
44
|
+
|
|
45
|
+
@field_validator('id')
|
|
46
|
+
def id_validate_regular_expression(cls, value):
|
|
47
|
+
"""Validates the regular expression"""
|
|
48
|
+
if not re.match(r"[A-Z0-9]{4,20}", value):
|
|
49
|
+
raise ValueError(r"must validate the regular expression /[A-Z0-9]{4,20}/")
|
|
50
|
+
return value
|
|
51
|
+
|
|
52
|
+
@field_validator('campaign_id')
|
|
53
|
+
def campaign_id_validate_regular_expression(cls, value):
|
|
54
|
+
"""Validates the regular expression"""
|
|
55
|
+
if value is None:
|
|
56
|
+
return value
|
|
57
|
+
|
|
58
|
+
if not re.match(r"[A-Z0-9]{4,20}", value):
|
|
59
|
+
raise ValueError(r"must validate the regular expression /[A-Z0-9]{4,20}/")
|
|
60
|
+
return value
|
|
61
|
+
|
|
62
|
+
@field_validator('status')
|
|
63
|
+
def status_validate_enum(cls, value):
|
|
64
|
+
"""Validates the enum"""
|
|
65
|
+
if value not in set(['CANCELED', 'CART', 'EXECUTED', 'FAILED', 'PENDING APPROVAL', 'PENDING INTERNAL PAYMENT APPROVAL']):
|
|
66
|
+
raise ValueError("must be one of enum values ('CANCELED', 'CART', 'EXECUTED', 'FAILED', 'PENDING APPROVAL', 'PENDING INTERNAL PAYMENT APPROVAL')")
|
|
67
|
+
return value
|
|
68
|
+
|
|
69
|
+
@field_validator('channel')
|
|
70
|
+
def channel_validate_enum(cls, value):
|
|
71
|
+
"""Validates the enum"""
|
|
72
|
+
if value is None:
|
|
73
|
+
return value
|
|
74
|
+
|
|
75
|
+
if value not in set(['UI', 'API', 'EMBED', 'DECIPHER', 'QUALTRICS', 'TYPEFORM', 'SURVEY MONKEY']):
|
|
76
|
+
raise ValueError("must be one of enum values ('UI', 'API', 'EMBED', 'DECIPHER', 'QUALTRICS', 'TYPEFORM', 'SURVEY MONKEY')")
|
|
77
|
+
return value
|
|
78
|
+
|
|
79
|
+
model_config = ConfigDict(
|
|
80
|
+
populate_by_name=True,
|
|
81
|
+
validate_assignment=True,
|
|
82
|
+
protected_namespaces=(),
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def to_str(self) -> str:
|
|
87
|
+
"""Returns the string representation of the model using alias"""
|
|
88
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
89
|
+
|
|
90
|
+
def to_json(self) -> str:
|
|
91
|
+
"""Returns the JSON representation of the model using alias"""
|
|
92
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
93
|
+
return json.dumps(self.to_dict())
|
|
94
|
+
|
|
95
|
+
@classmethod
|
|
96
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
97
|
+
"""Create an instance of CreateOrder200ResponseOrder from a JSON string"""
|
|
98
|
+
return cls.from_dict(json.loads(json_str))
|
|
99
|
+
|
|
100
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
101
|
+
"""Return the dictionary representation of the model using alias.
|
|
102
|
+
|
|
103
|
+
This has the following differences from calling pydantic's
|
|
104
|
+
`self.model_dump(by_alias=True)`:
|
|
105
|
+
|
|
106
|
+
* `None` is only added to the output dict for nullable fields that
|
|
107
|
+
were set at model initialization. Other fields with value `None`
|
|
108
|
+
are ignored.
|
|
109
|
+
"""
|
|
110
|
+
excluded_fields: Set[str] = set([
|
|
111
|
+
])
|
|
112
|
+
|
|
113
|
+
_dict = self.model_dump(
|
|
114
|
+
by_alias=True,
|
|
115
|
+
exclude=excluded_fields,
|
|
116
|
+
exclude_none=True,
|
|
117
|
+
)
|
|
118
|
+
# override the default output from pydantic by calling `to_dict()` of payment
|
|
119
|
+
if self.payment:
|
|
120
|
+
_dict['payment'] = self.payment.to_dict()
|
|
121
|
+
# override the default output from pydantic by calling `to_dict()` of each item in rewards (list)
|
|
122
|
+
_items = []
|
|
123
|
+
if self.rewards:
|
|
124
|
+
for _item in self.rewards:
|
|
125
|
+
if _item:
|
|
126
|
+
_items.append(_item.to_dict())
|
|
127
|
+
_dict['rewards'] = _items
|
|
128
|
+
# set to None if external_id (nullable) is None
|
|
129
|
+
# and model_fields_set contains the field
|
|
130
|
+
if self.external_id is None and "external_id" in self.model_fields_set:
|
|
131
|
+
_dict['external_id'] = None
|
|
132
|
+
|
|
133
|
+
# set to None if campaign_id (nullable) is None
|
|
134
|
+
# and model_fields_set contains the field
|
|
135
|
+
if self.campaign_id is None and "campaign_id" in self.model_fields_set:
|
|
136
|
+
_dict['campaign_id'] = None
|
|
137
|
+
|
|
138
|
+
return _dict
|
|
139
|
+
|
|
140
|
+
@classmethod
|
|
141
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
142
|
+
"""Create an instance of CreateOrder200ResponseOrder from a dict"""
|
|
143
|
+
if obj is None:
|
|
144
|
+
return None
|
|
145
|
+
|
|
146
|
+
if not isinstance(obj, dict):
|
|
147
|
+
return cls.model_validate(obj)
|
|
148
|
+
|
|
149
|
+
_obj = cls.model_validate({
|
|
150
|
+
"id": obj.get("id"),
|
|
151
|
+
"external_id": obj.get("external_id"),
|
|
152
|
+
"campaign_id": obj.get("campaign_id"),
|
|
153
|
+
"created_at": obj.get("created_at"),
|
|
154
|
+
"status": obj.get("status"),
|
|
155
|
+
"channel": obj.get("channel"),
|
|
156
|
+
"payment": ListOrders200ResponseOrdersInnerPayment.from_dict(obj["payment"]) if obj.get("payment") is not None else None,
|
|
157
|
+
"invoice_id": obj.get("invoice_id"),
|
|
158
|
+
"rewards": [CreateOrder200ResponseOrderRewardsInner.from_dict(_item) for _item in obj["rewards"]] if obj.get("rewards") is not None else None
|
|
159
|
+
})
|
|
160
|
+
return _obj
|
|
161
|
+
|
|
162
|
+
|