tpaga 0.5.2 → 0.5.3
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_charge.rb +65 -1
- data/lib/tpaga/swagger/version.rb +1 -1
- data/tpaga.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f029a2891bb312d2d8c85a9bca45d55575c4efa4
|
4
|
+
data.tar.gz: ffa03c32c4a63e7d1e3de42f9b53a8b9f0f30d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ba2ff87305d79140d67f8e187c8d3e136e21520b209b052051aaa2f65007a9d3c3c1ba27f1e43206ed0b0f27b4c12f75e87b30111197a51f4d3bd55f932fcd3
|
7
|
+
data.tar.gz: b27a8df0d0388b07847dc2769067bcd9b1f5b249c8f82191499bf9c537b7ce2c1cd7746366d8e41c32e2ba6039c40f48a3cd89376202f1e370b32525e97e3a0d
|
@@ -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, :transaction_info, :error_code, :error_message
|
4
|
+
attr_accessor :id, :amount, :tax_amount, :net_amount, :iac_amount, :tip_amount, :rete_renta_amount, :rete_iva_amount, :rete_ica_amount, :tpaga_fee_amount, :currency, :credit_card, :installments, :order_id, :description, :paid, :customer, :payment_transaction, :third_party_id, :transaction_info, :error_code, :error_message, :child_merchant_id
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -14,6 +14,27 @@ module Tpaga
|
|
14
14
|
|
15
15
|
#
|
16
16
|
:'tax_amount' => :'taxAmount',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'net_amount' => :'netAmount',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'iac_amount' => :'iacAmount',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'tip_amount' => :'tipAmount',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'rete_renta_amount' => :'reteRentaAmount',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'rete_iva_amount' => :'reteIvaAmount',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'rete_ica_amount' => :'reteIcaAmount',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'tpaga_fee_amount' => :'tpagaFeeAmount',
|
17
38
|
|
18
39
|
# 3-letter ISO code for currency.
|
19
40
|
:'currency' => :'currency',
|
@@ -50,6 +71,9 @@ module Tpaga
|
|
50
71
|
|
51
72
|
#
|
52
73
|
:'error_message' => :'errorMessage',
|
74
|
+
|
75
|
+
#
|
76
|
+
:'child_merchant_id' => :'childMerchantId',
|
53
77
|
}
|
54
78
|
end
|
55
79
|
|
@@ -59,6 +83,13 @@ module Tpaga
|
|
59
83
|
:'id' => :'string',
|
60
84
|
:'amount' => :'number',
|
61
85
|
:'tax_amount' => :'number',
|
86
|
+
:'net_amount' => :'number',
|
87
|
+
:'iac_amount' => :'number',
|
88
|
+
:'tip_amount' => :'number',
|
89
|
+
:'rete_renta_amount' => :'number',
|
90
|
+
:'rete_iva_amount' => :'number',
|
91
|
+
:'rete_ica_amount' => :'number',
|
92
|
+
:'tpaga_fee_amount' => :'number',
|
62
93
|
:'currency' => :'string',
|
63
94
|
:'credit_card' => :'string',
|
64
95
|
:'installments' => :'number',
|
@@ -71,6 +102,7 @@ module Tpaga
|
|
71
102
|
:'transaction_info' => :'TransactionInfo',
|
72
103
|
:'error_code' => :'string',
|
73
104
|
:'error_message' => :'string',
|
105
|
+
:'child_merchant_id' => :'string',
|
74
106
|
}
|
75
107
|
end
|
76
108
|
|
@@ -93,6 +125,34 @@ module Tpaga
|
|
93
125
|
@tax_amount = attributes[:'taxAmount']
|
94
126
|
end
|
95
127
|
|
128
|
+
if attributes[:'netAmount']
|
129
|
+
@net_amount = attributes[:'netAmount']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes[:'iacAmount']
|
133
|
+
@iac_amount = attributes[:'iacAmount']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes[:'tipAmount']
|
137
|
+
@tip_amount = attributes[:'tipAmount']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes[:'reteRentaAmount']
|
141
|
+
@rete_renta_amount = attributes[:'reteRentaAmount']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes[:'reteIvaAmount']
|
145
|
+
@rete_iva_amount = attributes[:'reteIvaAmount']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes[:'reteIcaAmount']
|
149
|
+
@rete_ica_amount = attributes[:'reteIcaAmount']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes[:'tpagaFeeAmount']
|
153
|
+
@tpaga_fee_amount = attributes[:'tpagaFeeAmount']
|
154
|
+
end
|
155
|
+
|
96
156
|
if attributes[:'currency']
|
97
157
|
@currency = attributes[:'currency']
|
98
158
|
end
|
@@ -140,6 +200,10 @@ module Tpaga
|
|
140
200
|
if attributes[:'errorMessage']
|
141
201
|
@error_message = attributes[:'errorMessage']
|
142
202
|
end
|
203
|
+
|
204
|
+
if attributes[:'childMerchantId']
|
205
|
+
@child_merchant_id = attributes[:'childMerchantId']
|
206
|
+
end
|
143
207
|
end
|
144
208
|
end
|
145
209
|
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.5.
|
4
|
+
version: 0.5.3
|
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: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|