pagseguro-oficial 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -7
  3. data/CHANGELOG.md +9 -3
  4. data/README.md +26 -8
  5. data/examples/abandoned_transactions.rb +16 -4
  6. data/examples/authorization.rb +31 -0
  7. data/examples/authorization_by_code.rb +29 -0
  8. data/examples/authorization_by_notification_code.rb +30 -0
  9. data/examples/boleto_transaction_request.rb +6 -0
  10. data/examples/boot.rb +19 -2
  11. data/examples/create_session.rb +6 -0
  12. data/examples/credit_card_transaction_request.rb +6 -0
  13. data/examples/installment.rb +21 -11
  14. data/examples/invalid_transaction_by_notification_code.rb +14 -1
  15. data/examples/online_debit_transaction.rb +6 -0
  16. data/examples/payment_request.rb +11 -0
  17. data/examples/transaction_by_code.rb +23 -9
  18. data/examples/transaction_by_notification_code.rb +22 -9
  19. data/examples/transaction_by_reference.rb +13 -1
  20. data/examples/transactions_by_date.rb +17 -1
  21. data/lib/pagseguro/account_credentials.rb +14 -0
  22. data/lib/pagseguro/application_credentials.rb +18 -0
  23. data/lib/pagseguro/authorization/collection.rb +26 -0
  24. data/lib/pagseguro/authorization/request_serializer.rb +24 -0
  25. data/lib/pagseguro/authorization/response.rb +49 -0
  26. data/lib/pagseguro/authorization/response_serializer.rb +39 -0
  27. data/lib/pagseguro/authorization.rb +52 -0
  28. data/lib/pagseguro/authorization_request/request_serializer.rb +30 -0
  29. data/lib/pagseguro/authorization_request/response.rb +26 -0
  30. data/lib/pagseguro/authorization_request/response_serializer.rb +18 -0
  31. data/lib/pagseguro/authorization_request.rb +72 -0
  32. data/lib/pagseguro/config.rb +20 -0
  33. data/lib/pagseguro/errors.rb +1 -0
  34. data/lib/pagseguro/extensions/credentiable.rb +17 -0
  35. data/lib/pagseguro/installment.rb +4 -2
  36. data/lib/pagseguro/notification/authorization.rb +15 -0
  37. data/lib/pagseguro/notification/transaction.rb +15 -0
  38. data/lib/pagseguro/notification.rb +0 -10
  39. data/lib/pagseguro/payment_request/serializer.rb +1 -0
  40. data/lib/pagseguro/payment_request.rb +2 -13
  41. data/lib/pagseguro/permission.rb +13 -0
  42. data/lib/pagseguro/request.rb +37 -5
  43. data/lib/pagseguro/transaction/search/search_abandoned.rb +2 -1
  44. data/lib/pagseguro/transaction/search/search_by_date.rb +2 -1
  45. data/lib/pagseguro/transaction/search/search_by_reference.rb +1 -0
  46. data/lib/pagseguro/transaction.rb +27 -25
  47. data/lib/pagseguro/version.rb +1 -1
  48. data/lib/pagseguro.rb +57 -14
  49. data/locales/pt-BR.yml +1 -0
  50. data/pagseguro-oficial.gemspec +0 -1
  51. data/spec/fixtures/authorization/find_authorization.xml +17 -0
  52. data/spec/fixtures/authorization_request/success.xml +4 -0
  53. data/spec/pagseguro/account_credentials_spec.rb +10 -0
  54. data/spec/pagseguro/application_credentials_spec.rb +11 -0
  55. data/spec/pagseguro/authorization/collection_spec.rb +49 -0
  56. data/spec/pagseguro/authorization/request_serializer_spec.rb +11 -0
  57. data/spec/pagseguro/authorization/response_serializer_spec.rb +19 -0
  58. data/spec/pagseguro/authorization/response_spec.rb +35 -0
  59. data/spec/pagseguro/authorization_request/request_serializer_spec.rb +23 -0
  60. data/spec/pagseguro/authorization_request/response_serializer_spec.rb +15 -0
  61. data/spec/pagseguro/authorization_request/response_spec.rb +36 -0
  62. data/spec/pagseguro/authorization_request_spec.rb +62 -0
  63. data/spec/pagseguro/authorization_spec.rb +69 -0
  64. data/spec/pagseguro/errors_spec.rb +17 -5
  65. data/spec/pagseguro/installment/response_spec.rb +3 -1
  66. data/spec/pagseguro/installment_spec.rb +1 -1
  67. data/spec/pagseguro/notification_spec.rb +0 -12
  68. data/spec/pagseguro/pagseguro_spec.rb +15 -15
  69. data/spec/pagseguro/payment_request/serializer_spec.rb +10 -0
  70. data/spec/pagseguro/payment_request_spec.rb +0 -31
  71. data/spec/pagseguro/permission_spec.rb +7 -0
  72. data/spec/pagseguro/request_spec.rb +25 -5
  73. data/spec/pagseguro/session/response_spec.rb +2 -1
  74. data/spec/pagseguro/session_spec.rb +2 -1
  75. data/spec/pagseguro/transaction/search/search_abandoned_spec.rb +15 -0
  76. data/spec/pagseguro/transaction/search_spec.rb +1 -1
  77. data/spec/pagseguro/transaction_request/response_spec.rb +1 -1
  78. data/spec/pagseguro/transaction_request_spec.rb +1 -1
  79. data/spec/pagseguro/transaction_spec.rb +34 -1
  80. data/spec/spec_helper.rb +0 -1
  81. data/spec/support/shared_examples_for_configuration.rb +3 -1
  82. metadata +49 -16
