wallee-ruby-sdk 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -28,6 +28,9 @@ module Wallee
28
28
  #
29
29
  attr_accessor :billing_address
30
30
 
31
+ # The completion behavior controls when the transaction is completed.
32
+ attr_accessor :completion_behavior
33
+
31
34
  #
32
35
  attr_accessor :currency
33
36
 
@@ -79,6 +82,7 @@ module Wallee
79
82
  :'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
80
83
  :'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
81
84
  :'billing_address' => :'billingAddress',
85
+ :'completion_behavior' => :'completionBehavior',
82
86
  :'currency' => :'currency',
83
87
  :'customer_email_address' => :'customerEmailAddress',
84
88
  :'customer_id' => :'customerId',
@@ -103,6 +107,7 @@ module Wallee
103
107
  :'allowed_payment_method_brands' => :'Array<PaymentMethodBrand>',
104
108
  :'allowed_payment_method_configurations' => :'Array<Integer>',
105
109
  :'billing_address' => :'AddressCreate',
110
+ :'completion_behavior' => :'TransactionCompletionBehavior',
106
111
  :'currency' => :'String',
107
112
  :'customer_email_address' => :'String',
108
113
  :'customer_id' => :'String',
@@ -145,6 +150,10 @@ module Wallee
145
150
  self.billing_address = attributes[:'billingAddress']
146
151
  end
147
152
 
153
+ if attributes.has_key?(:'completionBehavior')
154
+ self.completion_behavior = attributes[:'completionBehavior']
155
+ end
156
+
148
157
  if attributes.has_key?(:'currency')
149
158
  self.currency = attributes[:'currency']
150
159
  end
@@ -218,6 +227,14 @@ module Wallee
218
227
  invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 254.')
219
228
  end
220
229
 
230
+ if !@failed_url.nil? && @failed_url.to_s.length > 1000
231
+ invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 1000.')
232
+ end
233
+
234
+ if !@failed_url.nil? && @failed_url.to_s.length < 9
235
+ invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
236
+ end
237
+
221
238
  if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
222
239
  invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
223
240
  end
@@ -230,6 +247,14 @@ module Wallee
230
247
  invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
231
248
  end
232
249
 
250
+ if !@success_url.nil? && @success_url.to_s.length > 1000
251
+ invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 1000.')
252
+ end
253
+
254
+ if !@success_url.nil? && @success_url.to_s.length < 9
255
+ invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
256
+ end
257
+
233
258
  invalid_properties
234
259
  end
235
260
 
@@ -237,9 +262,13 @@ module Wallee
237
262
  # @return true if the model is valid
238
263
  def valid?
239
264
  return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
265
+ return false if !@failed_url.nil? && @failed_url.to_s.length > 1000
266
+ return false if !@failed_url.nil? && @failed_url.to_s.length < 9
240
267
  return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
241
268
  return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
242
269
  return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
270
+ return false if !@success_url.nil? && @success_url.to_s.length > 1000
271
+ return false if !@success_url.nil? && @success_url.to_s.length < 9
243
272
  true
244
273
  end
245
274
 
@@ -253,6 +282,20 @@ module Wallee
253
282
  @customer_email_address = customer_email_address
254
283
  end
255
284
 
285
+ # Custom attribute writer method with validation
286
+ # @param [Object] failed_url Value to be assigned
287
+ def failed_url=(failed_url)
288
+ if !failed_url.nil? && failed_url.to_s.length > 1000
289
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 1000.'
290
+ end
291
+
292
+ if !failed_url.nil? && failed_url.to_s.length < 9
293
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
294
+ end
295
+
296
+ @failed_url = failed_url
297
+ end
298
+
256
299
  # Custom attribute writer method with validation
257
300
  # @param [Object] invoice_merchant_reference Value to be assigned
258
301
  def invoice_merchant_reference=(invoice_merchant_reference)
@@ -283,6 +326,20 @@ module Wallee
283
326
  @shipping_method = shipping_method
284
327
  end
285
328
 
