onlinepayments-sdk-ruby 10.2.0 → 10.3.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: 3b5e7468f37c75acaea143efb11af05d2483bfb3517b6bd33e9a3cc870047a45
4
- data.tar.gz: e4605895a9f9b57aeee93eda073fdd841b2cd859d06f32a7c6607655ad119307
3
+ metadata.gz: 7bd93655aa73ed86542a6d14d220957e6849a78613edb9bfad6c53c1563cf0c5
4
+ data.tar.gz: 0d1800b7597bd79999a97a3dc11239bd74b56f65dc3519d9254dd0457de5fbda
5
5
  SHA512:
6
- metadata.gz: 9acc1d023f3baf455496bc2c95453e201e32015f54413cbd6c023f6c89b3c9bcbca85012668c27a4428b3db8cd3cded1f48e60f45fbe5f3090f7cf0f1294864f
7
- data.tar.gz: 56d5e7435b59afe55d9121489dce850b1c7b2589e22fee4442752e8becb546c8f57e69bf73bca2ce83cb55824856cbeda290bb67b98837f5a18cc47a977ccb14
6
+ metadata.gz: 4fabbb91223bc056a38f726b98c77943024f24a5364faaac5040df2dec86f8950c0caba97af1f4f61613ec7eae492463f4b7d9102f6b65c13ed7e198ec3db0c6
7
+ data.tar.gz: f98a76aa631b0c67159240384fd6e34b5e8dd9e25ab8e98e01bd279f627695c45a4677568eeb9dbd6f10bceb819c4b014bf5e71c0b68921ec11bc61194136f99
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '10.2.0'.freeze
16
+ SDK_VERSION = '10.3.0'.freeze
17
17
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
18
18
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
19
19
  CHARSET = 'utf-8'.freeze
@@ -430,7 +430,7 @@ module OnlinePayments
430
430
  # which represent the parameter name and value respectively.
431
431
  def to_absolute_uri(relative_path, request_parameters)
432
432
  absolute_path = relative_path.start_with?('/') ? relative_path : '/' + relative_path
433
- uri = URI::HTTP.new(@api_endpoint.scheme, nil, @api_endpoint.host,
433
+ uri = URI::HTTPS.new(@api_endpoint.scheme, nil, @api_endpoint.host,
434
434
  @api_endpoint.port, nil, absolute_path, nil, nil, nil)
435
435
  unless request_parameters.nil?
436
436
  request_parameters.each do |nvp|
@@ -76,7 +76,7 @@ module OnlinePayments
76
76
  def self.is_idempotence_error(errors, context)
77
77
  !context&.idempotence_key.nil? &&
78
78
  errors&.length == 1 &&
79
- errors[0]&.error_code == '1409'
79
+ errors[0]&.error_code == '30001002'
80
80
  end
81
81
  end
82
82
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '10.2.0'
3
+ spec.version = '10.3.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.0
4
+ version: 10.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team