connect-sdk-ruby 1.34.0 → 1.35.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: f90ebf9942717f2734929d062449e19c0f52faf864a2ebe5a0217de9344cff6c
4
- data.tar.gz: e5f3b1ba31d47befc71fc2da226700e9580d9356e5b9734cdc9da331c7b02537
3
+ metadata.gz: 7ba33e78dd4859998101b5d3af41709cfd0578e076ae7f1f7ebf72f1dd587bb4
4
+ data.tar.gz: 65f1a2501aafa5fd37e9e7d79e4d1a50adad781208bc9a46fcbb3606b90e2704
5
5
  SHA512:
6
- metadata.gz: c4b5ec63b26fa654d92bd01d2c1ce58832af52493e2b626f4d9f313a5aad2cba97c59230db0ac4f78a4ff5cd9544031d2652a02a9cea455eec395f2876186022
7
- data.tar.gz: 0f94785f73786e5baf709181b18b15a631a2a466218d5616afdcd234692a47f481142fd690fec27b27b612c949d8cad8d1c57609e196b99a0e2ffc64bc7cbb7b
6
+ metadata.gz: 96af375b5b8c41f65ee22bf39229251cef908a5861899e86e1ab321f9ff95c2b8ad029379c63d448c9f83eda71c986cd1f46549c26d47ba68cb86ffe037ee4eb
7
+ data.tar.gz: 5b549dea56efe268b61a3cd81d1ab9c2e0d20ade0c4c655a532c00ccced6df1daa45f8709101d21d0e38a6a403665847b14d4e10f6c31f0913c4daf03e17dbb7
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.34.0'
3
+ spec.version = '1.35.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}
@@ -10,6 +10,7 @@ Payments = Ingenico::Connect::SDK::Merchant::Payments
10
10
  def example
11
11
  get_client do |client|
12
12
  query = Payments::FindPaymentsParams.new
13
+ query.hosted_checkout_id = '15c09dac-bf44-486a-af6b-edfd8680a166'
13
14
  query.merchant_reference = 'AcmeOrder0001'
14
15
  query.merchant_order_id = 123456
15
16
  query.offset = 0
@@ -10,6 +10,7 @@ Refunds = Ingenico::Connect::SDK::Merchant::Refunds
10
10
  def example
11
11
  get_client do |client|
12
12
  query = Refunds::FindRefundsParams.new
13
+ query.hosted_checkout_id = '15c09dac-bf44-486a-af6b-edfd8680a166'
13
14
  query.merchant_reference = 'AcmeOrder0001'
14
15
  query.merchant_order_id = 123456
15
16
  query.offset = 0
@@ -6,6 +6,7 @@ require 'ingenico/connect/sdk/data_object'
6
6
  require 'ingenico/connect/sdk/domain/definitions/key_value_pair'
7
7
  require 'ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters'
8
8
  require 'ingenico/connect/sdk/domain/payment/redirect_data'
9
+ require 'ingenico/connect/sdk/domain/payment/third_party_data'
9
10
  require 'ingenico/connect/sdk/domain/product/payment_product_field'
10
11
 
11
12
  module Ingenico::Connect::SDK
@@ -32,6 +33,9 @@ module Ingenico::Connect::SDK
32
33
  # Array of {Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair}
33
34
  attr_accessor :show_data
34
35
 
36
+ # {Ingenico::Connect::SDK::Domain::Payment::ThirdPartyData}
37
+ attr_accessor :third_party_data
38
+
35
39
  def to_h
36
40
  hash = super
37
41
  add_to_hash(hash, 'actionType', @action_type)
@@ -40,6 +44,7 @@ module Ingenico::Connect::SDK
40
44
  add_to_hash(hash, 'redirectData', @redirect_data)
41
45
  add_to_hash(hash, 'renderingData', @rendering_data)
42
46
  add_to_hash(hash, 'showData', @show_data)
47
+ add_to_hash(hash, 'thirdPartyData', @third_party_data)
43
48
  hash
44
49
  end
45
50
 
@@ -81,6 +86,12 @@ module Ingenico::Connect::SDK
81
86
  @show_data << Ingenico::Connect::SDK::Domain::Definitions::KeyValuePair.new_from_hash(e)
82
87
  end
83
88
  end
89
+ if hash.has_key?('thirdPartyData')
90
+ if !(hash['thirdPartyData'].is_a? Hash)
91
+ raise TypeError, "value '%s' is not a Hash" % [hash['thirdPartyData']]
92
+ end
93
+ @third_party_data = Ingenico::Connect::SDK::Domain::Payment::ThirdPartyData.new_from_hash(hash['thirdPartyData'])
94
+ end
84
95
  end
85
96
  end
86
97
  end
