Accrue.Test.Generators (accrue v0.2.0)

Copy Markdown View Source

StreamData generators for Phase 3 property tests (D3-81).

Gated behind Code.ensure_loaded?(StreamData) so the module only exists when the :stream_data dependency is available (i.e. :dev and :test). Host apps that pull Accrue in :prod never see this module.

Summary

Functions

ISO 4217 currency atoms covered by Phase 3 tests.

Integer amounts in minor units, up to ~$10M.

Operation IDs as used by Accrue.Actor.put_operation_id/1.

Stripe proration_behavior values.

Stripe subscription status atoms (all eight Phase 3 states).

Subject identifiers for idempotency key derivation.

Functions

currency()

ISO 4217 currency atoms covered by Phase 3 tests.

money_amount_minor()

Integer amounts in minor units, up to ~$10M.

operation_id()

Operation IDs as used by Accrue.Actor.put_operation_id/1.

proration_behavior()

Stripe proration_behavior values.

stripe_status()

Stripe subscription status atoms (all eight Phase 3 states).

subject_id()

Subject identifiers for idempotency key derivation.