329
+ # Custom attribute writer method with validation
330
+ # @param [Object] success_url Value to be assigned
331
+ def success_url=(success_url)
332
+ if !success_url.nil? && success_url.to_s.length > 1000
333
+ fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 1000.'
334
+ end
335
+
336
+ if !success_url.nil? && success_url.to_s.length < 9
337
+ fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
338
+ end
339
+
340
+ @success_url = success_url
341
+ end
342
+
286
343
  # Checks equality by comparing each attribute.
287
344
  # @param [Object] Object to be compared
288
345
  def ==(o)
@@ -291,6 +348,7 @@ module Wallee
291
348
  allowed_payment_method_brands == o.allowed_payment_method_brands &&
292
349
  allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
293
350
  billing_address == o.billing_address &&
351
+ completion_behavior == o.completion_behavior &&
294
352
  currency == o.currency &&
295
353
  customer_email_address == o.customer_email_address &&
296
354
  customer_id == o.customer_id &&
@@ -317,7 +375,7 @@ module Wallee
317
375
  # Calculates hash code according to all attributes.
318
376
  # @return [Fixnum] Hash code
319
377
  def hash
320
- [allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, tokenization_mode].hash
378
+ [allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, completion_behavior, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, tokenization_mode].hash
321
379
  end
322
380
 
323
381
  # Builds the object from hash
@@ -75,6 +75,14 @@ module Wallee
75
75
  invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
76
76
  end
77
77
 
78
+ if !@url.nil? && @url.to_s.length > 500
79
+ invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 500.')
80
+ end
81
+
82
+ if !@url.nil? && @url.to_s.length < 9
83
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 9.')
84
+ end
85
+
78
86
  invalid_properties
79
87
  end
80
88
 
@@ -82,6 +90,8 @@ module Wallee
82
90
  # @return true if the model is valid
83
91
  def valid?
84
92
  return false if !@name.nil? && @name.to_s.length > 50
93
+ return false if !@url.nil? && @url.to_s.length > 500
94
+ return false if !@url.nil? && @url.to_s.length < 9
85
95
  true
86
96
  end
87
97
 
@@ -95,6 +105,20 @@ module Wallee
95
105
  @name = name
96
106
  end
97
107
 
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] url Value to be assigned
110
+ def url=(url)
111
+ if !url.nil? && url.to_s.length > 500
112
+ fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 500.'
113
+ end
114
+
115
+ if !url.nil? && url.to_s.length < 9
116
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 9.'
117
+ end
118
+
119
+ @url = url
120
+ end
121
+
98
122
  # Checks equality by comparing each attribute.
99
123
  # @param [Object] Object to be compared
100
124
  def ==(o)
@@ -26,6 +26,12 @@ module Wallee
26
26
  # This property is true when all accounts in the hierarchy are active or restricted active.
27
27
  attr_accessor :active_or_restricted_active
28
28
 
29
+ # The ID of the user who created this entity.
30
+ attr_accessor :created_by
31
+
32
+ # The date and time when this entity was created.
33
+ attr_accessor :created_on
34
+
29
35
  # The ID of a user that deleted this entity.
30
36
  attr_accessor :deleted_by
31
37
 
@@ -35,6 +41,9 @@ module Wallee
35
41
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
36
42
  attr_accessor :id
37
43
 
44
+ #
45
+ attr_accessor :last_modified_date
46
+
38
47
  # The name of the account identifies the account within the administrative interface.
39
48
  attr_accessor :name
40
49
 
