Skip to content

Commit

Permalink
Update models documentation
Browse files Browse the repository at this point in the history
to mention PaymentMethod, PaymentIntent, TaxRate.

Resolves dj-stripe#1048
  • Loading branch information
therefromhere committed Dec 21, 2019
1 parent bf56360 commit 2adb236
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion docs/reference/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Each model is tied closely to its corresponding object in the stripe dashboard.
Fields that are not implemented for each model have a short reason behind the decision
in the docstring for each model.

Last Updated 2018-05-24
Last Updated 2019-12-21


Core Resources
Expand Down Expand Up @@ -53,6 +53,7 @@ Customer
.. automethod:: djstripe.models.Customer.get_or_create
.. autoattribute:: djstripe.models.Customer.legacy_cards
.. autoattribute:: djstripe.models.Customer.credits
.. autoattribute:: djstripe.models.Customer.customer_payment_methods
.. autoattribute:: djstripe.models.Customer.pending_charges
.. automethod:: djstripe.models.Customer.subscribe
.. automethod:: djstripe.models.Customer.charge
Expand Down Expand Up @@ -131,6 +132,19 @@ Payout
.. automethod:: djstripe.models.Payout.sync_from_stripe_data


PaymentIntent
-------------
.. autoclass:: djstripe.models.PaymentIntent


.. automethod:: djstripe.models.PaymentIntent.api_list
.. automethod:: djstripe.models.PaymentIntent.api_retrieve
.. automethod:: djstripe.models.PaymentIntent.get_stripe_dashboard_url

.. automethod:: djstripe.models.PaymentIntent.str_parts
.. automethod:: djstripe.models.PaymentIntent.sync_from_stripe_data


Product
-------
.. autoclass:: djstripe.models.Product
Expand Down Expand Up @@ -186,6 +200,20 @@ Card
.. automethod:: djstripe.models.Card.str_parts
.. automethod:: djstripe.models.Card.sync_from_stripe_data

PaymentMethod
-------------
.. autoclass:: djstripe.models.PaymentMethod


.. automethod:: djstripe.models.PaymentMethod.api_list
.. automethod:: djstripe.models.PaymentMethod.api_retrieve
.. automethod:: djstripe.models.PaymentMethod.get_stripe_dashboard_url

.. automethod:: djstripe.models.PaymentMethod.attach
.. automethod:: djstripe.models.PaymentMethod.detach

.. automethod:: djstripe.models.PaymentMethod.str_parts
.. automethod:: djstripe.models.PaymentMethod.sync_from_stripe_data

Source
------
Expand Down Expand Up @@ -314,6 +342,18 @@ SubscriptionItem
.. automethod:: djstripe.models.SubscriptionItem.sync_from_stripe_data


TaxRate
-------
.. autoclass:: djstripe.models.TaxRate


.. automethod:: djstripe.models.TaxRate.api_list
.. automethod:: djstripe.models.TaxRate.api_retrieve
.. automethod:: djstripe.models.TaxRate.get_stripe_dashboard_url

.. automethod:: djstripe.models.TaxRate.sync_from_stripe_data


UpcomingInvoice
---------------
.. autoclass:: djstripe.models.UpcomingInvoice
Expand Down

0 comments on commit 2adb236

Please sign in to comment.