six_saferpay 2.8.0 → 2.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile.lock +26 -33
  4. data/lib/generators/templates/model.erb +1 -1
  5. data/lib/six_saferpay/api/six_batch/responses/close_response.rb +1 -1
  6. data/lib/six_saferpay/api/six_omni_channel/requests/insert_alias.rb +1 -1
  7. data/lib/six_saferpay/api/six_omni_channel/responses/acquire_transaction_response.rb +4 -4
  8. data/lib/six_saferpay/api/six_omni_channel/responses/insert_alias_response.rb +4 -4
  9. data/lib/six_saferpay/api/six_payment_page/requests/initialize.rb +12 -12
  10. data/lib/six_saferpay/api/six_payment_page/responses/assert_response.rb +9 -9
  11. data/lib/six_saferpay/api/six_payment_page/responses/initialize_response.rb +1 -1
  12. data/lib/six_saferpay/api/six_secure_card_data/requests/insert.rb +6 -6
  13. data/lib/six_saferpay/api/six_secure_card_data/requests/insert_direct.rb +3 -3
  14. data/lib/six_saferpay/api/six_secure_card_data/requests/update.rb +2 -2
  15. data/lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb +4 -4
  16. data/lib/six_saferpay/api/six_secure_card_data/responses/delete_response.rb +1 -1
  17. data/lib/six_saferpay/api/six_secure_card_data/responses/insert_direct_response.rb +4 -4
  18. data/lib/six_saferpay/api/six_secure_card_data/responses/insert_response.rb +2 -2
  19. data/lib/six_saferpay/api/six_secure_card_data/responses/update_response.rb +3 -3
  20. data/lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb +4 -4
  21. data/lib/six_saferpay/api/six_transaction/requests/adjust_amount.rb +1 -1
  22. data/lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb +6 -6
  23. data/lib/six_saferpay/api/six_transaction/requests/assert_capture.rb +1 -1
  24. data/lib/six_saferpay/api/six_transaction/requests/assert_refund.rb +1 -1
  25. data/lib/six_saferpay/api/six_transaction/requests/authorize.rb +1 -1
  26. data/lib/six_saferpay/api/six_transaction/requests/authorize_direct.rb +7 -7
  27. data/lib/six_saferpay/api/six_transaction/requests/authorize_referenced.rb +3 -3
  28. data/lib/six_saferpay/api/six_transaction/requests/cancel.rb +1 -1
  29. data/lib/six_saferpay/api/six_transaction/requests/capture.rb +6 -6
  30. data/lib/six_saferpay/api/six_transaction/requests/initialize.rb +9 -9
  31. data/lib/six_saferpay/api/six_transaction/requests/inquire.rb +1 -1
  32. data/lib/six_saferpay/api/six_transaction/requests/multipart_capture.rb +3 -3
  33. data/lib/six_saferpay/api/six_transaction/requests/multipart_finalize.rb +1 -1
  34. data/lib/six_saferpay/api/six_transaction/requests/query_payment_means.rb +1 -1
  35. data/lib/six_saferpay/api/six_transaction/requests/refund.rb +3 -3
  36. data/lib/six_saferpay/api/six_transaction/requests/refund_direct.rb +2 -2
  37. data/lib/six_saferpay/api/six_transaction/responses/adjust_amount_response.rb +1 -1
  38. data/lib/six_saferpay/api/six_transaction/responses/alternative_payment_response.rb +2 -2
  39. data/lib/six_saferpay/api/six_transaction/responses/assert_capture_response.rb +1 -1
  40. data/lib/six_saferpay/api/six_transaction/responses/assert_refund_response.rb +1 -1
  41. data/lib/six_saferpay/api/six_transaction/responses/authorize_direct_response.rb +7 -7
  42. data/lib/six_saferpay/api/six_transaction/responses/authorize_response.rb +9 -9
  43. data/lib/six_saferpay/api/six_transaction/responses/authorized_referenced_response.rb +5 -5
  44. data/lib/six_saferpay/api/six_transaction/responses/cancel_response.rb +1 -1
  45. data/lib/six_saferpay/api/six_transaction/responses/capture_response.rb +2 -2
  46. data/lib/six_saferpay/api/six_transaction/responses/initialize_response.rb +2 -2
  47. data/lib/six_saferpay/api/six_transaction/responses/inquire_response.rb +6 -6
  48. data/lib/six_saferpay/api/six_transaction/responses/multipart_capture_response.rb +1 -1
  49. data/lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb +1 -1
  50. data/lib/six_saferpay/api/six_transaction/responses/query_alternative_payment_response.rb +6 -6
  51. data/lib/six_saferpay/api/six_transaction/responses/query_payment_means_response.rb +3 -3
  52. data/lib/six_saferpay/api/six_transaction/responses/refund_direct_response.rb +4 -4
  53. data/lib/six_saferpay/api/six_transaction/responses/refund_response.rb +4 -4
  54. data/lib/six_saferpay/client.rb +2 -2
  55. data/lib/six_saferpay/errors/error.rb +1 -1
  56. data/lib/six_saferpay/models/chosen_plan.rb +2 -2
  57. data/lib/six_saferpay/models/dcc.rb +1 -1
  58. data/lib/six_saferpay/models/installment_plans.rb +4 -4
  59. data/lib/six_saferpay/models/invoice.rb +1 -1
  60. data/lib/six_saferpay/models/{items.rb → item.rb} +17 -34
  61. data/lib/six_saferpay/models/liability.rb +2 -2
  62. data/lib/six_saferpay/models/marketplace.rb +2 -2
  63. data/lib/six_saferpay/models/mastercard_issuer_installments.rb +3 -3
  64. data/lib/six_saferpay/models/order.rb +3 -3
  65. data/lib/six_saferpay/models/payer.rb +2 -2
  66. data/lib/six_saferpay/models/payer_profile.rb +1 -1
  67. data/lib/six_saferpay/models/payment.rb +4 -4
  68. data/lib/six_saferpay/models/payment_method_options.rb +1 -1
  69. data/lib/six_saferpay/models/payment_methods_options.rb +2 -2
  70. data/lib/six_saferpay/models/processing_data.rb +1 -1
  71. data/lib/six_saferpay/models/refund.rb +2 -2
  72. data/lib/six_saferpay/models/registration_result.rb +3 -3
  73. data/lib/six_saferpay/models/request_header.rb +1 -1
  74. data/lib/six_saferpay/models/request_payment_means.rb +4 -4
  75. data/lib/six_saferpay/models/response_payment_means.rb +4 -4
  76. data/lib/six_saferpay/models/risk_factors.rb +1 -1
  77. data/lib/six_saferpay/models/transaction.rb +3 -3
  78. data/lib/six_saferpay/models/update_payment_means.rb +1 -1
  79. data/lib/six_saferpay/version.rb +1 -1
  80. data/six_saferpay.gemspec +11 -9
  81. metadata +22 -46
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d399ac2630b4738d4d092353368bf9dad2b9431147fc8f7f54eb2143c3bbfa69
4
- data.tar.gz: e3f819c8c05341ae3d54c9becf129be14e681fb066d2fd313c91afa40375dffb
3
+ metadata.gz: 8a0ea6993020ec6ef5cb04a886f52af73af387bb003e1740de706ceb84d08fc0
4
+ data.tar.gz: a1cbcec008c6ad18e33128493e2a8671d0f8f65363b0492ce1274a5e3b66e28a
5
5
  SHA512:
