lib/aptible/billing/billing_detail.rb in aptible-billing-0.1.0 vs lib/aptible/billing/billing_detail.rb in aptible-billing-0.1.1
- old
+ new
@@ -8,11 +8,12 @@
field :updated_at, type: Time
field :stripe_customer_id
field :stripe_subscription_id
field :stripe_subscription_status
field :plan
- field :billing_contact_id
+ field :billing_contact
+ field :organization
def stripe_customer
return nil if stripe_customer_id.nil?
@stripe_customer ||= Stripe::Customer.retrieve(stripe_customer_id)
end
@@ -30,6 +31,6 @@
def subscribed?
!!stripe_subscription_id
end
end
end
-end
\ No newline at end of file
+end