wallee-ruby-sdk 2.2.3 → 3.0.5

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 (144) 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 +63 -8
  5. data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
  6. data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
  7. data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
  9. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  10. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  11. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
  12. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  13. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  14. data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
  15. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
  16. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  17. data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
  18. data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
  19. data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
  20. data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
  21. data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
  22. data/lib/wallee-ruby-sdk/api_client.rb +7 -4
  23. data/lib/wallee-ruby-sdk/configuration.rb +2 -2
  24. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
  25. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
  26. data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
  27. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
  28. data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
  29. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
  30. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
  31. data/lib/wallee-ruby-sdk/models/account.rb +31 -1
  32. data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
  33. data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
  34. data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
  35. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
  36. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  37. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  38. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  39. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  40. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  41. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  42. data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
  43. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  44. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  45. data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
  46. data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
  47. data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
  48. data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
  49. data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
  50. data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
  51. data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
  52. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
  53. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  54. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  55. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
  56. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
  57. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  58. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  59. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  60. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  61. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
  62. data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
  63. data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
  64. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
  65. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  66. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
  67. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
  68. data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
  69. data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
  70. data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
  71. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
  72. data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
  73. data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
  74. data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
  75. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  76. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  77. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
  78. data/lib/wallee-ruby-sdk/models/role.rb +1 -1
  79. data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
  80. data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
  81. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  82. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
  83. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  84. data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
  85. data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
  86. data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
  87. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  88. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
  89. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
  90. data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
  91. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
  92. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
  93. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
  94. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
  95. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
  96. data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
  97. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  98. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
  99. data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
  100. data/lib/wallee-ruby-sdk/models/space.rb +31 -1
  101. data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
  102. data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
  103. data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
  104. data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
  105. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  106. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
  107. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
  108. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
  109. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
  110. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
  111. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
  112. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
  113. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
  114. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
  115. data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
  116. data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
  117. data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
  118. data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
  119. data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
  120. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
  121. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
  122. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  123. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  124. data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
  125. data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
  126. data/lib/wallee-ruby-sdk/models/token.rb +1 -25
  127. data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
  128. data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
  129. data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
  130. data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
  131. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
  132. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  133. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
  134. data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
  135. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
  136. data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
  137. data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
  138. data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
  139. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
  140. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
  141. data/lib/wallee-ruby-sdk/version.rb +1 -1
  142. data/test/condition_type_service_test.rb +22 -0
  143. data/wallee-ruby-sdk.gemspec +3 -2
  144. metadata +93 -17
@@ -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
 
@@ -131,6 +134,9 @@ module Wallee
131
134
  #
132
135
  attr_accessor :invoice_merchant_reference
133
136
 
137
+ #
138
+ attr_accessor :java_enabled
139
+
134
140
  #
135
141
  attr_accessor :language
136
142
 
@@ -161,6 +167,15 @@ module Wallee
161
167
  # The refunded amount is the total amount which has been refunded so far.
162
168
  attr_accessor :refunded_amount
163
169
 
170
+ #
171
+ attr_accessor :screen_color_depth
172
+
173
+ #
174
+ attr_accessor :screen_height
175
+
176
+ #
177
+ attr_accessor :screen_width
178
+
164
179
  #
165
180
  attr_accessor :shipping_address
166
181
 
@@ -176,6 +191,9 @@ module Wallee
176
191
  # 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
192
  attr_accessor :success_url
178
193
 
194
+ # The terminal on which the payment was processed.
195
+ attr_accessor :terminal
196
+
179
197
  # 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
198
  attr_accessor :time_zone
181
199
 
@@ -203,6 +221,12 @@ module Wallee
203
221
  # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
204
222
  attr_accessor :version
205
223
 
224
+ #
225
+ attr_accessor :window_height
226
+
227
+ #
228
+ attr_accessor :window_width
229
+
206
230
  # Attribute mapping from ruby-style variable name to JSON key.
207
231
  def self.attribute_map
