pagseguro-oficial 2.1.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -5
  3. data/CHANGELOG.md +0 -1
  4. data/README.md +6 -1
  5. data/docs/transparent_checkout.md +201 -0
  6. data/examples/boleto_transaction_request.rb +94 -0
  7. data/examples/create_session.rb +13 -0
  8. data/examples/credit_card_transaction_request.rb +122 -0
  9. data/examples/installment.rb +20 -9
  10. data/examples/online_debit_transaction.rb +98 -0
  11. data/examples/transaction_by_code.rb +62 -0
  12. data/examples/transaction_by_notification_code.rb +55 -51
  13. data/lib/pagseguro.rb +17 -1
  14. data/lib/pagseguro/bank.rb +8 -0
  15. data/lib/pagseguro/boleto_transaction_request.rb +8 -0
  16. data/lib/pagseguro/credit_card_transaction_request.rb +39 -0
  17. data/lib/pagseguro/document.rb +2 -2
  18. data/lib/pagseguro/errors.rb +11 -5
  19. data/lib/pagseguro/holder.rb +28 -0
  20. data/lib/pagseguro/installment.rb +11 -16
  21. data/lib/pagseguro/installment/collection.rb +25 -0
  22. data/lib/pagseguro/installment/request_serializer.rb +24 -0
  23. data/lib/pagseguro/installment/response.rb +29 -4
  24. data/lib/pagseguro/installment/{serializer.rb → response_serializer.rb} +1 -1
  25. data/lib/pagseguro/items.rb +3 -0
  26. data/lib/pagseguro/online_debit_transaction_request.rb +17 -0
  27. data/lib/pagseguro/payment_method.rb +1 -0
  28. data/lib/pagseguro/payment_releases.rb +3 -0
  29. data/lib/pagseguro/sender.rb +4 -0
  30. data/lib/pagseguro/session.rb +34 -0
  31. data/lib/pagseguro/session/response.rb +32 -0
  32. data/lib/pagseguro/session/response_serializer.rb +18 -0
  33. data/lib/pagseguro/transaction.rb +6 -3
  34. data/lib/pagseguro/transaction/response.rb +1 -1
  35. data/lib/pagseguro/transaction_installment.rb +11 -0
  36. data/lib/pagseguro/transaction_request.rb +143 -0
  37. data/lib/pagseguro/transaction_request/request_serializer.rb +148 -0
  38. data/lib/pagseguro/transaction_request/response.rb +32 -0
  39. data/lib/pagseguro/transaction_request/response_serializer.rb +117 -0
  40. data/lib/pagseguro/version.rb +1 -1
  41. data/spec/fixtures/session/success.xml +4 -0
  42. data/spec/fixtures/transaction_request/success.xml +58 -0
  43. data/spec/fixtures/transactions/search.xml +40 -0
  44. data/spec/pagseguro/bank_spec.rb +5 -0
  45. data/spec/pagseguro/boleto_transaction_request_spec.rb +9 -0
  46. data/spec/pagseguro/credit_card_transaction_request_spec.rb +36 -0
  47. data/spec/pagseguro/document_spec.rb +1 -1
  48. data/spec/pagseguro/errors_spec.rb +5 -2
  49. data/spec/pagseguro/features/create_session_spec.rb +52 -0
  50. data/spec/pagseguro/features/create_transaction_request_spec.rb +58 -0
  51. data/spec/pagseguro/holder_spec.rb +9 -0
  52. data/spec/pagseguro/installment/collection_spec.rb +43 -0
  53. data/spec/pagseguro/installment/request_serializer_spec.rb +16 -0
  54. data/spec/pagseguro/installment/{serializer_spec.rb → response_serializer_spec.rb} +1 -1
  55. data/spec/pagseguro/installment/response_spec.rb +52 -0
  56. data/spec/pagseguro/installment_spec.rb +22 -73
  57. data/spec/pagseguro/online_debit_transaction_request_spec.rb +18 -0
  58. data/spec/pagseguro/payment_method_spec.rb +1 -0
  59. data/spec/pagseguro/payment_request/response_spec.rb +0 -11
  60. data/spec/pagseguro/sender_spec.rb +1 -0
  61. data/spec/pagseguro/session/response_serializer_spec.rb +12 -0
  62. data/spec/pagseguro/session/response_spec.rb +52 -0
  63. data/spec/pagseguro/session_spec.rb +41 -0
  64. data/spec/pagseguro/transaction/search/search_abandoned_spec.rb +27 -0
  65. data/spec/pagseguro/transaction/search/search_by_date_spec.rb +26 -0
  66. data/spec/pagseguro/transaction/search/search_by_reference_spec.rb +26 -0
  67. data/spec/pagseguro/transaction/search_spec.rb +131 -0
  68. data/spec/pagseguro/transaction_installment_spec.rb +6 -0
  69. data/spec/pagseguro/transaction_request/request_serializer_spec.rb +213 -0
  70. data/spec/pagseguro/transaction_request/response_serializer_spec.rb +52 -0
  71. data/spec/pagseguro/transaction_request/response_spec.rb +60 -0
  72. data/spec/pagseguro/transaction_request_spec.rb +125 -0
  73. data/spec/support/helpers.rb +14 -0
  74. metadata +79 -6