6
- metadata.gz: b44df74bdef0827ecbd4fa75f2d3fb44ffc36b6838bc3174eaac9c2a3b0a9b05241b9ffef5c132e63939ee6ec0670c86e79867b06d138b1e4509d12410fffe81
7
- data.tar.gz: 38574cc66fb5cbd267ec0ed193975eb48dd7b6cb62250bf6b6d32f4cb2eaf149f74e9d8d940a11979b4a394ed076671a914466a32d72765be36315d5af2c368b
6
+ metadata.gz: facdfc9eee1af946083f794cb35859df7c9e65628c63e98e6e57f870aeeae52160c51ea5d6a93f85bcd8f9188c997a29801e93ac0783d04db59135fef87cded6
7
+ data.tar.gz: 241f3e54e40ebb6e86c68a5044ef1495331f45e835be0c3c2b1fd57df59752c101742ddab9a31b449fb3b254d382b0194dc74dfac0fa59cf52875d7a3e10dd37
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.2
1
+ 2.7.4
data/Gemfile.lock CHANGED
@@ -1,45 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- six_saferpay (2.8.0)
5
- activesupport (~> 6.1, >= 6.1.3)
4
+ six_saferpay (2.8.3)
5
+ activesupport (>= 6.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (6.1.3)
10
+ activesupport (6.1.4)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 1.6, < 2)
13
13
  minitest (>= 5.1)
