UsageCredits::Fulfillment (2)
# {
:id => 5965,
:wallet_id => 5773,
:source_type => "Pay::Subscription",
:source_id => 1847,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-11-10 20:54:06.025833000 UTC +00:00,
:next_fulfillment_at => 2026-12-10 20:54:06.022455000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1847,
"plan" => "abcdef123456"
},
:created_at => 2026-11-10 20:54:06.026299000 UTC +00:00,
:updated_at => 2026-11-10 20:54:06.026299000 UTC +00:00
}
# {
:id => 5966,
:wallet_id => 5773,
:source_type => "Pay::Charge",
:source_id => 4119,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-11-10 22:05:00.831468000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 4119,
"purchased_at" => "2026-11-10T22:05:00.814Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-11-10 22:05:00.833355000 UTC +00:00,
:updated_at => 2026-11-10 22:05:00.833355000 UTC +00:00
}
UsageCredits::Transaction (4)
# {
:id => 9763,
:wallet_id => 5773,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2026-11-10 20:00:31.669557000 UTC +00:00,
:updated_at => 2026-11-10 20:00:31.669557000 UTC +00:00
}
# {
:id => 9764,
:wallet_id => 5773,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-12-10 20:59:06.022455000 UTC +00:00,
:fulfillment_id => 5965,
:metadata => {
"subscription_id" => 1847,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-11-10T20:54:06.023Z"
},
:created_at => 2026-11-10 20:54:06.024751000 UTC +00:00,
:updated_at => 2026-11-10 20:54:06.024751000 UTC +00:00
}
# {
:id => 9765,
:wallet_id => 5773,
:amount => 10,
:category => "bonus",
:expires_at => 2026-11-10 21:59:34.237195000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-11-10 21:58:34.253878000 UTC +00:00,
:updated_at => 2026-11-10 21:58:34.253878000 UTC +00:00
}
# {
:id => 9766,
:wallet_id => 5773,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 4119,
"purchased_at" => "2026-11-10T22:05:00.814Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-11-10T22:05:00.823Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-11-10 22:05:00.828355000 UTC +00:00,
:updated_at => 2026-11-10 22:05:00.828355000 UTC +00:00
}