direct-sdk-ruby 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cca7811f8c12b5e503c5b6a41956fde1b930e4c0673307c86d125c8970e32f3
4
- data.tar.gz: 3de1950b8190b66188b053b5011dd69e1a4d29b5052d58e858db7b29b0014fbd
3
+ metadata.gz: 368be9daafdb29379a5a1a0fa0f182f5c6700c95b1194188363ad1f278f598c1
4
+ data.tar.gz: abe512b988eb61a082b1096f8c394adfda5e13e212bdc3a286a888e005e556fb
5
5
  SHA512:
6
- metadata.gz: 350075b2c0a98a06245ab738b3724b887c3cf11f602cb70ff057fff87882e3deeb9153a4683bf56fa6bfcc155d77a7f95d7e96c635460f0dde8251425efa45a8
7
- data.tar.gz: cb1555157903e1eef77ca7b18e9008a96985d0d67ec89d4aca43112f72942f2ff6f1f68dff3f94d14bb8bab0204af64044ef86179f42196975ad79d7d98abf1d
6
+ metadata.gz: cfba82d0dcf563684dd6c3f15804d85ebb998accb3406cac529292619b3d411e21a1a5f8bdc2ffc2a2bd70b9d81bffd4ac89feb1280643e616b23a0de7acac80
7
+ data.tar.gz: eb7a6e6550e453152d0748db40859888dc99aae02f42ea03251d328ac39b88a615c1d71d49dfb4cf957ce3b2a1585191c201e5671e5aedce63af746418a5de06
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'direct-sdk-ruby'
3
- spec.version = '1.2.0'
3
+ spec.version = '1.3.0'
4
4
  spec.authors = ['Ingenico ePayments']
5
5
  spec.email = ['60233882+ingenico-dev-team@users.noreply.github.com']
6
6
  spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Direct Server API}
@@ -3,26 +3,25 @@
3
3
  # https://support.direct.ingenico.com/documentation/api/reference/
4
4
  #
5
5
  require 'ingenico/direct/sdk/data_object'
6
- require 'ingenico/direct/sdk/domain/card_payment_method_specific_input_for_hosted_checkout'
7
6
  require 'ingenico/direct/sdk/domain/payment_product_filters_hosted_checkout'
8
7
 
9
8
  module Ingenico::Direct::SDK
10
9
  module Domain
11
10
 
12
- # @attr [Ingenico::Direct::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout] card_payment_method_specific_input
13
11
  # @attr [true/false] is_recurring
14
12
  # @attr [String] locale
15
13
  # @attr [Ingenico::Direct::SDK::Domain::PaymentProductFiltersHostedCheckout] payment_product_filters
16
14
  # @attr [String] return_url
15
+ # @attr [Integer] session_timeout
17
16
  # @attr [true/false] show_result_page
18
17
  # @attr [String] tokens
19
18
  # @attr [String] variant
20
19
  class HostedCheckoutSpecificInput < Ingenico::Direct::SDK::DataObject
21
- attr_accessor :card_payment_method_specific_input
22
20
  attr_accessor :is_recurring
23
21
  attr_accessor :locale
24
22
  attr_accessor :payment_product_filters
25
23
  attr_accessor :return_url
24
+ attr_accessor :session_timeout
26
25
  attr_accessor :show_result_page
27
26
  attr_accessor :tokens
28
27
  attr_accessor :variant
@@ -30,11 +29,11 @@ module Ingenico::Direct::SDK
30
29
  # @return (Hash)
31
30
  def to_h
32
31
  hash = super
33
- hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
34
32
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
35
33
  hash['locale'] = @locale unless @locale.nil?
36
34
  hash['paymentProductFilters'] = @payment_product_filters.to_h if @payment_product_filters
37
35
  hash['returnUrl'] = @return_url unless @return_url.nil?
36
+ hash['sessionTimeout'] = @session_timeout unless @session_timeout.nil?
38
37
  hash['showResultPage'] = @show_result_page unless @show_result_page.nil?
39
38
  hash['tokens'] = @tokens unless @tokens.nil?
40
39
  hash['variant'] = @variant unless @variant.nil?
