wallee-ruby-sdk 6.4.0 → 7.0.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/Gemfile.lock +38 -31
- data/README.md +450 -129
- data/lib/wallee-ruby-sdk/api_client.rb +1 -1
- data/lib/wallee-ruby-sdk/models/abstract_o_auth_client_update.rb +340 -0
- data/lib/wallee-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/wallee-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/{abstract_payment_terminal_update.rb → basic_address.rb} +46 -30
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
- data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
- data/lib/wallee-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_option.rb → create_fulfillment_request.rb} +25 -50
- data/lib/wallee-ruby-sdk/models/delivery_days_range.rb +60 -0
- data/lib/wallee-ruby-sdk/models/delivery_destination.rb +51 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_state.rb → dunning_case_level_state.rb} +7 -7
- data/lib/wallee-ruby-sdk/models/extended_rest_o_auth_client.rb +425 -0
- data/lib/wallee-ruby-sdk/models/fulfillment.rb +428 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/fulfillment_state.rb +52 -0
- data/lib/wallee-ruby-sdk/models/identity_info.rb +279 -0
- data/lib/wallee-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link.rb +278 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/wallee-ruby-sdk/models/legal_form.rb +83 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_data_dto.rb +275 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_state.rb +50 -0
- data/lib/wallee-ruby-sdk/models/merchant_application_status_dto.rb +284 -0
- data/lib/wallee-ruby-sdk/models/merchant_bank_details_dto.rb +253 -0
- data/lib/wallee-ruby-sdk/models/merchant_company_details_dto.rb +331 -0
- data/lib/wallee-ruby-sdk/models/merchant_contract_revenue_dto.rb +261 -0
- data/lib/wallee-ruby-sdk/models/merchant_ecommerce_details_dto.rb +348 -0
- data/lib/wallee-ruby-sdk/models/merchant_payment_channels_dto.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_address_change_response.rb → merchant_related_persons_dto.rb} +22 -20
- data/lib/wallee-ruby-sdk/models/o_auth_client.rb +397 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_create.rb +365 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role_list_response.rb → o_auth_client_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_client_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/o_auth_client_update.rb +374 -0
- data/lib/wallee-ruby-sdk/models/o_auth_consent.rb +321 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role_list_response.rb → o_auth_consent_list_response.rb} +4 -4
- data/lib/wallee-ruby-sdk/models/o_auth_consent_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/{user_account_role.rb → o_auth_user.rb} +56 -29
- data/lib/wallee-ruby-sdk/models/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
- data/lib/wallee-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +57 -72
- data/lib/wallee-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/wallee-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/wallee-ruby-sdk/models/{express_checkout_create_response.rb → payout_account_info.rb} +31 -22
- data/lib/wallee-ruby-sdk/models/person_salutation.rb +54 -0
- data/lib/wallee-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/wallee-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/refund_days_range.rb +51 -0
- data/lib/wallee-ruby-sdk/models/refund_percentage_range.rb +56 -0
- data/lib/wallee-ruby-sdk/models/related_person.rb +329 -0
- data/lib/wallee-ruby-sdk/models/representative_info.rb +239 -0
- data/lib/wallee-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
- data/lib/wallee-ruby-sdk/models/{express_checkout_approval_response.rb → rest_o_auth_client_secret.rb} +19 -17
- data/lib/wallee-ruby-sdk/models/rest_o_auth_client_secret_created.rb +289 -0
- data/lib/wallee-ruby-sdk/models/role.rb +13 -1
- data/lib/wallee-ruby-sdk/models/role_create.rb +13 -1
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_request.rb → role_ref.rb} +21 -11
- data/lib/wallee-ruby-sdk/models/role_update.rb +13 -1
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +15 -230
- data/lib/wallee-ruby-sdk/models/scope.rb +13 -1
- data/lib/wallee-ruby-sdk/models/secret_key_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/setter.rb +618 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietor_ownership_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/sole_proprietorship_info.rb +261 -0
- data/lib/wallee-ruby-sdk/models/state_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/wallee-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
- data/lib/wallee-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/wallee-ruby-sdk/models/{express_checkout_shipping_method_change_response.rb → subscription_product_dto.rb} +16 -18
- data/lib/wallee-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/wallee-ruby-sdk/models/tracking_number_request.rb +230 -0
- data/lib/wallee-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/wallee-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_create_partnership_api_request_dto.rb +266 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/wallee-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/wallee-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/wallee-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/wallee-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/wallee-ruby-sdk/service/analytics_queries_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/wallee-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/consumed_resources_service.rb +1 -1
- data/lib/wallee-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/wallee-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/debt_collection_cases_service.rb +12 -12
- data/lib/wallee-ruby-sdk/service/debt_collector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/wallee-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/fulfillments_service.rb +355 -0
- data/lib/wallee-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/wallee-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/wallee-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/wallee-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/wallee-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/wallee-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/members_service.rb +215 -0
- data/lib/wallee-ruby-sdk/service/merchant_applications_service.rb +334 -0
- data/lib/wallee-ruby-sdk/service/o_auth_clients_service.rb +611 -0
- data/lib/wallee-ruby-sdk/service/o_auth_consents_service.rb +332 -0
- data/lib/wallee-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/wallee-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/wallee-ruby-sdk/service/payment_web_apps_service.rb +11 -11
- data/lib/wallee-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/wallee-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/wallee-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/wallee-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/wallee-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/wallee-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/wallee-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/wallee-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/wallee-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/wallee-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/wallee-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/wallee-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/wallee-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/wallee-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/wallee-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/lib/wallee-ruby-sdk.rb +115 -25
- metadata +117 -27
- data/lib/wallee-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
- data/lib/wallee-ruby-sdk/service/express_checkout_service.rb +0 -269
- data/lib/wallee-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/wallee-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -24,30 +24,47 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module WalleeRubySdk
|
|
27
|
-
class
|
|
28
|
-
# The
|
|
29
|
-
attr_accessor :
|
|
27
|
+
class RestMember
|
|
28
|
+
# The roles the user holds.
|
|
29
|
+
attr_accessor :roles
|
|
30
|
+
|
|
31
|
+
# The name used to identify the user.
|
|
32
|
+
attr_accessor :name
|
|
30
33
|
|
|
31
34
|
# A unique identifier for the object.
|
|
32
35
|
attr_accessor :id
|
|
33
36
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
attr_accessor :user_type
|
|
38
|
+
|
|
39
|
+
class EnumAttributeValidator
|
|
40
|
+
attr_reader :datatype
|
|
41
|
+
attr_reader :allowable_values
|
|
42
|
+
|
|
43
|
+
def initialize(datatype, allowable_values)
|
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
|
45
|
+
case datatype.to_s
|
|
46
|
+
when /Integer/i
|
|
47
|
+
value.to_i
|
|
48
|
+
when /Float/i
|
|
49
|
+
value.to_f
|
|
50
|
+
else
|
|
51
|
+
value
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
39
55
|
|
|
40
|
-
|
|
41
|
-
|
|
56
|
+
def valid?(value)
|
|
57
|
+
!value || allowable_values.include?(value)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
42
60
|
|
|
43
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
62
|
def self.attribute_map
|
|
45
63
|
{
|
|
46
|
-
:'
|
|
64
|
+
:'roles' => :'roles',
|
|
65
|
+
:'name' => :'name',
|
|
47
66
|
:'id' => :'id',
|
|
48
|
-
:'
|
|
49
|
-
:'version' => :'version',
|
|
50
|
-
:'space' => :'space'
|
|
67
|
+
:'user_type' => :'userType'
|
|
51
68
|
}
|
|
52
69
|
end
|
|
53
70
|
|
|
@@ -64,11 +81,10 @@ module WalleeRubySdk
|
|
|
64
81
|
# Attribute type mapping.
|
|
65
82
|
def self.openapi_types
|
|
66
83
|
{
|
|
67
|
-
:'
|
|
84
|
+
:'roles' => :'Array<RoleRef>',
|
|
85
|
+
:'name' => :'String',
|
|
68
86
|
:'id' => :'Integer',
|
|
69
|
-
:'
|
|
70
|
-
:'version' => :'Integer',
|
|
71
|
-
:'space' => :'Integer'
|
|
87
|
+
:'user_type' => :'UserType'
|
|
72
88
|
}
|
|
73
89
|
end
|
|
74
90
|
|
|
@@ -82,36 +98,34 @@ module WalleeRubySdk
|
|
|
82
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
99
|
def initialize(attributes = {})
|
|
84
100
|
if (!attributes.is_a?(Hash))
|
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::
|
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::RestMember` initialize method"
|
|
86
102
|
end
|
|
87
103
|
|
|
88
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
105
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
106
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
107
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::RestMember`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
109
|
end
|
|
94
110
|
h[k.to_sym] = v
|
|
95
111
|
}
|
|
96
112
|
|
|
97
|
-
if attributes.key?(:'
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if attributes.key?(:'id')
|
|
102
|
-
self.id = attributes[:'id']
|
|
113
|
+
if attributes.key?(:'roles')
|
|
114
|
+
if (value = attributes[:'roles']).is_a?(Array)
|
|
115
|
+
self.roles = value
|
|
116
|
+
end
|
|
103
117
|
end
|
|
104
118
|
|
|
105
|
-
if attributes.key?(:'
|
|
106
|
-
self.
|
|
119
|
+
if attributes.key?(:'name')
|
|
120
|
+
self.name = attributes[:'name']
|
|
107
121
|
end
|
|
108
122
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
123
|
+
if attributes.key?(:'id')
|
|
124
|
+
self.id = attributes[:'id']
|
|
111
125
|
end
|
|
112
126
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
127
|
+
if attributes.key?(:'user_type')
|
|
128
|
+
self.user_type = attributes[:'user_type']
|
|
115
129
|
end
|
|
116
130
|
end
|
|
117
131
|
|
|
@@ -135,11 +149,10 @@ module WalleeRubySdk
|
|
|
135
149
|
def ==(o)
|
|
136
150
|
return true if self.equal?(o)
|
|
137
151
|
self.class == o.class &&
|
|
138
|
-
|
|
152
|
+
roles == o.roles &&
|
|
153
|
+
name == o.name &&
|
|
139
154
|
id == o.id &&
|
|
140
|
-
|
|
141
|
-
version == o.version &&
|
|
142
|
-
space == o.space
|
|
155
|
+
user_type == o.user_type
|
|
143
156
|
end
|
|
144
157
|
|
|
145
158
|
# @see the `==` method
|
|
@@ -151,7 +164,7 @@ module WalleeRubySdk
|
|
|
151
164
|
# Calculates hash code according to all attributes.
|
|
152
165
|
# @return [Integer] Hash code
|
|
153
166
|
def hash
|
|
154
|
-
[
|
|
167
|
+
[roles, name, id, user_type].hash
|
|
155
168
|
end
|
|
156
169
|
|
|
157
170
|
# Builds the object from hash
|
|
@@ -24,10 +24,12 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module WalleeRubySdk
|
|
27
|
-
class
|
|
28
|
-
|
|
27
|
+
class RestOAuthClientSecret
|
|
28
|
+
# The date and time when the object was created.
|
|
29
|
+
attr_accessor :creation_time
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
# A unique identifier for the object.
|
|
32
|
+
attr_accessor :id
|
|
31
33
|
|
|
32
34
|
attr_accessor :state
|
|
33
35
|
|
|
@@ -56,8 +58,8 @@ module WalleeRubySdk
|
|
|
56
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
59
|
def self.attribute_map
|
|
58
60
|
{
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
61
|
+
:'creation_time' => :'creationTime',
|
|
62
|
+
:'id' => :'id',
|
|
61
63
|
:'state' => :'state'
|
|
62
64
|
}
|
|
63
65
|
end
|
|
@@ -75,9 +77,9 @@ module WalleeRubySdk
|
|
|
75
77
|
# Attribute type mapping.
|
|
76
78
|
def self.openapi_types
|
|
77
79
|
{
|
|
78
|
-
:'
|
|
79
|
-
:'
|
|
80
|
-
:'state' => :'
|
|
80
|
+
:'creation_time' => :'Time',
|
|
81
|
+
:'id' => :'Integer',
|
|
82
|
+
:'state' => :'SecretKeyState'
|
|
81
83
|
}
|
|
82
84
|
end
|
|
83
85
|
|
|
@@ -91,24 +93,24 @@ module WalleeRubySdk
|
|
|
91
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
94
|
def initialize(attributes = {})
|
|
93
95
|
if (!attributes.is_a?(Hash))
|
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::
|
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::RestOAuthClientSecret` initialize method"
|
|
95
97
|
end
|
|
96
98
|
|
|
97
99
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
98
100
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
99
101
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
100
102
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
101
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::
|
|
103
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::RestOAuthClientSecret`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
102
104
|
end
|
|
103
105
|
h[k.to_sym] = v
|
|
104
106
|
}
|
|
105
107
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
108
|
+
if attributes.key?(:'creation_time')
|
|
109
|
+
self.creation_time = attributes[:'creation_time']
|
|
108
110
|
end
|
|
109
111
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
self.
|
|
112
|
+
if attributes.key?(:'id')
|
|
113
|
+
self.id = attributes[:'id']
|
|
112
114
|
end
|
|
113
115
|
|
|
114
116
|
if attributes.key?(:'state')
|
|
@@ -136,8 +138,8 @@ module WalleeRubySdk
|
|
|
136
138
|
def ==(o)
|
|
137
139
|
return true if self.equal?(o)
|
|
138
140
|
self.class == o.class &&
|
|
139
|
-
|
|
140
|
-
|
|
141
|
+
creation_time == o.creation_time &&
|
|
142
|
+
id == o.id &&
|
|
141
143
|
state == o.state
|
|
142
144
|
end
|
|
143
145
|
|
|
@@ -150,7 +152,7 @@ module WalleeRubySdk
|
|
|
150
152
|
# Calculates hash code according to all attributes.
|
|
151
153
|
# @return [Integer] Hash code
|
|
152
154
|
def hash
|
|
153
|
-
[
|
|
155
|
+
[creation_time, id, state].hash
|
|
154
156
|
end
|
|
155
157
|
|
|
156
158
|
# Builds the object from hash
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# Wallee AG Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the Wallee AG payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://en.wallee.com
|
|
8
|
+
# Developer email: ecosystem-team@wallee.com
|
|
9
|
+
#
|
|
10
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
# you may not use this file except in compliance with the License.
|
|
12
|
+
# You may obtain a copy of the License at
|
|
13
|
+
#
|
|
14
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
#
|
|
16
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
# See the License for the specific language governing permissions and
|
|
20
|
+
# limitations under the License.
|
|
21
|
+
=end
|
|
22
|
+
|
|
23
|
+
require 'date'
|
|
24
|
+
require 'time'
|
|
25
|
+
|
|
26
|
+
module WalleeRubySdk
|
|
27
|
+
class RestOAuthClientSecretCreated
|
|
28
|
+
# The date and time when the object was created.
|
|
29
|
+
attr_accessor :creation_time
|
|
30
|
+
|
|
31
|
+
# A unique identifier for the object.
|
|
32
|
+
attr_accessor :id
|
|
33
|
+
|
|
34
|
+
attr_accessor :state
|
|
35
|
+
|
|
36
|
+
# The actual client secret string.
|
|
37
|
+
attr_accessor :secret_key
|
|
38
|
+
|
|
39
|
+
class EnumAttributeValidator
|
|
40
|
+
attr_reader :datatype
|
|
41
|
+
attr_reader :allowable_values
|
|
42
|
+
|
|
43
|
+
def initialize(datatype, allowable_values)
|
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
|
45
|
+
case datatype.to_s
|
|
46
|
+
when /Integer/i
|
|
47
|
+
value.to_i
|
|
48
|
+
when /Float/i
|
|
49
|
+
value.to_f
|
|
50
|
+
else
|
|
51
|
+
value
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def valid?(value)
|
|
57
|
+
!value || allowable_values.include?(value)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
|
+
def self.attribute_map
|
|
63
|
+
{
|
|
64
|
+
:'creation_time' => :'creationTime',
|
|
65
|
+
:'id' => :'id',
|
|
66
|
+
:'state' => :'state',
|
|
67
|
+
:'secret_key' => :'secretKey'
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Returns attribute mapping this model knows about
|
|
72
|
+
def self.acceptable_attribute_map
|
|
73
|
+
attribute_map
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Returns all the JSON keys this model knows about
|
|
77
|
+
def self.acceptable_attributes
|
|
78
|
+
acceptable_attribute_map.values
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Attribute type mapping.
|
|
82
|
+
def self.openapi_types
|
|
83
|
+
{
|
|
84
|
+
:'creation_time' => :'Time',
|
|
85
|
+
:'id' => :'Integer',
|
|
86
|
+
:'state' => :'SecretKeyState',
|
|
87
|
+
:'secret_key' => :'String'
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# List of attributes with nullable: true
|
|
92
|
+
def self.openapi_nullable
|
|
93
|
+
Set.new([
|
|
94
|
+
])
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
98
|
+
def self.openapi_all_of
|
|
99
|
+
[
|
|
100
|
+
:'RestOAuthClientSecret'
|
|
101
|
+
]
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Initializes the object
|
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
106
|
+
def initialize(attributes = {})
|
|
107
|
+
if (!attributes.is_a?(Hash))
|
|
108
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `WalleeRubySdk::RestOAuthClientSecretCreated` initialize method"
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
112
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
113
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
114
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
115
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `WalleeRubySdk::RestOAuthClientSecretCreated`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
116
|
+
end
|
|
117
|
+
h[k.to_sym] = v
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'creation_time')
|
|
121
|
+
self.creation_time = attributes[:'creation_time']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'id')
|
|
125
|
+
self.id = attributes[:'id']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'state')
|
|
129
|
+
self.state = attributes[:'state']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'secret_key')
|
|
133
|
+
self.secret_key = attributes[:'secret_key']
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
138
|
+
# @return Array for valid properties with the reasons
|
|
139
|
+
def list_invalid_properties
|
|
140
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
141
|
+
invalid_properties = Array.new
|
|
142
|
+
invalid_properties
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Check to see if the all the properties in the model are valid
|
|
146
|
+
# @return true if the model is valid
|
|
147
|
+
def valid?
|
|
148
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
149
|
+
true
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Checks equality by comparing each attribute.
|
|
153
|
+
# @param [Object] Object to be compared
|
|
154
|
+
def ==(o)
|
|
155
|
+
return true if self.equal?(o)
|
|
156
|
+
self.class == o.class &&
|
|
157
|
+
creation_time == o.creation_time &&
|
|
158
|
+
id == o.id &&
|
|
159
|
+
state == o.state &&
|
|
160
|
+
secret_key == o.secret_key
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see the `==` method
|
|
164
|
+
# @param [Object] Object to be compared
|
|
165
|
+
def eql?(o)
|
|
166
|
+
self == o
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
def hash
|
|
172
|
+
[creation_time, id, state, secret_key].hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Builds the object from hash
|
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
|
+
# @return [Object] Returns the model itself
|
|
178
|
+
def self.build_from_hash(attributes)
|
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
|
180
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
181
|
+
transformed_hash = {}
|
|
182
|
+
openapi_types.each_pair do |key, type|
|
|
183
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
184
|
+
transformed_hash["#{key}"] = nil
|
|
185
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
186
|
+
# check to ensure the input is an array given that the attribute
|
|
187
|
+
# is documented as an array but the input is not
|
|
188
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
189
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
190
|
+
end
|
|
191
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
192
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
new(transformed_hash)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Deserializes the data based on type
|
|
199
|
+
# @param string type Data type
|
|
200
|
+
# @param string value Value to be deserialized
|
|
201
|
+
# @return [Object] Deserialized data
|
|
202
|
+
def self._deserialize(type, value)
|
|
203
|
+
case type.to_sym
|
|
204
|
+
when :Time
|
|
205
|
+
Time.parse(value)
|
|
206
|
+
when :Date
|
|
207
|
+
Date.parse(value)
|
|
208
|
+
when :String
|
|
209
|
+
value.to_s
|
|
210
|
+
when :Integer
|
|
211
|
+
value.to_i
|
|
212
|
+
when :Float
|
|
213
|
+
value.to_f
|
|
214
|
+
when :Boolean
|
|
215
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
216
|
+
true
|
|
217
|
+
else
|
|
218
|
+
false
|
|
219
|
+
end
|
|
220
|
+
when :Object
|
|
221
|
+
# generic object (usually a Hash), return directly
|
|
222
|
+
value
|
|
223
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
224
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
225
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
226
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
227
|
+
k_type = Regexp.last_match[:k_type]
|
|
228
|
+
v_type = Regexp.last_match[:v_type]
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each do |k, v|
|
|
231
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
else # model
|
|
235
|
+
# models (e.g. Pet) or oneOf
|
|
236
|
+
klass = WalleeRubySdk.const_get(type)
|
|
237
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns the string representation of the object
|
|
242
|
+
# @return [String] String presentation of the object
|
|
243
|
+
def to_s
|
|
244
|
+
to_hash.to_s
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
248
|
+
# @return [Hash] Returns the object in the form of hash
|
|
249
|
+
def to_body
|
|
250
|
+
to_hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Returns the object in the form of hash
|
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
|
255
|
+
def to_hash
|
|
256
|
+
hash = {}
|
|
257
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
258
|
+
value = self.send(attr)
|
|
259
|
+
if value.nil?
|
|
260
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
261
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
hash[param] = _to_hash(value)
|
|
265
|
+
end
|
|
266
|
+
hash
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Outputs non-array value in the form of hash
|
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
271
|
+
# @param [Object] value Any valid value
|
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
|
273
|
+
def _to_hash(value)
|
|
274
|
+
if value.is_a?(Array)
|
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
|
276
|
+
elsif value.is_a?(Hash)
|
|
277
|
+
{}.tap do |hash|
|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
279
|
+
end
|
|
280
|
+
elsif value.respond_to? :to_hash
|
|
281
|
+
value.to_hash
|
|
282
|
+
else
|
|
283
|
+
value
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
end
|
|
@@ -34,6 +34,9 @@ module WalleeRubySdk
|
|
|
34
34
|
# The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
|
|
35
35
|
attr_accessor :planned_purge_date
|
|
36
36
|
|
|
37
|
+
# Additional information that describes the role.
|
|
38
|
+
attr_accessor :description
|
|
39
|
+
|
|
37
40
|
# A unique identifier for the object.
|
|
38
41
|
attr_accessor :id
|
|
39
42
|
|
|
@@ -75,6 +78,7 @@ module WalleeRubySdk
|
|
|
75
78
|
:'permissions' => :'permissions',
|
|
76
79
|
:'name' => :'name',
|
|
77
80
|
:'planned_purge_date' => :'plannedPurgeDate',
|
|
81
|
+
:'description' => :'description',
|
|
78
82
|
:'id' => :'id',
|
|
79
83
|
:'state' => :'state',
|
|
80
84
|
:'version' => :'version',
|
|
@@ -99,6 +103,7 @@ module WalleeRubySdk
|
|
|
99
103
|
:'permissions' => :'Array<Permission>',
|
|
100
104
|
:'name' => :'Hash<String, String>',
|
|
101
105
|
:'planned_purge_date' => :'Time',
|
|
106
|
+
:'description' => :'Hash<String, String>',
|
|
102
107
|
:'id' => :'Integer',
|
|
103
108
|
:'state' => :'RoleState',
|
|
104
109
|
:'version' => :'Integer',
|
|
@@ -145,6 +150,12 @@ module WalleeRubySdk
|
|
|
145
150
|
self.planned_purge_date = attributes[:'planned_purge_date']
|
|
146
151
|
end
|
|
147
152
|
|
|
153
|
+
if attributes.key?(:'description')
|
|
154
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
|
155
|
+
self.description = value
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
148
159
|
if attributes.key?(:'id')
|
|
149
160
|
self.id = attributes[:'id']
|
|
150
161
|
end
|
|
@@ -199,6 +210,7 @@ module WalleeRubySdk
|
|
|
199
210
|
permissions == o.permissions &&
|
|
200
211
|
name == o.name &&
|
|
201
212
|
planned_purge_date == o.planned_purge_date &&
|
|
213
|
+
description == o.description &&
|
|
202
214
|
id == o.id &&
|
|
203
215
|
state == o.state &&
|
|
204
216
|
version == o.version &&
|
|
@@ -215,7 +227,7 @@ module WalleeRubySdk
|
|
|
215
227
|
# Calculates hash code according to all attributes.
|
|
216
228
|
# @return [Integer] Hash code
|
|
217
229
|
def hash
|
|
218
|
-
[permissions, name, planned_purge_date, id, state, version, account, two_factor_required].hash
|
|
230
|
+
[permissions, name, planned_purge_date, description, id, state, version, account, two_factor_required].hash
|
|
219
231
|
end
|
|
220
232
|
|
|
221
233
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module WalleeRubySdk
|
|
|
31
31
|
# The name used to identify the role.
|
|
32
32
|
attr_accessor :name
|
|
33
33
|
|
|
34
|
+
# Additional information that describes the role.
|
|
35
|
+
attr_accessor :description
|
|
36
|
+
|
|
34
37
|
# Whether users with this role are required to use two-factor authentication.
|
|
35
38
|
attr_accessor :two_factor_required
|
|
36
39
|
|
|
@@ -42,6 +45,7 @@ module WalleeRubySdk
|
|
|
42
45
|
{
|
|
43
46
|
:'permissions' => :'permissions',
|
|
44
47
|
:'name' => :'name',
|
|
48
|
+
:'description' => :'description',
|
|
45
49
|
:'two_factor_required' => :'twoFactorRequired',
|
|
46
50
|
:'account' => :'account'
|
|
47
51
|
}
|
|
@@ -62,6 +66,7 @@ module WalleeRubySdk
|
|
|
62
66
|
{
|
|
63
67
|
:'permissions' => :'Array<Permission>',
|
|
64
68
|
:'name' => :'Hash<String, String>',
|
|
69
|
+
:'description' => :'Hash<String, String>',
|
|
65
70
|
:'two_factor_required' => :'Boolean',
|
|
66
71
|
:'account' => :'Integer'
|
|
67
72
|
}
|
|
@@ -108,6 +113,12 @@ module WalleeRubySdk
|
|
|
108
113
|
end
|
|
109
114
|
end
|
|
110
115
|
|
|
116
|
+
if attributes.key?(:'description')
|
|
117
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
|
118
|
+
self.description = value
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
111
122
|
if attributes.key?(:'two_factor_required')
|
|
112
123
|
self.two_factor_required = attributes[:'two_factor_required']
|
|
113
124
|
end
|
|
@@ -166,6 +177,7 @@ module WalleeRubySdk
|
|
|
166
177
|
self.class == o.class &&
|
|
167
178
|
permissions == o.permissions &&
|
|
168
179
|
name == o.name &&
|
|
180
|
+
description == o.description &&
|
|
169
181
|
two_factor_required == o.two_factor_required &&
|
|
170
182
|
account == o.account
|
|
171
183
|
end
|
|
@@ -179,7 +191,7 @@ module WalleeRubySdk
|
|
|
179
191
|
# Calculates hash code according to all attributes.
|
|
180
192
|
# @return [Integer] Hash code
|
|
181
193
|
def hash
|
|
182
|
-
[permissions, name, two_factor_required, account].hash
|
|
194
|
+
[permissions, name, description, two_factor_required, account].hash
|
|
183
195
|
end
|
|
184
196
|
|
|
185
197
|
# Builds the object from hash
|