six_saferpay 2.7.0 → 2.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +28 -28
- data/README.md +1 -1
- data/lib/generators/templates/model.erb +1 -1
- data/lib/six_saferpay/api/six_batch/responses/close_response.rb +1 -1
- data/lib/six_saferpay/api/six_omni_channel/requests/insert_alias.rb +1 -1
- data/lib/six_saferpay/api/six_omni_channel/responses/acquire_transaction_response.rb +4 -4
- data/lib/six_saferpay/api/six_omni_channel/responses/insert_alias_response.rb +4 -4
- data/lib/six_saferpay/api/six_payment_page/requests/initialize.rb +12 -12
- data/lib/six_saferpay/api/six_payment_page/responses/assert_response.rb +9 -9
- data/lib/six_saferpay/api/six_payment_page/responses/initialize_response.rb +1 -1
- data/lib/six_saferpay/api/six_secure_card_data/requests/insert.rb +6 -6
- data/lib/six_saferpay/api/six_secure_card_data/requests/insert_direct.rb +3 -3
- data/lib/six_saferpay/api/six_secure_card_data/requests/update.rb +2 -2
- data/lib/six_saferpay/api/six_secure_card_data/responses/assert_insert_response.rb +4 -4
- data/lib/six_saferpay/api/six_secure_card_data/responses/delete_response.rb +1 -1
- data/lib/six_saferpay/api/six_secure_card_data/responses/insert_direct_response.rb +4 -4
- data/lib/six_saferpay/api/six_secure_card_data/responses/insert_response.rb +2 -2
- data/lib/six_saferpay/api/six_secure_card_data/responses/update_response.rb +3 -3
- data/lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb +4 -4
- data/lib/six_saferpay/api/six_transaction/requests/adjust_amount.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb +6 -6
- data/lib/six_saferpay/api/six_transaction/requests/assert_capture.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/assert_refund.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/authorize.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/authorize_direct.rb +15 -7
- data/lib/six_saferpay/api/six_transaction/requests/authorize_referenced.rb +3 -3
- data/lib/six_saferpay/api/six_transaction/requests/cancel.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/capture.rb +6 -6
- data/lib/six_saferpay/api/six_transaction/requests/initialize.rb +9 -9
- data/lib/six_saferpay/api/six_transaction/requests/inquire.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/multipart_capture.rb +3 -3
- data/lib/six_saferpay/api/six_transaction/requests/multipart_finalize.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/query_payment_means.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/requests/refund.rb +3 -3
- data/lib/six_saferpay/api/six_transaction/requests/refund_direct.rb +2 -2
- data/lib/six_saferpay/api/six_transaction/responses/adjust_amount_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/alternative_payment_response.rb +2 -2
- data/lib/six_saferpay/api/six_transaction/responses/assert_capture_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/assert_refund_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/authorize_direct_response.rb +16 -8
- data/lib/six_saferpay/api/six_transaction/responses/authorize_response.rb +9 -9
- data/lib/six_saferpay/api/six_transaction/responses/authorized_referenced_response.rb +5 -5
- data/lib/six_saferpay/api/six_transaction/responses/cancel_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/capture_response.rb +2 -2
- data/lib/six_saferpay/api/six_transaction/responses/initialize_response.rb +2 -2
- data/lib/six_saferpay/api/six_transaction/responses/inquire_response.rb +6 -6
- data/lib/six_saferpay/api/six_transaction/responses/multipart_capture_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/multipart_finalize_response.rb +1 -1
- data/lib/six_saferpay/api/six_transaction/responses/query_alternative_payment_response.rb +16 -7
- data/lib/six_saferpay/api/six_transaction/responses/query_payment_means_response.rb +3 -3
- data/lib/six_saferpay/api/six_transaction/responses/refund_direct_response.rb +4 -4
- data/lib/six_saferpay/api/six_transaction/responses/refund_response.rb +4 -4
- data/lib/six_saferpay/api.rb +1 -1
- data/lib/six_saferpay/client.rb +2 -2
- data/lib/six_saferpay/errors/error.rb +1 -1
- data/lib/six_saferpay/models/chosen_plan.rb +2 -2
- data/lib/six_saferpay/models/dcc.rb +1 -1
- data/lib/six_saferpay/models/installment_plans.rb +4 -4
- data/lib/six_saferpay/models/invoice.rb +1 -1
- data/lib/six_saferpay/models/{items.rb → item.rb} +17 -34
- data/lib/six_saferpay/models/liability.rb +2 -2
- data/lib/six_saferpay/models/marketplace.rb +2 -2
- data/lib/six_saferpay/models/mastercard_issuer_installments.rb +3 -3
- data/lib/six_saferpay/models/options.rb +15 -3
- data/lib/six_saferpay/models/order.rb +3 -3
- data/lib/six_saferpay/models/payer.rb +2 -2
- data/lib/six_saferpay/models/payer_profile.rb +1 -1
- data/lib/six_saferpay/models/payment.rb +4 -4
- data/lib/six_saferpay/models/payment_method_options.rb +1 -1
- data/lib/six_saferpay/models/payment_methods_options.rb +2 -2
- data/lib/six_saferpay/models/processing_data.rb +1 -1
- data/lib/six_saferpay/models/refund.rb +2 -2
- data/lib/six_saferpay/models/registration_result.rb +3 -3
- data/lib/six_saferpay/models/request_header.rb +1 -1
- data/lib/six_saferpay/models/request_payment_means.rb +4 -4
- data/lib/six_saferpay/models/response_payment_means.rb +4 -4
- data/lib/six_saferpay/models/risk_factors.rb +1 -1
- data/lib/six_saferpay/models/transaction.rb +3 -3
- data/lib/six_saferpay/models/update_payment_means.rb +1 -1
- data/lib/six_saferpay/version.rb +1 -1
- data/six_saferpay.gemspec +11 -9
- metadata +20 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427e895fde3528c34c80990918e1c159a7011bbf4c0f6e666e2a1065e006177d
|
4
|
+
data.tar.gz: 44edc12a4dfb4a223264d9cfd4958d08ec08607cc7e75dc9b5e1111a9b0e4aa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebc2939e433c40ab9cd031c7328907cb939ed0a31710c54ef0ea5a95da85b1f8bbcfb1a4e5c098d7d34788ef78d301332cd9bf0167ac784b0643de8e96025a9d
|
7
|
+
data.tar.gz: 0d166828012f73619ba3e3b2aa45cfed7bfb26f2cedb7777e9f242156c146bb9e155d84c668a6b69f74dab9a1822d47c9acf02dd5f781e6c228aa7e4cd836692
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.4
|
data/Gemfile.lock
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
six_saferpay (2.
|
5
|
-
activesupport (~> 6.1
|
4
|
+
six_saferpay (2.8.3)
|
5
|
+
activesupport (~> 6.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.
|
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.
|
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.
|
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.
|
23
|
+
docile (1.4.0)
|
24
24
|
dotenv (2.7.6)
|
25
|
-
ffi (1.
|
25
|
+
ffi (1.15.3-java)
|
26
26
|
hashdiff (1.0.1)
|
27
|
-
i18n (1.8.
|
27
|
+
i18n (1.8.10)
|
28
28
|
concurrent-ruby (~> 1.0)
|
29
29
|
method_source (1.0.0)
|
30
|
-
minitest (5.14.
|
30
|
+
minitest (5.14.4)
|
31
31
|
pastel (0.8.0)
|
32
32
|
tty-color (~> 0.5)
|
33
|
-
pry (0.14.
|
33
|
+
pry (0.14.1)
|
34
34
|
coderay (~> 1.1)
|
35
35
|
method_source (~> 1.0)
|
36
|
-
pry (0.14.
|
36
|
+
pry (0.14.1-java)
|
37
37
|
coderay (~> 1.1)
|
38
38
|
method_source (~> 1.0)
|
39
39
|
spoon (~> 0.0)
|
40
40
|
public_suffix (4.0.6)
|
41
|
-
rake (13.0.
|
42
|
-
rexml (3.2.
|
41
|
+
rake (13.0.6)
|
42
|
+
rexml (3.2.5)
|
43
43
|
rspec (3.10.0)
|
44
44
|
rspec-core (~> 3.10.0)
|
45
45
|
rspec-expectations (~> 3.10.0)
|
@@ -58,15 +58,15 @@ GEM
|
|
58
58
|
simplecov-html (~> 0.11)
|
59
59
|
simplecov_json_formatter (~> 0.1)
|
60
60
|
simplecov-html (0.12.3)
|
61
|
-
simplecov_json_formatter (0.1.
|
62
|
-
spinning_wheel (0.
|
61
|
+
simplecov_json_formatter (0.1.3)
|
62
|
+
spinning_wheel (1.0.0)
|
63
63
|
activesupport (>= 5.2.4.3)
|
64
64
|
spoon (0.0.6)
|
65
65
|
ffi
|
66
66
|
thor (1.1.0)
|
67
67
|
tty-color (0.6.0)
|
68
68
|
tty-cursor (0.7.1)
|
69
|
-
tty-prompt (0.23.
|
69
|
+
tty-prompt (0.23.1)
|
70
70
|
pastel (~> 0.8)
|
71
71
|
tty-reader (~> 0.8)
|
72
72
|
tty-reader (0.9.0)
|
@@ -76,9 +76,9 @@ GEM
|
|
76
76
|
tty-screen (0.8.1)
|
77
77
|
tzinfo (2.0.4)
|
78
78
|
concurrent-ruby (~> 1.0)
|
79
|
-
vcr (
|
80
|
-
webmock (3.
|
81
|
-
addressable (>= 2.
|
79
|
+
vcr (6.0.0)
|
80
|
+
webmock (3.14.0)
|
81
|
+
addressable (>= 2.8.0)
|
82
82
|
crack (>= 0.3.2)
|
83
83
|
hashdiff (>= 0.4.0, < 2.0.0)
|
84
84
|
wisper (2.0.1)
|
@@ -90,18 +90,18 @@ PLATFORMS
|
|
90
90
|
ruby
|
91
91
|
|
92
92
|
DEPENDENCIES
|
93
|
-
bundler (~> 2.
|
94
|
-
dotenv (~> 2.7
|
93
|
+
bundler (~> 2.2)
|
94
|
+
dotenv (~> 2.7)
|
95
95
|
pry (~> 0.14)
|
96
96
|
rake (~> 13.0)
|
97
|
-
rspec (~> 3.
|
98
|
-
simplecov (~> 0.
|
97
|
+
rspec (~> 3.1)
|
98
|
+
simplecov (~> 0.21)
|
99
99
|
six_saferpay!
|
100
|
-
spinning_wheel (~> 0
|
100
|
+
spinning_wheel (~> 1.0)
|
101
101
|
thor (~> 1.1.0)
|
102
|
-
tty-prompt (~> 0.
|
103
|
-
vcr (~>
|
104
|
-
webmock (~> 3.
|
102
|
+
tty-prompt (~> 0.23)
|
103
|
+
vcr (~> 6.0)
|
104
|
+
webmock (~> 3.13)
|
105
105
|
|
106
106
|
BUNDLED WITH
|
107
|
-
2.2.
|
107
|
+
2.2.26
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ module SixSaferpay
|
|
25
25
|
<%- %>
|
26
26
|
<%= "if #{attr.name}" %>
|
27
27
|
<%= "@#{attr.name} = "-%>
|
28
|
-
<%- -%><%= "SixSaferpay::#{attr.type}.new(
|
28
|
+
<%- -%><%= "SixSaferpay::#{attr.type}.new(**#{attr.name}.to_h)" %>
|
29
29
|
<%= "end" %>
|
30
30
|
<%- end -%>
|
31
31
|
<%- end -%>
|
@@ -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
|