- new command-line option
--expand
provides support for Stripe API expansions- https://stripe.com/docs/api#expanding_objects
- stripe-ruby dependancy updated to version 1.24.0
- bug fixes
- it was previously possible for certain command-line arguments to be passed through to the Stripe API resulting in API exceptions.
- creating tokens would fail for bank account type
- new configuration option to strip nil-valued attributes from command-line output
- use on command-line with global flag
--strip-nils
- or set in config-file with
strip_nils=true
- override config-file setting with global command-line flag
--no-strip-nils
- use on command-line with global flag
- top-level
invoice_items
command- w/ actions:
find
,list
,create
, &delete
- w/ actions:
- new
dates
config option for specifying how dates should be displayed (utc
,unix
, orlocal
)
- better descriptions for ALL operations
- Bug fix
- update
transfers
command options--statement-description
--bank-account
--card
- new
dollar_amounts
config setting for toggling expected currency units between dollars and cents --no-dollar-amounts
global option flag--dollar-amounts
global option flag
- extensive option alias support throughout, with more on the way
- more extensive documentation in README, including subcommand descriptions. (still incomplete)
- add TOC in README
- token creation correctly handles credit card params in any combination of individual options and --card=key:value pairs and still collects any missing params via interactive menu.
- any operation that accepts a credit card ID or token also accepts credit card parameters directly and incorporates the credit card interactive menu.
- improved option descriptions in all operations of all commands
- tack '/Stripe-CLI vX.X.X' onto user-agent header of every api request
- Disclaimer: though I believe it to be completely harmless in this instance, this feature involves monkey-patching the
Stripe
module with analias_method_chain
style wrapper aroundStripe#request_headers
- The Stripe Dashboard depends on the user-agent to distinguish the source of each api request
- this helps differentiate between requests made by application code and those made using the Stripe-CLI gem
- Disclaimer: though I believe it to be completely harmless in this instance, this feature involves monkey-patching the
- fix unreported bug where Stripe::ListObjects were not displayed as simple arrays by awesome_print
- only present in conjunction with stripe-ruby version 1.14 and up
- due to a change in stripe-ruby by which
Stripe::StripeObject#to_hash
now calls itself recursivly - resort to using
Object#instance_variable_get
to peek at a StripeObject's@values
variable which already contains a hash of its attributes- I am open to suggestions for a less brittle solution
- Refunds as a top-level command
- subscriptions
reactivate
subcommand --at-period-end
flag added tosubscriptions cancel
--refund-application-fee
flag added tocharges refund
- add
--metadata
to the remaining subcommands that need it
--receipt_email
and--statement_description
options added tocharges create
- top-level
version
command for printing current gem version- hidden from standard
help
banner - aliased as
-v
and--version
- hidden from standard
- per project config files (.stripecli)
- credit cards as a top-level command
- for customers and recipients
- w/ actions: find, list, create, & delete
- introduce multiple subscriptions per customer
- w/ actions: cancel, create, find, & list
- introduce optional cursor-based pagination options to all
list
operations