208
232
  {
@@ -220,6 +244,7 @@ module Wallee
220
244
  :'charge_retry_enabled' => :'chargeRetryEnabled',
221
245
  :'completed_amount' => :'completedAmount',
222
246
  :'completed_on' => :'completedOn',
247
+ :'completion_behavior' => :'completionBehavior',
223
248
  :'completion_timeout_on' => :'completionTimeoutOn',
224
249
  :'confirmed_by' => :'confirmedBy',
225
250
  :'confirmed_on' => :'confirmedOn',
@@ -243,6 +268,7 @@ module Wallee
243
268
  :'internet_protocol_address' => :'internetProtocolAddress',
244
269
  :'internet_protocol_address_country' => :'internetProtocolAddressCountry',
245
270
  :'invoice_merchant_reference' => :'invoiceMerchantReference',
271
+ :'java_enabled' => :'javaEnabled',
246
272
  :'language' => :'language',
247
273
  :'line_items' => :'lineItems',
248
274
  :'linked_space_id' => :'linkedSpaceId',
@@ -253,11 +279,15 @@ module Wallee
253
279
  :'planned_purge_date' => :'plannedPurgeDate',
254
280
  :'processing_on' => :'processingOn',
255
281
  :'refunded_amount' => :'refundedAmount',
282
+ :'screen_color_depth' => :'screenColorDepth',
283
+ :'screen_height' => :'screenHeight',
284
+ :'screen_width' => :'screenWidth',
256
285
  :'shipping_address' => :'shippingAddress',
257
286
  :'shipping_method' => :'shippingMethod',
258
287
  :'space_view_id' => :'spaceViewId',
259
288
  :'state' => :'state',
260
289
  :'success_url' => :'successUrl',
290
+ :'terminal' => :'terminal',
261
291
  :'time_zone' => :'timeZone',
262
292
  :'token' => :'token',
263
293
  :'tokenization_mode' => :'tokenizationMode',
@@ -266,7 +296,9 @@ module Wallee
266
296
  :'user_agent_header' => :'userAgentHeader',
267
297
  :'user_failure_message' => :'userFailureMessage',
268
298
  :'user_interface_type' => :'userInterfaceType',
269
- :'version' => :'version'
299
+ :'version' => :'version',
300
+ :'window_height' => :'windowHeight',
301
+ :'window_width' => :'windowWidth'
270
302
  }
271
303
  end
272
304
 
@@ -287,6 +319,7 @@ module Wallee
287
319
  :'charge_retry_enabled' => :'BOOLEAN',
288
320
  :'completed_amount' => :'Float',
289
321
  :'completed_on' => :'DateTime',
322
+ :'completion_behavior' => :'TransactionCompletionBehavior',
290
323
  :'completion_timeout_on' => :'DateTime',
291
324
  :'confirmed_by' => :'Integer',
292
325
  :'confirmed_on' => :'DateTime',
@@ -310,6 +343,7 @@ module Wallee
310
343
  :'internet_protocol_address' => :'String',
311
344
  :'internet_protocol_address_country' => :'String',
312
345
  :'invoice_merchant_reference' => :'String',
346
+ :'java_enabled' => :'BOOLEAN',
313
347
  :'language' => :'String',
314
348
  :'line_items' => :'Array<LineItem>',
315
349
  :'linked_space_id' => :'Integer',
@@ -320,11 +354,15 @@ module Wallee
320
354
  :'planned_purge_date' => :'DateTime',
321
355
  :'processing_on' => :'DateTime',
322
356
  :'refunded_amount' => :'Float',
357
+ :'screen_color_depth' => :'String',
358
+ :'screen_height' => :'String',
359
+ :'screen_width' => :'String',
323
360
  :'shipping_address' => :'Address',
324
361
  :'shipping_method' => :'String',
325
362
  :'space_view_id' => :'Integer',
326
363
  :'state' => :'TransactionState',
327
364
  :'success_url' => :'String',
365
+ :'terminal' => :'PaymentTerminal',
328
366
  :'time_zone' => :'String',
329
367
  :'token' => :'Token',
330
368
  :'tokenization_mode' => :'TokenizationMode',
@@ -333,7 +371,9 @@ module Wallee
333
371
  :'user_agent_header' => :'String',
334
372
  :'user_failure_message' => :'String',
335
373
  :'user_interface_type' => :'TransactionUserInterfaceType',
336
- :'version' => :'Integer'
374
+ :'version' => :'Integer',
375
+ :'window_height' => :'String',
376
+ :'window_width' => :'String'
337
377
  }
338
378
  end
339
379
 
@@ -405,6 +445,10 @@ module Wallee
405
445
  self.completed_on = attributes[:'completedOn']
406
446
  end
407
447
 
448
+ if attributes.has_key?(:'completionBehavior')
449
+ self.completion_behavior = attributes[:'completionBehavior']
450
+ end
451
+
408
452
  if attributes.has_key?(:'completionTimeoutOn')