@@ -43,10 +42,6 @@ module Ingenico::Direct::SDK
43
42
 
44
43
  def from_hash(hash)
45
44
  super
46
- if hash.key? 'cardPaymentMethodSpecificInput'
47
- raise TypeError, "value '%s' is not a Hash" % [hash['cardPaymentMethodSpecificInput']] unless hash['cardPaymentMethodSpecificInput'].is_a? Hash
48
- @card_payment_method_specific_input = Ingenico::Direct::SDK::Domain::CardPaymentMethodSpecificInputForHostedCheckout.new_from_hash(hash['cardPaymentMethodSpecificInput'])
49
- end
50
45
  @is_recurring = hash['isRecurring'] if hash.key? 'isRecurring'
51
46
  @locale = hash['locale'] if hash.key? 'locale'
52
47
  if hash.key? 'paymentProductFilters'
@@ -54,6 +49,7 @@ module Ingenico::Direct::SDK
54
49
  @payment_product_filters = Ingenico::Direct::SDK::Domain::PaymentProductFiltersHostedCheckout.new_from_hash(hash['paymentProductFilters'])
55
50
  end
56
51
  @return_url = hash['returnUrl'] if hash.key? 'returnUrl'
52
+ @session_timeout = hash['sessionTimeout'] if hash.key? 'sessionTimeout'
57
53
  @show_result_page = hash['showResultPage'] if hash.key? 'showResultPage'
58
54
  @tokens = hash['tokens'] if hash.key? 'tokens'
59
55
  @variant = hash['variant'] if hash.key? 'variant'
@@ -7,19 +7,23 @@ require 'ingenico/direct/sdk/data_object'
7
7
  module Ingenico::Direct::SDK
8
8
  module Domain
9
9
 
10
+ # @attr [String] gateway
10
11
  # @attr [Array<String>] networks
11
12
  class PaymentProduct320SpecificData < Ingenico::Direct::SDK::DataObject
13
+ attr_accessor :gateway
12
14
  attr_accessor :networks
13
15
 
14
16
  # @return (Hash)
15
17
  def to_h
16
18
  hash = super
19
+ hash['gateway'] = @gateway unless @gateway.nil?
17
20
  hash['networks'] = @networks unless @networks.nil?
18
21
  hash
19
22
  end
20
23
 
21
24
  def from_hash(hash)
22
25
  super
26
+ @gateway = hash['gateway'] if hash.key? 'gateway'
23
27
  if hash.key? 'networks'
24
28
  raise TypeError, "value '%s' is not an Array" % [hash['networks']] unless hash['networks'].is_a? Array
25
29
  @networks = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direct-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingenico ePayments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -174,7 +174,6 @@ files:
174
174
  - lib/ingenico/direct/sdk/domain/card_fraud_results.rb
175
175
  - lib/ingenico/direct/sdk/domain/card_payment_method_specific_input.rb
176
176
  - lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_base.rb
177
- - lib/ingenico/direct/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb
178
177
  - lib/ingenico/direct/sdk/domain/card_payment_method_specific_output.rb
179
178
  - lib/ingenico/direct/sdk/domain/card_payout_method_specific_input.rb
180
179
  - lib/ingenico/direct/sdk/domain/card_recurrence_details.rb
@@ -1,27 +0,0 @@
1
- #
2
- # This class was auto-generated from the API references found at
3
- # https://support.direct.ingenico.com/documentation/api/reference/
4
- #
5
- require 'ingenico/direct/sdk/data_object'
6
-
7
- module Ingenico::Direct::SDK
8
- module Domain
9
-
10
- # @attr [true/false] group_cards
11
- class CardPaymentMethodSpecificInputForHostedCheckout < Ingenico::Direct::SDK::DataObject
12
- attr_accessor :group_cards
13
-
14
- # @return (Hash)
15
- def to_h
16
- hash = super
17
- hash['groupCards'] = @group_cards unless @group_cards.nil?
18
- hash
19
- end
20
-
21
- def from_hash(hash)
22
- super
23
- @group_cards = hash['groupCards'] if hash.key? 'groupCards'
24
- end
25
- end
26
- end
27
- end