UsageCredits::Fulfillment (2)
# {
:id => 6142,
:wallet_id => 5900,
:source_type => "Pay::Subscription",
:source_id => 1893,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-11-22 11:18:48.584041000 UTC +00:00,
:next_fulfillment_at => 2026-12-22 11:18:48.580444000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1893,
"plan" => "abcdef123456"
},
:created_at => 2026-11-22 11:18:48.584573000 UTC +00:00,
:updated_at => 2026-11-22 11:18:48.584573000 UTC +00:00
}
# {
:id => 6143,
:wallet_id => 5900,
:source_type => "Pay::Charge",
:source_id => 4250,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-11-22 12:28:32.460582000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 4250,
"purchased_at" => "2026-11-22T12:28:32.456Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-11-22 12:28:32.460962000 UTC +00:00,
:updated_at => 2026-11-22 12:28:32.460962000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 10042,
:wallet_id => 5900,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-12-22 11:23:48.580444000 UTC +00:00,
:fulfillment_id => 6142,
:metadata => {
"subscription_id" => 1893,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-11-22T11:18:48.581Z"
},
:created_at => 2026-11-22 11:18:48.582684000 UTC +00:00,
:updated_at => 2026-11-22 11:18:48.582684000 UTC +00:00
}
# {
:id => 10043,
:wallet_id => 5900,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 4250,
"purchased_at" => "2026-11-22T12:28:32.456Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-11-22T12:28:32.458Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-11-22 12:28:32.459543000 UTC +00:00,
:updated_at => 2026-11-22 12:28:32.459543000 UTC +00:00
}