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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.test.env +1 -1
  4. data/.travis.yml +2 -4
  5. data/Gemfile.lock +85 -70
  6. data/README.md +0 -18
  7. data/lib/six_saferpay/api/six_batch/responses/close_response.rb +2 -2
  8. data/lib/six_saferpay/api/six_payment_page/requests/initialize.rb +0 -4
  9. data/lib/six_saferpay/api/six_payment_page/responses/assert_response.rb +2 -11
  10. data/lib/six_saferpay/api/six_payment_page/responses/{initialize_response.rb → initalize_response.rb} +0 -0
  11. data/lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb +0 -4
  12. data/lib/six_saferpay/api/six_transaction/requests/authorize_direct.rb +0 -4
  13. data/lib/six_saferpay/api/six_transaction/requests/authorize_referenced.rb +0 -4
  14. data/lib/six_saferpay/api/six_transaction/requests/capture.rb +2 -11
  15. data/lib/six_saferpay/api/six_transaction/requests/initialize.rb +0 -4
  16. data/lib/six_saferpay/api/six_transaction/responses/authorize_direct_response.rb +2 -11
  17. data/lib/six_saferpay/api/six_transaction/responses/authorize_response.rb +3 -11
  18. data/lib/six_saferpay/api/six_transaction/responses/cancel_response.rb +1 -1
  19. data/lib/six_saferpay/api.rb +1 -1
  20. data/lib/six_saferpay/client.rb +2 -8
  21. data/lib/six_saferpay/models/address.rb +4 -4
  22. data/lib/six_saferpay/models/check_result.rb +2 -6
  23. data/lib/six_saferpay/models/payment_methods_options.rb +2 -4
  24. data/lib/six_saferpay/models/registration_result.rb +2 -11
  25. data/lib/six_saferpay/models/request_payment_means.rb +2 -6
  26. data/lib/six_saferpay/version.rb +1 -1
  27. data/six_saferpay.gemspec +8 -8
  28. metadata +25 -41
  29. data/lib/six_saferpay/api/six_secure_pay_gate_offer/requests/create_offer.rb +0 -61
  30. data/lib/six_saferpay/api/six_secure_pay_gate_offer/responses/create_offer_response.rb +0 -26
  31. data/lib/six_saferpay/clients/secure_pay_gate_api/client.rb +0 -23
  32. data/lib/six_saferpay/models/authentication.rb +0 -36
  33. data/lib/six_saferpay/models/authentication_result.rb +0 -20
  34. data/lib/six_saferpay/models/bankcontact.rb +0 -21
  35. data/lib/six_saferpay/models/chosen_plan.rb +0 -62
  36. data/lib/six_saferpay/models/custom_plan.rb +0 -4
  37. data/lib/six_saferpay/models/first_installment_amount.rb +0 -4
  38. data/lib/six_saferpay/models/ideal.rb +0 -18
  39. data/lib/six_saferpay/models/installment_fee.rb +0 -4
  40. data/lib/six_saferpay/models/installment_plans.rb +0 -73
  41. data/lib/six_saferpay/models/mastercard_issuer_installments.rb +0 -49
  42. data/lib/six_saferpay/models/payment_method_options.rb +0 -18
  43. data/lib/six_saferpay/models/saferpay_fields.rb +0 -18
  44. data/lib/six_saferpay/models/subsequent_installment_amount.rb +0 -4
  45. data/lib/six_saferpay/models/total_amont_due.rb +0 -4