409
453
  self.completion_timeout_on = attributes[:'completionTimeoutOn']
410
454
  end
@@ -497,6 +541,10 @@ module Wallee
497
541
  self.invoice_merchant_reference = attributes[:'invoiceMerchantReference']
498
542
  end
499
543
 
544
+ if attributes.has_key?(:'javaEnabled')
545
+ self.java_enabled = attributes[:'javaEnabled']
546
+ end
547
+
500
548
  if attributes.has_key?(:'language')
501
549
  self.language = attributes[:'language']
502
550
  end
@@ -541,6 +589,18 @@ module Wallee
541
589
  self.refunded_amount = attributes[:'refundedAmount']
542
590
  end
543
591
 
592
+ if attributes.has_key?(:'screenColorDepth')
593
+ self.screen_color_depth = attributes[:'screenColorDepth']
594
+ end
595
+
596
+ if attributes.has_key?(:'screenHeight')
597
+ self.screen_height = attributes[:'screenHeight']
598
+ end
599
+
600
+ if attributes.has_key?(:'screenWidth')
601
+ self.screen_width = attributes[:'screenWidth']
602
+ end
603
+
544
604
  if attributes.has_key?(:'shippingAddress')
545
605
  self.shipping_address = attributes[:'shippingAddress']
546
606
  end
@@ -561,6 +621,10 @@ module Wallee
561
621
  self.success_url = attributes[:'successUrl']
562
622
  end
563
623
 
624
+ if attributes.has_key?(:'terminal')
625
+ self.terminal = attributes[:'terminal']
626
+ end
627
+
564
628
  if attributes.has_key?(:'timeZone')
565
629
  self.time_zone = attributes[:'timeZone']
566
630
  end
@@ -596,6 +660,14 @@ module Wallee
596
660
  if attributes.has_key?(:'version')
597
661
  self.version = attributes[:'version']
598
662
  end
663
+
664
+ if attributes.has_key?(:'windowHeight')
665
+ self.window_height = attributes[:'windowHeight']
666
+ end
667
+
668
+ if attributes.has_key?(:'windowWidth')
669
+ self.window_width = attributes[:'windowWidth']
670
+ end
599
671
  end
600
672
 
601
673
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -614,6 +686,14 @@ module Wallee
614
686
  invalid_properties.push('invalid value for "device_session_identifier", the character length must be great than or equal to 10.')
615
687
  end
616
688
 
689
+ if !@failed_url.nil? && @failed_url.to_s.length > 1000
690
+ invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 1000.')
691
+ end
692
+
693
+ if !@failed_url.nil? && @failed_url.to_s.length < 9
694
+ invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
695
+ end
696
+
617
697
  if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
618
698
  invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
619
699
  end
@@ -626,6 +706,14 @@ module Wallee
626
706
  invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 200.')
627
707
  end
628
708
 
709
+ if !@success_url.nil? && @success_url.to_s.length > 1000
710
+ invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 1000.')
711
+ end
712
+
713
+ if !@success_url.nil? && @success_url.to_s.length < 9
714
+ invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
715
+ end
716
+
629
717
  invalid_properties
630
718
  end
631
719
 
@@ -635,9 +723,13 @@ module Wallee
635
723
  return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 254
636
724
  return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length > 40
637
725
  return false if !@device_session_identifier.nil? && @device_session_identifier.to_s.length < 10
726
+ return false if !@failed_url.nil? && @failed_url.to_s.length > 1000
727
+ return false if !@failed_url.nil? && @failed_url.to_s.length < 9
638
728
  return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
639
729
  return false if !@merchant_reference.nil? && @merchant_reference.to_s.length > 100
640
730
  return false if !@shipping_method.nil? && @shipping_method.to_s.length > 200
731
+ return false if !@success_url.nil? && @success_url.to_s.length > 1000
732
+ return false if !@success_url.nil? && @success_url.to_s.length < 9
641
733
  true
642
734
  end
643
735
 
@@ -665,6 +757,20 @@ module Wallee
665
757
  @device_session_identifier = device_session_identifier
666
758
  end
667
759
 
760
+ # Custom attribute writer method with validation
761
+ # @param [Object] failed_url Value to be assigned
762
+ def failed_url=(failed_url)
763
+ if !failed_url.nil? && failed_url.to_s.length > 1000
764
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 1000.'
765
+ end
766
+
767
+ if !failed_url.nil? && failed_url.to_s.length < 9
768
+ fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
769
+ end
770
+
771
+ @failed_url = failed_url
772
+ end
773
+
668
774
  # Custom attribute writer method with validation
