vrpayment-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 +354 -129
- 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/{express_checkout_shipping_method_change_request.rb → analytics_query_execution_response.rb} +11 -11
- 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/{express_checkout_shipping_address_change_request.rb → boarding_strategy_information_request.rb} +22 -14
- data/lib/vrpayment-ruby-sdk/models/{bogus_express_checkout_payment_data.rb → charge_attempt_lookup_result.rb} +16 -18
- 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/{user_account_role.rb → invoice_reconciliation_record_invoice_link.rb} +40 -43
- 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/{express_checkout_create_response.rb → invoice_reimbursement_list_response.rb} +27 -22
- 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/{bogus_express_checkout_approval_request.rb → payment_facilitator_pricing_profile_dto.rb} +19 -10
- 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} +57 -72
- 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/{express_checkout_approval_response.rb → rest_member.rb} +36 -22
- data/lib/vrpayment-ruby-sdk/models/{abstract_payment_terminal_update.rb → result_portion_model.rb} +43 -30
- 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/{express_checkout_shipping_method_change_response.rb → role_ref.rb} +18 -18
- data/lib/vrpayment-ruby-sdk/models/role_update.rb +13 -1
- data/lib/vrpayment-ruby-sdk/models/scope.rb +13 -1
- 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/{express_checkout_shipping_option.rb → store_trial_subscription_request.rb} +38 -56
- 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/{express_checkout_session_create.rb → subscription_component_group_configuration_request.rb} +23 -37
- 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_overview.rb +1144 -0
- data/lib/vrpayment-ruby-sdk/models/transaction_projection.rb +1135 -0
- 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/walleejoin_create_partnership_api_request_dto.rb +266 -0
- 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/{express_checkout_shipping_address_change_response.rb → walleejoin_partnership_response_dto_list_response.rb} +30 -18
- data/lib/vrpayment-ruby-sdk/models/{user_space_role.rb → walleejoin_partnership_response_dto_search_response.rb} +34 -42
- 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 -25
- metadata +78 -27
- data/lib/vrpayment-ruby-sdk/service/application_users_roles_service.rb +0 -478
- data/lib/vrpayment-ruby-sdk/service/bogus_express_checkout_service.rb +0 -114
- data/lib/vrpayment-ruby-sdk/service/express_checkout_service.rb +0 -269
- 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,279 @@
|
|
|
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 AnalyticsQueryExecutionRequest
|
|
28
|
+
# Optional. ID of the active SFTP configuration to use (associated with the target account). This is only required if the result file is scheduled for delivery to a remote SFTP server.
|
|
29
|
+
attr_accessor :sftp_dispatch_settings_id
|
|
30
|
+
|
|
31
|
+
# Optional. Renaming pattern used for the result file during SFTP delivery. You can use a combination of fixed Latin text and timestamp variables (e.g., \"transaction_report_{YYYMMDD_hhmmss}\"). Supported variable formats: DDMMYY, MMDDYY, YYYYMMDD, DD_MM_YY, DD-MM-YY, YYYY-MM-DD, YYYY_MM_DD, YYYYMMDD_hhmmss, YYYY-MM-DD_hh-mm-ss.
|
|
32
|
+
attr_accessor :sftp_dispatch_result_file_rename_pattern
|
|
33
|
+
|
|
34
|
+
# The SQL query (in PrestoDB dialect) to execute on the analytics database. This query defines exactly which data should be retrieved.
|
|
35
|
+
attr_accessor :sql
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'sftp_dispatch_settings_id' => :'sftpDispatchSettingsId',
|
|
41
|
+
:'sftp_dispatch_result_file_rename_pattern' => :'sftpDispatchResultFileRenamePattern',
|
|
42
|
+
:'sql' => :'sql'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns attribute mapping this model knows about
|
|
47
|
+
def self.acceptable_attribute_map
|
|
48
|
+
attribute_map
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Returns all the JSON keys this model knows about
|
|
52
|
+
def self.acceptable_attributes
|
|
53
|
+
acceptable_attribute_map.values
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'sftp_dispatch_settings_id' => :'Integer',
|
|
60
|
+
:'sftp_dispatch_result_file_rename_pattern' => :'String',
|
|
61
|
+
:'sql' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# List of attributes with nullable: true
|
|
66
|
+
def self.openapi_nullable
|
|
67
|
+
Set.new([
|
|
68
|
+
])
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Initializes the object
|
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::AnalyticsQueryExecutionRequest` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::AnalyticsQueryExecutionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
|
+
end
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'sftp_dispatch_settings_id')
|
|
88
|
+
self.sftp_dispatch_settings_id = attributes[:'sftp_dispatch_settings_id']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'sftp_dispatch_result_file_rename_pattern')
|
|
92
|
+
self.sftp_dispatch_result_file_rename_pattern = attributes[:'sftp_dispatch_result_file_rename_pattern']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'sql')
|
|
96
|
+
self.sql = attributes[:'sql']
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
101
|
+
# @return Array for valid properties with the reasons
|
|
102
|
+
def list_invalid_properties
|
|
103
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
104
|
+
invalid_properties = Array.new
|
|
105
|
+
if !@sql.nil? && @sql.to_s.length > 100000
|
|
106
|
+
invalid_properties.push('invalid value for "sql", the character length must be smaller than or equal to 100000.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if !@sql.nil? && @sql.to_s.length < 3
|
|
110
|
+
invalid_properties.push('invalid value for "sql", the character length must be great than or equal to 3.')
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
invalid_properties
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Check to see if the all the properties in the model are valid
|
|
117
|
+
# @return true if the model is valid
|
|
118
|
+
def valid?
|
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
+
return false if !@sql.nil? && @sql.to_s.length > 100000
|
|
121
|
+
return false if !@sql.nil? && @sql.to_s.length < 3
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param [Object] sql Value to be assigned
|
|
127
|
+
def sql=(sql)
|
|
128
|
+
if sql.nil?
|
|
129
|
+
fail ArgumentError, 'sql cannot be nil'
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if sql.to_s.length > 100000
|
|
133
|
+
fail ArgumentError, 'invalid value for "sql", the character length must be smaller than or equal to 100000.'
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if sql.to_s.length < 3
|
|
137
|
+
fail ArgumentError, 'invalid value for "sql", the character length must be great than or equal to 3.'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@sql = sql
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Checks equality by comparing each attribute.
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def ==(o)
|
|
146
|
+
return true if self.equal?(o)
|
|
147
|
+
self.class == o.class &&
|
|
148
|
+
sftp_dispatch_settings_id == o.sftp_dispatch_settings_id &&
|
|
149
|
+
sftp_dispatch_result_file_rename_pattern == o.sftp_dispatch_result_file_rename_pattern &&
|
|
150
|
+
sql == o.sql
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @see the `==` method
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def eql?(o)
|
|
156
|
+
self == o
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Calculates hash code according to all attributes.
|
|
160
|
+
# @return [Integer] Hash code
|
|
161
|
+
def hash
|
|
162
|
+
[sftp_dispatch_settings_id, sftp_dispatch_result_file_rename_pattern, sql].hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Builds the object from hash
|
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
167
|
+
# @return [Object] Returns the model itself
|
|
168
|
+
def self.build_from_hash(attributes)
|
|
169
|
+
return nil unless attributes.is_a?(Hash)
|
|
170
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
171
|
+
transformed_hash = {}
|
|
172
|
+
openapi_types.each_pair do |key, type|
|
|
173
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
174
|
+
transformed_hash["#{key}"] = nil
|
|
175
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
176
|
+
# check to ensure the input is an array given that the attribute
|
|
177
|
+
# is documented as an array but the input is not
|
|
178
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
179
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
180
|
+
end
|
|
181
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
182
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
new(transformed_hash)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Deserializes the data based on type
|
|
189
|
+
# @param string type Data type
|
|
190
|
+
# @param string value Value to be deserialized
|
|
191
|
+
# @return [Object] Deserialized data
|
|
192
|
+
def self._deserialize(type, value)
|
|
193
|
+
case type.to_sym
|
|
194
|
+
when :Time
|
|
195
|
+
Time.parse(value)
|
|
196
|
+
when :Date
|
|
197
|
+
Date.parse(value)
|
|
198
|
+
when :String
|
|
199
|
+
value.to_s
|
|
200
|
+
when :Integer
|
|
201
|
+
value.to_i
|
|
202
|
+
when :Float
|
|
203
|
+
value.to_f
|
|
204
|
+
when :Boolean
|
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
206
|
+
true
|
|
207
|
+
else
|
|
208
|
+
false
|
|
209
|
+
end
|
|
210
|
+
when :Object
|
|
211
|
+
# generic object (usually a Hash), return directly
|
|
212
|
+
value
|
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
|
219
|
+
{}.tap do |hash|
|
|
220
|
+
value.each do |k, v|
|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
else # model
|
|
225
|
+
# models (e.g. Pet) or oneOf
|
|
226
|
+
klass = VrpaymentRubySdk.const_get(type)
|
|
227
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Returns the string representation of the object
|
|
232
|
+
# @return [String] String presentation of the object
|
|
233
|
+
def to_s
|
|
234
|
+
to_hash.to_s
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
238
|
+
# @return [Hash] Returns the object in the form of hash
|
|
239
|
+
def to_body
|
|
240
|
+
to_hash
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Returns the object in the form of hash
|
|
244
|
+
# @return [Hash] Returns the object in the form of hash
|
|
245
|
+
def to_hash
|
|
246
|
+
hash = {}
|
|
247
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
248
|
+
value = self.send(attr)
|
|
249
|
+
if value.nil?
|
|
250
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
251
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
hash[param] = _to_hash(value)
|
|
255
|
+
end
|
|
256
|
+
hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Outputs non-array value in the form of hash
|
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
261
|
+
# @param [Object] value Any valid value
|
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
|
263
|
+
def _to_hash(value)
|
|
264
|
+
if value.is_a?(Array)
|
|
265
|
+
value.compact.map { |v| _to_hash(v) }
|
|
266
|
+
elsif value.is_a?(Hash)
|
|
267
|
+
{}.tap do |hash|
|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
269
|
+
end
|
|
270
|
+
elsif value.respond_to? :to_hash
|
|
271
|
+
value.to_hash
|
|
272
|
+
else
|
|
273
|
+
value
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
end
|
|
@@ -24,14 +24,14 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
27
|
+
class AnalyticsQueryExecutionResponse
|
|
28
|
+
# The unique query token associated with a submitted analytics query execution. This token can be used to check the execution status of the query.
|
|
29
|
+
attr_accessor :query_token
|
|
30
30
|
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
32
|
def self.attribute_map
|
|
33
33
|
{
|
|
34
|
-
:'
|
|
34
|
+
:'query_token' => :'queryToken'
|
|
35
35
|
}
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -48,7 +48,7 @@ module VrpaymentRubySdk
|
|
|
48
48
|
# Attribute type mapping.
|
|
49
49
|
def self.openapi_types
|
|
50
50
|
{
|
|
51
|
-
:'
|
|
51
|
+
:'query_token' => :'String'
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -62,20 +62,20 @@ module VrpaymentRubySdk
|
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
63
|
def initialize(attributes = {})
|
|
64
64
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::AnalyticsQueryExecutionResponse` initialize method"
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
69
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
71
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::AnalyticsQueryExecutionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
73
|
end
|
|
74
74
|
h[k.to_sym] = v
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
if attributes.key?(:'
|
|
78
|
-
self.
|
|
77
|
+
if attributes.key?(:'query_token')
|
|
78
|
+
self.query_token = attributes[:'query_token']
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -99,7 +99,7 @@ module VrpaymentRubySdk
|
|
|
99
99
|
def ==(o)
|
|
100
100
|
return true if self.equal?(o)
|
|
101
101
|
self.class == o.class &&
|
|
102
|
-
|
|
102
|
+
query_token == o.query_token
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
# @see the `==` method
|
|
@@ -111,7 +111,7 @@ module VrpaymentRubySdk
|
|
|
111
111
|
# Calculates hash code according to all attributes.
|
|
112
112
|
# @return [Integer] Hash code
|
|
113
113
|
def hash
|
|
114
|
-
[
|
|
114
|
+
[query_token].hash
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# Builds the object from hash
|
|
@@ -41,6 +41,9 @@ module VrpaymentRubySdk
|
|
|
41
41
|
|
|
42
42
|
attr_accessor :recurring_indicator
|
|
43
43
|
|
|
44
|
+
# A reference specific to linking card transaction lifecycle events within the payment scheme.
|
|
45
|
+
attr_accessor :transaction_link_identifier
|
|
46
|
+
|
|
44
47
|
# A reference specific to the card's transaction within its payment scheme.
|
|
45
48
|
attr_accessor :scheme_transaction_reference
|
|
46
49
|
|
|
@@ -82,6 +85,7 @@ module VrpaymentRubySdk
|
|
|
82
85
|
:'card_verification_code' => :'cardVerificationCode',
|
|
83
86
|
:'primary_account_number' => :'primaryAccountNumber',
|
|
84
87
|
:'recurring_indicator' => :'recurringIndicator',
|
|
88
|
+
:'transaction_link_identifier' => :'transactionLinkIdentifier',
|
|
85
89
|
:'scheme_transaction_reference' => :'schemeTransactionReference',
|
|
86
90
|
:'cardholder_authentication' => :'cardholderAuthentication',
|
|
87
91
|
:'token_requestor_id' => :'tokenRequestorId',
|
|
@@ -108,6 +112,7 @@ module VrpaymentRubySdk
|
|
|
108
112
|
:'card_verification_code' => :'String',
|
|
109
113
|
:'primary_account_number' => :'String',
|
|
110
114
|
:'recurring_indicator' => :'RecurringIndicator',
|
|
115
|
+
:'transaction_link_identifier' => :'String',
|
|
111
116
|
:'scheme_transaction_reference' => :'String',
|
|
112
117
|
:'cardholder_authentication' => :'CardholderAuthenticationCreate',
|
|
113
118
|
:'token_requestor_id' => :'String',
|
|
@@ -163,6 +168,10 @@ module VrpaymentRubySdk
|
|
|
163
168
|
self.recurring_indicator = attributes[:'recurring_indicator']
|
|
164
169
|
end
|
|
165
170
|
|
|
171
|
+
if attributes.key?(:'transaction_link_identifier')
|
|
172
|
+
self.transaction_link_identifier = attributes[:'transaction_link_identifier']
|
|
173
|
+
end
|
|
174
|
+
|
|
166
175
|
if attributes.key?(:'scheme_transaction_reference')
|
|
167
176
|
self.scheme_transaction_reference = attributes[:'scheme_transaction_reference']
|
|
168
177
|
end
|
|
@@ -224,6 +233,10 @@ module VrpaymentRubySdk
|
|
|
224
233
|
invalid_properties.push("invalid value for \"primary_account_number\", must conform to the pattern #{pattern}.")
|
|
225
234
|
end
|
|
226
235
|
|
|
236
|
+
if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
|
|
237
|
+
invalid_properties.push('invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.')
|
|
238
|
+
end
|
|
239
|
+
|
|
227
240
|
if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
|
|
228
241
|
invalid_properties.push('invalid value for "scheme_transaction_reference", the character length must be smaller than or equal to 100.')
|
|
229
242
|
end
|
|
@@ -244,6 +257,7 @@ module VrpaymentRubySdk
|
|
|
244
257
|
return false if @primary_account_number.to_s.length > 30
|
|
245
258
|
return false if @primary_account_number.to_s.length < 10
|
|
246
259
|
return false if @primary_account_number !~ Regexp.new(/([0-9 ]+)/)
|
|
260
|
+
return false if !@transaction_link_identifier.nil? && @transaction_link_identifier.to_s.length > 100
|
|
247
261
|
return false if !@scheme_transaction_reference.nil? && @scheme_transaction_reference.to_s.length > 100
|
|
248
262
|
true
|
|
249
263
|
end
|
|
@@ -323,6 +337,20 @@ module VrpaymentRubySdk
|
|
|
323
337
|
@primary_account_number = primary_account_number
|
|
324
338
|
end
|
|
325
339
|
|
|
340
|
+
# Custom attribute writer method with validation
|
|
341
|
+
# @param [Object] transaction_link_identifier Value to be assigned
|
|
342
|
+
def transaction_link_identifier=(transaction_link_identifier)
|
|
343
|
+
if transaction_link_identifier.nil?
|
|
344
|
+
fail ArgumentError, 'transaction_link_identifier cannot be nil'
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if transaction_link_identifier.to_s.length > 100
|
|
348
|
+
fail ArgumentError, 'invalid value for "transaction_link_identifier", the character length must be smaller than or equal to 100.'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@transaction_link_identifier = transaction_link_identifier
|
|
352
|
+
end
|
|
353
|
+
|
|
326
354
|
# Custom attribute writer method with validation
|
|
327
355
|
# @param [Object] scheme_transaction_reference Value to be assigned
|
|
328
356
|
def scheme_transaction_reference=(scheme_transaction_reference)
|
|
@@ -348,6 +376,7 @@ module VrpaymentRubySdk
|
|
|
348
376
|
card_verification_code == o.card_verification_code &&
|
|
349
377
|
primary_account_number == o.primary_account_number &&
|
|
350
378
|
recurring_indicator == o.recurring_indicator &&
|
|
379
|
+
transaction_link_identifier == o.transaction_link_identifier &&
|
|
351
380
|
scheme_transaction_reference == o.scheme_transaction_reference &&
|
|
352
381
|
cardholder_authentication == o.cardholder_authentication &&
|
|
353
382
|
token_requestor_id == o.token_requestor_id &&
|
|
@@ -363,7 +392,7 @@ module VrpaymentRubySdk
|
|
|
363
392
|
# Calculates hash code according to all attributes.
|
|
364
393
|
# @return [Integer] Hash code
|
|
365
394
|
def hash
|
|
366
|
-
[expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
|
|
395
|
+
[expiry_date, pan_type, card_holder_name, card_verification_code, primary_account_number, recurring_indicator, transaction_link_identifier, scheme_transaction_reference, cardholder_authentication, token_requestor_id, cryptogram].hash
|
|
367
396
|
end
|
|
368
397
|
|
|
369
398
|
# Builds the object from hash
|
|
@@ -0,0 +1,50 @@
|
|
|
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 BankPaymentType
|
|
28
|
+
INSTANT = "INSTANT".freeze
|
|
29
|
+
REGULAR = "REGULAR".freeze
|
|
30
|
+
|
|
31
|
+
def self.all_vars
|
|
32
|
+
@all_vars ||= [INSTANT, REGULAR].freeze
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Builds the enum from string
|
|
36
|
+
# @param [String] The enum value in the form of the string
|
|
37
|
+
# @return [String] The enum value
|
|
38
|
+
def self.build_from_hash(value)
|
|
39
|
+
new.build_from_hash(value)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Builds the enum from string
|
|
43
|
+
# @param [String] The enum value in the form of the string
|
|
44
|
+
# @return [String] The enum value
|
|
45
|
+
def build_from_hash(value)
|
|
46
|
+
return value if BankPaymentType.all_vars.include?(value)
|
|
47
|
+
raise "Invalid ENUM value #{value} for class #BankPaymentType"
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -24,15 +24,12 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
attr_accessor :shipping_address
|
|
29
|
-
|
|
27
|
+
class BoardingStrategyInformationRequest
|
|
30
28
|
attr_accessor :billing_address
|
|
31
29
|
|
|
32
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
31
|
def self.attribute_map
|
|
34
32
|
{
|
|
35
|
-
:'shipping_address' => :'shippingAddress',
|
|
36
33
|
:'billing_address' => :'billingAddress'
|
|
37
34
|
}
|
|
38
35
|
end
|
|
@@ -50,8 +47,7 @@ module VrpaymentRubySdk
|
|
|
50
47
|
# Attribute type mapping.
|
|
51
48
|
def self.openapi_types
|
|
52
49
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'billing_address' => :'Address'
|
|
50
|
+
:'billing_address' => :'Setter'
|
|
55
51
|
}
|
|
56
52
|
end
|
|
57
53
|
|
|
@@ -65,24 +61,22 @@ module VrpaymentRubySdk
|
|
|
65
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
66
62
|
def initialize(attributes = {})
|
|
67
63
|
if (!attributes.is_a?(Hash))
|
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::BoardingStrategyInformationRequest` initialize method"
|
|
69
65
|
end
|
|
70
66
|
|
|
71
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
68
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
70
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::BoardingStrategyInformationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
72
|
end
|
|
77
73
|
h[k.to_sym] = v
|
|
78
74
|
}
|
|
79
75
|
|
|
80
|
-
if attributes.key?(:'shipping_address')
|
|
81
|
-
self.shipping_address = attributes[:'shipping_address']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
76
|
if attributes.key?(:'billing_address')
|
|
85
77
|
self.billing_address = attributes[:'billing_address']
|
|
78
|
+
else
|
|
79
|
+
self.billing_address = nil
|
|
86
80
|
end
|
|
87
81
|
end
|
|
88
82
|
|
|
@@ -91,6 +85,10 @@ module VrpaymentRubySdk
|
|
|
91
85
|
def list_invalid_properties
|
|
92
86
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
93
87
|
invalid_properties = Array.new
|
|
88
|
+
if @billing_address.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "billing_address", billing_address cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
94
92
|
invalid_properties
|
|
95
93
|
end
|
|
96
94
|
|
|
@@ -98,15 +96,25 @@ module VrpaymentRubySdk
|
|
|
98
96
|
# @return true if the model is valid
|
|
99
97
|
def valid?
|
|
100
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
99
|
+
return false if @billing_address.nil?
|
|
101
100
|
true
|
|
102
101
|
end
|
|
103
102
|
|
|
103
|
+
# Custom attribute writer method with validation
|
|
104
|
+
# @param [Object] billing_address Value to be assigned
|
|
105
|
+
def billing_address=(billing_address)
|
|
106
|
+
if billing_address.nil?
|
|
107
|
+
fail ArgumentError, 'billing_address cannot be nil'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
@billing_address = billing_address
|
|
111
|
+
end
|
|
112
|
+
|
|
104
113
|
# Checks equality by comparing each attribute.
|
|
105
114
|
# @param [Object] Object to be compared
|
|
106
115
|
def ==(o)
|
|
107
116
|
return true if self.equal?(o)
|
|
108
117
|
self.class == o.class &&
|
|
109
|
-
shipping_address == o.shipping_address &&
|
|
110
118
|
billing_address == o.billing_address
|
|
111
119
|
end
|
|
112
120
|
|
|
@@ -119,7 +127,7 @@ module VrpaymentRubySdk
|
|
|
119
127
|
# Calculates hash code according to all attributes.
|
|
120
128
|
# @return [Integer] Hash code
|
|
121
129
|
def hash
|
|
122
|
-
[
|
|
130
|
+
[billing_address].hash
|
|
123
131
|
end
|
|
124
132
|
|
|
125
133
|
# Builds the object from hash
|
|
@@ -24,18 +24,16 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
|
|
29
|
-
attr_accessor :payment_token
|
|
27
|
+
class ChargeAttemptLookupResult
|
|
28
|
+
attr_accessor :successful_charge_attempt
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
attr_accessor :cryptogram
|
|
30
|
+
attr_accessor :transaction
|
|
33
31
|
|
|
34
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
33
|
def self.attribute_map
|
|
36
34
|
{
|
|
37
|
-
:'
|
|
38
|
-
:'
|
|
35
|
+
:'successful_charge_attempt' => :'successfulChargeAttempt',
|
|
36
|
+
:'transaction' => :'transaction'
|
|
39
37
|
}
|
|
40
38
|
end
|
|
41
39
|
|
|
@@ -52,8 +50,8 @@ module VrpaymentRubySdk
|
|
|
52
50
|
# Attribute type mapping.
|
|
53
51
|
def self.openapi_types
|
|
54
52
|
{
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
53
|
+
:'successful_charge_attempt' => :'ChargeAttemptProjection',
|
|
54
|
+
:'transaction' => :'TransactionProjection'
|
|
57
55
|
}
|
|
58
56
|
end
|
|
59
57
|
|
|
@@ -67,24 +65,24 @@ module VrpaymentRubySdk
|
|
|
67
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
66
|
def initialize(attributes = {})
|
|
69
67
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::ChargeAttemptLookupResult` initialize method"
|
|
71
69
|
end
|
|
72
70
|
|
|
73
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
72
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
74
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::ChargeAttemptLookupResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
76
|
end
|
|
79
77
|
h[k.to_sym] = v
|
|
80
78
|
}
|
|
81
79
|
|
|
82
|
-
if attributes.key?(:'
|
|
83
|
-
self.
|
|
80
|
+
if attributes.key?(:'successful_charge_attempt')
|
|
81
|
+
self.successful_charge_attempt = attributes[:'successful_charge_attempt']
|
|
84
82
|
end
|
|
85
83
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
self.
|
|
84
|
+
if attributes.key?(:'transaction')
|
|
85
|
+
self.transaction = attributes[:'transaction']
|
|
88
86
|
end
|
|
89
87
|
end
|
|
90
88
|
|
|
@@ -108,8 +106,8 @@ module VrpaymentRubySdk
|
|
|
108
106
|
def ==(o)
|
|
109
107
|
return true if self.equal?(o)
|
|
110
108
|
self.class == o.class &&
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
successful_charge_attempt == o.successful_charge_attempt &&
|
|
110
|
+
transaction == o.transaction
|
|
113
111
|
end
|
|
114
112
|
|
|
115
113
|
# @see the `==` method
|
|
@@ -121,7 +119,7 @@ module VrpaymentRubySdk
|
|
|
121
119
|
# Calculates hash code according to all attributes.
|
|
122
120
|
# @return [Integer] Hash code
|
|
123
121
|
def hash
|
|
124
|
-
[
|
|
122
|
+
[successful_charge_attempt, transaction].hash
|
|
125
123
|
end
|
|
126
124
|
|
|
127
125
|
# Builds the object from hash
|