UsageCredits::Fulfillment (2)
# {
:id => 4832,
:wallet_id => 4550,
:source_type => "Pay::Subscription",
:source_id => 1579,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-08-12 22:51:23.633460000 UTC +00:00,
:next_fulfillment_at => 2026-09-12 22:51:23.617683000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1579,
"plan" => "abcdef123456"
},
:created_at => 2026-08-12 22:51:23.636427000 UTC +00:00,
:updated_at => 2026-08-12 22:51:23.636427000 UTC +00:00
}
# {
:id => 4833,
:wallet_id => 4550,
:source_type => "Pay::Charge",
:source_id => 3254,
:credits_last_fulfillment => 10,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-08-12 23:52:27.324206000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3254,
"purchased_at" => "2026-08-12T23:52:27.314Z",
"purchase_type" => "credit_pack",
"pack_name" => "tiny",
"credits" => 10,
"bonus_credits" => 0,
"price_cents" => 99,
"price_currency" => "USD"
},
:created_at => 2026-08-12 23:52:27.324657000 UTC +00:00,
:updated_at => 2026-08-12 23:52:27.324657000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 8015,
:wallet_id => 4550,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-09-12 22:56:23.617683000 UTC +00:00,
:fulfillment_id => 4832,
:metadata => {
"subscription_id" => 1579,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-08-12T22:51:23.627Z"
},
:created_at => 2026-08-12 22:51:23.629374000 UTC +00:00,
:updated_at => 2026-08-12 22:51:23.629374000 UTC +00:00
}
# {
:id => 8016,
:wallet_id => 4550,
:amount => 10,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3254,
"purchased_at" => "2026-08-12T23:52:27.314Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-08-12T23:52:27.318Z",
"purchase_type" => "credit_pack",
"pack_name" => "tiny",
"credits" => 10,
"bonus_credits" => 0,
"price_cents" => 99,
"price_currency" => "USD"
},
:created_at => 2026-08-12 23:52:27.321655000 UTC +00:00,
:updated_at => 2026-08-12 23:52:27.321655000 UTC +00:00
}