onlinepayments-sdk-ruby 3.1.0 → 3.2.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: 1bb876f081236865f02a3dd20ff6077b31c23849992bb96ea55d6b53d0f54fc1
4
- data.tar.gz: 32b0499d531fec07363427cf5de88d23abe2be615d730952cb5a651faca45b0b
3
+ metadata.gz: 1625d5958e5373ae388278001a214ff4bf2b1f8b94839e0e8b35e1e71615442e
4
+ data.tar.gz: 683427d180e452dc361475aafc16e1288c36b4d34d5999c435040de6c7dcda96
5
5
  SHA512:
6
- metadata.gz: f6dc8f05d2503945a27ea6c6ae624ed5cdd0cd4bab2dc95e5725f67e43ff16a230560d1ece763469e34d023142dbdc4e0a6e79a634e025e7cb0aea1c421d2a03
7
- data.tar.gz: 766130f0e2b133f60a8cdb379df46447aef8ce6fe517458a19756705117af71d0c6293b58d6ff1dc430700c39d4d52ea95f9a8339c957f72de7e64ba2bf1ff80
6
+ metadata.gz: 8331bf3b75977e24338ccb862cf379a508ef529610a19acd7b2e2941d9347d75a93d3f22e1600c2326bfaaa35281b9093fbeee0365bf14e1969c6852b506f748
7
+ data.tar.gz: 47e6a845f1962b64ec4c08c1aba7560b973a294f501d729139102aef2b68d23bd183fe6d64279a8207ad2dfb15f5fee759c2e03052b8c09915ef9159f58f3740
@@ -8,10 +8,12 @@ module OnlinePayments::SDK
8
8
 
9
9
  # @attr [String] bin
10
10
  # @attr [String] card_number
11
+ # @attr [String] country_code
11
12
  # @attr [String] expiry_date
12
13
  class CardEssentials < OnlinePayments::SDK::DataObject
13
14
  attr_accessor :bin
14
15
  attr_accessor :card_number
16
+ attr_accessor :country_code
15
17
  attr_accessor :expiry_date
16
18
 
17
19
  # @return (Hash)
@@ -19,6 +21,7 @@ module OnlinePayments::SDK
19
21
  hash = super
20
22
  hash['bin'] = @bin unless @bin.nil?
21
23
  hash['cardNumber'] = @card_number unless @card_number.nil?
24
+ hash['countryCode'] = @country_code unless @country_code.nil?
22
25
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
23
26
  hash
24
27
  end
@@ -27,6 +30,7 @@ module OnlinePayments::SDK
27
30
  super
28
31
  @bin = hash['bin'] if hash.key? 'bin'
29
32
  @card_number = hash['cardNumber'] if hash.key? 'cardNumber'
33
+ @country_code = hash['countryCode'] if hash.key? 'countryCode'
30
34
  @expiry_date = hash['expiryDate'] if hash.key? 'expiryDate'
31
35
  end
32
36
  end
@@ -15,6 +15,7 @@ module OnlinePayments::SDK
15
15
  # @attr [OnlinePayments::SDK::Domain::CardPaymentMethodSpecificInput] card_payment_method_specific_input
16
16
  # @attr [String] encrypted_customer_input
17
17
  # @attr [OnlinePayments::SDK::Domain::FraudFields] fraud_fields
18
+ # @attr [String] hosted_tokenization_id
18
19
  # @attr [OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput] mobile_payment_method_specific_input
19
20
  # @attr [OnlinePayments::SDK::Domain::Order] order
20
21
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificInput] redirect_payment_method_specific_input
@@ -23,6 +24,7 @@ module OnlinePayments::SDK
23
24
  attr_accessor :card_payment_method_specific_input
24
25
  attr_accessor :encrypted_customer_input
25
26
  attr_accessor :fraud_fields
27
+ attr_accessor :hosted_tokenization_id
26
28
  attr_accessor :mobile_payment_method_specific_input
27
29
  attr_accessor :order
28
30
  attr_accessor :redirect_payment_method_specific_input
@@ -34,6 +36,7 @@ module OnlinePayments::SDK
34
36
  hash['cardPaymentMethodSpecificInput'] = @card_payment_method_specific_input.to_h if @card_payment_method_specific_input
35
37
  hash['encryptedCustomerInput'] = @encrypted_customer_input unless @encrypted_customer_input.nil?
36
38
  hash['fraudFields'] = @fraud_fields.to_h if @fraud_fields
39
+ hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
37
40
  hash['mobilePaymentMethodSpecificInput'] = @mobile_payment_method_specific_input.to_h if @mobile_payment_method_specific_input
38
41
  hash['order'] = @order.to_h if @order
39
42
  hash['redirectPaymentMethodSpecificInput'] = @redirect_payment_method_specific_input.to_h if @redirect_payment_method_specific_input
@@ -52,6 +55,7 @@ module OnlinePayments::SDK
52
55
  raise TypeError, "value '%s' is not a Hash" % [hash['fraudFields']] unless hash['fraudFields'].is_a? Hash
53
56
  @fraud_fields = OnlinePayments::SDK::Domain::FraudFields.new_from_hash(hash['fraudFields'])
54
57
  end
58
+ @hosted_tokenization_id = hash['hostedTokenizationId'] if hash.key? 'hostedTokenizationId'
55
59
  if hash.key? 'mobilePaymentMethodSpecificInput'
56
60
  raise TypeError, "value '%s' is not a Hash" % [hash['mobilePaymentMethodSpecificInput']] unless hash['mobilePaymentMethodSpecificInput'].is_a? Hash
57
61
  @mobile_payment_method_specific_input = OnlinePayments::SDK::Domain::MobilePaymentMethodSpecificInput.new_from_hash(hash['mobilePaymentMethodSpecificInput'])
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '3.1.0'
3
+ spec.version = '3.2.0'
4
4
  spec.authors = ['Worldline Direct support team']
5
5
  spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
6
6
  spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-01 00:00:00.000000000 Z
11
+ date: 2022-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient