Packaged
Created by: nickmealey
-
Added in state machine from other gold-prototype project
-
Moved logic from Gilded module to own class called "Billing".
Instead of including a module that provides functionality to a certain class, we're providing a class to hook up to a related class through an association.
-
Added option to change the class which Billing is associated with
-
Pulled out foreign key setup into its own migration.
-
Cleaned up previous migrations
-
Set @tier instance variable when setting tier in Billing
I forgot to apply this and push before having Nick start working on this.
-
Update README.md with
Billing
class -
Force Statesman to persist transitions via ActiveRecord
Otherwise, it assumes that the transitions will be stored in-memory.
-
Correct the Transition model to reference Billing instead of Shop
This change modifies the existing migration, which I know is taboo. However, we are actively developing this and it isn't deployed anywhere yet.
Additionally, fix test/dummy/db/schema.rb to contain the correct columns for the
shops
table. -
Add webmock to dev dependencies
-
Pull "issue credit" operation from the prototype
Rearrange it to fit within the new gem structure.
-
Add Faker as a dev dependency
-
Create a working success case test for IssueCreditOp
-
Pull some common pieces out into ShopifyInteractions
This is a new module to make testing interactions with the Shopify API easier.
-
Moved files into the Gold namespace
-
Add tests, write documentation, clean up test code
-
Fix bugs in IssueCreditOp and Gold::Machine
-
Rename 'ops' to 'operations'
This matches Nick's naming and better describes what these are.
-
Split ShopifyInteractions out into its own file
-
Clean up Rubocop warnings in the new test code
-
Moved outcomes into lib folder
-
Moved outcomes into its own module
-
Added test for max attempts failure for issue credits
-
Fixed constant naming in test
-
Added in accept or deny charges op with test
-
Added retry for activating charge and test
-
Finished writing test for AcceptOrDenyCharge