UsageCredits::Fulfillment (2)
# {
:id => 5614,
:wallet_id => 5363,
:source_type => "Pay::Subscription",
:source_id => 1760,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-10-21 16:19:55.653690000 UTC +00:00,
:next_fulfillment_at => 2026-11-21 16:19:55.650829000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1760,
"plan" => "abcdef123456"
},
:created_at => 2026-10-21 16:19:55.654066000 UTC +00:00,
:updated_at => 2026-10-21 16:19:55.654066000 UTC +00:00
}
# {
:id => 5617,
:wallet_id => 5363,
:source_type => "Pay::Charge",
:source_id => 3856,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-10-22 04:19:28.833341000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3856,
"purchased_at" => "2026-10-22T04:19:28.828Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-10-22 04:19:28.833665000 UTC +00:00,
:updated_at => 2026-10-22 04:19:28.833665000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 9229,
:wallet_id => 5363,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-11-21 16:24:55.650829000 UTC +00:00,
:fulfillment_id => 5614,
:metadata => {
"subscription_id" => 1760,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-10-21T16:19:55.651Z"
},
:created_at => 2026-10-21 16:19:55.652607000 UTC +00:00,
:updated_at => 2026-10-21 16:19:55.652607000 UTC +00:00
}
# {
:id => 9233,
:wallet_id => 5363,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3856,
"purchased_at" => "2026-10-22T04:19:28.828Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-10-22T04:19:28.831Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-10-22 04:19:28.832421000 UTC +00:00,
:updated_at => 2026-10-22 04:19:28.832421000 UTC +00:00
}