connect-sdk-ruby 4.1.0 → 4.2.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: 227d21f080883738919bda758616eca5a502872d224694b862cd831b75162a0a
|
|
4
|
+
data.tar.gz: 8e5d1dba0d0b9174f649e6dd6d423f416297c4f55d816f333bf80828e05de8a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47197b1e2efe3afd6d56df1a874ea308d18e9d926ef52b8e30c565810710c2c30d7784a2551d23f91ace6f188e0c49a77ad7c4aadfe33b6dfe0a70f34d444f31
|
|
7
|
+
data.tar.gz: 468879e2626ddfa32037701023936369ecf439c44b6d53d67740e8e1fdb730a7a542b733f00fbd971c6c798b6a86bd88888a7b2abf29eeebf8f71103c4459129
|
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 = '4.
|
|
3
|
+
spec.version = '4.2.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 = '4.
|
|
17
|
+
SDK_VERSION = '4.2.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
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'date'
|
|
1
2
|
require 'spec_helper'
|
|
2
3
|
require 'integration_setup'
|
|
3
4
|
require 'webmock/rspec'
|
|
@@ -15,6 +16,8 @@ describe 'token' do
|
|
|
15
16
|
after(:context){WebMock.disable_net_connect!}
|
|
16
17
|
|
|
17
18
|
it 'can be created and deleted' do
|
|
19
|
+
expiry_date = (Date.today + 365 / 2).strftime('%m%y')
|
|
20
|
+
|
|
18
21
|
billing_address = Worldline::Connect::SDK::V1::Domain::Address.new
|
|
19
22
|
billing_address.country_code = 'NL'
|
|
20
23
|
customer = Worldline::Connect::SDK::V1::Domain::CustomerToken.new
|
|
@@ -23,7 +26,7 @@ describe 'token' do
|
|
|
23
26
|
card_without_ccv.cardholder_name = 'Jan'
|
|
24
27
|
card_without_ccv.issue_number = '12'
|
|
25
28
|
card_without_ccv.card_number = '4567350000427977'
|
|
26
|
-
card_without_ccv.expiry_date =
|
|
29
|
+
card_without_ccv.expiry_date = expiry_date
|
|
27
30
|
card_data = Worldline::Connect::SDK::V1::Domain::TokenCardData.new
|
|
28
31
|
card_data.card_without_cvv = card_without_ccv
|
|
29
32
|
card = Worldline::Connect::SDK::V1::Domain::TokenCard.new
|
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: 4.
|
|
4
|
+
version: 4.2.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:
|
|
11
|
+
date: 2026-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httpclient
|