connect-sdk-ruby 2.2.0 → 2.3.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: f3d339efa2a7b867cf13cd958fb07b3ae79e80399d90e121b9cf88d02ba8828b
4
- data.tar.gz: 39dcf66c702e29a9c70679e2e43fca6b4dcb87e2363d719148aa6612a213892a
3
+ metadata.gz: 34b83f0bb3325ca4bb7462aaddcfcc5c5aedb2bfdcbe05bf53575f98c1913c94
4
+ data.tar.gz: 2878d672a704e22c03271a54ee942cfc91a35d9319fb12c9016b742a2cc7d10d
5
5
  SHA512:
6
- metadata.gz: a660d75e164a129d273a87f2ef029e3eac7d801db9c8cdcae0227751f76dd2bc9859ee4d3b0309cff438abb0248b8dedba65cea27a7cf4d5df39497f61f0b8f0
7
- data.tar.gz: 2fd8fb68f5b8028f5baefec7ae4a9000bdd489011ba07d138a685a0f2bd12a056973a7a0b109f285947d5b343726f140336add4d823739610a4730a7a2774978
6
+ metadata.gz: 788abc707aeb0c8703194955e5dfb01dabb4f903eabc84be61cdf9fe2e9810e36899ac354f6e3e2146443060bbdac8ca9e2626082e5a8656ae084ce92fd508c6
7
+ data.tar.gz: 46e0dc78eabb1b233fa94164527b6234f3f6861ccd79244d9399cffb5a215973fa8779d57cde5ed809db77c10ef3c0e759e7a6a45fac2a0aa7e23c058f992d14
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.2.0'
3
+ spec.version = '2.3.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}
@@ -46,12 +46,14 @@ def example
46
46
  three_d_secure.authentication_flow = 'browser'
47
47
  three_d_secure.challenge_canvas_size = '600x400'
48
48
  three_d_secure.challenge_indicator = 'challenge-requested'
49
+ three_d_secure.exemption_request = 'none'
49
50
  three_d_secure.redirection_data = redirection_data
50
51
  three_d_secure.skip_authentication = false
51
52
 
52
53
  card_payment_method_specific_input = Payment::CardPaymentMethodSpecificInput.new
53
54
  card_payment_method_specific_input.card = card
54
55
  card_payment_method_specific_input.is_recurring = false
56
+ card_payment_method_specific_input.merchant_initiated_reason_indicator = 'delayedCharges'
55
57
  card_payment_method_specific_input.payment_product_id = 1
56
58
  card_payment_method_specific_input.three_d_secure = three_d_secure
57
59
  card_payment_method_specific_input.transaction_channel = 'ECOMMERCE'
@@ -11,6 +11,7 @@ module Ingenico::Connect::SDK
11
11
 
12
12
  # @attr [String] authorization_mode
13
13
  # @attr [String] customer_reference
14
+ # @attr [String] initial_scheme_transaction_id
14
15
  # @attr [Ingenico::Connect::SDK::Domain::Payment::CardRecurrenceDetails] recurring
15
16
  # @attr [String] recurring_payment_sequence_indicator
16
17
  # @attr [true/false] requires_approval
@@ -28,6 +29,8 @@ module Ingenico::Connect::SDK
28
29
 
29
30
  attr_accessor :customer_reference
30
31
 
32
+ attr_accessor :initial_scheme_transaction_id
33
+
31
34
  attr_accessor :recurring
32
35
 
33
36
  #
@@ -61,6 +64,7 @@ module Ingenico::Connect::SDK
61
64
  hash = super
62
65
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
63
66
  hash['customerReference'] = @customer_reference unless @customer_reference.nil?
67
+ hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
64
68
  hash['recurring'] = @recurring.to_h unless @recurring.nil?
65
69
  hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
66
70
  hash['requiresApproval'] = @requires_approval unless @requires_approval.nil?
@@ -83,6 +87,9 @@ module Ingenico::Connect::SDK
83
87
  if hash.has_key? 'customerReference'
84
88
  @customer_reference = hash['customerReference']
85
89
  end
90
+ if hash.has_key? 'initialSchemeTransactionId'
91
+ @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
92
+ end
86
93
  if hash.has_key? 'recurring'
87
94
  raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
88
95
  @recurring = Ingenico::Connect::SDK::Domain::Payment::CardRecurrenceDetails.new_from_hash(hash['recurring'])
@@ -13,6 +13,7 @@ module Ingenico::Connect::SDK
13
13
  # @attr [String] authentication_flow
