asaas-ruby 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asaas/api/base.rb +1 -1
- data/lib/asaas/models/discount.rb +1 -1
- data/lib/asaas/models/fine.rb +4 -1
- data/lib/asaas/models/interest.rb +4 -1
- data/lib/asaas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be26ef14c47240bb69fd219577a0a91969dc2ff48e8a5a9ecc92bb665230c7e3
|
4
|
+
data.tar.gz: 6fef0894e5dcc08de1ec63d7e3289bb671020fd812fc11b765b2ced73f59c91c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 114751e66284ca20cd823c3aa570f9d621171efbbe5ccef3e83e73e78fc7e480322441cdc3d06aadfd4ed53d679bf9d56376762ca5880d6fe51ee1cbf67d9a09
|
7
|
+
data.tar.gz: 54f75a324728e6fd4855ce5e941115b41176d2b41e00a507202d331fb9bdca7604fca34b4077f16adc290697204f32144c7229f4baaf7b553cd4b2b5cb5cf898
|
data/lib/asaas/api/base.rb
CHANGED
@@ -90,7 +90,7 @@ module Asaas
|
|
90
90
|
@response = Typhoeus::Request.new(
|
91
91
|
parse_url(params.fetch(:id, false)),
|
92
92
|
method: method,
|
93
|
-
body: body.delete_if { |k, v| v.nil? || v.to_s.empty? }
|
93
|
+
body: body.delete_if { |k, v| v.nil? || v.to_s.empty? },
|
94
94
|
params: params,
|
95
95
|
headers: { 'access_token': @token || Asaas::Configuration.token }
|
96
96
|
).run
|
@@ -3,7 +3,7 @@ module Asaas
|
|
3
3
|
transform_keys(&:to_sym)
|
4
4
|
|
5
5
|
DiscountTypes = Types::Strict::String.enum('FIXED', 'PERCENTAGE')
|
6
|
-
attribute :value, Types::Coercible::
|
6
|
+
attribute :value, Types::Coercible::Float
|
7
7
|
attribute :dueDateLimitDays, Types::Coercible::Integer.optional.default(0)
|
8
8
|
attribute :type, DiscountTypes
|
9
9
|
end
|
data/lib/asaas/models/fine.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module Asaas
|
2
2
|
class Interest < Model
|
3
|
-
|
3
|
+
InterestTypes = Types::Strict::String.enum('FIXED', 'PERCENTAGE')
|
4
|
+
|
5
|
+
attribute :value, Types::Coercible::Float
|
6
|
+
attribute :type, InterestTypes.optional.default(nil)
|
4
7
|
end
|
5
8
|
end
|
data/lib/asaas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asaas-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Junior
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|