@@ -2,11 +2,19 @@ require "spec_helper"
2
2
 
3
3
  describe PagSeguro do
4
4
  before do
5
- PagSeguro.email = "EMAIL"
6
- PagSeguro.token = "TOKEN"
5
+ PagSeguro.configure do |config|
6
+ config.app_id = "APP123"
7
+ config.app_key = "APPTOKEN"
8
+ config.email = "EMAIL"
9
+ config.token = "TOKEN"
10
+ end
7
11
  PagSeguro.receiver_email = "RECEIVER_EMAIL"
8
12
  end
9
13
 
14
+ after do
15
+ PagSeguro.environment = :production
16
+ end
17
+
10
18
  it { expect(PagSeguro.email).to eql("EMAIL") }
11
19
  it { expect(PagSeguro.token).to eql("TOKEN") }
12
20
  it { expect(PagSeguro.receiver_email).to eql("RECEIVER_EMAIL") }
@@ -17,27 +25,20 @@ describe PagSeguro do
17
25
  end
18
26
 
19
27
  context "configuring library" do
20
- it "yields PagSeguro" do
28
+ it "yields PagSeguro::Config" do
21
29
  expect {|block|
22
30
  PagSeguro.configure(&block)
23
31
  }.to yield_with_args(PagSeguro::Config)
24
32
  end
25
-
26
- it "is threadsafe" do
27
- thread = Thread.new do
28
- PagSeguro.configure do |config|
29
- config.receiver_email = 'ANOTHER_RECEIVER_EMAIL'
30
- end
31
- end
32
- thread.join
33
-
34
- expect(PagSeguro.receiver_email).to eql("RECEIVER_EMAIL")
35
- end
36
33
  end
37
34
 
38
35
  context "default settings" do
39
36
  it { expect(PagSeguro.encoding).to eql("UTF-8") }
40
37
  it { expect(PagSeguro.environment).to eql(:production) }
38
+ it { expect(PagSeguro.account_credentials.email).to eql("EMAIL") }
39
+ it { expect(PagSeguro.account_credentials.token).to eql("TOKEN") }
40
+ it { expect(PagSeguro.application_credentials.app_id).to eql("APP123") }
41
+ it { expect(PagSeguro.application_credentials.app_key).to eql("APPTOKEN") }
41
42
  end
42
43
 
43
44
  describe ".api_url" do
@@ -58,7 +59,6 @@ describe PagSeguro do
58
59
 
59
60
  expect(PagSeguro.api_url("v2/some/path")).to eql("https://ws.sandbox.pagseguro.uol.com.br/v2/some/path")
60
61
  end
61
-
62
62
  end
63
63
 
64
64
  describe ".site_url" do
@@ -140,6 +140,16 @@ describe PagSeguro::PaymentRequest::Serializer do
140
140
  it_behaves_like "item serialization", 2
141
141
  end
142
142
 
143
+ context "credentials serialization" do
144
+ before do
145
+ credentials = PagSeguro::ApplicationCredentials.new(
146
+ "app123", "qwerty", "authocode"
147
+ )
148
+
149
+ payment_request.stub(credentials: credentials)
150
+ end
151
+ end
152
+
143
153
  context "extra params serialization" do
144
154
  before do
145
155
  payment_request.stub({
@@ -9,8 +9,6 @@ describe PagSeguro::PaymentRequest do
9
9
  it_assigns_attribute :max_uses
10
10
  it_assigns_attribute :notification_url
11
11
  it_assigns_attribute :abandon_url
12
- it_assigns_attribute :email
13
- it_assigns_attribute :token
14
12
 
15
13
  it_ensures_type PagSeguro::Sender, :sender
16
14
  it_ensures_type PagSeguro::Shipping, :shipping
@@ -32,30 +30,6 @@ describe PagSeguro::PaymentRequest do
32
30
  expect(payment.currency).to eql("BRL")
33
31
  end
34
32
 
35
- describe "#email" do
36
- before { PagSeguro.email = 'DEFAULT_EMAIL' }
37
-
38
- it "returns the email set in the constructor" do
39
- expect(described_class.new(email: 'foo').email).to eq('foo')
40
- end
41
-
42
- it "defaults to PagSeguro.email" do
43
- expect(described_class.new.email).to eq('DEFAULT_EMAIL')
44
- end
45
- end
46
-
47
- describe "#token" do
48
- before { PagSeguro.token = 'DEFAULT_TOKEN' }
49
-
50
- it "returns the token set in the constructor" do
51
- expect(described_class.new(token: 'foo').token).to eq('foo')
52
- end
53
-
54
- it "defaults to PagSeguro.token" do
55
- expect(described_class.new.token).to eq('DEFAULT_TOKEN')
56
- end
57
- end
58
-
59
33
  describe "#register" do
60
34
  let(:payment) { PagSeguro::PaymentRequest.new }
61
35
  before { FakeWeb.register_uri :any, %r[.*?], body: "" }
@@ -72,11 +46,6 @@ describe PagSeguro::PaymentRequest do
72
46
  it "performs request" do
73
47
  params = double
74
48
 
75
- params.should_receive(:merge).with({
76
- email: PagSeguro.email,
77
- token: PagSeguro.token
78
- }).and_return(params)
79
-
80
49
  PagSeguro::PaymentRequest::Serializer.any_instance.stub to_params: params
81
50
 
82
51
  PagSeguro::Request
@@ -0,0 +1,7 @@
1
+ require "spec_helper"
2
+
3
+ describe PagSeguro::Permission do
4
+ it_assigns_attribute :code
5
+ it_assigns_attribute :status
6
+ it_assigns_attribute :last_update
7
+ end
@@ -11,6 +11,10 @@ describe PagSeguro::Request do
11
11
  context "POST request" do
12
12
  before do
13
13
  FakeWeb.register_uri :post, %r[.+], body: "BODY"
14
+ PagSeguro.configure do |config|
15
+ config.app_id = nil
16
+ config.app_key = nil
17
+ end
14
18
  end
15
19
 
16
20
  it "includes credentials" do
@@ -50,12 +54,28 @@ describe PagSeguro::Request do
50
54
  FakeWeb.register_uri :get, %r[.+], body: "BODY"
51
55
  end
52
56
 
53
- it "includes credentials" do
54
- PagSeguro.email = "EMAIL"
55
- PagSeguro.token = "TOKEN"
56
- PagSeguro::Request.get("checkout", "v3")
57
+ context "when global acoount config is set" do
58
+ it "includes account credentials" do
59
+ PagSeguro.configure do |config|
60
+ config.email = "EMAIL"
61
+ config.token = "TOKEN"
62
+ end
63
+ PagSeguro::Request.get("checkout", "v3")
64
+
65
+ expect(FakeWeb.last_request.path).to include("email=EMAIL&token=TOKEN")
66
+ end
67
+ end
68
+
69
+ context "when global app config is set" do
70
+ it "includes application credentials" do
71
+ PagSeguro.configure do |config|
72
+ config.app_id = "APP123"
73
+ config.app_key = "APPKEY"
74
+ end
75
+ PagSeguro::Request.get("checkout", "v3")
57
76
 
58
- expect(FakeWeb.last_request.path).to include("email=EMAIL&token=TOKEN")
77
+ expect(FakeWeb.last_request.path).to include("appId=APP123&appKey=APPKEY")
78
+ end
59
79
  end
60
80
 
61
81
  it "includes encoding" do
@@ -21,7 +21,8 @@ RSpec.describe PagSeguro::Session::Response do
21
21
  describe "#serialize" do
22
22
  let(:http_response) do
23
23
  double(:request, success?: true, xml?: true, data: xml_parsed,
24
- body: raw_xml, unauthorized?: false, bad_request?: false)
24
+ body: raw_xml, unauthorized?: false, bad_request?: false,
25
+ not_found?: false)
25
26
  end
26
27
  let(:xml_parsed) { Nokogiri::XML(raw_xml) }
27
28
 
@@ -5,7 +5,8 @@ describe PagSeguro::Session do |variable|
5
5
  subject { PagSeguro::Session }
6
6
  let(:request) do
7
7
  double(:request, success?: true, xml?: true, data: xml_parsed,
8
- body: raw_xml, unauthorized?: false, bad_request?: false)
8
+ body: raw_xml, unauthorized?: false, bad_request?: false,
9
+ not_found?: false)
9
10
  end
10
11
  let(:xml_parsed) { Nokogiri::XML(raw_xml) }
11
12
  let(:raw_xml) { File.read("./spec/fixtures/session/success.xml") }
@@ -22,6 +22,21 @@ describe PagSeguro::SearchAbandoned do
22
22
  .and_return(transaction)
23
23
  expect(search.transactions).to eq([transaction, transaction])
24
24
  end
25
+
26
+ it 'returns an array whith given credentials' do
27
+ options_with_credentials = {
28
+ credentials: PagSeguro::ApplicationCredentials.new('APP_ID', 'APP_KEY')
29
+ }.merge(options)
30
+
31
+ expect(PagSeguro::Transaction).to receive(:load_from_xml)
32
+ .exactly(2)
33
+ .times
34
+ .and_return(transaction)
35
+
36
+ expect(
37
+ PagSeguro::SearchAbandoned.new('transactions/abandoned', options_with_credentials, 1).transactions
38
+ ).to eq([transaction, transaction])
39
+ end
25
40
  end
26
41
  end
27
42
  end
@@ -4,7 +4,7 @@ describe PagSeguro::Search do
4
4
  let(:search) { PagSeguro::Search.new("foo", "bar", 1) }
5
5
  let(:source) { File.read("./spec/fixtures/transactions/search.xml") }
6
6
  let(:xml) { Nokogiri::XML(source) }
7
- let(:response) { double(:response, data: xml, unauthorized?: false, bad_request?: false) }
7
+ let(:response) { double(:response, data: xml, unauthorized?: false, bad_request?: false, not_found?: false) }
8
8
 
9
9
  context 'when being initialized' do
10
10
  it 'initializes with passed page number' do
@@ -23,7 +23,7 @@ describe PagSeguro::TransactionRequest::Response do
23
23
 
