six_saferpay 1.16.2.4.0 → 2.0.0
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/.test.env +1 -1
- data/.travis.yml +2 -4
- data/Gemfile.lock +85 -70
- data/README.md +0 -18
- data/lib/six_saferpay/api/six_batch/responses/close_response.rb +2 -2
- data/lib/six_saferpay/api/six_payment_page/requests/initialize.rb +0 -4
- data/lib/six_saferpay/api/six_payment_page/responses/assert_response.rb +2 -11
- data/lib/six_saferpay/api/six_payment_page/responses/{initialize_response.rb → initalize_response.rb} +0 -0
- data/lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb +0 -4
- data/lib/six_saferpay/api/six_transaction/requests/authorize_direct.rb +0 -4
- data/lib/six_saferpay/api/six_transaction/requests/authorize_referenced.rb +0 -4
- data/lib/six_saferpay/api/six_transaction/requests/capture.rb +2 -11
- data/lib/six_saferpay/api/six_transaction/requests/initialize.rb +0 -4
- data/lib/six_saferpay/api/six_transaction/responses/authorize_direct_response.rb +2 -11
- data/lib/six_saferpay/api/six_transaction/responses/authorize_response.rb +3 -11
- data/lib/six_saferpay/api/six_transaction/responses/cancel_response.rb +1 -1
- data/lib/six_saferpay/api.rb +1 -1
- data/lib/six_saferpay/client.rb +2 -8
- data/lib/six_saferpay/models/address.rb +4 -4
- data/lib/six_saferpay/models/check_result.rb +2 -6
- data/lib/six_saferpay/models/payment_methods_options.rb +2 -4
- data/lib/six_saferpay/models/registration_result.rb +2 -11
- data/lib/six_saferpay/models/request_payment_means.rb +2 -6
- data/lib/six_saferpay/version.rb +1 -1
- data/six_saferpay.gemspec +8 -8
- metadata +25 -41
- data/lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb +0 -61
- data/lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb +0 -26
- data/lib/six_saferpay/clients/secure_pay_gate_api/client.rb +0 -23
- data/lib/six_saferpay/models/authentication.rb +0 -36
- data/lib/six_saferpay/models/authentication_result.rb +0 -20
- data/lib/six_saferpay/models/bankcontact.rb +0 -21
- data/lib/six_saferpay/models/chosen_plan.rb +0 -62
- data/lib/six_saferpay/models/custom_plan.rb +0 -4
- data/lib/six_saferpay/models/first_installment_amount.rb +0 -4
- data/lib/six_saferpay/models/ideal.rb +0 -18
- data/lib/six_saferpay/models/installment_fee.rb +0 -4
- data/lib/six_saferpay/models/installment_plans.rb +0 -73
- data/lib/six_saferpay/models/mastercard_issuer_installments.rb +0 -49
- data/lib/six_saferpay/models/payment_method_options.rb +0 -18
- data/lib/six_saferpay/models/saferpay_fields.rb +0 -18
- data/lib/six_saferpay/models/subsequent_installment_amount.rb +0 -4
- data/lib/six_saferpay/models/total_amont_due.rb +0 -4
@@ -8,7 +8,7 @@ module SixSaferpay
|
|
8
8
|
:gender,
|
9
9
|
:legal_form,
|
10
10
|
:street,
|
11
|
-
:
|
11
|
+
:street_2,
|
12
12
|
:zip,
|
13
13
|
:city,
|
14
14
|
:country_subdevision_code,
|
@@ -25,7 +25,7 @@ module SixSaferpay
|
|
25
25
|
gender: nil,
|
26
26
|
legal_form: nil,
|
27
27
|
street: nil,
|
28
|
-
|
28
|
+
street_2: nil,
|
29
29
|
zip: nil,
|
30
30
|
city: nil,
|
31
31
|
country_subdevision_code: nil,
|
@@ -40,7 +40,7 @@ module SixSaferpay
|
|
40
40
|
@gender = gender
|
41
41
|
@legal_form = legal_form
|
42
42
|
@street = street
|
43
|
-
@
|
43
|
+
@street_2 = street_2
|
44
44
|
@zip = zip
|
45
45
|
@city = city
|
46
46
|
@country_subdevision_code = country_subdevision_code
|
@@ -58,7 +58,7 @@ module SixSaferpay
|
|
58
58
|
hash.merge!(gender: @gender) if @gender
|
59
59
|
hash.merge!(legal_form: @legal_form) if @legal_form
|
60
60
|
hash.merge!(street: @street) if @street
|
61
|
-
hash.merge!(
|
61
|
+
hash.merge!(street_2: @street_2) if @street_2
|
62
62
|
hash.merge!(zip: @zip) if @zip
|
63
63
|
hash.merge!(city: @city) if @city
|
64
64
|
hash.merge!(country_subdevision_code: @country_subdevision_code) if @country_subdevision_code
|
@@ -2,23 +2,19 @@ module SixSaferpay
|
|
2
2
|
class CheckResult
|
3
3
|
|
4
4
|
attr_accessor(:result,
|
5
|
-
:message
|
6
|
-
:authentication
|
5
|
+
:message
|
7
6
|
)
|
8
7
|
|
9
8
|
def initialize(result:,
|
10
|
-
message:
|
11
|
-
authentication: nil)
|
9
|
+
message: )
|
12
10
|
@result = result
|
13
11
|
@message = message
|
14
|
-
@authentication = authentication
|
15
12
|
end
|
16
13
|
|
17
14
|
def to_hash
|
18
15
|
hash = Hash.new
|
19
16
|
hash.merge!(result: @result) if @result
|
20
17
|
hash.merge!(message: @message) if @message
|
21
|
-
hash.merge!(authentication: @authentication.to_h) if @authentication
|
22
18
|
hash
|
23
19
|
end
|
24
20
|
alias_method :to_h, :to_hash
|
@@ -1,17 +1,15 @@
|
|
1
1
|
module SixSaferpay
|
2
2
|
class PaymentMethodsOptions
|
3
3
|
|
4
|
-
attr_accessor(:alipay
|
4
|
+
attr_accessor(:alipay)
|
5
5
|
|
6
|
-
def initialize(alipay: nil
|
6
|
+
def initialize(alipay: nil)
|
7
7
|
@alipay = SixSaferpay::Alipay.new(alipay.to_h) if alipay
|
8
|
-
@ideal = SixSaferpay::Ideal.new(ideal.to_h) if ideal
|
9
8
|
end
|
10
9
|
|
11
10
|
def to_hash
|
12
11
|
hash = Hash.new
|
13
12
|
hash.merge!(alipay: @alipay.to_h) if @alipay
|
14
|
-
hash.merge!(ideal: @ideal.to_h) if @ideal
|
15
13
|
hash
|
16
14
|
end
|
17
15
|
alias_method :to_h, :to_hash
|
@@ -3,23 +3,17 @@ module SixSaferpay
|
|
3
3
|
|
4
4
|
attr_accessor(:success,
|
5
5
|
:fd_alias,
|
6
|
-
:error
|
7
|
-
:authentication_result
|
6
|
+
:error
|
8
7
|
)
|
9
8
|
|
10
9
|
|
11
10
|
def initialize(success:,
|
12
11
|
fd_alias: nil,
|
13
|
-
error: nil
|
14
|
-
authentication_result: nil)
|
12
|
+
error: nil)
|
15
13
|
|
16
14
|
@success = success
|
17
15
|
@fd_alias = SixSaferpay::RegistrationAlias.new(fd_alias.to_h) if fd_alias
|
18
16
|
@error = SixSaferpay::RegistrationError.new(error.to_h) if error
|
19
|
-
if authentication_result
|
20
|
-
@authentication_result = SixSaferpay::AuthenticationResult
|
21
|
-
.new(authentication_result.to_h)
|
22
|
-
end
|
23
17
|
end
|
24
18
|
|
25
19
|
def to_hash
|
@@ -27,9 +21,6 @@ module SixSaferpay
|
|
27
21
|
hash.merge!(success: @success) if !@success.nil?
|
28
22
|
hash.merge!(fd_alias: @fd_alias.to_h) if @fd_alias
|
29
23
|
hash.merge!(error: @error.to_h) if @error
|
30
|
-
if authentication_result
|
31
|
-
hash.merge!(authentication_result: @authentication_result.to_h)
|
32
|
-
end
|
33
24
|
hash
|
34
25
|
end
|
35
26
|
alias_method :to_h, :to_hash
|
@@ -3,19 +3,16 @@ module SixSaferpay
|
|
3
3
|
|
4
4
|
attr_accessor(:card,
|
5
5
|
:bank_account,
|
6
|
-
:fd_alias
|
7
|
-
:saferpay_fields
|
6
|
+
:fd_alias
|
8
7
|
)
|
9
8
|
|
10
9
|
def initialize(card: nil,
|
11
10
|
bank_account: nil,
|
12
|
-
fd_alias: nil
|
13
|
-
saferpay_fields: nil
|
11
|
+
fd_alias: nil
|
14
12
|
)
|
15
13
|
@card = SixSaferpay::RequestCard.new(card.to_h) if card
|
16
14
|
@bank_account = SixSaferpay::BankAccount.new(bank_account.to_h) if bank_account
|
17
15
|
@fd_alias = SixSaferpay::PaymentMeansAlias.new(fd_alias.to_h) if fd_alias
|
18
|
-
@saferpay_fields = SixSaferpay::SaferpayFields.new(saferpay_fields.to_h) if saferpay_fields
|
19
16
|
end
|
20
17
|
|
21
18
|
def to_hash
|
@@ -23,7 +20,6 @@ module SixSaferpay
|
|
23
20
|
hash.merge!(card: @card.to_h) if @card
|
24
21
|
hash.merge!(bank_account: @bank_account.to_h) if @bank_account
|
25
22
|
hash.merge!(fd_alias: @fd_alias.to_h) if @fd_alias
|
26
|
-
hash.merge!(saferpay_fields: @saferpay_fields.to_h) if @saferpay_fields
|
27
23
|
hash
|
28
24
|
end
|
29
25
|
alias_method :to_h, :to_hash
|
data/lib/six_saferpay/version.rb
CHANGED
data/six_saferpay.gemspec
CHANGED
@@ -23,16 +23,16 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
|
-
spec.add_runtime_dependency 'activesupport', '~>
|
26
|
+
spec.add_runtime_dependency 'activesupport', '~> 5.0', '>= 5.0.0.0'
|
27
27
|
|
28
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
29
|
-
spec.add_development_dependency 'rake', '~>
|
28
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
31
|
spec.add_development_dependency 'vcr', '~> 4.0', '>= 4.0.0'
|
32
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
32
|
+
spec.add_development_dependency 'webmock', '~> 3.5', '>= 3.5.1'
|
33
33
|
spec.add_development_dependency 'dotenv', '~> 2.7', '>= 2.7'
|
34
|
-
spec.add_development_dependency 'pry', '~> 0.
|
35
|
-
spec.add_development_dependency 'tty-prompt', '~> 0.
|
36
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
37
|
-
spec.add_development_dependency 'spinning_wheel', '~> 0.
|
34
|
+
spec.add_development_dependency 'pry', '~> 0.12.0'
|
35
|
+
spec.add_development_dependency 'tty-prompt', '~> 0.18'
|
36
|
+
spec.add_development_dependency 'simplecov', '~> 0.16'
|
37
|
+
spec.add_development_dependency 'spinning_wheel', '~> 0.1'
|
38
38
|
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:
|
4
|
+
version: 2.0.0
|
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:
|
12
|
+
date: 2019-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -17,48 +17,48 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '5.0'
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 5.0.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - "~>"
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
30
|
+
version: '5.0'
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0.0
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: bundler
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.0'
|
41
41
|
type: :development
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.0'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '10.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '10.0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rspec
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,20 +99,20 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '3.
|
102
|
+
version: '3.5'
|
103
103
|
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
105
|
+
version: 3.5.1
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '3.
|
112
|
+
version: '3.5'
|
113
113
|
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
115
|
+
version: 3.5.1
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: dotenv
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,56 +139,56 @@ dependencies:
|
|
139
139
|
requirements:
|
140
140
|
- - "~>"
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
142
|
+
version: 0.12.0
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: 0.12.0
|
150
150
|
- !ruby/object:Gem::Dependency
|
151
151
|
name: tty-prompt
|
152
152
|
requirement: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '0.
|
156
|
+
version: '0.18'
|
157
157
|
type: :development
|
158
158
|
prerelease: false
|
159
159
|
version_requirements: !ruby/object:Gem::Requirement
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '0.
|
163
|
+
version: '0.18'
|
164
164
|
- !ruby/object:Gem::Dependency
|
165
165
|
name: simplecov
|
166
166
|
requirement: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
168
|
- - "~>"
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: '0.
|
170
|
+
version: '0.16'
|
171
171
|
type: :development
|
172
172
|
prerelease: false
|
173
173
|
version_requirements: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
175
|
- - "~>"
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: '0.
|
177
|
+
version: '0.16'
|
178
178
|
- !ruby/object:Gem::Dependency
|
179
179
|
name: spinning_wheel
|
180
180
|
requirement: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - "~>"
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: 0.
|
184
|
+
version: '0.1'
|
185
185
|
type: :development
|
186
186
|
prerelease: false
|
187
187
|
version_requirements: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: 0.
|
191
|
+
version: '0.1'
|
192
192
|
description: This Gem helps you consume the SIX Saferpay API. Accoring the documentation
|
193
193
|
of API of SIX Saferpay you can define your request models and get a response object
|
194
194
|
back.
|
@@ -221,7 +221,7 @@ files:
|
|
221
221
|
- lib/six_saferpay/api/six_payment_page/requests/assert.rb
|
222
222
|
- lib/six_saferpay/api/six_payment_page/requests/initialize.rb
|
223
223
|
- lib/six_saferpay/api/six_payment_page/responses/assert_response.rb
|
224
|
-
- lib/six_saferpay/api/six_payment_page/responses/
|
224
|
+
- lib/six_saferpay/api/six_payment_page/responses/initalize_response.rb
|
225
225
|
- lib/six_saferpay/api/six_secure_card_data/requests/assert_insert.rb
|
226
226
|
- lib/six_saferpay/api/six_secure_card_data/requests/delete.rb
|
227
227
|
- lib/six_saferpay/api/six_secure_card_data/requests/insert.rb
|
@@ -232,8 +232,6 @@ files:
|
|
232
232
|
- lib/six_saferpay/api/six_secure_card_data/responses/insert_direct_response.rb
|
233
233
|
- lib/six_saferpay/api/six_secure_card_data/responses/insert_response.rb
|
234
234
|
- lib/six_saferpay/api/six_secure_card_data/responses/update_response.rb
|
235
|
-
- lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb
|
236
|
-
- lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb
|
237
235
|
- lib/six_saferpay/api/six_transaction/requests/adjust_amount.rb
|
238
236
|
- lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb
|
239
237
|
- lib/six_saferpay/api/six_transaction/requests/assert_capture.rb
|
@@ -269,7 +267,6 @@ files:
|
|
269
267
|
- lib/six_saferpay/api/six_transaction/responses/refund_direct_response.rb
|
270
268
|
- lib/six_saferpay/api/six_transaction/responses/refund_response.rb
|
271
269
|
- lib/six_saferpay/client.rb
|
272
|
-
- lib/six_saferpay/clients/secure_pay_gate_api/client.rb
|
273
270
|
- lib/six_saferpay/errors/error.rb
|
274
271
|
- lib/six_saferpay/models/address.rb
|
275
272
|
- lib/six_saferpay/models/address_form.rb
|
@@ -277,11 +274,8 @@ files:
|
|
277
274
|
- lib/six_saferpay/models/alias_card.rb
|
278
275
|
- lib/six_saferpay/models/alipay.rb
|
279
276
|
- lib/six_saferpay/models/amount.rb
|
280
|
-
- lib/six_saferpay/models/authentication.rb
|
281
|
-
- lib/six_saferpay/models/authentication_result.rb
|
282
277
|
- lib/six_saferpay/models/bancontact.rb
|
283
278
|
- lib/six_saferpay/models/bank_account.rb
|
284
|
-
- lib/six_saferpay/models/bankcontact.rb
|
285
279
|
- lib/six_saferpay/models/billing_address.rb
|
286
280
|
- lib/six_saferpay/models/billing_address_form.rb
|
287
281
|
- lib/six_saferpay/models/billpay.rb
|
@@ -290,9 +284,7 @@ files:
|
|
290
284
|
- lib/six_saferpay/models/card_form.rb
|
291
285
|
- lib/six_saferpay/models/check.rb
|
292
286
|
- lib/six_saferpay/models/check_result.rb
|
293
|
-
- lib/six_saferpay/models/chosen_plan.rb
|
294
287
|
- lib/six_saferpay/models/client_info.rb
|
295
|
-
- lib/six_saferpay/models/custom_plan.rb
|
296
288
|
- lib/six_saferpay/models/dcc.rb
|
297
289
|
- lib/six_saferpay/models/delivery_address.rb
|
298
290
|
- lib/six_saferpay/models/delivery_address_form.rb
|
@@ -300,16 +292,11 @@ files:
|
|
300
292
|
- lib/six_saferpay/models/error.rb
|
301
293
|
- lib/six_saferpay/models/fee.rb
|
302
294
|
- lib/six_saferpay/models/fee_refund.rb
|
303
|
-
- lib/six_saferpay/models/first_installment_amount.rb
|
304
295
|
- lib/six_saferpay/models/fraud_free.rb
|
305
|
-
- lib/six_saferpay/models/ideal.rb
|
306
296
|
- lib/six_saferpay/models/installment.rb
|
307
|
-
- lib/six_saferpay/models/installment_fee.rb
|
308
|
-
- lib/six_saferpay/models/installment_plans.rb
|
309
297
|
- lib/six_saferpay/models/invoice.rb
|
310
298
|
- lib/six_saferpay/models/liability.rb
|
311
299
|
- lib/six_saferpay/models/marketplace.rb
|
312
|
-
- lib/six_saferpay/models/mastercard_issuer_installments.rb
|
313
300
|
- lib/six_saferpay/models/notification.rb
|
314
301
|
- lib/six_saferpay/models/options.rb
|
315
302
|
- lib/six_saferpay/models/payee.rb
|
@@ -317,7 +304,6 @@ files:
|
|
317
304
|
- lib/six_saferpay/models/payer_amount.rb
|
318
305
|
- lib/six_saferpay/models/payment.rb
|
319
306
|
- lib/six_saferpay/models/payment_means_alias.rb
|
320
|
-
- lib/six_saferpay/models/payment_method_options.rb
|
321
307
|
- lib/six_saferpay/models/payment_methods_options.rb
|
322
308
|
- lib/six_saferpay/models/pending_notification.rb
|
323
309
|
- lib/six_saferpay/models/processing_data.rb
|
@@ -335,12 +321,9 @@ files:
|
|
335
321
|
- lib/six_saferpay/models/response_header.rb
|
336
322
|
- lib/six_saferpay/models/response_payment_means.rb
|
337
323
|
- lib/six_saferpay/models/return_urls.rb
|
338
|
-
- lib/six_saferpay/models/saferpay_fields.rb
|
339
324
|
- lib/six_saferpay/models/six_transaction.rb
|
340
325
|
- lib/six_saferpay/models/styling.rb
|
341
|
-
- lib/six_saferpay/models/subsequent_installment_amount.rb
|
342
326
|
- lib/six_saferpay/models/three_ds.rb
|
343
|
-
- lib/six_saferpay/models/total_amont_due.rb
|
344
327
|
- lib/six_saferpay/models/transaction.rb
|
345
328
|
- lib/six_saferpay/models/transaction_reference.rb
|
346
329
|
- lib/six_saferpay/models/twint.rb
|
@@ -368,7 +351,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
351
|
- !ruby/object:Gem::Version
|
369
352
|
version: '0'
|
370
353
|
requirements: []
|
371
|
-
|
354
|
+
rubyforge_project:
|
355
|
+
rubygems_version: 2.7.6
|
372
356
|
signing_key:
|
373
357
|
specification_version: 4
|
374
358
|
summary: Gem for the SIX Saferpay API
|
@@ -1,61 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
module SixSecurePayGateOffer
|
3
|
-
class CreateOffer
|
4
|
-
|
5
|
-
attr_accessor(:payment,
|
6
|
-
:expiration_date,
|
7
|
-
:config_set,
|
8
|
-
:payer,
|
9
|
-
:billing_address_form
|
10
|
-
)
|
11
|
-
|
12
|
-
def initialize(payment: ,
|
13
|
-
expiration_date: ,
|
14
|
-
config_set: nil,
|
15
|
-
payer: ,
|
16
|
-
billing_address_form: nil
|
17
|
-
)
|
18
|
-
|
19
|
-
@payment = SixSaferpay::Payment.new(payment.to_h) if payment
|
20
|
-
@expiration_date = expiration_date
|
21
|
-
@config_set = config_set
|
22
|
-
@payer = SixSaferpay::Payer.new(payer.to_h) if payer
|
23
|
-
@billing_address_form =
|
24
|
-
SixSaferpay::BillingAddressForm.new(billing_address_form) if billing_address_form
|
25
|
-
end
|
26
|
-
|
27
|
-
def to_hash
|
28
|
-
hash = Hash.new
|
29
|
-
hash.merge!(payment: @payment.to_h) if @payment
|
30
|
-
hash.merge!(expiration_date: @expiration_date) if @expiration_date
|
31
|
-
hash.merge!(config_set: @config_set) if @config_set
|
32
|
-
hash.merge!(payer: @payer.to_h) if @payer
|
33
|
-
hash.merge!(billing_address_form: @billing_address_form.to_h) if @billing_address_form
|
34
|
-
hash
|
35
|
-
end
|
36
|
-
alias_method :to_h, :to_hash
|
37
|
-
|
38
|
-
def to_json
|
39
|
-
to_hash.to_json
|
40
|
-
end
|
41
|
-
|
42
|
-
def url
|
43
|
-
"/rest/customers/#{customer_id}/terminals/#{terminal_id}/spg-offers"
|
44
|
-
end
|
45
|
-
|
46
|
-
def response_class
|
47
|
-
SixSaferpay::SixSecurePayGateOffer::CreateOfferResponse
|
48
|
-
end
|
49
|
-
|
50
|
-
private
|
51
|
-
|
52
|
-
def customer_id
|
53
|
-
SixSaferpay.config.customer_id
|
54
|
-
end
|
55
|
-
|
56
|
-
def terminal_id
|
57
|
-
SixSaferpay.config.terminal_id
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
module SixSecurePayGateOffer
|
3
|
-
class CreateOfferResponse
|
4
|
-
|
5
|
-
attr_accessor(:offer_id,
|
6
|
-
:payment_link
|
7
|
-
)
|
8
|
-
|
9
|
-
def initialize(offer_id:,
|
10
|
-
payment_link: )
|
11
|
-
|
12
|
-
@offer_id = offer_id if offer_id
|
13
|
-
@payment_link = payment_link if payment_link
|
14
|
-
end
|
15
|
-
|
16
|
-
def to_hash
|
17
|
-
hash = Hash.new
|
18
|
-
hash.merge!(offer_id: @offer_id) if @offer_id
|
19
|
-
hash.merge!(payment_link: @payment_link) if @payment_link
|
20
|
-
hash
|
21
|
-
end
|
22
|
-
alias_method :to_h, :to_hash
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
module SecurePayGateApi
|
3
|
-
class Client < SixSaferpay::Client
|
4
|
-
|
5
|
-
protected
|
6
|
-
|
7
|
-
def header
|
8
|
-
super.merge!(
|
9
|
-
{
|
10
|
-
'Saferpay-ApiVersion' => SixSaferpay::API::VERSION,
|
11
|
-
'Saferpay-RequestId' => request_id()
|
12
|
-
}
|
13
|
-
)
|
14
|
-
end
|
15
|
-
|
16
|
-
private
|
17
|
-
|
18
|
-
def request_id
|
19
|
-
@request_id ||= SecureRandom.uuid
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
class Authentication
|
3
|
-
|
4
|
-
attr_accessor(
|
5
|
-
:result,
|
6
|
-
:message,
|
7
|
-
:xid,
|
8
|
-
:exemption,
|
9
|
-
:three_ds_challenge
|
10
|
-
)
|
11
|
-
|
12
|
-
def initialize(result: nil, # ATTENTION: This is in some case mandatory
|
13
|
-
message: nil, # ATTENTION: This is in some case mandatory
|
14
|
-
xid: nil,
|
15
|
-
exemption: nil,
|
16
|
-
three_ds_challenge: nil)
|
17
|
-
@result = result
|
18
|
-
@message = message
|
19
|
-
@xid = xid
|
20
|
-
@exemption = exemption
|
21
|
-
@three_ds_challenge = three_ds_challenge
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_hash
|
25
|
-
hash = Hash.new
|
26
|
-
hash.merge!(result: @result) if @result
|
27
|
-
hash.merge!(message: @message) if @message
|
28
|
-
hash.merge!(xid: @xid) if @xid
|
29
|
-
hash.merge!(exemption: @exemption) if @exemption
|
30
|
-
hash.merge!(three_ds_challenge: @three_ds_challenge) if @three_ds_challenge
|
31
|
-
hash
|
32
|
-
end
|
33
|
-
alias_method :to_h, :to_hash
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
class AuthenticationResult
|
3
|
-
|
4
|
-
attr_accessor :result, :message
|
5
|
-
|
6
|
-
def initialize(result:, message:)
|
7
|
-
@result = result
|
8
|
-
@message = message
|
9
|
-
end
|
10
|
-
|
11
|
-
def to_hash
|
12
|
-
hash = Hash.new
|
13
|
-
hash.merge!(result: @result)
|
14
|
-
hash.merge!(message: @message)
|
15
|
-
hash
|
16
|
-
end
|
17
|
-
alias_method :to_h, :to_hash
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module SixSaferpay
|
2
|
-
class Bankcontact
|
3
|
-
|
4
|
-
attr_accessor(:app_default_redirect_url,
|
5
|
-
:app_completion_redirect_url)
|
6
|
-
|
7
|
-
def initialize(app_default_redirect_url: nil, app_completion_redirect_url: nil)
|
8
|
-
@app_default_redirect_url = app_default_redirect_url
|
9
|
-
@app_completion_redirect_url = app_completion_redirect_url
|
10
|
-
end
|
11
|
-
|
12
|
-
def to_hash
|
13
|
-
hash = Hash.new
|
14
|
-
hash.merge!(app_default_redirect_url: @app_default_redirect_url) if @app_default_redirect_url
|
15
|
-
hash.merge!(app_completion_redirect_url: @app_completion_redirect_url) if @app_completion_redirect_url
|
16
|
-
hash
|
17
|
-
end
|
18
|
-
alias_method :to_h, :to_hash
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|