acquiring-sdk-ruby 3.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89f279d5ab73080f221bcee7cd3df26efc5e18c49b82127e048b776d07aa12b5
4
- data.tar.gz: afeb2145606370391312ff3799efe715206504a7afbc43ecdfe8c4bb6a6047d2
3
+ metadata.gz: 00add5f6e0fc603a5baa979e80e2038cae570269cd6b1b7d38f60bdacbb05751
4
+ data.tar.gz: 03c3737d1dd982fe57a41383216bd42d400dc52a2ef64a82e79699ed2c1defca
5
5
  SHA512:
6
- metadata.gz: 220a95c0abd389478f078f2d292787f7e1b1d26f14d8c863806b12f9885cda01e8b50b158153eb71f954fade259ca2fa5e72b1e929b62389391ec6e2b154b463
7
- data.tar.gz: 4f9ee0c2c4583857fe6e6e13223a847116910a968c70e00bfcf835a170b5a79ea2fc5771da098b8e79c2254aabcf71331e659a47c6545862c48ccdfe7c362101
6
+ metadata.gz: e9744ae626ea9049b94f9f977a0986eb646c10742bb9a8f33b57bf89c55e8e445caad9947f18152d695288cdcca3fa1fea7ff417a6ce0e77662ef3f7f887e4c5
7
+ data.tar.gz: 367dc51a5f4069fccda84e148f1008e76925d15c1e96b2777ed87c52103d198d7d447915297fb0054666c88e7904a1a99418753309415f70defe543273942289
data/README.md CHANGED
@@ -24,12 +24,13 @@ Note that the source code of the unit tests and integration tests can only be fo
24
24
 
25
25
  ## Requirements
26
26
 
27
- Ruby 2.3 or higher is required.
28
- As for JRuby, version 9.0.0.0 and higher are supported.
27
+ Ruby 3.2 or higher is required.
28
+ As for JRuby, version 10.0.0.0 and higher are supported.
29
29
  In addition, the following packages are required:
30
30
 
