django_program.registration.terminal

Stripe Terminal payment model for in-person POS transactions.

Records terminal-specific metadata (reader ID, card details, capture lifecycle) alongside the base Payment record created during checkout at the registration desk.

Classes

TerminalPayment

Records an in-person Stripe Terminal payment at the registration desk.

class django_program.registration.terminal.TerminalPayment[source]

Bases: Model

Records an in-person Stripe Terminal payment at the registration desk.

Extends the payment tracking with terminal-specific fields for reader identification, pre-authorization state, and capture lifecycle.

class CaptureStatus[source]

Bases: TextChoices

Lifecycle states for a terminal payment capture.

AUTHORIZED = 'authorized'
CAPTURED = 'captured'
CANCELLED = 'cancelled'
FAILED = 'failed'
__new__(value)
payment

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

conference

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

terminal_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

reader_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

payment_intent_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

capture_status

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

captured_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

cancelled_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

card_brand

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

card_last4

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

receipt_url

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

created_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

updated_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

conference_id
get_capture_status_display(*, field=<django.db.models.fields.CharField: capture_status>)
get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)
get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)
get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)
get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
payment_id