connect-sdk-ruby 1.29.0 → 1.30.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: 4cd94e5eb80db8e13e4a0046c8e5ac2b9bfdbc58ef1d26a9dff96c247510daec
4
- data.tar.gz: d67588a32a087b082c221a2710ba0c6a8e58fa21c9142d24046031ce461631b1
3
+ metadata.gz: e02115e2dab9440881845b678788d86eb87344087d3bbecaabdfdb2e8ce059c3
4
+ data.tar.gz: bb84228975409f7335817a16fdbf22d7223b676e3c619b116ed33a964057fe6a
5
5
  SHA512:
6
- metadata.gz: 2d57504626a2db055a7e4ee15a3cd9dd5c38863479c282e99e0c0867fb619e02d3bedc602011dadace1213d16d217eee392e2c14608d11ebf40754185503fc39
7
- data.tar.gz: 6f8918780bf7ab5bdd7a1c22e5df3e3a389be5990e046f8796e870e56ebf68df400f4d8a7092e315643d2b6b1f3cc62ae7247eb60b60a78741d6dfefe3aa3c39
6
+ metadata.gz: 4a827e2f0cfbd3fc791fbc7b08c72a3ad7df12b674f34c829a01c4d3e0d5f3c3bee5ed62e9a227331b834a14d7501405663dbfdffc0b554b6f15e80e82b3b3c6
7
+ data.tar.gz: 77cb4eea44d9566ce4f2de96e705e6aae5f960c027e541b927ec5f7a464e0d6524156ce726432e5dedcba6a784044ae60109779538d59e458db2b0687a096cc4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.29.0'
3
+ spec.version = '1.30.0'
4
4
  spec.authors = ['Ingenico ePayments']
5
5
  spec.email = ['github@epay.ingenico.com']
6
6
  spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
@@ -5,6 +5,7 @@
5
5
  require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/definitions/fraud_fields'
7
7
  require 'ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input'
8
+ require 'ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout'
8
9
  require 'ingenico/connect/sdk/domain/payment/bank_transfer_payment_method_specific_input_base'
9
10
  require 'ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base'
10
11
  require 'ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input_base'
@@ -37,6 +38,9 @@ module Ingenico::Connect::SDK
37
38
  # {Ingenico::Connect::SDK::Domain::Hostedcheckout::HostedCheckoutSpecificInput}
38
39
  attr_accessor :hosted_checkout_specific_input
39
40
 
41
+ # {Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout}
42
+ attr_accessor :mobile_payment_method_specific_input
43
+
40
44
  # {Ingenico::Connect::SDK::Domain::Payment::Order}
41
45
  attr_accessor :order
42
46
 
@@ -54,6 +58,7 @@ module Ingenico::Connect::SDK
54
58
  add_to_hash(hash, 'eInvoicePaymentMethodSpecificInput', @e_invoice_payment_method_specific_input)
55
59
  add_to_hash(hash, 'fraudFields', @fraud_fields)
56
60
  add_to_hash(hash, 'hostedCheckoutSpecificInput', @hosted_checkout_specific_input)
61
+ add_to_hash(hash, 'mobilePaymentMethodSpecificInput', @mobile_payment_method_specific_input)
57
62
  add_to_hash(hash, 'order', @order)
58
63
  add_to_hash(hash, 'redirectPaymentMethodSpecificInput', @redirect_payment_method_specific_input)
59
64
  add_to_hash(hash, 'sepaDirectDebitPaymentMethodSpecificInput', @sepa_direct_debit_payment_method_specific_input)
@@ -98,6 +103,12 @@ module Ingenico::Connect::SDK
98
103
  end
99
104
  @hosted_checkout_specific_input = Ingenico::Connect::SDK::Domain::Hostedcheckout::HostedCheckoutSpecificInput.new_from_hash(hash['hostedCheckoutSpecificInput'])
100
105
  end
106
+ if hash.has_key?('mobilePaymentMethodSpecificInput')
107
+ if !(hash['mobilePaymentMethodSpecificInput'].is_a? Hash)
108
+ raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']]
109
+ end
110
+ @mobile_payment_method_specific_input = Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentMethodSpecificInputHostedCheckout.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
111
+ end
101
112
  if hash.has_key?('order')
102
113
  if !(hash['order'].is_a? Hash)
103
114
  raise TypeError, "value '%s' is not a Hash" % [hash['order']]
@@ -23,6 +23,8 @@ module Ingenico::Connect::SDK
23
23
  attr_accessor :payment_creation_references
24
24
 
25
25
  # String
26
+ #
27
+ # Deprecated; Use payment.statusOutput.statusCategory instead
26
28
  attr_accessor :payment_status_category
27
29
 
28
30
  # true/false
@@ -0,0 +1,35 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input'
6
+ require 'ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout'
7
+
8
+ module Ingenico::Connect::SDK
9
+ module Domain
10
+ module Hostedcheckout
11
+
12
+ class MobilePaymentMethodSpecificInputHostedCheckout < Ingenico::Connect::SDK::Domain::Definitions::AbstractPaymentMethodSpecificInput
13
+
14
+ # {Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout}
15
+ attr_accessor :payment_product320_specific_input
16
+
17
+ def to_h
18
+ hash = super
19
+ add_to_hash(hash, 'paymentProduct320SpecificInput', @payment_product320_specific_input)
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key?('paymentProduct320SpecificInput')
26
+ if !(hash['paymentProduct320SpecificInput'].is_a? Hash)
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']]
28
+ end
29
+ @payment_product320_specific_input = Ingenico::Connect::SDK::Domain::Hostedcheckout::MobilePaymentProduct320SpecificInputHostedCheckout.new_from_hash(hash['paymentProduct320SpecificInput'])
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,38 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/data_object'
6
+
7
+ module Ingenico::Connect::SDK
8
+ module Domain
9
+ module Hostedcheckout
10
+
11
+ class MobilePaymentProduct320SpecificInputHostedCheckout < Ingenico::Connect::SDK::DataObject
12
+
13
+ # String
14
+ attr_accessor :merchant_name
15
+
16
+ # String
17
+ attr_accessor :merchant_origin
18
+
19
+ def to_h
20
+ hash = super
21
+ add_to_hash(hash, 'merchantName', @merchant_name)
22
+ add_to_hash(hash, 'merchantOrigin', @merchant_origin)
23
+ hash
24
+ end
25
+
26
+ def from_hash(hash)
27
+ super
28
+ if hash.has_key?('merchantName')
29
+ @merchant_name = hash['merchantName']
30
+ end
31
+ if hash.has_key?('merchantOrigin')
32
+ @merchant_origin = hash['merchantOrigin']
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -11,6 +11,8 @@ module Ingenico::Connect::SDK
11
11
  class AbstractSepaDirectDebitPaymentProduct771SpecificInput < Ingenico::Connect::SDK::DataObject
12
12
 
13
13
  # String
14
+ #
15
+ # Deprecated; Use existingUniqueMandateReference instead
14
16
  attr_accessor :mandate_reference
15
17
 
16
18
  def to_h
@@ -25,6 +25,12 @@ module Ingenico::Connect::SDK
25
25
  # String
26
26
  attr_accessor :expiry_date
27
27
 
28
+ # String
29
+ attr_accessor :pan
30
+
31
+ # String
32
+ attr_accessor :payment_method
33
+
28
34
  def to_h
29
35
  hash = super
30
36
  add_to_hash(hash, 'cardholderName', @cardholder_name)
@@ -32,6 +38,8 @@ module Ingenico::Connect::SDK
32
38
  add_to_hash(hash, 'dpan', @dpan)
33
39
  add_to_hash(hash, 'eci', @eci)
34
40
  add_to_hash(hash, 'expiryDate', @expiry_date)
41
+ add_to_hash(hash, 'pan', @pan)
42
+ add_to_hash(hash, 'paymentMethod', @payment_method)
35
43
  hash
36
44
  end
37
45
 
@@ -52,6 +60,12 @@ module Ingenico::Connect::SDK
52
60
  if hash.has_key?('expiryDate')
53
61
  @expiry_date = hash['expiryDate']
54
62
  end
63
+ if hash.has_key?('pan')
64
+ @pan = hash['pan']
65
+ end
66
+ if hash.has_key?('paymentMethod')
67
+ @payment_method = hash['paymentMethod']
68
+ end
55
69
  end
56
70
  end
57
71
  end
@@ -4,7 +4,6 @@
4
4
  #
5
5
  require 'ingenico/connect/sdk/domain/definitions/abstract_payment_method_specific_input'
6
6
  require 'ingenico/connect/sdk/domain/payment/decrypted_payment_data'
7
- require 'ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input'
8
7
 
9
8
  module Ingenico::Connect::SDK
10
9
  module Domain
@@ -21,27 +20,19 @@ module Ingenico::Connect::SDK
21
20
  # String
22
21
  attr_accessor :encrypted_payment_data
23
22
 
24
- # {Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput}
25
- attr_accessor :payment_product320_specific_input
26
-
27
23
  # true/false
28
24
  attr_accessor :requires_approval
29
25
 
30
26
  # true/false
31
27
  attr_accessor :skip_fraud_service
32
28
 
33
- # String
34
- attr_accessor :transaction_id
35
-
36
29
  def to_h
37
30
  hash = super
38
31
  add_to_hash(hash, 'authorizationMode', @authorization_mode)
39
32
  add_to_hash(hash, 'decryptedPaymentData', @decrypted_payment_data)
40
33
  add_to_hash(hash, 'encryptedPaymentData', @encrypted_payment_data)
41
- add_to_hash(hash, 'paymentProduct320SpecificInput', @payment_product320_specific_input)
42
34
  add_to_hash(hash, 'requiresApproval', @requires_approval)
43
35
  add_to_hash(hash, 'skipFraudService', @skip_fraud_service)
44
- add_to_hash(hash, 'transactionId', @transaction_id)
45
36
  hash
46
37
  end
47
38
 
@@ -59,21 +50,12 @@ module Ingenico::Connect::SDK
59
50
  if hash.has_key?('encryptedPaymentData')
60
51
  @encrypted_payment_data = hash['encryptedPaymentData']
61
52
  end
62
- if hash.has_key?('paymentProduct320SpecificInput')
63
- if !(hash['paymentProduct320SpecificInput'].is_a? Hash)
64
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']]
65
- end
66
- @payment_product320_specific_input = Ingenico::Connect::SDK::Domain::Payment::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
67
- end
68
53
  if hash.has_key?('requiresApproval')
69
54
  @requires_approval = hash['requiresApproval']
70
55
  end
71
56
  if hash.has_key?('skipFraudService')
72
57
  @skip_fraud_service = hash['skipFraudService']
73
58
  end
74
- if hash.has_key?('transactionId')
75
- @transaction_id = hash['transactionId']
76
- end
77
59
  end
78
60
  end
79
61
  end
@@ -11,17 +11,24 @@ module Ingenico::Connect::SDK
11
11
 
12
12
  class SepaDirectDebitPaymentProduct771SpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentProduct771SpecificInput
13
13
 
14
+ # String
15
+ attr_accessor :existing_unique_mandate_reference
16
+
14
17
  # {Ingenico::Connect::SDK::Domain::Mandates::CreateMandateWithReturnUrl}
15
18
  attr_accessor :mandate
16
19
 
17
20
  def to_h
18
21
  hash = super
22
+ add_to_hash(hash, 'existingUniqueMandateReference', @existing_unique_mandate_reference)
19
23
  add_to_hash(hash, 'mandate', @mandate)
20
24
  hash
21
25
  end
22
26
 
23
27
  def from_hash(hash)
24
28
  super
29
+ if hash.has_key?('existingUniqueMandateReference')
30
+ @existing_unique_mandate_reference = hash['existingUniqueMandateReference']
31
+ end
25
32
  if hash.has_key?('mandate')
26
33
  if !(hash['mandate'].is_a? Hash)
27
34
  raise TypeError, "value '%s' is not a Hash" % [hash['mandate']]
@@ -11,17 +11,24 @@ module Ingenico::Connect::SDK
11
11
 
12
12
  class SepaDirectDebitPaymentProduct771SpecificInputBase < Ingenico::Connect::SDK::Domain::Payment::AbstractSepaDirectDebitPaymentProduct771SpecificInput
13
13
 
14
+ # String
15
+ attr_accessor :existing_unique_mandate_reference
16
+
14
17
  # {Ingenico::Connect::SDK::Domain::Mandates::CreateMandateBase}
15
18
  attr_accessor :mandate
16
19
 
17
20
  def to_h
18
21
  hash = super
22
+ add_to_hash(hash, 'existingUniqueMandateReference', @existing_unique_mandate_reference)
19
23
  add_to_hash(hash, 'mandate', @mandate)
20
24
  hash
21
25
  end
22
26
 
23
27
  def from_hash(hash)
24
28
  super
29
+ if hash.has_key?('existingUniqueMandateReference')
30
+ @existing_unique_mandate_reference = hash['existingUniqueMandateReference']
31
+ end
25
32
  if hash.has_key?('mandate')
26
33
  if !(hash['mandate'].is_a? Hash)
27
34
  raise TypeError, "value '%s' is not a Hash" % [hash['mandate']]
@@ -50,6 +50,9 @@ module Ingenico::Connect::SDK
50
50
  # Integer