@@ -0,0 +1,52 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::TransactionRequest::ResponseSerializer do
4
+ context "for existing transactions" do
5
+ let(:source) { File.read("./spec/fixtures/transaction_request/success.xml") }
6
+ let(:xml) { Nokogiri::XML(source) }
7
+ let(:serializer) { described_class.new(xml.css("transaction").first) }
8
+ subject(:data) { serializer.serialize }
9
+
10
+ it { expect(data).to include(created_at: Time.parse("2011-02-05T15:46:12.000-02:00")) }
11
+ it { expect(data).to include(updated_at: Time.parse("2011-02-15T17:39:14.000-03:00")) }
12
+ it { expect(data).to include(code: "9E884542-81B3-4419-9A75-BCC6FB495EF1") }
13
+ it { expect(data).to include(reference: "REF1234") }
14
+ it { expect(data).to include(type_id: "1") }
15
+ it { expect(data).to include(status: "3") }
16
+ it { expect(data).to include(payment_method: {type_id: "1", code: "101"}) }
17
+ it { expect(data).to include(payment_link: "https://pagseguro.uol.com.br/checkout/imprimeBoleto.jhtml?code=314601B208B24A5CA5
18
+ 3260000F7BB0D0") }
19
+ it { expect(data).to include(gross_amount: BigDecimal("49900.00")) }
20
+ it { expect(data).to include(discount_amount: BigDecimal("0.00")) }
21
+ it { expect(data).to include(net_amount: BigDecimal("49900.50")) }
22
+ it { expect(data).to include(extra_amount: BigDecimal("0.00")) }
23
+ it { expect(data).to include(installment_count: 1) }
24
+
25
+ it { expect(data[:items].size).to eq(2) }
26
+ it { expect(data[:items].first).to include(id: "0001") }
27
+ it { expect(data[:items].first).to include(description: "Notebook Prata") }
28
+ it { expect(data[:items].first).to include(quantity: 1) }
29
+ it { expect(data[:items].first).to include(amount: BigDecimal("24300.00")) }
30
+ it { expect(data[:items][1]).to include(id: "0002") }
31
+ it { expect(data[:items][1]).to include(description: "Notebook Rosa") }
32
+ it { expect(data[:items][1]).to include(quantity: 1) }
33
+ it { expect(data[:items][1]).to include(amount: BigDecimal("25600.00")) }
34
+
35
+ it { expect(data[:sender]).to include(name: "Jose Comprador") }
36
+ it { expect(data[:sender]).to include(email: "comprador@uol.com.br") }
37
+ it { expect(data[:sender][:phone]).to include(area_code: "11") }
38
+ it { expect(data[:sender][:phone]).to include(number: "56273440") }
39
+
40
+ it { expect(data[:shipping]).to include(type_id: "1") }
41
+ it { expect(data[:shipping]).to include(cost: BigDecimal("21.50")) }
42
+
43
+ it { expect(data[:shipping][:address]).to include(street: "Av. Brig. Faria Lima") }
44
+ it { expect(data[:shipping][:address]).to include(number: "1384") }
45
+ it { expect(data[:shipping][:address]).to include(complement: "5o andar") }
46
+ it { expect(data[:shipping][:address]).to include(district: "Jardim Paulistano") }
47
+ it { expect(data[:shipping][:address]).to include(city: "Sao Paulo") }
48
+ it { expect(data[:shipping][:address]).to include(state: "SP") }
49
+ it { expect(data[:shipping][:address]).to include(country: "BRA") }
50
+ it { expect(data[:shipping][:address]).to include(postal_code: "01452002") }
51
+ end
52
+ end
@@ -0,0 +1,60 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::TransactionRequest::Response do
4
+ let(:transaction_request) do
5
+ PagSeguro::TransactionRequest.new
6
+ end
7
+
8
+ subject { PagSeguro::TransactionRequest::Response.new(http_response, transaction_request) }
9
+
10
+ context "#success?" do
11
+ let(:http_response) do
12
+ double(:HttpResponse, xml?: true)
13
+ end
14
+
15
+ it "delegate to response" do
16
+ allow(http_response).to receive(:success?).and_return(true)
17
+ expect(subject).to be_success
18
+
19
+ allow(http_response).to receive(:success?).and_return(false)
20
+ expect(subject).not_to be_success
21
+ end
22
+ end
23
+
24
+ context "#serialize" do
25
+ let(:http_response) do
26
+ double(:HttpResponse, data: xml_parsed, body: raw_xml, success?: true, xml?: true, unauthorized?: false, bad_request?: false)
27
+ end
28
+
29
+ let(:xml_parsed) { Nokogiri::XML(raw_xml) }
30
+
31
+ context "with success request" do
32
+ let(:raw_xml) { File.read("./spec/fixtures/transaction_request/success.xml") }
33
+
34
+ it "return transaction_request instance" do
35
+ expect(subject.serialize).to eq transaction_request
36
+ end
37
+
38
+ it "change code" do
39
+ expect { subject.serialize }.to change { transaction_request.code }
40
+ end
41
+ end
42
+
43
+ context "when request fails" do
44
+ before do
45
+ allow(http_response).to receive(:success?).and_return(false)
46
+ allow(http_response).to receive(:bad_request?).and_return(true)
47
+ end
48
+
49
+ let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
50
+
51
+ it "return transaction_request instance" do
52
+ expect(subject.serialize).to eq transaction_request
53
+ end
54
+
55
+ it "assign errors" do
56
+ expect { subject.serialize }.to change { transaction_request.errors.empty? }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,125 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::TransactionRequest do |variable|
4
+ let(:xml_parsed) { Nokogiri::XML(raw_xml) }
5
+
6
+ it_assigns_attribute :currency
7
+ it_assigns_attribute :extra_amount
8
+ it_assigns_attribute :reference
9
+ it_assigns_attribute :notification_url
10
+ it_assigns_attribute :payment_mode
11
+ it_assigns_attribute :extra_params
12
+
13
+ it_ensures_type PagSeguro::Sender, :sender
14
+ it_ensures_type PagSeguro::Shipping, :shipping
15
+
16
+ it { is_expected.to respond_to(:code) }
17
+ it { is_expected.to respond_to(:type_id) }
18
+ it { is_expected.to respond_to(:payment_link) }
19
+ it { is_expected.to respond_to(:status) }
20
+ it { is_expected.to respond_to(:payment_method) }
21
+ it { is_expected.to respond_to(:gross_amount) }
22
+ it { is_expected.to respond_to(:discount_amount) }
23
+ it { is_expected.to respond_to(:net_amount) }
24
+ it { is_expected.to respond_to(:installment_count) }
25
+ it { is_expected.to respond_to(:created_at) }
26
+ it { is_expected.to respond_to(:updated_at) }
27
+
28
+ it "sets the sender" do
29
+ sender = PagSeguro::Sender.new
30
+ payment = PagSeguro::TransactionRequest.new(sender: sender)
31
+
32
+ expect(payment.sender).to eql(sender)
33
+ end
34
+
35
+ it "sets shipping" do
36
+ shipping = PagSeguro::Shipping.new
37
+ payment = PagSeguro::TransactionRequest.new(shipping: shipping)
38
+
39
+ expect(payment.shipping).to eql(shipping)
40
+ end
41
+
42
+ it "sets the items" do
43
+ payment = PagSeguro::TransactionRequest.new
44
+ expect(payment.items).to be_a(PagSeguro::Items)
45
+ end
46
+
47
+ it "sets default currency" do
48
+ payment = PagSeguro::TransactionRequest.new
49
+ expect(payment.currency).to eql("BRL")
50
+ end
51
+
52
+ describe "#payment_method" do
53
+ it "raises not implemented error" do
54
+ expect { subject.payment_method }.to raise_error(NotImplementedError)
55
+ end
56
+ end
57
+
58
+ describe "#extra_params" do
59
+ it "is empty before initialization" do
60
+ expect(subject.extra_params).to eql([])
61
+ end
62
+
63
+ it "allows extra parameter addition" do
64
+ subject.extra_params << { extraParam: 'value' }
65
+ subject.extra_params << { itemParam1: 'value1' }
66
+
67
+ expect(subject.extra_params).to eql([
68
+ { extraParam: 'value' },
69
+ { itemParam1: 'value1' }
70
+ ])
71
+ end
72
+ end
73
+
74
+ describe "#create" do
75
+ let(:transaction_request) { PagSeguro::TransactionRequest.new }
76
+ let(:request) { double(:request, success?: true, xml?: true, body: raw_xml) }
77
+ let(:params) do
78
+ {receiverEmail: "RECEIVER", currency: "BRL", paymentMethod: "credit_card"}
79
+ end
80
+
81
+ before do
82
+ PagSeguro.receiver_email = "RECEIVER"
83
+
84
+ allow(transaction_request).to receive(:payment_method).and_return("credit_card")
85
+
86
+ allow(PagSeguro::Request).to receive(:post)
87
+ .with("transactions", "v2", params)
88
+ .and_return(request)
89
+ end
90
+
91
+ context "when request succeeds" do
92
+ let(:raw_xml) { File.read("./spec/fixtures/transaction_request/success.xml") }
93
+
94
+ it "creates a transaction request" do
95
+ expect(transaction_request.create).not_to be_a(PagSeguro::TransactionRequest)
96
+ expect(transaction_request.code).to eq("9E884542-81B3-4419-9A75-BCC6FB495EF1")
97
+ end
98
+ end
99
+
100
+ context "when request fails" do
101
+ let :response_request do
102
+ double(:ResponseRequest, success?: false, unauthorized?: false, bad_request?: false, data: xml_parsed, body: raw_xml, :xml? => true)
103
+ end
104
+
105
+ before do
106
+ allow(response_request).to receive(:success?).and_return(false)
107
+ allow(response_request).to receive(:bad_request?).and_return(true)
108
+
109
+ allow(PagSeguro::Request).to receive(:post)
110
+ .and_return(response_request)
111
+ end
112
+
113
+ let(:raw_xml) { File.read("./spec/fixtures/invalid_code.xml") }
114
+
115
+ it "does not create a transaction request" do
116
+ expect(transaction_request.create).to be_falsy
117
+ expect(transaction_request.code).to be_nil
118
+ end
119
+
120
+ it "add errors" do
121
+ expect { transaction_request.create }.to change { transaction_request.errors.empty? }
122
+ end
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,14 @@
1
+ module Helpers
2
+ def xml_response(path)
3
+ response = double(
4
+ body: File.read("./spec/fixtures/#{path}"),
5
+ code: 200,
6
+ content_type: "text/xml",
7
+ "[]" => nil
8
+ )
9
+
10
+ Aitch::Response.new({xml_parser: Aitch::XMLParser}, response)
11
+ end
12
+ end
13
+
14
+ RSpec.configure {|c| c.include(Helpers) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro-oficial
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aitch
@@ -179,30 +179,43 @@ files:
179
179
  - LICENSE-2.0.txt
180
180
  - README.md
181
181
  - Rakefile
182
+ - docs/transparent_checkout.md
182
183
  - examples/abandoned_transactions.rb
184
+ - examples/boleto_transaction_request.rb
183
185
  - examples/boot.rb
186
+ - examples/create_session.rb
187
+ - examples/credit_card_transaction_request.rb
184
188
  - examples/installment.rb
185
189
  - examples/invalid_transaction_by_notification_code.rb
190
+ - examples/online_debit_transaction.rb
186
191
  - examples/payment_request.rb
192
+ - examples/transaction_by_code.rb
187
193
  - examples/transaction_by_notification_code.rb
188
194
  - examples/transaction_by_reference.rb
189
195
  - examples/transactions_by_date.rb
190
196
  - lib/pagseguro-oficial.rb
191
197
  - lib/pagseguro.rb
192
198
  - lib/pagseguro/address.rb
199
+ - lib/pagseguro/bank.rb
200
+ - lib/pagseguro/boleto_transaction_request.rb
193
201
  - lib/pagseguro/config.rb
202
+ - lib/pagseguro/credit_card_transaction_request.rb
194
203
  - lib/pagseguro/creditor_fee.rb
195
204
  - lib/pagseguro/document.rb
196
205
  - lib/pagseguro/errors.rb
197
206
  - lib/pagseguro/exceptions.rb
198
207
  - lib/pagseguro/extensions/ensure_type.rb
199
208
  - lib/pagseguro/extensions/mass_assignment.rb
209
+ - lib/pagseguro/holder.rb
200
210
  - lib/pagseguro/installment.rb
211
+ - lib/pagseguro/installment/collection.rb
212
+ - lib/pagseguro/installment/request_serializer.rb
201
213
  - lib/pagseguro/installment/response.rb
202
- - lib/pagseguro/installment/serializer.rb
214
+ - lib/pagseguro/installment/response_serializer.rb
203
215
  - lib/pagseguro/item.rb
204
216
  - lib/pagseguro/items.rb
205
217
  - lib/pagseguro/notification.rb
218
+ - lib/pagseguro/online_debit_transaction_request.rb
206
219
  - lib/pagseguro/payment_method.rb
207
220
  - lib/pagseguro/payment_release.rb
208
221
  - lib/pagseguro/payment_releases.rb
@@ -213,6 +226,9 @@ files:
213
226
  - lib/pagseguro/phone.rb
214
227
  - lib/pagseguro/request.rb
215
228
  - lib/pagseguro/sender.rb
229
+ - lib/pagseguro/session.rb
230
+ - lib/pagseguro/session/response.rb
231
+ - lib/pagseguro/session/response_serializer.rb
216
232
  - lib/pagseguro/shipping.rb
217
233
  - lib/pagseguro/transaction.rb
218
234
  - lib/pagseguro/transaction/response.rb
@@ -221,6 +237,11 @@ files:
221
237
  - lib/pagseguro/transaction/search/search_by_date.rb
222
238
  - lib/pagseguro/transaction/search/search_by_reference.rb
223
239
  - lib/pagseguro/transaction/serializer.rb
240
+ - lib/pagseguro/transaction_installment.rb
241
+ - lib/pagseguro/transaction_request.rb
242
+ - lib/pagseguro/transaction_request/request_serializer.rb
243
+ - lib/pagseguro/transaction_request/response.rb
244
+ - lib/pagseguro/transaction_request/response_serializer.rb
224
245
  - lib/pagseguro/version.rb
225
246
  - locales/pt-BR.yml
226
247
  - pagseguro-oficial.gemspec
@@ -229,18 +250,31 @@ files:
229
250
  - spec/fixtures/invalid_code.xml
230
251
  - spec/fixtures/payment_request/failure.xml
231
252
  - spec/fixtures/payment_request/success.xml
253
+ - spec/fixtures/session/success.xml
254
+ - spec/fixtures/transaction_request/success.xml
232
255
  - spec/fixtures/transactions/additional.xml
256
+ - spec/fixtures/transactions/search.xml
233
257
  - spec/fixtures/transactions/success.xml
234
258
  - spec/pagseguro/address_spec.rb
259
+ - spec/pagseguro/bank_spec.rb
260
+ - spec/pagseguro/boleto_transaction_request_spec.rb
235
261
  - spec/pagseguro/config_spec.rb
262
+ - spec/pagseguro/credit_card_transaction_request_spec.rb
236
263
  - spec/pagseguro/creditor_fee_spec.rb
237
264
  - spec/pagseguro/document_spec.rb
238
265
  - spec/pagseguro/errors_spec.rb
239
- - spec/pagseguro/installment/serializer_spec.rb
266
+ - spec/pagseguro/features/create_session_spec.rb
267
+ - spec/pagseguro/features/create_transaction_request_spec.rb
268
+ - spec/pagseguro/holder_spec.rb
269
+ - spec/pagseguro/installment/collection_spec.rb
270
+ - spec/pagseguro/installment/request_serializer_spec.rb
271
+ - spec/pagseguro/installment/response_serializer_spec.rb
272
+ - spec/pagseguro/installment/response_spec.rb
240
273
  - spec/pagseguro/installment_spec.rb
241
274
  - spec/pagseguro/item_spec.rb
242
275
  - spec/pagseguro/items_spec.rb
243
276
  - spec/pagseguro/notification_spec.rb
277
+ - spec/pagseguro/online_debit_transaction_request_spec.rb
244
278
  - spec/pagseguro/pagseguro_spec.rb
245
279
  - spec/pagseguro/payment_method_spec.rb
246
280
  - spec/pagseguro/payment_release_spec.rb
@@ -252,11 +286,24 @@ files:
252
286
  - spec/pagseguro/phone_spec.rb
253
287
  - spec/pagseguro/request_spec.rb
254
288
  - spec/pagseguro/sender_spec.rb
289
+ - spec/pagseguro/session/response_serializer_spec.rb
290
+ - spec/pagseguro/session/response_spec.rb
291
+ - spec/pagseguro/session_spec.rb
255
292
  - spec/pagseguro/shipping_spec.rb
293
+ - spec/pagseguro/transaction/search/search_abandoned_spec.rb
294
+ - spec/pagseguro/transaction/search/search_by_date_spec.rb
295
+ - spec/pagseguro/transaction/search/search_by_reference_spec.rb
296
+ - spec/pagseguro/transaction/search_spec.rb
256
297
  - spec/pagseguro/transaction/serializer_spec.rb
298
+ - spec/pagseguro/transaction_installment_spec.rb
299
+ - spec/pagseguro/transaction_request/request_serializer_spec.rb
300
+ - spec/pagseguro/transaction_request/response_serializer_spec.rb
301
+ - spec/pagseguro/transaction_request/response_spec.rb
302
+ - spec/pagseguro/transaction_request_spec.rb
257
303
  - spec/pagseguro/transaction_spec.rb
258
304
  - spec/spec_helper.rb
259
305
  - spec/support/ensure_type_macro.rb
306
+ - spec/support/helpers.rb
260
307
  - spec/support/mass_assignment_macro.rb
261
308
  - spec/support/shared_examples_for_configuration.rb
262
309
  homepage: http://www.pagseguro.com.br
@@ -279,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
326
  version: '0'
280
327
  requirements: []
281
328
  rubyforge_project:
282
- rubygems_version: 2.4.6
329
+ rubygems_version: 2.4.5.1
283
330
  signing_key:
284
331
  specification_version: 4
285
332
  summary: Biblioteca oficial de integração PagSeguro em Ruby
@@ -289,18 +336,31 @@ test_files:
289
336
  - spec/fixtures/invalid_code.xml
290
337
  - spec/fixtures/payment_request/failure.xml
291
338
  - spec/fixtures/payment_request/success.xml
339
+ - spec/fixtures/session/success.xml
340
+ - spec/fixtures/transaction_request/success.xml
292
341
  - spec/fixtures/transactions/additional.xml
342
+ - spec/fixtures/transactions/search.xml
293
343
  - spec/fixtures/transactions/success.xml
294
344
  - spec/pagseguro/address_spec.rb
345
+ - spec/pagseguro/bank_spec.rb
346
+ - spec/pagseguro/boleto_transaction_request_spec.rb
295
347
  - spec/pagseguro/config_spec.rb
348
+ - spec/pagseguro/credit_card_transaction_request_spec.rb
296
349
  - spec/pagseguro/creditor_fee_spec.rb
297
350
  - spec/pagseguro/document_spec.rb
298
351
  - spec/pagseguro/errors_spec.rb
299
- - spec/pagseguro/installment/serializer_spec.rb
352
+ - spec/pagseguro/features/create_session_spec.rb
353
+ - spec/pagseguro/features/create_transaction_request_spec.rb
354
+ - spec/pagseguro/holder_spec.rb
355
+ - spec/pagseguro/installment/collection_spec.rb
356
+ - spec/pagseguro/installment/request_serializer_spec.rb
357
+ - spec/pagseguro/installment/response_serializer_spec.rb
358
+ - spec/pagseguro/installment/response_spec.rb
300
359
  - spec/pagseguro/installment_spec.rb
301
360
  - spec/pagseguro/item_spec.rb
302
361
  - spec/pagseguro/items_spec.rb
303
362
  - spec/pagseguro/notification_spec.rb
363
+ - spec/pagseguro/online_debit_transaction_request_spec.rb
304
364
  - spec/pagseguro/pagseguro_spec.rb
305
365
  - spec/pagseguro/payment_method_spec.rb
306
366
  - spec/pagseguro/payment_release_spec.rb
@@ -312,10 +372,23 @@ test_files:
312
372
  - spec/pagseguro/phone_spec.rb
313
373
  - spec/pagseguro/request_spec.rb
314
374
  - spec/pagseguro/sender_spec.rb
375
+ - spec/pagseguro/session/response_serializer_spec.rb
376
+ - spec/pagseguro/session/response_spec.rb
377
+ - spec/pagseguro/session_spec.rb
315
378
  - spec/pagseguro/shipping_spec.rb
379
+ - spec/pagseguro/transaction/search/search_abandoned_spec.rb
380
+ - spec/pagseguro/transaction/search/search_by_date_spec.rb
381
+ - spec/pagseguro/transaction/search/search_by_reference_spec.rb
382
+ - spec/pagseguro/transaction/search_spec.rb
316
383
  - spec/pagseguro/transaction/serializer_spec.rb
384
+ - spec/pagseguro/transaction_installment_spec.rb
385
+ - spec/pagseguro/transaction_request/request_serializer_spec.rb
386
+ - spec/pagseguro/transaction_request/response_serializer_spec.rb
387
+ - spec/pagseguro/transaction_request/response_spec.rb
388
+ - spec/pagseguro/transaction_request_spec.rb
317
389
  - spec/pagseguro/transaction_spec.rb
318
390
  - spec/spec_helper.rb
319
391
  - spec/support/ensure_type_macro.rb
392
+ - spec/support/helpers.rb
320
393
  - spec/support/mass_assignment_macro.rb
321
394
  - spec/support/shared_examples_for_configuration.rb