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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea2de2f00417d5400e0e34e11e589df7dd14a3f15babdbcc1981bda4e6ffa79c
4
- data.tar.gz: 8bdc7a6dfca922191100c9fa72c441c8a56fb9327fdf3ae26ca3a3ccc806c275
3
+ metadata.gz: be26ef14c47240bb69fd219577a0a91969dc2ff48e8a5a9ecc92bb665230c7e3
4
+ data.tar.gz: 6fef0894e5dcc08de1ec63d7e3289bb671020fd812fc11b765b2ced73f59c91c
5
5
  SHA512:
6
- metadata.gz: fc96c59ee4ce8c9e9729943c8df930d2b21ac2952dcc43f882b61477c6050611e7c12093b6581c2732546cb83fab689329cd6355d329fb8bb53a01a261135ae0
7
- data.tar.gz: f8916c0ef556bf0b422a245ba0366e1bbf02ea1b287dc7268baff5dcac761d1b8974b84bf5094a631f6c757b4564d17dba23527b06b366ddf066e1ae4d502084
6
+ metadata.gz: 114751e66284ca20cd823c3aa570f9d621171efbbe5ccef3e83e73e78fc7e480322441cdc3d06aadfd4ed53d679bf9d56376762ca5880d6fe51ee1cbf67d9a09
7
+ data.tar.gz: 54f75a324728e6fd4855ce5e941115b41176d2b41e00a507202d331fb9bdca7604fca34b4077f16adc290697204f32144c7229f4baaf7b553cd4b2b5cb5cf898
@@ -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? }.to_json,
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::Decimal
6
+ attribute :value, Types::Coercible::Float
7
7
  attribute :dueDateLimitDays, Types::Coercible::Integer.optional.default(0)
8
8
  attribute :type, DiscountTypes
9
9
  end
@@ -1,5 +1,8 @@
1
1
  module Asaas
2
2
  class Fine < Model
3
- attribute :value, Types::Coercible::Decimal
3
+ FineTypes = Types::Strict::String.enum('FIXED', 'PERCENTAGE')
4
+
5
+ attribute :value, Types::Coercible::Float
6
+ attribute :type, FineTypes.optional.default(nil)
4
7
  end
5
8
  end
@@ -1,5 +1,8 @@
1
1
  module Asaas
2
2
  class Interest < Model
3
- attribute :value, Types::Coercible::Decimal
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
@@ -1,3 +1,3 @@
1
1
  module Asaas
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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-22 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler