UsageCredits::Fulfillment (2)
# {
:id => 4228,
:wallet_id => 4033,
:source_type => "Pay::Charge",
:source_id => 2810,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-06-13 15:19:25.255925000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2810,
"purchased_at" => "2026-06-13T15:19:25.250Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-06-13 15:19:25.256357000 UTC +00:00,
:updated_at => 2026-06-13 15:19:25.256357000 UTC +00:00
}
# {
:id => 4229,
:wallet_id => 4033,
:source_type => "Pay::Subscription",
:source_id => 1419,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-06-13 16:01:31.061231000 UTC +00:00,
:next_fulfillment_at => 2026-07-13 16:01:31.048555000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1419,
"plan" => "abcdef123456"
},
:created_at => 2026-06-13 16:01:31.062158000 UTC +00:00,
:updated_at => 2026-06-13 16:01:31.062158000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 6988,
:wallet_id => 4033,
:amount => 10,
:category => "bonus",
:expires_at => 2026-06-13 13:41:53.125684000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-06-13 13:40:53.131471000 UTC +00:00,
:updated_at => 2026-06-13 13:40:53.131471000 UTC +00:00
}
# {
:id => 6989,
:wallet_id => 4033,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2810,
"purchased_at" => "2026-06-13T15:19:25.250Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-06-13T15:19:25.252Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-06-13 15:19:25.254031000 UTC +00:00,
:updated_at => 2026-06-13 15:19:25.254031000 UTC +00:00
}
# {
:id => 6990,
:wallet_id => 4033,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-07-13 16:06:31.048555000 UTC +00:00,
:fulfillment_id => 4229,
:metadata => {
"subscription_id" => 1419,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-06-13T16:01:31.056Z"
},
:created_at => 2026-06-13 16:01:31.058569000 UTC +00:00,
:updated_at => 2026-06-13 16:01:31.058569000 UTC +00:00
}