@@ -0,0 +1,73 @@
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 PaymentProduct863ThirdPartyData < Ingenico::Connect::SDK::DataObject
12
+
13
+ # String
14
+ attr_accessor :app_id
15
+
16
+ # String
17
+ attr_accessor :nonce_str
18
+
19
+ # String
20
+ attr_accessor :package_sign
21
+
22
+ # String
23
+ attr_accessor :pay_sign
24
+
25
+ # String
26
+ attr_accessor :prepay_id
27
+
28
+ # String
29
+ attr_accessor :sign_type
30
+
31
+ # String
32
+ attr_accessor :time_stamp
33
+
34
+ def to_h
35
+ hash = super
36
+ add_to_hash(hash, 'appId', @app_id)
37
+ add_to_hash(hash, 'nonceStr', @nonce_str)
38
+ add_to_hash(hash, 'packageSign', @package_sign)
39
+ add_to_hash(hash, 'paySign', @pay_sign)
40
+ add_to_hash(hash, 'prepayId', @prepay_id)
41
+ add_to_hash(hash, 'signType', @sign_type)
42
+ add_to_hash(hash, 'timeStamp', @time_stamp)
43
+ hash
44
+ end
45
+
46
+ def from_hash(hash)
47
+ super
48
+ if hash.has_key?('appId')
49
+ @app_id = hash['appId']
50
+ end
51
+ if hash.has_key?('nonceStr')
52
+ @nonce_str = hash['nonceStr']
53
+ end
54
+ if hash.has_key?('packageSign')
55
+ @package_sign = hash['packageSign']
56
+ end
57
+ if hash.has_key?('paySign')
58
+ @pay_sign = hash['paySign']
59
+ end
60
+ if hash.has_key?('prepayId')
61
+ @prepay_id = hash['prepayId']
62
+ end
63
+ if hash.has_key?('signType')
64
+ @sign_type = hash['signType']
65
+ end
66
+ if hash.has_key?('timeStamp')
67
+ @time_stamp = hash['timeStamp']
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -6,6 +6,7 @@ require 'ingenico/connect/sdk/domain/payment/abstract_redirect_payment_method_sp
6
6
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input'
7
7
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input'
8
8
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input'
9
+ require 'ingenico/connect/sdk/domain/payment/redirect_payment_product861_specific_input'
9
10
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product863_specific_input'
10
11
  require 'ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input'
11
12
  require 'ingenico/connect/sdk/domain/payment/redirection_data'
@@ -28,6 +29,9 @@ module Ingenico::Connect::SDK
28
29
  # {Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInput}
29
30
  attr_accessor :payment_product840_specific_input
30
31
 
32
+ # {Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct861SpecificInput}
33
+ attr_accessor :payment_product861_specific_input
34
+
31
35
  # {Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct863SpecificInput}
32
36
  attr_accessor :payment_product863_specific_input
33
37
 
@@ -48,6 +52,7 @@ module Ingenico::Connect::SDK
48
52
  add_to_hash(hash, 'paymentProduct809SpecificInput', @payment_product809_specific_input)
49
53
  add_to_hash(hash, 'paymentProduct816SpecificInput', @payment_product816_specific_input)
50
54
  add_to_hash(hash, 'paymentProduct840SpecificInput', @payment_product840_specific_input)
55
+ add_to_hash(hash, 'paymentProduct861SpecificInput', @payment_product861_specific_input)
51
56
  add_to_hash(hash, 'paymentProduct863SpecificInput', @payment_product863_specific_input)
52
57
  add_to_hash(hash, 'paymentProduct882SpecificInput', @payment_product882_specific_input)
53
58
  add_to_hash(hash, 'redirectionData', @redirection_data)
@@ -78,6 +83,12 @@ module Ingenico::Connect::SDK
78
83
  end
79
84
  @payment_product840_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
80
85
  end
86
+ if hash.has_key?('paymentProduct861SpecificInput')
87
+ if !(hash['paymentProduct861SpecificInput'].is_a? Hash)
88
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct861SpecificInput']]
89
+ end
90
+ @payment_product861_specific_input = Ingenico::Connect::SDK::Domain::Payment::RedirectPaymentProduct861SpecificInput.new_from_hash(hash['paymentProduct861SpecificInput'])
91
+ end
81
92
  if hash.has_key?('paymentProduct863SpecificInput')
82
93
  if !(hash['paymentProduct863SpecificInput'].is_a? Hash)
83
94
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct863SpecificInput']]
@@ -0,0 +1,31 @@
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 RedirectPaymentProduct861SpecificInput < Ingenico::Connect::SDK::DataObject
12
+
13
+ # true/false
14
+ attr_accessor :mobile_device
15
+
16
+ def to_h
17
+ hash = super
18
+ add_to_hash(hash, 'mobileDevice', @mobile_device)
19
+ hash
20
+ end
21
+
22
+ def from_hash(hash)
23
+ super
24
+ if hash.has_key?('mobileDevice')
25
+ @mobile_device = hash['mobileDevice']
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -13,9 +13,13 @@ module Ingenico::Connect::SDK
13
13
  # String
