Skip to content

Commit

Permalink
Fix documentation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
therefromhere committed Mar 31, 2019
1 parent 915a91e commit e2762c3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions djstripe/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ class Migration(migrations.Migration):
(
"account_balance",
models.IntegerField(
help_text="Current balance, if any, being stored on the customer's account. If negative, the customer has credit to apply to the next invoice. If positive, the customer has an amount owed that will be added to thenext invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfullyapplied to any invoice. This balance is only taken into account for recurring billing purposes (i.e., subscriptions, invoices, invoice items)."
help_text="Current balance, if any, being stored on the customer's account. If negative, the customer has credit to apply to the next invoice. If positive, the customer has an amount owed that will be added to the next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account for recurring billing purposes (i.e., subscriptions, invoices, invoice items)."
),
),
(
Expand Down Expand Up @@ -1731,7 +1731,7 @@ class Migration(migrations.Migration):
djstripe.fields.StripeEnumField(
default="licensed",
enum=djstripe.enums.PlanUsageType,
help_text="Configures how the quantity per period should be determined, can be either`metered` or `licensed`. `licensed` will automatically bill the `quantity` set for a plan when adding it to a subscription, `metered` will aggregate the total usage based on usage records. Defaults to `licensed`.",
help_text="Configures how the quantity per period should be determined, can be either `metered` or `licensed`. `licensed` will automatically bill the `quantity` set for a plan when adding it to a subscription, `metered` will aggregate the total usage based on usage records. Defaults to `licensed`.",
max_length=8,
),
),
Expand Down
6 changes: 3 additions & 3 deletions djstripe/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs):
"""
Call the stripe API's list operation for this model.
:param api_key: The api key to use for this request. Defualts to djstripe_settings.STRIPE_SECRET_KEY.
:param api_key: The api key to use for this request. Defaults to djstripe_settings.STRIPE_SECRET_KEY.
:type api_key: string
See Stripe documentation for accepted kwargs for each object.
Expand All @@ -105,7 +105,7 @@ def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs):
"""
Call the stripe API's create operation for this model.
:param api_key: The api key to use for this request. Defualts to djstripe_settings.STRIPE_SECRET_KEY.
:param api_key: The api key to use for this request. Defaults to djstripe_settings.STRIPE_SECRET_KEY.
:type api_key: string
"""

Expand All @@ -115,7 +115,7 @@ def _api_delete(self, api_key=None, **kwargs):
"""
Call the stripe API's delete operation for this model
:param api_key: The api key to use for this request. Defualts to djstripe_settings.STRIPE_SECRET_KEY.
:param api_key: The api key to use for this request. Defaults to djstripe_settings.STRIPE_SECRET_KEY.
:type api_key: string
"""
api_key = api_key or self.default_api_key
Expand Down
2 changes: 1 addition & 1 deletion djstripe/models/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ class Plan(StripeModel):
enum=enums.PlanUsageType,
default=enums.PlanUsageType.licensed,
help_text=(
"Configures how the quantity per period should be determined, can be either"
"Configures how the quantity per period should be determined, can be either "
"`metered` or `licensed`. `licensed` will automatically bill the `quantity` "
"set for a plan when adding it to a subscription, `metered` will aggregate "
"the total usage based on usage records. Defaults to `licensed`."
Expand Down
4 changes: 2 additions & 2 deletions djstripe/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ class Customer(StripeModel):
help_text=(
"Current balance, if any, being stored on the customer's account. "
"If negative, the customer has credit to apply to the next invoice. "
"If positive, the customer has an amount owed that will be added to the"
"If positive, the customer has an amount owed that will be added to the "
"next invoice. The balance does not refer to any unpaid invoices; it "
"solely takes into account amounts that have yet to be successfully"
"solely takes into account amounts that have yet to be successfully "
"applied to any invoice. This balance is only taken into account for "
"recurring billing purposes (i.e., subscriptions, invoices, invoice items)."
)
Expand Down

0 comments on commit e2762c3

Please sign in to comment.