@@ -67,9 +76,12 @@ module Wallee
67
76
  {
68
77
  :'active' => :'active',
69
78
  :'active_or_restricted_active' => :'activeOrRestrictedActive',
79
+ :'created_by' => :'createdBy',
80
+ :'created_on' => :'createdOn',
70
81
  :'deleted_by' => :'deletedBy',
71
82
  :'deleted_on' => :'deletedOn',
72
83
  :'id' => :'id',
84
+ :'last_modified_date' => :'lastModifiedDate',
73
85
  :'name' => :'name',
74
86
  :'parent_account' => :'parentAccount',
75
87
  :'planned_purge_date' => :'plannedPurgeDate',
@@ -87,9 +99,12 @@ module Wallee
87
99
  {
88
100
  :'active' => :'BOOLEAN',
89
101
  :'active_or_restricted_active' => :'BOOLEAN',
102
+ :'created_by' => :'Integer',
103
+ :'created_on' => :'DateTime',
90
104
  :'deleted_by' => :'Integer',
91
105
  :'deleted_on' => :'DateTime',
92
106
  :'id' => :'Integer',
107
+ :'last_modified_date' => :'DateTime',
93
108
  :'name' => :'String',
94
109
  :'parent_account' => :'Account',
95
110
  :'planned_purge_date' => :'DateTime',
@@ -118,6 +133,14 @@ module Wallee
118
133
  self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
119
134
  end
120
135
 
136
+ if attributes.has_key?(:'createdBy')
137
+ self.created_by = attributes[:'createdBy']
138
+ end
139
+
140
+ if attributes.has_key?(:'createdOn')
141
+ self.created_on = attributes[:'createdOn']
142
+ end
143
+
121
144
  if attributes.has_key?(:'deletedBy')
122
145
  self.deleted_by = attributes[:'deletedBy']
123
146
  end
@@ -130,6 +153,10 @@ module Wallee
130
153
  self.id = attributes[:'id']
131
154
  end
132
155
 
156
+ if attributes.has_key?(:'lastModifiedDate')
157
+ self.last_modified_date = attributes[:'lastModifiedDate']
158
+ end
159
+
133
160
  if attributes.has_key?(:'name')
134
161
  self.name = attributes[:'name']
135
162
  end
@@ -211,9 +238,12 @@ module Wallee
211
238
  self.class == o.class &&
212
239
  active == o.active &&
213
240
  active_or_restricted_active == o.active_or_restricted_active &&
241
+ created_by == o.created_by &&
242
+ created_on == o.created_on &&
214
243
  deleted_by == o.deleted_by &&
215
244
  deleted_on == o.deleted_on &&
216
245
  id == o.id &&
246
+ last_modified_date == o.last_modified_date &&
217
247
  name == o.name &&
218
248
  parent_account == o.parent_account &&
219
249
  planned_purge_date == o.planned_purge_date &&
@@ -234,7 +264,7 @@ module Wallee
234
264
  # Calculates hash code according to all attributes.
235
265
  # @return [Fixnum] Hash code
236
266
  def hash
237
- [active, active_or_restricted_active, deleted_by, deleted_on, id, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
267
+ [active, active_or_restricted_active, created_by, created_on, deleted_by, deleted_on, id, last_modified_date, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
238
268
  end
239
269
 
240
270
  # Builds the object from hash
@@ -20,6 +20,9 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class AccountCreate
23
+ #
24
+ attr_accessor :last_modified_date
25
+
23
26
  # The name of the account identifies the account within the administrative interface.
24
27
  attr_accessor :name
25
28
 
@@ -35,6 +38,7 @@ module Wallee
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
41
+ :'last_modified_date' => :'lastModifiedDate',
38
42
  :'name' => :'name',
39
43
  :'subaccount_limit' => :'subaccountLimit',
40
44
  :'parent_account' => :'parentAccount',
@@ -45,6 +49,7 @@ module Wallee
45
49
  # Attribute type mapping.
46
50
  def self.swagger_types
47
51
  {
52
+ :'last_modified_date' => :'DateTime',
48
53
  :'name' => :'String',
49
54
  :'subaccount_limit' => :'Integer',
50
55
  :'parent_account' => :'Integer',
@@ -60,6 +65,10 @@ module Wallee
60
65
  # convert string to symbol for hash key
61
66
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
67
 
68
+ if attributes.has_key?(:'lastModifiedDate')
69
+ self.last_modified_date = attributes[:'lastModifiedDate']
70
+ end
71
+
63
72
  if attributes.has_key?(:'name')
64
73
  self.name = attributes[:'name']
65
74
  end
@@ -124,6 +133,7 @@ module Wallee
124
133
  def ==(o)
125
134
  return true if self.equal?(o)
126
135
  self.class == o.class &&
136
+ last_modified_date == o.last_modified_date &&
127
137
  name == o.name &&
128
138
  subaccount_limit == o.subaccount_limit &&
129
139
  parent_account == o.parent_account &&
@@ -139,7 +149,7 @@ module Wallee
139
149
  # Calculates hash code according to all attributes.
140
150
  # @return [Fixnum] Hash code
141
151
  def hash
142
- [name, subaccount_limit, parent_account, scope].hash
152
+ [last_modified_date, name, subaccount_limit, parent_account, scope].hash
143
153
  end
144
154
 
145
155
  # Builds the object from hash
@@ -20,6 +20,9 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class AccountUpdate
23
+ #
24
+ attr_accessor :last_modified_date
25
+
23
26
  # The name of the account identifies the account within the administrative interface.
24
27
  attr_accessor :name
25
28
 
@@ -35,6 +38,7 @@ module Wallee
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
41
+ :'last_modified_date' => :'lastModifiedDate',
38
42
  :'name' => :'name',
39
43
  :'subaccount_limit' => :'subaccountLimit',
40
44
  :'id' => :'id',
@@ -45,6 +49,7 @@ module Wallee
45
49
  # Attribute type mapping.
46
50
  def self.swagger_types
47
51
  {
52
+ :'last_modified_date' => :'DateTime',
48
53
  :'name' => :'String',
49
54
  :'subaccount_limit' => :'Integer',
50
55
  :'id' => :'Integer',
@@ -60,6 +65,10 @@ module Wallee
60
65
  # convert string to symbol for hash key
61
66
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
67
 
68
+ if attributes.has_key?(:'lastModifiedDate')
69
+ self.last_modified_date = attributes[:'lastModifiedDate']
70
+ end
71
+
63
72
  if attributes.has_key?(:'name')
64
73
  self.name = attributes[:'name']
65
74
  end
@@ -129,6 +138,7 @@ module Wallee
129
138
  def ==(o)
130
139
  return true if self.equal?(o)
131
140
  self.class == o.class &&
141
+ last_modified_date == o.last_modified_date &&
132
142
  name == o.name &&
133
143
  subaccount_limit == o.subaccount_limit &&
134
144
  id == o.id &&
@@ -144,7 +154,7 @@ module Wallee
144
154
  # Calculates hash code according to all attributes.
145
155
  # @return [Fixnum] Hash code
146
156
  def hash
147
- [name, subaccount_limit, id, version].hash
157
+ [last_modified_date, name, subaccount_limit, id, version].hash
148
158
  end
149
159
 
150
160
  # Builds the object from hash
@@ -32,6 +32,9 @@ module Wallee
32
32
  #
33
33
  attr_accessor :charge
34
34
 
35
+ #
36
+ attr_accessor :completion_behavior
37
+
35
38
  #
36
39
  attr_accessor :connector_configuration
37
40
 
@@ -105,6 +108,7 @@ module Wallee
105
108
  :'linked_space_id' => :'linkedSpaceId',
106
109
  :'linked_transaction' => :'linkedTransaction',
107
110
  :'charge' => :'charge',
111
+ :'completion_behavior' => :'completionBehavior',
108
112
  :'connector_configuration' => :'connectorConfiguration',
109
113
  :'created_on' => :'createdOn',
110
114
  :'environment' => :'environment',
@@ -137,6 +141,7 @@ module Wallee
137
141
  :'linked_space_id' => :'Integer',
138
142
  :'linked_transaction' => :'Integer',
139
143
  :'charge' => :'Charge',
144
+ :'completion_behavior' => :'TransactionCompletionBehavior',
140
145
  :'connector_configuration' => :'PaymentConnectorConfiguration',
141
146
  :'created_on' => :'DateTime',
142
147
  :'environment' => :'ChargeAttemptEnvironment',
@@ -186,6 +191,10 @@ module Wallee
186
191
  self.charge = attributes[:'charge']
187
192
  end
188
193
 
194
+ if attributes.has_key?(:'completionBehavior')
195
+ self.completion_behavior = attributes[:'completionBehavior']
196
+ end
197
+
189
198
  if attributes.has_key?(:'connectorConfiguration')
190
199
  self.connector_configuration = attributes[:'connectorConfiguration']
191
200
  end
@@ -314,6 +323,7 @@ module Wallee
314
323
  linked_space_id == o.linked_space_id &&
315
324
  linked_transaction == o.linked_transaction &&
316
325
  charge == o.charge &&
326
+ completion_behavior == o.completion_behavior &&
317
327
  connector_configuration == o.connector_configuration &&
318
328
  created_on == o.created_on &&
319
329
  environment == o.environment &&
@@ -347,7 +357,7 @@ module Wallee
347
357
  # Calculates hash code according to all attributes.
348
358
  # @return [Fixnum] Hash code
349
359
  def hash
350
- [id, linked_space_id, linked_transaction, charge, connector_configuration, created_on, environment, failed_on, failure_reason, initializing_token_version, invocation, labels, language, next_update_on, planned_purge_date, redirection_url, sales_channel, space_view_id, state, succeeded_on, terminal, time_zone, timeout_on, token_version, user_failure_message, version].hash
360
+ [id, linked_space_id, linked_transaction, charge, completion_behavior, connector_configuration, created_on, environment, failed_on, failure_reason, initializing_token_version, invocation, labels, language, next_update_on, planned_purge_date, redirection_url, sales_channel, space_view_id, state, succeeded_on, terminal, time_zone, timeout_on, token_version, user_failure_message, version].hash
351
361
  end
352
362
 
353
363
  # Builds the object from hash
@@ -29,6 +29,9 @@ module Wallee
29
29
  #
30
30
  attr_accessor :connector
31
31
 
32
+ # Defines the sales channels the connector configuration is enabled for. In case the set is empty, the connector configuration is enabled for all sales channels.
33
+ attr_accessor :enabled_sales_channels
34
+
32
35
  # The connector configuration is only enabled for the selected space views. In case the set is empty the connector configuration is enabled for all space views.
33
36
  attr_accessor :enabled_space_views
34
37
 
@@ -65,6 +68,7 @@ module Wallee
65
68
  :'applicable_for_transaction_processing' => :'applicableForTransactionProcessing',
66
69
  :'conditions' => :'conditions',
67
70
  :'connector' => :'connector',
71
+ :'enabled_sales_channels' => :'enabledSalesChannels',
68
72
  :'enabled_space_views' => :'enabledSpaceViews',
69
73
  :'id' => :'id',
70
74
  :'linked_space_id' => :'linkedSpaceId',
@@ -84,6 +88,7 @@ module Wallee
84
88
  :'applicable_for_transaction_processing' => :'BOOLEAN',
85
89
  :'conditions' => :'Array<Integer>',
86
90
  :'connector' => :'Integer',
91
+ :'enabled_sales_channels' => :'Array<SalesChannel>',
87
92
  :'enabled_space_views' => :'Array<Integer>',
88
93
  :'id' => :'Integer',
89
94
  :'linked_space_id' => :'Integer',
@@ -119,6 +124,12 @@ module Wallee
119
124
  self.connector = attributes[:'connector']
120
125
  end
121
126
 
127
+ if attributes.has_key?(:'enabledSalesChannels')
128
+ if (value = attributes[:'enabledSalesChannels']).is_a?(Array)
129
+ self.enabled_sales_channels = value
130
+ end
131
+ end
132
+
122
133
  if attributes.has_key?(:'enabledSpaceViews')
123
134
  if (value = attributes[:'enabledSpaceViews']).is_a?(Array)
124
135
  self.enabled_space_views = value
@@ -198,6 +209,7 @@ module Wallee
198
209
  applicable_for_transaction_processing == o.applicable_for_transaction_processing &&
199
210
  conditions == o.conditions &&
200
211
  connector == o.connector &&
212
+ enabled_sales_channels == o.enabled_sales_channels &&
201
213
  enabled_space_views == o.enabled_space_views &&
202
214
  id == o.id &&
203
215
  linked_space_id == o.linked_space_id &&
@@ -219,7 +231,7 @@ module Wallee
219
231
  # Calculates hash code according to all attributes.
220
232
  # @return [Fixnum] Hash code
221
233
  def hash
222
- [applicable_for_transaction_processing, conditions, connector, enabled_space_views, id, linked_space_id, name, payment_method_configuration, planned_purge_date, priority, processor_configuration, state, version].hash
234
+ [applicable_for_transaction_processing, conditions, connector, enabled_sales_channels, enabled_space_views, id, linked_space_id, name, payment_method_configuration, planned_purge_date, priority, processor_configuration, state, version].hash
223
235
  end
224
236
 
225
237
  # Builds the object from hash