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