31
- * [httpclient](https://github.com/nahi/httpclient) 2.8 or higher
32
- * [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby) 1.0 or higher
31
+ * [httpclient](https://github.com/nahi/httpclient) 2.9 or higher
32
+ * [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby) 1.3.5 or higher
33
+ * [base64](https://github.com/ruby/base64) 0.3 or higher
33
34
 
34
35
  ## Installation
35
36
 
@@ -88,15 +89,16 @@ In addition, to run the proxy integration tests, the proxy URI, username and pas
88
89
 
89
90
  In order to run the unit and integration tests, some additional dependencies are required:
90
91
 
91
- * [rake](https://ruby.github.io/rake/) 12.3.3 or higher
92
- * [rspec](https://github.com/rspec/rspec) 3.5 or higher
93
- * [webmock](https://github.com/bblimke/webmock) 2.1 or higher
94
- * [sinatra](https://github.com/sinatra/sinatra) 2.1 or higher
95
- * [webrick](https://github.com/ruby/webrick) 1.7 or higher
92
+ * [rake](https://ruby.github.io/rake/) 13.4 or higher
93
+ * [rspec](https://github.com/rspec/rspec) 3.13 or higher
94
+ * [webmock](https://github.com/bblimke/webmock) 3.26 or higher
95
+ * [sinatra](https://github.com/sinatra/sinatra) 4.2 or higher
96
+ * [webrick](https://github.com/ruby/webrick) 1.9 or higher
97
+ * [rackup](https://github.com/rack/rackup) 2.2 or higher
96
98
 
97
99
  They can be installed using the following command:
98
100
 
99
- gem install rake rspec webmock sinatra
101
+ gem install rake rspec webmock sinatra webrick rackup
100
102
 
101
103
  *Note: if rake is already installed as part of the Ruby installation, this will cause a conflict error. This can safely be ignored.*
102
104
 
@@ -124,7 +126,7 @@ The following commands can now be executed from the root directory of the SDK fo
124
126
 
125
127
  Documentation can be generated with YARD. YARD can be installed as a gem. The gems required to generate documentation are:
126
128
 
127
- * [rake](https://ruby.github.io/rake/) 12.3.3 or higher
129
+ * [rake](https://ruby.github.io/rake/) 13.4 or higher
128
130
  * [yard](https://github.com/lsegal/yard) 0.9.5 or higher
129
131
 
130
132
  They can be installed using the following command:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'acquiring-sdk-ruby'
3
- spec.version = '3.0.0'
3
+ spec.version = '4.1.0'
4
4
  spec.authors = ['Worldline Acquiring']
5
5
  spec.email = ['github.acquiring@worldline.com']
6
6
  spec.summary = %q{SDK to communicate with the Worldline Acquiring platform using the Worldline Acquiring API}
@@ -15,16 +15,18 @@ Gem::Specification.new do |spec|
15
15
  spec.test_files = spec.files.grep(%r{^(test|spec|features)\/})
16
16
  spec.require_paths = ['lib']
17
17
 
18
- spec.required_ruby_version = '>= 2.0'
18
+ spec.required_ruby_version = '>= 3.2'
19
19
 
20
- spec.add_dependency 'httpclient', '~> 2.8'
21
- spec.add_dependency 'concurrent-ruby', '~>1.0'
20
+ spec.add_dependency 'httpclient', '~> 2.9'
21
+ spec.add_dependency 'concurrent-ruby', '~> 1.3', '>= 1.3.5'
22
+ spec.add_dependency 'base64', '~> 0.3'
22
23
 
23
24
  spec.add_development_dependency 'yard', '~> 0.9'
24
- spec.add_development_dependency 'rspec', '~> 3.5'
25
- spec.add_development_dependency 'webmock', '~> 2.1'
26
- spec.add_development_dependency 'sinatra', '~> 2.1'
27
- spec.add_development_dependency 'webrick', '~> 1.7'
28
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
25
+ spec.add_development_dependency 'rspec', '~> 3.13'
26
+ spec.add_development_dependency 'webmock', '~> 3.26'
27
+ spec.add_development_dependency 'sinatra', '~> 4.2'
28
+ spec.add_development_dependency 'webrick', '~> 1.9'
29
+ spec.add_development_dependency 'rackup', '~> 2.2'
30
+ spec.add_development_dependency 'rake', '~> 13.4'
29
31
  # spec.metadata['yard.run'] = 'yri' # compiles yard doc on install
30
32
  end
@@ -14,7 +14,7 @@ module Worldline
14
14
  class MetadataProvider
15
15
  private
16
16
 
17
- SDK_VERSION = '3.0.0'.freeze
17
+ SDK_VERSION = '4.1.0'.freeze
18
18
  SERVER_META_INFO_HEADER = 'X-WL-ServerMetaInfo'.freeze
19
19
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'Date', 'Content-Type', 'Authorization'].sort!.freeze
20
20
  CHARSET = 'utf-8'.freeze
@@ -366,13 +366,13 @@ module Worldline
366
366
  # Closes any connections idle for more than _idle_time_ seconds.
367
367
  # Will not have any effect if the connection is not a pooled connection (an instance of {Worldline::Acquiring::SDK::Communication::PooledConnection}).
368
368
  def close_idle_connections(idle_time)
369
- @connection.close_idle_connections(idle_time) if @connection.is_a? PooledConnection
369
+ @connection.close_idle_connections(idle_time) if @connection.is_a? Communication::PooledConnection
370
370
  end
371
371
 
372
372
  # Closes any connections that have expired.
373
373
  # Will not have any effect if the connection is not a pooled connection (an instance of {Worldline::Acquiring::SDK::Communication::PooledConnection}).
374
374
  def close_expired_connections
375
- @connection.close_expired_connections if @connection.is_a? PooledConnection
375
+ @connection.close_expired_connections if @connection.is_a? Communication::PooledConnection
376
376
  end
377
377
 
378
378
  # Sets the current body obfuscator to use.
@@ -460,7 +460,7 @@ module Worldline
460
460
  end
461
461
 
462
462
  def process_binary_response(status, body, headers, context)
463
- update_context(response.headers, context) unless context.nil?
463
+ update_context(headers, context) unless context.nil?
464
464
 
465
465
  if status < 400
466
466
  yield headers, body
@@ -1,6 +1,8 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'date'
5
+
4
6
  require 'worldline/acquiring/sdk/domain/data_object'
5
7
  require 'worldline/acquiring/sdk/v1/domain/card_data_for_dcc'
6
8
  require 'worldline/acquiring/sdk/v1/domain/point_of_sale_data_for_dcc'
@@ -13,6 +15,7 @@ module Worldline
13
15
  module Domain
14
16
  # @attr [Worldline::Acquiring::SDK::V1::Domain::CardDataForDcc] card_payment_data
15
17
  # @attr [String] operation_id
18
+ # @attr [Date] original_payment_date
16
19
  # @attr [Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForDcc] point_of_sale_data
17
20
  # @attr [String] rate_reference_id
18
21
  # @attr [String] target_currency
@@ -23,6 +26,8 @@ module Worldline
23
26
 
24
27
  attr_accessor :operation_id
25
28
 
29
+ attr_accessor :original_payment_date
30
+
26
31
  attr_accessor :point_of_sale_data
27
32
 
28
33
  attr_accessor :rate_reference_id
@@ -36,6 +41,7 @@ module Worldline
36
41
  hash = super
37
42
  hash['cardPaymentData'] = @card_payment_data.to_h unless @card_payment_data.nil?
38
43
  hash['operationId'] = @operation_id unless @operation_id.nil?
44
+ hash['originalPaymentDate'] = @original_payment_date.iso8601 unless @original_payment_date.nil?
39
45
  hash['pointOfSaleData'] = @point_of_sale_data.to_h unless @point_of_sale_data.nil?
40
46
  hash['rateReferenceId'] = @rate_reference_id unless @rate_reference_id.nil?
41
47
  hash['targetCurrency'] = @target_currency unless @target_currency.nil?
@@ -52,6 +58,9 @@ module Worldline
52
58
  if hash.has_key? 'operationId'
53
59
  @operation_id = hash['operationId']
54
60
  end
61
+ if hash.has_key? 'originalPaymentDate'
62
+ @original_payment_date = Date.parse(hash['originalPaymentDate'])
63
+ end
55
64
  if hash.has_key? 'pointOfSaleData'
56
65
  raise TypeError, "value '%s' is not a Hash" % [hash['pointOfSaleData']] unless hash['pointOfSaleData'].is_a? Hash
57
66
  @point_of_sale_data = Worldline::Acquiring::SDK::V1::Domain::PointOfSaleDataForDcc.new_from_hash(hash['pointOfSaleData'])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acquiring-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Acquiring
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-30 00:00:00.000000000 Z
11
+ date: 2026-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -16,28 +16,48 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.8'
19
+ version: '2.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.8'
26
+ version: '2.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: concurrent-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.3'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.3.5
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.3'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.5
47
+ - !ruby/object:Gem::Dependency
48
+ name: base64
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.3'
34
54
  type: :runtime
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
58
  - - "~>"
39
59
  - !ruby/object:Gem::Version
40
- version: '1.0'
60
+ version: '0.3'
41
61
  - !ruby/object:Gem::Dependency
42
62
  name: yard
43
63
  requirement: !ruby/object:Gem::Requirement
@@ -58,76 +78,84 @@ dependencies:
58
78
  requirements:
59
79
  - - "~>"
60
80
  - !ruby/object:Gem::Version
61
- version: '3.5'
81
+ version: '3.13'
62
82
  type: :development
63
83
  prerelease: false
64
84
  version_requirements: !ruby/object:Gem::Requirement
65
85
  requirements:
66
86
  - - "~>"
67
87
  - !ruby/object:Gem::Version
68
- version: '3.5'
88
+ version: '3.13'
69
89
  - !ruby/object:Gem::Dependency
70
90
  name: webmock
71
91
  requirement: !ruby/object:Gem::Requirement
72
92
  requirements:
73
93
  - - "~>"
74
94
  - !ruby/object:Gem::Version
75
- version: '2.1'
95
+ version: '3.26'
76
96
  type: :development
77
97
  prerelease: false
78
98
  version_requirements: !ruby/object:Gem::Requirement
79
99
  requirements:
80
100
  - - "~>"
81
101
  - !ruby/object:Gem::Version
82
- version: '2.1'
102
+ version: '3.26'
83
103
  - !ruby/object:Gem::Dependency
84
104
  name: sinatra
85
105
  requirement: !ruby/object:Gem::Requirement
86
106
  requirements:
87
107
  - - "~>"
88
108
  - !ruby/object:Gem::Version
89
- version: '2.1'
109
+ version: '4.2'
90
110
  type: :development
91
111
  prerelease: false
92
112
  version_requirements: !ruby/object:Gem::Requirement
93
113
  requirements:
94
114
  - - "~>"
95
115
  - !ruby/object:Gem::Version
96
- version: '2.1'
116
+ version: '4.2'
97
117
  - !ruby/object:Gem::Dependency
98
118
  name: webrick
99
119
  requirement: !ruby/object:Gem::Requirement
100
120
  requirements:
101
121
  - - "~>"
102
122
  - !ruby/object:Gem::Version
103
- version: '1.7'
123
+ version: '1.9'
104
124
  type: :development
105
125
  prerelease: false
106
126
  version_requirements: !ruby/object:Gem::Requirement
107
127
  requirements:
108
128
  - - "~>"
109
129
  - !ruby/object:Gem::Version
110
- version: '1.7'
130
+ version: '1.9'
111
131
  - !ruby/object:Gem::Dependency
112
- name: rake
132
+ name: rackup
113
133
  requirement: !ruby/object:Gem::Requirement
114
134
  requirements:
115
135
  - - "~>"
116
136
  - !ruby/object:Gem::Version
117
- version: '12.3'
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- version: 12.3.3
137
+ version: '2.2'
121
138
  type: :development
122
139
  prerelease: false
123
140
  version_requirements: !ruby/object:Gem::Requirement
124
141
  requirements:
125
142
  - - "~>"
126
143
  - !ruby/object:Gem::Version
127
- version: '12.3'
128
- - - ">="
144
+ version: '2.2'
145
+ - !ruby/object:Gem::Dependency
146
+ name: rake
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '13.4'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
129
157
  - !ruby/object:Gem::Version
130
- version: 12.3.3
158
+ version: '13.4'
131
159
  description: SDK to communicate with the Worldline Acquiring platform using the Worldline
132
160
  Acquiring API
133
161
  email:
@@ -383,7 +411,7 @@ homepage: https://github.com/Worldline-Acquiring/acquiring-sdk-ruby
383
411
  licenses:
384
412
  - MIT
385
413
  metadata: {}
386
- post_install_message:
414
+ post_install_message:
387
415
  rdoc_options: []
388
416
  require_paths:
389
417
  - lib
@@ -391,15 +419,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
391
419
  requirements:
392
420
  - - ">="
393
421
  - !ruby/object:Gem::Version
394
- version: '2.0'
422
+ version: '3.2'
395
423
  required_rubygems_version: !ruby/object:Gem::Requirement
396
424
  requirements:
397
425
  - - ">="
398
426
  - !ruby/object:Gem::Version
399
427
  version: '0'
400
428
  requirements: []
401
- rubygems_version: 3.1.6
402
- signing_key:
429
+ rubygems_version: 3.4.19
430
+ signing_key:
403
431
  specification_version: 4
404
432
  summary: SDK to communicate with the Worldline Acquiring platform using the Worldline
405
433
  Acquiring API