pagarme 2.2.2 → 2.2.3

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
- SHA1:
3
- metadata.gz: 7c801545dfac8dc1716c6832638cf741d58867cd
4
- data.tar.gz: c2f90875b21d789837bb7ee268215978b22d3fb0
2
+ SHA256:
3
+ metadata.gz: db5b0e92f65d2d065a616357285a3de7b5ec66b5ef991871f9f2c679b29132c3
4
+ data.tar.gz: 03bd32113e09fb42c6b4fdba8e39029024888d3cfce904becd6463ebca6b3796
5
5
  SHA512:
6
- metadata.gz: a19a1948aaa48237314574e1e8f7a420106e53a35e23163a7d227a16f8ef302c7a38e4a29a15326ba1a68951a456269fc6fc8d7d0b15d306defd83dd84cd69eb
7
- data.tar.gz: 67cffc1d0dd3ecbf74141d83e58a7ae32c0ea6f62d2a7d72f9033ec7ac068018cee7dbdf11bb0f39193f9a97bc354c5a8e5bc247f48945ff422e0208bb209dd5
6
+ metadata.gz: 9896fd9ba0cac786daa28b8849455bf5e8cfde76a9d06333cd9dbfab3f2fae45ee42a292d81baf108fb6ccbf59ff05a02b83da44d22d0796f13b2233b8fc1d70
7
+ data.tar.gz: 9bc3cd79018bb639f669cb9ce1f13735830819a5e04a9db0da8b325fb0543482e4140b1d27ee89586635989c4e407bb44231b3f87430403662431ad4831670bf
data/README.md CHANGED
@@ -5,8 +5,8 @@ Pagar.me Ruby library
5
5
 
6
6
  ## Documentation
7
7
 
8
- * [Documentation](https://pagar.me/docs)
9
- * [Full API Guide](https://docs.pagar.me/api)
8
+ * [Documentation](https://docs.pagar.me)
9
+ * [Full API Guide](https://docs.pagar.me/reference)
10
10
 
11
11
  ## Getting Started
12
12
 
@@ -38,13 +38,13 @@ and _PAGARME\_ENCRYPTION\_KEY_ (**recommended if needed**)
38
38
 
39
39
  See our [demo checkout](https://pagar.me/checkout).
40
40
 
41
- More about how to use it [here](https://docs.pagar.me/checkout).
41
+ More about how to use it [here](https://docs.pagar.me/docs/overview-checkout).
42
42
 
43
43
  ### Transactions
44
44
 
45
45
  #### Creating a Credit Card Transaction
46
46
 
47
- To create a credit card transaction, you need a [card\_hash](https://docs.pagar.me/capturing-card-data).
47
+ To create a credit card transaction, you need a [card\_hash](https://docs.pagar.me/docs/obtendo-os-dados-do-cartao).
48
48
 
49
49
  ```ruby
50
50
  PagarMe::Transaction.new(
@@ -53,7 +53,7 @@ To create a credit card transaction, you need a [card\_hash](https://docs.pagar.
53
53
  ).charge
54
54
  ```
55
55
 
56
- More about [Creating a Credit Card Transaction](https://docs.pagar.me/transactions/#realizando-uma-transacao-de-cartao-de-credito).
56
+ More about [Creating a Credit Card Transaction](https://docs.pagar.me/docs/realizando-uma-transacao-de-cartao-de-credito).
57
57
 
58
58
  #### Creating a Boleto Transaction
59
59
 
@@ -68,7 +68,7 @@ More about [Creating a Credit Card Transaction](https://docs.pagar.me/transactio
68
68
  transaction.boleto_barcode # => boleto's barcode
69
69
  ```
70
70
 
71
- More about [Creating a Boleto Transaction](https://docs.pagar.me/transactions/#realizando-uma-transacao-de-boleto-bancario).
71
+ More about [Creating a Boleto Transaction](https://docs.pagar.me/docs/realizando-uma-transacao-de-boleto-bancario).
72
72
 
73
73
  #### Split Rules
74
74
 
@@ -79,20 +79,20 @@ For example, splitting equally a transaction:
79
79
  PagarMe::Transaction.new(
80
80
  amount: 1000, # in cents
81
81
  card_hash: card_hash, # how to get a card hash: docs.pagar.me/capturing-card-data
82
- split\_rules: [
82
+ split_rules: [
83
83
  { recipient_id: recipient_id_1, percentage: 50 },
84
84
  { recipient_id: recipient_id_2, percentage: 50 }
85
85
  ]
86
86
  ).charge
87
87
  ```
88
88
 
89
- More about [Split Rules](https://docs.pagar.me/api/#regras-do-split).
89
+ More about [Split Rules](https://docs.pagar.me/reference#retornando-uma-regra-de-divis%C3%A3o-espec%C3%ADfica).
90
90
 
91
91
  ### Plans & Subscriptions
92
92
 
93
- You can use recurring charges, learn more [here](https://docs.pagar.me/plans-subscriptions).
93
+ You can use recurring charges, learn more [here](https://docs.pagar.me/docs/overview-recorrencia).
94
94
 
95
- It's important to understand the charges flow, learn more [here](https://docs.pagar.me/plans-subscriptions/#fluxo-de-cobranca)
95
+ It's important to understand the charges flow, learn more [here](https://docs.pagar.me/docs/fluxo-de-cobranca)
96
96
 
97
97
  #### Creating a Plan
98
98
 
@@ -104,7 +104,7 @@ It's important to understand the charges flow, learn more [here](https://docs.pa
104
104
  ).create
105
105
  ```
106
106
 
107
- More about [Creating a Plan](https://docs.pagar.me/plans-subscriptions/#criando-um-plano).
107
+ More about [Creating a Plan](https://docs.pagar.me/docs/criando-um-plano).
108
108
 
109
109
  #### Creating a Subscription
110
110
 
@@ -116,7 +116,7 @@ More about [Creating a Plan](https://docs.pagar.me/plans-subscriptions/#criando-
116
116
  ).create
117
117
  ```
118
118
 
119
- More about [Creating a Subscription](https://docs.pagar.me/plans-subscriptions/#criando-uma-assinatura).
119
+ More about [Creating a Subscription](https://docs.pagar.me/docs/criando-uma-assinatura).
120
120
 
121
121
  ### Recipients
122
122
 
@@ -139,7 +139,7 @@ To create a recipient, so it can receive payments through split rules or transfe
139
139
  )
140
140
  ```
141
141
 
142
- More about [Creating a Recipient](https://docs.pagar.me/api/#recebedores).
142
+ More about [Creating a Recipient](https://docs.pagar.me/reference#criando-um-recebedor).
143
143
 
144
144
  #### Transfer Available Amout to Bank Account Manually
145
145
 
@@ -163,7 +163,7 @@ _transfer\_interval_ and _transfer\_day_ will handle it automatically.
163
163
 
164
164
  Just that!
165
165
 
166
- More about [Balance](https://docs.pagar.me/api/#saldo)
166
+ More about [Balance](https://docs.pagar.me/docs/overview-gerenciamento-de-saldo)
167
167
 
168
168
  #### Checking Balance Operations
169
169
 
@@ -179,7 +179,7 @@ Paginating:
179
179
  PagarMe::BalanceOperation.balance_operations 2, 50 # second page, 50 per page
180
180
  ```
181
181
 
182
- More about [Balance Operations](https://docs.pagar.me/api/#operacoes-de-saldo)
182
+ More about [Balance Operations](https://docs.pagar.me/docs/composicao-do-saldo)
183
183
 
184
184
  #### Checking Recipient Balance
185
185
 
@@ -208,7 +208,7 @@ Paginating:
208
208
  PagarMe::Recipient.find(recipient_id).balance_operations 2, 50 # second page, 50 per page
209
209
  ```
210
210
 
211
- More about [Recipient Balance Operations](https://docs.pagar.me/api/#operacoes-de-saldo-de-um-recebedor)
211
+ More about [Recipient Balance Operations](https://docs.pagar.me/reference#opera%C3%A7%C3%B5es-de-saldo-de-um-recebedor)
212
212
 
213
213
  ### Request Bulk Anticipation
214
214
 
@@ -218,7 +218,7 @@ More about [Recipient Balance Operations](https://docs.pagar.me/api/#operacoes-d
218
218
  PagarMe::Recipient.default.bulk_anticipations_limits
219
219
  ```
220
220
 
221
- More about [Checking Bulk Anticipation Limits](https://docs.pagar.me/api/#obtendo-os-limites-de-antecipacao)
221
+ More about [Checking Bulk Anticipation Limits](https://docs.pagar.me/reference#obtendo-os-limites-de-antecipa%C3%A7%C3%A3o)
222
222
 
223
223
  #### Requesting Bulk Anticipation
224
224
 
@@ -230,7 +230,7 @@ More about [Checking Bulk Anticipation Limits](https://docs.pagar.me/api/#obtend
230
230
  )
231
231
  ```
232
232
 
233
- More about [Requesting Bulk Anticipation](https://docs.pagar.me/api/#criando-uma-antecipacao)
233
+ More about [Requesting Bulk Anticipation](https://docs.pagar.me/reference#criando-uma-antecipa%C3%A7%C3%A3o)
234
234
 
235
235
  #### Getting Bulk Anticipation
236
236
 
@@ -238,7 +238,7 @@ More about [Requesting Bulk Anticipation](https://docs.pagar.me/api/#criando-uma
238
238
  PagarMe::BulkAnticipation.all page, count
239
239
  ```
240
240
 
241
- More about [Getting Bulk Anticipation](https://docs.pagar.me/api/#retornando-todas-as-antecipacoes)
241
+ More about [Getting Bulk Anticipation](https://docs.pagar.me/reference#retornando-todas-as-antecipa%C3%A7%C3%B5es)
242
242
 
243
243
  ### Payables
244
244
 
@@ -248,7 +248,7 @@ More about [Getting Bulk Anticipation](https://docs.pagar.me/api/#retornando-tod
248
248
  PagarMe::Payable.find 'payable_id'
249
249
  ```
250
250
 
251
- More about [Getting Payable](https://docs.pagar.me/api/#retornando-um-recebivel)
251
+ More about [Getting Payable](https://docs.pagar.me/reference#retornando-um-receb%C3%ADvel)
252
252
 
253
253
  #### Querying Payables
254
254
 
@@ -260,7 +260,7 @@ More about [Getting Payable](https://docs.pagar.me/api/#retornando-um-recebivel)
260
260
  PagarMe::Payable.find_by status: 'paid'
261
261
  ```
262
262
 
263
- More about [Querying Payables](https://docs.pagar.me/api/#retornando-recebiveis)
263
+ More about [Querying Payables](https://docs.pagar.me/reference#retornando-receb%C3%ADveis)
264
264
 
265
265
  #### Querying Payables by Transaction
266
266
 
@@ -269,7 +269,7 @@ More about [Querying Payables](https://docs.pagar.me/api/#retornando-recebiveis)
269
269
  transaction.payables
270
270
  ```
271
271
 
272
- More about [Payable Transactions](https://docs.pagar.me/api/#retornando-pagamentos-da-transacao)
272
+ More about [Payable Transactions](https://docs.pagar.me/reference#retornando-pagamentos-da-transa%C3%A7%C3%A3o)
273
273
 
274
274
  ### Validating Postback
275
275
 
@@ -329,7 +329,7 @@ This README is just a quick abstract of it's main features.
329
329
  You can easily browse it's source code to see all [supported resources](https://github.com/pagarme/pagarme-ruby/tree/master/lib/pagarme/resources).
330
330
 
331
331
  We will document everything while adding support to all resources listed in
332
- [Full API Guide](https://docs.pagar.me/api).
332
+ [Full API Guide](https://docs.pagar.me/reference).
333
333
 
334
334
  Feel free to help us to add support to features sending pull requests.
335
335
 
@@ -337,7 +337,7 @@ Thanks!
337
337
 
338
338
  ### TODO
339
339
 
340
- Add support to [ElasticSearch Query DSL](https://docs.pagar.me/api/#buscas-avancadas),
340
+ Add support to [ElasticSearch Query DSL](https://docs.pagar.me/reference#elasticsearch),
341
341
  so you can search your data optimally.
342
342
 
343
343
  And document all the source code.
@@ -85,7 +85,8 @@ module PagarMe
85
85
  open_timeout: PagarMe.open_timeout,
86
86
  timeout: PagarMe.timeout,
87
87
  ssl_ca_file: SSL_CA_FILEPATH,
88
- headers: DEFAULT_HEADERS.merge(headers)
88
+ headers: DEFAULT_HEADERS.merge(headers),
89
+ ssl_version: 'TLSv1_2'
89
90
  }
90
91
  end
91
92
 
@@ -1,3 +1,3 @@
1
1
  module PagarMe
2
- VERSION = '2.2.2'
2
+ VERSION = '2.2.3'
3
3
  end
data/test/fixtures.rb CHANGED
@@ -214,7 +214,7 @@ class Fixtures
214
214
  documents: [
215
215
  {
216
216
  type: "cpf",
217
- number: "00000000000"
217
+ number: "86870624194"
218
218
  }
219
219
  ],
220
220
  phone_numbers: ["+5511999998888", "+5511888889999"],
@@ -15,7 +15,7 @@ module PagarMe
15
15
  subscription = PagarMe::Subscription.create subscription_with_customer_params(plan: plan)
16
16
  assert_no_trial_subscription_created subscription, plan
17
17
 
18
- sleep 1
18
+ sleep 2
19
19
  assert subscription.transactions.count > 0
20
20
  assert_equal subscription.transactions.first.status, 'paid'
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Franceschi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-29 00:00:00.000000000 Z
12
+ date: 2018-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  requirements: []
252
252
  rubyforge_project:
253
- rubygems_version: 2.6.8
253
+ rubygems_version: 2.7.3
254
254
  signing_key:
255
255
  specification_version: 4
256
256
  summary: Allows integration with Pagar.me