51
51
  attr_accessor :id
52
52
 
53
+ # true/false
54
+ attr_accessor :is_java_script_required
55
+
53
56
  # Integer
54
57
  attr_accessor :max_amount
55
58
 
@@ -90,6 +93,7 @@ module Ingenico::Connect::SDK
90
93
  add_to_hash(hash, 'fields', @fields)
91
94
  add_to_hash(hash, 'fieldsWarning', @fields_warning)
92
95
  add_to_hash(hash, 'id', @id)
96
+ add_to_hash(hash, 'isJavaScriptRequired', @is_java_script_required)
93
97
  add_to_hash(hash, 'maxAmount', @max_amount)
94
98
  add_to_hash(hash, 'minAmount', @min_amount)
95
99
  add_to_hash(hash, 'mobileIntegrationLevel', @mobile_integration_level)
@@ -155,6 +159,9 @@ module Ingenico::Connect::SDK
155
159
  if hash.has_key?('id')
156
160
  @id = hash['id']
157
161
  end
162
+ if hash.has_key?('isJavaScriptRequired')
163
+ @is_java_script_required = hash['isJavaScriptRequired']
164
+ end
158
165
  if hash.has_key?('maxAmount')
159
166
  @max_amount = hash['maxAmount']
160
167
  end
@@ -10,17 +10,24 @@ module Ingenico::Connect::SDK
10
10
 
11
11
  class PaymentProduct320SpecificData < Ingenico::Connect::SDK::DataObject
12
12
 
13
+ # String
14
+ attr_accessor :gateway
15
+
13
16
  # Array of String
14
17
  attr_accessor :networks
15
18
 
16
19
  def to_h
17
20
  hash = super
21
+ add_to_hash(hash, 'gateway', @gateway)
18
22
  add_to_hash(hash, 'networks', @networks)
19
23
  hash
20
24
  end
21
25
 
22
26
  def from_hash(hash)
23
27
  super
28
+ if hash.has_key?('gateway')
29
+ @gateway = hash['gateway']
30
+ end
24
31
  if hash.has_key?('networks')
25
32
  if !(hash['networks'].is_a? Array)
26
33
  raise TypeError, "value '%s' is not an Array" % [hash['networks']]
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
5
5
 
6
6
  # Manages metadata about the server using the SDK
7
7
  class MetaDataProvider
8
- @@SDK_VERSION = '1.29.0'
8
+ @@SDK_VERSION = '1.30.0'
9
9
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
10
10
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
11
11
  'Date', 'Content-Type', 'Authorization'].sort!.freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.30.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: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -246,6 +246,8 @@ files:
246
246
  - lib/ingenico/connect/sdk/domain/hostedcheckout/displayed_data.rb
247
247
  - lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb
248
248
  - lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb
249
+ - lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_method_specific_input_hosted_checkout.rb
250
+ - lib/ingenico/connect/sdk/domain/hostedcheckout/mobile_payment_product320_specific_input_hosted_checkout.rb
249
251
  - lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb
250
252
  - lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_request.rb
251
253
  - lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb
@@ -327,7 +329,6 @@ files:
327
329
  - lib/ingenico/connect/sdk/domain/payment/mobile_payment_data.rb
328
330
  - lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_input.rb
329
331
  - lib/ingenico/connect/sdk/domain/payment/mobile_payment_method_specific_output.rb
330
- - lib/ingenico/connect/sdk/domain/payment/mobile_payment_product320_specific_input.rb
331
332
  - lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_input.rb
332
333
  - lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_method_specific_output.rb
333
334
  - lib/ingenico/connect/sdk/domain/payment/non_sepa_direct_debit_payment_product705_specific_input.rb
@@ -1,31 +0,0 @@
1
- #
2
- # This class was auto-generated from the API references found at
3
- # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
- #
5
- require 'ingenico/connect/sdk/data_object'
6
-
7
- module Ingenico::Connect::SDK
8
- module Domain
9
- module Payment
10
-
11
- class MobilePaymentProduct320SpecificInput < Ingenico::Connect::SDK::DataObject
12
-
13
- # String
14
- attr_accessor :key_id
15
-
16
- def to_h
17
- hash = super
18
- add_to_hash(hash, 'keyId', @key_id)
19
- hash
20
- end
21
-
22
- def from_hash(hash)
23
- super
24
- if hash.has_key?('keyId')
25
- @key_id = hash['keyId']
26
- end
27
- end
28
- end
29
- end
30
- end
31
- end