24
24
  context "#serialize" do
25
25
  let(:http_response) do
26
- double(:HttpResponse, data: xml_parsed, body: raw_xml, success?: true, xml?: true, unauthorized?: false, bad_request?: false)
26
+ double(:HttpResponse, data: xml_parsed, body: raw_xml, success?: true, xml?: true, unauthorized?: false, bad_request?: false, not_found?: false)
27
27
  end
28
28
 
29
29
  let(:xml_parsed) { Nokogiri::XML(raw_xml) }
@@ -99,7 +99,7 @@ describe PagSeguro::TransactionRequest do |variable|
99
99
 
100
100
  context "when request fails" do
101
101
  let :response_request do
102
- double(:ResponseRequest, success?: false, unauthorized?: false, bad_request?: false, data: xml_parsed, body: raw_xml, :xml? => true)
102
+ double(:ResponseRequest, success?: false, unauthorized?: false, bad_request?: false, data: xml_parsed, not_found?: false, body: raw_xml, :xml? => true)
103
103
  end
104
104
 
105
105
  before do
@@ -7,7 +7,7 @@ describe PagSeguro::Transaction do
7
7
 
8
8
  PagSeguro::Request
9
9
  .should_receive(:get)
10
- .with("transactions/notifications/CODE", "v3")
10
+ .with("transactions/notifications/CODE", "v3", {})
11
11
  .and_return(double.as_null_object)
12
12
 
13
13
  PagSeguro::Transaction.find_by_notification_code("CODE")
@@ -23,6 +23,19 @@ describe PagSeguro::Transaction do
23
23
  end
24
24
  end
25
25
 
26
+ describe ".find_by_code" do
27
+ it 'finds a transaction by its code' do
28
+ PagSeguro::Transaction.stub :load_from_response
29
+
30
+ PagSeguro::Request
31
+ .should_receive(:get)
32
+ .with("transactions/CODE", 'v3', {})
33
+ .and_return(double.as_null_object)
34
+
35
+ PagSeguro::Transaction.find_by_code("CODE")
36
+ end
37
+ end
38
+
26
39
  describe ".find_by_date" do
27
40
  it "initializes search with default options" do
28
41
  now = Time.now
@@ -106,6 +119,26 @@ describe PagSeguro::Transaction do
106
119
  page
107
120
  )
108
121
  end
122
+
123
+ it "initializes search with given credential option" do
124
+ credentials = PagSeguro::AccountCredentials.new('email@example.com', 'token')
125
+ starts_at = Time.now - 3600
126
+ ends_at = starts_at + 180
127
+ page = 1
128
+
129
+ PagSeguro::SearchAbandoned
130
+ .should_receive(:new)
131
+ .with(
132
+ "transactions/abandoned",
133
+ hash_including(per_page: 10, starts_at: starts_at, ends_at: ends_at, credentials: credentials),
134
+ page
135
+ )
136
+
137
+ PagSeguro::Transaction.find_abandoned(
138
+ { per_page: 10, starts_at: starts_at, ends_at: ends_at, credentials: credentials },
139
+ page
140
+ )
141
+ end
109
142
  end
110
143
 
111
144
  describe "attributes" do
data/spec/spec_helper.rb CHANGED
@@ -5,7 +5,6 @@ require "bundler/setup"
5
5
  Bundler.require(:default, :development)
6
6
 
7
7
  I18n.enforce_available_locales = false
8
- require "test_notifier/runner/rspec"
9
8
  require "fakeweb"
10
9
  require "pagseguro"
11
10
 
@@ -4,5 +4,7 @@ RSpec.shared_examples "a configuration" do
4
4
  it { is_expected.to respond_to(:receiver_email) }
5
5
  it { is_expected.to respond_to(:receiver_email=) }
6
6
  it { is_expected.to respond_to(:token) }