14
14
  tzinfo (~> 2.0)
15
15
  zeitwerk (~> 2.3)
16
- addressable (2.7.0)
16
+ addressable (2.8.0)
17
17
  public_suffix (>= 2.0.2, < 5.0)
18
18
  coderay (1.1.3)
19
- concurrent-ruby (1.1.8)
19
+ concurrent-ruby (1.1.9)
20
20
  crack (0.4.5)
21
21
  rexml
22
22
  diff-lcs (1.4.4)
23
- docile (1.3.5)
23
+ docile (1.4.0)
24
24
  dotenv (2.7.6)
25
- ffi (1.14.2-java)
26
25
  hashdiff (1.0.1)
27
- i18n (1.8.9)
26
+ i18n (1.8.10)
28
27
  concurrent-ruby (~> 1.0)
29
28
  method_source (1.0.0)
30
- minitest (5.14.3)
29
+ minitest (5.14.4)
31
30
  pastel (0.8.0)
32
31
  tty-color (~> 0.5)
33
- pry (0.14.0)
32
+ pry (0.14.1)
34
33
  coderay (~> 1.1)
35
34
  method_source (~> 1.0)
36
- pry (0.14.0-java)
37
- coderay (~> 1.1)
38
- method_source (~> 1.0)
39
- spoon (~> 0.0)
40
35
  public_suffix (4.0.6)
41
- rake (13.0.3)
42
- rexml (3.2.4)
36
+ rake (13.0.6)
37
+ rexml (3.2.5)
43
38
  rspec (3.10.0)
44
39
  rspec-core (~> 3.10.0)
45
40
  rspec-expectations (~> 3.10.0)
@@ -58,15 +53,13 @@ GEM
58
53
  simplecov-html (~> 0.11)
59
54
  simplecov_json_formatter (~> 0.1)
60
55
  simplecov-html (0.12.3)
61
- simplecov_json_formatter (0.1.2)
62
- spinning_wheel (0.2.2)
56
+ simplecov_json_formatter (0.1.3)
57
+ spinning_wheel (1.0.0)
63
58
  activesupport (>= 5.2.4.3)
64
- spoon (0.0.6)
65
- ffi
66
59
  thor (1.1.0)
67
60
  tty-color (0.6.0)
68
61
  tty-cursor (0.7.1)
69
- tty-prompt (0.23.0)
62
+ tty-prompt (0.23.1)
70
63
  pastel (~> 0.8)
71
64
  tty-reader (~> 0.8)
72
65
  tty-reader (0.9.0)
@@ -76,9 +69,9 @@ GEM
76
69
  tty-screen (0.8.1)
77
70
  tzinfo (2.0.4)
78
71
  concurrent-ruby (~> 1.0)
79
- vcr (4.0.0)
80
- webmock (3.11.2)
81
- addressable (>= 2.3.6)
72
+ vcr (6.0.0)
73
+ webmock (3.14.0)
74
+ addressable (>= 2.8.0)
82
75
  crack (>= 0.3.2)
83
76
  hashdiff (>= 0.4.0, < 2.0.0)
84
77
  wisper (2.0.1)
@@ -90,18 +83,18 @@ PLATFORMS
90
83
  ruby
91
84
 
92
85
  DEPENDENCIES
93
- bundler (~> 2.1)
94
- dotenv (~> 2.7, >= 2.7)
86
+ bundler (~> 2.2)
87
+ dotenv (~> 2.7)
95
88
  pry (~> 0.14)
96
89
  rake (~> 13.0)
97
- rspec (~> 3.0)
98
- simplecov (~> 0.19)
90
+ rspec (~> 3.1)
91
+ simplecov (~> 0.21)
99
92
  six_saferpay!
100
- spinning_wheel (~> 0.2.2)
93
+ spinning_wheel (~> 1.0)
101
94
  thor (~> 1.1.0)
