braspag-rest 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/braspag-rest.rb +1 -0
- data/lib/braspag-rest/address.rb +12 -0
- data/lib/braspag-rest/customer.rb +2 -0
- data/lib/braspag-rest/payment.rb +1 -0
- data/lib/braspag-rest/request.rb +1 -0
- data/lib/braspag-rest/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a575d8862d5df21c60e4b3d9792578538a5a1ba5
|
4
|
+
data.tar.gz: 4a947b119af93f416274e9fe53bb8844a8968273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c383929faf43a6b0e9a6742fc03e09b593f32eb7e7f238ba78bb481dcccb9de06d3b980721faf59728ab3b3d459ad80a775a5df78e4ff4253183057191aca60
|
7
|
+
data.tar.gz: f5fe080c682bc9fe826d260cabf7a7ecafc381c78db8cd7395a72708f7fc621d52558f15683e90d950d08de14baaf1d170d9c907108e20db9a4e1551af371bbd
|
data/lib/braspag-rest.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
module BraspagRest
|
2
|
+
class Address < Hashie::IUTrash
|
3
|
+
property :street, from: 'Street'
|
4
|
+
property :number, from: 'Number'
|
5
|
+
property :complement, from: 'Complement'
|
6
|
+
property :zip_code, from: 'ZipCode'
|
7
|
+
property :city, from: 'City'
|
8
|
+
property :state, from: 'State'
|
9
|
+
property :country, from: 'Country'
|
10
|
+
property :district, from: 'District'
|
11
|
+
end
|
12
|
+
end
|
@@ -2,5 +2,7 @@ module BraspagRest
|
|
2
2
|
class Customer < Hashie::IUTrash
|
3
3
|
property :name, from: 'Name'
|
4
4
|
property :identity, from: 'Identity'
|
5
|
+
property :identity_type, from: 'IdentityType'
|
6
|
+
property :address, from: 'Address', with: ->(values) { BraspagRest::Address.new(values) }
|
5
7
|
end
|
6
8
|
end
|
data/lib/braspag-rest/payment.rb
CHANGED
@@ -9,6 +9,7 @@ module BraspagRest
|
|
9
9
|
property :id, from: 'PaymentId'
|
10
10
|
property :type, from: 'Type'
|
11
11
|
property :amount, from: 'Amount'
|
12
|
+
property :boleto_number, from: 'BoletoNumber'
|
12
13
|
property :captured_amount, from: 'CapturedAmount'
|
13
14
|
property :status, from: 'Status'
|
14
15
|
property :provider, from: 'Provider'
|
data/lib/braspag-rest/request.rb
CHANGED
data/lib/braspag-rest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braspag-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dinda Dev Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- bin/setup
|
129
129
|
- braspag-rest.gemspec
|
130
130
|
- lib/braspag-rest.rb
|
131
|
+
- lib/braspag-rest/address.rb
|
131
132
|
- lib/braspag-rest/configuration.rb
|
132
133
|
- lib/braspag-rest/credit_card.rb
|
133
134
|
- lib/braspag-rest/customer.rb
|
@@ -159,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
160
|
version: '0'
|
160
161
|
requirements: []
|
161
162
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.5.2
|
163
164
|
signing_key:
|
164
165
|
specification_version: 4
|
165
166
|
summary: Gem to use Braspag gateway in his REST version
|