tpaga 0.4.6.1 → 0.5.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/models/credit_card.rb +10 -2
- data/lib/tpaga/models/credit_card_charge.rb +10 -3
- data/lib/tpaga/models/transaction_info.rb +44 -0
- data/lib/tpaga/models/validation_charge.rb +44 -0
- data/lib/tpaga/swagger/version.rb +1 -1
- data/lib/tpaga.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00fad310c8ac5dad0cda1ede4a063f6938f25baa
|
4
|
+
data.tar.gz: 0ca948529c346fd8d8fcbb4bc4175ba2b0e6c078
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fb9aec7311d98981a4630fe8947343ad9d161ccc2ca0616d56155a0aa675ebd0eef7ee3a2114416c37a4349aa8e269efd104a5dd2909f2a125533e165385a5
|
7
|
+
data.tar.gz: 1cad6bd51ce9ef95172aaa2e702eacce9016cfc821f56025f4f3afffb360718d1f2b34955227b2a025a43d7e015a01ea9e7a9b038d4b5e91f5ea0015c71c7b02
|
@@ -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
|
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
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -48,6 +48,9 @@ module Tpaga
|
|
48
48
|
#
|
49
49
|
:'address_postal_code' => :'addressPostalCode',
|
50
50
|
|
51
|
+
#
|
52
|
+
:'validation_charge' => :'validationCharge',
|
53
|
+
|
51
54
|
#
|
52
55
|
:'address_country' => :'addressCountry'
|
53
56
|
|
@@ -71,7 +74,8 @@ module Tpaga
|
|
71
74
|
:'address_city' => :'string',
|
72
75
|
:'address_state' => :'string',
|
73
76
|
:'address_postal_code' => :'string',
|
74
|
-
:'address_country' => :'string'
|
77
|
+
:'address_country' => :'string',
|
78
|
+
:'validation_charge' => :'ValidationCharge',
|
75
79
|
|
76
80
|
}
|
77
81
|
end
|
@@ -142,6 +146,10 @@ module Tpaga
|
|
142
146
|
if attributes[:'addressCountry']
|
143
147
|
@address_country = attributes[:'addressCountry']
|
144
148
|
end
|
149
|
+
|
150
|
+
if attributes[:'validationCharge']
|
151
|
+
@validation_charge = attributes[:'validationCharge']
|
152
|
+
end
|
145
153
|
|
146
154
|
end
|
147
155
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Tpaga
|
2
2
|
#
|
3
3
|
class CreditCardCharge < BaseObject
|
4
|
-
attr_accessor :id, :amount, :tax_amount, :currency, :credit_card, :installments, :order_id, :description, :paid, :customer, :payment_transaction, :third_party_id
|
4
|
+
attr_accessor :id, :amount, :tax_amount, :currency, :credit_card, :installments, :order_id, :description, :paid, :customer, :payment_transaction, :third_party_id, :transaction_info
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -40,7 +40,10 @@ module Tpaga
|
|
40
40
|
:'customer' => :'customer',
|
41
41
|
|
42
42
|
#
|
43
|
-
:'payment_transaction' => :'paymentTransaction'
|
43
|
+
:'payment_transaction' => :'paymentTransaction',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'transaction_info' => :'transactionInfo'
|
44
47
|
|
45
48
|
}
|
46
49
|
end
|
@@ -59,7 +62,8 @@ module Tpaga
|
|
59
62
|
:'description' => :'string',
|
60
63
|
:'paid' => :'boolean',
|
61
64
|
:'customer' => :'string',
|
62
|
-
:'payment_transaction' => :'string'
|
65
|
+
:'payment_transaction' => :'string',
|
66
|
+
:'transaction_info' => :'TransactionInfo',
|
63
67
|
|
64
68
|
}
|
65
69
|
end
|
@@ -119,6 +123,9 @@ module Tpaga
|
|
119
123
|
@payment_transaction = attributes[:'paymentTransaction']
|
120
124
|
end
|
121
125
|
|
126
|
+
if attributes[:'transactionInfo']
|
127
|
+
@transaction_info = attributes[:'transactionInfo']
|
128
|
+
end
|
122
129
|
end
|
123
130
|
end
|
124
131
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Tpaga
|
2
|
+
#
|
3
|
+
class TransactionInfo < BaseObject
|
4
|
+
attr_accessor :authorization_code, :status
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'authorization_code' => :'authorizationCode',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'status' => :'status',
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'authorization_code' => :'string',
|
22
|
+
:'status' => :'string',
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'authorizationCode']
|
35
|
+
@authorization_code = attributes[:'authorizationCode']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'status']
|
39
|
+
@status = attributes[:'status']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Tpaga
|
2
|
+
#
|
3
|
+
class ValidationCharge < BaseObject
|
4
|
+
attr_accessor :succesful, :error_code
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'succesful' => :'succesful',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'error_code' => :'errorCode',
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'succesful' => :'boolean',
|
22
|
+
:'error_code' => :'string',
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'succesful']
|
35
|
+
@authorization_code = attributes[:'succesful']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'errorCode']
|
39
|
+
@status = attributes[:'error_code']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/tpaga.rb
CHANGED
@@ -23,6 +23,8 @@ require 'tpaga/models/davi_plata_verification'
|
|
23
23
|
require 'tpaga/models/api_errors_item'
|
24
24
|
require 'tpaga/models/api_error'
|
25
25
|
require 'tpaga/models/token'
|
26
|
+
require 'tpaga/models/transaction_info'
|
27
|
+
require 'tpaga/models/validation_charge'
|
26
28
|
|
27
29
|
# APIs
|
28
30
|
require 'tpaga/api/chargeback_api'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tpaga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Ortiz V.
|
@@ -107,6 +107,8 @@ files:
|
|
107
107
|
- lib/tpaga/models/davi_plata_chargeback.rb
|
108
108
|
- lib/tpaga/models/davi_plata_verification.rb
|
109
109
|
- lib/tpaga/models/token.rb
|
110
|
+
- lib/tpaga/models/transaction_info.rb
|
111
|
+
- lib/tpaga/models/validation_charge.rb
|
110
112
|
- lib/tpaga/monkey.rb
|
111
113
|
- lib/tpaga/swagger.rb
|
112
114
|
- lib/tpaga/swagger/configuration.rb
|
@@ -134,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
136
|
version: '0'
|
135
137
|
requirements: []
|
136
138
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.1
|
138
140
|
signing_key:
|
139
141
|
specification_version: 4
|
140
142
|
summary: TPaga API Ruby Bindings powered by Swagger
|