acquiring-sdk-ruby 4.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: e630894f879bf0934f8f276d7b8067e044d783c173a14474598371b6adb062f9
4
- data.tar.gz: b66dd4f3884f5282c973fda9355f397cf2e7b16a86d00f9a97a43c1b06189faa
3
+ metadata.gz: 00add5f6e0fc603a5baa979e80e2038cae570269cd6b1b7d38f60bdacbb05751
4
+ data.tar.gz: 03c3737d1dd982fe57a41383216bd42d400dc52a2ef64a82e79699ed2c1defca
5
5
  SHA512:
6
- metadata.gz: 0ab66f1faffb4963b62dcd7403296bf87eafa4216ae8b19170eae704d410101aeb887a0053679a0ad32b67670cd1cd16e62f3a9bda725a44bb49889502d7a22a
7
- data.tar.gz: 2fb8478924d01047d83184e30b084dc43da0526a5f956c7797a0bded277ebb8d7a0fb5313eccbc706e9e9427d4fd939dd1a4ec2e12421f0dc14f0aacdcd8d325
6
+ metadata.gz: e9744ae626ea9049b94f9f977a0986eb646c10742bb9a8f33b57bf89c55e8e445caad9947f18152d695288cdcca3fa1fea7ff417a6ce0e77662ef3f7f887e4c5
7
+ data.tar.gz: 367dc51a5f4069fccda84e148f1008e76925d15c1e96b2777ed87c52103d198d7d447915297fb0054666c88e7904a1a99418753309415f70defe543273942289
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'acquiring-sdk-ruby'
3
- spec.version = '4.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}
@@ -14,7 +14,7 @@ module Worldline
14
14
  class MetadataProvider
15
15
  private
16
16
 
17
- SDK_VERSION = '4.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
@@ -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: 4.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-10-07 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
@@ -411,7 +411,7 @@ homepage: https://github.com/Worldline-Acquiring/acquiring-sdk-ruby
411
411
  licenses:
412
412
  - MIT
413
413
  metadata: {}
414
- post_install_message:
414
+ post_install_message:
415
415
  rdoc_options: []
416
416
  require_paths:
417
417
  - lib
@@ -426,8 +426,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.1.6
430
- signing_key:
429
+ rubygems_version: 3.4.19
430
+ signing_key:
431
431
  specification_version: 4
432
432
  summary: SDK to communicate with the Worldline Acquiring platform using the Worldline
433
433
  Acquiring API