UsageCredits::Fulfillment (2)
# {
:id => 4960,
:wallet_id => 4668,
:source_type => "Pay::Charge",
:source_id => 3349,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2026-08-24 16:30:14.017262000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 3349,
"purchased_at" => "2026-08-24T16:30:14.007Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-08-24 16:30:14.022451000 UTC +00:00,
:updated_at => 2026-08-24 16:30:14.022451000 UTC +00:00
}
# {
:id => 4961,
:wallet_id => 4668,
:source_type => "Pay::Subscription",
:source_id => 1612,
:credits_last_fulfillment => 10,
:fulfillment_type => "subscription",
:last_fulfilled_at => 2026-08-24 21:28:40.091020000 UTC +00:00,
:next_fulfillment_at => 2026-09-24 21:28:39.988944000 UTC +00:00,
:fulfillment_period => "1 month",
:stops_at => nil,
:metadata => {
"subscription_id" => 1612,
"plan" => "abcdef123456"
},
:created_at => 2026-08-24 21:28:40.106576000 UTC +00:00,
:updated_at => 2026-08-24 21:28:40.106576000 UTC +00:00
}
UsageCredits::Transaction (4)
# {
:id => 8211,
:wallet_id => 4668,
:amount => 10,
:category => "bonus",
:expires_at => 2026-08-24 16:21:14.076293000 UTC +00:00,
:fulfillment_id => nil,
:metadata => {
"reason" => "expiring_bonus_credits"
},
:created_at => 2026-08-24 16:20:14.111006000 UTC +00:00,
:updated_at => 2026-08-24 16:20:14.111006000 UTC +00:00
}
# {
:id => 8212,
:wallet_id => 4668,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 3349,
"purchased_at" => "2026-08-24T16:30:14.007Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2026-08-24T16:30:14.011Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2026-08-24 16:30:14.014316000 UTC +00:00,
:updated_at => 2026-08-24 16:30:14.014316000 UTC +00:00
}
# {
:id => 8213,
:wallet_id => 4668,
:amount => 10,
:category => "signup_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "signup"
},
:created_at => 2026-08-24 16:41:58.707933000 UTC +00:00,
:updated_at => 2026-08-24 16:41:58.707933000 UTC +00:00
}
# {
:id => 8214,
:wallet_id => 4668,
:amount => 10,
:category => "subscription_credits",
:expires_at => 2026-09-24 21:33:39.988944000 UTC +00:00,
:fulfillment_id => 4961,
:metadata => {
"subscription_id" => 1612,
"reason" => "first_cycle",
"plan" => "abcdef123456",
"fulfilled_at" => "2026-08-24T21:28:40.042Z"
},
:created_at => 2026-08-24 21:28:40.064842000 UTC +00:00,
:updated_at => 2026-08-24 21:28:40.064842000 UTC +00:00
}