UsageCredits::Fulfillment (2)
# {
:id => 3753,
:wallet_id => 3569,
:source_type => "Pay::Subscription",
:source_id => 1287,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-04-18 09:04:33.387689000 UTC +00:00,
:next_fulfillment_at => 2026-05-18 09:04:33.350495000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1287,
"plan" => "abcdef123456"
},
:created_at => 2026-04-18 09:04:33.398450000 UTC +00:00,
:updated_at => 2026-04-18 09:04:33.398450000 UTC +00:00
}
# {
:id => 3754,
:wallet_id => 3569,
:source_type => "Pay::Charge",
:source_id => 2467,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-04-18 09:11:57.321490000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2467,
"purchased_at" => "2026-04-18T09:11:57.309Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-18 09:11:57.322357000 UTC +00:00,
:updated_at => 2026-04-18 09:11:57.322357000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 6182,
:wallet_id => 3569,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-05-18 09:09:33.350495000 UTC +00:00,
:fulfillment_id => 3753,
:metadata => {
"subscription_id" => 1287,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-04-18T09:04:33.366Z"
},
:created_at => 2026-04-18 09:04:33.378720000 UTC +00:00,
:updated_at => 2026-04-18 09:04:33.378720000 UTC +00:00
}
# {
:id => 6183,
:wallet_id => 3569,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2467,
"purchased_at" => "2026-04-18T09:11:57.309Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-04-18T09:11:57.316Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-04-18 09:11:57.318760000 UTC +00:00,
:updated_at => 2026-04-18 09:11:57.318760000 UTC +00:00
}