wallee-ruby-sdk 2.2.4 → 3.0.6
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/LICENSE +1 -1
- data/lib/wallee-ruby-sdk.rb +46 -3
- 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 +71 -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/token_service_api.rb +63 -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 +2 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.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_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_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/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +12 -2
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +11 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.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_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 +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.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/tax_calculation.rb +2 -2
- 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 +64 -4
- 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 +11 -1
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- metadata +50 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_contact_address.rb +0 -396
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
class PaymentLinkAddressHandlingMode
|
|
22
|
+
|
|
23
|
+
NOT_REQUIRED = 'NOT_REQUIRED'.freeze
|
|
24
|
+
REQUIRED_IN_URL = 'REQUIRED_IN_URL'.freeze
|
|
25
|
+
REQUIRED_ON_PAYMENT_PAGE = 'REQUIRED_ON_PAYMENT_PAGE'.freeze
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def build_from_hash(value)
|
|
31
|
+
constantValues = PaymentLinkAddressHandlingMode.constants.select { |c| PaymentLinkAddressHandlingMode::const_get(c) == value }
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #PaymentLinkAddressHandlingMode" if constantValues.empty?
|
|
33
|
+
value
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -32,8 +32,8 @@ module Wallee
|
|
|
32
32
|
# 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.
|
|
33
33
|
attr_accessor :available_until
|
|
34
34
|
|
|
35
|
-
#
|
|
36
|
-
attr_accessor :
|
|
35
|
+
# The billing address handling mode controls if the address is collected or not and how it is collected.
|
|
36
|
+
attr_accessor :billing_address_handling_mode
|
|
37
37
|
|
|
38
38
|
# 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'.
|
|
39
39
|
attr_accessor :currency
|
|
@@ -50,13 +50,13 @@ module Wallee
|
|
|
50
50
|
# 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.
|
|
51
51
|
attr_accessor :name
|
|
52
52
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
53
|
+
# The shipping address handling mode controls if the address is collected or not and how it is collected.
|
|
54
|
+
attr_accessor :shipping_address_handling_mode
|
|
55
55
|
|
|
56
56
|
#
|
|
57
57
|
attr_accessor :state
|
|
58
58
|
|
|
59
|
-
#
|
|
59
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
60
60
|
attr_accessor :external_id
|
|
61
61
|
|
|
62
62
|
# The protection mode determines if the payment link is protected against tampering and in what way.
|
|
@@ -69,13 +69,13 @@ module Wallee
|
|
|
69
69
|
:'applied_space_view' => :'appliedSpaceView',
|
|
70
70
|
:'available_from' => :'availableFrom',
|
|
71
71
|
:'available_until' => :'availableUntil',
|
|
72
|
-
:'
|
|
72
|
+
:'billing_address_handling_mode' => :'billingAddressHandlingMode',
|
|
73
73
|
:'currency' => :'currency',
|
|
74
74
|
:'language' => :'language',
|
|
75
75
|
:'line_items' => :'lineItems',
|
|
76
76
|
:'maximal_number_of_transactions' => :'maximalNumberOfTransactions',
|
|
77
77
|
:'name' => :'name',
|
|
78
|
-
:'
|
|
78
|
+
:'shipping_address_handling_mode' => :'shippingAddressHandlingMode',
|
|
79
79
|
:'state' => :'state',
|
|
80
80
|
:'external_id' => :'externalId',
|
|
81
81
|
:'protection_mode' => :'protectionMode'
|
|
@@ -89,13 +89,13 @@ module Wallee
|
|
|
89
89
|
:'applied_space_view' => :'Integer',
|
|
90
90
|
:'available_from' => :'DateTime',
|
|
91
91
|
:'available_until' => :'DateTime',
|
|
92
|
-
:'
|
|
92
|
+
:'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
|
93
93
|
:'currency' => :'String',
|
|
94
94
|
:'language' => :'String',
|
|
95
95
|
:'line_items' => :'Array<LineItemCreate>',
|
|
96
96
|
:'maximal_number_of_transactions' => :'Integer',
|
|
97
97
|
:'name' => :'String',
|
|
98
|
-
:'
|
|
98
|
+
:'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
|
|
99
99
|
:'state' => :'CreationEntityState',
|
|
100
100
|
:'external_id' => :'String',
|
|
101
101
|
:'protection_mode' => :'PaymentLinkProtectionMode'
|
|
@@ -128,8 +128,8 @@ module Wallee
|
|
|
128
128
|
self.available_until = attributes[:'availableUntil']
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
if attributes.has_key?(:'
|
|
132
|
-
self.
|
|
131
|
+
if attributes.has_key?(:'billingAddressHandlingMode')
|
|
132
|
+
self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
if attributes.has_key?(:'currency')
|
|
@@ -154,8 +154,8 @@ module Wallee
|
|
|
154
154
|
self.name = attributes[:'name']
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
if attributes.has_key?(:'
|
|
158
|
-
self.
|
|
157
|
+
if attributes.has_key?(:'shippingAddressHandlingMode')
|
|
158
|
+
self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if attributes.has_key?(:'state')
|
|
@@ -183,14 +183,6 @@ module Wallee
|
|
|
183
183
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
if @external_id.to_s.length > 100
|
|
187
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
if @external_id.to_s.length < 1
|
|
191
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
|
192
|
-
end
|
|
193
|
-
|
|
194
186
|
invalid_properties
|
|
195
187
|
end
|
|
196
188
|
|
|
@@ -199,8 +191,6 @@ module Wallee
|
|
|
199
191
|
def valid?
|
|
200
192
|
return false if !@name.nil? && @name.to_s.length > 100
|
|
201
193
|
return false if @external_id.nil?
|
|
202
|
-
return false if @external_id.to_s.length > 100
|
|
203
|
-
return false if @external_id.to_s.length < 1
|
|
204
194
|
true
|
|
205
195
|
end
|
|
206
196
|
|
|
@@ -214,24 +204,6 @@ module Wallee
|
|
|
214
204
|
@name = name
|
|
215
205
|
end
|
|
216
206
|
|
|
217
|
-
# Custom attribute writer method with validation
|
|
218
|
-
# @param [Object] external_id Value to be assigned
|
|
219
|
-
def external_id=(external_id)
|
|
220
|
-
if external_id.nil?
|
|
221
|
-
fail ArgumentError, 'external_id cannot be nil'
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
if external_id.to_s.length > 100
|
|
225
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
if external_id.to_s.length < 1
|
|
229
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
@external_id = external_id
|
|
233
|
-
end
|
|
234
|
-
|
|
235
207
|
# Checks equality by comparing each attribute.
|
|
236
208
|
# @param [Object] Object to be compared
|
|
237
209
|
def ==(o)
|
|
@@ -241,13 +213,13 @@ module Wallee
|
|
|
241
213
|
applied_space_view == o.applied_space_view &&
|
|
242
214
|
available_from == o.available_from &&
|
|
243
215
|
available_until == o.available_until &&
|
|
244
|
-
|
|
216
|
+
billing_address_handling_mode == o.billing_address_handling_mode &&
|
|
245
217
|
currency == o.currency &&
|
|
246
218
|
language == o.language &&
|
|
247
219
|
line_items == o.line_items &&
|
|
248
220
|
maximal_number_of_transactions == o.maximal_number_of_transactions &&
|
|
249
221
|
name == o.name &&
|
|
250
|
-
|
|
222
|
+
shipping_address_handling_mode == o.shipping_address_handling_mode &&
|
|
251
223
|
state == o.state &&
|
|
252
224
|
external_id == o.external_id &&
|
|
253
225
|
protection_mode == o.protection_mode
|
|
@@ -262,7 +234,7 @@ module Wallee
|
|
|
262
234
|
# Calculates hash code according to all attributes.
|
|
263
235
|
# @return [Fixnum] Hash code
|
|
264
236
|
def hash
|
|
265
|
-
[allowed_payment_method_configurations, applied_space_view, available_from, available_until,
|
|
237
|
+
[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, state, external_id, protection_mode].hash
|
|
266
238
|
end
|
|
267
239
|
|
|
268
240
|
# Builds the object from hash
|
|
@@ -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
|