wallee-ruby-sdk 2.2.3 → 2.2.4

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/lib/wallee-ruby-sdk.rb +17 -5
  5. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
  6. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
  7. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
  9. data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
  10. data/lib/wallee-ruby-sdk/api/token_service_api.rb +126 -0
  11. data/lib/wallee-ruby-sdk/api_client.rb +5 -3
  12. data/lib/wallee-ruby-sdk/configuration.rb +2 -2
  13. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
  14. data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
  15. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
  16. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
  17. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
  18. data/lib/wallee-ruby-sdk/models/account.rb +31 -1
  19. data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
  20. data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
  21. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
  22. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
  23. data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
  24. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  25. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
  26. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  27. data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
  28. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  29. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +51 -7
  30. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
  31. data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  32. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
  33. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
  34. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
  35. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
  36. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
  37. data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
  38. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  39. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
  40. data/lib/wallee-ruby-sdk/models/space.rb +31 -1
  41. data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
  42. data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
  43. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  44. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +48 -0
  45. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +48 -0
  46. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
  47. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
  48. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
  49. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  50. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  51. data/lib/wallee-ruby-sdk/models/transaction.rb +69 -1
  52. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
  53. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  54. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
  55. data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
  56. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
  57. data/lib/wallee-ruby-sdk/models/webhook_url.rb +24 -0
  58. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
  59. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
  60. data/lib/wallee-ruby-sdk/version.rb +1 -1
  61. data/wallee-ruby-sdk.gemspec +3 -2
  62. metadata +45 -14
@@ -53,6 +53,9 @@ module Wallee
53
53
  #
54
54
  attr_accessor :state
55
55
 
56
+ # Strategy that is used for tax calculation in fees.
57
+ attr_accessor :tax_calculation
58
+
56
59
  # Attribute mapping from ruby-style variable name to JSON key.
57
60
  def self.attribute_map
58
61
  {
@@ -66,7 +69,8 @@ module Wallee
66
69
  :'name' => :'name',
67
70
  :'number_of_notice_periods' => :'numberOfNoticePeriods',
68
71
  :'product' => :'product',
69
- :'state' => :'state'
72
+ :'state' => :'state',
73
+ :'tax_calculation' => :'taxCalculation'
70
74
  }
71
75
  end
72
76
 
@@ -83,7 +87,8 @@ module Wallee
83
87
  :'name' => :'DatabaseTranslatedStringCreate',
84
88
  :'number_of_notice_periods' => :'Integer',
85
89
  :'product' => :'Integer',
86
- :'state' => :'SubscriptionProductVersionState'
90
+ :'state' => :'SubscriptionProductVersionState',
91
+ :'tax_calculation' => :'TaxCalculation'
87
92
  }
88
93
  end
89
94
 
@@ -140,6 +145,10 @@ module Wallee
140
145
  if attributes.has_key?(:'state')
141
146
  self.state = attributes[:'state']
142
147
  end
148
+
149
+ if attributes.has_key?(:'taxCalculation')
150
+ self.tax_calculation = attributes[:'taxCalculation']
151
+ end
143
152
  end
144
153
 
145
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -180,7 +189,8 @@ module Wallee
180
189
  name == o.name &&
181
190
  number_of_notice_periods == o.number_of_notice_periods &&
182
191
  product == o.product &&
183
- state == o.state
192
+ state == o.state &&
193
+ tax_calculation == o.tax_calculation
184
194
  end
185
195
 
186
196
  # @see the `==` method
@@ -192,7 +202,7 @@ module Wallee
192
202
  # Calculates hash code according to all attributes.
193
203
  # @return [Fixnum] Hash code
194
204
  def hash
195
- [id, version, billing_cycle, comment, default_currency, enabled_currencies, minimal_number_of_periods, name, number_of_notice_periods, product, state].hash
205
+ [id, version, billing_cycle, comment, default_currency, enabled_currencies, minimal_number_of_periods, name, number_of_notice_periods, product, state, tax_calculation].hash
196
206
  end
