UsageCredits::Fulfillment (2)
# {
:id => 3847,
:wallet_id => 3682,
:source_type => "Pay::Subscription",
:source_id => 1314,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-04-30 20:14:31.178087000 UTC +00:00,
:next_fulfillment_at => 2026-05-30 20:14:31.170663000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1314,
"plan" => "abcdef123456"
},
:created_at => 2026-04-30 20:14:31.178927000 UTC +00:00,
:updated_at => 2026-04-30 20:14:31.178927000 UTC +00:00
}
# {
:id => 3848,
:wallet_id => 3682,
:source_type => "Pay::Charge",
:source_id => 2534,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-04-30 20:19:12.226285000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2534,
"purchased_at" => "2026-04-30T20:19:12.218Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-30 20:19:12.227339000 UTC +00:00,
:updated_at => 2026-04-30 20:19:12.227339000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 6334,
:wallet_id => 3682,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2026-04-30 20:12:29.537786000 UTC +00:00,
:updated_at => 2026-04-30 20:12:29.537786000 UTC +00:00
}
# {
:id => 6335,
:wallet_id => 3682,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-05-30 20:19:31.170663000 UTC +00:00,
:fulfillment_id => 3847,
:metadata => {
"subscription_id" => 1314,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-04-30T20:14:31.173Z"
},
:created_at => 2026-04-30 20:14:31.175835000 UTC +00:00,
:updated_at => 2026-04-30 20:14:31.175835000 UTC +00:00
}
# {
:id => 6336,
:wallet_id => 3682,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2534,
"purchased_at" => "2026-04-30T20:19:12.218Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-04-30T20:19:12.222Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-30 20:19:12.224513000 UTC +00:00,
:updated_at => 2026-04-30 20:19:12.224513000 UTC +00:00
}