@@ -1,62 +0,0 @@
1
- module SixSaferpay
2
- class ChosenPlan
3
-
4
- attr_accessor(
5
- :minimum_number_of_installments,
6
- :maximum_number_of_installments,
7
- :interest_rate,
8
- :installment_fee,
9
- :annual_percentage_rate,
10
- :total_amount_due,
11
- )
12
-
13
- def initialize(
14
- minimum_number_of_installments: ,
15
- maximum_number_of_installments: ,
16
- interest_rate: nil,
17
- installment_fee: nil,
18
- annual_percentage_rate: nil,
19
- total_amount_due: nil
20
- )
21
- @minimum_number_of_installments =
22
- minimum_number_of_installments
23
- @maximum_number_of_installments =
24
- maximum_number_of_installments
25
- @interest_rate = interest_rate
26
- if installment_fee
27
- @installment_fee = SixSaferpay::InstallmentFee
28
- .new(installment_fee.to_h)
29
- end
30
- if annual_percentage_rate
31
- @annual_percentage_rate = annual_percentage_rate
32
- end
33
- if total_amount_due
34
- @total_amount_due = SixSaferpay::TotalAmountDue
35
- .new(total_amount_due.to_h)
36
- end
37
- end
38
-
39
- def to_hash
40
- hash = Hash.new
41
- hash.merge!(minimum_number_of_installments:
42
- @minimum_number_of_installments)
43
- hash.merge!(maximum_number_of_installments:
44
- @maximum_number_of_installments)
45
- if @interest_rate
46
- hash.merge!(interest_rate: @interest_rate)
47
- end
48
- if @installment_fee
49
- hash.merge!(installment_fee: @installment_fee.to_h)
50
- end
51
- if @annual_percentage_rate
52
- hash.merge!(annual_percentage_rate: @annual_percentage_rate)
53
- end
54
- if @total_amount_due
55
- hash.merge!(total_amount_due: @total_amount_due.to_h)
56
- end
57
- hash
58
- end
59
- alias_method :to_h, :to_hash
60
-
61
- end
62
- end
@@ -1,4 +0,0 @@
1
- module SixSaferpay
2
- class CustomPlan < ChosenPlan
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module SixSaferpay
2
- class FirstInstallmentAmount < Amount
3
- end
4
- end
@@ -1,18 +0,0 @@
1
- module SixSaferpay
2
- class Ideal
3
-
4
- attr_accessor(:issuer_id)
5
-
6
- def initialize(issuer_id:)
7
- @issuer_id = issuer_id
8
- end
9
-
10
- def to_hash
11
- hash = Hash.new
12
- hash.merge!(issuer_id: @issuer_id) if @issuer_id
13
- hash
14
- end
15
- alias_method :to_h, :to_hash
16
-
17
- end
18
- end
@@ -1,4 +0,0 @@
1
- module SixSaferpay
2
- class InstallmentFee < Amount
3
- end
4
- end
@@ -1,73 +0,0 @@
1
- module SixSaferpay
2
- class InstallmentPlans
3
-
4
- attr_accessor(
5
- :number_of_installments,
6
- :interest_rate,
7
- :installment_fee,
8
- :annual_percentage_rate,
9
- :first_installment_amount,
10
- :subsequent_installment_amount,
11
- :total_amount_due
12
- )
13
-
14
- def initialize(
15
- number_of_installments: ,
16
- interest_rate: nil,
17
- installment_fee: nil,
18
- annual_percentage_rate: nil,
19
- first_installment_amount: nil,
20
- subsequent_installment_amount: nil,
21
- total_amount_due: nil
22
- )
23
- @number_of_installments = number_of_installments
24
- @interest_rate = interest_rate
25
- if installment_fee
26
- @installment_fee = SixSaferpay::InstallmentFee
27
- .new(installment_fee.to_h)
28
- end
29
- if annual_percentage_rate
30
- @annual_percentage_rate = annual_percentage_rate
31
- end
32
- if first_installment_amount
33
- @first_installment_amount = SixSaferpay::FirstInstallmentAmount
34
- .new(first_installment_amount.to_h)
35
- end
36
- if subsequent_installment_amount
37
- @subsequent_installment_amount = SixSaferpay::SubsequentInstallmentAmount
38
- .new(subsequent_installment_amount.to_h)
39
- end
40
- if total_amount_due
41
- @total_amount_due = SixSaferpay::TotalAmountDue
42
- .new(total_amount_due.to_h)
43
- end
44
- end
45
-
46
- def to_hash
47
- hash = Hash.new
48
- hash.merge!(number_of_installments: @number_of_installments)
49
- if @interest_rate
50
- hash.merge!(interest_rate: @interest_rate)
51
- end
52
- if @installment_fee
53
- hash.merge!(installment_fee: @installment_fee.to_h)
54
- end
55
- if @annual_percentage_rate
56
- hash.merge!(annual_percentage_rate: @annual_percentage_rate)
57
- end
58
- if @first_installment_amount
59
- hash.merge!(first_installment_amount: @first_installment_amount.to_h)
60
- end
61
- if @subsequent_installment_amount
62
- hash.merge!(subsequent_installment_amount: @subsequent_installment_amount.to_h)
63
- end
64
- if @total_amount_due
65
- hash.merge!(total_amount_due: @total_amount_due.to_h)
66
- end
67
- hash
68
- end
69
- alias_method :to_h, :to_hash
70
-
71
- end
72
- end
73
-
@@ -1,49 +0,0 @@
1
- module SixSaferpay
2
- class MastercardIssuerInstallments
3
-
4
- attr_accessor(
5
- :installment_plans,
6
- :custom_plan,
7
- :chosen_plan,
8
- :receipt_free_text
9
- )
10
-
11
- def initialize(
12
- installment_plans: nil,
13
- custom_plan: nil,
14
- chosen_plan: nil,
15
- receipt_free_text: nil
16
- )
17
- if installment_plans
18
- @installment_plans = SixSaferpay::InstallmentPlans
19
- .new(installment_plans.to_h)
20
- end
21
- if custom_plan
22
- @custom_plan = SixSaferpay::CustomPlan
23
- .new(custom_plan)
24
- end
25
- if chosen_plan
26
- @chosen_plan = SixSaferpay::ChosenPlan
27
- .new(chosen_plan.to_h)
28
- end
29
- @receipt_free_text = receipt_free_text
30
- end
31
-
32
- def to_hash
33
- hash = Hash.new
34
- if @installment_plans
35
- hash.merge!(installment_plans: @installment_plans.to_h)
36
- end
37
- if @custom_plan
38
- hash.merge!(custom_plan: @custom_plan.to_h)
39
- end
40
- if @chosen_plan
41
- hash.merge!(chosen_plan: @chosen_plan.to_h)
42
- end
43
- hash.merge!(receipt_free_text: @receipt_free_text)
44
- hash
45
- end
46
- alias_method :to_h, :to_hash
47
-
48
- end
49
- end
@@ -1,18 +0,0 @@
1
- module SixSaferpay
2
- class PaymentMethodOptions
3
-
4
- attr_accessor(:bankcontact)
5
-
6
- def initialize(bankcontact: nil)
7
- @bankcontact = SixSaferpay::Bankcontact.new(bankcontact.to_h) if bankcontact
8
- end
9
-
10
- def to_hash
11
- hash = Hash.new
12
- hash.merge!(bankcontact: @bankcontact.to_h) if @bankcontact
13
- hash
14
- end
15
- alias_method :to_h, :to_hash
16
-
17
- end
18
- end
@@ -1,18 +0,0 @@
1
- module SixSaferpay
2
- class SaferpayFields
3
-
4
- attr_accessor :token
5
-
6
- def initialize(token: )
7
- @token = token
8
- end
9
-
10
- def to_hash
11
- hash = Hash.new
12
- hash.merge!(token: @token) if @token
13
- hash
14
- end
15
- alias_method :to_h, :to_hash
16
-
17
- end
18
- end
@@ -1,4 +0,0 @@
1
- module SixSaferpay
2
- class SubsequentInstallmentAmount < Amount
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module SixSaferpay
2
- class TotalAmountDue < Amount
3
- end
4
- end