SYMBOL INDEX (1597 symbols across 124 files) FILE: djstripe/admin/actions.py class CustomActionMixin (line 16) | class CustomActionMixin: method get_urls (line 21) | def get_urls(self): method get_admin_action_context (line 31) | def get_admin_action_context(self, queryset, action_name, form_class): method get_actions (line 74) | def get_actions(self, request): method _resync_instances (line 89) | def _resync_instances(self, request, queryset): method _sync_all_instances (line 97) | def _sync_all_instances(self, request, queryset): method changelist_view (line 104) | def changelist_view(self, request, extra_context=None): FILE: djstripe/admin/admin.py class IdempotencyKeyAdmin (line 33) | class IdempotencyKeyAdmin(ReadOnlyMixin, admin.ModelAdmin): class WebhookEventTriggerAdmin (line 40) | class WebhookEventTriggerAdmin(ReadOnlyMixin, admin.ModelAdmin): method reprocess (line 56) | def reprocess(self, request, queryset): method get_queryset (line 64) | def get_queryset(self, request): class StripeModelAdmin (line 72) | class StripeModelAdmin(CustomActionMixin, admin.ModelAdmin): method __init__ (line 79) | def __init__(self, *args, **kwargs): method get_list_display (line 84) | def get_list_display(self, request): method get_list_filter (line 91) | def get_list_filter(self, request): method get_readonly_fields (line 94) | def get_readonly_fields(self, request, obj=None): method get_search_fields (line 97) | def get_search_fields(self, request): method get_fieldsets (line 100) | def get_fieldsets(self, request, obj=None): method get_queryset (line 110) | def get_queryset(self, request): class AccountAdmin (line 115) | class AccountAdmin(StripeModelAdmin): class APIKeyAdmin (line 122) | class APIKeyAdmin(admin.ModelAdmin): method get_readonly_fields (line 130) | def get_readonly_fields(self, request, obj=None): method get_fields (line 135) | def get_fields(self, request, obj=None): method get_form (line 140) | def get_form(self, request, obj=None, **kwargs): method get_queryset (line 145) | def get_queryset(self, request): method save_model (line 148) | def save_model(self, request: Any, obj, form: Any, change: Any) -> None: class BalanceTransactionAdmin (line 161) | class BalanceTransactionAdmin(ReadOnlyMixin, StripeModelAdmin): class ChargeAdmin (line 175) | class ChargeAdmin(StripeModelAdmin): method get_queryset (line 191) | def get_queryset(self, request): class CouponAdmin (line 206) | class CouponAdmin(StripeModelAdmin): class CustomerAdmin (line 221) | class CustomerAdmin(StripeModelAdmin): method get_queryset (line 241) | def get_queryset(self, request): class DiscountAdmin (line 252) | class DiscountAdmin(ReadOnlyMixin, StripeModelAdmin): method get_actions (line 262) | def get_actions(self, request): class DisputeAdmin (line 276) | class DisputeAdmin(ReadOnlyMixin, StripeModelAdmin): class EventAdmin (line 282) | class EventAdmin(ReadOnlyMixin, StripeModelAdmin): class FileAdmin (line 289) | class FileAdmin(StripeModelAdmin): class FileLinkAdmin (line 296) | class FileLinkAdmin(StripeModelAdmin): method get_queryset (line 300) | def get_queryset(self, request): class OrderAdmin (line 305) | class OrderAdmin(StripeModelAdmin): class PaymentIntentAdmin (line 319) | class PaymentIntentAdmin(StripeModelAdmin): method get_queryset (line 333) | def get_queryset(self, request): class PayoutAdmin (line 344) | class PayoutAdmin(StripeModelAdmin): method get_queryset (line 356) | def get_queryset(self, request): class SetupIntentAdmin (line 365) | class SetupIntentAdmin(StripeModelAdmin): method get_queryset (line 378) | def get_queryset(self, request): class SessionAdmin (line 393) | class SessionAdmin(StripeModelAdmin): method get_queryset (line 398) | def get_queryset(self, request): class InvoiceAdmin (line 403) | class InvoiceAdmin(StripeModelAdmin): method get_default_tax_rates (line 426) | def get_default_tax_rates(self, obj): method get_queryset (line 431) | def get_queryset(self, request): class LineItemAdmin (line 441) | class LineItemAdmin(StripeModelAdmin): class MandateAdmin (line 454) | class MandateAdmin(StripeModelAdmin): method get_queryset (line 459) | def get_queryset(self, request): method get_actions (line 462) | def get_actions(self, request): class PlanAdmin (line 476) | class PlanAdmin(StripeModelAdmin): method get_readonly_fields (line 479) | def get_readonly_fields(self, request, obj=None): method get_queryset (line 494) | def get_queryset(self, request): class PriceAdmin (line 504) | class PriceAdmin(StripeModelAdmin): method get_queryset (line 511) | def get_queryset(self, request): class ProductAdmin (line 521) | class ProductAdmin(StripeModelAdmin): method get_queryset (line 533) | def get_queryset(self, request): class RefundAdmin (line 538) | class RefundAdmin(StripeModelAdmin): method get_queryset (line 550) | def get_queryset(self, request): class SourceAdmin (line 555) | class SourceAdmin(StripeModelAdmin): method get_queryset (line 559) | def get_queryset(self, request): class PaymentMethodAdmin (line 568) | class PaymentMethodAdmin(StripeModelAdmin): method get_queryset (line 573) | def get_queryset(self, request): class CardAdmin (line 582) | class CardAdmin(StripeModelAdmin): method get_queryset (line 586) | def get_queryset(self, request): class BankAccountAdmin (line 600) | class BankAccountAdmin(StripeModelAdmin): method get_queryset (line 604) | def get_queryset(self, request): class ShippingRateAdmin (line 618) | class ShippingRateAdmin(StripeModelAdmin): class SubscriptionAdmin (line 625) | class SubscriptionAdmin(StripeModelAdmin): method get_actions (line 631) | def get_actions(self, request): method _cancel (line 638) | def _cancel(self, request, queryset): method get_queryset (line 643) | def get_queryset(self, request): method get_default_tax_rates (line 661) | def get_default_tax_rates(self, obj): method get_product_name (line 667) | def get_product_name(self, obj): class SubscriptionScheduleAdmin (line 673) | class SubscriptionScheduleAdmin(StripeModelAdmin): method _release_subscription_schedule (line 679) | def _release_subscription_schedule(self, request, queryset): method _cancel_subscription_schedule (line 687) | def _cancel_subscription_schedule(self, request, queryset): method get_actions (line 694) | def get_actions(self, request): class TaxCodeAdmin (line 707) | class TaxCodeAdmin(StripeModelAdmin): class TaxRateAdmin (line 713) | class TaxRateAdmin(StripeModelAdmin): class TransferAdmin (line 719) | class TransferAdmin(StripeModelAdmin): class TransferReversalAdmin (line 724) | class TransferReversalAdmin(StripeModelAdmin): class ApplicationFeeAdmin (line 729) | class ApplicationFeeAdmin(StripeModelAdmin): class ApplicationFeeReversalAdmin (line 734) | class ApplicationFeeReversalAdmin(StripeModelAdmin): class UsageRecordAdmin (line 739) | class UsageRecordAdmin(StripeModelAdmin): method get_queryset (line 742) | def get_queryset(self, request): method get_actions (line 745) | def get_actions(self, request): class UsageRecordSummaryAdmin (line 759) | class UsageRecordSummaryAdmin(StripeModelAdmin): method get_queryset (line 762) | def get_queryset(self, request): class WebhookEndpointAdmin (line 769) | class WebhookEndpointAdmin(CustomActionMixin, admin.ModelAdmin): method get_actions (line 785) | def get_actions(self, request): method get_form (line 793) | def get_form(self, request, obj=None, **kwargs): method get_readonly_fields (line 798) | def get_readonly_fields(self, request, obj=None): method get_fieldsets (line 811) | def get_fieldsets(self, request, obj=None): method get_changeform_initial_data (line 839) | def get_changeform_initial_data(self, request) -> Dict[str, str]: method delete_model (line 845) | def delete_model(self, request, obj: models.WebhookEndpoint): method get_queryset (line 857) | def get_queryset(self, request): FILE: djstripe/admin/admin_inline.py class SubscriptionInline (line 11) | class SubscriptionInline(admin.StackedInline): class SubscriptionScheduleInline (line 21) | class SubscriptionScheduleInline(admin.StackedInline): method __init__ (line 30) | def __init__(self, parent_model, admin_site): class TaxIdInline (line 39) | class TaxIdInline(admin.TabularInline): class SubscriptionItemInline (line 56) | class SubscriptionItemInline(admin.StackedInline): class InvoiceItemInline (line 66) | class InvoiceItemInline(admin.StackedInline): class LineItemInline (line 76) | class LineItemInline(admin.StackedInline): FILE: djstripe/admin/filters.py class BaseHasSourceListFilter (line 9) | class BaseHasSourceListFilter(admin.SimpleListFilter): method lookups (line 13) | def lookups(self, request, model_admin): method queryset (line 26) | def queryset(self, request, queryset): class CustomerHasSourceListFilter (line 41) | class CustomerHasSourceListFilter(BaseHasSourceListFilter): class InvoiceCustomerHasSourceListFilter (line 45) | class InvoiceCustomerHasSourceListFilter(BaseHasSourceListFilter): class CustomerSubscriptionStatusListFilter (line 49) | class CustomerSubscriptionStatusListFilter(admin.SimpleListFilter): method lookups (line 55) | def lookups(self, request, model_admin): method queryset (line 75) | def queryset(self, request, queryset): FILE: djstripe/admin/forms.py class CustomActionForm (line 16) | class CustomActionForm(forms.Form): method __init__ (line 19) | def __init__(self, *args, **kwargs): class APIKeyAdminCreateForm (line 48) | class APIKeyAdminCreateForm(forms.ModelForm): class Meta (line 49) | class Meta: method _post_clean (line 53) | def _post_clean(self): class WebhookEndpointAdminBaseForm (line 67) | class WebhookEndpointAdminBaseForm(forms.ModelForm): method __init__ (line 68) | def __init__(self, *args, **kwargs): method _get_field_name (line 73) | def _get_field_name(self, stripe_field: Optional[str]) -> Optional[str]: method save (line 81) | def save(self, commit: bool = False): class WebhookEndpointAdminCreateForm (line 104) | class WebhookEndpointAdminCreateForm(WebhookEndpointAdminBaseForm): method __init__ (line 105) | def __init__(self, *args, **kwargs): class Meta (line 143) | class Meta: method _post_clean (line 159) | def _post_clean(self): class WebhookEndpointAdminEditForm (line 195) | class WebhookEndpointAdminEditForm(WebhookEndpointAdminBaseForm): class Meta (line 218) | class Meta: method get_initial_for_field (line 222) | def get_initial_for_field(self, field, field_name): method _post_clean (line 234) | def _post_clean(self): FILE: djstripe/admin/utils.py class ReadOnlyMixin (line 6) | class ReadOnlyMixin: method has_add_permission (line 7) | def has_add_permission(self, request): method has_change_permission (line 10) | def has_change_permission(self, request, obj=None): function get_forward_relation_fields_for_model (line 14) | def get_forward_relation_fields_for_model(model): FILE: djstripe/admin/views.py class ConfirmCustomAction (line 21) | class ConfirmCustomAction(FormView): method form_valid (line 25) | def form_valid(self, form): method form_invalid (line 52) | def form_invalid(self, form): method get_form_kwargs (line 70) | def get_form_kwargs(self): method _resync_instances (line 76) | def _resync_instances(self, request, queryset): method _sync_all_instances (line 94) | def _sync_all_instances(self, request, queryset): method _cancel (line 99) | def _cancel(self, request, queryset): method _release_subscription_schedule (line 108) | def _release_subscription_schedule(self, request, queryset): method _cancel_subscription_schedule (line 117) | def _cancel_subscription_schedule(self, request, queryset): FILE: djstripe/apps.py class DjstripeAppConfig (line 10) | class DjstripeAppConfig(AppConfig): method ready (line 19) | def ready(self): FILE: djstripe/checks.py function check_stripe_api_key (line 20) | def check_stripe_api_key(app_configs=None, **kwargs): function validate_stripe_api_version (line 74) | def validate_stripe_api_version(version): function check_stripe_api_version (line 90) | def check_stripe_api_version(app_configs=None, **kwargs): function check_stripe_api_host (line 116) | def check_stripe_api_host(app_configs=None, **kwargs): function check_webhook_secret (line 138) | def check_webhook_secret(app_configs=None, **kwargs): function _check_webhook_endpoint_validation (line 184) | def _check_webhook_endpoint_validation(secret, messages, endpoint=None): function check_webhook_validation (line 204) | def check_webhook_validation(app_configs=None, **kwargs): function check_webhook_endpoint_has_secret (line 256) | def check_webhook_endpoint_has_secret(app_configs=None, **kwargs): function check_subscriber_key_length (line 290) | def check_subscriber_key_length(app_configs=None, **kwargs): function check_djstripe_settings_foreign_key_to_field (line 316) | def check_djstripe_settings_foreign_key_to_field(app_configs=None, **kwa... function check_webhook_event_callback_accepts_api_key (line 351) | def check_webhook_event_callback_accepts_api_key(app_configs=None, **kwa... FILE: djstripe/enums.py class EnumMetaClass (line 7) | class EnumMetaClass(type): method __init__ (line 8) | def __init__(cls, name, bases, classdict): method __prepare__ (line 16) | def __prepare__(cls, name, bases): method __new__ (line 19) | def __new__(cls, name, bases, classdict): class Enum (line 54) | class Enum(metaclass=EnumMetaClass): class APIKeyType (line 58) | class APIKeyType(Enum): class ApiErrorCode (line 68) | class ApiErrorCode(Enum): class AccountType (line 168) | class AccountType(Enum): class BalanceTransactionReportingCategory (line 174) | class BalanceTransactionReportingCategory(Enum): class BalanceTransactionStatus (line 209) | class BalanceTransactionStatus(Enum): class BalanceTransactionType (line 214) | class BalanceTransactionType(Enum): class BankAccountHolderType (line 254) | class BankAccountHolderType(Enum): class BankAccountStatus (line 259) | class BankAccountStatus(Enum): class BillingScheme (line 267) | class BillingScheme(Enum): class BusinessType (line 272) | class BusinessType(Enum): class CaptureMethod (line 279) | class CaptureMethod(Enum): class CardCheckResult (line 284) | class CardCheckResult(Enum): class CardBrand (line 291) | class CardBrand(Enum): class CardFundingType (line 302) | class CardFundingType(Enum): class CardTokenizationMethod (line 309) | class CardTokenizationMethod(Enum): class ChargeStatus (line 314) | class ChargeStatus(Enum): class ConfirmationMethod (line 320) | class ConfirmationMethod(Enum): class CouponDuration (line 325) | class CouponDuration(Enum): class CustomerTaxExempt (line 331) | class CustomerTaxExempt(Enum): class DisputeReason (line 337) | class DisputeReason(Enum): class DisputeStatus (line 353) | class DisputeStatus(Enum): class FilePurpose (line 364) | class FilePurpose(Enum): class FileType (line 383) | class FileType(Enum): class InvoiceBillingReason (line 393) | class InvoiceBillingReason(Enum): class InvoiceCollectionMethod (line 404) | class InvoiceCollectionMethod(Enum): class InvoiceStatus (line 409) | class InvoiceStatus(Enum): class InvoiceorLineItemType (line 417) | class InvoiceorLineItemType(Enum): class IntentUsage (line 423) | class IntentUsage(Enum): class IntentStatus (line 428) | class IntentStatus(Enum): class LineItem (line 446) | class LineItem(Enum): class MandateStatus (line 451) | class MandateStatus(Enum): class MandateType (line 457) | class MandateType(Enum): class OrderStatus (line 462) | class OrderStatus(Enum): class PaymentIntentStatus (line 472) | class PaymentIntentStatus(Enum): class SetupIntentStatus (line 487) | class SetupIntentStatus(Enum): class PaymentMethodType (line 503) | class PaymentMethodType(Enum): class PayoutFailureCode (line 536) | class PayoutFailureCode(Enum): class PayoutMethod (line 568) | class PayoutMethod(Enum): class PayoutSourceType (line 573) | class PayoutSourceType(Enum): class PayoutStatus (line 579) | class PayoutStatus(Enum): class PayoutType (line 587) | class PayoutType(Enum): class PaymentIntentCancellationReason (line 592) | class PaymentIntentCancellationReason(Enum): class PlanAggregateUsage (line 605) | class PlanAggregateUsage(Enum): class PlanInterval (line 612) | class PlanInterval(Enum): class PriceTiersMode (line 619) | class PriceTiersMode(Enum): class PriceType (line 624) | class PriceType(Enum): class PriceUsageType (line 629) | class PriceUsageType(Enum): class ProductType (line 639) | class ProductType(Enum): class SetupIntentCancellationReason (line 644) | class SetupIntentCancellationReason(Enum): class ScheduledQueryRunStatus (line 651) | class ScheduledQueryRunStatus(Enum): class SourceFlow (line 657) | class SourceFlow(Enum): class SourceStatus (line 664) | class SourceStatus(Enum): class SourceType (line 672) | class SourceType(Enum): class LegacySourceType (line 696) | class LegacySourceType(Enum): class RefundFailureReason (line 703) | class RefundFailureReason(Enum): class RefundReason (line 709) | class RefundReason(Enum): class RefundStatus (line 716) | class RefundStatus(Enum): class SessionBillingAddressCollection (line 723) | class SessionBillingAddressCollection(Enum): class SessionMode (line 728) | class SessionMode(Enum): class SourceUsage (line 734) | class SourceUsage(Enum): class SourceCodeVerificationStatus (line 739) | class SourceCodeVerificationStatus(Enum): class SourceRedirectFailureReason (line 745) | class SourceRedirectFailureReason(Enum): class SourceRedirectStatus (line 751) | class SourceRedirectStatus(Enum): class SubmitTypeStatus (line 758) | class SubmitTypeStatus(Enum): class SubscriptionScheduleEndBehavior (line 765) | class SubscriptionScheduleEndBehavior(Enum): class SubscriptionScheduleStatus (line 770) | class SubscriptionScheduleStatus(Enum): class SubscriptionStatus (line 778) | class SubscriptionStatus(Enum): class SubscriptionProrationBehavior (line 788) | class SubscriptionProrationBehavior(Enum): class ShippingRateType (line 794) | class ShippingRateType(Enum): class ShippingRateTaxBehavior (line 798) | class ShippingRateTaxBehavior(Enum): class TaxIdType (line 804) | class TaxIdType(Enum): class UsageAction (line 840) | class UsageAction(Enum): class WebhookEndpointStatus (line 845) | class WebhookEndpointStatus(Enum): class DjstripePaymentMethodType (line 850) | class DjstripePaymentMethodType(Enum): FILE: djstripe/event_handlers.py function update_customer_helper (line 30) | def update_customer_helper(metadata, customer_id, subscriber_key): function customer_webhook_handler (line 52) | def customer_webhook_handler(event): function customer_discount_webhook_handler (line 82) | def customer_discount_webhook_handler(event): function customer_source_webhook_handler (line 118) | def customer_source_webhook_handler(event): function customer_subscription_webhook_handler (line 144) | def customer_subscription_webhook_handler(event): function customer_tax_id_webhook_handler (line 163) | def customer_tax_id_webhook_handler(event): function payment_method_handler (line 173) | def payment_method_handler(event): function account_application_webhook_handler (line 207) | def account_application_webhook_handler(event): function account_updated_webhook_handler (line 220) | def account_updated_webhook_handler(event): function charge_webhook_handler (line 233) | def charge_webhook_handler(event): function dispute_webhook_handler (line 246) | def dispute_webhook_handler(event): function other_object_webhook_handler (line 276) | def other_object_webhook_handler(event): class CrudType (line 328) | class CrudType(Enum): method determine (line 335) | def determine(cls, event, verb=None): function _handle_crud_like_event (line 356) | def _handle_crud_like_event( FILE: djstripe/exceptions.py class MultipleSubscriptionException (line 6) | class MultipleSubscriptionException(Exception): class StripeObjectManipulationException (line 12) | class StripeObjectManipulationException(Exception): class InvalidStripeAPIKey (line 21) | class InvalidStripeAPIKey(ValueError): class ImpossibleAPIRequest (line 29) | class ImpossibleAPIRequest(Exception): FILE: djstripe/fields.py class FieldDeconstructMixin (line 14) | class FieldDeconstructMixin: method deconstruct (line 23) | def deconstruct(self): class StripeForeignKey (line 32) | class StripeForeignKey(models.ForeignKey): method __init__ (line 35) | def __init__(self, *args, **kwargs): method deconstruct (line 41) | def deconstruct(self): method get_default (line 48) | def get_default(self): class PaymentMethodForeignKey (line 56) | class PaymentMethodForeignKey(FieldDeconstructMixin, models.ForeignKey): method __init__ (line 57) | def __init__(self, **kwargs): class InvoiceOrLineItemForeignKey (line 62) | class InvoiceOrLineItemForeignKey(models.ForeignKey): method __init__ (line 63) | def __init__(self, **kwargs): class StripePercentField (line 68) | class StripePercentField(FieldDeconstructMixin, models.DecimalField): method __init__ (line 71) | def __init__(self, *args, **kwargs): class StripeCurrencyCodeField (line 82) | class StripeCurrencyCodeField(FieldDeconstructMixin, models.CharField): method __init__ (line 87) | def __init__(self, *args, **kwargs): class StripeQuantumCurrencyAmountField (line 93) | class StripeQuantumCurrencyAmountField(FieldDeconstructMixin, models.Big... class StripeDecimalCurrencyAmountField (line 103) | class StripeDecimalCurrencyAmountField(FieldDeconstructMixin, models.Dec... method __init__ (line 114) | def __init__(self, *args, **kwargs): method stripe_to_db (line 123) | def stripe_to_db(self, data): class StripeEnumField (line 136) | class StripeEnumField(FieldDeconstructMixin, models.CharField): method __init__ (line 137) | def __init__(self, enum, *args, **kwargs): method deconstruct (line 144) | def deconstruct(self): class StripeIdField (line 150) | class StripeIdField(FieldDeconstructMixin, models.CharField): method __init__ (line 153) | def __init__(self, *args, **kwargs): class StripeDateTimeField (line 167) | class StripeDateTimeField(FieldDeconstructMixin, models.DateTimeField): method stripe_to_db (line 170) | def stripe_to_db(self, data): class JSONField (line 179) | class JSONField(FieldDeconstructMixin, BaseJSONField): FILE: djstripe/management/commands/djstripe_clear_expired_idempotency_keys.py class Command (line 6) | class Command(BaseCommand): method handle (line 9) | def handle(self, *args, **options): FILE: djstripe/management/commands/djstripe_init_customers.py class Command (line 10) | class Command(BaseCommand): method handle (line 15) | def handle(self, *args, **options): FILE: djstripe/management/commands/djstripe_process_events.py class Command (line 8) | class Command(VerbosityAwareOutputMixin, BaseCommand): method add_arguments (line 23) | def add_arguments(self, parser): method handle (line 48) | def handle(self, *args, **options): method process_events (line 91) | def process_events(self, listed_events): FILE: djstripe/management/commands/djstripe_sync_customers.py class Command (line 10) | class Command(BaseCommand): method handle (line 15) | def handle(self, *args, **options): FILE: djstripe/management/commands/djstripe_sync_models.py class Command (line 42) | class Command(BaseCommand): method add_arguments (line 47) | def add_arguments(self, parser): method handle (line 65) | def handle(self, *args, api_keys: typing.List[str], **options): method _should_sync_model (line 104) | def _should_sync_model(self, model): method sync_model (line 132) | def sync_model(self, model, api_key: str): method get_stripe_account (line 207) | def get_stripe_account(cls, api_key: str, *args, **kwargs): method get_default_list_kwargs (line 225) | def get_default_list_kwargs(model, accounts_set, api_key: str): method get_list_kwargs_il (line 309) | def get_list_kwargs_il(default_list_kwargs): method get_list_kwargs_pm (line 326) | def get_list_kwargs_pm(default_list_kwargs): method get_list_kwargs_src (line 347) | def get_list_kwargs_src(default_list_kwargs): method get_list_kwargs_si (line 363) | def get_list_kwargs_si(default_list_kwargs): method get_list_kwargs_country_spec (line 378) | def get_list_kwargs_country_spec(default_list_kwargs): method get_list_kwargs_txcd (line 389) | def get_list_kwargs_txcd(default_list_kwargs): method get_list_kwargs_trr (line 397) | def get_list_kwargs_trr(default_list_kwargs): method get_list_kwargs_fee_refund (line 412) | def get_list_kwargs_fee_refund(default_list_kwargs): method get_list_kwargs_tax_id (line 427) | def get_list_kwargs_tax_id(default_list_kwargs): method get_list_kwargs_sis (line 442) | def get_list_kwargs_sis(default_list_kwargs): method get_list_kwargs (line 462) | def get_list_kwargs(self, model, api_key: str): method sync_bank_accounts_and_cards (line 500) | def sync_bank_accounts_and_cards(self, instance, *, stripe_account, ap... method start_sync (line 532) | def start_sync(self, items, instance, api_key: str): FILE: djstripe/management/commands/djstripe_update_invoiceitem_ids.py class Command (line 12) | class Command(BaseCommand): method add_arguments (line 15) | def add_arguments(self, parser): method handle (line 26) | def handle(self, *args, **options): FILE: djstripe/managers.py class StripeModelManager (line 9) | class StripeModelManager(models.Manager): class SubscriptionManager (line 15) | class SubscriptionManager(models.Manager): method started_during (line 18) | def started_during(self, year, month): method active (line 24) | def active(self): method canceled (line 28) | def canceled(self): method canceled_during (line 32) | def canceled_during(self, year, month): method started_plan_summary_for (line 36) | def started_plan_summary_for(self, year, month): method active_plan_summary (line 45) | def active_plan_summary(self): method canceled_plan_summary_for (line 51) | def canceled_plan_summary_for(self, year, month): method churn (line 62) | def churn(self): class TransferManager (line 69) | class TransferManager(models.Manager): method during (line 72) | def during(self, year, month): method paid_totals_for (line 76) | def paid_totals_for(self, year, month): class ChargeManager (line 83) | class ChargeManager(models.Manager): method during (line 86) | def during(self, year, month): method paid_totals_for (line 90) | def paid_totals_for(self, year, month): FILE: djstripe/migrations/0001_initial.py class Migration (line 41) | class Migration(migrations.Migration): FILE: djstripe/migrations/0008_2_5.py class Migration (line 11) | class Migration(migrations.Migration): FILE: djstripe/migrations/0009_2_6.py class Migration (line 14) | class Migration(migrations.Migration): FILE: djstripe/migrations/0010_alter_customer_balance.py class Migration (line 8) | class Migration(migrations.Migration): FILE: djstripe/migrations/0011_2_7.py class Migration (line 11) | class Migration(migrations.Migration): FILE: djstripe/migrations/0012_auto_20221217_0559.py class Migration (line 9) | class Migration(migrations.Migration): FILE: djstripe/migrations/0013_product_default_price.py class Migration (line 10) | class Migration(migrations.Migration): FILE: djstripe/migrations/0014_lineitem.py class Migration (line 11) | class Migration(migrations.Migration): FILE: djstripe/migrations/0015_alter_payout_destination.py function get_sql_for_connection (line 8) | def get_sql_for_connection(schema_editor, direction: str) -> str: function forwards_func (line 28) | def forwards_func(apps, schema_editor): function reverse_func (line 37) | def reverse_func(apps, schema_editor): class Migration (line 46) | class Migration(migrations.Migration): FILE: djstripe/migrations/0016_alter_payout_destination.py class Migration (line 9) | class Migration(migrations.Migration): FILE: djstripe/migrations/0017_invoiceorlineitem.py class Migration (line 11) | class Migration(migrations.Migration): FILE: djstripe/migrations/0018_discount.py class Migration (line 10) | class Migration(migrations.Migration): FILE: djstripe/migrations/0019_add_customer_discount.py class Migration (line 10) | class Migration(migrations.Migration): FILE: djstripe/migrations/sql/migrate_mysql_backward.sql type `djstripe_payout_destination_id_a5fa55c2` (line 9) | CREATE INDEX `djstripe_payout_destination_id_a5fa55c2` ON `djstripe_payo... FILE: djstripe/migrations/sql/migrate_mysql_forward.sql type `djstripe_payout_destination_clone_id_ff0fec04` (line 5) | CREATE INDEX `djstripe_payout_destination_clone_id_ff0fec04` ON `djstrip... FILE: djstripe/migrations/sql/migrate_postgresql_backward.sql type "djstripe_payout" (line 13) | CREATE INDEX "djstripe_payout_destination_id_a5fa55c2" ON "djstripe_payo... FILE: djstripe/migrations/sql/migrate_postgresql_forward.sql type "djstripe_payout" (line 7) | CREATE INDEX "djstripe_payout_destination_clone_id_ff0fec04" ON "djstrip... type "djstripe_payout" (line 8) | CREATE INDEX "djstripe_payout_destination_clone_id_ff0fec04_like" ON "dj... FILE: djstripe/migrations/sql/migrate_sqlite_backward.sql type "new__djstripe_payout" (line 4) | CREATE TABLE "new__djstripe_payout" ("destination_clone_id" varchar(255)... type "djstripe_payout" (line 8) | CREATE INDEX "djstripe_payout_destination_clone_id_ff0fec04" ON "djstrip... type "djstripe_payout" (line 9) | CREATE INDEX "djstripe_payout_balance_transaction_id_a9393fb6" ON "djstr... type "djstripe_payout" (line 10) | CREATE INDEX "djstripe_payout_failure_balance_transaction_id_77d442db" O... type "djstripe_payout" (line 11) | CREATE INDEX "djstripe_payout_djstripe_owner_account_id_8aac4e8e" ON "dj... type "djstripe_payout" (line 17) | CREATE INDEX "djstripe_payout_destination_id_a5fa55c2" ON "djstripe_payo... type "new__djstripe_payout" (line 31) | CREATE TABLE "new__djstripe_payout" ("djstripe_id" integer NOT NULL PRIM... type "djstripe_payout" (line 35) | CREATE INDEX "djstripe_payout_destination_id_a5fa55c2" ON "djstripe_payo... type "djstripe_payout" (line 36) | CREATE INDEX "djstripe_payout_balance_transaction_id_a9393fb6" ON "djstr... type "djstripe_payout" (line 37) | CREATE INDEX "djstripe_payout_failure_balance_transaction_id_77d442db" O... type "djstripe_payout" (line 38) | CREATE INDEX "djstripe_payout_djstripe_owner_account_id_8aac4e8e" ON "dj... FILE: djstripe/migrations/sql/migrate_sqlite_forward.sql type "djstripe_payout" (line 5) | CREATE INDEX "djstripe_payout_destination_clone_id_ff0fec04" ON "djstrip... type "new__djstripe_payout" (line 18) | CREATE TABLE "new__djstripe_payout" ("destination_id" varchar(255) NULL ... type "djstripe_payout" (line 22) | CREATE INDEX "djstripe_payout_destination_id_a5fa55c2" ON "djstripe_payo... type "djstripe_payout" (line 23) | CREATE INDEX "djstripe_payout_balance_transaction_id_a9393fb6" ON "djstr... type "djstripe_payout" (line 24) | CREATE INDEX "djstripe_payout_failure_balance_transaction_id_77d442db" O... type "djstripe_payout" (line 25) | CREATE INDEX "djstripe_payout_djstripe_owner_account_id_8aac4e8e" ON "dj... FILE: djstripe/mixins.py class PaymentsContextMixin (line 11) | class PaymentsContextMixin: method get_context_data (line 14) | def get_context_data(self, **kwargs): class SubscriptionMixin (line 26) | class SubscriptionMixin(PaymentsContextMixin): method get_context_data (line 29) | def get_context_data(self, *args, **kwargs): class VerbosityAwareOutputMixin (line 40) | class VerbosityAwareOutputMixin: method set_verbosity (line 45) | def set_verbosity(self, options): method output (line 49) | def output(self, arg): method verbose_output (line 54) | def verbose_output(self, arg): method verbose_traceback (line 59) | def verbose_traceback(self): FILE: djstripe/models/account.py class Account (line 12) | class Account(StripeModel): method get_stripe_dashboard_url (line 92) | def get_stripe_dashboard_url(self) -> str: method default_api_key (line 100) | def default_api_key(self) -> str: method get_default_api_key (line 103) | def get_default_api_key(self, livemode: bool = None) -> str: method business_url (line 119) | def business_url(self) -> str: method get_default_account (line 128) | def get_default_account(cls, api_key=djstripe_settings.STRIPE_SECRET_K... method get_or_retrieve_for_api_key (line 141) | def get_or_retrieve_for_api_key(cls, api_key: str): method __str__ (line 149) | def __str__(self): method api_reject (line 158) | def api_reject(self, api_key=None, stripe_account=None, **kwargs): method _create_from_stripe_object (line 183) | def _create_from_stripe_object( method branding_icon (line 212) | def branding_icon(self): method branding_logo (line 219) | def branding_logo(self): method _attach_objects_post_save_hook (line 225) | def _attach_objects_post_save_hook( FILE: djstripe/models/api.py function generate_api_key_id (line 19) | def generate_api_key_id() -> str: function get_api_key_details_by_prefix (line 25) | def get_api_key_details_by_prefix(api_key: str): class APIKeyManager (line 40) | class APIKeyManager(models.Manager): method get_or_create_by_api_key (line 41) | def get_or_create_by_api_key(self, secret: str): class APIKey (line 48) | class APIKey(StripeModel): method get_stripe_dashboard_url (line 73) | def get_stripe_dashboard_url(self): method __str__ (line 76) | def __str__(self): method clean (line 79) | def clean(self): method refresh_account (line 86) | def refresh_account(self, commit=True): method secret_redacted (line 117) | def secret_redacted(self) -> str: FILE: djstripe/models/base.py class StripeBaseModel (line 27) | class StripeBaseModel(models.Model): class Meta (line 33) | class Meta: method api_list (line 37) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): class StripeModel (line 57) | class StripeModel(StripeBaseModel): class Meta (line 104) | class Meta(StripeBaseModel.Meta): method _get_base_stripe_dashboard_url (line 108) | def _get_base_stripe_dashboard_url(self): method get_stripe_dashboard_url (line 117) | def get_stripe_dashboard_url(self) -> str: method default_api_key (line 127) | def default_api_key(self) -> str: method _get_stripe_account_id (line 134) | def _get_stripe_account_id(self, api_key=None) -> Optional[str]: method api_retrieve (line 183) | def api_retrieve(self, api_key=None, stripe_account=None): method _api_create (line 207) | def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kw... method _api_delete (line 222) | def _api_delete(self, api_key=None, stripe_account=None, **kwargs): method _api_update (line 246) | def _api_update(self, api_key=None, stripe_account=None, **kwargs): method _manipulate_stripe_object_hook (line 271) | def _manipulate_stripe_object_hook(cls, data): method _find_owner_account (line 280) | def _find_owner_account(cls, data, api_key=djstripe_settings.STRIPE_SE... method _stripe_object_to_record (line 312) | def _stripe_object_to_record( method _stripe_object_field_to_foreign_key (line 416) | def _stripe_object_field_to_foreign_key( method is_valid_object (line 528) | def is_valid_object(cls, data): method _attach_objects_hook (line 538) | def _attach_objects_hook( method _attach_objects_post_save_hook (line 554) | def _attach_objects_post_save_hook( method _create_from_stripe_object (line 599) | def _create_from_stripe_object( method _get_or_create_from_stripe_object (line 659) | def _get_or_create_from_stripe_object( method _stripe_object_to_customer (line 773) | def _stripe_object_to_customer( method _stripe_object_to_default_tax_rates (line 797) | def _stripe_object_to_default_tax_rates( method _stripe_object_to_tax_rates (line 819) | def _stripe_object_to_tax_rates( method _stripe_object_set_total_tax_amounts (line 839) | def _stripe_object_set_total_tax_amounts( method _stripe_object_to_line_items (line 879) | def _stripe_object_to_line_items( method _stripe_object_to_subscription_items (line 922) | def _stripe_object_to_subscription_items( method _stripe_object_to_refunds (line 960) | def _stripe_object_to_refunds( method sync_from_stripe_data (line 991) | def sync_from_stripe_data( method _get_or_retrieve (line 1042) | def _get_or_retrieve(cls, id, stripe_account=None, **kwargs): method __str__ (line 1067) | def __str__(self): class IdempotencyKey (line 1071) | class IdempotencyKey(models.Model): class Meta (line 1081) | class Meta: method __str__ (line 1084) | def __str__(self): method is_expired (line 1088) | def is_expired(self) -> bool: FILE: djstripe/models/billing.py class DjstripeInvoiceTotalTaxAmount (line 37) | class DjstripeInvoiceTotalTaxAmount(models.Model): class Meta (line 61) | class Meta: class DjstripeUpcomingInvoiceTotalTaxAmount (line 66) | class DjstripeUpcomingInvoiceTotalTaxAmount(models.Model): class Meta (line 90) | class Meta: class Coupon (line 94) | class Coupon(StripeModel): class Meta (line 172) | class Meta(StripeModel.Meta): method __str__ (line 175) | def __str__(self): method human_readable_amount (line 181) | def human_readable_amount(self): method human_readable (line 191) | def human_readable(self): class Discount (line 202) | class Discount(StripeModel): method is_valid_object (line 275) | def is_valid_object(cls, data): class BaseInvoice (line 282) | class BaseInvoice(StripeModel): class Meta (line 638) | class Meta(StripeModel.Meta): method __str__ (line 642) | def __str__(self): method upcoming (line 648) | def upcoming( method retry (line 717) | def retry(self): method _attach_objects_post_save_hook (line 731) | def _attach_objects_post_save_hook( method plan (line 752) | def plan(self) -> Optional["Plan"]: class Invoice (line 780) | class Invoice(BaseInvoice): method _attach_objects_post_save_hook (line 828) | def _attach_objects_post_save_hook( class UpcomingInvoice (line 853) | class UpcomingInvoice(BaseInvoice): method __init__ (line 873) | def __init__(self, *args, **kwargs): method get_stripe_dashboard_url (line 880) | def get_stripe_dashboard_url(self): method _attach_objects_hook (line 883) | def _attach_objects_hook( method _attach_objects_post_save_hook (line 894) | def _attach_objects_post_save_hook( method invoiceitems (line 930) | def invoiceitems(self): method lineitems (line 951) | def lineitems(self): method default_tax_rates (line 966) | def default_tax_rates(self): method total_tax_amounts (line 974) | def total_tax_amounts(self): method id (line 984) | def id(self): method id (line 988) | def id(self, value): method save (line 991) | def save(self, *args, **kwargs): class InvoiceItem (line 995) | class InvoiceItem(StripeModel): method _manipulate_stripe_object_hook (line 1104) | def _manipulate_stripe_object_hook(cls, data): method _attach_objects_post_save_hook (line 1110) | def _attach_objects_post_save_hook( method __str__ (line 1133) | def __str__(self): method get_stripe_dashboard_url (line 1136) | def get_stripe_dashboard_url(self): method api_retrieve (line 1139) | def api_retrieve(self, *args, **kwargs): class LineItem (line 1150) | class LineItem(StripeModel): method _manipulate_stripe_object_hook (line 1242) | def _manipulate_stripe_object_hook(cls, data): method _attach_objects_post_save_hook (line 1248) | def _attach_objects_post_save_hook( method api_list (line 1264) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): class InvoiceOrLineItem (line 1295) | class InvoiceOrLineItem(models.Model): method _model_type (line 1311) | def _model_type(cls, id_): method _get_or_create_from_stripe_object (line 1319) | def _get_or_create_from_stripe_object( class Plan (line 1356) | class Plan(StripeModel): class Meta (line 1490) | class Meta(object): method get_or_create (line 1494) | def get_or_create(cls, **kwargs): method create (line 1503) | def create(cls, **kwargs): method __str__ (line 1517) | def __str__(self): method amount_in_cents (line 1523) | def amount_in_cents(self): method human_readable_price (line 1527) | def human_readable_price(self) -> str: class Subscription (line 1573) | class Subscription(StripeModel): method api_list (line 1819) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): method update (line 1834) | def update(self, plan: Union[StripeModel, str] = None, **kwargs): method extend (line 1855) | def extend(self, delta): method cancel (line 1875) | def cancel(self, at_period_end: bool = False, **kwargs): method reactivate (line 1935) | def reactivate(self): method is_period_current (line 1953) | def is_period_current(self): method is_status_current (line 1962) | def is_status_current(self): method is_status_temporarily_current (line 1970) | def is_status_temporarily_current(self): method is_valid (line 1989) | def is_valid(self): method _attach_objects_post_save_hook (line 2003) | def _attach_objects_post_save_hook( class SubscriptionItem (line 2025) | class SubscriptionItem(StripeModel): method _attach_objects_post_save_hook (line 2091) | def _attach_objects_post_save_hook( class SubscriptionSchedule (line 2109) | class SubscriptionSchedule(StripeModel): method release (line 2186) | def release(self, api_key=None, stripe_account=None, **kwargs): method cancel (line 2218) | def cancel(self, api_key=None, stripe_account=None, **kwargs): method update (line 2246) | def update(self, api_key=None, stripe_account=None, **kwargs): class ShippingRate (line 2263) | class ShippingRate(StripeModel): class Meta (line 2315) | class Meta(StripeModel.Meta): method __str__ (line 2318) | def __str__(self): class TaxCode (line 2328) | class TaxCode(StripeModel): class Meta (line 2343) | class Meta(StripeModel.Meta): method __str__ (line 2346) | def __str__(self): method _find_owner_account (line 2350) | def _find_owner_account(cls, data, api_key=djstripe_settings.STRIPE_SE... class TaxId (line 2355) | class TaxId(StripeModel): method __str__ (line 2381) | def __str__(self): class Meta (line 2384) | class Meta(StripeModel.Meta): method _api_create (line 2388) | def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kw... method api_retrieve (line 2407) | def api_retrieve(self, api_key=None, stripe_account=None): method api_list (line 2434) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): class TaxRate (line 2450) | class TaxRate(StripeModel): method __str__ (line 2506) | def __str__(self): class Meta (line 2509) | class Meta(StripeModel.Meta): class UsageRecord (line 2513) | class UsageRecord(StripeModel): method __str__ (line 2550) | def __str__(self): method _api_create (line 2554) | def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kw... method create (line 2582) | def create(cls, **kwargs): class UsageRecordSummary (line 2589) | class UsageRecordSummary(StripeModel): method __str__ (line 2639) | def __str__(self): method _manipulate_stripe_object_hook (line 2643) | def _manipulate_stripe_object_hook(cls, data): method api_list (line 2650) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): FILE: djstripe/models/checkout.py class Session (line 11) | class Session(StripeModel): method _attach_objects_post_save_hook (line 109) | def _attach_objects_post_save_hook( FILE: djstripe/models/connect.py class ApplicationFee (line 22) | class ApplicationFee(StripeModel): class ApplicationFeeRefund (line 70) | class ApplicationFeeRefund(StripeModel): class CountrySpec (line 99) | class CountrySpec(StripeBaseModel): method sync_from_stripe_data (line 133) | def sync_from_stripe_data( method api_retrieve (line 163) | def api_retrieve(self, api_key: str = None, stripe_account=None): class Transfer (line 175) | class Transfer(StripeModel): method fee (line 242) | def fee(self): method __str__ (line 246) | def __str__(self): method _attach_objects_post_save_hook (line 257) | def _attach_objects_post_save_hook( method get_stripe_dashboard_url (line 277) | def get_stripe_dashboard_url(self) -> str: class TransferReversal (line 285) | class TransferReversal(StripeModel): method __str__ (line 315) | def __str__(self): method _api_create (line 319) | def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kw... method api_retrieve (line 341) | def api_retrieve(self, api_key=None, stripe_account=None): method api_list (line 368) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): method is_valid_object (line 384) | def is_valid_object(cls, data): FILE: djstripe/models/core.py function _sanitise_price (line 33) | def _sanitise_price(price=None, plan=None, **kwargs): class BalanceTransaction (line 53) | class BalanceTransaction(StripeModel): method __str__ (line 90) | def __str__(self): method get_source_class (line 95) | def get_source_class(self): method get_source_instance (line 101) | def get_source_instance(self): method get_stripe_dashboard_url (line 104) | def get_stripe_dashboard_url(self): class Charge (line 108) | class Charge(StripeModel): method __str__ (line 364) | def __str__(self): method fee (line 369) | def fee(self): method human_readable_status (line 374) | def human_readable_status(self) -> str: method fraudulent (line 384) | def fraudulent(self) -> bool: method _calculate_refund_amount (line 389) | def _calculate_refund_amount(self, amount: Optional[Decimal]) -> int: method refund (line 400) | def refund(self, amount: Decimal = None, reason: str = None) -> "Charge": method capture (line 420) | def capture(self, **kwargs) -> "Charge": method _attach_objects_post_save_hook (line 434) | def _attach_objects_post_save_hook( class Mandate (line 451) | class Mandate(StripeModel): class Product (line 487) | class Product(StripeModel): method __str__ (line 607) | def __str__(self): class Customer (line 620) | class Customer(StripeModel): class Meta (line 764) | class Meta(StripeModel.Meta): method __str__ (line 767) | def __str__(self): method _manipulate_stripe_object_hook (line 774) | def _manipulate_stripe_object_hook(cls, data): method get_or_create (line 798) | def get_or_create( method create (line 832) | def create(cls, subscriber, idempotency_key=None, stripe_account=None): method credits (line 857) | def credits(self): method customer_payment_methods (line 864) | def customer_payment_methods(self): method pending_charges (line 876) | def pending_charges(self): method subscribe (line 882) | def subscribe(self, *, items=None, price=None, plan=None, **kwargs): method charge (line 922) | def charge( method add_invoice_item (line 962) | def add_invoice_item( method add_card (line 1039) | def add_card(self, source, set_default=True): method add_payment_method (line 1072) | def add_payment_method(self, payment_method, set_default=True): method purge (line 1102) | def purge(self): method _get_valid_subscriptions (line 1140) | def _get_valid_subscriptions(self): method is_subscribed_to (line 1149) | def is_subscribed_to(self, product: Union[Product, str]) -> bool: method has_any_active_subscription (line 1168) | def has_any_active_subscription(self): method active_subscriptions (line 1178) | def active_subscriptions(self): method valid_subscriptions (line 1189) | def valid_subscriptions(self): method subscription (line 1202) | def subscription(self): method send_invoice (line 1223) | def send_invoice(self): method retry_unpaid_invoices (line 1240) | def retry_unpaid_invoices(self): method add_coupon (line 1251) | def add_coupon(self, coupon, idempotency_key=None): method upcoming_invoice (line 1267) | def upcoming_invoice(self, **kwargs): method _attach_objects_post_save_hook (line 1280) | def _attach_objects_post_save_hook( method _attach_objects_hook (line 1323) | def _attach_objects_hook( method _sync_invoices (line 1350) | def _sync_invoices(self, **kwargs): method _sync_charges (line 1357) | def _sync_charges(self, **kwargs): method _sync_cards (line 1362) | def _sync_cards(self, **kwargs): method _sync_subscriptions (line 1369) | def _sync_subscriptions(self, **kwargs): class Dispute (line 1379) | class Dispute(StripeModel): method __str__ (line 1439) | def __str__(self): method get_stripe_dashboard_url (line 1444) | def get_stripe_dashboard_url(self) -> str: method _attach_objects_post_save_hook (line 1451) | def _attach_objects_post_save_hook( class Event (line 1498) | class Event(StripeModel): method __str__ (line 1533) | def __str__(self): method _attach_objects_hook (line 1536) | def _attach_objects_hook( method process (line 1556) | def process(cls, data, api_key=djstripe_settings.STRIPE_SECRET_KEY): method invoke_webhook_handlers (line 1570) | def invoke_webhook_handlers(self): method parts (line 1586) | def parts(self): method category (line 1591) | def category(self): method verb (line 1596) | def verb(self): method customer (line 1601) | def customer(self): class File (line 1616) | class File(StripeModel): method is_valid_object (line 1645) | def is_valid_object(cls, data): method __str__ (line 1648) | def __str__(self): class FileLink (line 1658) | class FileLink(StripeModel): method __str__ (line 1675) | def __str__(self): class PaymentIntent (line 1679) | class PaymentIntent(StripeModel): method __str__ (line 1864) | def __str__(self): method update (line 1879) | def update(self, api_key=None, **kwargs): method _api_cancel (line 1891) | def _api_cancel(self, api_key=None, **kwargs): method _api_confirm (line 1903) | def _api_confirm(self, api_key=None, **kwargs): class SetupIntent (line 1920) | class SetupIntent(StripeModel): method __str__ (line 2013) | def __str__(self): class Payout (line 2034) | class Payout(StripeModel): method __str__ (line 2144) | def __str__(self): class Price (line 2148) | class Price(StripeModel): class Meta (line 2269) | class Meta(object): method get_or_create (line 2273) | def get_or_create(cls, **kwargs): method create (line 2282) | def create(cls, **kwargs): method __str__ (line 2298) | def __str__(self): method human_readable_price (line 2302) | def human_readable_price(self): class Refund (line 2352) | class Refund(StripeModel): method get_stripe_dashboard_url (line 2412) | def get_stripe_dashboard_url(self): method __str__ (line 2415) | def __str__(self): FILE: djstripe/models/orders.py class Order (line 19) | class Order(StripeModel): method __str__ (line 114) | def __str__(self): method _manipulate_stripe_object_hook (line 127) | def _manipulate_stripe_object_hook(cls, data): method _attach_objects_post_save_hook (line 131) | def _attach_objects_post_save_hook( method cancel (line 146) | def cancel(self, api_key=None, stripe_account=None, **kwargs): method reopen (line 170) | def reopen(self, api_key=None, stripe_account=None, **kwargs): method submit (line 194) | def submit(self, api_key=None, stripe_account=None, **kwargs): FILE: djstripe/models/payment_methods.py class DjstripePaymentMethod (line 23) | class DjstripePaymentMethod(models.Model): method from_stripe_object (line 37) | def from_stripe_object(cls, data): method _get_or_create_source (line 50) | def _get_or_create_source( method _model_for_type (line 68) | def _model_for_type(cls, type): method object_model (line 81) | def object_model(self): method resolve (line 84) | def resolve(self): method _get_or_create_from_stripe_object (line 88) | def _get_or_create_from_stripe_object( class LegacySourceMixin (line 139) | class LegacySourceMixin: method _get_customer_or_account_from_kwargs (line 150) | def _get_customer_or_account_from_kwargs(cls, **kwargs): method _api_create (line 181) | def _api_create(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kw... method api_list (line 217) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): method get_stripe_dashboard_url (line 268) | def get_stripe_dashboard_url(self) -> str: method remove (line 276) | def remove(self): method api_retrieve (line 297) | def api_retrieve(self, api_key=None, stripe_account=None): method _api_delete (line 330) | def _api_delete(self, api_key=None, stripe_account=None, **kwargs): class BankAccount (line 364) | class BankAccount(LegacySourceMixin, StripeModel): method __str__ (line 426) | def __str__(self): method human_readable_status (line 447) | def human_readable_status(self): method api_retrieve (line 452) | def api_retrieve(self, **kwargs): class Card (line 463) | class Card(LegacySourceMixin, StripeModel): method __str__ (line 581) | def __str__(self): method create_token (line 605) | def create_token( class Source (line 639) | class Source(StripeModel): method __str__ (line 729) | def __str__(self): method _manipulate_stripe_object_hook (line 733) | def _manipulate_stripe_object_hook(cls, data): method _attach_objects_hook (line 738) | def _attach_objects_hook( method detach (line 755) | def detach(self) -> bool: method api_list (line 780) | def api_list(cls, api_key=djstripe_settings.STRIPE_SECRET_KEY, **kwargs): class PaymentMethod (line 797) | class PaymentMethod(StripeModel): method __str__ (line 984) | def __str__(self): method get_stripe_dashboard_url (line 989) | def get_stripe_dashboard_url(self) -> str: method _attach_objects_hook (line 994) | def _attach_objects_hook( method attach (line 1012) | def attach( method detach (line 1040) | def detach(self): FILE: djstripe/models/sigma.py class ScheduledQueryRun (line 10) | class ScheduledQueryRun(StripeModel): method __str__ (line 45) | def __str__(self): FILE: djstripe/models/webhooks.py class WebhookEndpoint (line 24) | class WebhookEndpoint(StripeModel): method __str__ (line 63) | def __str__(self): method _attach_objects_hook (line 66) | def _attach_objects_hook( function _get_version (line 80) | def _get_version(): function get_remote_ip (line 86) | def get_remote_ip(request): class WebhookEventTrigger (line 112) | class WebhookEventTrigger(models.Model): method __str__ (line 170) | def __str__(self): method from_request (line 174) | def from_request(cls, request, *, webhook_endpoint: WebhookEndpoint = ... method json_body (line 257) | def json_body(self): method is_test_event (line 264) | def is_test_event(self): method verify_signature (line 268) | def verify_signature( method validate (line 294) | def validate( method process (line 339) | def process(self, save=True, api_key: str = None): FILE: djstripe/settings.py class DjstripeSettings (line 11) | class DjstripeSettings: method __init__ (line 39) | def __init__(self): method __setattr__ (line 46) | def __setattr__(self, name, value): method __delattr__ (line 49) | def __delattr__(self, name): method subscriber_request_callback (line 53) | def subscriber_request_callback(self): method get_idempotency_key (line 60) | def get_idempotency_key(self): method DJSTRIPE_WEBHOOK_URL (line 66) | def DJSTRIPE_WEBHOOK_URL(self): method WEBHOOK_TOLERANCE (line 70) | def WEBHOOK_TOLERANCE(self): method WEBHOOK_VALIDATION (line 76) | def WEBHOOK_VALIDATION(self): method WEBHOOK_SECRET (line 80) | def WEBHOOK_SECRET(self): method WEBHOOK_EVENT_CALLBACK (line 87) | def WEBHOOK_EVENT_CALLBACK(self): method SUBSCRIBER_CUSTOMER_KEY (line 91) | def SUBSCRIBER_CUSTOMER_KEY(self): method TEST_API_KEY (line 97) | def TEST_API_KEY(self): method LIVE_API_KEY (line 101) | def LIVE_API_KEY(self): method STRIPE_LIVE_MODE (line 106) | def STRIPE_LIVE_MODE(self): method STRIPE_SECRET_KEY (line 110) | def STRIPE_SECRET_KEY(self): method STRIPE_PUBLIC_KEY (line 121) | def STRIPE_PUBLIC_KEY(self): method STRIPE_API_VERSION (line 132) | def STRIPE_API_VERSION(self) -> str: method get_callback_function (line 139) | def get_callback_function(self, setting_name, default=None): method _get_idempotency_key (line 170) | def _get_idempotency_key(self, object_type, action, livemode) -> str: method get_default_api_key (line 179) | def get_default_api_key(self, livemode) -> str: method get_subscriber_model_string (line 193) | def get_subscriber_model_string(self) -> str: method get_subscriber_model (line 197) | def get_subscriber_model(self): FILE: djstripe/sync.py function sync_subscriber (line 9) | def sync_subscriber(subscriber): FILE: djstripe/utils.py function get_supported_currency_choices (line 15) | def get_supported_currency_choices(api_key): function clear_expired_idempotency_keys (line 31) | def clear_expired_idempotency_keys(): function convert_tstamp (line 38) | def convert_tstamp(response) -> Optional[datetime.datetime]: function get_friendly_currency_amount (line 56) | def get_friendly_currency_amount(amount, currency: str) -> str: class QuerySetMock (line 63) | class QuerySetMock(QuerySet): method from_iterable (line 70) | def from_iterable(cls, model, iterable): method _clone (line 76) | def _clone(self): method update (line 79) | def update(self): method delete (line 82) | def delete(self): function get_id_from_stripe_data (line 86) | def get_id_from_stripe_data(data): function get_model (line 101) | def get_model(model_name): function get_queryset (line 108) | def get_queryset(pks, model_name): function get_timezone_utc (line 113) | def get_timezone_utc(): FILE: djstripe/views.py class ProcessWebhookView (line 18) | class ProcessWebhookView(View): method post (line 30) | def post(self, request, uuid=None): FILE: djstripe/webhooks.py function handler (line 33) | def handler(*event_types): function handler_all (line 57) | def handler_all(func=None): function call_handlers (line 71) | def call_handlers(event): FILE: manage.py function main (line 14) | def main(): FILE: tests/__init__.py class AssertStripeFksMixin (line 32) | class AssertStripeFksMixin: method _get_field_str (line 33) | def _get_field_str(self, field) -> str: method assert_fks (line 50) | def assert_fks(self, obj, expected_blank_fks, processed_stripe_ids=None): function load_fixture (line 88) | def load_fixture(filename): function datetime_to_unix (line 93) | def datetime_to_unix(datetime_): class StripeItem (line 97) | class StripeItem(dict): method __getattr__ (line 106) | def __getattr__(self, name): method __setattr__ (line 113) | def __setattr__(self, name, value): method __delattr__ (line 116) | def __delattr__(self, name): method delete (line 122) | def delete(self) -> bool: method class_url (line 129) | def class_url(cls): method instance_url (line 132) | def instance_url(self): method request (line 138) | def request(self, method, url, params) -> Dict: class StripeList (line 146) | class StripeList(dict): method __getattr__ (line 166) | def __getattr__(self, name): method __setattr__ (line 173) | def __setattr__(self, name, value): method __delattr__ (line 176) | def __delattr__(self, name): method __iter__ (line 182) | def __iter__(self) -> Any: method __next__ (line 187) | def __next__(self) -> StripeItem: method list (line 194) | def list(self, **kwargs: Any) -> "StripeList": method auto_paging_iter (line 202) | def auto_paging_iter(self) -> "StripeList": method total_count (line 210) | def total_count(self): class ExternalAccounts (line 214) | class ExternalAccounts(object): method __init__ (line 215) | def __init__(self, external_account_fakes): method create (line 218) | def create(self, source, api_key=None): method retrieve (line 223) | def retrieve(self, id, expand=None): method list (line 228) | def list(self, **kwargs): class AccountDict (line 232) | class AccountDict(dict): method save (line 233) | def save(self, idempotency_key=None): method external_accounts (line 237) | def external_accounts(self): method create (line 242) | def create(self): class LegacySourceDict (line 363) | class LegacySourceDict(dict): method delete (line 364) | def delete(self): class BankAccountDict (line 368) | class BankAccountDict(LegacySourceDict): class CardDict (line 409) | class CardDict(LegacySourceDict): class SourceDict (line 423) | class SourceDict(dict): method detach (line 424) | def detach(self): class PaymentMethodDict (line 496) | class PaymentMethodDict(dict): method detach (line 497) | def detach(self): class ChargeDict (line 672) | class ChargeDict(StripeItem): method __init__ (line 673) | def __init__(self, *args, **kwargs): method refund (line 678) | def refund(self, amount=None, reason=None): method capture (line 682) | def capture(self): class SubscriptionDict (line 1074) | class SubscriptionDict(StripeItem): method __init__ (line 1075) | def __init__(self, *args, **kwargs): method __setattr__ (line 1080) | def __setattr__(self, name, value): method delete (line 1101) | def delete(self, **kwargs): method save (line 1107) | def save(self, idempotency_key=None): class Sources (line 1299) | class Sources(object): method __init__ (line 1300) | def __init__(self, card_fakes): method create (line 1303) | def create(self, source, api_key=None): method retrieve (line 1308) | def retrieve(self, id, expand=None): method list (line 1313) | def list(self, **kwargs): function convert_source_dict (line 1317) | def convert_source_dict(data): class CustomerDict (line 1332) | class CustomerDict(dict): method __init__ (line 1333) | def __init__(self, *args, **kwargs): method save (line 1341) | def save(self, idempotency_key=None): method delete (line 1344) | def delete(self): method sources (line 1348) | def sources(self): method create_for_user (line 1351) | def create_for_user(self, user): class InvoiceDict (line 1413) | class InvoiceDict(StripeItem): method __init__ (line 1414) | def __init__(self, *args, **kwargs): method pay (line 1419) | def pay(self): class UsageRecordSummaryDict (line 1863) | class UsageRecordSummaryDict(StripeItem): class WebhookEndpointDict (line 1872) | class WebhookEndpointDict(StripeItem): class PayoutDict (line 1881) | class PayoutDict(StripeItem): FILE: tests/apps/example/forms.py class PurchaseSubscriptionForm (line 6) | class PurchaseSubscriptionForm(forms.Form): class PaymentIntentForm (line 14) | class PaymentIntentForm(forms.Form): FILE: tests/apps/example/management/commands/regenerate_test_fixtures.py class Command (line 20) | class Command(BaseCommand): method add_arguments (line 44) | def add_arguments(self, parser): method handle (line 56) | def handle(self, *args, **options): method init_fake_id_map (line 285) | def init_fake_id_map(self): method update_fake_id_map (line 325) | def update_fake_id_map(self, obj): method get_fake_id (line 342) | def get_fake_id(self, obj): method fake_json_ids (line 369) | def fake_json_ids(self, json_str): method unfake_json_ids (line 382) | def unfake_json_ids(self, json_str): method update_fixture_obj (line 401) | def update_fixture_obj( method get_or_create_stripe_account (line 500) | def get_or_create_stripe_account(self, old_obj, readonly_fields): method get_or_create_stripe_bank_account (line 505) | def get_or_create_stripe_bank_account(self, old_obj, readonly_fields): method get_or_create_stripe_card (line 536) | def get_or_create_stripe_card(self, old_obj, readonly_fields): method get_or_create_stripe_source (line 563) | def get_or_create_stripe_source(self, old_obj, readonly_fields): method get_or_create_stripe_invoice (line 594) | def get_or_create_stripe_invoice(self, old_obj, writable_fields): method get_or_create_stripe_charge (line 619) | def get_or_create_stripe_charge(self, old_obj, writable_fields): method get_or_create_stripe_payment_intent (line 642) | def get_or_create_stripe_payment_intent(self, old_obj, writable_fields): method get_or_create_stripe_payment_method (line 665) | def get_or_create_stripe_payment_method(self, old_obj, writable_fields): method get_or_create_stripe_balance_transaction (line 701) | def get_or_create_stripe_balance_transaction(self, old_obj): method save_fixture (line 718) | def save_fixture(self, obj): method pre_process_subscription (line 731) | def pre_process_subscription(self, create_obj): method preserve_old_sideeffect_values (line 783) | def preserve_old_sideeffect_values( FILE: tests/apps/example/views.py class CreateCheckoutSessionView (line 25) | class CreateCheckoutSessionView(LoginRequiredMixin, TemplateView): method get_context_data (line 39) | def get_context_data(self, **kwargs): class CheckoutSessionSuccessView (line 142) | class CheckoutSessionSuccessView(TemplateView): class PurchaseSubscriptionView (line 150) | class PurchaseSubscriptionView(FormView): method get_context_data (line 165) | def get_context_data(self, **kwargs): method form_valid (line 182) | def form_valid(self, form): method get_success_url (line 218) | def get_success_url(self): class PurchaseSubscriptionSuccessView (line 225) | class PurchaseSubscriptionSuccessView(DetailView): function create_payment_intent (line 234) | def create_payment_intent(request): FILE: tests/apps/testapp/models.py class Organization (line 5) | class Organization(Model): class StaticEmailOrganization (line 11) | class StaticEmailOrganization(Model): method email (line 17) | def email(self): class NoEmailOrganization (line 21) | class NoEmailOrganization(Model): FILE: tests/apps/testapp/urls.py function empty_view (line 5) | def empty_view(request): FILE: tests/apps/testapp_content/urls.py function testview (line 9) | def testview(request): FILE: tests/apps/testapp_namespaced/urls.py function testview (line 5) | def testview(request): FILE: tests/conftest.py function create_account (line 14) | def create_account(monkeypatch): function fake_user (line 29) | def fake_user(): function fake_customer (line 37) | def fake_customer(fake_user): FILE: tests/fields/admin.py class CustomActionModelAdmin (line 11) | class CustomActionModelAdmin(StripeModelAdmin): method get_actions (line 12) | def get_actions(self, request): method _cancel (line 30) | def _cancel(self, request, queryset): method _release_subscription_schedule (line 36) | def _release_subscription_schedule(self, request, queryset): method _cancel_subscription_schedule (line 43) | def _cancel_subscription_schedule(self, request, queryset): FILE: tests/fields/models.py class ExampleDecimalModel (line 9) | class ExampleDecimalModel(models.Model): class MockStripeClass (line 13) | class MockStripeClass: method retrieve (line 14) | def retrieve(self): class CustomActionModel (line 18) | class CustomActionModel(StripeModel): method cancel (line 25) | def cancel(self, at_period_end: bool = False, **kwargs): FILE: tests/test_account.py class TestAccount (line 27) | class TestAccount(AssertStripeFksMixin, TestCase): method test_get_default_account (line 34) | def test_get_default_account(self, file_retrieve_mock, account_retriev... method test_sync_from_stripe_data (line 71) | def test_sync_from_stripe_data( method test__find_owner_account (line 102) | def test__find_owner_account(self, fileupload_retrieve_mock, account_r... method test_business_url (line 117) | def test_business_url(self, fileupload_retrieve_mock, account_retrieve... method test_branding_logo (line 132) | def test_branding_logo(self, fileupload_retrieve_mock, account_retriev... method test_branding_icon (line 149) | def test_branding_icon(self, fileupload_retrieve_mock, account_retriev... method test__attach_objects_post_save_hook (line 162) | def test__attach_objects_post_save_hook( method test_get_default_account_null_logo (line 186) | def test_get_default_account_null_logo( method test_get_stripe_dashboard_url (line 219) | def test_get_stripe_dashboard_url( class TestAccountMethods (line 232) | class TestAccountMethods: method test_account_str (line 256) | def test_account_str( method test__str__null_settings_null_business_profile (line 278) | def test__str__null_settings_null_business_profile( method test_livemode_populates_correctly_for_livemode (line 311) | def test_livemode_populates_correctly_for_livemode( method test_livemode_populates_correctly_for_testmode (line 360) | def test_livemode_populates_correctly_for_testmode( class TestAccountRestrictedKeys (line 387) | class TestAccountRestrictedKeys(TestCase): method test_account_str_restricted_key (line 394) | def test_account_str_restricted_key(self, account_retrieve_mock): function test_account__create_from_stripe_object (line 421) | def test_account__create_from_stripe_object( function test_api_reject (line 465) | def test_api_reject( FILE: tests/test_admin.py function test_get_forward_relation_fields_for_model (line 75) | def test_get_forward_relation_fields_for_model(output, input): class TestAdminRegisteredModelsChildrenOfStripeModel (line 79) | class TestAdminRegisteredModelsChildrenOfStripeModel(TestCase): method setUp (line 80) | def setUp(self): method test_get_list_display_links (line 94) | def test_get_list_display_links(self): method test_get_list_display (line 129) | def test_get_list_display(self): method test_get_list_filter (line 180) | def test_get_list_filter(self): method test_get_readonly_fields (line 218) | def test_get_readonly_fields(self): method test_get_list_select_related (line 266) | def test_get_list_select_related(self): method test_get_fieldsets_add (line 307) | def test_get_fieldsets_add(self): method test_get_fields_add (line 359) | def test_get_fields_add(self): method test_get_search_fields (line 403) | def test_get_search_fields(self): method test_get_actions (line 450) | def test_get_actions(self): class TestAdminRegisteredModelsNotChildrenOfStripeModel (line 500) | class TestAdminRegisteredModelsNotChildrenOfStripeModel(TestCase): method setUp (line 501) | def setUp(self): method test_get_list_display_links (line 507) | def test_get_list_display_links(self): method test_get_list_display (line 542) | def test_get_list_display(self): method test_get_list_filter (line 591) | def test_get_list_filter(self): method test_get_readonly_fields (line 627) | def test_get_readonly_fields(self): method test_get_list_select_related (line 673) | def test_get_list_select_related(self): method test_get_fieldsets_add (line 714) | def test_get_fieldsets_add(self): method test_get_fields_add (line 764) | def test_get_fields_add(self): method test_get_search_fields (line 808) | def test_get_search_fields(self): class TestAdminInlineModels (line 852) | class TestAdminInlineModels(TestCase): method test_readonly_fields_exist (line 853) | def test_readonly_fields_exist(self): class TestAdminSite (line 869) | class TestAdminSite(TestCase): method setUp (line 870) | def setUp(self): method test_search_fields (line 873) | def test_search_fields(self): method test_search_fields_exist (line 888) | def test_search_fields_exist(self): method test_list_select_related_fields_exist (line 902) | def test_list_select_related_fields_exist(self): class TestCustomActionMixin (line 917) | class TestCustomActionMixin: method test_get_admin_action_context (line 931) | def test_get_admin_action_context( method test_get_actions (line 990) | def test_get_actions(self, admin_user): method test_changelist_view (line 1020) | def test_changelist_view(self, admin_client, fake_selected_pks): method test__resync_instances (line 1047) | def test__resync_instances( method test__sync_all_instances (line 1093) | def test__sync_all_instances(self, admin_client, fake_selected_pks): class TestSubscriptionAdminCustomAction (line 1123) | class TestSubscriptionAdminCustomAction: method test__cancel_subscription_instances (line 1124) | def test__cancel_subscription_instances( # noqa: C901 class TestSubscriptionScheduleAdminCustomAction (line 1200) | class TestSubscriptionScheduleAdminCustomAction: method test__release_subscription_schedule (line 1201) | def test__release_subscription_schedule( # noqa: C901 method test__cancel_subscription_schedule (line 1282) | def test__cancel_subscription_schedule( # noqa: C901 FILE: tests/test_api_keys.py class TestCheckApiKeySettings (line 15) | class TestCheckApiKeySettings(TestCase): method test_global_api_keys_live_mode (line 27) | def test_global_api_keys_live_mode( method test_global_api_keys_test_mode (line 61) | def test_global_api_keys_test_mode( method test_api_key_live_mode (line 97) | def test_api_key_live_mode( method test_secret_key_test_mode (line 135) | def test_secret_key_test_mode( FILE: tests/test_apikey.py function test_get_api_key_details_by_prefix (line 29) | def test_get_api_key_details_by_prefix(): function test_get_api_key_details_by_prefix_bad_values (line 38) | def test_get_api_key_details_by_prefix_bad_values(): function test_clean_public_apikey (line 47) | def test_clean_public_apikey(): function test_apikey_detect_livemode_and_type (line 56) | def test_apikey_detect_livemode_and_type( class APIKeyTest (line 80) | class APIKeyTest(TestCase): method setUp (line 81) | def setUp(self): method test_get_stripe_dashboard_url (line 100) | def test_get_stripe_dashboard_url(self): method test___str__ (line 110) | def test___str__(self): method test_secret_redacted (line 120) | def test_secret_redacted(self): method test_secret_not_in_str (line 124) | def test_secret_not_in_str(self): method test_get_account_by_api_key (line 128) | def test_get_account_by_api_key(self): method test_refresh_account (line 142) | def test_refresh_account(self, fileupload_retrieve_mock, account_retri... FILE: tests/test_balance_transaction.py class TestBalanceTransactionStr (line 30) | class TestBalanceTransactionStr: method test___str__ (line 32) | def test___str__(self, transaction_status): class TestBalanceTransactionSourceClass (line 45) | class TestBalanceTransactionSourceClass: method test_get_source_class_success (line 47) | def test_get_source_class_success(self, transaction_type): method test_get_source_class_failure (line 59) | def test_get_source_class_failure(self, transaction_type): class TestBalanceTransaction (line 70) | class TestBalanceTransaction(TestCase): method test_sync_from_stripe_data (line 110) | def test_sync_from_stripe_data( method test_get_source_instance (line 181) | def test_get_source_instance( method test_get_stripe_dashboard_url (line 250) | def test_get_stripe_dashboard_url( FILE: tests/test_bank_account.py class TestStrBankAccount (line 28) | class TestStrBankAccount: method test__str__ (line 37) | def test__str__(self, fake_stripe_data, has_account, has_customer, mon... method test_human_readable_status (line 98) | def test_human_readable_status(self, fake_stripe_data, monkeypatch): class BankAccountTest (line 124) | class BankAccountTest(AssertStripeFksMixin, TestCase): method setUp (line 125) | def setUp(self): method test_attach_objects_hook_without_customer (line 141) | def test_attach_objects_hook_without_customer(self): method test_attach_objects_hook_without_account (line 148) | def test_attach_objects_hook_without_account(self): method test_api_retrieve_by_customer_equals_retrieval_by_account (line 162) | def test_api_retrieve_by_customer_equals_retrieval_by_account( method test_create_bank_account_finds_customer_with_account_absent (line 181) | def test_create_bank_account_finds_customer_with_account_absent(self): method test_create_bank_account_finds_customer_with_account_present (line 200) | def test_create_bank_account_finds_customer_with_account_present(self): method test_create_bank_account_finds_account_with_customer_absent (line 222) | def test_create_bank_account_finds_account_with_customer_absent(self): method test_api_call_no_customer_and_no_account (line 245) | def test_api_call_no_customer_and_no_account(self): method test_api_call_bad_customer (line 261) | def test_api_call_bad_customer(self): method test_api_call_bad_account (line 277) | def test_api_call_bad_account(self): method test__api_create_with_account_absent (line 298) | def test__api_create_with_account_absent(self, customer_retrieve_mock): method test__api_create_with_customer_and_account (line 315) | def test__api_create_with_customer_and_account( method test__api_create_with_customer_absent (line 339) | def test__api_create_with_customer_absent( method test_remove_bankaccount_by_customer (line 367) | def test_remove_bankaccount_by_customer( method test_remove_bankaccount_by_account (line 409) | def test_remove_bankaccount_by_account( method test_remove_already_deleted_bankaccount_by_account (line 451) | def test_remove_already_deleted_bankaccount_by_account( method test_remove_already_deleted_bank_account (line 500) | def test_remove_already_deleted_bank_account( method test_api_list (line 523) | def test_api_list(self, customer_retrieve_mock): FILE: tests/test_card.py class TestStrCard (line 30) | class TestStrCard: method test__str__ (line 38) | def test__str__(self, fake_stripe_data, has_account, has_customer, mon... class CardTest (line 83) | class CardTest(AssertStripeFksMixin, TestCase): method setUp (line 84) | def setUp(self): method test_attach_objects_hook_without_customer (line 100) | def test_attach_objects_hook_without_customer(self): method test_attach_objects_hook_without_account (line 107) | def test_attach_objects_hook_without_account(self): method test_api_retrieve_by_customer_equals_retrieval_by_account (line 124) | def test_api_retrieve_by_customer_equals_retrieval_by_account( method test_create_card_finds_customer_with_account_absent (line 146) | def test_create_card_finds_customer_with_account_absent(self): method test_create_card_finds_customer_with_account_present (line 165) | def test_create_card_finds_customer_with_account_present(self): method test_create_card_finds_account_with_customer_absent (line 190) | def test_create_card_finds_account_with_customer_absent(self): method test_card_create_token (line 217) | def test_card_create_token(self, token_create_mock): method test_api_call_no_customer_and_no_account (line 223) | def test_api_call_no_customer_and_no_account(self): method test_api_call_bad_customer (line 239) | def test_api_call_bad_customer(self): method test_api_call_bad_account (line 255) | def test_api_call_bad_account(self): method test__api_create_with_account_absent (line 274) | def test__api_create_with_account_absent(self, customer_retrieve_mock): method test__api_create_with_customer_absent (line 284) | def test__api_create_with_customer_absent(self, account_retrieve_mock): method test__api_create_with_customer_and_account (line 299) | def test__api_create_with_customer_and_account( method test_remove_card_by_customer (line 326) | def test_remove_card_by_customer( method test_remove_card_by_account (line 359) | def test_remove_card_by_account(self, account_retrieve_mock, card_dele... method test_remove_already_deleted_card_by_account (line 390) | def test_remove_already_deleted_card_by_account( method test_remove_already_deleted_card (line 429) | def test_remove_already_deleted_card( method test_remove_no_such_source (line 449) | def test_remove_no_such_source(self, customer_retrieve_mock, card_dele... method test_remove_no_such_customer (line 467) | def test_remove_no_such_customer(self, customer_retrieve_mock, card_de... method test_remove_unexpected_exception (line 485) | def test_remove_unexpected_exception( method test_api_list (line 505) | def test_api_list(self, customer_retrieve_mock): FILE: tests/test_charge.py class ChargeTest (line 39) | class ChargeTest(AssertStripeFksMixin, TestCase): method setUp (line 41) | def setUp(self): method test___str__ (line 71) | def test___str__(self): method test_capture_charge (line 117) | def test_capture_charge( method test_sync_from_stripe_data (line 206) | def test_sync_from_stripe_data( method test_sync_from_stripe_data_refunded_on_update (line 300) | def test_sync_from_stripe_data_refunded_on_update( method test_sync_from_stripe_data_refunded (line 436) | def test_sync_from_stripe_data_refunded( method test_sync_from_stripe_data_max_amount (line 555) | def test_sync_from_stripe_data_max_amount( method test_sync_from_stripe_data_unsupported_source (line 641) | def test_sync_from_stripe_data_unsupported_source( method test_sync_from_stripe_data_no_customer (line 700) | def test_sync_from_stripe_data_no_customer( method test_sync_from_stripe_data_with_transfer (line 798) | def test_sync_from_stripe_data_with_transfer( method test_sync_from_stripe_data_with_destination (line 901) | def test_sync_from_stripe_data_with_destination( method test__attach_objects_hook_missing_source_data (line 942) | def test__attach_objects_hook_missing_source_data( method test_max_size_large_charge_on_decimal_amount (line 1017) | def test_max_size_large_charge_on_decimal_amount( FILE: tests/test_coupon.py class TransferTest (line 14) | class TransferTest(TestCase): method test_retrieve_coupon (line 15) | def test_retrieve_coupon(self): class CouponTest (line 21) | class CouponTest(TestCase): method test_blank_coupon_str (line 22) | def test_blank_coupon_str(self): method test___str__ (line 26) | def test___str__(self): method test_human_readable_usd_off_forever (line 36) | def test_human_readable_usd_off_forever(self): method test_human_readable_eur_off_forever (line 46) | def test_human_readable_eur_off_forever(self): method test_human_readable_percent_off_forever (line 56) | def test_human_readable_percent_off_forever(self): method test_human_readable_percent_off_once (line 66) | def test_human_readable_percent_off_once(self): method test_human_readable_percent_off_one_month (line 76) | def test_human_readable_percent_off_one_month(self): method test_human_readable_percent_off_three_months (line 87) | def test_human_readable_percent_off_three_months(self): method test_human_readable_integer_percent_off_forever (line 98) | def test_human_readable_integer_percent_off_forever(self): class TestCouponDecimal (line 109) | class TestCouponDecimal: method test_decimal_percent_off_coupon (line 127) | def test_decimal_percent_off_coupon(self, inputted, expected): FILE: tests/test_customer.py class TestCustomer (line 64) | class TestCustomer(AssertStripeFksMixin, TestCase): method setUp (line 65) | def setUp(self): method test___str__ (line 82) | def test___str__(self): method test_balance (line 87) | def test_balance(self): method test_customer_dashboard_url (line 101) | def test_customer_dashboard_url(self): method test_customer_sync_unsupported_source (line 112) | def test_customer_sync_unsupported_source(self): method test_customer_sync_has_subscriber_metadata (line 128) | def test_customer_sync_has_subscriber_metadata(self): method test_customer_sync_has_subscriber_metadata_disabled (line 140) | def test_customer_sync_has_subscriber_metadata_disabled(self): method test_customer_sync_has_bad_subscriber_metadata (line 163) | def test_customer_sync_has_bad_subscriber_metadata(self): method test_customer_create_metadata_disabled (line 183) | def test_customer_create_metadata_disabled(self, customer_mock): method test_customer_sync_non_local_card (line 220) | def test_customer_sync_non_local_card( method test_customer_sync_bank_account_source (line 263) | def test_customer_sync_bank_account_source(self, bank_account_retrieve... method test_customer_sync_no_sources (line 287) | def test_customer_sync_no_sources(self, customer_mock): method test_customer_sync_default_source_string (line 316) | def test_customer_sync_default_source_string(self): method test_customer_sync_default_payment_method_string (line 342) | def test_customer_sync_default_payment_method_string( method test_customer_sync_null_default_payment_method (line 372) | def test_customer_sync_null_default_payment_method( method test_customer_purge_leaves_customer_record (line 439) | def test_customer_purge_leaves_customer_record( method test_customer_purge_detaches_sources (line 457) | def test_customer_purge_detaches_sources( method test_customer_purge_deletes_idempotency_key (line 485) | def test_customer_purge_deletes_idempotency_key(self, customer_api_cre... method test_customer_purge_raises_customer_exception (line 518) | def test_customer_purge_raises_customer_exception( method test_customer_delete_raises_unexpected_exception (line 548) | def test_customer_delete_raises_unexpected_exception( method test_add_card_set_default_true (line 572) | def test_add_card_set_default_true(self, customer_retrieve_mock): method test_add_card_set_default_false (line 582) | def test_add_card_set_default_false(self, customer_retrieve_mock): method test_add_card_set_default_false_with_single_card_still_becomes_default (line 592) | def test_add_card_set_default_false_with_single_card_still_becomes_def... method test_add_payment_method_obj (line 614) | def test_add_payment_method_obj(self, attach_mock, customer_retrieve_m... method test_add_payment_method_set_default_true (line 650) | def test_add_payment_method_set_default_true( method test_add_payment_method_set_default_false (line 700) | def test_add_payment_method_set_default_false( method test_charge_accepts_only_decimals (line 739) | def test_charge_accepts_only_decimals(self): method test_add_coupon_by_id (line 747) | def test_add_coupon_by_id(self, customer_retrieve_mock, coupon_retriev... method test_add_coupon_by_object (line 762) | def test_add_coupon_by_object(self, customer_retrieve_mock, coupon_ret... method test_refund_charge (line 811) | def test_refund_charge( method test_refund_charge_object_returned (line 906) | def test_refund_charge_object_returned( method test_calculate_refund_amount_partial_refund (line 979) | def test_calculate_refund_amount_partial_refund(self): method test_calculate_refund_above_max_refund (line 987) | def test_calculate_refund_above_max_refund(self): method test_charge_converts_dollars_into_cents (line 1012) | def test_charge_converts_dollars_into_cents( method test_charge_doesnt_require_invoice (line 1084) | def test_charge_doesnt_require_invoice( method test_charge_passes_extra_arguments (line 1133) | def test_charge_passes_extra_arguments( method test_charge_string_source (line 1182) | def test_charge_string_source( method test_charge_card_source (line 1223) | def test_charge_card_source( method test_retry_unpaid_invoices (line 1301) | def test_retry_unpaid_invoices( method test_retry_unpaid_invoices_none_unpaid (line 1374) | def test_retry_unpaid_invoices_none_unpaid( method test_retry_unpaid_invoices_expected_exception (line 1431) | def test_retry_unpaid_invoices_expected_exception( method test_retry_unpaid_invoices_unexpected_exception (line 1495) | def test_retry_unpaid_invoices_unexpected_exception( method test_send_invoice_success (line 1523) | def test_send_invoice_success(self, invoice_create_mock): method test_send_invoice_failure (line 1534) | def test_send_invoice_failure(self, invoice_create_mock): method test_sync_customer_with_discount (line 1549) | def test_sync_customer_with_discount(self, coupon_retrieve_mock): method test_sync_customer_discount_already_present (line 1559) | def test_sync_customer_discount_already_present(self, coupon_retrieve_... method test_sync_customer_delete_discount (line 1571) | def test_sync_customer_delete_discount(self): method test_sync_invoices (line 1593) | def test_sync_invoices( method test_sync_invoices_none (line 1607) | def test_sync_invoices_none( method test_sync_charges (line 1625) | def test_sync_charges( method test_sync_charges_none (line 1639) | def test_sync_charges_none( method test_sync_subscriptions (line 1658) | def test_sync_subscriptions( method test_sync_subscriptions_none (line 1672) | def test_sync_subscriptions_none( method test_subscribe_price_string_new_style (line 1685) | def test_subscribe_price_string_new_style( method test_subscribe_price_string_old_style (line 1722) | def test_subscribe_price_string_old_style( method test_subscription_shortcut_with_multiple_subscriptions_old_style (line 1758) | def test_subscription_shortcut_with_multiple_subscriptions_old_style( method test_subscription_shortcut_with_multiple_subscriptions_new_style_by_price (line 1803) | def test_subscription_shortcut_with_multiple_subscriptions_new_style_b... method test_subscription_shortcut_with_multiple_subscriptions_new_style_by_price_and_plan (line 1856) | def test_subscription_shortcut_with_multiple_subscriptions_new_style_b... method test_subscription_shortcut_with_invalid_subscriptions (line 1914) | def test_subscription_shortcut_with_invalid_subscriptions( method test_add_invoice_item (line 1970) | def test_add_invoice_item(self, invoiceitem_create_mock, invoiceitem_s... method test_add_invoice_item_djstripe_objects (line 2003) | def test_add_invoice_item_djstripe_objects( method test_add_invoice_item_bad_decimal (line 2028) | def test_add_invoice_item_bad_decimal(self): method test_upcoming_invoice_plan (line 2081) | def test_upcoming_invoice_plan( method test_is_subscribed_to_with_product_old_style (line 2154) | def test_is_subscribed_to_with_product_old_style( method test_is_subscribed_to_with_product_new_style (line 2184) | def test_is_subscribed_to_with_product_new_style( method test_is_subscribed_to_with_product_string_new_style (line 2211) | def test_is_subscribed_to_with_product_string_new_style( method test_is_subscribed_to_with_product_string_by_price (line 2238) | def test_is_subscribed_to_with_product_string_by_price( class TestCustomerLegacy (line 2260) | class TestCustomerLegacy(AssertStripeFksMixin, TestCase): method setUp (line 2261) | def setUp(self): method test_subscribe_plan_string_new_style (line 2288) | def test_subscribe_plan_string_new_style( method test_subscribe_plan_string_old_style (line 2327) | def test_subscribe_plan_string_old_style( method test_subscription_shortcut_with_multiple_subscriptions_new_style_by_plan (line 2364) | def test_subscription_shortcut_with_multiple_subscriptions_new_style_b... method test_subscription_shortcut_with_invalid_subscriptions (line 2415) | def test_subscription_shortcut_with_invalid_subscriptions( method test_upcoming_invoice (line 2508) | def test_upcoming_invoice( FILE: tests/test_discount.py class TestDiscount (line 30) | class TestDiscount(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 73) | def test_sync_from_stripe_data( FILE: tests/test_dispute.py class TestDispute (line 28) | class TestDispute(TestCase): method setUp (line 29) | def setUp(self): method test___str__ (line 63) | def test___str__( method test_sync_from_stripe_data (line 103) | def test_sync_from_stripe_data( method test__attach_objects_post_save_hook (line 145) | def test__attach_objects_post_save_hook( method test_get_stripe_dashboard_url (line 203) | def test_get_stripe_dashboard_url( FILE: tests/test_django.py class TestRunManagePyCheck (line 6) | class TestRunManagePyCheck(TestCase): method test_manage_py_check (line 14) | def test_manage_py_check(self): FILE: tests/test_enums.py class TestEnumMetaClass (line 9) | class TestEnumMetaClass(TestCase): method test_python2_prepare (line 10) | def test_python2_prepare(self): class TestEnumHumanize (line 15) | class TestEnumHumanize(TestCase): method test_humanize (line 16) | def test_humanize(self): FILE: tests/test_event.py class EventTest (line 23) | class EventTest(TestCase): method setUp (line 24) | def setUp(self): method test___str__ (line 34) | def test___str__(self): method test_invoke_webhook_handlers_event_with_log_stripe_error (line 42) | def test_invoke_webhook_handlers_event_with_log_stripe_error(self): method test_invoke_webhook_handlers_event_with_raise_stripe_error (line 48) | def test_invoke_webhook_handlers_event_with_raise_stripe_error(self): method test_invoke_webhook_handlers_event_when_invalid (line 54) | def test_invoke_webhook_handlers_event_when_invalid(self): method test_process_event (line 62) | def test_process_event( method test_process_event_exists (line 90) | def test_process_event_exists( method test_process_event_failure_rolls_back (line 117) | def test_process_event_failure_rolls_back(self, invoke_webhook_handler... method _create_event (line 154) | def _create_event(self, event_data, event_retrieve_mock): class EventRaceConditionTest (line 161) | class EventRaceConditionTest(TestCase): method test_process_event_race_condition (line 171) | def test_process_event_race_condition( FILE: tests/test_event_handlers.py class EventTestCase (line 157) | class EventTestCase(TestCase): method _create_event (line 163) | def _create_event(self, event_data, event_retrieve_mock, patch_data=No... class TestAccountEvents (line 175) | class TestAccountEvents(EventTestCase): method setUp (line 176) | def setUp(self): method test_account_deauthorized_event (line 187) | def test_account_deauthorized_event(self, event_retrieve_mock): method test_account_authorized_event (line 194) | def test_account_authorized_event(self, event_retrieve_mock): method test_custom_account_external_account_created_bank_account_event (line 207) | def test_custom_account_external_account_created_bank_account_event( method test_custom_account_external_account_deleted_bank_account_event (line 236) | def test_custom_account_external_account_deleted_bank_account_event( method test_custom_account_external_account_updated_bank_account_event (line 265) | def test_custom_account_external_account_updated_bank_account_event( method test_custom_account_external_account_created_card_event (line 307) | def test_custom_account_external_account_created_card_event( method test_custom_account_external_account_deleted_card_event (line 334) | def test_custom_account_external_account_deleted_card_event( method test_custom_account_external_account_updated_card_event (line 363) | def test_custom_account_external_account_updated_card_event( method test_express_account_external_account_created_bank_account_event (line 402) | def test_express_account_external_account_created_bank_account_event( method test_express_account_external_account_deleted_bank_account_event (line 431) | def test_express_account_external_account_deleted_bank_account_event( method test_express_account_external_account_updated_bank_account_event (line 460) | def test_express_account_external_account_updated_bank_account_event( method test_express_account_external_account_created_card_event (line 502) | def test_express_account_external_account_created_card_event( method test_express_account_external_account_deleted_card_event (line 529) | def test_express_account_external_account_deleted_card_event( method test_express_account_external_account_updated_card_event (line 558) | def test_express_account_external_account_updated_card_event( method test_standard_account_updated_event (line 599) | def test_standard_account_updated_event( method test_express_account_updated_event (line 634) | def test_express_account_updated_event( method test_custom_account_updated_event (line 669) | def test_custom_account_updated_event( class TestChargeEvents (line 699) | class TestChargeEvents(EventTestCase): method setUp (line 700) | def setUp(self): method test_charge_created (line 754) | def test_charge_created( class TestCheckoutEvents (line 786) | class TestCheckoutEvents(EventTestCase): method setUp (line 787) | def setUp(self): method test_checkout_session_completed (line 837) | def test_checkout_session_completed( method test_checkout_session_async_payment_succeeded (line 905) | def test_checkout_session_async_payment_succeeded( method test_checkout_session_async_payment_failed (line 975) | def test_checkout_session_async_payment_failed( method test_checkout_session_completed_customer_subscriber_added (line 1045) | def test_checkout_session_completed_customer_subscriber_added( class TestCustomerEvents (line 1088) | class TestCustomerEvents(EventTestCase): method setUp (line 1089) | def setUp(self): method test_customer_created (line 1097) | def test_customer_created(self, event_retrieve_mock, customer_retrieve... method test_customer_metadata_created (line 1114) | def test_customer_metadata_created( method test_customer_metadata_updated (line 1142) | def test_customer_metadata_updated( method test_customer_deleted (line 1179) | def test_customer_deleted( method test_customer_discount_created (line 1201) | def test_customer_discount_created(self, event_retrieve_mock, coupon_r... method test_customer_discount_deleted (line 1216) | def test_customer_discount_deleted(self, event_retrieve_mock, coupon_r... method test_customer_card_created (line 1235) | def test_customer_card_created( method test_customer_unknown_source_created (line 1251) | def test_customer_unknown_source_created( method test_customer_default_source_deleted (line 1271) | def test_customer_default_source_deleted(self, customer_retrieve_mock): method test_customer_source_double_delete (line 1287) | def test_customer_source_double_delete(self, customer_retrieve_mock): method test_customer_subscription_created (line 1306) | def test_customer_subscription_created( method test_customer_subscription_deleted (line 1377) | def test_customer_subscription_deleted( method test_customer_bogus_event_type (line 1420) | def test_customer_bogus_event_type( class TestDisputeEvents (line 1436) | class TestDisputeEvents(EventTestCase): method setUp (line 1437) | def setUp(self): method test_dispute_created (line 1475) | def test_dispute_created( method test_dispute_funds_withdrawn (line 1526) | def test_dispute_funds_withdrawn( method test_dispute_updated (line 1576) | def test_dispute_updated( method test_dispute_closed (line 1626) | def test_dispute_closed( method test_dispute_funds_reinstated_full (line 1681) | def test_dispute_funds_reinstated_full( method test_dispute_funds_reinstated_partial (line 1736) | def test_dispute_funds_reinstated_partial( class TestFileEvents (line 1754) | class TestFileEvents(EventTestCase): method setUp (line 1755) | def setUp(self): method test_file_created (line 1771) | def test_file_created(self, event_retrieve_mock, file_retrieve_mock): class TestInvoiceEvents (line 1779) | class TestInvoiceEvents(EventTestCase): method setUp (line 1780) | def setUp(self): method test_invoice_created_no_existing_customer (line 1831) | def test_invoice_created_no_existing_customer( method test_invoice_created (line 1902) | def test_invoice_created( method test_invoice_deleted (line 1976) | def test_invoice_deleted( method test_invoice_upcoming (line 2002) | def test_invoice_upcoming(self): class TestInvoiceItemEvents (line 2009) | class TestInvoiceItemEvents(EventTestCase): method setUp (line 2010) | def setUp(self): method test_invoiceitem_created (line 2059) | def test_invoiceitem_created( method test_invoiceitem_deleted (line 2155) | def test_invoiceitem_deleted( class TestPlanEvents (line 2199) | class TestPlanEvents(EventTestCase): method test_plan_created (line 2205) | def test_plan_created( method test_plan_updated_request_object (line 2227) | def test_plan_updated_request_object( method test_plan_deleted (line 2249) | def test_plan_deleted(self, product_retrieve_mock, plan_retrieve_mock): class TestPriceEvents (line 2262) | class TestPriceEvents(EventTestCase): method test_price_created (line 2268) | def test_price_created( method test_price_updated (line 2290) | def test_price_updated( method test_price_deleted (line 2312) | def test_price_deleted(self, product_retrieve_mock, price_retrieve_mock): class TestPaymentMethodEvents (line 2325) | class TestPaymentMethodEvents(AssertStripeFksMixin, EventTestCase): method setUp (line 2326) | def setUp(self): method test_payment_method_attached (line 2334) | def test_payment_method_attached( method test_card_payment_method_attached (line 2358) | def test_card_payment_method_attached( method test_payment_method_detached (line 2384) | def test_payment_method_detached( method test_card_payment_method_detached (line 2417) | def test_card_payment_method_detached( class TestPaymentIntentEvents (line 2439) | class TestPaymentIntentEvents(EventTestCase): method test_payment_intent_succeeded_with_destination_charge (line 2465) | def test_payment_intent_succeeded_with_destination_charge( class TestSubscriptionScheduleEvents (line 2504) | class TestSubscriptionScheduleEvents(EventTestCase): method test_subscription_schedule_created (line 2514) | def test_subscription_schedule_created( method test_subscription_schedule_and_subscription_created (line 2583) | def test_subscription_schedule_and_subscription_created( method test_subscription_schedule_canceled (line 2619) | def test_subscription_schedule_canceled( method test_subscription_schedule_completed (line 2664) | def test_subscription_schedule_completed( method test_subscription_schedule_expiring (line 2705) | def test_subscription_schedule_expiring( method test_subscription_schedule_released (line 2745) | def test_subscription_schedule_released( method test_subscription_schedule_updated (line 2827) | def test_subscription_schedule_updated( method test_subscription_schedule_aborted (line 2922) | def test_subscription_schedule_aborted( class TestTaxIdEvents (line 2974) | class TestTaxIdEvents(EventTestCase): method test_tax_id_created (line 2990) | def test_tax_id_created( method test_tax_id_updated (line 3011) | def test_tax_id_updated( method test_tax_id_deleted (line 3043) | def test_tax_id_deleted( class TestTransferEvents (line 3060) | class TestTransferEvents(EventTestCase): method test_transfer_created (line 3069) | def test_transfer_created( method test_transfer_deleted (line 3096) | def test_transfer_deleted( class TestOrderEvents (line 3117) | class TestOrderEvents(EventTestCase): method test_order_created (line 3160) | def test_order_created( method test_order_updated (line 3230) | def test_order_updated( method test_order_submitted (line 3301) | def test_order_submitted( method test_order_processing (line 3372) | def test_order_processing( method test_order_cancelled (line 3443) | def test_order_cancelled( method test_order_complet (line 3514) | def test_order_complet( FILE: tests/test_fields.py class TestStripeDecimalCurrencyAmountField (line 18) | class TestStripeDecimalCurrencyAmountField: method test_stripe_to_db_none_val (line 21) | def test_stripe_to_db_none_val(self): method test_stripe_to_db_decimal_val (line 32) | def test_stripe_to_db_decimal_val(self, expected, inputted): class TestStripeDateTimeField (line 37) | class TestStripeDateTimeField(TestCase): method test_stripe_to_db_none_val (line 40) | def test_stripe_to_db_none_val(self): method test_stripe_to_db_datetime_val (line 43) | def test_stripe_to_db_datetime_val(self): class TestStripePercentField (line 50) | class TestStripePercentField: method test_stripe_percent_field (line 68) | def test_stripe_percent_field(self, inputted, expected): FILE: tests/test_file_link.py class TestFileLink (line 18) | class TestFileLink(TestCase): method test___str__ (line 29) | def test___str__(self, mock_file_link_retrieve, mock_file_upload_retri... method test_sync_from_stripe_data (line 46) | def test_sync_from_stripe_data( FILE: tests/test_file_upload.py class TestFileLink (line 19) | class TestFileLink(TestCase): method test_file_upload_api_retrieve (line 25) | def test_file_upload_api_retrieve(self, mock_file_upload_retrieve): method test_sync_from_stripe_data (line 64) | def test_sync_from_stripe_data(self, mock_file_upload_retrieve): class TestFileUploadStr (line 74) | class TestFileUploadStr: method test___str__ (line 76) | def test___str__(self, file_purpose): FILE: tests/test_forms.py class TestCustomActionForm (line 19) | class TestCustomActionForm: method test___init__ (line 23) | def test___init__(self, action_name, monkeypatch): class TestAPIKeyAdminCreateForm (line 57) | class TestAPIKeyAdminCreateForm: method test__post_clean (line 59) | def test__post_clean(self, secret, monkeypatch): FILE: tests/test_idempotency_keys.py class IdempotencyKeyTest (line 11) | class IdempotencyKeyTest(TestCase): method test_generate_idempotency_key (line 12) | def test_generate_idempotency_key(self): method test_clear_expired_idempotency_keys (line 30) | def test_clear_expired_idempotency_keys(self): FILE: tests/test_invoice.py class InvoiceTest (line 42) | class InvoiceTest(AssertStripeFksMixin, TestCase): method setUp (line 43) | def setUp(self): method test_sync_from_stripe_data (line 121) | def test_sync_from_stripe_data( method test_sync_from_stripe_data_update_total_tax_amounts (line 210) | def test_sync_from_stripe_data_update_total_tax_amounts( method test_sync_from_stripe_data_default_payment_method (line 335) | def test_sync_from_stripe_data_default_payment_method( method test_billing_reason_enum (line 404) | def test_billing_reason_enum( method test_invoice_status_enum (line 474) | def test_invoice_status_enum( method test_retry_true (line 543) | def test_retry_true( method test_retry_false (line 616) | def test_retry_false( method test_status_draft (line 680) | def test_status_draft( method test_status_open (line 740) | def test_status_open( method test_status_paid (line 800) | def test_status_paid( method test_status_uncollectible (line 858) | def test_status_uncollectible( method test_status_void (line 918) | def test_status_void( method test_sync_no_subscription (line 992) | def test_sync_no_subscription( method test_invoice_with_subscription_invoice_items (line 1065) | def test_invoice_with_subscription_invoice_items( method test_invoice_with_no_invoice_items (line 1118) | def test_invoice_with_no_invoice_items( method test_invoice_with_non_subscription_invoice_items (line 1177) | def test_invoice_with_non_subscription_invoice_items( method test_invoice_plan_from_invoice_items (line 1240) | def test_invoice_plan_from_invoice_items( method test_invoice_plan_from_subscription (line 1300) | def test_invoice_plan_from_subscription( method test_invoice_without_plan (line 1356) | def test_invoice_without_plan( method test_upcoming_invoice (line 1435) | def test_upcoming_invoice( method test_upcoming_invoice_with_subscription (line 1565) | def test_upcoming_invoice_with_subscription( method test_upcoming_invoice_with_subscription_plan (line 1665) | def test_upcoming_invoice_with_subscription_plan( method test_no_upcoming_invoices (line 1727) | def test_no_upcoming_invoices(self, invoice_upcoming_mock): method test_upcoming_invoice_error (line 1735) | def test_upcoming_invoice_error(self, invoice_upcoming_mock): class TestInvoiceDecimal (line 1740) | class TestInvoiceDecimal: method test_decimal_tax_percent (line 1758) | def test_decimal_tax_percent(self, inputted, expected, monkeypatch): ... FILE: tests/test_invoiceitem.py class InvoiceItemTest (line 41) | class InvoiceItemTest(AssertStripeFksMixin, TestCase): method setUp (line 42) | def setUp(self): method test___str__ (line 121) | def test___str__( method test_sync_with_subscription (line 201) | def test_sync_with_subscription( method test_sync_expanded_invoice_with_subscription (line 312) | def test_sync_expanded_invoice_with_subscription( method test_sync_proration (line 420) | def test_sync_proration( method test_sync_null_invoice (line 505) | def test_sync_null_invoice( method test_sync_with_taxes (line 588) | def test_sync_with_taxes( FILE: tests/test_line_item.py class LineItemTest (line 30) | class LineItemTest(AssertStripeFksMixin, TestCase): method setUp (line 31) | def setUp(self): method test_sync_from_stripe_data (line 108) | def test_sync_from_stripe_data( method test_api_list (line 138) | def test_api_list( FILE: tests/test_managers.py class SubscriptionManagerTest (line 24) | class SubscriptionManagerTest(TestCase): method setUp (line 25) | def setUp(self): method test_started_during_no_records (line 108) | def test_started_during_no_records(self): method test_started_during_has_records (line 111) | def test_started_during_has_records(self): method test_canceled_during (line 114) | def test_canceled_during(self): method test_canceled_all (line 117) | def test_canceled_all(self): method test_active_all (line 120) | def test_active_all(self): method test_started_plan_summary (line 123) | def test_started_plan_summary(self): method test_active_plan_summary (line 130) | def test_active_plan_summary(self): method test_canceled_plan_summary (line 137) | def test_canceled_plan_summary(self): method test_churn (line 144) | def test_churn(self): class TransferManagerTest (line 150) | class TransferManagerTest(TestCase): method test_transfer_summary (line 157) | def test_transfer_summary( class ChargeManagerTest (line 184) | class ChargeManagerTest(TestCase): method setUp (line 185) | def setUp(self): method test_is_during_april_2015 (line 273) | def test_is_during_april_2015(self): method test_get_paid_totals_for_april_2015 (line 297) | def test_get_paid_totals_for_april_2015(self): FILE: tests/test_migrations.py class TestCustomerSubscriberFK (line 13) | class TestCustomerSubscriberFK(TestCase): method setUp (line 18) | def setUp(self): method test_customer_subscriber_fk_to_subscriber_model (line 21) | def test_customer_subscriber_fk_to_subscriber_model(self): method test_customer_subscriber_fk_fallback_to_auth_user_model (line 31) | def test_customer_subscriber_fk_fallback_to_auth_user_model(self): FILE: tests/test_mixins.py class TestPaymentsContextMixin (line 18) | class TestPaymentsContextMixin(TestCase): method test_get_context_data (line 19) | def test_get_context_data(self): class TestSubscriptionMixin (line 43) | class TestSubscriptionMixin(TestCase): method setUp (line 44) | def setUp(self): method test_get_context_data (line 56) | def test_get_context_data(self, stripe_create_customer_mock): FILE: tests/test_order.py class TestOrder (line 38) | class TestOrder(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 79) | def test_sync_from_stripe_data( method test__manipulate_stripe_object_hook (line 172) | def test__manipulate_stripe_object_hook(self): class TestOrderStr (line 192) | class TestOrderStr: method test___str__ (line 203) | def test___str__(self, order_status, monkeypatch): class TestOrderMethods (line 285) | class TestOrderMethods: method test_cancel (line 337) | def test_cancel( method test_reopen (line 431) | def test_reopen( method test_submit (line 525) | def test_submit( FILE: tests/test_payment_intent.py function _get_fake_payment_intent_destination_charge_no_customer (line 32) | def _get_fake_payment_intent_destination_charge_no_customer(): function _get_fake_payment_intent_i_no_customer (line 40) | def _get_fake_payment_intent_i_no_customer(): class TestStrPaymentIntent (line 46) | class TestStrPaymentIntent: method test___str__ (line 60) | def test___str__(self, fake_intent_data, has_account, has_customer, mo... class PaymentIntentTest (line 147) | class PaymentIntentTest(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 188) | def test_sync_from_stripe_data( method test_status_enum (line 273) | def test_status_enum( method test_canceled_intent (line 343) | def test_canceled_intent( FILE: tests/test_payment_method.py class TestPaymentMethod (line 26) | class TestPaymentMethod: method mock_customer_get (line 31) | def mock_customer_get(*args, **kwargs): method test___str__ (line 35) | def test___str__(self, monkeypatch, customer_exists): method test_get_stripe_dashboard_url (line 59) | def test_get_stripe_dashboard_url(self, monkeypatch, customer_exists): method test_sync_from_stripe_data (line 80) | def test_sync_from_stripe_data(self, monkeypatch, customer_exists): class PaymentMethodTest (line 94) | class PaymentMethodTest(AssertStripeFksMixin, TestCase): method setUp (line 95) | def setUp(self): method test_attach (line 111) | def test_attach(self, attach_mock): method test_attach_obj (line 129) | def test_attach_obj(self, attach_mock): method test_attach_synced (line 148) | def test_attach_synced(self, attach_mock): method test_detach (line 171) | def test_detach(self): method test_detach_card (line 231) | def test_detach_card(self): method test_sync_null_customer (line 308) | def test_sync_null_customer(self): FILE: tests/test_payout.py class TestPayout (line 30) | class TestPayout(AssertStripeFksMixin, TestCase): method setUp (line 31) | def setUp(self): method test_sync_from_stripe_data (line 58) | def test_sync_from_stripe_data(self, balance_transaction_retrieve_mock): method test___str__ (line 84) | def test___str__(self, balance_transaction_retrieve_mock): FILE: tests/test_plan.py class PlanCreateTest (line 27) | class PlanCreateTest(AssertStripeFksMixin, TestCase): method setUp (line 28) | def setUp(self): method test_create_from_product_id (line 40) | def test_create_from_product_id(self, plan_create_mock, product_retrie... method test_create_from_stripe_product (line 65) | def test_create_from_stripe_product(self, plan_create_mock, product_re... method test_create_from_djstripe_product (line 94) | def test_create_from_djstripe_product( method test_create_with_metadata (line 122) | def test_create_with_metadata(self, plan_create_mock, product_retrieve... class PlanTest (line 149) | class PlanTest(AssertStripeFksMixin, TestCase): method setUp (line 152) | def setUp(self): method test___str__ (line 161) | def test___str__(self): method test___str__null_product (line 167) | def test___str__null_product(self): method test_stripe_plan (line 177) | def test_stripe_plan(self, plan_retrieve_mock): method test_stripe_plan_null_product (line 198) | def test_stripe_plan_null_product(self): method test_stripe_tier_plan (line 212) | def test_stripe_tier_plan(self): method test_stripe_metered_plan (line 228) | def test_stripe_metered_plan(self): class TestHumanReadablePlan (line 244) | class TestHumanReadablePlan: method get_fake_price_NONE_flat_amount (line 248) | def get_fake_price_NONE_flat_amount(): method get_fake_price_0_flat_amount (line 254) | def get_fake_price_0_flat_amount(): method get_fake_price_0_amount (line 260) | def get_fake_price_0_amount(): method test_human_readable (line 286) | def test_human_readable(self, fake_plan_data, expected_str, monkeypatch): FILE: tests/test_price.py class PriceCreateTest (line 27) | class PriceCreateTest(AssertStripeFksMixin, TestCase): method setUp (line 28) | def setUp(self): method test_create_from_product_id (line 40) | def test_create_from_product_id(self, price_create_mock, product_retri... method test_create_from_stripe_product (line 67) | def test_create_from_stripe_product(self, price_create_mock, product_r... method test_create_from_djstripe_product (line 96) | def test_create_from_djstripe_product( method test_create_with_metadata (line 124) | def test_create_with_metadata(self, price_create_mock, product_retriev... class PriceTest (line 151) | class PriceTest(AssertStripeFksMixin, TestCase): method setUp (line 152) | def setUp(self): method test_stripe_price (line 162) | def test_stripe_price(self, price_retrieve_mock): method test_stripe_tier_price (line 184) | def test_stripe_tier_price(self, price_retrieve_mock): method test_stripe_metered_price (line 200) | def test_stripe_metered_price(self, price_retrieve_mock): method test_stripe_onetime_price (line 216) | def test_stripe_onetime_price(self, price_retrieve_mock): class TestStrPrice (line 233) | class TestStrPrice: method test___str__ (line 243) | def test___str__(self, fake_price_data, monkeypatch): class TestHumanReadablePrice (line 268) | class TestHumanReadablePrice: method get_fake_price_NONE_flat_amount (line 272) | def get_fake_price_NONE_flat_amount(): method get_fake_price_0_flat_amount (line 278) | def get_fake_price_0_flat_amount(): method get_fake_price_0_amount (line 284) | def get_fake_price_0_amount(): method test_human_readable (line 311) | def test_human_readable(self, fake_price_data, expected_str, monkeypat... FILE: tests/test_product.py class TestProduct (line 26) | class TestProduct: method mock_file_retrieve (line 30) | def mock_file_retrieve(*args, **kwargs): method mock_account_retrieve (line 33) | def mock_account_retrieve(*args, **kwargs): method mock_product_get (line 36) | def mock_product_get(self, *args, **kwargs): method test___str__ (line 40) | def test___str__(self, count, monkeypatch): method test_sync_from_stripe_data (line 68) | def test_sync_from_stripe_data(self, monkeypatch): FILE: tests/test_refund.py class RefundTest (line 30) | class RefundTest(AssertStripeFksMixin, TestCase): method setUp (line 31) | def setUp(self): method test_sync_from_stripe_data (line 108) | def test_sync_from_stripe_data( method test___str__ (line 177) | def test___str__( method test_reason_enum (line 249) | def test_reason_enum( method test_status_enum (line 331) | def test_status_enum( FILE: tests/test_session.py class SessionTest (line 31) | class SessionTest(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 72) | def test_sync_from_stripe_data( method test___str__ (line 153) | def test___str__( class TestSession (line 171) | class TestSession: method test__attach_objects_post_save_hook (line 181) | def test__attach_objects_post_save_hook( FILE: tests/test_settings.py class TestSubscriberModelRetrievalMethod (line 15) | class TestSubscriberModelRetrievalMethod(TestCase): method test_with_user (line 16) | def test_with_user(self): method test_with_org (line 24) | def test_with_org(self): method test_with_org_static (line 32) | def test_with_org_static(self): method test_bad_model_name (line 40) | def test_bad_model_name(self): method test_unknown_model (line 51) | def test_unknown_model(self): method test_no_email_model (line 63) | def test_no_email_model(self): method test_no_callback (line 71) | def test_no_callback(self): method test_bad_callback (line 83) | def test_bad_callback(self): method test_get_callback_function_with_valid_func_callable (line 91) | def test_get_callback_function_with_valid_func_callable(self): method test_get_callback_function_with_valid_string_callable (line 99) | def test_get_callback_function_with_valid_string_callable(self, import... method test_get_callback_function_import_error (line 107) | def test_get_callback_function_import_error(self): method test_get_callback_function_with_non_callable_string (line 113) | def test_get_callback_function_with_non_callable_string(self, import_s... method test_get_callback_function_ (line 119) | def test_get_callback_function_(self): class TestStripeApiVersion (line 125) | class TestStripeApiVersion(TestCase): method test_global_stripe_api_version (line 126) | def test_global_stripe_api_version(self): class TestGetStripeApiVersion (line 135) | class TestGetStripeApiVersion(TestCase): method test_with_default (line 136) | def test_with_default(self): method test_with_override (line 143) | def test_with_override(self): class TestObjectPatching (line 150) | class TestObjectPatching(TestCase): method test_object_patching (line 156) | def test_object_patching(self, mock): FILE: tests/test_setup_intent.py class TestStrSetupIntent (line 26) | class TestStrSetupIntent: method get_fake_setup_intent_destination_charge_no_customer (line 30) | def get_fake_setup_intent_destination_charge_no_customer(): method test___str__ (line 46) | def test___str__(self, fake_intent_data, has_account, has_customer, mo... class SetupIntentTest (line 90) | class SetupIntentTest(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 94) | def test_sync_from_stripe_data(self, customer_retrieve_mock): method test_status_enum (line 113) | def test_status_enum(self, customer_retrieve_mock): method test_canceled_intent (line 134) | def test_canceled_intent(self, customer_retrieve_mock): FILE: tests/test_shipping_rate.py class ShippingRateTest (line 21) | class ShippingRateTest(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 22) | def test_sync_from_stripe_data(self): method test_sync_from_stripe_data_with_tax_code (line 42) | def test_sync_from_stripe_data_with_tax_code(self, tax_code_retrieve_m... method test___str__ (line 59) | def test___str__(self): FILE: tests/test_source.py class SourceTest (line 22) | class SourceTest(AssertStripeFksMixin, TestCase): method setUp (line 23) | def setUp(self): method test_attach_objects_hook_without_customer (line 38) | def test_attach_objects_hook_without_customer(self): method test_sync_from_stripe_data (line 50) | def test_sync_from_stripe_data(self): method test___str__ (line 63) | def test___str__(self): method test_detach (line 81) | def test_detach(self, source_retrieve_mock): FILE: tests/test_stripe_model.py class ExampleStripeModel (line 15) | class ExampleStripeModel(StripeModel): class TestStripeModelExceptions (line 20) | class TestStripeModelExceptions(TestCase): method test_no_object_value (line 21) | def test_no_object_value(self): method test_bad_object_value (line 32) | def test_bad_object_value(self): function test__api_delete (line 50) | def test__api_delete( function test_api_retrieve (line 82) | def test_api_retrieve( function test_api_retrieve_reverse_foreign_key_lookup (line 102) | def test_api_retrieve_reverse_foreign_key_lookup(mock_stripe_class): function test__find_owner_account_for_empty_data (line 156) | def test__find_owner_account_for_empty_data( function test__find_owner_account (line 189) | def test__find_owner_account( function test__find_owner_account_for_webhook_event_trigger (line 246) | def test__find_owner_account_for_webhook_event_trigger( FILE: tests/test_subscription.py class SubscriptionStrTest (line 57) | class SubscriptionStrTest(TestCase): method setUp (line 58) | def setUp(self): method test___str__ (line 77) | def test___str__( class SubscriptionTest (line 95) | class SubscriptionTest(AssertStripeFksMixin, TestCase): method setUp (line 138) | def setUp( method test_sync_from_stripe_data (line 187) | def test_sync_from_stripe_data( method test_sync_from_stripe_data_default_source_string (line 224) | def test_sync_from_stripe_data_default_source_string( method test_sync_items_with_tax_rates (line 250) | def test_sync_items_with_tax_rates( method test_is_status_temporarily_current (line 283) | def test_is_status_temporarily_current( method test_is_status_temporarily_current_false (line 313) | def test_is_status_temporarily_current_false( method test_is_status_temporarily_current_false_and_canceled (line 339) | def test_is_status_temporarily_current_false_and_canceled( method test_extend (line 372) | def test_extend( method test_extend_negative_delta (line 420) | def test_extend_negative_delta( method test_extend_with_trial (line 456) | def test_extend_with_trial( method test_update (line 505) | def test_update( method test_update_deprecation_warnings_raised (line 547) | def test_update_deprecation_warnings_raised( method test_update_with_plan_model (line 577) | def test_update_with_plan_model( method test_cancel_now (line 619) | def test_cancel_now( method test_cancel_at_period_end (line 670) | def test_cancel_at_period_end( method test_cancel_during_trial_sets_at_period_end (line 729) | def test_cancel_during_trial_sets_at_period_end( method test_cancel_and_reactivate (line 776) | def test_cancel_and_reactivate( method test_cancel_already_canceled (line 829) | def test_cancel_already_canceled( method test_cancel_error_in_cancel (line 854) | def test_cancel_error_in_cancel( method test_sync_multi_plan (line 884) | def test_sync_multi_plan( method test_update_multi_plan (line 945) | def test_update_multi_plan( method test_remove_all_multi_plan (line 1045) | def test_remove_all_multi_plan( method test_sync_metered_plan (line 1116) | def test_sync_metered_plan( method test_api_list (line 1153) | def test_api_list(self, subscription_list_mock): method test_api_list_with_no_status (line 1167) | def test_api_list_with_no_status(self, subscription_list_mock): class TestSubscriptionDecimal (line 1181) | class TestSubscriptionDecimal: method test_decimal_application_fee_percent (line 1199) | def test_decimal_application_fee_percent( # noqa: C901 FILE: tests/test_subscription_item.py class SubscriptionItemTest (line 42) | class SubscriptionItemTest(AssertStripeFksMixin, TestCase): method setUp (line 85) | def setUp( method test_sync_from_stripe_data_metered_subscription (line 134) | def test_sync_from_stripe_data_metered_subscription( method test_sync_items_with_tax_rates (line 183) | def test_sync_items_with_tax_rates( method test_sync_multi_plan_subscription (line 259) | def test_sync_multi_plan_subscription( FILE: tests/test_subscription_schedule.py class SubscriptionScheduleTest (line 33) | class SubscriptionScheduleTest(AssertStripeFksMixin, TestCase): method setUp (line 76) | def setUp( method test_sync_from_stripe_data (line 126) | def test_sync_from_stripe_data( method test___str__ (line 149) | def test___str__( method test_release (line 169) | def test_release( method test_cancel (line 199) | def test_cancel( method test_update (line 229) | def test_update( FILE: tests/test_sync.py function capture_stdout (line 19) | def capture_stdout(): class TestSyncSubscriber (line 32) | class TestSyncSubscriber(TestCase): method setUp (line 33) | def setUp(self): method test_sync_success (line 47) | def test_sync_success( method test_sync_fail (line 74) | def test_sync_fail(self, stripe_customer_create_mock, api_retrieve_mock): FILE: tests/test_tax_code.py class TaxCodeTest (line 15) | class TaxCodeTest(TestCase): method test_sync_from_stripe_data (line 16) | def test_sync_from_stripe_data(self): method test___str__ (line 21) | def test___str__(self): FILE: tests/test_tax_id.py class TestTaxIdStr (line 19) | class TestTaxIdStr(TestCase): method test___str__ (line 30) | def test___str__( class TestTransfer (line 42) | class TestTransfer(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 53) | def test_sync_from_stripe_data( method test__api_create (line 82) | def test__api_create( method test__api_create_no_id_kwarg (line 110) | def test__api_create_no_id_kwarg( method test__api_create_no_customer (line 128) | def test__api_create_no_customer( method test_api_retrieve (line 149) | def test_api_retrieve( method test_api_list (line 172) | def test_api_list( FILE: tests/test_tax_rates.py class TaxRateTest (line 16) | class TaxRateTest(TestCase): method test_sync_from_stripe_data (line 17) | def test_sync_from_stripe_data(self): method test___str__ (line 25) | def test___str__(self): class TestTaxRateDecimal (line 34) | class TestTaxRateDecimal: method test_decimal_tax_percent (line 52) | def test_decimal_tax_percent(self, inputted, expected): FILE: tests/test_transfer.py function FAKE_TRANSFER_COMPLETE_REVERSAL (line 22) | def FAKE_TRANSFER_COMPLETE_REVERSAL(): function FAKE_TRANSFER_PARTIAL_REVERSAL (line 29) | def FAKE_TRANSFER_PARTIAL_REVERSAL(): class TestTransferStr (line 36) | class TestTransferStr: method test___str__ (line 57) | def test___str__( class TestTransfer (line 78) | class TestTransfer(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 93) | def test_sync_from_stripe_data( method test_fee (line 128) | def test_fee( method test_get_stripe_dashboard_url (line 153) | def test_get_stripe_dashboard_url( FILE: tests/test_transfer_reversal.py class TestTransferReversalStr (line 24) | class TestTransferReversalStr(TestCase): method test___str__ (line 41) | def test___str__( class TestTransfer (line 54) | class TestTransfer(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 71) | def test_sync_from_stripe_data( method test_api_retrieve (line 112) | def test_api_retrieve( method test__api_create (line 144) | def test__api_create( method test_api_list (line 161) | def test_api_list(self, transfer_reversal_list_mock): method test_is_valid_object (line 175) | def test_is_valid_object(self): FILE: tests/test_usage_record.py class TestUsageRecord (line 26) | class TestUsageRecord(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data (line 48) | def test_sync_from_stripe_data( method test___str__ (line 102) | def test___str__( method test__api_create (line 154) | def test__api_create( FILE: tests/test_usage_record_summary.py class TestUsageRecordSummary (line 29) | class TestUsageRecordSummary(AssertStripeFksMixin, TestCase): method test_sync_from_stripe_data_with_null_invoice (line 51) | def test_sync_from_stripe_data_with_null_invoice( method test_sync_from_stripe_data (line 118) | def test_sync_from_stripe_data( method test___str__ (line 210) | def test___str__( method test_api_list (line 265) | def test_api_list( FILE: tests/test_utils.py class TestTimestampConversion (line 23) | class TestTimestampConversion(TestCase): method test_conversion (line 24) | def test_conversion(self): method test_conversion_no_tz (line 35) | def test_conversion_no_tz(self): class TestGetSupportedCurrencyChoices (line 40) | class TestGetSupportedCurrencyChoices(TestCase): method test_get_choices (line 50) | def test_get_choices( class TestUtils (line 67) | class TestUtils(TestCase): method test_get_friendly_currency_amount (line 68) | def test_get_friendly_currency_amount(self): FILE: tests/test_views.py class TestConfirmCustomActionView (line 39) | class TestConfirmCustomActionView: method dummy_get_response (line 51) | def dummy_get_response(self, request): method test_get_form_kwargs (line 64) | def test_get_form_kwargs(self, action_name, admin_user, monkeypatch): method test_form_valid (line 108) | def test_form_valid(self, djstripe_owner_account_exists, action_name, ... method test_form_invalid (line 180) | def test_form_invalid( method test__sync_all_instances (line 237) | def test__sync_all_instances(self, fake_selected_pks, monkeypatch): method test__resync_instances (line 293) | def test__resync_instances(self, djstripe_owner_account_exists, monkey... method test__resync_instances_stripe_permission_error (line 370) | def test__resync_instances_stripe_permission_error(self, monkeypatch): method test__resync_instances_stripe_invalid_request_error (line 419) | def test__resync_instances_stripe_invalid_request_error(self, monkeypa... method test__cancel_subscription_instances (line 463) | def test__cancel_subscription_instances( method test__cancel_subscription_instances_stripe_invalid_request_error (line 567) | def test__cancel_subscription_instances_stripe_invalid_request_error( method test__release_subscription_schedule (line 660) | def test__release_subscription_schedule( method test__cancel_subscription_schedule (line 768) | def test__cancel_subscription_schedule( method test__release_subscription_schedule_stripe_invalid_request_error (line 876) | def test__release_subscription_schedule_stripe_invalid_request_error( method test__cancel_subscription_schedule_stripe_invalid_request_error (line 974) | def test__cancel_subscription_schedule_stripe_invalid_request_error( FILE: tests/test_webhooks.py function mock_webhook_handler (line 35) | def mock_webhook_handler(webhook_event_trigger): class TestWebhookEventTrigger (line 39) | class TestWebhookEventTrigger(TestCase): method _send_event (line 42) | def _send_event(self, event_data): method test_webhook_test_event (line 50) | def test_webhook_test_event(self): method test___str__ (line 59) | def test___str__(self): method test_webhook_retrieve_event_fail (line 81) | def test_webhook_retrieve_event_fail( method test_webhook_retrieve_event_pass (line 115) | def test_webhook_retrieve_event_pass( method test_webhook_invalid_verify_signature_fail (line 144) | def test_webhook_invalid_verify_signature_fail( method test_webhook_verify_signature_pass (line 182) | def test_webhook_verify_signature_pass( method test_webhook_no_validation_pass (line 220) | def test_webhook_no_validation_pass( method test_webhook_no_signature (line 241) | def test_webhook_no_signature(self): method test_webhook_remote_addr_is_none (line 249) | def test_webhook_remote_addr_is_none(self): method test_webhook_remote_addr_is_empty_string (line 265) | def test_webhook_remote_addr_is_empty_string(self): method test_webhook_reraise_exception (line 286) | def test_webhook_reraise_exception( method test_webhook_with_custom_callback (line 326) | def test_webhook_with_custom_callback( method test_webhook_with_transfer_event_duplicate (line 355) | def test_webhook_with_transfer_event_duplicate( method test_webhook_good_platform_account (line 390) | def test_webhook_good_platform_account( method test_webhook_good_connect_account (line 425) | def test_webhook_good_connect_account( method test_webhook_error (line 456) | def test_webhook_error( class TestWebhookHandlers (line 481) | class TestWebhookHandlers(TestCase): method setUp (line 482) | def setUp(self): method test_global_handler_registration (line 494) | def test_global_handler_registration(self): method test_event_handler_registration (line 501) | def test_event_handler_registration(self): method test_event_subtype_handler_registration (line 512) | def test_event_subtype_handler_registration(self): method test_global_handler_registration_with_function (line 524) | def test_global_handler_registration_with_function(self): method test_event_handle_registation_with_string (line 531) | def test_event_handle_registation_with_string(self): method test_event_handle_registation_with_list_of_strings (line 538) | def test_event_handle_registation_with_list_of_strings(self): method test_webhook_event_trigger_invalid_body (line 546) | def test_webhook_event_trigger_invalid_body(self): method _call_handlers (line 555) | def _call_handlers(event_spec, data): class TestGetRemoteIp (line 567) | class TestGetRemoteIp: class RequestClass (line 568) | class RequestClass: method __init__ (line 569) | def __init__(self, data): method headers (line 573) | def headers(self): method META (line 577) | def META(self): method test_get_remote_ip (line 593) | def test_get_remote_ip(self, data): method test_get_remote_ip_remote_addr_is_none (line 608) | def test_get_remote_ip_remote_addr_is_none(self, data): class TestWebhookEndpoint (line 618) | class TestWebhookEndpoint: method test_sync_from_stripe_data_non_existent_webhook_endpoint (line 621) | def test_sync_from_stripe_data_non_existent_webhook_endpoint(self): method test_sync_from_stripe_data_existent_webhook_endpoint (line 631) | def test_sync_from_stripe_data_existent_webhook_endpoint(self): method test___str__ (line 659) | def test___str__(self): FILE: tests/urls.py function empty_view (line 8) | def empty_view(request):