connect-sdk-ruby 1.27.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a219204f513cf57e30c1ededfe45339bdc0e891780c8e902c84a1b45f02054c
4
- data.tar.gz: 258898e59696c82b8efbf028b44d758b8d213b4c589a87b0a0b604a1e6baaa31
3
+ metadata.gz: 24274681b096f7891ec6f7e2fa3e55ecf11a08f8c0a413e4fad2876be547d8ca
4
+ data.tar.gz: fa3c4193ae1fa366bbcdfdb31e3dd3d3d5650db167a597bc7575c5f4d36b3a65
5
5
  SHA512:
6
- metadata.gz: 1c4f90897809e77f8290d4df6b9b17eabb7e8c56ea7b642873b07f0c7eda70548d2c828a1d9bdbe545836ca0a29ebdd13acb057b2cf11ec1f03a628e05bb965b
7
- data.tar.gz: b06a15ef5cdd7842133226506fd66106002117ed6cdada97e3e87e1ed3de9d60f56feb502c4bbe048c4f855b4ebedd42e1816f0b54ac0e5df2fb222c75d8ca51
6
+ metadata.gz: e7fdc677d9a8f47d4f4e70b1ada6a6f81015c914a68fb63e6b3d2aff9368d8d31b3c08c025103585ebeb27a67d8fc7f2c70653f3e76ef1739ea7e788de8936af
7
+ data.tar.gz: a426ce3de2878314b0d5c646601d7e03c703ff5649ae1a3ce474a6fdbbcf5a3c73aa8db4177a4c4fc81e14a40e47882d08c24167a1ccedf19b72a3cf87ab8728
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.27.0'
3
+ spec.version = '1.28.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}
@@ -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/data_object'
6
+ require 'ingenico/connect/sdk/domain/definitions/card_essentials'
7
+
8
+ module Ingenico::Connect::SDK
9
+ module Domain
10
+ module Payment
11
+
12
+ class PaymentProduct3201SpecificOutput < Ingenico::Connect::SDK::DataObject
13
+
14
+ # {Ingenico::Connect::SDK::Domain::Definitions::CardEssentials}
15
+ attr_accessor :card
16
+
17
+ def to_h
18
+ hash = super
19
+ add_to_hash(hash, 'card', @card)
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key?('card')
26
+ if !(hash['card'].is_a? Hash)
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['card']]
28
+ end
29
+ @card = Ingenico::Connect::SDK::Domain::Definitions::CardEssentials.new_from_hash(hash['card'])
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -5,6 +5,7 @@
5
5
  require 'ingenico/connect/sdk/domain/definitions/bank_account_iban'
6
6
  require 'ingenico/connect/sdk/domain/definitions/fraud_results'
7
7
  require 'ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output'
8
+ require 'ingenico/connect/sdk/domain/payment/payment_product3201_specific_output'
8
9
  require 'ingenico/connect/sdk/domain/payment/payment_product836_specific_output'
9
10
  require 'ingenico/connect/sdk/domain/payment/payment_product840_specific_output'
10
11
 
@@ -20,6 +21,9 @@ module Ingenico::Connect::SDK
20
21
  # {Ingenico::Connect::SDK::Domain::Definitions::FraudResults}
21
22
  attr_accessor :fraud_results
22
23
 
24
+ # {Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput}
25
+ attr_accessor :payment_product3201_specific_output
26
+
23
27
  # {Ingenico::Connect::SDK::Domain::Payment::PaymentProduct836SpecificOutput}
24
28
  attr_accessor :payment_product836_specific_output
25
29
 
@@ -33,6 +37,7 @@ module Ingenico::Connect::SDK
33
37
  hash = super
34
38
  add_to_hash(hash, 'bankAccountIban', @bank_account_iban)
35
39
  add_to_hash(hash, 'fraudResults', @fraud_results)
40
+ add_to_hash(hash, 'paymentProduct3201SpecificOutput', @payment_product3201_specific_output)
36
41
  add_to_hash(hash, 'paymentProduct836SpecificOutput', @payment_product836_specific_output)
37
42
  add_to_hash(hash, 'paymentProduct840SpecificOutput', @payment_product840_specific_output)
38
43
  add_to_hash(hash, 'token', @token)
@@ -53,6 +58,12 @@ module Ingenico::Connect::SDK
53
58
  end
54
59
  @fraud_results = Ingenico::Connect::SDK::Domain::Definitions::FraudResults.new_from_hash(hash['fraudResults'])
55
60
  end
61
+ if hash.has_key?('paymentProduct3201SpecificOutput')
62
+ if !(hash['paymentProduct3201SpecificOutput'].is_a? Hash)
63
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3201SpecificOutput']]
64
+ end
65
+ @payment_product3201_specific_output = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct3201SpecificOutput.new_from_hash(hash['paymentProduct3201SpecificOutput'])
66
+ end
56
67
  if hash.has_key?('paymentProduct836SpecificOutput')
57
68
  if !(hash['paymentProduct836SpecificOutput'].is_a? Hash)
58
69
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct836SpecificOutput']]
@@ -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.27.0'
8
+ @@SDK_VERSION = '1.28.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.27.0
4
+ version: 1.28.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-10-24 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -345,6 +345,7 @@ files:
345
345
  - lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb
346
346
  - lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb
347
347
  - lib/ingenico/connect/sdk/domain/payment/payment_output.rb
348
+ - lib/ingenico/connect/sdk/domain/payment/payment_product3201_specific_output.rb
348
349
  - lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb
349
350
  - lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb
350
351
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb