onlinepayments-sdk-ruby 7.2.1 → 7.2.2

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: 886740826e219e0289ead1278dda67d3d119b1cbf149d7c00325619558de6570
4
- data.tar.gz: e1d8f9cf63268d0300b447966f725f46cdebb6de3555176b45f9adf418789179
3
+ metadata.gz: 844c28693af05242f63c2c8ad50ac46ea27f71f880e75f51ff44dd80db649b78
4
+ data.tar.gz: 69a983cecf551acfefaed5ade4cf74e80d1dd90103f33ee1cdb79f107b9da775
5
5
  SHA512:
6
- metadata.gz: 3d79d6219337df03eb700ed3ad99f338d47dac3ec91ab0d52acc5667e892523155c36cac6b8dff28953c302cc890b1bbe0812781d4bc095cc40c098a074e9a7a
7
- data.tar.gz: 75f803d0195e128c0de97d7753c459319884dd194ca195cb5b5255960120be71f39c3dbc8bc3556fae4847e2446578badb74babb9a9dad8e163d91bccc817ee2
6
+ metadata.gz: b388b7d5c9ee241184ff79dff290c086e2aa5ba309f1c7fb12def53c0765bde748e0f7b59ff79b543ba0e8ab6cc5c6515e8f26fce61767a9d655fdb361b47818
7
+ data.tar.gz: 7c8458617732db0bbb5d7bdbac16b71d4a4e5215a7853405da8fb8b1dd2630482303527fb7f59bc1e21654f1a7ad2e277784beed009cda9bec0a0ac570ebd80e
@@ -89,7 +89,7 @@ module OnlinePayments
89
89
 
90
90
  private
91
91
 
92
- # Returns the encoded URI path without the HTTP method and including all decoded query parameters.
92
+ # Returns the URI path without the HTTP method and including all decoded query parameters.
93
93
  def to_canonical_resource(resource_uri)
94
94
  return "#{resource_uri.path}?#{resource_uri.query}" if resource_uri.query
95
95
  resource_uri.path
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '7.2.1'.freeze
16
+ SDK_VERSION = '7.2.2'.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
@@ -1,4 +1,5 @@
1
1
  require 'onlinepayments/sdk/domain/data_object'
2
+ require 'onlinepayments/sdk/domain/get_batch_status_response'
2
3
  require 'onlinepayments/sdk/domain/payment_link_response'
3
4
  require 'onlinepayments/sdk/domain/payment_response'
4
5
  require 'onlinepayments/sdk/domain/payout_response'
@@ -13,6 +14,7 @@ module OnlinePayments
13
14
  # @attr [String] id
14
15
  # @attr [String] merchant_id
15
16
  # @attr [String] type
17
+ # @attr [OnlinePayments::SDK::V2::Domain::GetBatchStatusResponse] direct_batch
16
18
  # @attr [OnlinePayments::SDK::V2::Domain::PaymentLinkResponse] payment_link
17
19
  # @attr [OnlinePayments::SDK::V2::Domain::PaymentResponse] payment
18
20
  # @attr [OnlinePayments::SDK::V2::Domain::PayoutResponse] payout
@@ -32,6 +34,8 @@ module OnlinePayments
32
34
 
33
35
  attr_accessor :type
34
36
 
37
+ attr_accessor :direct_batch
38
+
35
39
  attr_accessor :payment_link
36
40
 
37
41
  attr_accessor :payment
@@ -50,6 +54,7 @@ module OnlinePayments
50
54
  hash['id'] = @id unless @id.nil?
51
55
  hash['merchantId'] = @merchant_id unless @merchant_id.nil?
52
56
  hash['type'] = @type unless @type.nil?
57
+ hash['directBatch'] = @direct_batch.to_h unless @direct_batch.nil?
53
58
  hash['paymentLink'] = @payment_link.to_h unless @payment_link.nil?
54
59
  hash['payment'] = @payment.to_h unless @payment.nil?
55
60
  hash['payout'] = @payout.to_h unless @payout.nil?
@@ -75,6 +80,9 @@ module OnlinePayments
75
80
  if hash.has_key? 'type'
76
81
  @type = hash['type']
77
82
  end
83
+ if hash.has_key? 'directBatch'
84
+ @direct_batch = OnlinePayments::SDK::Domain::GetBatchStatusResponse.new_from_hash(hash['directBatch'])
85
+ end
78
86
  if hash.has_key? 'paymentLink'
79
87
  @payment_link = OnlinePayments::SDK::Domain::PaymentLinkResponse.new_from_hash(hash['paymentLink'])
80
88
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '7.2.1'
3
+ spec.version = '7.2.2'
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: 7.2.1
4
+ version: 7.2.2
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: 2026-02-23 00:00:00.000000000 Z
11
+ date: 2026-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient