connect-sdk-ruby 5.0.1 → 5.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 269f3582ca309c1d5e51a5722dd50283eb0d1b2cb948dfa2db244b36494f9b2e
|
|
4
|
+
data.tar.gz: d589fb8b6a035693bcf00a85a0f33fc6ecc05fdab3faf41f442735495812e208
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cae5e12959935086bb575a5de03a5ba44a4a052d52155735617f530c91f92dc2235a7e2ae9734ff5fee40205db907db920d9ba968adf8fd63b737a8aae07766d
|
|
7
|
+
data.tar.gz: cdd6aa045464c4b005f0fb1aa38e1600404a0689680ad161e56b98c5efca2760d37ffe6e186b32a017cfca16fed2945edeb21f6f0e90d455b533714143c3a0aa
|
data/connect-sdk-ruby.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'connect-sdk-ruby'
|
|
3
|
-
spec.version = '5.0
|
|
3
|
+
spec.version = '5.1.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 = '5.0
|
|
17
|
+
SDK_VERSION = '5.1.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
|
|
@@ -10,32 +10,43 @@ module Worldline
|
|
|
10
10
|
module SDK
|
|
11
11
|
module V1
|
|
12
12
|
module Domain
|
|
13
|
+
# @attr [String] bin_product_type
|
|
13
14
|
# @attr [Array<Worldline::Connect::SDK::V1::Domain::IINDetail>] co_brands
|
|
14
15
|
# @attr [String] country_code
|
|
15
16
|
# @attr [true/false] is_allowed_in_context
|
|
17
|
+
# @attr [String] issuer_name
|
|
16
18
|
# @attr [Integer] payment_product_id
|
|
17
19
|
class GetIINDetailsResponse < Worldline::Connect::SDK::Domain::DataObject
|
|
18
20
|
|
|
21
|
+
attr_accessor :bin_product_type
|
|
22
|
+
|
|
19
23
|
attr_accessor :co_brands
|
|
20
24
|
|
|
21
25
|
attr_accessor :country_code
|
|
22
26
|
|
|
23
27
|
attr_accessor :is_allowed_in_context
|
|
24
28
|
|
|
29
|
+
attr_accessor :issuer_name
|
|
30
|
+
|
|
25
31
|
attr_accessor :payment_product_id
|
|
26
32
|
|
|
27
33
|
# @return (Hash)
|
|
28
34
|
def to_h
|
|
29
35
|
hash = super
|
|
36
|
+
hash['binProductType'] = @bin_product_type unless @bin_product_type.nil?
|
|
30
37
|
hash['coBrands'] = @co_brands.collect{|val| val.to_h} unless @co_brands.nil?
|
|
31
38
|
hash['countryCode'] = @country_code unless @country_code.nil?
|
|
32
39
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
|
40
|
+
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
|
33
41
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
34
42
|
hash
|
|
35
43
|
end
|
|
36
44
|
|
|
37
45
|
def from_hash(hash)
|
|
38
46
|
super
|
|
47
|
+
if hash.has_key? 'binProductType'
|
|
48
|
+
@bin_product_type = hash['binProductType']
|
|
49
|
+
end
|
|
39
50
|
if hash.has_key? 'coBrands'
|
|
40
51
|
raise TypeError, "value '%s' is not an Array" % [hash['coBrands']] unless hash['coBrands'].is_a? Array
|
|
41
52
|
@co_brands = []
|
|
@@ -49,6 +60,9 @@ module Worldline
|
|
|
49
60
|
if hash.has_key? 'isAllowedInContext'
|
|
50
61
|
@is_allowed_in_context = hash['isAllowedInContext']
|
|
51
62
|
end
|
|
63
|
+
if hash.has_key? 'issuerName'
|
|
64
|
+
@issuer_name = hash['issuerName']
|
|
65
|
+
end
|
|
52
66
|
if hash.has_key? 'paymentProductId'
|
|
53
67
|
@payment_product_id = hash['paymentProductId']
|
|
54
68
|
end
|
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: 5.0
|
|
4
|
+
version: 5.1.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: 2026-06-
|
|
11
|
+
date: 2026-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|