forest_liana 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/serializers/forest_liana/stripe_invoice_serializer.rb +5 -5
- data/app/services/forest_liana/stripe_invoice_getter.rb +1 -1
- data/app/services/forest_liana/stripe_invoices_getter.rb +1 -1
- data/app/services/forest_liana/stripe_source_getter.rb +1 -1
- data/app/services/forest_liana/stripe_sources_getter.rb +1 -1
- data/lib/forest_liana/bootstrapper.rb +5 -5
- data/lib/forest_liana/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: f0f16b6b5334c088bb009afb4442903784602d0f20ff854faf425a20d88721cf
|
|
4
|
+
data.tar.gz: 1a5152210b474568ca52428da05083a764c46c20054a45fa37c2441af4b9c9dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de9f8be54aea5e876bf6a9bb84d6fa983be90f071ae7d354f5fa8bffc692d1214fca19a4619c20853e6e13637149aea33d1f17348e4a3961024b16a0faadcf90
|
|
7
|
+
data.tar.gz: 228e81af969e6d018589e6a285e3e5dfc860ada3a96a9df796a506c85258127bf9ac39de000c93e938cfc595dd19b72e495d7b7370fc32bd43a5e2a9b5465bdb
|
|
@@ -3,20 +3,20 @@ module ForestLiana
|
|
|
3
3
|
include JSONAPI::Serializer
|
|
4
4
|
|
|
5
5
|
attribute :amount_due
|
|
6
|
+
attribute :amount_paid
|
|
7
|
+
attribute :amount_remaining
|
|
8
|
+
attribute :application_fee_amount
|
|
6
9
|
attribute :attempt_count
|
|
7
10
|
attribute :attempted
|
|
8
|
-
attribute :closed
|
|
9
11
|
attribute :currency
|
|
10
|
-
attribute :
|
|
11
|
-
attribute :forgiven
|
|
12
|
+
attribute :due_date
|
|
12
13
|
attribute :paid
|
|
13
14
|
attribute :period_end
|
|
14
15
|
attribute :period_start
|
|
16
|
+
attribute :status
|
|
15
17
|
attribute :subtotal
|
|
16
18
|
attribute :total
|
|
17
|
-
attribute :application_fee
|
|
18
19
|
attribute :tax
|
|
19
|
-
attribute :tax_percent
|
|
20
20
|
|
|
21
21
|
has_one :customer
|
|
22
22
|
|
|
@@ -11,7 +11,7 @@ module ForestLiana
|
|
|
11
11
|
query = {}
|
|
12
12
|
@record = ::Stripe::Invoice.retrieve(@params[:invoice_id])
|
|
13
13
|
|
|
14
|
-
@record.
|
|
14
|
+
@record.due_date = Time.at(@record.due_date).to_datetime unless @record.due_date.nil?
|
|
15
15
|
@record.period_start = Time.at(@record.period_start).to_datetime
|
|
16
16
|
@record.period_end = Time.at(@record.period_end).to_datetime
|
|
17
17
|
@record.subtotal /= 100.00
|
|
@@ -32,7 +32,7 @@ module ForestLiana
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
@records = @invoices.data.map do |d|
|
|
35
|
-
d.date = Time.at(d.
|
|
35
|
+
d.date = Time.at(d.created).to_datetime
|
|
36
36
|
d.period_start = Time.at(d.period_start).to_datetime
|
|
37
37
|
d.period_end = Time.at(d.period_end).to_datetime
|
|
38
38
|
d.subtotal /= 100.00
|
|
@@ -32,7 +32,7 @@ module ForestLiana
|
|
|
32
32
|
|
|
33
33
|
def fetch_bank_accounts(customer, params)
|
|
34
34
|
begin
|
|
35
|
-
@cards = ::Stripe::Customer.retrieve(customer).sources.list(params)
|
|
35
|
+
@cards = ::Stripe::Customer.retrieve({ id: customer, expand: ['sources'] }).sources.list(params)
|
|
36
36
|
if @cards.blank?
|
|
37
37
|
@records = []
|
|
38
38
|
return
|
|
@@ -430,19 +430,19 @@ module ForestLiana
|
|
|
430
430
|
fields: [
|
|
431
431
|
{ field: :id, type: 'String', is_filterable: false },
|
|
432
432
|
{ field: :amount_due, type: 'Number', is_filterable: false },
|
|
433
|
+
{ field: :amount_paid, type: 'Number', is_filterable: false },
|
|
434
|
+
{ field: :amount_remaining, type: 'Number', is_filterable: false },
|
|
435
|
+
{ field: :application_fee_amount, type: 'Number', is_filterable: false },
|
|
433
436
|
{ field: :attempt_count, type: 'Number', is_filterable: false },
|
|
434
437
|
{ field: :attempted, type: 'Boolean', is_filterable: false },
|
|
435
|
-
{ field: :closed, type: 'Boolean', is_filterable: false },
|
|
436
438
|
{ field: :currency, type: 'String', is_filterable: false },
|
|
437
|
-
{ field: :
|
|
438
|
-
{ field: :forgiven, type: 'Boolean', is_filterable: false },
|
|
439
|
+
{ field: :due_date, type: 'Date', is_filterable: false },
|
|
439
440
|
{ field: :period_start, type: 'Date', is_filterable: false },
|
|
440
441
|
{ field: :period_end, type: 'Date', is_filterable: false },
|
|
442
|
+
{ field: :status, type: 'String', enums: ['draft', 'open', 'paid', 'uncollectible', 'void'], is_filterable: false },
|
|
441
443
|
{ field: :subtotal, type: 'Number', is_filterable: false },
|
|
442
444
|
{ field: :total, type: 'Number', is_filterable: false },
|
|
443
|
-
{ field: :application_fee, type: 'Number', is_filterable: false },
|
|
444
445
|
{ field: :tax, type: 'Number', is_filterable: false },
|
|
445
|
-
{ field: :tax_percent, type: 'Number', is_filterable: false },
|
|
446
446
|
{
|
|
447
447
|
field: :customer,
|
|
448
448
|
type: 'String',
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: forest_liana
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.4.
|
|
4
|
+
version: 5.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sandro Munda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|