14
14
  attr_accessor :integration_type
15
15
 
16
+ # String
17
+ attr_accessor :open_id
18
+
16
19
  def to_h
17
20
  hash = super
18
21
  add_to_hash(hash, 'integrationType', @integration_type)
22
+ add_to_hash(hash, 'openId', @open_id)
19
23
  hash
20
24
  end
21
25
 
@@ -24,6 +28,9 @@ module Ingenico::Connect::SDK
24
28
  if hash.has_key?('integrationType')
25
29
  @integration_type = hash['integrationType']
26
30
  end
31
+ if hash.has_key?('openId')
32
+ @open_id = hash['openId']
33
+ end
27
34
  end
28
35
  end
29
36
  end
@@ -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/payment/payment_product863_third_party_data'
7
+
8
+ module Ingenico::Connect::SDK
9
+ module Domain
10
+ module Payment
11
+
12
+ class ThirdPartyData < Ingenico::Connect::SDK::DataObject
13
+
14
+ # {Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData}
15
+ attr_accessor :payment_product863
16
+
17
+ def to_h
18
+ hash = super
19
+ add_to_hash(hash, 'paymentProduct863', @payment_product863)
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key?('paymentProduct863')
26
+ if !(hash['paymentProduct863'].is_a? Hash)
27
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct863']]
28
+ end
29
+ @payment_product863 = Ingenico::Connect::SDK::Domain::Payment::PaymentProduct863ThirdPartyData.new_from_hash(hash['paymentProduct863'])
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -11,6 +11,9 @@ module Ingenico::Connect::SDK
11
11
  # Query parameters for {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments}
12
12
  class FindPaymentsParams < Ingenico::Connect::SDK::ParamRequest
13
13
 
14
+ # String
15
+ attr_accessor :hosted_checkout_id
16
+
14
17
  # String
15
18
  attr_accessor :merchant_reference
16
19
 
@@ -26,6 +29,7 @@ module Ingenico::Connect::SDK
26
29
  # Returns an Array of {Ingenico::Connect::SDK::RequestParam} objects representing the attributes of this class
27
30
  def to_request_parameters
28
31
  result = []
32
+ add_parameter(result, 'hostedCheckoutId', @hosted_checkout_id)
29
33
  add_parameter(result, 'merchantReference', @merchant_reference)
30
34
  add_parameter(result, 'merchantOrderId', @merchant_order_id)
31
35
  add_parameter(result, 'offset', @offset)
@@ -11,6 +11,9 @@ module Ingenico::Connect::SDK
11
11
  # Query parameters for {https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/find.html Find refunds}
12
12
  class FindRefundsParams < Ingenico::Connect::SDK::ParamRequest
13
13
 
14
+ # String
15
+ attr_accessor :hosted_checkout_id
16
+
14
17
  # String
15
18
  attr_accessor :merchant_reference
16
19
 
@@ -26,6 +29,7 @@ module Ingenico::Connect::SDK
26
29
  # Returns an Array of {Ingenico::Connect::SDK::RequestParam} objects representing the attributes of this class
27
30
  def to_request_parameters
28
31
  result = []
32
+ add_parameter(result, 'hostedCheckoutId', @hosted_checkout_id)
29
33
  add_parameter(result, 'merchantReference', @merchant_reference)
30
34
  add_parameter(result, 'merchantOrderId', @merchant_order_id)
31
35
  add_parameter(result, 'offset', @offset)
@@ -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.34.0'
8
+ @@SDK_VERSION = '1.35.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.34.0
4
+ version: 1.35.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: 2019-05-03 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -381,6 +381,7 @@ files:
381
381
  - lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb
382
382
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb
383
383
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb
384
+ - lib/ingenico/connect/sdk/domain/payment/payment_product863_third_party_data.rb
384
385
  - lib/ingenico/connect/sdk/domain/payment/payment_references.rb
385
386
  - lib/ingenico/connect/sdk/domain/payment/payment_response.rb
386
387
  - lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb
@@ -395,6 +396,7 @@ files:
395
396
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb
396
397
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb
397
398
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input_base.rb
399
+ - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product861_specific_input.rb
398
400
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product863_specific_input.rb
399
401
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb
400
402
  - lib/ingenico/connect/sdk/domain/payment/redirection_data.rb
@@ -417,6 +419,7 @@ files:
417
419
  - lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input_base.rb
418
420
  - lib/ingenico/connect/sdk/domain/payment/shipping.rb
419
421
  - lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb
422
+ - lib/ingenico/connect/sdk/domain/payment/third_party_data.rb
420
423
  - lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb
421
424
  - lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb
422
425
  - lib/ingenico/connect/sdk/domain/payment/three_d_secure_base.rb