102
- tty-prompt (~> 0.22)
103
- vcr (~> 4.0, >= 4.0.0)
104
- webmock (~> 3.10, >= 3.10)
95
+ tty-prompt (~> 0.23)
96
+ vcr (~> 6.0)
97
+ webmock (~> 3.13)
105
98
 
106
99
  BUNDLED WITH
107
- 2.2.8
100
+ 2.2.26
@@ -25,7 +25,7 @@ module SixSaferpay
25
25
  <%- %>
26
26
  <%= "if #{attr.name}" %>
27
27
  <%= "@#{attr.name} = "-%>
28
- <%- -%><%= "SixSaferpay::#{attr.type}.new(#{attr.name}.to_h)" %>
28
+ <%- -%><%= "SixSaferpay::#{attr.type}.new(**#{attr.name}.to_h)" %>
29
29
  <%= "end" %>
30
30
  <%- end -%>
31
31
  <%- end -%>
@@ -5,7 +5,7 @@ module SixSaferpay
5
5
  attr_accessor(:response_header)
6
6
 
7
7
  def initialize(response_header:)
8
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h)
8
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h)
9
9
  end
10
10
 
11
11
  def to_hash
@@ -10,7 +10,7 @@ module SixSaferpay
10
10
  register_alias:,
11
11
  six_transaction_reference: )
12
12
  @request_header = request_header || SixSaferpay::RequestHeader.new()
13
- @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias
13
+ @register_alias = SixSaferpay::RegisterAlias.new(**register_alias.to_h) if register_alias
14
14
  @six_transaction_reference = six_transaction_reference
15
15
  end
16
16
 
@@ -9,11 +9,11 @@ module SixSaferpay
9
9
 
10
10
  def initialize(response_header:,
11
11
  transaction:,
12
- payment_means:
12
+ payment_means:
13
13
  )
14
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
15
- @transaction = SixSaferpay::Transaction.new(transaction.to_h) if transaction
16
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h) if payment_means
14
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
15
+ @transaction = SixSaferpay::Transaction.new(**transaction.to_h) if transaction
16
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h) if payment_means
17
17
  end
18
18
 
19
19
  def to_hash
@@ -13,10 +13,10 @@ module SixSaferpay
13
13
  payment_means:,
14
14
  check_result: nil
15
15
  )
16
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
17
- @fd_alias = SixSaferpay::Alias.new(fd_alias.to_h) if fd_alias
18
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h) if payment_means
19
- @check_result = SixSaferpay::CheckResult.new(check_result.to_h) if check_result
16
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
17
+ @fd_alias = SixSaferpay::Alias.new(**fd_alias.to_h) if fd_alias
18
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h) if payment_means
19
+ @check_result = SixSaferpay::CheckResult.new(**check_result.to_h) if check_result
20
20
  end
21
21
 
22
22
  def to_hash
@@ -47,22 +47,22 @@ module SixSaferpay
47
47
  @request_header = request_header || SixSaferpay::RequestHeader.new()
48
48
  @config_set = config_set
49
49
  @terminal_id = terminal_id || SixSaferpay.config.terminal_id
50
- @payment = SixSaferpay::Payment.new(payment.to_h) if payment
50
+ @payment = SixSaferpay::Payment.new(**payment.to_h) if payment
51
51
  @payment_methods = payment_methods
52
- @payment_methods_options = SixSaferpay::PaymentMethodsOptions.new(payment_methods_options.to_h) if payment_methods_options
53
- @authentication = SixSaferpay::Authentication.new(authentication.to_h) if authentication
52
+ @payment_methods_options = SixSaferpay::PaymentMethodsOptions.new(**payment_methods_options.to_h) if payment_methods_options
53
+ @authentication = SixSaferpay::Authentication.new(**authentication.to_h) if authentication
54
54
  @wallets = wallets
55
- @payer = SixSaferpay::Payer.new(payer.to_h) if payer
56
- @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias
55
+ @payer = SixSaferpay::Payer.new(**payer.to_h) if payer
56
+ @register_alias = SixSaferpay::RegisterAlias.new(**register_alias.to_h) if register_alias
57
57
  @return_urls = return_urls || SixSaferpay::ReturnUrls.new()
