UsageCredits::Fulfillment (2)
# {
:id => 4506,
:wallet_id => 4290,
:source_type => "Pay::Charge",
:source_id => 3013,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-07-16 18:18:37.549821000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3013,
"purchased_at" => "2026-07-16T18:18:37.540Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-07-16 18:18:37.550606000 UTC +00:00,
:updated_at => 2026-07-16 18:18:37.550606000 UTC +00:00
}
# {
:id => 4507,
:wallet_id => 4290,
:source_type => "Pay::Subscription",
:source_id => 1494,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-07-16 18:29:35.221768000 UTC +00:00,
:next_fulfillment_at => 2026-08-16 18:29:35.207025000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1494,
"plan" => "abcdef123456"
},
:created_at => 2026-07-16 18:29:35.223250000 UTC +00:00,
:updated_at => 2026-07-16 18:29:35.223250000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 7450,
:wallet_id => 4290,
:amount => 10,
:category => "bonus",
:expires_at => 2026-07-16 18:06:51.065975000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-07-16 18:05:51.074033000 UTC +00:00,
:updated_at => 2026-07-16 18:05:51.074033000 UTC +00:00
}
# {
:id => 7451,
:wallet_id => 4290,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3013,
"purchased_at" => "2026-07-16T18:18:37.540Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-07-16T18:18:37.544Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-07-16 18:18:37.546714000 UTC +00:00,
:updated_at => 2026-07-16 18:18:37.546714000 UTC +00:00
}
# {
:id => 7452,
:wallet_id => 4290,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-08-16 18:34:35.207025000 UTC +00:00,
:fulfillment_id => 4507,
:metadata => {
"subscription_id" => 1494,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-07-16T18:29:35.214Z"
},
:created_at => 2026-07-16 18:29:35.217243000 UTC +00:00,
:updated_at => 2026-07-16 18:29:35.217243000 UTC +00:00
}