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
@@ -16,12 +16,12 @@ module SixSaferpay
|
|
16
16
|
bank_account: nil,
|
17
17
|
twint: nil
|
18
18
|
)
|
19
|
-
@brand = SixSaferpay::Brand.new(brand.to_h) if brand
|
19
|
+
@brand = SixSaferpay::Brand.new(**brand.to_h) if brand
|
20
20
|
@display_text = display_text
|
21
21
|
@wallet = wallet
|
22
|
-
@card = SixSaferpay::ResponseCard.new(card.to_h) if card
|
23
|
-
@bank_account = SixSaferpay::BankAccount.new(bank_account.to_h) if bank_account
|
24
|
-
@twint = SixSaferpay::Twint.new(twint.to_h) if twint
|
22
|
+
@card = SixSaferpay::ResponseCard.new(**card.to_h) if card
|
23
|
+
@bank_account = SixSaferpay::BankAccount.new(**bank_account.to_h) if bank_account
|
24
|
+
@twint = SixSaferpay::Twint.new(**twint.to_h) if twint
|
25
25
|
end
|
26
26
|
|
27
27
|
def to_hash
|
@@ -36,14 +36,14 @@ module SixSaferpay
|
|
36
36
|
@id = id
|
37
37
|
@capture_id = capture_id
|
38
38
|
@date = date
|
39
|
-
@amount = SixSaferpay::Amount.new(amount)
|
39
|
+
@amount = SixSaferpay::Amount.new(**amount.to_h)
|
40
40
|
@order_id = order_id
|
41
41
|
@acquirer_name = acquirer_name
|
42
42
|
@acquirer_reference = acquirer_reference
|
43
43
|
@six_transaction_reference = six_transaction_reference
|
44
44
|
@approval_code = approval_code
|
45
|
-
@direct_debit = SixSaferpay::DirectDebit.new(direct_debit) if direct_debit
|
46
|
-
@invoice = SixSaferpay::Invoice.new(invoice) if invoice
|
45
|
+
@direct_debit = SixSaferpay::DirectDebit.new(**direct_debit.to_h) if direct_debit
|
46
|
+
@invoice = SixSaferpay::Invoice.new(**invoice.to_h) if invoice
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_hash
|
data/lib/six_saferpay/version.rb
CHANGED
data/six_saferpay.gemspec
CHANGED
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/fadendaten/six_saferpay"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new('~> 2.5')
|
18
|
+
|
17
19
|
# Specify which files should be added to the gem when it is released.
|
18
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
19
21
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
@@ -23,17 +25,17 @@ Gem::Specification.new do |spec|
|
|
23
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
26
|
spec.require_paths = ["lib"]
|
25
27
|
|
26
|
-
spec.add_runtime_dependency 'activesupport', '~> 6.1'
|
28
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.1'
|
27
29
|
|
28
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
30
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
29
31
|
spec.add_development_dependency 'rake', '~> 13.0'
|
30
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
31
|
-
spec.add_development_dependency 'vcr', '~>
|
32
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
33
|
-
spec.add_development_dependency 'dotenv', '~> 2.7'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.1'
|
33
|
+
spec.add_development_dependency 'vcr', '~> 6.0'
|
34
|
+
spec.add_development_dependency 'webmock', '~> 3.13'
|
35
|
+
spec.add_development_dependency 'dotenv', '~> 2.7'
|
34
36
|
spec.add_development_dependency 'pry', '~> 0.14'
|
35
|
-
spec.add_development_dependency 'tty-prompt', '~> 0.
|
36
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
37
|
-
spec.add_development_dependency 'spinning_wheel', '~> 0
|
37
|
+
spec.add_development_dependency 'tty-prompt', '~> 0.23'
|
38
|
+
spec.add_development_dependency 'simplecov', '~> 0.21'
|
39
|
+
spec.add_development_dependency 'spinning_wheel', '~> 1.0'
|
38
40
|
spec.add_development_dependency 'thor', '~> 1.1.0'
|
39
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six_saferpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fadendaten GmbH
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -18,9 +18,6 @@ dependencies:
|
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '6.1'
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 6.1.3
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,23 +25,20 @@ dependencies:
|
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '6.1'
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 6.1.3
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: bundler
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
32
|
- - "~>"
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
34
|
+
version: '2.2'
|
41
35
|
type: :development
|
42
36
|
prerelease: false
|
43
37
|
version_requirements: !ruby/object:Gem::Requirement
|
44
38
|
requirements:
|
45
39
|
- - "~>"
|
46
40
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
41
|
+
version: '2.2'
|
48
42
|
- !ruby/object:Gem::Dependency
|
49
43
|
name: rake
|
50
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,54 +59,42 @@ dependencies:
|
|
65
59
|
requirements:
|
66
60
|
- - "~>"
|
67
61
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
62
|
+
version: '3.1'
|
69
63
|
type: :development
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
66
|
requirements:
|
73
67
|
- - "~>"
|
74
68
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
69
|
+
version: '3.1'
|
76
70
|
- !ruby/object:Gem::Dependency
|
77
71
|
name: vcr
|
78
72
|
requirement: !ruby/object:Gem::Requirement
|
79
73
|
requirements:
|
80
74
|
- - "~>"
|
81
75
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
83
|
-
- - ">="
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 4.0.0
|
76
|
+
version: '6.0'
|
86
77
|
type: :development
|
87
78
|
prerelease: false
|
88
79
|
version_requirements: !ruby/object:Gem::Requirement
|
89
80
|
requirements:
|
90
81
|
- - "~>"
|
91
82
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 4.0.0
|
83
|
+
version: '6.0'
|
96
84
|
- !ruby/object:Gem::Dependency
|
97
85
|
name: webmock
|
98
86
|
requirement: !ruby/object:Gem::Requirement
|
99
87
|
requirements:
|
100
88
|
- - "~>"
|
101
89
|
- !ruby/object:Gem::Version
|
102
|
-
version: '3.
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '3.10'
|
90
|
+
version: '3.13'
|
106
91
|
type: :development
|
107
92
|
prerelease: false
|
108
93
|
version_requirements: !ruby/object:Gem::Requirement
|
109
94
|
requirements:
|
110
95
|
- - "~>"
|
111
96
|
- !ruby/object:Gem::Version
|
112
|
-
version: '3.
|
113
|
-
- - ">="
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '3.10'
|
97
|
+
version: '3.13'
|
116
98
|
- !ruby/object:Gem::Dependency
|
117
99
|
name: dotenv
|
118
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,9 +102,6 @@ dependencies:
|
|
120
102
|
- - "~>"
|
121
103
|
- !ruby/object:Gem::Version
|
122
104
|
version: '2.7'
|
123
|
-
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '2.7'
|
126
105
|
type: :development
|
127
106
|
prerelease: false
|
128
107
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -130,9 +109,6 @@ dependencies:
|
|
130
109
|
- - "~>"
|
131
110
|
- !ruby/object:Gem::Version
|
132
111
|
version: '2.7'
|
133
|
-
- - ">="
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '2.7'
|
136
112
|
- !ruby/object:Gem::Dependency
|
137
113
|
name: pry
|
138
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,42 +129,42 @@ dependencies:
|
|
153
129
|
requirements:
|
154
130
|
- - "~>"
|
155
131
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0.
|
132
|
+
version: '0.23'
|
157
133
|
type: :development
|
158
134
|
prerelease: false
|
159
135
|
version_requirements: !ruby/object:Gem::Requirement
|
160
136
|
requirements:
|
161
137
|
- - "~>"
|
162
138
|
- !ruby/object:Gem::Version
|
163
|
-
version: '0.
|
139
|
+
version: '0.23'
|
164
140
|
- !ruby/object:Gem::Dependency
|
165
141
|
name: simplecov
|
166
142
|
requirement: !ruby/object:Gem::Requirement
|
167
143
|
requirements:
|
168
144
|
- - "~>"
|
169
145
|
- !ruby/object:Gem::Version
|
170
|
-
version: '0.
|
146
|
+
version: '0.21'
|
171
147
|
type: :development
|
172
148
|
prerelease: false
|
173
149
|
version_requirements: !ruby/object:Gem::Requirement
|
174
150
|
requirements:
|
175
151
|
- - "~>"
|
176
152
|
- !ruby/object:Gem::Version
|
177
|
-
version: '0.
|
153
|
+
version: '0.21'
|
178
154
|
- !ruby/object:Gem::Dependency
|
179
155
|
name: spinning_wheel
|
180
156
|
requirement: !ruby/object:Gem::Requirement
|
181
157
|
requirements:
|
182
158
|
- - "~>"
|
183
159
|
- !ruby/object:Gem::Version
|
184
|
-
version: 0
|
160
|
+
version: '1.0'
|
185
161
|
type: :development
|
186
162
|
prerelease: false
|
187
163
|
version_requirements: !ruby/object:Gem::Requirement
|
188
164
|
requirements:
|
189
165
|
- - "~>"
|
190
166
|
- !ruby/object:Gem::Version
|
191
|
-
version: 0
|
167
|
+
version: '1.0'
|
192
168
|
- !ruby/object:Gem::Dependency
|
193
169
|
name: thor
|
194
170
|
requirement: !ruby/object:Gem::Requirement
|
@@ -327,7 +303,7 @@ files:
|
|
327
303
|
- lib/six_saferpay/models/installment_fee.rb
|
328
304
|
- lib/six_saferpay/models/installment_plans.rb
|
329
305
|
- lib/six_saferpay/models/invoice.rb
|
330
|
-
- lib/six_saferpay/models/
|
306
|
+
- lib/six_saferpay/models/item.rb
|
331
307
|
- lib/six_saferpay/models/liability.rb
|
332
308
|
- lib/six_saferpay/models/marketplace.rb
|
333
309
|
- lib/six_saferpay/models/mastercard_issuer_installments.rb
|
@@ -384,16 +360,16 @@ require_paths:
|
|
384
360
|
- lib
|
385
361
|
required_ruby_version: !ruby/object:Gem::Requirement
|
386
362
|
requirements:
|
387
|
-
- - "
|
363
|
+
- - "~>"
|
388
364
|
- !ruby/object:Gem::Version
|
389
|
-
version: '
|
365
|
+
version: '2.5'
|
390
366
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
391
367
|
requirements:
|
392
368
|
- - ">="
|
393
369
|
- !ruby/object:Gem::Version
|
394
370
|
version: '0'
|
395
371
|
requirements: []
|
396
|
-
rubygems_version: 3.1.
|
372
|
+
rubygems_version: 3.1.6
|
397
373
|
signing_key:
|
398
374
|
specification_version: 4
|
399
375
|
summary: Gem for the SIX Saferpay API
|