connect-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: 791117f1bb35e32230acf8eb4814e94c2d966e5d0bb025da5edf3ca23c6846be
4
- data.tar.gz: 1eefc8bd5d196e6e32f2833bf25c522c8758408723831b7126d52ba56a860b94
3
+ metadata.gz: f13c96b2c167c5b1f5665adc4e6006189c00c92d3183c8183d2c10f9b172d995
4
+ data.tar.gz: c9c77cbb8aef6ba1fac3086bf15537813bd0c8ea29f8f2def6901fb8fdf33a94
5
5
  SHA512:
6
- metadata.gz: 41051f07e0b269e54623a8d07863bf1331a1d0b59469c58662940a4a15a1a39cfdf37bd9ead59a01e5d216c74cfe0e4ac7a5dab912251e7f60b565a8e5a82947
7
- data.tar.gz: 7eda244b03340ab7a979b16d33139c91407478110cb6cc5b7ebeb3e97a09b2e02a5cdea8727b685913fb406348726715c8e03eca41738f9aa3d8aeccdcaa137f
6
+ metadata.gz: 041e1ea9d321498af00f39a210bde17a810354b5c7d1d4c02467305c9d63bc9e1208d9083c0534ad41a4769edc9e9dd8b1dd9507ffa93577098b171d59af0b3f
7
+ data.tar.gz: c4eeada737202e4353ec11ac0b395ee3a3bba37dd3c5f5b483797e7648af55772f9e82a06c8ac66d1e18cd0994292dab89f264d4d6fa38962f060dd471f679d8
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '3.1.0'
3
+ spec.version = '3.2.0'
4
4
  spec.authors = ['Worldline Global Collect']
5
5
  spec.email = ['github.connect@worldline.com']
6
6
  spec.summary = %q{SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API}
@@ -14,7 +14,7 @@ module Worldline
14
14
  class MetadataProvider
15
15
  private
16
16
 
17
- SDK_VERSION = '3.1.0'.freeze
17
+ SDK_VERSION = '3.2.0'.freeze
18
18
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
19
19
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key','Date', 'Content-Type', 'Authorization'].sort!.freeze
20
20
  CHARSET = 'utf-8'.freeze
@@ -9,10 +9,13 @@ module Worldline
9
9
  module SDK
10
10
  module V1
11
11
  module Domain
12
+ # @attr [String] date_of_incorporation
12
13
  # @attr [String] name
13
14
  # @attr [String] vat_number
14
15
  class CompanyInformation < Worldline::Connect::SDK::Domain::DataObject
15
16
 
17
+ attr_accessor :date_of_incorporation
18
+
16
19
  attr_accessor :name
17
20
 
18
21
  attr_accessor :vat_number
@@ -20,6 +23,7 @@ module Worldline
20
23
  # @return (Hash)
21
24
  def to_h
22
25
  hash = super
26
+ hash['dateOfIncorporation'] = @date_of_incorporation unless @date_of_incorporation.nil?
23
27
  hash['name'] = @name unless @name.nil?
24
28
  hash['vatNumber'] = @vat_number unless @vat_number.nil?
25
29
  hash
@@ -27,6 +31,9 @@ module Worldline
27
31
 
28
32
  def from_hash(hash)
29
33
  super
34
+ if hash.has_key? 'dateOfIncorporation'
35
+ @date_of_incorporation = hash['dateOfIncorporation']
36
+ end
30
37
  if hash.has_key? 'name'
31
38
  @name = hash['name']
32
39
  end
@@ -10,6 +10,7 @@ module Worldline
10
10
  module V1
11
11
  module Domain
12
12
  # @attr [String] funding_type
13
+ # @attr [String] payment_code
13
14
  # @attr [String] purchase_type
14
15
  # @attr [String] transaction_type
15
16
  # @attr [String] usage_type
@@ -17,6 +18,8 @@ module Worldline
17
18
 
18
19
  attr_accessor :funding_type
19
20
 
21
+ attr_accessor :payment_code
22
+
20
23
  attr_accessor :purchase_type
21
24
 
22
25
  attr_accessor :transaction_type
@@ -27,6 +30,7 @@ module Worldline
27
30
  def to_h
28
31
  hash = super
29
32
  hash['fundingType'] = @funding_type unless @funding_type.nil?
33
+ hash['paymentCode'] = @payment_code unless @payment_code.nil?
30
34
  hash['purchaseType'] = @purchase_type unless @purchase_type.nil?
31
35
  hash['transactionType'] = @transaction_type unless @transaction_type.nil?
32
36
  hash['usageType'] = @usage_type unless @usage_type.nil?
@@ -38,6 +42,9 @@ module Worldline
38
42
  if hash.has_key? 'fundingType'
39
43
  @funding_type = hash['fundingType']
40
44
  end
45
+ if hash.has_key? 'paymentCode'
46
+ @payment_code = hash['paymentCode']
47
+ end
41
48
  if hash.has_key? 'purchaseType'
42
49
  @purchase_type = hash['purchaseType']
43
50
  end
@@ -5,7 +5,6 @@
5
5
  require 'worldline/connect/sdk/v1/domain/abstract_redirect_payment_method_specific_input'
6
6
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input'
7
7
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input'
8
- require 'worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input'
9
8
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input'
10
9
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input'
11
10
  require 'worldline/connect/sdk/v1/domain/redirect_payment_product863_specific_input'
@@ -21,7 +20,6 @@ module Worldline
21
20
  # @attr [true/false] is_recurring
22
21
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct4101SpecificInput] payment_product4101_specific_input
23
22
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput] payment_product809_specific_input
24
- # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct816SpecificInput] payment_product816_specific_input
25
23
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput] payment_product840_specific_input
26
24
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct861SpecificInput] payment_product861_specific_input
27
25
  # @attr [Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct863SpecificInput] payment_product863_specific_input
@@ -37,8 +35,6 @@ module Worldline
37
35
 
38
36
  attr_accessor :payment_product809_specific_input
39
37
 
40
- attr_accessor :payment_product816_specific_input
41
-
42
38
  attr_accessor :payment_product840_specific_input
43
39
 
44
40
  attr_accessor :payment_product861_specific_input
@@ -60,7 +56,6 @@ module Worldline
60
56
  hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
61
57
  hash['paymentProduct4101SpecificInput'] = @payment_product4101_specific_input.to_h unless @payment_product4101_specific_input.nil?
62
58
  hash['paymentProduct809SpecificInput'] = @payment_product809_specific_input.to_h unless @payment_product809_specific_input.nil?
63
- hash['paymentProduct816SpecificInput'] = @payment_product816_specific_input.to_h unless @payment_product816_specific_input.nil?
64
59
  hash['paymentProduct840SpecificInput'] = @payment_product840_specific_input.to_h unless @payment_product840_specific_input.nil?
65
60
  hash['paymentProduct861SpecificInput'] = @payment_product861_specific_input.to_h unless @payment_product861_specific_input.nil?
66
61
  hash['paymentProduct863SpecificInput'] = @payment_product863_specific_input.to_h unless @payment_product863_specific_input.nil?
@@ -84,10 +79,6 @@ module Worldline
84
79
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct809SpecificInput']] unless hash['paymentProduct809SpecificInput'].is_a? Hash
85
80
  @payment_product809_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct809SpecificInput.new_from_hash(hash['paymentProduct809SpecificInput'])
86
81
  end
87
- if hash.has_key? 'paymentProduct816SpecificInput'
88
- raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct816SpecificInput']] unless hash['paymentProduct816SpecificInput'].is_a? Hash
89
- @payment_product816_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct816SpecificInput.new_from_hash(hash['paymentProduct816SpecificInput'])
90
- end
91
82
  if hash.has_key? 'paymentProduct840SpecificInput'
92
83
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840SpecificInput']] unless hash['paymentProduct840SpecificInput'].is_a? Hash
93
84
  @payment_product840_specific_input = Worldline::Connect::SDK::V1::Domain::RedirectPaymentProduct840SpecificInput.new_from_hash(hash['paymentProduct840SpecificInput'])
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: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Global Collect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -571,7 +571,6 @@ files:
571
571
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input.rb
572
572
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product4101_specific_input_base.rb
573
573
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb
574
- - lib/worldline/connect/sdk/v1/domain/redirect_payment_product816_specific_input.rb
575
574
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb
576
575
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input_base.rb
577
576
  - lib/worldline/connect/sdk/v1/domain/redirect_payment_product861_specific_input.rb
@@ -1,37 +0,0 @@
1
- #
2
- # This class was auto-generated from the API references found at
3
- # https://apireference.connect.worldline-solutions.com/
4
- #
5
- require 'worldline/connect/sdk/domain/data_object'
6
- require 'worldline/connect/sdk/v1/domain/bank_account_iban'
7
-
8
- module Worldline
9
- module Connect
10
- module SDK
11
- module V1
12
- module Domain
13
- # @attr [Worldline::Connect::SDK::V1::Domain::BankAccountIban] bank_account_iban
14
- class RedirectPaymentProduct816SpecificInput < Worldline::Connect::SDK::Domain::DataObject
15
-
16
- attr_accessor :bank_account_iban
17
-
18
- # @return (Hash)
19
- def to_h
20
- hash = super
21
- hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
22
- hash
23
- end
24
-
25
- def from_hash(hash)
26
- super
27
- if hash.has_key? 'bankAccountIban'
28
- raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
29
- @bank_account_iban = Worldline::Connect::SDK::V1::Domain::BankAccountIban.new_from_hash(hash['bankAccountIban'])
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end