UsageCredits::Fulfillment (2)
# {
:id => 4042,
:wallet_id => 3874,
:source_type => "Pay::Charge",
:source_id => 2675,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-05-22 18:22:35.283854000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2675,
"purchased_at" => "2026-05-22T18:22:35.277Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-05-22 18:22:35.284462000 UTC +00:00,
:updated_at => 2026-05-22 18:22:35.284462000 UTC +00:00
}
# {
:id => 4043,
:wallet_id => 3874,
:source_type => "Pay::Subscription",
:source_id => 1368,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-05-22 18:33:25.004178000 UTC +00:00,
:next_fulfillment_at => 2026-06-22 18:33:24.992998000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1368,
"plan" => "abcdef123456"
},
:created_at => 2026-05-22 18:33:25.005188000 UTC +00:00,
:updated_at => 2026-05-22 18:33:25.005188000 UTC +00:00
}
UsageCredits::Transaction (4)
# {
:id => 6668,
:wallet_id => 3874,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2026-05-22 18:13:44.015287000 UTC +00:00,
:updated_at => 2026-05-22 18:13:44.015287000 UTC +00:00
}
# {
:id => 6669,
:wallet_id => 3874,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2675,
"purchased_at" => "2026-05-22T18:22:35.277Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-05-22T18:22:35.280Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-05-22 18:22:35.282047000 UTC +00:00,
:updated_at => 2026-05-22 18:22:35.282047000 UTC +00:00
}
# {
:id => 6670,
:wallet_id => 3874,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-06-22 18:38:24.992998000 UTC +00:00,
:fulfillment_id => 4043,
:metadata => {
"subscription_id" => 1368,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-05-22T18:33:24.999Z"
},
:created_at => 2026-05-22 18:33:25.001586000 UTC +00:00,
:updated_at => 2026-05-22 18:33:25.001586000 UTC +00:00
}
# {
:id => 6671,
:wallet_id => 3874,
:amount => 10,
:category => "bonus",
:expires_at => 2026-05-22 18:40:18.859931000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-05-22 18:39:18.864651000 UTC +00:00,
:updated_at => 2026-05-22 18:39:18.864651000 UTC +00:00
}