669
775
  # @param [Object] invoice_merchant_reference Value to be assigned
670
776
  def invoice_merchant_reference=(invoice_merchant_reference)
@@ -695,6 +801,20 @@ module Wallee
695
801
  @shipping_method = shipping_method
696
802
  end
697
803
 
804
+ # Custom attribute writer method with validation
805
+ # @param [Object] success_url Value to be assigned
806
+ def success_url=(success_url)
807
+ if !success_url.nil? && success_url.to_s.length > 1000
808
+ fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 1000.'
809
+ end
810
+
811
+ if !success_url.nil? && success_url.to_s.length < 9
812
+ fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
813
+ end
814
+
815
+ @success_url = success_url
816
+ end
817
+
698
818
  # Checks equality by comparing each attribute.
699
819
  # @param [Object] Object to be compared
700
820
  def ==(o)
@@ -714,6 +834,7 @@ module Wallee
714
834
  charge_retry_enabled == o.charge_retry_enabled &&
715
835
  completed_amount == o.completed_amount &&
716
836
  completed_on == o.completed_on &&
837
+ completion_behavior == o.completion_behavior &&
717
838
  completion_timeout_on == o.completion_timeout_on &&
718
839
  confirmed_by == o.confirmed_by &&
719
840
  confirmed_on == o.confirmed_on &&
@@ -737,6 +858,7 @@ module Wallee
737
858
  internet_protocol_address == o.internet_protocol_address &&
738
859
  internet_protocol_address_country == o.internet_protocol_address_country &&
739
860
  invoice_merchant_reference == o.invoice_merchant_reference &&
861
+ java_enabled == o.java_enabled &&
740
862
  language == o.language &&
741
863
  line_items == o.line_items &&
742
864
  linked_space_id == o.linked_space_id &&
@@ -747,11 +869,15 @@ module Wallee
747
869
  planned_purge_date == o.planned_purge_date &&
748
870
  processing_on == o.processing_on &&
749
871
  refunded_amount == o.refunded_amount &&
872
+ screen_color_depth == o.screen_color_depth &&
873
+ screen_height == o.screen_height &&
874
+ screen_width == o.screen_width &&
750
875
  shipping_address == o.shipping_address &&
751
876
  shipping_method == o.shipping_method &&
752
877
  space_view_id == o.space_view_id &&
753
878
  state == o.state &&
754
879
  success_url == o.success_url &&
880
+ terminal == o.terminal &&
755
881
  time_zone == o.time_zone &&
756
882
  token == o.token &&
757
883
  tokenization_mode == o.tokenization_mode &&
@@ -760,7 +886,9 @@ module Wallee
760
886
  user_agent_header == o.user_agent_header &&
761
887
  user_failure_message == o.user_failure_message &&
762
888
  user_interface_type == o.user_interface_type &&
763
- version == o.version
889
+ version == o.version &&
890
+ window_height == o.window_height &&
891
+ window_width == o.window_width
764
892
  end
765
893
 
766
894
  # @see the `==` method
@@ -772,7 +900,7 @@ module Wallee
772
900
  # Calculates hash code according to all attributes.
773
901
  # @return [Fixnum] Hash code
774
902
  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
903
+ [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, java_enabled, language, line_items, linked_space_id, merchant_reference, meta_data, parent, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, screen_color_depth, screen_height, screen_width, 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, window_height, window_width].hash
776
904
  end
777
905
 
778
906
  # Builds the object from hash
@@ -50,6 +50,9 @@ module Wallee
50
50
  #
51
51
  attr_accessor :failure_reason
52
52
 
53
+ #
54
+ attr_accessor :invoice_merchant_reference
55
+
53
56
  #
54
57
  attr_accessor :labels
55
58
 
@@ -120,6 +123,7 @@ module Wallee
120
123
  :'external_id' => :'externalId',
121
124
  :'failed_on' => :'failedOn',
122
125
  :'failure_reason' => :'failureReason',
126
+ :'invoice_merchant_reference' => :'invoiceMerchantReference',
123
127
  :'labels' => :'labels',
124
128
  :'language' => :'language',
125
129
  :'last_completion' => :'lastCompletion',