58
- @notification = SixSaferpay::Notification.new(notification.to_h) if notification
59
- @styling = SixSaferpay::Styling.new(styling.to_h) if styling
60
- @billing_address_form = SixSaferpay::BillingAddressForm.new(billing_address_form.to_h) if billing_address_form
61
- @delivery_address_form = SixSaferpay::DeliveryAddressForm.new(delivery_address_form.to_h) if delivery_address_form
62
- @card_form = SixSaferpay::CardForm.new(card_form.to_h) if card_form
58
+ @notification = SixSaferpay::Notification.new(**notification.to_h) if notification
59
+ @styling = SixSaferpay::Styling.new(**styling.to_h) if styling
60
+ @billing_address_form = SixSaferpay::BillingAddressForm.new(**billing_address_form.to_h) if billing_address_form
61
+ @delivery_address_form = SixSaferpay::DeliveryAddressForm.new(**delivery_address_form.to_h) if delivery_address_form
62
+ @card_form = SixSaferpay::CardForm.new(**card_form.to_h) if card_form
63
63
  @condition = condition
64
- @order = SixSaferpay::Order.new(order.to_h) if order
65
- @risk_factors = SixSaferpay::RiskFactors.new(risk_factors.to_h) if risk_factors
64
+ @order = SixSaferpay::Order.new(**order.to_h) if order
65
+ @risk_factors = SixSaferpay::RiskFactors.new(**risk_factors.to_h) if risk_factors
66
66
  end
67
67
 
68
68
  def to_hash
@@ -23,18 +23,18 @@ module SixSaferpay
23
23
  mastercard_issuer_installments: nil,
24
24
  fraud_prevention: nil
25
25
  )
26
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h)
27
- @transaction = SixSaferpay::Transaction.new(transaction.to_h)
28
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h)
29
- @payer = SixSaferpay::Payer.new(payer.to_h) if payer
30
- @registration_result = SixSaferpay::RegistrationResult.new(registration_result.to_h) if registration_result
31
- @liability = SixSaferpay::Liability.new(liability.to_h) if liability
32
- @dcc = SixSaferpay::Dcc.new(dcc.to_h) if dcc
26
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h)
27
+ @transaction = SixSaferpay::Transaction.new(**transaction.to_h)
28
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h)
29
+ @payer = SixSaferpay::Payer.new(**payer.to_h) if payer
30
+ @registration_result = SixSaferpay::RegistrationResult.new(**registration_result.to_h) if registration_result
31
+ @liability = SixSaferpay::Liability.new(**liability.to_h) if liability
32
+ @dcc = SixSaferpay::Dcc.new(**dcc.to_h) if dcc
33
33
  if mastercard_issuer_installments
34
34
  @mastercard_issuer_installments = SixSaferpay::MastercardIssuerInstallments
35
- .new(mastercard_issuer_installments.to_h)
35
+ .new(**mastercard_issuer_installments.to_h)
36
36
  end
37
- @fraud_prevention = SixSaferpay::FraudPrevention.new(fraud_prevention.to_h) if fraud_prevention
37
+ @fraud_prevention = SixSaferpay::FraudPrevention.new(**fraud_prevention.to_h) if fraud_prevention
38
38
  end
39
39
 
40
40
  def to_hash
@@ -12,7 +12,7 @@ module SixSaferpay
12
12
  token:,
13
13
  expiration:,
14
14
  redirect_url: )
15
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
15
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
16
16
  @token = token
17
17
  @expiration = expiration
18
18
  @redirect_url = redirect_url
@@ -26,15 +26,15 @@ module SixSaferpay
26
26
  payment_means: nil
27
27
  )
28
28
  @request_header = request_header || SixSaferpay::RequestHeader.new()
29
- @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias
29
+ @register_alias = SixSaferpay::RegisterAlias.new(**register_alias.to_h) if register_alias
30
30
  @type = type
31
- @return_urls = SixSaferpay::ReturnUrls.new(return_urls.to_h) if return_urls
32
- @styling = SixSaferpay::Styling.new(styling.to_h) if styling
31
+ @return_urls = SixSaferpay::ReturnUrls.new(**return_urls.to_h) if return_urls
32
+ @styling = SixSaferpay::Styling.new(**styling.to_h) if styling
33
33
  @language_code = language_code
