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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b2c9494712758f11243961a62c851926fd33e36
4
- data.tar.gz: 2811586bdec72838cf7d9ba27a959081de1709ef
3
+ metadata.gz: a575d8862d5df21c60e4b3d9792578538a5a1ba5
4
+ data.tar.gz: 4a947b119af93f416274e9fe53bb8844a8968273
5
5
  SHA512:
6
- metadata.gz: 50dd3f0ed5fcab355a388f7898c515d40e08b2e1f6d05546f72971dd0559ca5591224711e202c9c93f0264ec80404d86ef795c536f7c869805e5ad3af7a36d30
7
- data.tar.gz: 5e2c0bddf162adea0b242d280b04b749fdbf16ab07beb32d28b00f7b6138e894b6671189ab6d948a28f94c3b12a146b6f21cdffc5622d053004dd08a6f34990f
6
+ metadata.gz: 5c383929faf43a6b0e9a6742fc03e09b593f32eb7e7f238ba78bb481dcccb9de06d3b980721faf59728ab3b3d459ad80a775a5df78e4ff4253183057191aca60
7
+ data.tar.gz: f5fe080c682bc9fe826d260cabf7a7ecafc381c78db8cd7395a72708f7fc621d52558f15683e90d950d08de14baaf1d170d9c907108e20db9a4e1551af371bbd
@@ -17,3 +17,4 @@ require 'braspag-rest/customer'
17
17
  require 'braspag-rest/credit_card'
18
18
  require 'braspag-rest/payment'
19
19
  require 'braspag-rest/sale'
20
+ require 'braspag-rest/address'
@@ -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
@@ -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'
@@ -1,3 +1,4 @@
1
+ require 'json'
1
2
  module BraspagRest
2
3
  class Request
3
4
  class << self
@@ -1,3 +1,3 @@
1
1
  module BraspagRest
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
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
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: 2015-12-23 00:00:00.000000000 Z
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.4.8
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