-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated plan * idempotent notes * Break out prorated order amendment test * Plan update * Moving stripe price precision to a constant * Core proration use case tests * Initial working version of amendment helper logic * Memoized price helper * Only set sub term on products when we know it matches the billing frequency * Initial take at add_invoice_items generation * Improved price multiplier calculation * todo docs update * Allow error context to be called w/o state * Some more debugging functions from working with cloudflare * Calculate billing periods I have a feeling we don't need this because of the cotermed thing * Docs improvement * Test expansion for standard amendment tests * Refactoring CommonHelpers to namespace behind Critic * Test factory updates, including lots of Stripe factories * Using new stripe id generator * Fixing bad boolean in order amendment logic * Another round of expansions on the prorated order amendment logic * Create customer with card helper * Fixing price test comparison * Fix error context typing error * Typing fixes * Fixing error context references * Better logging on sync record creation * Adjust order failures for improved order logic * Fix sub term through quote error test * Gracefully handle terminations We can't prorate these! * Logs so we know something isn't stalled out * Centralize price equality logic, normalize decimal values * extract out backend proration test and temp skipping it * Another round of price equality fixes * Fix for multiple quantity test * Accept price param in metered billing * Add idempotency keys to cancellation & update calls * Use translate_product to get SF context * Users could map invalid field values, use raw error * Fix sync record tests * Typing fix
- Loading branch information
1 parent
1d981a5
commit d7129fd
Showing
28 changed files
with
979 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.