14
14
  # @attr [String] challenge_canvas_size
15
15
  # @attr [String] challenge_indicator
16
+ # @attr [String] exemption_request
16
17
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData] prior_three_d_secure_data
17
18
  # @attr [Ingenico::Connect::SDK::Domain::Payment::SdkDataInput] sdk_data
18
19
  # @attr [true/false] skip_authentication
@@ -24,6 +25,8 @@ module Ingenico::Connect::SDK
24
25
 
25
26
  attr_accessor :challenge_indicator
26
27
 
28
+ attr_accessor :exemption_request
29
+
27
30
  attr_accessor :prior_three_d_secure_data
28
31
 
29
32
  attr_accessor :sdk_data
@@ -36,6 +39,7 @@ module Ingenico::Connect::SDK
36
39
  hash['authenticationFlow'] = @authentication_flow unless @authentication_flow.nil?
37
40
  hash['challengeCanvasSize'] = @challenge_canvas_size unless @challenge_canvas_size.nil?
38
41
  hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
42
+ hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil?
39
43
  hash['priorThreeDSecureData'] = @prior_three_d_secure_data.to_h unless @prior_three_d_secure_data.nil?
40
44
  hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil?
41
45
  hash['skipAuthentication'] = @skip_authentication unless @skip_authentication.nil?
@@ -53,6 +57,9 @@ module Ingenico::Connect::SDK
53
57
  if hash.has_key? 'challengeIndicator'
54
58
  @challenge_indicator = hash['challengeIndicator']
55
59
  end
60
+ if hash.has_key? 'exemptionRequest'
61
+ @exemption_request = hash['exemptionRequest']
62
+ end
56
63
  if hash.has_key? 'priorThreeDSecureData'
57
64
  raise TypeError, "value '%s' is not a Hash" % [hash['priorThreeDSecureData']] unless hash['priorThreeDSecureData'].is_a? Hash
58
65
  @prior_three_d_secure_data = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData.new_from_hash(hash['priorThreeDSecureData'])
@@ -14,6 +14,7 @@ module Ingenico::Connect::SDK
14
14
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::Card] card
15
15
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData] external_cardholder_authentication_data
16
16
  # @attr [true/false] is_recurring
17
+ # @attr [String] merchant_initiated_reason_indicator
17
18
  # @attr [String] return_url
18
19
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecure] three_d_secure
19
20
  class CardPaymentMethodSpecificInput < Ingenico::Connect::SDK::Domain::Payment::AbstractCardPaymentMethodSpecificInput
@@ -26,6 +27,8 @@ module Ingenico::Connect::SDK
26
27
 
27
28
  attr_accessor :is_recurring
28
29
 
30
+ attr_accessor :merchant_initiated_reason_indicator
31
+
29
32
  #
30
33
  # @deprecated Use threeDSecure.redirectionData.returnUrl instead
31
34
  attr_accessor :return_url
@@ -38,6 +41,7 @@ module Ingenico::Connect::SDK
38
41
  hash['card'] = @card.to_h unless @card.nil?
39
42
  hash['externalCardholderAuthenticationData'] = @external_cardholder_authentication_data.to_h unless @external_cardholder_authentication_data.nil?
40
43
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
44
+ hash['merchantInitiatedReasonIndicator'] = @merchant_initiated_reason_indicator unless @merchant_initiated_reason_indicator.nil?
41
45
  hash['returnUrl'] = @return_url unless @return_url.nil?
42
46
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
43
47
  hash
@@ -56,6 +60,9 @@ module Ingenico::Connect::SDK
56
60
  if hash.has_key? 'isRecurring'
57
61
  @is_recurring = hash['isRecurring']
58
62
  end
63
+ if hash.has_key? 'merchantInitiatedReasonIndicator'
64
+ @merchant_initiated_reason_indicator = hash['merchantInitiatedReasonIndicator']
65
+ end
59
66
  if hash.has_key? 'returnUrl'
60
67
  @return_url = hash['returnUrl']
61
68
  end
@@ -14,6 +14,8 @@ module Ingenico::Connect::SDK
14
14
  # @attr [String] authorisation_code
15
15
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::CardEssentials] card
16
16
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::CardFraudResults] fraud_results
17
+ # @attr [String] initial_scheme_transaction_id
18
+ # @attr [String] scheme_transaction_id
17
19
  # @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults] three_d_secure_results
