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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13e41e1042979996f70a541f6ebcc6dabee702a3
4
- data.tar.gz: 62be8eafb67cf278a86d3be55497518cee52a74f
3
+ metadata.gz: 3aeb5fcb993fb1f9e8d3c63de8db9cef4065e454
4
+ data.tar.gz: 1bc6977f0d550f54adafe72df199b08f2500535f
5
5
  SHA512:
6
- metadata.gz: 73f97f1552fb136a88597ed1e76edb8bc561a7b9af6c539c4c9f804b0c48c58b630ea057971aed3d777ee5d9effecddaf34f9bc48783157baf26e22eb5ea6d10
7
- data.tar.gz: 0bb4d97849fbdb658bd7358b0418d643d8dac3fc89c5bb3b2b2c03af5e59e1a1379c412f4daad5d6b63a05fbd04570646f2fb834fd5c69a2c24c67d2436dcc8e
6
+ metadata.gz: bb04eef93c18928a190d4b04140a9f79f0f1723b32dbd1ee0530d66a105ec97306841e2318ed958fd7497ad3b50b6a537d272f293d055f3730509b4607e6a12b
7
+ data.tar.gz: 65540aab44acc36a86dda6eac73a5a12ed1735789ee2f5b4502151e5e6fdd4bc8f6339cf5362cebec7f500b8d48e733bf3b9191bf8c45202c4e3f4dc387eb8d8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.10.0)
4
+ catarse_pagarme (2.10.1)
5
5
  pagarme (= 2.1.4)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -161,24 +161,28 @@ module CatarsePagarme
161
161
  gender: ""
162
162
  },
163
163
  address: address_hash,
164
- phone_numbers: [{
165
- ddi: "",
166
- ddd: phone_matches.try(:[], 1),
167
- number: phone_matches.try(:[], 2)
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
- name: user.name,
172
- document_number: user.cpf.try(:gsub, /[-.\/_\s]/, ''),
173
- born_at: "",
174
- gender: ""
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
- ddi: "00",
192
- ddd: phone_matches.try(:[], 1),
193
- number: phone_matches.try(:[], 2)
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
- name: "#{contribution.value.to_s} - #{contribution.project.name}",
201
- type: "contribution",
202
- quantity: "1",
203
- unit_price: (contribution.value * 100).to_i.to_s,
204
- totalAdditions: 0,
205
- totalDiscounts: 0,
206
- event_id: contribution.project_id.to_s,
207
- ticket_type_id: "0",
208
- ticket_owner_name: user.name,
209
- ticket_owner_document_number: user.cpf.try(:gsub, /[-.\/_\s]/, '')
210
- }],
211
- discounts: [{
212
- type: "other",
213
- code: "",
214
- amount: 0
215
- }],
216
- other_fees: [{
217
- type: "",
218
- amount: 0
219
- }],
220
- events: [{
221
- id: contribution.project_id.to_s,
222
- name: contribution.project.name,
223
- type: contribution.project.mode == 'flex' ? 'flex' : 'full',
224
- date: contribution.project.expires_at.to_s,
225
- venue_name: project_account.try(:owner_name),
226
- address: {
227
- country: "Brasil",
228
- state: project_account.address_state,
229
- city: project_account.address_city,
230
- zipcode: project_account.address_zip_code,
231
- neighborhood: project_account.address_neighbourhood,
232
- street: project_account.address_street,
233
- street_number: project_account.address_number,
234
- complementary: project_account.address_complement,
235
- latitude: 0.0,
236
- longitude: 0.0
237
- },
238
- ticket_types: [{
239
- id: contribution.id,
240
- name: "",
241
- type: "",
242
- batch: "",
243
- price: (contribution.value * 100).to_i.to_s,
244
- available_number: 0,
245
- total_number: 0,
246
- identity_verified: "",
247
- assigned_seats: ""
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
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.10.0"
2
+ VERSION = "2.10.1"
3
3
  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.0
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-11 00:00:00.000000000 Z
12
+ date: 2017-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails