UsageCredits::Fulfillment (2)
# {
:id => 3165,
:wallet_id => 3097,
:source_type => "Pay::Subscription",
:source_id => 1124,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-02-04 18:31:06.037918000 UTC +00:00,
:next_fulfillment_at => 2026-03-04 18:31:06.029544000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1124,
"plan" => "abcdef123456"
},
:created_at => 2026-02-04 18:31:06.039059000 UTC +00:00,
:updated_at => 2026-02-04 18:31:06.039059000 UTC +00:00
}
# {
:id => 3166,
:wallet_id => 3097,
:source_type => "Pay::Charge",
:source_id => 2042,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-02-04 19:59:32.497959000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 2042,
"purchased_at" => "2026-02-04T19:59:32.485Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-02-04 19:59:32.498639000 UTC +00:00,
:updated_at => 2026-02-04 19:59:32.498639000 UTC +00:00
}
UsageCredits::Transaction (2)
# {
:id => 5202,
:wallet_id => 3097,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-03-04 18:36:06.029544000 UTC +00:00,
:fulfillment_id => 3165,
:metadata => {
"subscription_id" => 1124,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-02-04T18:31:06.034Z"
},
:created_at => 2026-02-04 18:31:06.035542000 UTC +00:00,
:updated_at => 2026-02-04 18:31:06.035542000 UTC +00:00
}
# {
:id => 5203,
:wallet_id => 3097,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 2042,
"purchased_at" => "2026-02-04T19:59:32.485Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-02-04T19:59:32.493Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-02-04 19:59:32.495653000 UTC +00:00,
:updated_at => 2026-02-04 19:59:32.495653000 UTC +00:00
}