wallee-ruby-sdk 2.2.3 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/wallee-ruby-sdk.rb +63 -8
- data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
- data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
- data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
- data/lib/wallee-ruby-sdk/api_client.rb +7 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -2
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/models/account.rb +31 -1
- data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
- data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
- data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
- data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
- data/lib/wallee-ruby-sdk/models/role.rb +1 -1
- data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space.rb +31 -1
- data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/wallee-ruby-sdk/models/token.rb +1 -25
- data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
- data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- data/wallee-ruby-sdk.gemspec +3 -2
- metadata +93 -17
@@ -38,8 +38,8 @@ module Wallee
|
|
38
38
|
# The available from date defines the latest date on which the payment link can be used to initialize a transaction. When no date is specified there will be no restriction.
|
39
39
|
attr_accessor :available_until
|
40
40
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
41
|
+
# The billing address handling mode controls if the address is collected or not and how it is collected.
|
42
|
+
attr_accessor :billing_address_handling_mode
|
43
43
|
|
44
44
|
# The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
|
45
45
|
attr_accessor :currency
|
@@ -56,8 +56,8 @@ module Wallee
|
|
56
56
|
# The payment link name is used internally to identify the payment link. For example the name is used within search fields and hence it should be distinct and descriptive.
|
57
57
|
attr_accessor :name
|
58
58
|
|
59
|
-
#
|
60
|
-
attr_accessor :
|
59
|
+
# The shipping address handling mode controls if the address is collected or not and how it is collected.
|
60
|
+
attr_accessor :shipping_address_handling_mode
|
61
61
|
|
62
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
63
|
def self.attribute_map
|
@@ -68,13 +68,13 @@ module Wallee
|
|
68
68
|
:'applied_space_view' => :'appliedSpaceView',
|
69
69
|
:'available_from' => :'availableFrom',
|
70
70
|
:'available_until' => :'availableUntil',
|
71
|
-
:'
|
71
|
+
:'billing_address_handling_mode' => :'billingAddressHandlingMode',
|
72
72
|
:'currency' => :'currency',
|
73
73
|
:'language' => :'language',
|
74
74
|
:'line_items' => :'lineItems',
|
75
75
|
:'maximal_number_of_transactions' => :'maximalNumberOfTransactions',
|
76
76
|
:'name' => :'name',
|
77
|
-
:'
|
77
|
+
:'shipping_address_handling_mode' => :'shippingAddressHandlingMode'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -87,13 +87,13 @@ module Wallee
|
|
87
87
|
:'applied_space_view' => :'Integer',
|
88
88
|
:'available_from' => :'DateTime',
|
89
89
|
:'available_until' => :'DateTime',
|
90
|
-
:'
|
90
|
+
:'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
91
91
|
:'currency' => :'String',
|
92
92
|
:'language' => :'String',
|
93
93
|
:'line_items' => :'Array<LineItemCreate>',
|
94
94
|
:'maximal_number_of_transactions' => :'Integer',
|
95
95
|
:'name' => :'String',
|
96
|
-
:'
|
96
|
+
:'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode'
|
97
97
|
}
|
98
98
|
end
|
99
99
|
|
@@ -131,8 +131,8 @@ module Wallee
|
|
131
131
|
self.available_until = attributes[:'availableUntil']
|
132
132
|
end
|
133
133
|
|
134
|
-
if attributes.has_key?(:'
|
135
|
-
self.
|
134
|
+
if attributes.has_key?(:'billingAddressHandlingMode')
|
135
|
+
self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
|
136
136
|
end
|
137
137
|
|
138
138
|
if attributes.has_key?(:'currency')
|
@@ -157,8 +157,8 @@ module Wallee
|
|
157
157
|
self.name = attributes[:'name']
|
158
158
|
end
|
159
159
|
|
160
|
-
if attributes.has_key?(:'
|
161
|
-
self.
|
160
|
+
if attributes.has_key?(:'shippingAddressHandlingMode')
|
161
|
+
self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
@@ -211,13 +211,13 @@ module Wallee
|
|
211
211
|
applied_space_view == o.applied_space_view &&
|
212
212
|
available_from == o.available_from &&
|
213
213
|
available_until == o.available_until &&
|
214
|
-
|
214
|
+
billing_address_handling_mode == o.billing_address_handling_mode &&
|
215
215
|
currency == o.currency &&
|
216
216
|
language == o.language &&
|
217
217
|
line_items == o.line_items &&
|
218
218
|
maximal_number_of_transactions == o.maximal_number_of_transactions &&
|
219
219
|
name == o.name &&
|
220
|
-
|
220
|
+
shipping_address_handling_mode == o.shipping_address_handling_mode
|
221
221
|
end
|
222
222
|
|
223
223
|
# @see the `==` method
|
@@ -229,7 +229,7 @@ module Wallee
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Fixnum] Hash code
|
231
231
|
def hash
|
232
|
-
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until,
|
232
|
+
[id, version, allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_handling_mode, currency, language, line_items, maximal_number_of_transactions, name, shipping_address_handling_mode].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -23,6 +23,9 @@ module Wallee
|
|
23
23
|
#
|
24
24
|
attr_accessor :configuration_version
|
25
25
|
|
26
|
+
#
|
27
|
+
attr_accessor :default_currency
|
28
|
+
|
26
29
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
27
30
|
attr_accessor :id
|
28
31
|
|
@@ -54,6 +57,7 @@ module Wallee
|
|
54
57
|
def self.attribute_map
|
55
58
|
{
|
56
59
|
:'configuration_version' => :'configurationVersion',
|
60
|
+
:'default_currency' => :'defaultCurrency',
|
57
61
|
:'id' => :'id',
|
58
62
|
:'identifier' => :'identifier',
|
59
63
|
:'linked_space_id' => :'linkedSpaceId',
|
@@ -70,6 +74,7 @@ module Wallee
|
|
70
74
|
def self.swagger_types
|
71
75
|
{
|
72
76
|
:'configuration_version' => :'PaymentTerminalConfigurationVersion',
|
77
|
+
:'default_currency' => :'String',
|
73
78
|
:'id' => :'Integer',
|
74
79
|
:'identifier' => :'String',
|
75
80
|
:'linked_space_id' => :'Integer',
|
@@ -94,6 +99,10 @@ module Wallee
|
|
94
99
|
self.configuration_version = attributes[:'configurationVersion']
|
95
100
|
end
|
96
101
|
|
102
|
+
if attributes.has_key?(:'defaultCurrency')
|
103
|
+
self.default_currency = attributes[:'defaultCurrency']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.has_key?(:'id')
|
98
107
|
self.id = attributes[:'id']
|
99
108
|
end
|
@@ -165,6 +174,7 @@ module Wallee
|
|
165
174
|
return true if self.equal?(o)
|
166
175
|
self.class == o.class &&
|
167
176
|
configuration_version == o.configuration_version &&
|
177
|
+
default_currency == o.default_currency &&
|
168
178
|
id == o.id &&
|
169
179
|
identifier == o.identifier &&
|
170
180
|
linked_space_id == o.linked_space_id &&
|
@@ -185,7 +195,7 @@ module Wallee
|
|
185
195
|
# Calculates hash code according to all attributes.
|
186
196
|
# @return [Fixnum] Hash code
|
187
197
|
def hash
|
188
|
-
[configuration_version, id, identifier, linked_space_id, location_version, name, planned_purge_date, state, type, version].hash
|
198
|
+
[configuration_version, default_currency, id, identifier, linked_space_id, location_version, name, planned_purge_date, state, type, version].hash
|
189
199
|
end
|
190
200
|
|
191
201
|
# Builds the object from hash
|
@@ -179,26 +179,10 @@ module Wallee
|
|
179
179
|
invalid_properties.push('invalid value for "email_address", the character length must be smaller than or equal to 254.')
|
180
180
|
end
|
181
181
|
|
182
|
-
if !@family_name.nil? && @family_name.to_s.length > 100
|
183
|
-
invalid_properties.push('invalid value for "family_name", the character length must be smaller than or equal to 100.')
|
184
|
-
end
|
185
|
-
|
186
|
-
if !@given_name.nil? && @given_name.to_s.length > 100
|
187
|
-
invalid_properties.push('invalid value for "given_name", the character length must be smaller than or equal to 100.')
|
188
|
-
end
|
189
|
-
|
190
182
|
if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
191
183
|
invalid_properties.push('invalid value for "mobile_phone_number", the character length must be smaller than or equal to 100.')
|
192
184
|
end
|
193
185
|
|
194
|
-
if !@organization_name.nil? && @organization_name.to_s.length > 100
|
195
|
-
invalid_properties.push('invalid value for "organization_name", the character length must be smaller than or equal to 100.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if !@phone_number.nil? && @phone_number.to_s.length > 100
|
199
|
-
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 100.')
|
200
|
-
end
|
201
|
-
|
202
186
|
if !@salutation.nil? && @salutation.to_s.length > 20
|
203
187
|
invalid_properties.push('invalid value for "salutation", the character length must be smaller than or equal to 20.')
|
204
188
|
end
|
@@ -215,11 +199,7 @@ module Wallee
|
|
215
199
|
def valid?
|
216
200
|
return false if !@dependent_locality.nil? && @dependent_locality.to_s.length > 100
|
217
201
|
return false if !@email_address.nil? && @email_address.to_s.length > 254
|
218
|
-
return false if !@family_name.nil? && @family_name.to_s.length > 100
|
219
|
-
return false if !@given_name.nil? && @given_name.to_s.length > 100
|
220
202
|
return false if !@mobile_phone_number.nil? && @mobile_phone_number.to_s.length > 100
|
221
|
-
return false if !@organization_name.nil? && @organization_name.to_s.length > 100
|
222
|
-
return false if !@phone_number.nil? && @phone_number.to_s.length > 100
|
223
203
|
return false if !@salutation.nil? && @salutation.to_s.length > 20
|
224
204
|
return false if !@sorting_code.nil? && @sorting_code.to_s.length > 100
|
225
205
|
true
|
@@ -245,26 +225,6 @@ module Wallee
|
|
245
225
|
@email_address = email_address
|
246
226
|
end
|
247
227
|
|
248
|
-
# Custom attribute writer method with validation
|
249
|
-
# @param [Object] family_name Value to be assigned
|
250
|
-
def family_name=(family_name)
|
251
|
-
if !family_name.nil? && family_name.to_s.length > 100
|
252
|
-
fail ArgumentError, 'invalid value for "family_name", the character length must be smaller than or equal to 100.'
|
253
|
-
end
|
254
|
-
|
255
|
-
@family_name = family_name
|
256
|
-
end
|
257
|
-
|
258
|
-
# Custom attribute writer method with validation
|
259
|
-
# @param [Object] given_name Value to be assigned
|
260
|
-
def given_name=(given_name)
|
261
|
-
if !given_name.nil? && given_name.to_s.length > 100
|
262
|
-
fail ArgumentError, 'invalid value for "given_name", the character length must be smaller than or equal to 100.'
|
263
|
-
end
|
264
|
-
|
265
|
-
@given_name = given_name
|
266
|
-
end
|
267
|
-
|
268
228
|
# Custom attribute writer method with validation
|
269
229
|
# @param [Object] mobile_phone_number Value to be assigned
|
270
230
|
def mobile_phone_number=(mobile_phone_number)
|
@@ -275,26 +235,6 @@ module Wallee
|
|
275
235
|
@mobile_phone_number = mobile_phone_number
|
276
236
|
end
|
277
237
|
|
278
|
-
# Custom attribute writer method with validation
|
279
|
-
# @param [Object] organization_name Value to be assigned
|
280
|
-
def organization_name=(organization_name)
|
281
|
-
if !organization_name.nil? && organization_name.to_s.length > 100
|
282
|
-
fail ArgumentError, 'invalid value for "organization_name", the character length must be smaller than or equal to 100.'
|
283
|
-
end
|
284
|
-
|
285
|
-
@organization_name = organization_name
|
286
|
-
end
|
287
|
-
|
288
|
-
# Custom attribute writer method with validation
|
289
|
-
# @param [Object] phone_number Value to be assigned
|
290
|
-
def phone_number=(phone_number)
|
291
|
-
if !phone_number.nil? && phone_number.to_s.length > 100
|
292
|
-
fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 100.'
|
293
|
-
end
|
294
|
-
|
295
|
-
@phone_number = phone_number
|
296
|
-
end
|
297
|
-
|
298
238
|
# Custom attribute writer method with validation
|
299
239
|
# @param [Object] salutation Value to be assigned
|
300
240
|
def salutation=(salutation)
|
@@ -32,6 +32,9 @@ module Wallee
|
|
32
32
|
# The created on date indicates the date on which the entity was stored into the database.
|
33
33
|
attr_accessor :created_on
|
34
34
|
|
35
|
+
# The currency is derived by default from the terminal location. By setting a specific currency the derived currency is overridden.
|
36
|
+
attr_accessor :default_currency
|
37
|
+
|
35
38
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
36
39
|
attr_accessor :id
|
37
40
|
|
@@ -66,6 +69,7 @@ module Wallee
|
|
66
69
|
:'connector_configurations' => :'connectorConfigurations',
|
67
70
|
:'created_by' => :'createdBy',
|
68
71
|
:'created_on' => :'createdOn',
|
72
|
+
:'default_currency' => :'defaultCurrency',
|
69
73
|
:'id' => :'id',
|
70
74
|
:'linked_space_id' => :'linkedSpaceId',
|
71
75
|
:'maintenance_window_duration' => :'maintenanceWindowDuration',
|
@@ -85,6 +89,7 @@ module Wallee
|
|
85
89
|
:'connector_configurations' => :'Array<Integer>',
|
86
90
|
:'created_by' => :'Integer',
|
87
91
|
:'created_on' => :'DateTime',
|
92
|
+
:'default_currency' => :'String',
|
88
93
|
:'id' => :'Integer',
|
89
94
|
:'linked_space_id' => :'Integer',
|
90
95
|
:'maintenance_window_duration' => :'String',
|
@@ -123,6 +128,10 @@ module Wallee
|
|
123
128
|
self.created_on = attributes[:'createdOn']
|
124
129
|
end
|
125
130
|
|
131
|
+
if attributes.has_key?(:'defaultCurrency')
|
132
|
+
self.default_currency = attributes[:'defaultCurrency']
|
133
|
+
end
|
134
|
+
|
126
135
|
if attributes.has_key?(:'id')
|
127
136
|
self.id = attributes[:'id']
|
128
137
|
end
|
@@ -182,6 +191,7 @@ module Wallee
|
|
182
191
|
connector_configurations == o.connector_configurations &&
|
183
192
|
created_by == o.created_by &&
|
184
193
|
created_on == o.created_on &&
|
194
|
+
default_currency == o.default_currency &&
|
185
195
|
id == o.id &&
|
186
196
|
linked_space_id == o.linked_space_id &&
|
187
197
|
maintenance_window_duration == o.maintenance_window_duration &&
|
@@ -202,7 +212,7 @@ module Wallee
|
|
202
212
|
# Calculates hash code according to all attributes.
|
203
213
|
# @return [Fixnum] Hash code
|
204
214
|
def hash
|
205
|
-
[configuration, connector_configurations, created_by, created_on, id, linked_space_id, maintenance_window_duration, maintenance_window_start, planned_purge_date, state, time_zone, version, version_applied_immediately].hash
|
215
|
+
[configuration, connector_configurations, created_by, created_on, default_currency, id, linked_space_id, maintenance_window_duration, maintenance_window_start, planned_purge_date, state, time_zone, version, version_applied_immediately].hash
|
206
216
|
end
|
207
217
|
|
208
218
|
# Builds the object from hash
|
@@ -23,12 +23,6 @@ module Wallee
|
|
23
23
|
#
|
24
24
|
attr_accessor :contact_address
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :default_configuration
|
28
|
-
|
29
|
-
#
|
30
|
-
attr_accessor :delivery_address
|
31
|
-
|
32
26
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
33
27
|
attr_accessor :id
|
34
28
|
|
@@ -51,8 +45,6 @@ module Wallee
|
|
51
45
|
def self.attribute_map
|
52
46
|
{
|
53
47
|
:'contact_address' => :'contactAddress',
|
54
|
-
:'default_configuration' => :'defaultConfiguration',
|
55
|
-
:'delivery_address' => :'deliveryAddress',
|
56
48
|
:'id' => :'id',
|
57
49
|
:'linked_space_id' => :'linkedSpaceId',
|
58
50
|
:'name' => :'name',
|
@@ -65,9 +57,7 @@ module Wallee
|
|
65
57
|
# Attribute type mapping.
|
66
58
|
def self.swagger_types
|
67
59
|
{
|
68
|
-
:'contact_address' => :'
|
69
|
-
:'default_configuration' => :'PaymentTerminalConfiguration',
|
70
|
-
:'delivery_address' => :'PaymentTerminalAddress',
|
60
|
+
:'contact_address' => :'PaymentTerminalAddress',
|
71
61
|
:'id' => :'Integer',
|
72
62
|
:'linked_space_id' => :'Integer',
|
73
63
|
:'name' => :'String',
|
@@ -89,14 +79,6 @@ module Wallee
|
|
89
79
|
self.contact_address = attributes[:'contactAddress']
|
90
80
|
end
|
91
81
|
|
92
|
-
if attributes.has_key?(:'defaultConfiguration')
|
93
|
-
self.default_configuration = attributes[:'defaultConfiguration']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.has_key?(:'deliveryAddress')
|
97
|
-
self.delivery_address = attributes[:'deliveryAddress']
|
98
|
-
end
|
99
|
-
|
100
82
|
if attributes.has_key?(:'id')
|
101
83
|
self.id = attributes[:'id']
|
102
84
|
end
|
@@ -156,8 +138,6 @@ module Wallee
|
|
156
138
|
return true if self.equal?(o)
|
157
139
|
self.class == o.class &&
|
158
140
|
contact_address == o.contact_address &&
|
159
|
-
default_configuration == o.default_configuration &&
|
160
|
-
delivery_address == o.delivery_address &&
|
161
141
|
id == o.id &&
|
162
142
|
linked_space_id == o.linked_space_id &&
|
163
143
|
name == o.name &&
|
@@ -175,7 +155,7 @@ module Wallee
|
|
175
155
|
# Calculates hash code according to all attributes.
|
176
156
|
# @return [Fixnum] Hash code
|
177
157
|
def hash
|
178
|
-
[contact_address,
|
158
|
+
[contact_address, id, linked_space_id, name, planned_purge_date, state, version].hash
|
179
159
|
end
|
180
160
|
|
181
161
|
# Builds the object from hash
|
@@ -0,0 +1,215 @@
|
|
1
|
+
=begin
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
|
16
|
+
=end
|
17
|
+
|
18
|
+
require 'date'
|
19
|
+
|
20
|
+
module Wallee
|
21
|
+
#
|
22
|
+
class PaymentTerminalReceiptType
|
23
|
+
#
|
24
|
+
attr_accessor :description
|
25
|
+
|
26
|
+
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
27
|
+
attr_accessor :id
|
28
|
+
|
29
|
+
#
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'description' => :'description',
|
36
|
+
:'id' => :'id',
|
37
|
+
:'name' => :'name'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'description' => :'Hash<String, String>',
|
45
|
+
:'id' => :'Integer',
|
46
|
+
:'name' => :'Hash<String, String>'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'description')
|
59
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
60
|
+
self.description = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'id')
|
65
|
+
self.id = attributes[:'id']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'name')
|
69
|
+
if (value = attributes[:'name']).is_a?(Hash)
|
70
|
+
self.name = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
description == o.description &&
|
94
|
+
id == o.id &&
|
95
|
+
name == o.name
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Fixnum] Hash code
|
106
|
+
def hash
|
107
|
+
[description, id, name].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def build_from_hash(attributes)
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
115
|
+
self.class.swagger_types.each_pair do |key, type|
|
116
|
+
if type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
121
|
+
end
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
|
+
end
|
126
|
+
|
127
|
+
self
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def _deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :DateTime
|
137
|
+
DateTime.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :BOOLEAN
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
temp_model = Wallee.const_get(type).new
|
168
|
+
temp_model.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
next if value.nil?
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map{ |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
215
|
+
end
|