storj/scripts/test-billing.sh
Michal Niewrzal 7a0778fac4 cmd/satellite: choose correct Stripe client also for commands
Commands were using always real Strip client but for e.g. storj-sim
should use mock by default.

Change-Id: Ifd3c02028312d2e8d6d73d67b2dadadcd69077c8
2020-06-15 11:03:14 +00:00

10 lines
558 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-invoice-credits $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing create-invoices $PERIOD
satellite --config-dir $SATELLITE_0_DIR billing finalize-invoices $PERIOD