tpaga 0.5.3 → 0.6.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 +4 -4
- data/lib/tpaga.rb +1 -0
- data/lib/tpaga/models/credit_card.rb +9 -1
- data/lib/tpaga/models/credit_card_check_result.rb +36 -0
- data/lib/tpaga/swagger/version.rb +1 -1
- data/tpaga.gemspec +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: b30ff81b8ed9ee75ba76e8fe58f5c34c85e99ba6
|
4
|
+
data.tar.gz: c8f0ab1724746094967ac11d66bd5b2561d823f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0f3f568b9753f13878c573b55df55692b9b5033537a5697ff250b1a78669b35a65d5b5254fd6e97a3017b136836d2733b52362c60a82f3c10f37dee77dde992
|
7
|
+
data.tar.gz: d89ebdd6a783e4f9b4e7a6fc570e0a8e93707f7ac4b59779f9aa62ec2a4fd058b4bf9ee6b07375e8d38bc833c960a8d9cb57f68e32e0d88722f3847a80e9b8a8
|
data/lib/tpaga.rb
CHANGED
@@ -11,6 +11,7 @@ require 'tpaga/models/base_object'
|
|
11
11
|
require 'tpaga/models/city'
|
12
12
|
require 'tpaga/models/address'
|
13
13
|
require 'tpaga/models/customer'
|
14
|
+
require 'tpaga/models/credit_card_check_result'
|
14
15
|
require 'tpaga/models/credit_card'
|
15
16
|
require 'tpaga/models/credit_card_create'
|
16
17
|
require 'tpaga/models/credit_card_refund'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Tpaga
|
2
2
|
#
|
3
3
|
class CreditCard < BaseObject
|
4
|
-
attr_accessor :id, :bin, :type, :expiration_month, :expiration_year, :card_verification_code, :card_holder_name, :last_four, :customer, :address_line1, :address_line2, :address_city, :address_state, :address_postal_code, :address_country, :validation_charge
|
4
|
+
attr_accessor :id, :bin, :type, :expiration_month, :expiration_year, :card_verification_code, :card_holder_name, :last_four, :customer, :address_line1, :address_line2, :address_city, :address_state, :address_postal_code, :address_country, :validation_charge, :credit_card_checks
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -50,6 +50,9 @@ module Tpaga
|
|
50
50
|
|
51
51
|
#
|
52
52
|
:'validation_charge' => :'validationCharge',
|
53
|
+
|
54
|
+
#
|
55
|
+
:'credit_card_checks' => :'creditCardChecks',
|
53
56
|
|
54
57
|
#
|
55
58
|
:'address_country' => :'addressCountry'
|
@@ -76,6 +79,7 @@ module Tpaga
|
|
76
79
|
:'address_postal_code' => :'string',
|
77
80
|
:'address_country' => :'string',
|
78
81
|
:'validation_charge' => :'ValidationCharge',
|
82
|
+
:'credit_card_checks' => :'CreditCardCheckResult',
|
79
83
|
|
80
84
|
}
|
81
85
|
end
|
@@ -150,6 +154,10 @@ module Tpaga
|
|
150
154
|
if attributes[:'validationCharge']
|
151
155
|
@validation_charge = attributes[:'validationCharge']
|
152
156
|
end
|
157
|
+
|
158
|
+
if attributes[:'creditCardChecks']
|
159
|
+
@credit_card_checks = attributes[:'creditCardChecks']
|
160
|
+
end
|
153
161
|
|
154
162
|
end
|
155
163
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Tpaga
|
2
|
+
#
|
3
|
+
class CreditCardCheckResult < BaseObject
|
4
|
+
attr_accessor :card_holder_legal_id_matches
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'card_holder_legal_id_matches' => :'cardHolderLegalIdMatches',
|
11
|
+
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
# attribute type
|
16
|
+
def self.swagger_types
|
17
|
+
{
|
18
|
+
:'card_holder_legal_id_matches' => :'string',
|
19
|
+
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(attributes = {})
|
24
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
25
|
+
|
26
|
+
# convert string to symbol for hash key
|
27
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
28
|
+
|
29
|
+
|
30
|
+
if attributes[:'cardHolderLegalIdMatches']
|
31
|
+
@card_holder_legal_id_matches = attributes[:'card_holder_legal_id_matches']
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/tpaga.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tpaga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Ortiz V.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -99,6 +99,7 @@ files:
|
|
99
99
|
- lib/tpaga/models/city.rb
|
100
100
|
- lib/tpaga/models/credit_card.rb
|
101
101
|
- lib/tpaga/models/credit_card_charge.rb
|
102
|
+
- lib/tpaga/models/credit_card_check_result.rb
|
102
103
|
- lib/tpaga/models/credit_card_create.rb
|
103
104
|
- lib/tpaga/models/credit_card_refund.rb
|
104
105
|
- lib/tpaga/models/customer.rb
|