UsageCredits::Fulfillment (2)
# {
:id => 4263,
:wallet_id => 4078,
:source_type => "Pay::Charge",
:source_id => 2837,
:credits_last_fulfillment => 10,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-06-17 21:05:02.040282000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2837,
"purchased_at" => "2026-06-17T21:05:02.035Z",
"purchase_type" => "credit_pack",
"pack_name" => "tiny",
"credits" => 10,
"bonus_credits" => 0,
"price_cents" => 99,
"price_currency" => "USD"
},
:created_at => 2026-06-17 21:05:02.040752000 UTC +00:00,
:updated_at => 2026-06-17 21:05:02.040752000 UTC +00:00
}
# {
:id => 4264,
:wallet_id => 4078,
:source_type => "Pay::Subscription",
:source_id => 1427,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-06-17 23:55:56.411707000 UTC +00:00,
:next_fulfillment_at => 2026-07-17 23:55:56.398678000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1427,
"plan" => "abcdef123456"
},
:created_at => 2026-06-17 23:55:56.414743000 UTC +00:00,
:updated_at => 2026-06-17 23:55:56.414743000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 7048,
:wallet_id => 4078,
:amount => 10,
:category => "bonus",
:expires_at => 2026-06-17 21:05:20.763602000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-06-17 21:04:20.768350000 UTC +00:00,
:updated_at => 2026-06-17 21:04:20.768350000 UTC +00:00
}
# {
:id => 7049,
:wallet_id => 4078,
:amount => 10,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2837,
"purchased_at" => "2026-06-17T21:05:02.035Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-06-17T21:05:02.037Z",
"purchase_type" => "credit_pack",
"pack_name" => "tiny",
"credits" => 10,
"bonus_credits" => 0,
"price_cents" => 99,
"price_currency" => "USD"
},
:created_at => 2026-06-17 21:05:02.038910000 UTC +00:00,
:updated_at => 2026-06-17 21:05:02.038910000 UTC +00:00
}
# {
:id => 7050,
:wallet_id => 4078,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-07-18 00:00:56.398678000 UTC +00:00,
:fulfillment_id => 4264,
:metadata => {
"subscription_id" => 1427,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-06-17T23:55:56.407Z"
},
:created_at => 2026-06-17 23:55:56.409120000 UTC +00:00,
:updated_at => 2026-06-17 23:55:56.409120000 UTC +00:00
}