tremendous-python 5.20.0__tar.gz → 5.21.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.
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/PKG-INFO +1 -1
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/pyproject.toml +1 -1
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/api/tremendous_api.py +15 -15
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_request.py +8 -1
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_request_kyb_prefill.py +2 -2
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_payment.py +1 -1
- tremendous_python-5.21.0/tremendous/version.py +1 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous_python.egg-info/PKG-INFO +1 -1
- tremendous_python-5.20.0/tremendous/version.py +0 -1
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/LICENSE +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/README.md +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/setup.cfg +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/setup.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_campaigns.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_enum_tolerance.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_funding_sources.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_invoices.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_members.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_orders.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/test/test_products.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/__init__.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/api/__init__.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/api_client.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/api_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/configuration.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/exceptions.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/__init__.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/allow_email.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/allow_email1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/allow_ip.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/allow_ip1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/balance_transaction.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/balance_transaction_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/balance_transaction_order_payment.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/base_order_for_create.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/campaign.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/campaign_base.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/channel.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization_member_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization_member_session.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization_organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_api_key200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_api_key_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_campaign200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_campaign_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_member200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_member_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_member_session200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_member_session200_response_connected_organization_member_session.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_connected_organization_member_session_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_field.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_field200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_field_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_field_request_data.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_invoice200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_invoice_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_member200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_member_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_order200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_order200_response_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_order200_response_order_rewards_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_order200_response_order_rewards_inner_delivery.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_order_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization200_response_organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization_for_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization_properties.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_organization_request_copy_settings.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report200_response_report.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report_request_filters.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report_request_filters_digital_rewards.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report_request_filters_digital_rewards_amount.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_report_request_filters_digital_rewards_created_at.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_topup200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_topup_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_webhook200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/create_webhook_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/currency_codes.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/custom_field.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delete_fraud_rule200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delivery_details.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delivery_details_with_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delivery_metadata.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delivery_method.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/delivery_status.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/error_model.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_allow_email.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_country.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_country_update_list.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_ip.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_redeemed_rewards_amount.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_redeemed_rewards_count.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_review_email.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_config_review_vpn.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_generic_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_base.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_geo.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_list_item.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_reason.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_redemption_method.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_related_rewards.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_risk.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_review_status.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule400_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule422_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule_request_config.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rule_type.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/fraud_rules_list_item.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/funding_source.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/generate_reward_link200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/generate_reward_link200_response_reward.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/generate_reward_link403_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_fraud_review200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_fraud_review200_response_fraud_review.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_fraud_review200_response_fraud_review_related_rewards.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_funding_source200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_member200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_member200_response_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_member200_response_member_events_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_order200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_organization200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_product_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/get_reward200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/inline_object.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/inline_object1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/inline_object1_reward.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/invoice.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_balance_transactions200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_balance_transactions200_response_transactions_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_balance_transactions200_response_transactions_inner_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_balance_transactions200_response_transactions_inner_order_payment.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_campaigns200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_campaigns200_response_campaigns_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_campaigns200_response_campaigns_inner_auto_add_product_rule.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_campaigns200_response_campaigns_inner_email_style.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_campaigns200_response_campaigns_inner_webpage_style.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organization_members200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organization_members200_response_connected_organization_members_inner_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organizations200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organizations200_response_connected_organizations_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_connected_organizations200_response_connected_organizations_inner_organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fields200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fields200_response_fields_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fields200_response_fields_inner_data.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_forex_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fraud_reviews200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fraud_reviews200_response_fraud_reviews_inner_geo.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fraud_rules200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_funding_sources200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_invoices200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_invoices200_response_invoices_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_members200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_members200_response_members_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_orders200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_orders200_response_orders_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_orders200_response_orders_inner_payment.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_orders200_response_orders_inner_payment_refund.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_organizations200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_organizations200_response_organizations_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response_products_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response_products_inner_countries_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response_products_inner_documents.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response_products_inner_images_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_products_response_products_inner_skus_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response_rewards_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response_rewards_inner_custom_fields_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response_rewards_inner_delivery.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response_rewards_inner_recipient.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards200_response_rewards_inner_value.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards401_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards401_response_errors.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_rewards429_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_roles200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_roles200_response_roles_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_topups200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_topups200_response_topups_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_webhook_events200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_webhooks200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/list_webhooks200_response_webhooks_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/member_base.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/member_with_events.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/member_without_events.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/model_field.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_base.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_base_payment.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_status.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_with_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_with_link_rewards_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_without_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/order_without_link_rewards_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/organization.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/payment_details.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/payment_details_refund.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/payout.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/product.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/product_documents.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/recipient.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/refund_details.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/report.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/resend_reward422_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/resend_reward_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_country.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_country1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_email.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_email1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_ip.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_ip1.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_redeemed_rewards_amount.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_redeemed_rewards_count.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/review_vpn.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_base.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_base_custom_fields_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_for_order_create.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_token.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_value.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_with_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_with_link_delivery.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_without_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/reward_without_link_delivery.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/role.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/simulate_webhook_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_reward.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_reward_custom_fields_inner.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_reward_delivery.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_reward_delivery_meta.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_with_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_with_link_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_without_link.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/single_reward_order_without_link_order.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/topup.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/topup_create_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_campaign.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_campaign_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_fraud_rule_list200_response.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_fraud_rule_list_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_fraud_rule_list_request_config.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_member.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/update_member_request.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/webhook.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/webhook_post.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/py.typed +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/rest.py +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous_python.egg-info/SOURCES.txt +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous_python.egg-info/dependency_links.txt +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous_python.egg-info/requires.txt +0 -0
- {tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous_python.egg-info/top_level.txt +0 -0
|
@@ -1520,7 +1520,7 @@ class TremendousApi:
|
|
|
1520
1520
|
) -> CreateConnectedOrganization200Response:
|
|
1521
1521
|
"""Create connected organization
|
|
1522
1522
|
|
|
1523
|
-
Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1523
|
+
Create a connected organization. Optionally pass `currency_code` to set the connected organization's balance currency. Supported values are `USD`, `EUR`, and `GBP`. If omitted, the balance currency defaults to `USD`. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1524
1524
|
|
|
1525
1525
|
:param create_connected_organization_request: Connected organization to create (required)
|
|
1526
1526
|
:type create_connected_organization_request: CreateConnectedOrganizationRequest
|
|
@@ -1591,7 +1591,7 @@ class TremendousApi:
|
|
|
1591
1591
|
) -> ApiResponse[CreateConnectedOrganization200Response]:
|
|
1592
1592
|
"""Create connected organization
|
|
1593
1593
|
|
|
1594
|
-
Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1594
|
+
Create a connected organization. Optionally pass `currency_code` to set the connected organization's balance currency. Supported values are `USD`, `EUR`, and `GBP`. If omitted, the balance currency defaults to `USD`. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1595
1595
|
|
|
1596
1596
|
:param create_connected_organization_request: Connected organization to create (required)
|
|
1597
1597
|
:type create_connected_organization_request: CreateConnectedOrganizationRequest
|
|
@@ -1662,7 +1662,7 @@ class TremendousApi:
|
|
|
1662
1662
|
) -> RESTResponseType:
|
|
1663
1663
|
"""Create connected organization
|
|
1664
1664
|
|
|
1665
|
-
Create a connected organization. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1665
|
+
Create a connected organization. Optionally pass `currency_code` to set the connected organization's balance currency. Supported values are `USD`, `EUR`, and `GBP`. If omitted, the balance currency defaults to `USD`. Optionally pass a `kyb_prefill` object to forward KYB (Know Your Business) details you have already collected for the end client. When provided, these values prefill the end client's onboarding form; the end client still reviews, edits where needed, and submits the form. Every `kyb_prefill` field is optional, but any value provided is validated. Malformed KYB details (for example an unsupported `country_code` or a malformed `website_url`) return a `400`.
|
|
1666
1666
|
|
|
1667
1667
|
:param create_connected_organization_request: Connected organization to create (required)
|
|
1668
1668
|
:type create_connected_organization_request: CreateConnectedOrganizationRequest
|
|
@@ -3251,7 +3251,7 @@ class TremendousApi:
|
|
|
3251
3251
|
) -> CreateOrder200Response:
|
|
3252
3252
|
"""Create order
|
|
3253
3253
|
|
|
3254
|
-
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3254
|
+
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order.</p> <p>You can also pass one of the following magic values (case-insensitive):</p> <ul> <li><code>BALANCE</code> — pay from your Tremendous balance.</li> <li><code>INVOICE</code> — pay from your commercial invoice account.</li> <li><code>INVOICE_THEN_BALANCE</code> — pay from your commercial invoice account if doing so wouldn't exceed your credit limit, otherwise fall back to your Tremendous balance. The balance must have sufficient funds to pay for the order.</li> </ul> <p><strong>Note:</strong> <code>INVOICE</code> and <code>INVOICE_THEN_BALANCE</code> are only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3255
3255
|
|
|
3256
3256
|
:param create_order_request: Order to create (required)
|
|
3257
3257
|
:type create_order_request: CreateOrderRequest
|
|
@@ -3326,7 +3326,7 @@ class TremendousApi:
|
|
|
3326
3326
|
) -> ApiResponse[CreateOrder200Response]:
|
|
3327
3327
|
"""Create order
|
|
3328
3328
|
|
|
3329
|
-
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3329
|
+
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order.</p> <p>You can also pass one of the following magic values (case-insensitive):</p> <ul> <li><code>BALANCE</code> — pay from your Tremendous balance.</li> <li><code>INVOICE</code> — pay from your commercial invoice account.</li> <li><code>INVOICE_THEN_BALANCE</code> — pay from your commercial invoice account if doing so wouldn't exceed your credit limit, otherwise fall back to your Tremendous balance. The balance must have sufficient funds to pay for the order.</li> </ul> <p><strong>Note:</strong> <code>INVOICE</code> and <code>INVOICE_THEN_BALANCE</code> are only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3330
3330
|
|
|
3331
3331
|
:param create_order_request: Order to create (required)
|
|
3332
3332
|
:type create_order_request: CreateOrderRequest
|
|
@@ -3401,7 +3401,7 @@ class TremendousApi:
|
|
|
3401
3401
|
) -> RESTResponseType:
|
|
3402
3402
|
"""Create order
|
|
3403
3403
|
|
|
3404
|
-
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3404
|
+
Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order.</p> <p>You can also pass one of the following magic values (case-insensitive):</p> <ul> <li><code>BALANCE</code> — pay from your Tremendous balance.</li> <li><code>INVOICE</code> — pay from your commercial invoice account.</li> <li><code>INVOICE_THEN_BALANCE</code> — pay from your commercial invoice account if doing so wouldn't exceed your credit limit, otherwise fall back to your Tremendous balance. The balance must have sufficient funds to pay for the order.</li> </ul> <p><strong>Note:</strong> <code>INVOICE</code> and <code>INVOICE_THEN_BALANCE</code> are only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it's recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
3405
3405
|
|
|
3406
3406
|
:param create_order_request: Order to create (required)
|
|
3407
3407
|
:type create_order_request: CreateOrderRequest
|
|
@@ -8553,7 +8553,7 @@ class TremendousApi:
|
|
|
8553
8553
|
@validate_call
|
|
8554
8554
|
def get_funding_source(
|
|
8555
8555
|
self,
|
|
8556
|
-
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use
|
|
8556
|
+
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source.")],
|
|
8557
8557
|
_request_timeout: Union[
|
|
8558
8558
|
None,
|
|
8559
8559
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8569,9 +8569,9 @@ class TremendousApi:
|
|
|
8569
8569
|
) -> GetFundingSource200Response:
|
|
8570
8570
|
"""Retrieve funding source
|
|
8571
8571
|
|
|
8572
|
-
Retrieve a funding source, identified by the given `id` in the URL. You can also use the special
|
|
8572
|
+
Retrieve a funding source, identified by the given `id` in the URL. You can also use the following special keywords (case-insensitive): - `BALANCE` retrieves the organization's balance funding source. - `INVOICE` retrieves the organization's active commercial invoice funding source. **Note:** Commercial invoicing is only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.
|
|
8573
8573
|
|
|
8574
|
-
:param id: ID of the funding source that should be retrieved. Can also use
|
|
8574
|
+
:param id: ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source. (required)
|
|
8575
8575
|
:type id: str
|
|
8576
8576
|
:param _request_timeout: timeout setting for this request. If one
|
|
8577
8577
|
number provided, it will be total request
|
|
@@ -8624,7 +8624,7 @@ class TremendousApi:
|
|
|
8624
8624
|
@validate_call
|
|
8625
8625
|
def get_funding_source_with_http_info(
|
|
8626
8626
|
self,
|
|
8627
|
-
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use
|
|
8627
|
+
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source.")],
|
|
8628
8628
|
_request_timeout: Union[
|
|
8629
8629
|
None,
|
|
8630
8630
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8640,9 +8640,9 @@ class TremendousApi:
|
|
|
8640
8640
|
) -> ApiResponse[GetFundingSource200Response]:
|
|
8641
8641
|
"""Retrieve funding source
|
|
8642
8642
|
|
|
8643
|
-
Retrieve a funding source, identified by the given `id` in the URL. You can also use the special
|
|
8643
|
+
Retrieve a funding source, identified by the given `id` in the URL. You can also use the following special keywords (case-insensitive): - `BALANCE` retrieves the organization's balance funding source. - `INVOICE` retrieves the organization's active commercial invoice funding source. **Note:** Commercial invoicing is only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.
|
|
8644
8644
|
|
|
8645
|
-
:param id: ID of the funding source that should be retrieved. Can also use
|
|
8645
|
+
:param id: ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source. (required)
|
|
8646
8646
|
:type id: str
|
|
8647
8647
|
:param _request_timeout: timeout setting for this request. If one
|
|
8648
8648
|
number provided, it will be total request
|
|
@@ -8695,7 +8695,7 @@ class TremendousApi:
|
|
|
8695
8695
|
@validate_call
|
|
8696
8696
|
def get_funding_source_without_preload_content(
|
|
8697
8697
|
self,
|
|
8698
|
-
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use
|
|
8698
|
+
id: Annotated[str, Field(strict=True, description="ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source.")],
|
|
8699
8699
|
_request_timeout: Union[
|
|
8700
8700
|
None,
|
|
8701
8701
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8711,9 +8711,9 @@ class TremendousApi:
|
|
|
8711
8711
|
) -> RESTResponseType:
|
|
8712
8712
|
"""Retrieve funding source
|
|
8713
8713
|
|
|
8714
|
-
Retrieve a funding source, identified by the given `id` in the URL. You can also use the special
|
|
8714
|
+
Retrieve a funding source, identified by the given `id` in the URL. You can also use the following special keywords (case-insensitive): - `BALANCE` retrieves the organization's balance funding source. - `INVOICE` retrieves the organization's active commercial invoice funding source. **Note:** Commercial invoicing is only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.
|
|
8715
8715
|
|
|
8716
|
-
:param id: ID of the funding source that should be retrieved. Can also use
|
|
8716
|
+
:param id: ID of the funding source that should be retrieved. Can also use `BALANCE` or `INVOICE` (case-insensitive) to retrieve the corresponding funding source. (required)
|
|
8717
8717
|
:type id: str
|
|
8718
8718
|
:param _request_timeout: timeout setting for this request. If one
|
|
8719
8719
|
number provided, it will be total request
|
|
@@ -29,8 +29,9 @@ class CreateConnectedOrganizationRequest(BaseModel):
|
|
|
29
29
|
CreateConnectedOrganizationRequest
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
client_id: StrictStr = Field(description="The client ID of the OAuth application.")
|
|
32
|
+
currency_code: Optional[StrictStr] = Field(default='USD', description="The currency used for the connected organization's balance. Supported values are `USD`, `EUR`, and `GBP`. Defaults to `USD` if omitted, `null`, or blank.")
|
|
32
33
|
kyb_prefill: Optional[CreateConnectedOrganizationRequestKybPrefill] = None
|
|
33
|
-
__properties: ClassVar[List[str]] = ["client_id", "kyb_prefill"]
|
|
34
|
+
__properties: ClassVar[List[str]] = ["client_id", "currency_code", "kyb_prefill"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
37
|
populate_by_name=True,
|
|
@@ -74,6 +75,11 @@ class CreateConnectedOrganizationRequest(BaseModel):
|
|
|
74
75
|
# override the default output from pydantic by calling `to_dict()` of kyb_prefill
|
|
75
76
|
if self.kyb_prefill:
|
|
76
77
|
_dict['kyb_prefill'] = self.kyb_prefill.to_dict()
|
|
78
|
+
# set to None if currency_code (nullable) is None
|
|
79
|
+
# and model_fields_set contains the field
|
|
80
|
+
if self.currency_code is None and "currency_code" in self.model_fields_set:
|
|
81
|
+
_dict['currency_code'] = None
|
|
82
|
+
|
|
77
83
|
return _dict
|
|
78
84
|
|
|
79
85
|
@classmethod
|
|
@@ -87,6 +93,7 @@ class CreateConnectedOrganizationRequest(BaseModel):
|
|
|
87
93
|
|
|
88
94
|
_obj = cls.model_validate({
|
|
89
95
|
"client_id": obj.get("client_id"),
|
|
96
|
+
"currency_code": obj.get("currency_code") if obj.get("currency_code") is not None else 'USD',
|
|
90
97
|
"kyb_prefill": CreateConnectedOrganizationRequestKybPrefill.from_dict(obj["kyb_prefill"]) if obj.get("kyb_prefill") is not None else None
|
|
91
98
|
})
|
|
92
99
|
return _obj
|
|
@@ -25,11 +25,11 @@ from typing_extensions import Self
|
|
|
25
25
|
|
|
26
26
|
class CreateConnectedOrganizationRequestKybPrefill(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
Optional KYB details to forward for the end client. When provided, these values prefill the end client's onboarding form. Every field is optional.
|
|
28
|
+
Optional KYB details to forward for the end client. When provided, these values prefill the end client's onboarding form. Every field is optional.
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
company_name: Optional[StrictStr] = Field(default=None, description="The registered legal name of the company.")
|
|
31
31
|
doing_business_as: Optional[StrictStr] = Field(default=None, description="The trade name (DBA) the company operates under, if different from its legal name.")
|
|
32
|
-
company_structure: Optional[StrictStr] = Field(default=None, description="The company's legal entity type. Free-form text; any value is accepted. Common values include `Sole proprietorship`, `Corporation (Inc)`, `Limited liability company (LLC)`, `Limited liability partnership (LLP)`, `Public limited company (PLC)`, and `Private limited company (LTD)`.
|
|
32
|
+
company_structure: Optional[StrictStr] = Field(default=None, description="The company's legal entity type. Free-form text; any value is accepted. Common values include `Sole proprietorship`, `Corporation (Inc)`, `Limited liability company (LLC)`, `Limited liability partnership (LLP)`, `Public limited company (PLC)`, and `Private limited company (LTD)`.")
|
|
33
33
|
company_registration_number: Optional[StrictStr] = Field(default=None, description="The company's tax ID or registration number.")
|
|
34
34
|
country_code: Optional[StrictStr] = Field(default=None, description="The ISO 3166-1 alpha-2 country code of the company. Must be a supported country.")
|
|
35
35
|
website_url: Optional[StrictStr] = Field(default=None, description="The company's website URL. Must be a well-formed URL.")
|
|
@@ -27,7 +27,7 @@ class SingleRewardOrderPayment(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
SingleRewardOrderPayment
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
funding_source_id: StrictStr = Field(description="Tremendous ID of the funding source that will be used to pay for the order.
|
|
30
|
+
funding_source_id: StrictStr = Field(description="Tremendous ID of the funding source that will be used to pay for the order. You can also pass one of the following magic values (case-insensitive): - `BALANCE` — pay from your Tremendous balance. - `INVOICE` — pay from your commercial invoice account. - `INVOICE_THEN_BALANCE` — pay from your commercial invoice account if doing so wouldn't exceed your credit limit, otherwise fall back to your Tremendous balance. The balance must have sufficient funds to pay for the order. **Note:** `INVOICE` and `INVOICE_THEN_BALANCE` are only available to select Enterprise clients with an existing commercial invoicing setup. If your organization already uses commercial invoicing and you have questions, contact your Customer Success Manager.")
|
|
31
31
|
__properties: ClassVar[List[str]] = ["funding_source_id"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '5.21.0'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '5.20.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/balance_transaction.py
RENAMED
|
File without changes
|
{tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/balance_transaction_order.py
RENAMED
|
File without changes
|
|
File without changes
|
{tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/base_order_for_create.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tremendous_python-5.20.0 → tremendous_python-5.21.0}/tremendous/models/connected_organization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|