connect-sdk-ruby 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb +32 -0
- data/lib/ingenico/connect/sdk/domain/product/payment_product_field_validators.rb +11 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ddf530c4bc8aa130d7e3acc9f18d9412501fe7
|
4
|
+
data.tar.gz: 4f4578b92ff0744963e8fca3dba64e687cbc6786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8614190aa2d58a914400ef6cb03dfe1ddfffd7586d07b8552aaba7328b6a9cc4a9ddac0d777d6e973e446056430535fe7cc444bf58b4890bac777537fd621fc
|
7
|
+
data.tar.gz: 1c651bc294c6636724a7a2c9ef11fd69158becf45e6f136fb2da2d790fff856a150a61a65953b01ea3772216359798eec956153f6b6dc4d10ef5418133882d1d
|
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 = '1.
|
3
|
+
spec.version = '1.4.0'
|
4
4
|
spec.authors = ['Ingenico ePayments']
|
5
5
|
spec.email = ['github@epay.ingenico.com']
|
6
6
|
spec.summary = %q{SDK to communicate with the GlobalCollect platform using the Ingenico Connect Server API}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://developer.globalcollect.com/documentation/api/server/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Product
|
10
|
+
|
11
|
+
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_BoletoBancarioRequirednessValidator BoletoBancarioRequirednessValidator}
|
12
|
+
class BoletoBancarioRequirednessValidator < Ingenico::Connect::SDK::DataObject
|
13
|
+
|
14
|
+
# Integer
|
15
|
+
attr_accessor :fiscal_number_length
|
16
|
+
|
17
|
+
def to_h
|
18
|
+
hash = super
|
19
|
+
add_to_hash(hash, 'fiscalNumberLength', @fiscal_number_length)
|
20
|
+
hash
|
21
|
+
end
|
22
|
+
|
23
|
+
def from_hash(hash)
|
24
|
+
super
|
25
|
+
if hash.has_key?('fiscalNumberLength')
|
26
|
+
@fiscal_number_length = hash['fiscalNumberLength']
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# https://developer.globalcollect.com/documentation/api/server/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
|
+
require 'ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator'
|
6
7
|
require 'ingenico/connect/sdk/domain/product/empty_validator'
|
7
8
|
require 'ingenico/connect/sdk/domain/product/fixed_list_validator'
|
8
9
|
require 'ingenico/connect/sdk/domain/product/length_validator'
|
@@ -16,6 +17,9 @@ module Ingenico::Connect::SDK
|
|
16
17
|
# Class {https://developer.globalcollect.com/documentation/api/server/#schema_PaymentProductFieldValidators PaymentProductFieldValidators}
|
17
18
|
class PaymentProductFieldValidators < Ingenico::Connect::SDK::DataObject
|
18
19
|
|
20
|
+
# {Ingenico::Connect::SDK::Domain::Product::BoletoBancarioRequirednessValidator}
|
21
|
+
attr_accessor :boleto_bancario_requiredness
|
22
|
+
|
19
23
|
# {Ingenico::Connect::SDK::Domain::Product::EmptyValidator}
|
20
24
|
attr_accessor :email_address
|
21
25
|
|
@@ -39,6 +43,7 @@ module Ingenico::Connect::SDK
|
|
39
43
|
|
40
44
|
def to_h
|
41
45
|
hash = super
|
46
|
+
add_to_hash(hash, 'boletoBancarioRequiredness', @boleto_bancario_requiredness)
|
42
47
|
add_to_hash(hash, 'emailAddress', @email_address)
|
43
48
|
add_to_hash(hash, 'expirationDate', @expiration_date)
|
44
49
|
add_to_hash(hash, 'fixedList', @fixed_list)
|
@@ -51,6 +56,12 @@ module Ingenico::Connect::SDK
|
|
51
56
|
|
52
57
|
def from_hash(hash)
|
53
58
|
super
|
59
|
+
if hash.has_key?('boletoBancarioRequiredness')
|
60
|
+
if !(hash['boletoBancarioRequiredness'].is_a? Hash)
|
61
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['boletoBancarioRequiredness']]
|
62
|
+
end
|
63
|
+
@boleto_bancario_requiredness = Ingenico::Connect::SDK::Domain::Product::BoletoBancarioRequirednessValidator.new_from_hash(hash['boletoBancarioRequiredness'])
|
64
|
+
end
|
54
65
|
if hash.has_key?('emailAddress')
|
55
66
|
if !(hash['emailAddress'].is_a? Hash)
|
56
67
|
raise TypeError, "value '%s' is not a Hash" % [hash['emailAddress']]
|
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
|
|
5
5
|
|
6
6
|
# Manages metadata about the server using the SDK
|
7
7
|
class MetaDataProvider
|
8
|
-
@@SDK_VERSION = '1.
|
8
|
+
@@SDK_VERSION = '1.4.0'
|
9
9
|
@@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
|
10
10
|
@@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
|
11
11
|
'Date', 'Content-Type', 'Authorization'].sort!.freeze
|
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: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingenico ePayments
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -300,6 +300,7 @@ files:
|
|
300
300
|
- lib/ingenico/connect/sdk/domain/product/account_on_file.rb
|
301
301
|
- lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb
|
302
302
|
- lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb
|
303
|
+
- lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb
|
303
304
|
- lib/ingenico/connect/sdk/domain/product/directory.rb
|
304
305
|
- lib/ingenico/connect/sdk/domain/product/directory_entry.rb
|
305
306
|
- lib/ingenico/connect/sdk/domain/product/empty_validator.rb
|