197
207
 
198
208
  # Builds the object from hash
@@ -0,0 +1,206 @@
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
+ # The subscription update request allows to change a subscription properites.
22
+ class SubscriptionUpdateRequest
23
+ #
24
+ attr_accessor :description
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'description' => :'description'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'description' => :'String'
37
+ }
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
+
48
+ if attributes.has_key?(:'description')
49
+ self.description = attributes[:'description']
50
+ end
51
+ end
52
+
53
+ # Show invalid properties with the reasons. Usually used together with valid?
54
+ # @return Array for valid properties with the reasons
55
+ def list_invalid_properties
56
+ invalid_properties = Array.new
57
+ if !@description.nil? && @description.to_s.length > 200
58
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 200.')
59
+ end
60
+
61
+ invalid_properties
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ def valid?
67
+ return false if !@description.nil? && @description.to_s.length > 200
68
+ true
69
+ end
70
+
71
+ # Custom attribute writer method with validation
72
+ # @param [Object] description Value to be assigned
73
+ def description=(description)
74
+ if !description.nil? && description.to_s.length > 200
75
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 200.'
76
+ end
77
+
78
+ @description = description
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ description == o.description
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Fixnum] Hash code
97
+ def hash
98
+ [description].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.swagger_types.each_pair do |key, type|
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the attribute
109
+ # is documented as an array but the input is not
110
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
112
+ end
113
+ elsif !attributes[self.class.attribute_map[key]].nil?
114
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :BOOLEAN
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ temp_model = Wallee.const_get(type).new
159
+ temp_model.build_from_hash(value)
160
+ end
161
+ end
162
+
163
+ # Returns the string representation of the object
164
+ # @return [String] String presentation of the object
165
+ def to_s
166
+ to_hash.to_s
167
+ end
168
+
169
+ # to_body is an alias to to_hash (backward compatibility)
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_body
172
+ to_hash
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ next if value.nil?
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ hash
185
+ end
186
+
187
+ # Outputs non-array value in the form of hash
188
+ # For object, use to_hash. Otherwise, just return the value
189
+ # @param [Object] value Any valid value
190
+ # @return [Hash] Returns the value in the form of hash
191
+ def _to_hash(value)
192
+ if value.is_a?(Array)
193
+ value.compact.map{ |v| _to_hash(v) }
194
+ elsif value.is_a?(Hash)
195
+ {}.tap do |hash|
196
+ value.each { |k, v| hash[k] = _to_hash(v) }
197
+ end
198
+ elsif value.respond_to? :to_hash
199
+ value.to_hash
200
+ else
201
+ value
202
+ end
203
+ end
204
+
205
+ end
206
+ end
@@ -0,0 +1,35 @@
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 TaxCalculation
22
+
23
+ INCLUDED = 'TAX_INCLUDED'.freeze
24
+ NOT_INCLUDED = 'TAX_NOT_INCLUDED'.freeze
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ constantValues = TaxCalculation.constants.select { |c| TaxCalculation::const_get(c) == value }
31
+ raise "Invalid ENUM value #{value} for class #TaxCalculation" if constantValues.empty?
32
+ value
33
+ end
34
+ end
35
+ end
@@ -62,6 +62,9 @@ module Wallee
62
62
  #
63
63
  attr_accessor :completed_on
64
64
 
65
+ # The completion behavior controls when the transaction is completed.
66
+ attr_accessor :completion_behavior
67
+
65
68
  #
66
69
  attr_accessor :completion_timeout_on
67
70
 
@@ -176,6 +179,9 @@ module Wallee
176
179
  # The user will be redirected to success URL when the transaction could be authorized or completed. In case no success URL is specified a default success page will be displayed.
177
180
  attr_accessor :success_url
178
181
 
182
+ # The terminal on which the payment was processed.
183
+ attr_accessor :terminal
184
+
179
185
  # The time zone defines in which time zone the customer is located in. The time zone may affects how dates are formatted when interacting with the customer.
180
186
  attr_accessor :time_zone
181
187
 
@@ -220,6 +226,7 @@ module Wallee
220
226
  :'charge_retry_enabled' => :'chargeRetryEnabled',
221
227
  :'completed_amount' => :'completedAmount',
222
228
  :'completed_on' => :'completedOn',
229
+ :'completion_behavior' => :'completionBehavior',
223
230
  :'completion_timeout_on' => :'completionTimeoutOn',
224
231
  :'confirmed_by' => :'confirmedBy',
225
232
  :'confirmed_on' => :'confirmedOn',
@@ -258,6 +265,7 @@ module Wallee
258
265
  :'space_view_id' => :'spaceViewId',
259
266
  :'state' => :'state',
260
267
  :'success_url' => :'successUrl',
268
+ :'terminal' => :'terminal',
261
269
  :'time_zone' => :'timeZone',
262
270
  :'token' => :'token',
263
271
  :'tokenization_mode' => :'tokenizationMode',
@@ -287,6 +295,7 @@ module Wallee
287
295
  :'charge_retry_enabled' => :'BOOLEAN',
288
296
  :'completed_amount' => :'Float',
289
297
  :'completed_on' => :'DateTime',
298
+ :'completion_behavior' => :'TransactionCompletionBehavior',
290
299
  :'completion_timeout_on' => :'DateTime',
291
300
  :'confirmed_by' => :'Integer',
292
301
  :'confirmed_on' => :'DateTime',
@@ -325,6 +334,7 @@ module Wallee
325
334
  :'space_view_id' => :'Integer',
326
335
  :'state' => :'TransactionState',
327
336
  :'success_url' => :'String',
337
+ :'terminal' => :'PaymentTerminal',
328
338
  :'time_zone' => :'String',
329
339
  :'token' => :'Token',
330
340
  :'tokenization_mode' => :'TokenizationMode',
@@ -405,6 +415,10 @@ module Wallee
405
415
  self.completed_on = attributes[:'completedOn']
406
416
  end
407
417
 
418
+ if attributes.has_key?(:'completionBehavior')
419
+ self.completion_behavior = attributes[:'completionBehavior']
420
+ end
421
+
408
422
  if attributes.has_key?(:'completionTimeoutOn')
409
423
  self.completion_timeout_on = attributes[:'completionTimeoutOn']
410
424
  end
@@ -561,6 +575,10 @@ module Wallee
561
575
  self.success_url = attributes[:'successUrl']
562
576
  end
563
577
 
578
+ if attributes.has_key?(:'terminal')
579
+ self.terminal = attributes[:'terminal']
580
+ end
581
+
564
582
  if attributes.has_key?(:'timeZone')
565
583
  self.time_zone = attributes[:'timeZone']
566
584
  end
@@ -614,6 +632,14 @@ module Wallee
614
632
  invalid_properties.push('invalid value for "device_session_identifier", the character length must be great than or equal to 10.')
615
633
  end
616
634
 
635
+ if !@failed_url.nil? && @failed_url.to_s.length > 1000
636
+ invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 1000.')
637
+ end
638
+
639
+ if !@failed_url.nil? && @failed_url.to_s.length < 9
640
+ invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
641
+ end
642
+
617
643
  if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
618
644
  invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
619
645
  end
@@ -626,6 +652,14 @@ module Wallee
626
652
  invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
627
653
  end
628
654
 
655
+ if !@success_url.nil? && @success_url.to_s.length > 1000
656
+ invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 1000.')
657
+ end
658
+
659
+ if !@success_url.nil? && @success_url.to_s.length < 9
660
+ invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
661
+ end
662
+
629
663
  invalid_properties
630
664
  end
631
665
 
@@ -635,9 +669,13 @@ module Wallee
635
669
  return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
636
670
  return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
637
671
  return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
672
+ return false if !@failed_url.nil? && @failed_url.to_s.length > 1000
673
+ return false if !@failed_url.nil? && @failed_url.to_s.length < 9
638
674
  return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
