UsageCredits::Fulfillment (2)
# {
:id => 5088,
:wallet_id => 4831,
:source_type => "Pay::Subscription",
:source_id => 1639,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-09-08 16:07:19.206633000 UTC +00:00,
:next_fulfillment_at => 2026-10-08 16:07:19.169693000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1639,
"plan" => "abcdef123456"
},
:created_at => 2026-09-08 16:07:19.211857000 UTC +00:00,
:updated_at => 2026-09-08 16:07:19.211857000 UTC +00:00
}
# {
:id => 5089,
:wallet_id => 4831,
:source_type => "Pay::Charge",
:source_id => 3450,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-09-09 00:29:24.942936000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3450,
"purchased_at" => "2026-09-09T00:29:24.857Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-09-09 00:29:24.951495000 UTC +00:00,
:updated_at => 2026-09-09 00:29:24.951495000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 8398,
:wallet_id => 4831,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-10-08 16:12:19.169693000 UTC +00:00,
:fulfillment_id => 5088,
:metadata => {
"subscription_id" => 1639,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-09-08T16:07:19.182Z"
},
:created_at => 2026-09-08 16:07:19.198638000 UTC +00:00,
:updated_at => 2026-09-08 16:07:19.198638000 UTC +00:00
}
# {
:id => 8399,
:wallet_id => 4831,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3450,
"purchased_at" => "2026-09-09T00:29:24.857Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-09-09T00:29:24.895Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-09-09 00:29:24.923399000 UTC +00:00,
:updated_at => 2026-09-09 00:29:24.923399000 UTC +00:00
}