Skip to main content
Version: 2.x

bursar.CreateCheckoutInput

class bursar.CreateCheckoutInput(*, subject_id, account_id, offer_key, return_url, cancel_url, operation_key, email=None, provider=None, type=None, quantity=None, metadata=)

Bases: _CommerceModel

  • Parameters:
    • subject_id (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • account_id (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • offer_key (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • return_url (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • cancel_url (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • operation_key (Annotated *[*str , BeforeValidator *(*func=~bursar.shared.idempotency.require_stable_key , json_schema_input_type=PydanticUndefined ) , Strict *(*strict=True ) ])
    • email (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)
    • provider (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)
    • type (Literal [ 'subscription' , 'credit_pack' ] | None)
    • quantity (Annotated *[*int , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*Strict *(*strict=True ) , Ge *(*ge=1 ) , Le *(*le=9007199254740991 ) ] ) ] | None)
    • metadata (dict *[*str , str ])

model_config = {'arbitrary_types_allowed': True, 'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].