summaryrefslogtreecommitdiff
path: root/db
AgeCommit message (Collapse)Author
2016-10-06Add Subscription#skip_count and #successive_skip_countBrendan Deere
Add two counter fields to subscriptions to track how many times a user has skipped their subscription. Both successive skips and cumulative skips are counted. This field will be used to enforce a maximum number of skips allowed on a subscription
2016-09-22Refactor interval to be stored more genericallyAlex Blackie
Forcing consumers of the API to calculate and provide the interval in seconds is messy and unnecessary. Instead, we can store the interval as length and units, and do the math ourselves. This makes the API much easier to use and understand.
2016-09-20Fix migration foreign keysBrendan Deere
This slipped through because I was using mysql locally. The foreign keys need to reference the complete table name and so cannot be inferred from the short column names
2016-09-08Add InstallmentDetail#messageBrendan Deere
This field is used to indicate why the last attempt at processing an installment may have succeeded or failed.
2016-09-08Add InstallmentDetail#successfulBrendan Deere
This boolean flag indicates if the last attempt at processing an installment was successful or not.
2016-09-08Remove InstallmentDetail#stateBrendan Deere
This field will be replaces with a boolean to indicate a successful installment or a failed installment. There is no need for a full state machine here
2016-08-29Rename LineItem#installments to max_installmentsBrendan Deere
To avoid confusions with the actual Installments model
2016-08-25Add #subscribable? to Spree::VariantsBrendan Deere
Out of the box the subscriptions gem supports variant level subscriptions. Variants now have a :subscribable boolean field indicating that the variant is eligible for subscriptions
2016-08-25Add InstallmentDetailsBrendan Deere
The subscription class is responsable for grouping together the information required for the system to place a subscriptions order on behalf of a specific user.
2016-08-25Add InstallmentsBrendan Deere
This class represents a single iteration of a subscription. It is fulfulled by a conmpleted order and maintains an association which tracks all attempts successful or othewise at fulfulling this installment
2016-08-25Add SubscriptionLineItemsBrendan Deere
The LineItem class is responsible for associating Line items to subscriptions. It tracks the following values: [Spree::LineItem] :spree_line_item The spree object which created this instance [SolidusSubscription::Subscription] :subscription The object responsible for grouping all information needed to create new subscription orders together [Integer] :subscribable_id The id of the object to be added to new subscription orders when they are placed [Integer] :quantity How many units of the subscribable should be included in future orders [Integer] :interval How often subscription orders should be placed [Integer] :installments How many subscription orders should be placed
2016-08-25Add SubscriptionsBrendan Deere
The subscription class is responsable for grouping together the information required for the system to place a subscriptions order on behalf of a specific user