UsageCredits::Fulfillment (1)
# {
:id => 3591,
:wallet_id => 3429,
:source_type => "Pay::Charge",
:source_id => 2345,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-04-02 17:45:39.340371000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2345,
"purchased_at" => "2026-04-02T17:45:39.321Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-02 17:45:39.343914000 UTC +00:00,
:updated_at => 2026-04-02 17:45:39.343914000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 5907,
:wallet_id => 3429,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2345,
"purchased_at" => "2026-04-02T17:45:39.321Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-04-02T17:45:39.326Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-02 17:45:39.336436000 UTC +00:00,
:updated_at => 2026-04-02 17:45:39.336436000 UTC +00:00
}
# {
:id => 5908,
:wallet_id => 3429,
:amount => 10,
:category => "bonus",
:expires_at => 2026-04-02 18:32:17.164790000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-04-02 18:31:17.170243000 UTC +00:00,
:updated_at => 2026-04-02 18:31:17.170243000 UTC +00:00
}