Sylvain
def0778a4d
basic inteface to retrieve payment schedules
2021-01-25 17:42:30 +01:00
Sylvain
01a0612a4b
fix create invoice for each due date
2021-01-25 14:37:07 +01:00
Sylvain
26636254bd
generate the invoices for each schedule item and notify if something goes wrong
2021-01-25 13:05:27 +01:00
Sylvain
ecdec70755
WIP: generate invoices for each payment schedule item
2021-01-20 17:00:23 +01:00
Sylvain
8adb569891
fix payment schedule total
2021-01-20 13:47:29 +01:00
Sylvain
e5439901d6
fix generate payment schedule pdf + send by mail
...
TODO: total amount does not match with sum of all lines
- generate invoices for each PS-item
- interface to access the payment schedules
2021-01-19 16:47:51 +01:00
Sylvain
12e99f4c9c
generate payment schedule pdf
2021-01-04 18:12:44 +01:00
Sylvain
37af665991
save subcription id in payment schedule item
2021-01-04 17:03:44 +01:00
Sylvain
8b13ae45ac
all tests passing
2021-01-04 16:26:52 +01:00
Sylvain
728ae4310c
improved testing of payment schedules + some fixes
...
TODO: fix the test
rails test test/integration/reservations/create_test.rb
Reservations::CreateTest#test_user_reserves_a_machine_and_renew_a_subscription_with_payment_schedule_and_coupon_and_wallet [test/integration/reservations/create_test.rb:841]
Minitest::Assertion: Expected: "stripe"
Actual: nil
2020-12-30 18:43:33 +01:00
Sylvain
d891690ab8
Default texts for the login modal
2020-12-30 15:37:15 +01:00
Sylvain
dc00df4afc
fix stripe subscription w/ coupon + wallet
2020-12-30 12:19:33 +01:00
Sylvain
b8319a5124
handle percent coupons w/ stripe subscriptions
2020-12-30 10:17:39 +01:00
Sylvain
ffc3051444
TODO: handle coupon w/ stripe subscription
2020-12-29 19:08:43 +01:00
Sylvain
fba5f57a1c
handle wallet transaction w/ stripe subscription
2020-12-29 18:55:00 +01:00
Sylvain
f4f1464826
fix wallet-info component to use cartItems
2020-12-29 17:32:00 +01:00
Sylvain
75e0fece13
try with NBSP
2020-12-29 13:35:14 +01:00
Sylvain
7fc2190c49
Merge branch 'monthly-payment' into staging
2020-12-29 13:23:51 +01:00
Sylvain
c78b052419
try to keep indentation
2020-12-29 13:23:41 +01:00
Sylvain
d097005378
Merge branch 'monthly-payment' into staging
2020-12-29 13:19:44 +01:00
Sylvain
c07aa1dcea
add linebreaks in architectur doc
2020-12-29 13:19:29 +01:00
Sylvain
3c5103103e
Merge branch 'monthly-payment' into staging
2020-12-29 13:14:19 +01:00
Sylvain
1f873979f3
architecture documentation
2020-12-29 13:13:48 +01:00
Sylvain
8a808dbb2f
improve testing reservation w/ payment schedule
2020-12-29 11:33:38 +01:00
Sylvain
abe1619392
fix book reservation+subscription
2020-12-29 11:27:59 +01:00
Sylvain
feeed2f450
fix take a reservation + subscription
...
FIXME:
ActionView::Template::Error (undefined method `iso8601' for nil:NilClass)
Callstack:
app/views/api/reservations/show.json.jbuilder:40:in `_app_views_api_reservations_show_json_jbuilder'
app/controllers/api/payments_controller.rb:91:in `confirm_payment_schedule'
2020-12-28 18:30:27 +01:00
Sylvain
3e4892d3a5
WIP: creating payment schedule workers
...
see TODO in app/workers/payment_schedule*
2020-12-23 16:56:19 +01:00
Sylvain
65277800e2
fix creation subcription on stripe
2020-12-23 16:25:24 +01:00
Sylvain
f661428db2
better error handling in stripe::subscription creation process
2020-12-23 15:29:56 +01:00
Sylvain
32b0222da5
save payment schedules PDF to a persistant volume storage
2020-12-22 16:39:37 +01:00
Sylvain
bbf88846dd
refactored Invoice & PaymentSchedule to use inheritance
2020-12-22 14:43:08 +01:00
Sylvain
6fa9780ad5
refactor chainable/footprint protected models to use inheritance
2020-12-22 09:53:41 +01:00
Sylvain
d3a41903cd
WIP: exclude invoice_id from footprint in payment_schedule_item
2020-12-21 17:37:58 +01:00
Sylvain
3541688c03
Merge branch 'monthly-payment' into staging
2020-12-21 16:34:20 +01:00
Sylvain
609d19e5d1
refactored subscription process + renew (update) subscription/ offre free days
2020-12-21 16:12:34 +01:00
Sylvain
e0ac9d1ac3
Eslint the frontend members controllers
2020-12-21 14:26:38 +01:00
Sylvain
a4131e4d5c
fixed new reservation process
2020-12-21 12:02:59 +01:00
Sylvain
40c78974b8
refactoring of reservation:pay_and_save
...
TODO: debug with tests,
refactor subscription:pay_and_save on the same template
2020-12-16 18:33:43 +01:00
Sylvain
6c8d65fba1
test reservation with schedule by admin
2020-12-15 17:14:58 +01:00
Sylvain
a5e48fa379
test subscription with schedule by admin
2020-12-15 17:01:54 +01:00
Sylvain
e3a81f6dbe
test reservation with schedule by user
2020-12-15 16:53:11 +01:00
Sylvain
ccff463165
test subscription with schedule by user
2020-12-15 15:48:13 +01:00
Sylvain
908ccf5bab
handle reservations+subscription w/ schedule
...
integration testing for payment schedule
debug reservation process
2020-12-14 17:42:23 +01:00
Sylvain
2677b18b97
Merge branch 'monthly-payment' into staging
2020-12-09 16:48:04 +01:00
Sylvain
c3c881d2a8
process the schedule to the stripe subscription
...
- only for subscriptions for now
- TODO: reservations (see app/services/reservations/reserv.rb:13)
2020-12-09 16:47:51 +01:00
Sylvain
a20be8ecb2
display legal agreement
2020-12-09 12:51:06 +01:00
Sylvain
66c205d0ed
API error handling
2020-12-09 11:35:49 +01:00
Sylvain
8e8fc9b682
validate reservation/subscription after payment schedule creation
2020-12-08 17:30:33 +01:00
Sylvain
1d64c517c9
create stripe's paymentIntent
...
associate the paymentMethod (the card) with the customer (the user)
for futur usages in subscriptions
2020-12-08 12:26:03 +01:00
Sylvain
b6240c5046
handle after payment method was created
2020-12-07 17:13:05 +01:00