7
- it { is_expected.to respond_to(:token=) }
7
+ it { is_expected.to respond_to(:token=) }
8
+ it { is_expected.to respond_to(:environment) }
9
+ it { is_expected.to respond_to(:environment=) }
8
10
  end
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.2.0
4
+ version: 2.3.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-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aitch
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: test_notifier
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: simplecov
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -181,6 +167,9 @@ files:
181
167
  - Rakefile
182
168
  - docs/transparent_checkout.md
183
169
  - examples/abandoned_transactions.rb
170
+ - examples/authorization.rb
171
+ - examples/authorization_by_code.rb
172
+ - examples/authorization_by_notification_code.rb
184
173
  - examples/boleto_transaction_request.rb
185
174
  - examples/boot.rb
186
175
  - examples/create_session.rb
@@ -195,7 +184,18 @@ files:
195
184
  - examples/transactions_by_date.rb
196
185
  - lib/pagseguro-oficial.rb
197
186
  - lib/pagseguro.rb
187
+ - lib/pagseguro/account_credentials.rb
198
188
  - lib/pagseguro/address.rb
189
+ - lib/pagseguro/application_credentials.rb
190
+ - lib/pagseguro/authorization.rb
191
+ - lib/pagseguro/authorization/collection.rb
192
+ - lib/pagseguro/authorization/request_serializer.rb
193
+ - lib/pagseguro/authorization/response.rb
194
+ - lib/pagseguro/authorization/response_serializer.rb
195
+ - lib/pagseguro/authorization_request.rb
196
+ - lib/pagseguro/authorization_request/request_serializer.rb
197
+ - lib/pagseguro/authorization_request/response.rb
198
+ - lib/pagseguro/authorization_request/response_serializer.rb
199
199
  - lib/pagseguro/bank.rb
200
200
  - lib/pagseguro/boleto_transaction_request.rb
201
201
  - lib/pagseguro/config.rb
@@ -204,6 +204,7 @@ files:
204
204
  - lib/pagseguro/document.rb
205
205
  - lib/pagseguro/errors.rb
206
206
  - lib/pagseguro/exceptions.rb
207
+ - lib/pagseguro/extensions/credentiable.rb
207
208
  - lib/pagseguro/extensions/ensure_type.rb
208
209
  - lib/pagseguro/extensions/mass_assignment.rb
209
210
  - lib/pagseguro/holder.rb
@@ -215,6 +216,8 @@ files:
215
216
  - lib/pagseguro/item.rb
216
217
  - lib/pagseguro/items.rb
217
218
  - lib/pagseguro/notification.rb
219
+ - lib/pagseguro/notification/authorization.rb
220
+ - lib/pagseguro/notification/transaction.rb
218
221
  - lib/pagseguro/online_debit_transaction_request.rb
219
222
  - lib/pagseguro/payment_method.rb
220
223
  - lib/pagseguro/payment_release.rb
@@ -223,6 +226,7 @@ files:
223
226
  - lib/pagseguro/payment_request/response.rb
224
227
  - lib/pagseguro/payment_request/serializer.rb
225
228
  - lib/pagseguro/payment_status.rb
229
+ - lib/pagseguro/permission.rb
226
230
  - lib/pagseguro/phone.rb
227
231
  - lib/pagseguro/request.rb
228
232
  - lib/pagseguro/sender.rb
@@ -245,6 +249,8 @@ files:
245
249
  - lib/pagseguro/version.rb
246
250
  - locales/pt-BR.yml
247
251
  - pagseguro-oficial.gemspec
252
+ - spec/fixtures/authorization/find_authorization.xml
253
+ - spec/fixtures/authorization_request/success.xml
248
254
  - spec/fixtures/by_date/success.xml
249
255
  - spec/fixtures/installment/success.xml
250
256
  - spec/fixtures/invalid_code.xml
@@ -255,7 +261,18 @@ files:
255
261
  - spec/fixtures/transactions/additional.xml
256
262
  - spec/fixtures/transactions/search.xml
257
263
  - spec/fixtures/transactions/success.xml
