vrpayment-ruby-sdk 6.3.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 +68 -19
- data/LICENSE +1 -1
- data/README.md +355 -108
- data/lib/vrpayment-ruby-sdk/api_client.rb +1 -1
- data/lib/vrpayment-ruby-sdk/models/abstract_role_update.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/abstract_walleejoin_partnership.rb +330 -0
- data/lib/vrpayment-ruby-sdk/models/{payment_terminal_preparing.rb → account_create_with_owner.rb} +63 -34
- data/lib/vrpayment-ruby-sdk/models/analytics_query_execution_request.rb +279 -0
- data/lib/vrpayment-ruby-sdk/models/analytics_query_execution_response.rb +231 -0
- data/lib/vrpayment-ruby-sdk/models/authenticated_card_data_create.rb +30 -1
- data/lib/vrpayment-ruby-sdk/models/bank_payment_type.rb +50 -0
- data/lib/vrpayment-ruby-sdk/models/boarding_strategy_information_request.rb +247 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_create.rb → charge_attempt_lookup_result.rb} +16 -20
- data/lib/vrpayment-ruby-sdk/models/charge_attempt_projection.rb +560 -0
- data/lib/vrpayment-ruby-sdk/models/dunning_case_level.rb +403 -0
- data/lib/vrpayment-ruby-sdk/models/{user_account_role_list_response.rb → dunning_case_level_list_response.rb} +4 -4
- data/lib/vrpayment-ruby-sdk/models/dunning_case_level_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/dunning_case_level_state.rb +53 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_session_state.rb → facade_user_friendly_query_status_model.rb} +6 -7
- data/lib/vrpayment-ruby-sdk/models/invoice_processor.rb +51 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record.rb +633 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_shipping_option.rb → invoice_reconciliation_record_invoice_link.rb} +35 -48
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_list_response.rb +253 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_invoice_link_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_list_response.rb +253 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_rejection_status.rb +51 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reconciliation_record_state.rb +53 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_wallet_type.rb → invoice_reconciliation_record_type.rb} +3 -3
- data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement.rb +463 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_list_response.rb +253 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/invoice_reimbursement_state.rb +54 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_create_response.rb → payment_facilitator_pricing_profile_dto.rb} +16 -16
- data/lib/vrpayment-ruby-sdk/models/payment_facilitator_pricing_profile_state.rb +53 -0
- data/lib/vrpayment-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb} +60 -37
- data/lib/vrpayment-ruby-sdk/models/payment_initiation_advice_file_state.rb +55 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal.rb +37 -1
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status.rb +301 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_activation_status_detail_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_address_create.rb +511 -0
- data/lib/vrpayment-ruby-sdk/models/{payment_terminal_create.rb → payment_terminal_creation_request.rb} +88 -62
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_location.rb +1 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model.rb +398 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_crud_model_rest_api_create.rb +359 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_list_response.rb +253 -0
- data/lib/vrpayment-ruby-sdk/models/payment_terminal_location_version_state.rb +2 -1
- data/lib/vrpayment-ruby-sdk/models/pricing_history_dto.rb +266 -0
- data/lib/vrpayment-ruby-sdk/models/product_metered_fee.rb +11 -1
- data/lib/vrpayment-ruby-sdk/models/product_metered_fee_update.rb +11 -1
- data/lib/vrpayment-ruby-sdk/models/refund.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/refund_create.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/{user_space_role.rb → rest_member.rb} +50 -37
- data/lib/vrpayment-ruby-sdk/models/result_portion_model.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/role.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/role_create.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/{abstract_payment_terminal_update.rb → role_ref.rb} +18 -27
- data/lib/vrpayment-ruby-sdk/models/role_update.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/scope.rb +28 -16
- data/lib/vrpayment-ruby-sdk/models/setter.rb +618 -0
- data/lib/vrpayment-ruby-sdk/models/{user_space_role_list_response.rb → state_list_response.rb} +4 -4
- data/lib/vrpayment-ruby-sdk/models/store_trial_subscription_request.rb +273 -0
- data/lib/vrpayment-ruby-sdk/models/store_trial_subscription_request_setter.rb +307 -0
- data/lib/vrpayment-ruby-sdk/models/submitted_analytics_query_execution.rb +342 -0
- data/lib/vrpayment-ruby-sdk/models/subscription_component_group_configuration_request.rb +249 -0
- data/lib/vrpayment-ruby-sdk/models/subscription_component_group_configuration_request_setter.rb +249 -0
- data/lib/vrpayment-ruby-sdk/models/subscription_product_dto.rb +239 -0
- data/lib/vrpayment-ruby-sdk/models/tokenized_card_data_create.rb +30 -1
- data/lib/vrpayment-ruby-sdk/models/transaction_completion.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/transaction_completion_details.rb +26 -4
- data/lib/vrpayment-ruby-sdk/models/transaction_overview.rb +1144 -0
- data/lib/vrpayment-ruby-sdk/models/transaction_projection.rb +1135 -0
- data/lib/vrpayment-ruby-sdk/models/transaction_user_interface_type.rb +2 -1
- data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_request_dto.rb +360 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_partner_configuration_response_dto.rb +351 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_admin_pricing_type.rb +51 -0
- data/lib/vrpayment-ruby-sdk/models/{user_account_role.rb → walleejoin_create_partnership_api_request_dto.rb} +34 -49
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership.rb +357 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_create.rb +337 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto.rb +342 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto_list_response.rb +253 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_response_dto_search_response.rb +263 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_state.rb +51 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_type.rb +50 -0
- data/lib/vrpayment-ruby-sdk/models/walleejoin_partnership_update.rb +364 -0
- data/lib/vrpayment-ruby-sdk/models/wallet_type.rb +40 -1
- data/lib/vrpayment-ruby-sdk/models/web_ui_account_theme.rb +230 -0
- data/lib/vrpayment-ruby-sdk/service/accounts_service.rb +16 -9
- data/lib/vrpayment-ruby-sdk/service/analytics_queries_service.rb +613 -0
- data/lib/vrpayment-ruby-sdk/service/bank_accounts_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/boarding_subscription_strategy_service.rb +181 -0
- data/lib/vrpayment-ruby-sdk/service/charge_attempts_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/charge_bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/charge_flow_levels_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/charge_flows_level_payment_links_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/charge_flows_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/consumed_resources_service.rb +1 -1
- data/lib/vrpayment-ruby-sdk/service/countries_service.rb +15 -6
- data/lib/vrpayment-ruby-sdk/service/currency_bank_accounts_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/customer_addresses_service.rb +7 -7
- data/lib/vrpayment-ruby-sdk/service/customer_comments_service.rb +8 -8
- data/lib/vrpayment-ruby-sdk/service/customers_service.rb +11 -11
- data/lib/vrpayment-ruby-sdk/service/delivery_indications_service.rb +5 -5
- data/lib/vrpayment-ruby-sdk/service/document_templates_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/dunning_case_levels_service.rb +291 -0
- data/lib/vrpayment-ruby-sdk/service/dunning_cases_service.rb +5 -5
- data/lib/vrpayment-ruby-sdk/service/dunning_flow_levels_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/dunning_flows_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/external_transfer_bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/internal_transfer_bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_record_invoice_links_service.rb +453 -0
- data/lib/vrpayment-ruby-sdk/service/invoice_reconciliation_records_service.rb +433 -0
- data/lib/vrpayment-ruby-sdk/service/invoice_reimbursements_service.rb +450 -0
- data/lib/vrpayment-ruby-sdk/service/join_admin_partner_configuration_service.rb +306 -0
- data/lib/vrpayment-ruby-sdk/service/join_partnership_service.rb +586 -0
- data/lib/vrpayment-ruby-sdk/service/manual_tasks_service.rb +5 -5
- data/lib/vrpayment-ruby-sdk/service/members_service.rb +215 -0
- data/lib/vrpayment-ruby-sdk/service/payment_connector_configurations_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/payment_links_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/payment_method_configurations_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/payment_processor_configurations_service.rb +85 -6
- data/lib/vrpayment-ruby-sdk/service/payment_terminal_transaction_summaries_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/payment_terminals_service.rb +475 -22
- data/lib/vrpayment-ruby-sdk/service/payment_web_apps_service.rb +11 -11
- data/lib/vrpayment-ruby-sdk/service/refund_bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/refund_comments_service.rb +8 -8
- data/lib/vrpayment-ruby-sdk/service/refund_recovery_bank_transactions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/refunds_service.rb +7 -7
- data/lib/vrpayment-ruby-sdk/service/spaces_service.rb +10 -3
- data/lib/vrpayment-ruby-sdk/service/subscribers_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_affiliates_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_charges_service.rb +5 -5
- data/lib/vrpayment-ruby-sdk/service/subscription_ledger_entries_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/subscription_metric_usage_reports_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/subscription_metrics_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_period_bills_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/subscription_product_component_groups_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_components_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fee_tiers_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_metered_fees_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_period_fees_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_retirements_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/subscription_product_setup_fees_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_product_version_retirements_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/subscription_product_versions_service.rb +7 -7
- data/lib/vrpayment-ruby-sdk/service/subscription_products_service.rb +6 -6
- data/lib/vrpayment-ruby-sdk/service/subscription_suspensions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/subscription_versions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/subscriptions_service.rb +13 -13
- data/lib/vrpayment-ruby-sdk/service/terminal_locations_service.rb +276 -0
- data/lib/vrpayment-ruby-sdk/service/token_versions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/tokens_service.rb +8 -8
- data/lib/vrpayment-ruby-sdk/service/transaction_client_platforms_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/transaction_comments_service.rb +8 -8
- data/lib/vrpayment-ruby-sdk/service/transaction_completions_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/transaction_invoice_comments_service.rb +8 -8
- data/lib/vrpayment-ruby-sdk/service/transaction_invoices_service.rb +86 -8
- data/lib/vrpayment-ruby-sdk/service/transaction_line_item_versions_service.rb +4 -4
- data/lib/vrpayment-ruby-sdk/service/transaction_voids_service.rb +3 -3
- data/lib/vrpayment-ruby-sdk/service/transactions_service.rb +179 -37
- data/lib/vrpayment-ruby-sdk/service/web_apps_service.rb +2 -2
- data/lib/vrpayment-ruby-sdk/service/web_ui_account_theme_service.rb +245 -0
- data/lib/vrpayment-ruby-sdk/service/webhook_listeners_service.rb +9 -9
- data/lib/vrpayment-ruby-sdk/service/webhook_urls_service.rb +9 -9
- data/lib/vrpayment-ruby-sdk/version.rb +1 -1
- data/lib/vrpayment-ruby-sdk.rb +76 -17
- data/test/test_querying.rb +11 -0
- metadata +78 -19
- data/lib/vrpayment-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/vrpayment-ruby-sdk/service/express_checkout_service.rb +0 -107
- data/lib/vrpayment-ruby-sdk/service/human_users_roles_service.rb +0 -478
- data/lib/vrpayment-ruby-sdk/service/single_sign_on_users_roles_service.rb +0 -478
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
# VR Payment Ruby SDK
|
|
3
|
+
#
|
|
4
|
+
# This library allows to interact with the VR Payment payment service.
|
|
5
|
+
#
|
|
6
|
+
# Copyright owner: Wallee AG
|
|
7
|
+
# Website: https://www.vr-payment.de
|
|
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 VrpaymentRubySdk
|
|
27
|
+
class ResultPortionModel
|
|
28
|
+
# 0-based offset of items.
|
|
29
|
+
attr_accessor :offset
|
|
30
|
+
|
|
31
|
+
# Amount of items in portion.
|
|
32
|
+
attr_accessor :limit
|
|
33
|
+
|
|
34
|
+
# Total count of items.
|
|
35
|
+
attr_accessor :total_count
|
|
36
|
+
|
|
37
|
+
# Items of the result portion.
|
|
38
|
+
attr_accessor :items
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'offset' => :'offset',
|
|
44
|
+
:'limit' => :'limit',
|
|
45
|
+
:'total_count' => :'totalCount',
|
|
46
|
+
:'items' => :'items'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns attribute mapping this model knows about
|
|
51
|
+
def self.acceptable_attribute_map
|
|
52
|
+
attribute_map
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns all the JSON keys this model knows about
|
|
56
|
+
def self.acceptable_attributes
|
|
57
|
+
acceptable_attribute_map.values
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Attribute type mapping.
|
|
61
|
+
def self.openapi_types
|
|
62
|
+
{
|
|
63
|
+
:'offset' => :'Integer',
|
|
64
|
+
:'limit' => :'Integer',
|
|
65
|
+
:'total_count' => :'Integer',
|
|
66
|
+
:'items' => :'Array<Object>'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::ResultPortionModel` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::ResultPortionModel`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'offset')
|
|
93
|
+
self.offset = attributes[:'offset']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'limit')
|
|
97
|
+
self.limit = attributes[:'limit']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'total_count')
|
|
101
|
+
self.total_count = attributes[:'total_count']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'items')
|
|
105
|
+
if (value = attributes[:'items']).is_a?(Array)
|
|
106
|
+
self.items = value
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
112
|
+
# @return Array for valid properties with the reasons
|
|
113
|
+
def list_invalid_properties
|
|
114
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
115
|
+
invalid_properties = Array.new
|
|
116
|
+
invalid_properties
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Check to see if the all the properties in the model are valid
|
|
120
|
+
# @return true if the model is valid
|
|
121
|
+
def valid?
|
|
122
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
123
|
+
true
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Checks equality by comparing each attribute.
|
|
127
|
+
# @param [Object] Object to be compared
|
|
128
|
+
def ==(o)
|
|
129
|
+
return true if self.equal?(o)
|
|
130
|
+
self.class == o.class &&
|
|
131
|
+
offset == o.offset &&
|
|
132
|
+
limit == o.limit &&
|
|
133
|
+
total_count == o.total_count &&
|
|
134
|
+
items == o.items
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[offset, limit, total_count, items].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
transformed_hash = {}
|
|
156
|
+
openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = nil
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
163
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
166
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
new(transformed_hash)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Deserializes the data based on type
|
|
173
|
+
# @param string type Data type
|
|
174
|
+
# @param string value Value to be deserialized
|
|
175
|
+
# @return [Object] Deserialized data
|
|
176
|
+
def self._deserialize(type, value)
|
|
177
|
+
case type.to_sym
|
|
178
|
+
when :Time
|
|
179
|
+
Time.parse(value)
|
|
180
|
+
when :Date
|
|
181
|
+
Date.parse(value)
|
|
182
|
+
when :String
|
|
183
|
+
value.to_s
|
|
184
|
+
when :Integer
|
|
185
|
+
value.to_i
|
|
186
|
+
when :Float
|
|
187
|
+
value.to_f
|
|
188
|
+
when :Boolean
|
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
190
|
+
true
|
|
191
|
+
else
|
|
192
|
+
false
|
|
193
|
+
end
|
|
194
|
+
when :Object
|
|
195
|
+
# generic object (usually a Hash), return directly
|
|
196
|
+
value
|
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
|
203
|
+
{}.tap do |hash|
|
|
204
|
+
value.each do |k, v|
|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
else # model
|
|
209
|
+
# models (e.g. Pet) or oneOf
|
|
210
|
+
klass = VrpaymentRubySdk.const_get(type)
|
|
211
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Returns the string representation of the object
|
|
216
|
+
# @return [String] String presentation of the object
|
|
217
|
+
def to_s
|
|
218
|
+
to_hash.to_s
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
222
|
+
# @return [Hash] Returns the object in the form of hash
|
|
223
|
+
def to_body
|
|
224
|
+
to_hash
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Returns the object in the form of hash
|
|
228
|
+
# @return [Hash] Returns the object in the form of hash
|
|
229
|
+
def to_hash
|
|
230
|
+
hash = {}
|
|
231
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
232
|
+
value = self.send(attr)
|
|
233
|
+
if value.nil?
|
|
234
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
235
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
hash[param] = _to_hash(value)
|
|
239
|
+
end
|
|
240
|
+
hash
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Outputs non-array value in the form of hash
|
|
244
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
245
|
+
# @param [Object] value Any valid value
|
|
246
|
+
# @return [Hash] Returns the value in the form of hash
|
|
247
|
+
def _to_hash(value)
|
|
248
|
+
if value.is_a?(Array)
|
|
249
|
+
value.compact.map { |v| _to_hash(v) }
|
|
250
|
+
elsif value.is_a?(Hash)
|
|
251
|
+
{}.tap do |hash|
|
|
252
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
253
|
+
end
|
|
254
|
+
elsif value.respond_to? :to_hash
|
|
255
|
+
value.to_hash
|
|
256
|
+
else
|
|
257
|
+
value
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
end
|
|
@@ -34,6 +34,9 @@ module VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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
|
|
@@ -24,14 +24,18 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
# The name used to identify the
|
|
27
|
+
class RoleRef
|
|
28
|
+
# The name used to identify the role.
|
|
29
29
|
attr_accessor :name
|
|
30
30
|
|
|
31
|
+
# A unique identifier for the object.
|
|
32
|
+
attr_accessor :id
|
|
33
|
+
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
|
-
:'name' => :'name'
|
|
37
|
+
:'name' => :'name',
|
|
38
|
+
:'id' => :'id'
|
|
35
39
|
}
|
|
36
40
|
end
|
|
37
41
|
|
|
@@ -48,7 +52,8 @@ module VrpaymentRubySdk
|
|
|
48
52
|
# Attribute type mapping.
|
|
49
53
|
def self.openapi_types
|
|
50
54
|
{
|
|
51
|
-
:'name' => :'String'
|
|
55
|
+
:'name' => :'String',
|
|
56
|
+
:'id' => :'Integer'
|
|
52
57
|
}
|
|
53
58
|
end
|
|
54
59
|
|
|
@@ -62,14 +67,14 @@ module VrpaymentRubySdk
|
|
|
62
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
68
|
def initialize(attributes = {})
|
|
64
69
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::RoleRef` initialize method"
|
|
66
71
|
end
|
|
67
72
|
|
|
68
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
74
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
76
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::RoleRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
78
|
end
|
|
74
79
|
h[k.to_sym] = v
|
|
75
80
|
}
|
|
@@ -77,6 +82,10 @@ module VrpaymentRubySdk
|
|
|
77
82
|
if attributes.key?(:'name')
|
|
78
83
|
self.name = attributes[:'name']
|
|
79
84
|
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'id')
|
|
87
|
+
self.id = attributes[:'id']
|
|
88
|
+
end
|
|
80
89
|
end
|
|
81
90
|
|
|
82
91
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -84,10 +93,6 @@ module VrpaymentRubySdk
|
|
|
84
93
|
def list_invalid_properties
|
|
85
94
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
86
95
|
invalid_properties = Array.new
|
|
87
|
-
if !@name.nil? && @name.to_s.length > 100
|
|
88
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
|
89
|
-
end
|
|
90
|
-
|
|
91
96
|
invalid_properties
|
|
92
97
|
end
|
|
93
98
|
|
|
@@ -95,30 +100,16 @@ module VrpaymentRubySdk
|
|
|
95
100
|
# @return true if the model is valid
|
|
96
101
|
def valid?
|
|
97
102
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
98
|
-
return false if !@name.nil? && @name.to_s.length > 100
|
|
99
103
|
true
|
|
100
104
|
end
|
|
101
105
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] name Value to be assigned
|
|
104
|
-
def name=(name)
|
|
105
|
-
if name.nil?
|
|
106
|
-
fail ArgumentError, 'name cannot be nil'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if name.to_s.length > 100
|
|
110
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
@name = name
|
|
114
|
-
end
|
|
115
|
-
|
|
116
106
|
# Checks equality by comparing each attribute.
|
|
117
107
|
# @param [Object] Object to be compared
|
|
118
108
|
def ==(o)
|
|
119
109
|
return true if self.equal?(o)
|
|
120
110
|
self.class == o.class &&
|
|
121
|
-
name == o.name
|
|
111
|
+
name == o.name &&
|
|
112
|
+
id == o.id
|
|
122
113
|
end
|
|
123
114
|
|
|
124
115
|
# @see the `==` method
|
|
@@ -130,7 +121,7 @@ module VrpaymentRubySdk
|
|
|
130
121
|
# Calculates hash code according to all attributes.
|
|
131
122
|
# @return [Integer] Hash code
|
|
132
123
|
def hash
|
|
133
|
-
[name].hash
|
|
124
|
+
[name, id].hash
|
|
134
125
|
end
|
|
135
126
|
|
|
136
127
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
42
45
|
{
|
|
43
46
|
:'permissions' => :'permissions',
|
|
44
47
|
:'name' => :'name',
|
|
48
|
+
:'description' => :'description',
|
|
45
49
|
:'two_factor_required' => :'twoFactorRequired',
|
|
46
50
|
:'version' => :'version'
|
|
47
51
|
}
|
|
@@ -62,6 +66,7 @@ module VrpaymentRubySdk
|
|
|
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
|
:'version' => :'Integer'
|
|
67
72
|
}
|
|
@@ -108,6 +113,12 @@ module VrpaymentRubySdk
|
|
|
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 VrpaymentRubySdk
|
|
|
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
|
version == o.version
|
|
171
183
|
end
|
|
@@ -179,7 +191,7 @@ module VrpaymentRubySdk
|
|
|
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, version].hash
|
|
194
|
+
[permissions, name, description, two_factor_required, version].hash
|
|
183
195
|
end
|
|
184
196
|
|
|
185
197
|
# Builds the object from hash
|
|
@@ -46,6 +46,9 @@ module VrpaymentRubySdk
|
|
|
46
46
|
# The themes that determine the look and feel of the scope's user interface. A fall-through strategy is applied when building the actual theme.
|
|
47
47
|
attr_accessor :themes
|
|
48
48
|
|
|
49
|
+
# Trusted external origins (e.g. merchant shops) for browser API access (CORS on /api/) and absolute target redirect URLs.
|
|
50
|
+
attr_accessor :trusted_external_origins
|
|
51
|
+
|
|
49
52
|
# The port where the scope can be accessed.
|
|
50
53
|
attr_accessor :port
|
|
51
54
|
|
|
@@ -98,6 +101,7 @@ module VrpaymentRubySdk
|
|
|
98
101
|
:'url' => :'url',
|
|
99
102
|
:'features' => :'features',
|
|
100
103
|
:'themes' => :'themes',
|
|
104
|
+
:'trusted_external_origins' => :'trustedExternalOrigins',
|
|
101
105
|
:'port' => :'port',
|
|
102
106
|
:'preprod_domain_name' => :'preprodDomainName',
|
|
103
107
|
:'domain_name' => :'domainName',
|
|
@@ -128,6 +132,7 @@ module VrpaymentRubySdk
|
|
|
128
132
|
:'url' => :'String',
|
|
129
133
|
:'features' => :'Array<Feature>',
|
|
130
134
|
:'themes' => :'Array<String>',
|
|
135
|
+
:'trusted_external_origins' => :'Array<String>',
|
|
131
136
|
:'port' => :'Integer',
|
|
132
137
|
:'preprod_domain_name' => :'String',
|
|
133
138
|
:'domain_name' => :'String',
|
|
@@ -192,6 +197,12 @@ module VrpaymentRubySdk
|
|
|
192
197
|
end
|
|
193
198
|
end
|
|
194
199
|
|
|
200
|
+
if attributes.key?(:'trusted_external_origins')
|
|
201
|
+
if (value = attributes[:'trusted_external_origins']).is_a?(Array)
|
|
202
|
+
self.trusted_external_origins = value
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
195
206
|
if attributes.key?(:'port')
|
|
196
207
|
self.port = attributes[:'port']
|
|
197
208
|
end
|
|
@@ -239,20 +250,20 @@ module VrpaymentRubySdk
|
|
|
239
250
|
invalid_properties.push('invalid value for "port", must be greater than or equal to 1.')
|
|
240
251
|
end
|
|
241
252
|
|
|
242
|
-
if !@preprod_domain_name.nil? && @preprod_domain_name.to_s.length >
|
|
243
|
-
invalid_properties.push('invalid value for "preprod_domain_name", the character length must be smaller than or equal to
|
|
253
|
+
if !@preprod_domain_name.nil? && @preprod_domain_name.to_s.length > 100
|
|
254
|
+
invalid_properties.push('invalid value for "preprod_domain_name", the character length must be smaller than or equal to 100.')
|
|
244
255
|
end
|
|
245
256
|
|
|
246
|
-
if !@domain_name.nil? && @domain_name.to_s.length >
|
|
247
|
-
invalid_properties.push('invalid value for "domain_name", the character length must be smaller than or equal to
|
|
257
|
+
if !@domain_name.nil? && @domain_name.to_s.length > 100
|
|
258
|
+
invalid_properties.push('invalid value for "domain_name", the character length must be smaller than or equal to 100.')
|
|
248
259
|
end
|
|
249
260
|
|
|
250
261
|
if !@name.nil? && @name.to_s.length > 50
|
|
251
262
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
|
252
263
|
end
|
|
253
264
|
|
|
254
|
-
if !@sandbox_domain_name.nil? && @sandbox_domain_name.to_s.length >
|
|
255
|
-
invalid_properties.push('invalid value for "sandbox_domain_name", the character length must be smaller than or equal to
|
|
265
|
+
if !@sandbox_domain_name.nil? && @sandbox_domain_name.to_s.length > 100
|
|
266
|
+
invalid_properties.push('invalid value for "sandbox_domain_name", the character length must be smaller than or equal to 100.')
|
|
256
267
|
end
|
|
257
268
|
|
|
258
269
|
invalid_properties
|
|
@@ -265,10 +276,10 @@ module VrpaymentRubySdk
|
|
|
265
276
|
return false if !@machine_name.nil? && @machine_name.to_s.length > 50
|
|
266
277
|
return false if !@machine_name.nil? && @machine_name !~ Regexp.new(/([A-Z][A-Za-z0-9]+)(_([A-Z][A-Za-z0-9]+))*/)
|
|
267
278
|
return false if !@port.nil? && @port < 1
|
|
268
|
-
return false if !@preprod_domain_name.nil? && @preprod_domain_name.to_s.length >
|
|
269
|
-
return false if !@domain_name.nil? && @domain_name.to_s.length >
|
|
279
|
+
return false if !@preprod_domain_name.nil? && @preprod_domain_name.to_s.length > 100
|
|
280
|
+
return false if !@domain_name.nil? && @domain_name.to_s.length > 100
|
|
270
281
|
return false if !@name.nil? && @name.to_s.length > 50
|
|
271
|
-
return false if !@sandbox_domain_name.nil? && @sandbox_domain_name.to_s.length >
|
|
282
|
+
return false if !@sandbox_domain_name.nil? && @sandbox_domain_name.to_s.length > 100
|
|
272
283
|
true
|
|
273
284
|
end
|
|
274
285
|
|
|
@@ -322,8 +333,8 @@ module VrpaymentRubySdk
|
|
|
322
333
|
fail ArgumentError, 'preprod_domain_name cannot be nil'
|
|
323
334
|
end
|
|
324
335
|
|
|
325
|
-
if preprod_domain_name.to_s.length >
|
|
326
|
-
fail ArgumentError, 'invalid value for "preprod_domain_name", the character length must be smaller than or equal to
|
|
336
|
+
if preprod_domain_name.to_s.length > 100
|
|
337
|
+
fail ArgumentError, 'invalid value for "preprod_domain_name", the character length must be smaller than or equal to 100.'
|
|
327
338
|
end
|
|
328
339
|
|
|
329
340
|
@preprod_domain_name = preprod_domain_name
|
|
@@ -336,8 +347,8 @@ module VrpaymentRubySdk
|
|
|
336
347
|
fail ArgumentError, 'domain_name cannot be nil'
|
|
337
348
|
end
|
|
338
349
|
|
|
339
|
-
if domain_name.to_s.length >
|
|
340
|
-
fail ArgumentError, 'invalid value for "domain_name", the character length must be smaller than or equal to
|
|
350
|
+
if domain_name.to_s.length > 100
|
|
351
|
+
fail ArgumentError, 'invalid value for "domain_name", the character length must be smaller than or equal to 100.'
|
|
341
352
|
end
|
|
342
353
|
|
|
343
354
|
@domain_name = domain_name
|
|
@@ -364,8 +375,8 @@ module VrpaymentRubySdk
|
|
|
364
375
|
fail ArgumentError, 'sandbox_domain_name cannot be nil'
|
|
365
376
|
end
|
|
366
377
|
|
|
367
|
-
if sandbox_domain_name.to_s.length >
|
|
368
|
-
fail ArgumentError, 'invalid value for "sandbox_domain_name", the character length must be smaller than or equal to
|
|
378
|
+
if sandbox_domain_name.to_s.length > 100
|
|
379
|
+
fail ArgumentError, 'invalid value for "sandbox_domain_name", the character length must be smaller than or equal to 100.'
|
|
369
380
|
end
|
|
370
381
|
|
|
371
382
|
@sandbox_domain_name = sandbox_domain_name
|
|
@@ -383,6 +394,7 @@ module VrpaymentRubySdk
|
|
|
383
394
|
url == o.url &&
|
|
384
395
|
features == o.features &&
|
|
385
396
|
themes == o.themes &&
|
|
397
|
+
trusted_external_origins == o.trusted_external_origins &&
|
|
386
398
|
port == o.port &&
|
|
387
399
|
preprod_domain_name == o.preprod_domain_name &&
|
|
388
400
|
domain_name == o.domain_name &&
|
|
@@ -401,7 +413,7 @@ module VrpaymentRubySdk
|
|
|
401
413
|
# Calculates hash code according to all attributes.
|
|
402
414
|
# @return [Integer] Hash code
|
|
403
415
|
def hash
|
|
404
|
-
[planned_purge_date, ssl_active, version, machine_name, url, features, themes, port, preprod_domain_name, domain_name, name, id, state, sandbox_domain_name].hash
|
|
416
|
+
[planned_purge_date, ssl_active, version, machine_name, url, features, themes, trusted_external_origins, port, preprod_domain_name, domain_name, name, id, state, sandbox_domain_name].hash
|
|
405
417
|
end
|
|
406
418
|
|
|
407
419
|
# Builds the object from hash
|