18
20
  # @attr [String] token
19
21
  class CardPaymentMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::AbstractPaymentMethodSpecificOutput
@@ -24,6 +26,10 @@ module Ingenico::Connect::SDK
24
26
 
25
27
  attr_accessor :fraud_results
26
28
 
29
+ attr_accessor :initial_scheme_transaction_id
30
+
31
+ attr_accessor :scheme_transaction_id
32
+
27
33
  attr_accessor :three_d_secure_results
28
34
 
29
35
  attr_accessor :token
@@ -34,6 +40,8 @@ module Ingenico::Connect::SDK
34
40
  hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
35
41
  hash['card'] = @card.to_h unless @card.nil?
36
42
  hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
43
+ hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
44
+ hash['schemeTransactionId'] = @scheme_transaction_id unless @scheme_transaction_id.nil?
37
45
  hash['threeDSecureResults'] = @three_d_secure_results.to_h unless @three_d_secure_results.nil?
38
46
  hash['token'] = @token unless @token.nil?
39
47
  hash
@@ -52,6 +60,12 @@ module Ingenico::Connect::SDK
52
60
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudResults']] unless hash['fraudResults'].is_a? Hash
53
61
  @fraud_results = Ingenico::Connect::SDK::Domain::Definitions::CardFraudResults.new_from_hash(hash['fraudResults'])
54
62
  end
63
+ if hash.has_key? 'initialSchemeTransactionId'
64
+ @initial_scheme_transaction_id = hash['initialSchemeTransactionId']
65
+ end
66
+ if hash.has_key? 'schemeTransactionId'
67
+ @scheme_transaction_id = hash['schemeTransactionId']
68
+ end
55
69
  if hash.has_key? 'threeDSecureResults'
56
70
  raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureResults']] unless hash['threeDSecureResults'].is_a? Hash
57
71
  @three_d_secure_results = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults.new_from_hash(hash['threeDSecureResults'])
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
7
7
  #
8
8
  # @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
9
9
  class MetaDataProvider
10
- @@SDK_VERSION = '2.2.0'
10
+ @@SDK_VERSION = '2.3.0'
11
11
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
12
12
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
13
13
  'Date', 'Content-Type', 'Authorization'].sort!.freeze
@@ -10,6 +10,7 @@ module Ingenico::Connect::SDK
10
10
  # @attr [Ingenico::Connect::SDK::Domain::Payout::PayoutResponse] refund
11
11
  # @attr [Ingenico::Connect::SDK::Domain::Refund::RefundResponse] payout
12
12
  # @attr [Ingenico::Connect::SDK::Domain::Token::TokenResponse] token
13
+ # @attr [Ingenico::Connect::SDK::Domain::Dispute::DisputeResponse] dispute
13
14
  class WebhooksEvent < Ingenico::Connect::SDK::DataObject
14
15
 
15
16
  attr_accessor :api_version
@@ -22,6 +23,7 @@ module Ingenico::Connect::SDK
22
23
  attr_accessor :refund
23
24
  attr_accessor :payout
24
25
  attr_accessor :token
26
+ attr_accessor :dispute
25
27
 
26
28
  # @return [Hash]
27
29
  def to_h
@@ -35,6 +37,7 @@ module Ingenico::Connect::SDK
35
37
  hash['refund'] = @refund.to_h unless @refund.nil?
36
38
  hash['payout'] = @payout.to_h unless @payout.nil?
37
39
  hash['token'] = @token.to_h unless @token.nil?
40
+ hash['dispute'] = @dispute.to_h unless @dispute.nil?
38
41
  hash
39
42
  end
40
43
 
@@ -49,6 +52,7 @@ module Ingenico::Connect::SDK
49
52
  @refund = Ingenico::Connect::SDK::Domain::Refund::RefundResponse.new_from_hash(hash['refund']) if hash.has_key? 'refund'
50
53
  @payout = Ingenico::Connect::SDK::Domain::Payout::PayoutResponse.new_from_hash(hash['payout']) if hash.has_key? 'payout'
51
54
  @token = Ingenico::Connect::SDK::Domain::Token::TokenResponse.new_from_hash(hash['token']) if hash.has_key? 'token'
55
+ @dispute = Ingenico::Connect::SDK::Domain::Dispute::DisputeResponse.new_from_hash(hash['dispute']) if hash.has_key? 'dispute'
52
56
  end
53
57
  end
54
58
  end
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: 2.2.0
4
+ version: 2.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: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient