UsageCredits::Fulfillment (2)
# {
:id => 4108,
:wallet_id => 3938,
:source_type => "Pay::Subscription",
:source_id => 1389,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-06-06 21:01:38.686242000 UTC +00:00,
:next_fulfillment_at => 2026-07-06 21:01:38.681172000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1389,
"plan" => "abcdef123456"
},
:created_at => 2026-06-06 21:01:38.686927000 UTC +00:00,
:updated_at => 2026-06-06 21:01:38.686927000 UTC +00:00
}
# {
:id => 4109,
:wallet_id => 3938,
:source_type => "Pay::Charge",
:source_id => 2720,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-06-06 21:12:15.278483000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2720,
"purchased_at" => "2026-06-06T21:12:15.270Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-06-06 21:12:15.278999000 UTC +00:00,
:updated_at => 2026-06-06 21:12:15.278999000 UTC +00:00
}
UsageCredits::Transaction (4)
# {
:id => 6782,
:wallet_id => 3938,
:amount => 10,
:category => "bonus",
:expires_at => 2026-06-06 10:33:05.005694000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-06-06 10:32:05.014059000 UTC +00:00,
:updated_at => 2026-06-06 10:32:05.014059000 UTC +00:00
}
# {
:id => 6783,
:wallet_id => 3938,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-07-06 21:06:38.681172000 UTC +00:00,
:fulfillment_id => 4108,
:metadata => {
"subscription_id" => 1389,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-06-06T21:01:38.683Z"
},
:created_at => 2026-06-06 21:01:38.684792000 UTC +00:00,
:updated_at => 2026-06-06 21:01:38.684792000 UTC +00:00
}
# {
:id => 6784,
:wallet_id => 3938,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2720,
"purchased_at" => "2026-06-06T21:12:15.270Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-06-06T21:12:15.273Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-06-06 21:12:15.275217000 UTC +00:00,
:updated_at => 2026-06-06 21:12:15.275217000 UTC +00:00
}
# {
:id => 6785,
:wallet_id => 3938,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2026-06-06 21:22:50.988451000 UTC +00:00,
:updated_at => 2026-06-06 21:22:50.988451000 UTC +00:00
}