catarse_pagarme 2.10.0 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/catarse_pagarme/credit_cards_controller.rb +81 -71
- data/lib/catarse_pagarme/version.rb +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: 3aeb5fcb993fb1f9e8d3c63de8db9cef4065e454
|
4
|
+
data.tar.gz: 1bc6977f0d550f54adafe72df199b08f2500535f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb04eef93c18928a190d4b04140a9f79f0f1723b32dbd1ee0530d66a105ec97306841e2318ed958fd7497ad3b50b6a537d272f293d055f3730509b4607e6a12b
|
7
|
+
data.tar.gz: 65540aab44acc36a86dda6eac73a5a12ed1735789ee2f5b4502151e5e6fdd4bc8f6339cf5362cebec7f500b8d48e733bf3b9191bf8c45202c4e3f4dc387eb8d8
|
data/Gemfile.lock
CHANGED
@@ -161,24 +161,28 @@ module CatarsePagarme
|
|
161
161
|
gender: ""
|
162
162
|
},
|
163
163
|
address: address_hash,
|
164
|
-
phone_numbers: [
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
164
|
+
phone_numbers: [
|
165
|
+
{
|
166
|
+
ddi: "",
|
167
|
+
ddd: phone_matches.try(:[], 1),
|
168
|
+
number: phone_matches.try(:[], 2)
|
169
|
+
}]
|
169
170
|
},
|
170
171
|
buyer: {
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
172
|
+
customer: {
|
173
|
+
name: user.name,
|
174
|
+
document_number: user.cpf.try(:gsub, /[-.\/_\s]/, ''),
|
175
|
+
born_at: "",
|
176
|
+
gender: ""
|
177
|
+
},
|
178
|
+
address: address_hash,
|
179
|
+
phone_numbers: [
|
180
|
+
{
|
181
|
+
ddi: "",
|
182
|
+
ddd: phone_matches.try(:[], 1),
|
183
|
+
number: phone_matches.try(:[], 2)
|
184
|
+
}]
|
175
185
|
},
|
176
|
-
address: address_hash,
|
177
|
-
phone_numbers: [{
|
178
|
-
ddi: "",
|
179
|
-
ddd: phone_matches.try(:[], 1),
|
180
|
-
number: phone_matches.try(:[], 2)
|
181
|
-
}],
|
182
186
|
shipping: {
|
183
187
|
customer: {
|
184
188
|
name: contribution.user.name,
|
@@ -187,66 +191,72 @@ module CatarsePagarme
|
|
187
191
|
gender: ""
|
188
192
|
},
|
189
193
|
address: address_hash,
|
190
|
-
phone_numbers: [
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
194
|
+
phone_numbers: [
|
195
|
+
{
|
196
|
+
ddi: "00",
|
197
|
+
ddd: phone_matches.try(:[], 1),
|
198
|
+
number: phone_matches.try(:[], 2)
|
199
|
+
}],
|
195
200
|
shipping_method: "",
|
196
201
|
fee: 0,
|
197
202
|
favorite: false
|
198
203
|
},
|
199
|
-
shopping_cart: [
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
204
|
+
shopping_cart: [
|
205
|
+
{
|
206
|
+
name: "#{contribution.value.to_s} - #{contribution.project.name}",
|
207
|
+
type: "contribution",
|
208
|
+
quantity: "1",
|
209
|
+
unit_price: (contribution.value * 100).to_i.to_s,
|
210
|
+
totalAdditions: 0,
|
211
|
+
totalDiscounts: 0,
|
212
|
+
event_id: contribution.project_id.to_s,
|
213
|
+
ticket_type_id: "0",
|
214
|
+
ticket_owner_name: user.name,
|
215
|
+
ticket_owner_document_number: user.cpf.try(:gsub, /[-.\/_\s]/, '')
|
216
|
+
}],
|
217
|
+
discounts: [
|
218
|
+
{
|
219
|
+
type: "other",
|
220
|
+
code: "",
|
221
|
+
amount: 0
|
222
|
+
}],
|
223
|
+
other_fees: [
|
224
|
+
{
|
225
|
+
type: "",
|
226
|
+
amount: 0
|
227
|
+
}],
|
228
|
+
events: [
|
229
|
+
{
|
230
|
+
id: contribution.project_id.to_s,
|
231
|
+
name: contribution.project.name,
|
232
|
+
type: contribution.project.mode == 'flex' ? 'flex' : 'full',
|
233
|
+
date: contribution.project.expires_at.to_s,
|
234
|
+
venue_name: project_account.try(:owner_name),
|
235
|
+
address: {
|
236
|
+
country: "Brasil",
|
237
|
+
state: project_account.address_state,
|
238
|
+
city: project_account.address_city,
|
239
|
+
zipcode: project_account.address_zip_code,
|
240
|
+
neighborhood: project_account.address_neighbourhood,
|
241
|
+
street: project_account.address_street,
|
242
|
+
street_number: project_account.address_number,
|
243
|
+
complementary: project_account.address_complement,
|
244
|
+
latitude: 0.0,
|
245
|
+
longitude: 0.0
|
246
|
+
},
|
247
|
+
ticket_types: [
|
248
|
+
{
|
249
|
+
id: contribution.id,
|
250
|
+
name: "",
|
251
|
+
type: "",
|
252
|
+
batch: "",
|
253
|
+
price: (contribution.value * 100).to_i.to_s,
|
254
|
+
available_number: 0,
|
255
|
+
total_number: 0,
|
256
|
+
identity_verified: "",
|
257
|
+
assigned_seats: ""
|
258
|
+
}]
|
259
|
+
}]
|
250
260
|
}
|
251
261
|
|
252
262
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catarse_pagarme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antônio Roberto Silva
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|