tpaga 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tpaga/models/credit_card_charge.rb +53 -37
- data/lib/tpaga/swagger/version.rb +1 -1
- data/tpaga.gemspec +1 -1
- metadata +2 -3
- data/tpaga-0.4.3.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d7363879b3c8082ec127ec5f396758890ee83d4
|
4
|
+
data.tar.gz: 45507b1a3250b7c731249e3e6f654f62bd0940a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfbddf2b239c3c94359c1fc891ae50d2ece4f3c760bda2c8ff15aea130c7ca35108b7d68159174492bed3a5e67318e3f7604cf17d20af5c4d0dfcb438d189cb7
|
7
|
+
data.tar.gz: 3a61d89a1c133052d82dd77f48d8ca32b37d3ef19ced625b5407dabe06afd1de63e3185f5f994bf177d268e45673fab224ba49358d002274935e3ad62578f6d3
|
@@ -1,47 +1,53 @@
|
|
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, :error_code, :error_message
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
8
|
-
|
9
|
-
#
|
8
|
+
|
9
|
+
#
|
10
10
|
:'id' => :'id',
|
11
|
-
|
12
|
-
#
|
11
|
+
|
12
|
+
#
|
13
13
|
:'amount' => :'amount',
|
14
|
-
|
15
|
-
#
|
14
|
+
|
15
|
+
#
|
16
16
|
:'tax_amount' => :'taxAmount',
|
17
|
-
|
17
|
+
|
18
18
|
# 3-letter ISO code for currency.
|
19
19
|
:'currency' => :'currency',
|
20
|
-
|
21
|
-
#
|
20
|
+
|
21
|
+
#
|
22
22
|
:'credit_card' => :'creditCard',
|
23
|
-
|
23
|
+
|
24
24
|
# The amount of payments to divide the charge amount.
|
25
25
|
:'installments' => :'installments',
|
26
|
-
|
27
|
-
#
|
26
|
+
|
27
|
+
#
|
28
28
|
:'order_id' => :'orderId',
|
29
|
-
|
30
|
-
#
|
29
|
+
|
30
|
+
#
|
31
31
|
:'description' => :'description',
|
32
32
|
|
33
33
|
#
|
34
34
|
:'third_party_id' => :'thirdPartyId',
|
35
35
|
|
36
|
-
#
|
36
|
+
#
|
37
37
|
:'paid' => :'paid',
|
38
|
-
|
39
|
-
#
|
38
|
+
|
39
|
+
#
|
40
40
|
:'customer' => :'customer',
|
41
|
-
|
42
|
-
#
|
43
|
-
:'payment_transaction' => :'paymentTransaction'
|
44
|
-
|
41
|
+
|
42
|
+
#
|
43
|
+
:'payment_transaction' => :'paymentTransaction',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'error_code' => :'errorCode',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'error_message' => :'errorMessage'
|
50
|
+
|
45
51
|
}
|
46
52
|
end
|
47
53
|
|
@@ -59,8 +65,10 @@ module Tpaga
|
|
59
65
|
:'description' => :'string',
|
60
66
|
:'paid' => :'boolean',
|
61
67
|
:'customer' => :'string',
|
62
|
-
:'payment_transaction' => :'string'
|
63
|
-
|
68
|
+
:'payment_transaction' => :'string',
|
69
|
+
:'error_code' => :'string',
|
70
|
+
:'error_message' => :'string'
|
71
|
+
|
64
72
|
}
|
65
73
|
end
|
66
74
|
|
@@ -70,31 +78,31 @@ module Tpaga
|
|
70
78
|
# convert string to symbol for hash key
|
71
79
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
72
80
|
|
73
|
-
|
81
|
+
|
74
82
|
if attributes[:'id']
|
75
83
|
@id = attributes[:'id']
|
76
84
|
end
|
77
|
-
|
85
|
+
|
78
86
|
if attributes[:'amount']
|
79
87
|
@amount = attributes[:'amount']
|
80
88
|
end
|
81
|
-
|
89
|
+
|
82
90
|
if attributes[:'taxAmount']
|
83
91
|
@tax_amount = attributes[:'taxAmount']
|
84
92
|
end
|
85
|
-
|
93
|
+
|
86
94
|
if attributes[:'currency']
|
87
95
|
@currency = attributes[:'currency']
|
88
96
|
end
|
89
|
-
|
97
|
+
|
90
98
|
if attributes[:'creditCard']
|
91
99
|
@credit_card = attributes[:'creditCard']
|
92
100
|
end
|
93
|
-
|
101
|
+
|
94
102
|
if attributes[:'installments']
|
95
103
|
@installments = attributes[:'installments']
|
96
104
|
end
|
97
|
-
|
105
|
+
|
98
106
|
if attributes[:'orderId']
|
99
107
|
@order_id = attributes[:'orderId']
|
100
108
|
end
|
@@ -102,23 +110,31 @@ module Tpaga
|
|
102
110
|
if attributes[:'thirdPartyId']
|
103
111
|
@third_party_id = attributes[:'thirdPartyId']
|
104
112
|
end
|
105
|
-
|
113
|
+
|
106
114
|
if attributes[:'description']
|
107
115
|
@description = attributes[:'description']
|
108
116
|
end
|
109
|
-
|
117
|
+
|
110
118
|
if attributes[:'paid']
|
111
119
|
@paid = attributes[:'paid']
|
112
120
|
end
|
113
|
-
|
121
|
+
|
114
122
|
if attributes[:'customer']
|
115
123
|
@customer = attributes[:'customer']
|
116
124
|
end
|
117
|
-
|
125
|
+
|
118
126
|
if attributes[:'paymentTransaction']
|
119
127
|
@payment_transaction = attributes[:'paymentTransaction']
|
120
128
|
end
|
121
|
-
|
129
|
+
|
130
|
+
if attributes[:'errorCode']
|
131
|
+
@error_code = attributes[:'errorCode']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes[:'errorMessage']
|
135
|
+
@error_message = attributes[:'errorMessage']
|
136
|
+
end
|
137
|
+
|
122
138
|
end
|
123
139
|
end
|
124
140
|
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.
|
4
|
+
version: 0.4.5
|
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:
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -112,7 +112,6 @@ files:
|
|
112
112
|
- lib/tpaga/swagger/request.rb
|
113
113
|
- lib/tpaga/swagger/response.rb
|
114
114
|
- lib/tpaga/swagger/version.rb
|
115
|
-
- tpaga-0.4.3.1.gem
|
116
115
|
- tpaga.gemspec
|
117
116
|
homepage: https://tpaga.co
|
118
117
|
licenses:
|
data/tpaga-0.4.3.1.gem
DELETED
Binary file
|