storj/scripts/test-billing.sh
Kaloyan Raev edfd3d7661 satellite/payments: delete credits and credits_spendings db tables
Jira: https://storjlabs.atlassian.net/browse/USR-822

This the last step of dropping these 2 db tables. It also deletes all
code associate with them.

Change-Id: I8be840dc2a7be255cf6308c9434b729fe4d9391e
2020-07-30 12:19:57 +03:00

9 lines
478 B
Bash
Executable File

#!/usr/bin/env bash
set -ueo pipefail
PERIOD=$(date --date='-1 month' +%m/%Y)
satellite --config-dir $SATELLITE_0_DIR billing prepare-invoice-records $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-items $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-coupons $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing create-invoices $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing finalize-invoices $PERIOD