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,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 InvoiceReimbursementSearchResponse
|
|
28
|
+
# An array containing the actual response objects.
|
|
29
|
+
attr_accessor :data
|
|
30
|
+
|
|
31
|
+
# The number of skipped objects.
|
|
32
|
+
attr_accessor :offset
|
|
33
|
+
|
|
34
|
+
# Whether there are more objects available after this set. If false, there are no more objects to retrieve.
|
|
35
|
+
attr_accessor :has_more
|
|
36
|
+
|
|
37
|
+
# The applied limit on the number of objects returned.
|
|
38
|
+
attr_accessor :limit
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'data' => :'data',
|
|
44
|
+
:'offset' => :'offset',
|
|
45
|
+
:'has_more' => :'hasMore',
|
|
46
|
+
:'limit' => :'limit'
|
|
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
|
+
:'data' => :'Array<InvoiceReimbursement>',
|
|
64
|
+
:'offset' => :'Integer',
|
|
65
|
+
:'has_more' => :'Boolean',
|
|
66
|
+
:'limit' => :'Integer'
|
|
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::InvoiceReimbursementSearchResponse` 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::InvoiceReimbursementSearchResponse`. 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?(:'data')
|
|
93
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
94
|
+
self.data = value
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'offset')
|
|
99
|
+
self.offset = attributes[:'offset']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'has_more')
|
|
103
|
+
self.has_more = attributes[:'has_more']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'limit')
|
|
107
|
+
self.limit = attributes[:'limit']
|
|
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
|
+
data == o.data &&
|
|
132
|
+
offset == o.offset &&
|
|
133
|
+
has_more == o.has_more &&
|
|
134
|
+
limit == o.limit
|
|
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
|
+
[data, offset, has_more, limit].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
|
|
@@ -0,0 +1,54 @@
|
|
|
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 InvoiceReimbursementState
|
|
28
|
+
PENDING = "PENDING".freeze
|
|
29
|
+
ON_HOLD = "ON_HOLD".freeze
|
|
30
|
+
MANUAL_REVIEW = "MANUAL_REVIEW".freeze
|
|
31
|
+
PROCESSING = "PROCESSING".freeze
|
|
32
|
+
PROCESSED = "PROCESSED".freeze
|
|
33
|
+
DISCARDED = "DISCARDED".freeze
|
|
34
|
+
|
|
35
|
+
def self.all_vars
|
|
36
|
+
@all_vars ||= [PENDING, ON_HOLD, MANUAL_REVIEW, PROCESSING, PROCESSED, DISCARDED].freeze
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Builds the enum from string
|
|
40
|
+
# @param [String] The enum value in the form of the string
|
|
41
|
+
# @return [String] The enum value
|
|
42
|
+
def self.build_from_hash(value)
|
|
43
|
+
new.build_from_hash(value)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Builds the enum from string
|
|
47
|
+
# @param [String] The enum value in the form of the string
|
|
48
|
+
# @return [String] The enum value
|
|
49
|
+
def build_from_hash(value)
|
|
50
|
+
return value if InvoiceReimbursementState.all_vars.include?(value)
|
|
51
|
+
raise "Invalid ENUM value #{value} for class #InvoiceReimbursementState"
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -24,13 +24,16 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
attr_accessor :
|
|
27
|
+
class PaymentFacilitatorPricingProfileDto
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
attr_accessor :id
|
|
29
31
|
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
33
|
def self.attribute_map
|
|
32
34
|
{
|
|
33
|
-
:'
|
|
35
|
+
:'name' => :'name',
|
|
36
|
+
:'id' => :'id'
|
|
34
37
|
}
|
|
35
38
|
end
|
|
36
39
|
|
|
@@ -47,7 +50,8 @@ module VrpaymentRubySdk
|
|
|
47
50
|
# Attribute type mapping.
|
|
48
51
|
def self.openapi_types
|
|
49
52
|
{
|
|
50
|
-
:'
|
|
53
|
+
:'name' => :'String',
|
|
54
|
+
:'id' => :'Integer'
|
|
51
55
|
}
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -61,20 +65,24 @@ module VrpaymentRubySdk
|
|
|
61
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
66
|
def initialize(attributes = {})
|
|
63
67
|
if (!attributes.is_a?(Hash))
|
|
64
|
-
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::PaymentFacilitatorPricingProfileDto` initialize method"
|
|
65
69
|
end
|
|
66
70
|
|
|
67
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
72
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
69
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
74
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::PaymentFacilitatorPricingProfileDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
72
76
|
end
|
|
73
77
|
h[k.to_sym] = v
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
self.
|
|
80
|
+
if attributes.key?(:'name')
|
|
81
|
+
self.name = attributes[:'name']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'id')
|
|
85
|
+
self.id = attributes[:'id']
|
|
78
86
|
end
|
|
79
87
|
end
|
|
80
88
|
|
|
@@ -98,7 +106,8 @@ module VrpaymentRubySdk
|
|
|
98
106
|
def ==(o)
|
|
99
107
|
return true if self.equal?(o)
|
|
100
108
|
self.class == o.class &&
|
|
101
|
-
|
|
109
|
+
name == o.name &&
|
|
110
|
+
id == o.id
|
|
102
111
|
end
|
|
103
112
|
|
|
104
113
|
# @see the `==` method
|
|
@@ -110,7 +119,7 @@ module VrpaymentRubySdk
|
|
|
110
119
|
# Calculates hash code according to all attributes.
|
|
111
120
|
# @return [Integer] Hash code
|
|
112
121
|
def hash
|
|
113
|
-
[
|
|
122
|
+
[name, id].hash
|
|
114
123
|
end
|
|
115
124
|
|
|
116
125
|
# Builds the object from hash
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PaymentFacilitatorPricingProfileState
|
|
28
|
+
CREATE = "CREATE".freeze
|
|
29
|
+
ACTIVE = "ACTIVE".freeze
|
|
30
|
+
INACTIVE = "INACTIVE".freeze
|
|
31
|
+
DELETING = "DELETING".freeze
|
|
32
|
+
DELETED = "DELETED".freeze
|
|
33
|
+
|
|
34
|
+
def self.all_vars
|
|
35
|
+
@all_vars ||= [CREATE, ACTIVE, INACTIVE, DELETING, DELETED].freeze
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Builds the enum from string
|
|
39
|
+
# @param [String] The enum value in the form of the string
|
|
40
|
+
# @return [String] The enum value
|
|
41
|
+
def self.build_from_hash(value)
|
|
42
|
+
new.build_from_hash(value)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Builds the enum from string
|
|
46
|
+
# @param [String] The enum value in the form of the string
|
|
47
|
+
# @return [String] The enum value
|
|
48
|
+
def build_from_hash(value)
|
|
49
|
+
return value if PaymentFacilitatorPricingProfileState.all_vars.include?(value)
|
|
50
|
+
raise "Invalid ENUM value #{value} for class #PaymentFacilitatorPricingProfileState"
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
data/lib/vrpayment-ruby-sdk/models/{express_checkout_session.rb → payment_initiation_advice_file.rb}
RENAMED
|
@@ -24,32 +24,30 @@ require 'date'
|
|
|
24
24
|
require 'time'
|
|
25
25
|
|
|
26
26
|
module VrpaymentRubySdk
|
|
27
|
-
class
|
|
28
|
-
|
|
27
|
+
class PaymentInitiationAdviceFile
|
|
28
|
+
# The shipping date indicates the date on which the pain file was transferred to an external processing system.
|
|
29
|
+
attr_accessor :forwarded_on
|
|
29
30
|
|
|
30
|
-
# The
|
|
31
|
-
attr_accessor :merchant_shipping_callback_url
|
|
32
|
-
|
|
33
|
-
# The spaceId linked to the entity.
|
|
31
|
+
# The ID of the space this object belongs to.
|
|
34
32
|
attr_accessor :linked_space_id
|
|
35
33
|
|
|
36
|
-
attr_accessor :
|
|
37
|
-
|
|
38
|
-
attr_accessor :wallet_type
|
|
39
|
-
|
|
40
|
-
attr_accessor :shipping_address
|
|
34
|
+
attr_accessor :processed_on
|
|
41
35
|
|
|
42
|
-
|
|
43
|
-
attr_accessor :currency
|
|
36
|
+
attr_accessor :file_generated_on
|
|
44
37
|
|
|
45
|
-
attr_accessor :
|
|
38
|
+
attr_accessor :name
|
|
46
39
|
|
|
47
|
-
#
|
|
40
|
+
# A unique identifier for the object.
|
|
48
41
|
attr_accessor :id
|
|
49
42
|
|
|
50
43
|
attr_accessor :state
|
|
51
44
|
|
|
52
|
-
|
|
45
|
+
# The created on date indicates the date on which the entity was stored into the database.
|
|
46
|
+
attr_accessor :created_on
|
|
47
|
+
|
|
48
|
+
attr_accessor :failure_message
|
|
49
|
+
|
|
50
|
+
attr_accessor :processor
|
|
53
51
|
|
|
54
52
|
class EnumAttributeValidator
|
|
55
53
|
attr_reader :datatype
|
|
@@ -76,17 +74,16 @@ module VrpaymentRubySdk
|
|
|
76
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
77
75
|
def self.attribute_map
|
|
78
76
|
{
|
|
79
|
-
:'
|
|
80
|
-
:'merchant_shipping_callback_url' => :'merchantShippingCallbackUrl',
|
|
77
|
+
:'forwarded_on' => :'forwardedOn',
|
|
81
78
|
:'linked_space_id' => :'linkedSpaceId',
|
|
82
|
-
:'
|
|
83
|
-
:'
|
|
84
|
-
:'
|
|
85
|
-
:'currency' => :'currency',
|
|
86
|
-
:'billing_address' => :'billingAddress',
|
|
79
|
+
:'processed_on' => :'processedOn',
|
|
80
|
+
:'file_generated_on' => :'fileGeneratedOn',
|
|
81
|
+
:'name' => :'name',
|
|
87
82
|
:'id' => :'id',
|
|
88
83
|
:'state' => :'state',
|
|
89
|
-
:'
|
|
84
|
+
:'created_on' => :'createdOn',
|
|
85
|
+
:'failure_message' => :'failureMessage',
|
|
86
|
+
:'processor' => :'processor'
|
|
90
87
|
}
|
|
91
88
|
end
|
|
92
89
|
|
|
@@ -103,17 +100,16 @@ module VrpaymentRubySdk
|
|
|
103
100
|
# Attribute type mapping.
|
|
104
101
|
def self.openapi_types
|
|
105
102
|
{
|
|
106
|
-
:'
|
|
107
|
-
:'merchant_shipping_callback_url' => :'String',
|
|
103
|
+
:'forwarded_on' => :'Time',
|
|
108
104
|
:'linked_space_id' => :'Integer',
|
|
109
|
-
:'
|
|
110
|
-
:'
|
|
111
|
-
:'
|
|
112
|
-
:'currency' => :'String',
|
|
113
|
-
:'billing_address' => :'Address',
|
|
105
|
+
:'processed_on' => :'Time',
|
|
106
|
+
:'file_generated_on' => :'Time',
|
|
107
|
+
:'name' => :'String',
|
|
114
108
|
:'id' => :'Integer',
|
|
115
|
-
:'state' => :'
|
|
116
|
-
:'
|
|
109
|
+
:'state' => :'PaymentInitiationAdviceFileState',
|
|
110
|
+
:'created_on' => :'Time',
|
|
111
|
+
:'failure_message' => :'String',
|
|
112
|
+
:'processor' => :'PaymentProcessor'
|
|
117
113
|
}
|
|
118
114
|
end
|
|
119
115
|
|
|
@@ -127,52 +123,36 @@ module VrpaymentRubySdk
|
|
|
127
123
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
124
|
def initialize(attributes = {})
|
|
129
125
|
if (!attributes.is_a?(Hash))
|
|
130
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::
|
|
126
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `VrpaymentRubySdk::PaymentInitiationAdviceFile` initialize method"
|
|
131
127
|
end
|
|
132
128
|
|
|
133
129
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
134
130
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
135
131
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
136
132
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
137
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::
|
|
133
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `VrpaymentRubySdk::PaymentInitiationAdviceFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
138
134
|
end
|
|
139
135
|
h[k.to_sym] = v
|
|
140
136
|
}
|
|
141
137
|
|
|
142
|
-
if attributes.key?(:'
|
|
143
|
-
|
|
144
|
-
self.line_items = value
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
if attributes.key?(:'merchant_shipping_callback_url')
|
|
149
|
-
self.merchant_shipping_callback_url = attributes[:'merchant_shipping_callback_url']
|
|
138
|
+
if attributes.key?(:'forwarded_on')
|
|
139
|
+
self.forwarded_on = attributes[:'forwarded_on']
|
|
150
140
|
end
|
|
151
141
|
|
|
152
142
|
if attributes.key?(:'linked_space_id')
|
|
153
143
|
self.linked_space_id = attributes[:'linked_space_id']
|
|
154
144
|
end
|
|
155
145
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
|
|
158
|
-
self.meta_data = value
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
if attributes.key?(:'wallet_type')
|
|
163
|
-
self.wallet_type = attributes[:'wallet_type']
|
|
146
|
+
if attributes.key?(:'processed_on')
|
|
147
|
+
self.processed_on = attributes[:'processed_on']
|
|
164
148
|
end
|
|
165
149
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
self.
|
|
150
|
+
if attributes.key?(:'file_generated_on')
|
|
151
|
+
self.file_generated_on = attributes[:'file_generated_on']
|
|
168
152
|
end
|
|
169
153
|
|
|
170
|
-
if attributes.key?(:'
|
|
171
|
-
self.
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
if attributes.key?(:'billing_address')
|
|
175
|
-
self.billing_address = attributes[:'billing_address']
|
|
154
|
+
if attributes.key?(:'name')
|
|
155
|
+
self.name = attributes[:'name']
|
|
176
156
|
end
|
|
177
157
|
|
|
178
158
|
if attributes.key?(:'id')
|
|
@@ -183,10 +163,16 @@ module VrpaymentRubySdk
|
|
|
183
163
|
self.state = attributes[:'state']
|
|
184
164
|
end
|
|
185
165
|
|
|
186
|
-
if attributes.key?(:'
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
166
|
+
if attributes.key?(:'created_on')
|
|
167
|
+
self.created_on = attributes[:'created_on']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'failure_message')
|
|
171
|
+
self.failure_message = attributes[:'failure_message']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'processor')
|
|
175
|
+
self.processor = attributes[:'processor']
|
|
190
176
|
end
|
|
191
177
|
end
|
|
192
178
|
|
|
@@ -210,17 +196,16 @@ module VrpaymentRubySdk
|
|
|
210
196
|
def ==(o)
|
|
211
197
|
return true if self.equal?(o)
|
|
212
198
|
self.class == o.class &&
|
|
213
|
-
|
|
214
|
-
merchant_shipping_callback_url == o.merchant_shipping_callback_url &&
|
|
199
|
+
forwarded_on == o.forwarded_on &&
|
|
215
200
|
linked_space_id == o.linked_space_id &&
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
currency == o.currency &&
|
|
220
|
-
billing_address == o.billing_address &&
|
|
201
|
+
processed_on == o.processed_on &&
|
|
202
|
+
file_generated_on == o.file_generated_on &&
|
|
203
|
+
name == o.name &&
|
|
221
204
|
id == o.id &&
|
|
222
205
|
state == o.state &&
|
|
223
|
-
|
|
206
|
+
created_on == o.created_on &&
|
|
207
|
+
failure_message == o.failure_message &&
|
|
208
|
+
processor == o.processor
|
|
224
209
|
end
|
|
225
210
|
|
|
226
211
|
# @see the `==` method
|
|
@@ -232,7 +217,7 @@ module VrpaymentRubySdk
|
|
|
232
217
|
# Calculates hash code according to all attributes.
|
|
233
218
|
# @return [Integer] Hash code
|
|
234
219
|
def hash
|
|
235
|
-
[
|
|
220
|
+
[forwarded_on, linked_space_id, processed_on, file_generated_on, name, id, state, created_on, failure_message, processor].hash
|
|
236
221
|
end
|
|
237
222
|
|
|
238
223
|
# Builds the object from hash
|