639
675
  return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
640
676
  return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
677
+ return false if !@success_url.nil? && @success_url.to_s.length > 1000
678
+ return false if !@success_url.nil? && @success_url.to_s.length < 9
641
679
  true
642
680
  end
643
681
 
@@ -665,6 +703,20 @@ module Wallee
665
703
  @device_session_identifier = device_session_identifier
666
704
  end
667
705
 
706
+ # Custom attribute writer method with validation
707
+ # @param [Object] failed_url Value to be assigned
708
+ def failed_url=(failed_url)
709
+ if !failed_url.nil? && failed_url.to_s.length > 1000
710
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 1000.'
711
+ end
712
+
713
+ if !failed_url.nil? && failed_url.to_s.length < 9
714
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
715
+ end
716
+
717
+ @failed_url = failed_url
718
+ end
719
+
668
720
  # Custom attribute writer method with validation
669
721
  # @param [Object] invoice_merchant_reference Value to be assigned
670
722
  def invoice_merchant_reference=(invoice_merchant_reference)
@@ -695,6 +747,20 @@ module Wallee
695
747
  @shipping_method = shipping_method
696
748
  end
697
749
 
750
+ # Custom attribute writer method with validation
751
+ # @param [Object] success_url Value to be assigned
752
+ def success_url=(success_url)
753
+ if !success_url.nil? && success_url.to_s.length > 1000
754
+ fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 1000.'
755
+ end
756
+
757
+ if !success_url.nil? && success_url.to_s.length < 9
758
+ fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
759
+ end
760
+
761
+ @success_url = success_url
762
+ end
763
+
698
764
  # Checks equality by comparing each attribute.
699
765
  # @param [Object] Object to be compared
700
766
  def ==(o)
@@ -714,6 +780,7 @@ module Wallee
714
780
  charge_retry_enabled == o.charge_retry_enabled &&
715
781
  completed_amount == o.completed_amount &&
716
782
  completed_on == o.completed_on &&
783
+ completion_behavior == o.completion_behavior &&
717
784
  completion_timeout_on == o.completion_timeout_on &&
718
785
  confirmed_by == o.confirmed_by &&
719
786
  confirmed_on == o.confirmed_on &&
@@ -752,6 +819,7 @@ module Wallee
752
819
  space_view_id == o.space_view_id &&
753
820
  state == o.state &&
754
821
  success_url == o.success_url &&
822
+ terminal == o.terminal &&
755
823
  time_zone == o.time_zone &&
756
824
  token == o.token &&
757
825
  tokenization_mode == o.tokenization_mode &&
@@ -772,7 +840,7 @@ module Wallee
772
840
  # Calculates hash code according to all attributes.
773
841
  # @return [Fixnum] Hash code
774
842
  def hash
775
- [accept_header, accept_language_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorization_environment, authorization_sales_channel, authorization_timeout_on, authorized_on, auto_confirmation_enabled, billing_address, charge_retry_enabled, completed_amount, completed_on, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, delivery_decision_made_on, device_session_identifier, emails_disabled, end_of_life, environment, environment_selection_strategy, failed_on, failed_url, failure_reason, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, parent, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, time_zone, token, tokenization_mode, total_applied_fees, total_settled_amount, user_agent_header, user_failure_message, user_interface_type, version].hash
843
+ [accept_header, accept_language_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorization_environment, authorization_sales_channel, authorization_timeout_on, authorized_on, auto_confirmation_enabled, billing_address, charge_retry_enabled, completed_amount, completed_on, completion_behavior, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, delivery_decision_made_on, device_session_identifier, emails_disabled, end_of_life, environment, environment_selection_strategy, failed_on, failed_url, failure_reason, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, parent, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, terminal, time_zone, token, tokenization_mode, total_applied_fees, total_settled_amount, user_agent_header, user_failure_message, user_interface_type, version].hash
776
844
  end
777
845
 
778
846
  # Builds the object from hash