34
- @check = SixSaferpay::Check.new(check.to_h) if check
34
+ @check = SixSaferpay::Check.new(**check.to_h) if check
35
35
  @payment_methods = payment_methods
36
- @card_form = SixSaferpay::CardForm.new(card_form.to_h) if card_form
37
- @payment_means = SixSaferpay::RequestPaymentMeans.new(payment_means.to_h) if payment_means
36
+ @card_form = SixSaferpay::CardForm.new(**card_form.to_h) if card_form
37
+ @payment_means = SixSaferpay::RequestPaymentMeans.new(**payment_means.to_h) if payment_means
38
38
  end
39
39
 
40
40
  def to_hash
@@ -14,9 +14,9 @@ module SixSaferpay
14
14
  check: nil
15
15
  )
16
16
  @request_header = request_header || SixSaferpay::RequestHeader.new()
17
- @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias
18
- @payment_means = SixSaferpay::RequestPaymentMeans.new(payment_means.to_h) if payment_means
19
- @check = SixSaferpay::Check.new(check.to_h) if check
17
+ @register_alias = SixSaferpay::RegisterAlias.new(**register_alias.to_h) if register_alias
18
+ @payment_means = SixSaferpay::RequestPaymentMeans.new(**payment_means.to_h) if payment_means
19
+ @check = SixSaferpay::Check.new(**check.to_h) if check
20
20
  end
21
21
 
22
22
  def to_hash
@@ -12,8 +12,8 @@ module SixSaferpay
12
12
  update_payment_means: nil
13
13
  )
14
14
  @request_header = request_header || SixSaferpay::RequestHeader.new()
15
- @update_alias = SixSaferpay::UpdateAlias.new(update_alias.to_h) if update_alias
16
- @update_payment_means = SixSaferpay::UpdatePaymentMeans.new(update_payment_means.to_h) if update_payment_means
15
+ @update_alias = SixSaferpay::UpdateAlias.new(**update_alias.to_h) if update_alias
16
+ @update_payment_means = SixSaferpay::UpdatePaymentMeans.new(**update_payment_means.to_h) if update_payment_means
17
17
  end
18
18
 
19
19
  def to_hash
@@ -12,10 +12,10 @@ module SixSaferpay
12
12
  fd_alias:,
13
13
  payment_means:,
14
14
  check_result: nil)
15
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
16
- @fd_alias = SixSaferpay::Alias.new(fd_alias.to_h) if fd_alias
17
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h) if payment_means
18
- @check_result = SixSaferpay::CheckResult.new(check_result.to_h) if check_result
15
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
16
+ @fd_alias = SixSaferpay::Alias.new(**fd_alias.to_h) if fd_alias
17
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h) if payment_means
18
+ @check_result = SixSaferpay::CheckResult.new(**check_result.to_h) if check_result
19
19
  end
20
20
 
21
21
  def to_hash
@@ -5,7 +5,7 @@ module SixSaferpay
5
5
  attr_accessor(:response_header)
6
6
 
7
7
  def initialize(response_header: )
8
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
8
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
9
9
  end
10
10
 
11
11
  def to_hash
@@ -12,10 +12,10 @@ module SixSaferpay
12
12
  fd_alias:,
13
13
  payment_means:,
14
14
  check_result: nil)
15
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
16
- @fd_alias = SixSaferpay::Alias.new(fd_alias.to_h) if fd_alias
17
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h) if payment_means
18
- @check_result = SixSaferpay::CheckResult.new(check_result.to_h) if check_result
15
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
16
+ @fd_alias = SixSaferpay::Alias.new(**fd_alias.to_h) if fd_alias
17
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h) if payment_means
18
+ @check_result = SixSaferpay::CheckResult.new(**check_result.to_h) if check_result
19
19
  end
20
20
 
21
21
  def to_hash
@@ -15,11 +15,11 @@ module SixSaferpay
15
15
  redirect_required:,
16
16
  redirect:
17
17
  )
18
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
18
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
19
19
  @token = token
20
20
  @expiration = expiration
21
21
  @redirect_required = redirect_required
22
- @redirect = SixSaferpay::Redirect.new(redirect.to_h) if redirect
22
+ @redirect = SixSaferpay::Redirect.new(**redirect.to_h) if redirect
23
23
  end
