Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str Str Num Dict Str Dict Str Str Str Str Str Str Str Str Str Num Str Num NameLoad Str Str ListLoad Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num ListLoad Num Num Num ListLoad Dict Str Str Str Str Str Num NameLoad Str NameLoad Str Num Num Num Num Str Num Num Num Num Num Num Str NameLoad Str Num Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad Str Call AttributeLoad NameLoad attr NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Dict keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Dict keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Num Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad keyword Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Num Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Dict keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword Dict keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad keyword Call NameLoad keyword Num Expr Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Num Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Num Str Num Str Num ListLoad Str NameLoad Str ListLoad Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num ListLoad Num Num Num ListLoad Dict Str Str Str Str Str Num NameLoad Str NameLoad Str Num Num Num Num Num Num Str Num Num ListLoad Num Num Num Num Dict Str Str Str Str Num ListLoad Dict Str Str Str Str Str Str Str Str Num Num NameLoad Num ListLoad Dict Str Str Str Str Str Num NameLoad Str Str Str Str Num Str Str Str Str NameLoad Str Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str decorator_list
N/A N/A decimal N/A json N/A six django.core.urlresolvers reverse django.dispatch Signal django.test TestCase django.test.client Client N/A stripe mock patch N/A TRANSFER_CREATED_TEST_DATA TRANSFER_PENDING_TEST_DATA models Event Transfer EventProcessingException Customer webhooks registry AccountUpdatedWebhook ChargeCapturedWebhook CustomerUpdatedWebhook CustomerSourceCreatedWebhook CustomerSourceDeletedWebhook CustomerSubscriptionCreatedWebhook InvoiceCreatedWebhook WebhookRegistryTest N/A TestCase N/A test_get_signal N/A N/A self N/A N/A N/A signal N/A N/A registry get_signal account.updated N/A N/A N/A self assertTrue N/A isinstance signal Signal N/A test_get_signal_keyerror N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A registry get_signal not a webhook N/A N/A WebhookTests N/A TestCase N/A test_webhook_with_transfer_event N/A N/A self StripeEventMock N/A N/A N/A data N/A created data id livemode object pending_webhooks type 1348360173 N/A object N/A amount currency date description id object other_transfers status summary 455 usd 1348876800 None ach_XXXXXXXXXXXX transfer N/A pending N/A adjustment_count adjustment_fee_details adjustment_fees adjustment_gross charge_count charge_fee_details charge_fees charge_gross collected_fee_count collected_fee_gross currency net refund_count refund_fees refund_gross validation_count validation_fees 0 N/A 0 0 1 N/A N/A amount application currency description type 45 None usd None stripe_fee 45 500 0 0 usd 455 0 0 0 0 0 evt_XXXXXXXXXXXXx True event 1 transfer.created N/A N/A N/A N/A StripeEventMock return_value to_dict return_value data N/A msg N/A N/A json dumps data N/A resp N/A N/A N/A Client post N/A reverse pinax_stripe_webhook N/A N/A six u msg content_type application/json N/A N/A N/A self assertEquals N/A resp status_code 200 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A Event objects filter kind transfer.created exists N/A N/A patch stripe.Event.retrieve test_webhook_duplicate_event N/A N/A self N/A N/A N/A data N/A id 123 N/A N/A N/A N/A Event objects create stripe_id 123 livemode True N/A msg N/A N/A json dumps data N/A resp N/A N/A N/A Client post N/A reverse pinax_stripe_webhook N/A N/A six u msg content_type application/json N/A N/A N/A self assertEquals N/A resp status_code 200 N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A EventProcessingException objects filter message Duplicate event record exists N/A test_webhook_event_mismatch N/A N/A self N/A N/A N/A event N/A Event kind account.updated N/A WH N/A N/A registry get account.application.deauthorized N/A N/A N/A self assertRaises Exception N/A N/A N/A WH event N/A test_send_signal N/A N/A self SignalSendMock N/A N/A N/A event N/A Event kind account.updated N/A WH N/A N/A registry get account.updated N/A N/A N/A N/A WH event send_signal N/A N/A N/A self assertTrue N/A SignalSendMock called N/A N/A patch django.dispatch.Signal.send test_send_signal_not_sent N/A N/A self N/A N/A N/A event N/A Event kind account.updated N/A WH N/A N/A registry get account.updated signal_handler N/A N/A sender N/A args kwargs N/A N/A N/A N/A self fail Should not have been called. N/A N/A N/A N/A N/A N/A registry get_signal account.updated connect signal_handler N/A webhook N/A WH event N/A N/A webhook name mismatch name N/A N/A N/A webhook send_signal N/A test_process_exception_is_logged N/A N/A self ProcessWebhookMock ValidateMock LinkMock N/A N/A N/A event N/A N/A N/A Event objects create kind account.updated webhook_message N/A valid True processed False N/A N/A ProcessWebhookMock side_effect N/A N/A stripe StripeError Message error N/A N/A N/A N/A AccountUpdatedWebhook event process N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A EventProcessingException objects filter event event exists N/A N/A patch pinax.stripe.actions.customers.link_customer N/A patch pinax.stripe.webhooks.Webhook.validate N/A patch pinax.stripe.webhooks.Webhook.process_webhook test_process_return_none N/A N/A self ValidateMock LinkMock N/A N/A N/A event N/A N/A N/A Event objects create kind account.updated webhook_message N/A valid True processed False N/A N/A N/A self assertIsNone N/A N/A N/A AccountUpdatedWebhook event process N/A N/A patch pinax.stripe.actions.customers.link_customer N/A patch pinax.stripe.webhooks.Webhook.validate N/A ChargeWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock RetrieveMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A ChargeCapturedWebhook name webhook_message N/A valid True processed False N/A N/A event validated_message N/A dict data N/A dict object N/A dict id 1 N/A N/A N/A N/A ChargeCapturedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch stripe.Charge.retrieve N/A patch pinax.stripe.actions.charges.sync_charge_from_stripe_data N/A CustomerUpdatedWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A CustomerUpdatedWebhook name webhook_message N/A valid True processed False N/A N/A N/A N/A CustomerUpdatedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch pinax.stripe.actions.customers.sync_customer N/A CustomerSourceCreatedWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A CustomerSourceCreatedWebhook name webhook_message N/A valid True processed False N/A N/A event validated_message N/A dict data N/A dict object N/A dict N/A N/A N/A N/A CustomerSourceCreatedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch pinax.stripe.actions.sources.sync_payment_source_from_stripe_data N/A CustomerSourceDeletedWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A CustomerSourceDeletedWebhook name webhook_message N/A valid True processed False N/A N/A event validated_message N/A dict data N/A dict object N/A dict id 1 N/A N/A N/A N/A CustomerSourceDeletedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch pinax.stripe.actions.sources.delete_card_object N/A CustomerSubscriptionCreatedWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock RetrieveMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A CustomerSubscriptionCreatedWebhook name customer N/A N/A N/A Customer objects create webhook_message N/A valid True processed False N/A N/A N/A N/A CustomerSubscriptionCreatedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch stripe.Customer.retrieve N/A patch pinax.stripe.actions.customers.sync_customer test_process_webhook_no_customer N/A N/A self SyncMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A CustomerSubscriptionCreatedWebhook name webhook_message N/A valid True processed False N/A N/A N/A N/A CustomerSubscriptionCreatedWebhook event process_webhook N/A N/A N/A self assertFalse N/A SyncMock called N/A N/A patch pinax.stripe.actions.customers.sync_customer N/A InvoiceCreatedWebhookTest N/A TestCase N/A test_process_webhook N/A N/A self SyncMock N/A N/A N/A event N/A N/A N/A Event objects create kind N/A InvoiceCreatedWebhook name webhook_message N/A valid True processed False N/A N/A event validated_message N/A dict data N/A dict object N/A dict id 1 N/A N/A N/A N/A InvoiceCreatedWebhook event process_webhook N/A N/A N/A self assertTrue N/A SyncMock called N/A N/A patch pinax.stripe.actions.invoices.sync_invoice_from_stripe_data N/A TestTransferWebhooks N/A TestCase N/A test_transfer_created N/A N/A self EventMock N/A N/A N/A ev N/A EventMock N/A N/A N/A ev to_dict return_value TRANSFER_CREATED_TEST_DATA N/A event N/A N/A N/A Event objects create stripe_id N/A TRANSFER_CREATED_TEST_DATA N/A id kind transfer.created livemode True webhook_message TRANSFER_CREATED_TEST_DATA validated_message TRANSFER_CREATED_TEST_DATA valid True N/A N/A N/A N/A N/A N/A registry get N/A event kind event process N/A transfer N/A N/A N/A Transfer objects get stripe_id tr_XXXXXXXXXXXX N/A N/A N/A self assertEquals N/A transfer amount N/A N/A decimal Decimal 4.55 N/A N/A N/A self assertEquals N/A transfer status paid N/A N/A patch stripe.Event.retrieve test_transfer_pending_create N/A N/A self EventMock N/A N/A N/A ev N/A EventMock N/A N/A N/A ev to_dict return_value TRANSFER_PENDING_TEST_DATA N/A event N/A N/A N/A Event objects create stripe_id N/A TRANSFER_PENDING_TEST_DATA N/A id kind transfer.created livemode True webhook_message TRANSFER_PENDING_TEST_DATA validated_message TRANSFER_PENDING_TEST_DATA valid True N/A N/A N/A N/A N/A N/A registry get N/A event kind event process N/A transfer N/A N/A N/A Transfer objects get stripe_id tr_adlkj2l3kj23 N/A N/A N/A self assertEquals N/A transfer amount N/A N/A decimal Decimal 9.41 N/A N/A N/A self assertEquals N/A transfer status pending N/A N/A patch stripe.Event.retrieve test_transfer_paid_updates_existing_record N/A N/A self EventMock N/A N/A N/A ev N/A EventMock N/A N/A N/A ev to_dict return_value TRANSFER_CREATED_TEST_DATA N/A event N/A N/A N/A Event objects create stripe_id N/A TRANSFER_CREATED_TEST_DATA N/A id kind transfer.created livemode True webhook_message TRANSFER_CREATED_TEST_DATA validated_message TRANSFER_CREATED_TEST_DATA valid True N/A N/A N/A N/A N/A N/A registry get N/A event kind event process N/A data N/A created data id livemode object pending_webhooks type 1364658818 N/A object N/A account amount currency date description fee fee_details id livemode object other_transfers status summary transactions N/A bank_name country last4 object BANK OF AMERICA, N.A. US 9999 bank_account 455 usd 1364601600 STRIPE TRANSFER 0 N/A tr_XXXXXXXXXXXX True transfer N/A paid N/A adjustment_count adjustment_fee_details adjustment_fees adjustment_gross charge_count charge_fee_details charge_fees charge_gross collected_fee_count collected_fee_gross collected_fee_refund_count collected_fee_refund_gross currency net refund_count refund_fee_details refund_fees refund_gross validation_count validation_fees 0 N/A 0 0 1 N/A N/A amount application currency description type 45 None usd None stripe_fee 45 500 0 0 0 0 usd 455 0 N/A 0 0 0 0 N/A count data object url 1 N/A N/A amount created description fee fee_details id net type 500 1364064631 None 45 N/A N/A amount application currency description type 45 None usd Stripe processing fees stripe_fee ch_XXXXXXXXXX 455 charge list /v1/transfers/XX/transactions evt_YYYYYYYYYYYY True event 1 transfer.paid N/A paid_event N/A N/A N/A Event objects create stripe_id N/A data N/A id kind transfer.paid livemode True webhook_message data validated_message data valid True N/A N/A N/A N/A N/A N/A registry get N/A paid_event kind paid_event process N/A transfer N/A N/A N/A Transfer objects get stripe_id tr_XXXXXXXXXXXX N/A N/A N/A self assertEquals N/A transfer status paid N/A N/A patch stripe.Event.retrieve N/A