@@ -155,6 +159,7 @@ module Wallee
155
159
  :'external_id' => :'String',
156
160
  :'failed_on' => :'DateTime',
157
161
  :'failure_reason' => :'FailureReason',
162
+ :'invoice_merchant_reference' => :'String',
158
163
  :'labels' => :'Array<Label>',
159
164
  :'language' => :'String',
160
165
  :'last_completion' => :'BOOLEAN',
@@ -227,6 +232,10 @@ module Wallee
227
232
  self.failure_reason = attributes[:'failureReason']
228
233
  end
229
234
 
235
+ if attributes.has_key?(:'invoiceMerchantReference')
236
+ self.invoice_merchant_reference = attributes[:'invoiceMerchantReference']
237
+ end
238
+
230
239
  if attributes.has_key?(:'labels')
231
240
  if (value = attributes[:'labels']).is_a?(Array)
232
241
  self.labels = value
@@ -322,6 +331,10 @@ module Wallee
322
331
  invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
323
332
  end
324
333
 
334
+ if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
335
+ invalid_properties.push('invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.')
336
+ end
337
+
325
338
  invalid_properties
326
339
  end
327
340
 
@@ -330,6 +343,7 @@ module Wallee
330
343
  def valid?
331
344
  return false if !@external_id.nil? && @external_id.to_s.length > 100
332
345
  return false if !@external_id.nil? && @external_id.to_s.length < 1
346
+ return false if !@invoice_merchant_reference.nil? && @invoice_merchant_reference.to_s.length > 100
333
347
  true
334
348
  end
335
349
 
@@ -347,6 +361,16 @@ module Wallee
347
361
  @external_id = external_id
348
362
  end
349
363
 
364
+ # Custom attribute writer method with validation
365
+ # @param [Object] invoice_merchant_reference Value to be assigned
366
+ def invoice_merchant_reference=(invoice_merchant_reference)
367
+ if !invoice_merchant_reference.nil? && invoice_merchant_reference.to_s.length > 100
368
+ fail ArgumentError, 'invalid value for "invoice_merchant_reference", the character length must be smaller than or equal to 100.'
369
+ end
370
+
371
+ @invoice_merchant_reference = invoice_merchant_reference
372
+ end
373
+
350
374
  # Checks equality by comparing each attribute.
351
375
  # @param [Object] Object to be compared
352
376
  def ==(o)
@@ -362,6 +386,7 @@ module Wallee
362
386
  external_id == o.external_id &&
363
387
  failed_on == o.failed_on &&
364
388
  failure_reason == o.failure_reason &&
389
+ invoice_merchant_reference == o.invoice_merchant_reference &&
365
390
  labels == o.labels &&
366
391
  language == o.language &&
367
392
  last_completion == o.last_completion &&
@@ -392,7 +417,7 @@ module Wallee
392
417
  # Calculates hash code according to all attributes.
393
418
  # @return [Fixnum] Hash code
394
419
  def hash
395
- [id, linked_space_id, linked_transaction, amount, base_line_items, created_by, created_on, external_id, failed_on, failure_reason, labels, language, last_completion, line_item_version, line_items, mode, next_update_on, payment_information, planned_purge_date, processing_on, processor_reference, remaining_line_items, space_view_id, state, succeeded_on, tax_amount, time_zone, timeout_on, version].hash
420
+ [id, linked_space_id, linked_transaction, amount, base_line_items, created_by, created_on, external_id, failed_on, failure_reason, invoice_merchant_reference, labels, language, last_completion, line_item_version, line_items, mode, next_update_on, payment_information, planned_purge_date, processing_on, processor_reference, remaining_line_items, space_view_id, state, succeeded_on, tax_amount, time_zone, timeout_on, version].hash
396
421
  end
397
422
 
398
423
  # Builds the object from hash
@@ -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 TransactionCompletionBehavior
22
+
23
+ COMPLETE_IMMEDIATELY = 'COMPLETE_IMMEDIATELY'.freeze
24
+ COMPLETE_DEFERRED = 'COMPLETE_DEFERRED'.freeze
25
+ USE_CONFIGURATION = 'USE_CONFIGURATION'.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 = TransactionCompletionBehavior.constants.select { |c| TransactionCompletionBehavior::const_get(c) == value }
32
+ raise "Invalid ENUM value #{value} for class #TransactionCompletionBehavior" if constantValues.empty?
33
+ value
34
+ end
35
+ end
36
+ end