24
24
 
25
25
  def to_hash
@@ -10,9 +10,9 @@ module SixSaferpay
10
10
  def initialize(response_header:,
11
11
  fd_alias:,
12
12
  payment_means: )
13
- @response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
14
- @fd_alias = SixSaferpay::Alias.new(fd_alias.to_h)
15
- @payment_means = SixSaferpay::ResponsePaymentMeans.new(payment_means.to_h)
13
+ @response_header = SixSaferpay::ResponseHeader.new(**response_header.to_h) if response_header
14
+ @fd_alias = SixSaferpay::Alias.new(**fd_alias.to_h)
15
+ @payment_means = SixSaferpay::ResponsePaymentMeans.new(**payment_means.to_h)
16
16
  end
17
17
 
18
18
  def to_hash
@@ -18,13 +18,13 @@ module SixSaferpay
18
18
  register_alias: nil
19
19
  )
20
20
 
21
- @payment = SixSaferpay::Payment.new(payment.to_h) if payment
21
+ @payment = SixSaferpay::Payment.new(**payment.to_h) if payment
22
22
  @expiration_date = expiration_date
23
23
  @config_set = config_set
24
- @payer = SixSaferpay::Payer.new(payer.to_h) if payer
24
+ @payer = SixSaferpay::Payer.new(**payer.to_h) if payer
25
25
  @billing_address_form =
26
- SixSaferpay::BillingAddressForm.new(billing_address_form) if billing_address_form
27
- @register_alias = SixSaferpay::RegisterAlias.new(register_alias.to_h) if register_alias
26
+ SixSaferpay::BillingAddressForm.new(**billing_address_form) if billing_address_form
27
+ @register_alias = SixSaferpay::RegisterAlias.new(**register_alias.to_h) if register_alias
28
28
  end
29
29
 
30
30
  def to_hash
@@ -14,7 +14,7 @@ module SixSaferpay
14
14
  amount: )
15
15
  @request_header = request_header || SixSaferpay::RequestHeader.new()
16
16
  @token = token
17
- @amount = SixSaferpay::Amount.new(amount.to_h) if amount
17
+ @amount = SixSaferpay::Amount.new(**amount.to_h) if amount
18
18
  end
19
19
 
20
20
  def to_hash
@@ -27,13 +27,13 @@ module SixSaferpay
27
27
  )
28
28
  @request_header = request_header || SixSaferpay::RequestHeader.new()
29
29
  @terminal_id = terminal_id
30
- @payment = SixSaferpay::Payment.new(payment.to_h)
30
+ @payment = SixSaferpay::Payment.new(**payment.to_h)
31
31
  @payment_method = payment_method
32
- @payment_method_options = SixSaferpay::PaymentMethodOptions.new(payment_method_options.to_h) if payment_method_options
33
- @payer = SixSaferpay::Payer.new(payer.to_h) if payer
34
- @notification = SixSaferpay::Notification.new(notification.to_h)
35
- @order = SixSaferpay::Order.new(order.to_h) if order
36
- @risk_factors = SixSaferpay::RiskFactors.new(risk_factors.to_h) if risk_factors
32
+ @payment_method_options = SixSaferpay::PaymentMethodOptions.new(**payment_method_options.to_h) if payment_method_options
33
+ @payer = SixSaferpay::Payer.new(**payer.to_h) if payer
34
+ @notification = SixSaferpay::Notification.new(**notification.to_h)
35
+ @order = SixSaferpay::Order.new(**order.to_h) if order
36
+ @risk_factors = SixSaferpay::RiskFactors.new(**risk_factors.to_h) if risk_factors
37
37
  end
38
38
 
39
39
  def to_hash
@@ -10,7 +10,7 @@ module SixSaferpay
10
10
  def initialize(request_header: nil,
11
11
  capture_reference: )
12
12
  @request_header = request_header || SixSaferpay::RequestHeader.new()
13
- @capture_reference = SixSaferpay::CaptureReference.new(capture_reference.to_h) if capture_reference
13
+ @capture_reference = SixSaferpay::CaptureReference.new(**capture_reference.to_h) if capture_reference
14
14
  end
15
15
 
16
16
  def to_hash