UsageCredits::Fulfillment (2)
# {
:id => 383,
:wallet_id => 124,
:source_type => "Pay::Charge",
:source_id => 314,
:credits_last_fulfillment => 5100,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2025-02-20 22:23:41.110498000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 314,
"purchased_at" => "2025-02-20T22:23:41.103Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2025-02-20 22:23:41.111800000 UTC +00:00,
:updated_at => 2025-02-20 22:23:41.111800000 UTC +00:00
}
# {
:id => 384,
:wallet_id => 124,
:source_type => "Pay::Charge",
:source_id => 315,
:credits_last_fulfillment => 1000,
:fulfillment_type => "credit_pack",
:last_fulfilled_at => 2025-02-20 22:23:52.563792000 UTC +00:00,
:next_fulfillment_at => nil,
:fulfillment_period => nil,
:stops_at => nil,
:metadata => {
"purchase_charge_id" => 315,
"purchased_at" => "2025-02-20T22:23:52.556Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2025-02-20 22:23:52.564583000 UTC +00:00,
:updated_at => 2025-02-20 22:23:52.564583000 UTC +00:00
}
UsageCredits::Transaction (3)
# {
:id => 527,
:wallet_id => 124,
:amount => 5100,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 314,
"purchased_at" => "2025-02-20T22:23:41.103Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2025-02-20T22:23:41.106Z",
"purchase_type" => "credit_pack",
"pack_name" => "pro",
"credits" => 5000,
"bonus_credits" => 100,
"price_cents" => 19900,
"price_currency" => "USD"
},
:created_at => 2025-02-20 22:23:41.107875000 UTC +00:00,
:updated_at => 2025-02-20 22:23:41.107875000 UTC +00:00
}
# {
:id => 528,
:wallet_id => 124,
:amount => 20,
:category => "referral_bonus",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"reason" => "referral"
},
:created_at => 2025-02-20 22:23:41.129507000 UTC +00:00,
:updated_at => 2025-02-20 22:23:41.129507000 UTC +00:00
}
# {
:id => 529,
:wallet_id => 124,
:amount => 1000,
:category => "credit_pack_purchase",
:expires_at => nil,
:fulfillment_id => nil,
:metadata => {
"purchase_charge_id" => 315,
"purchased_at" => "2025-02-20T22:23:52.556Z",
"credits_fulfilled" => true,
"fulfilled_at" => "2025-02-20T22:23:52.559Z",
"purchase_type" => "credit_pack",
"pack_name" => "starter",
"credits" => 1000,
"bonus_credits" => 0,
"price_cents" => 4900,
"price_currency" => "USD"
},
:created_at => 2025-02-20 22:23:52.561372000 UTC +00:00,
:updated_at => 2025-02-20 22:23:52.561372000 UTC +00:00
}