asaas-ruby 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: 4eee912a1b783b7b059b127151602ab3ff769bd7
4
- data.tar.gz: 4e485d1ec8d0f2c711f897ffadfed0e6499b2245
2
+ SHA256:
3
+ metadata.gz: f507426da712c7a3a0084c26562aba4dec8089a59db3d9c8f495af3b87830f0a
4
+ data.tar.gz: bdaf257968a318b239714e95b87523713748e004f842715a45ea510e3b62fd4e
5
5
  SHA512:
6
- metadata.gz: 38ce6fcb65f4610b03511cc5a7d5abd07ae496c2635c27db8fc76b4abead0923897eb41d557d3a2b71514aa19e9dd3aca2a1f041c755043d8289824c08a5e516
7
- data.tar.gz: 2c70d65f60379e1c34ce2a86d73ee14f154f18386ecd3eb291c5230e55817436806a02f4358d8718df08e2d799375d7ddd9c2436adf290413d4032665f07c418
6
+ metadata.gz: 6281c1aeba9da6b628a8054e1b167ae6a978bee495ecf2b2072b107df5af123ba9df12f5c2530060e25e79e8aa0efc914e59068a6c70b3192a47160189d6af14
7
+ data.tar.gz: ecf00e6c9dd0f7afef6121ef881522cd49b4cf0f4ef892e06e75854bc2151b52228597a81165658021a27f75f608de9dc90b1ff989db01266a88e53be97237f6
@@ -1,6 +1,7 @@
1
1
  module Asaas
2
2
  class Payment < Model
3
3
  BillingTypes = Types::Strict::String.enum('BOLETO', 'CREDIT_CARD', 'UNDEFINED')
4
+ Status = Types::Strict::String.enum('PENDING', 'RECEIVED', 'CONFIRMED', 'OVERDUE', 'REFUNDED', 'RECEIVED_IN_CASH', 'REFUND_REQUESTED', 'CHARGEBACK_DISPUTE', 'AWAITING_CHARGEBACK_REVERSAL')
4
5
 
5
6
  attribute :id, Types::Coercible::String.optional.default(nil)
6
7
  attribute :customer, Types::Coercible::String
@@ -14,5 +15,20 @@ module Asaas
14
15
  attribute :discount, Discount.optional.default(nil)
15
16
  attribute :interest, Interest.optional.default(nil)
16
17
  attribute :fine, Fine.optional.default(nil)
18
+
19
+ attribute :status, Status.optional.default(nil)
20
+ attribute :dateCreated, Types::Coercible::String.optional.default(nil)
21
+ attribute :subscription, Types::Coercible::String.optional.default(nil)
22
+ attribute :originalDueDate, Types::Coercible::String.optional.default(nil)
23
+ attribute :originalValue, Types::Coercible::Decimal.optional.default(nil)
24
+ attribute :interestValue, Types::Coercible::Decimal.optional.default(nil)
25
+ attribute :confirmedDate, Types::Coercible::String.optional.default(nil)
26
+ attribute :paymentDate, Types::Coercible::String.optional.default(nil)
27
+ attribute :clientPaymentDate, Types::Coercible::String.optional.default(nil)
28
+ attribute :invoiceUrl, Types::Coercible::String.optional.default(nil)
29
+ attribute :bankSlipUrl, Types::Coercible::String.optional.default(nil)
30
+ attribute :invoiceNumber, Types::Coercible::String.optional.default(nil)
31
+ attribute :deleted, Types::Coercible::String.optional.default(nil)
32
+
17
33
  end
18
34
  end
data/lib/asaas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Asaas
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
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-18 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  requirements: []
266
266
  rubyforge_project:
267
- rubygems_version: 2.5.1
267
+ rubygems_version: 2.7.7
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Asass.com Ruby API Wrapper