264
+ - spec/pagseguro/account_credentials_spec.rb
258
265
  - spec/pagseguro/address_spec.rb
266
+ - spec/pagseguro/application_credentials_spec.rb
267
+ - spec/pagseguro/authorization/collection_spec.rb
268
+ - spec/pagseguro/authorization/request_serializer_spec.rb
269
+ - spec/pagseguro/authorization/response_serializer_spec.rb
270
+ - spec/pagseguro/authorization/response_spec.rb
271
+ - spec/pagseguro/authorization_request/request_serializer_spec.rb
272
+ - spec/pagseguro/authorization_request/response_serializer_spec.rb
273
+ - spec/pagseguro/authorization_request/response_spec.rb
274
+ - spec/pagseguro/authorization_request_spec.rb
275
+ - spec/pagseguro/authorization_spec.rb
259
276
  - spec/pagseguro/bank_spec.rb
260
277
  - spec/pagseguro/boleto_transaction_request_spec.rb
261
278
  - spec/pagseguro/config_spec.rb
@@ -283,6 +300,7 @@ files:
283
300
  - spec/pagseguro/payment_request/serializer_spec.rb
284
301
  - spec/pagseguro/payment_request_spec.rb
285
302
  - spec/pagseguro/payment_status_spec.rb
303
+ - spec/pagseguro/permission_spec.rb
286
304
  - spec/pagseguro/phone_spec.rb
287
305
  - spec/pagseguro/request_spec.rb
288
306
  - spec/pagseguro/sender_spec.rb
@@ -331,6 +349,8 @@ signing_key:
331
349
  specification_version: 4
332
350
  summary: Biblioteca oficial de integração PagSeguro em Ruby
333
351
  test_files:
352
+ - spec/fixtures/authorization/find_authorization.xml
353
+ - spec/fixtures/authorization_request/success.xml
334
354
  - spec/fixtures/by_date/success.xml
335
355
  - spec/fixtures/installment/success.xml
336
356
  - spec/fixtures/invalid_code.xml
@@ -341,7 +361,18 @@ test_files:
341
361
  - spec/fixtures/transactions/additional.xml
342
362
  - spec/fixtures/transactions/search.xml
343
363
  - spec/fixtures/transactions/success.xml
364
+ - spec/pagseguro/account_credentials_spec.rb
344
365
  - spec/pagseguro/address_spec.rb
366
+ - spec/pagseguro/application_credentials_spec.rb
367
+ - spec/pagseguro/authorization/collection_spec.rb
368
+ - spec/pagseguro/authorization/request_serializer_spec.rb
369
+ - spec/pagseguro/authorization/response_serializer_spec.rb
370
+ - spec/pagseguro/authorization/response_spec.rb
371
+ - spec/pagseguro/authorization_request/request_serializer_spec.rb
372
+ - spec/pagseguro/authorization_request/response_serializer_spec.rb
373
+ - spec/pagseguro/authorization_request/response_spec.rb
374
+ - spec/pagseguro/authorization_request_spec.rb
375
+ - spec/pagseguro/authorization_spec.rb
345
376
  - spec/pagseguro/bank_spec.rb
346
377
  - spec/pagseguro/boleto_transaction_request_spec.rb
347
378
  - spec/pagseguro/config_spec.rb
@@ -369,6 +400,7 @@ test_files:
369
400
  - spec/pagseguro/payment_request/serializer_spec.rb
370
401
  - spec/pagseguro/payment_request_spec.rb
371
402
  - spec/pagseguro/payment_status_spec.rb
403
+ - spec/pagseguro/permission_spec.rb
372
404
  - spec/pagseguro/phone_spec.rb
373
405
  - spec/pagseguro/request_spec.rb
374
406
  - spec/pagseguro/sender_spec.rb
@@ -392,3 +424,4 @@ test_files:
392
424
  - spec/support/helpers.rb
393
425
  - spec/support/mass_assignment_macro.rb
394
426
  - spec/support/shared_examples_for_configuration.rb
427
+ has_rdoc: