-
-
Save mjallday/ea0bbba8642364ee11e1 to your computer and use it in GitHub Desktop.
Balanced - Filter by meta fields (Ruby)
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
Find By Email | |
Balanced::Customer.where(:email => '[email protected]').all | |
Find By Meta | |
Balanced::Debit.where('meta.orderid' => '12345').all | |
Combo | |
Balanced::Debit.where('meta.order' => '12345', "status"=>"succeeded").all | |
Find By Date | |
Balanced::Debit.where('created_at[>=]'=> '2014-03-10 00:00:00').all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment