UsageCredits::Fulfillment (2)
# {
:id => 4818,
:wallet_id => 4538,
:source_type => "Pay::Charge",
:source_id => 3244,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-08-11 15:00:12.454545000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3244,
"purchased_at" => "2026-08-11T15:00:12.445Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-08-11 15:00:12.455171000 UTC +00:00,
:updated_at => 2026-08-11 15:00:12.455171000 UTC +00:00
}
# {
:id => 4819,
:wallet_id => 4538,
:source_type => "Pay::Subscription",
:source_id => 1575,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-08-11 18:22:05.206158000 UTC +00:00,
:next_fulfillment_at => 2026-09-11 18:22:05.140522000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1575,
"plan" => "abcdef123456"
},
:created_at => 2026-08-11 18:22:05.218679000 UTC +00:00,
:updated_at => 2026-08-11 18:22:05.218679000 UTC +00:00
}
UsageCredits::Transaction (5)
# {
:id => 7989,
:wallet_id => 4538,
:amount => 10,
:category => "bonus",
:expires_at => 2026-08-11 15:01:11.945238000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-08-11 15:00:11.958156000 UTC +00:00,
:updated_at => 2026-08-11 15:00:11.958156000 UTC +00:00
}
# {
:id => 7990,
:wallet_id => 4538,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2026-08-11 15:00:12.369559000 UTC +00:00,
:updated_at => 2026-08-11 15:00:12.369559000 UTC +00:00
}
# {
:id => 7991,
:wallet_id => 4538,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3244,
"purchased_at" => "2026-08-11T15:00:12.445Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-08-11T15:00:12.449Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-08-11 15:00:12.451808000 UTC +00:00,
:updated_at => 2026-08-11 15:00:12.451808000 UTC +00:00
}
# {
:id => 7992,
:wallet_id => 4538,
:amount => 10,
:category => "signup_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "signup"
},
:created_at => 2026-08-11 15:00:12.716871000 UTC +00:00,
:updated_at => 2026-08-11 15:00:12.716871000 UTC +00:00
}
# {
:id => 7993,
:wallet_id => 4538,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-09-11 18:27:05.140522000 UTC +00:00,
:fulfillment_id => 4819,
:metadata => {
"subscription_id" => 1575,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-08-11T18:22:05.179Z"
},
:created_at => 2026-08-11 18:22:05.195660000 UTC +00:00,
:updated_at => 2026-08-11 18:22:05.195660000 UTC +00:00
}