UsageCredits::Fulfillment (2)
# {
:id => 5318,
:wallet_id => 5068,
:source_type => "Pay::Charge",
:source_id => 3625,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-09-25 16:55:26.440521000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3625,
"purchased_at" => "2026-09-25T16:55:26.437Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-09-25 16:55:26.440869000 UTC +00:00,
:updated_at => 2026-09-25 16:55:26.440869000 UTC +00:00
}
# {
:id => 5319,
:wallet_id => 5068,
:source_type => "Pay::Subscription",
:source_id => 1694,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-09-25 18:12:05.750701000 UTC +00:00,
:next_fulfillment_at => 2026-10-25 18:12:05.745896000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1694,
"plan" => "abcdef123456"
},
:created_at => 2026-09-25 18:12:05.751180000 UTC +00:00,
:updated_at => 2026-09-25 18:12:05.751180000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 8759,
:wallet_id => 5068,
:amount => 10,
:category => "bonus",
:expires_at => 2026-09-25 16:46:02.227848000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-09-25 16:45:02.234049000 UTC +00:00,
:updated_at => 2026-09-25 16:45:02.234049000 UTC +00:00
}
# {
:id => 8760,
:wallet_id => 5068,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3625,
"purchased_at" => "2026-09-25T16:55:26.437Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-09-25T16:55:26.438Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2026-09-25 16:55:26.439466000 UTC +00:00,
:updated_at => 2026-09-25 16:55:26.439466000 UTC +00:00
}
# {
:id => 8761,
:wallet_id => 5068,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-10-25 18:17:05.745896000 UTC +00:00,
:fulfillment_id => 5319,
:metadata => {
"subscription_id" => 1694,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-09-25T18:12:05.748Z"
},
:created_at => 2026-09-25 18:12:05.749650000 UTC +00:00,
:updated_at => 2026-09-25 18:12:05.749650000 UTC +00:00
}