Skip to main content
Version: 2.x

bursar.PortalSessionInput

class bursar.PortalSessionInput(*, account_id, purpose='billing', return_url, cancel_url=None)

Bases: _CommerceModel

  • Parameters:
    • account_id (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • purpose (Literal [ 'billing' , 'payment-method' ])
    • return_url (Annotated *[*str , MinLen *(*min_length=1 ) ])
    • cancel_url (Annotated *[*str , FieldInfo *(*annotation=NoneType , required=True , metadata= *[*MinLen *(*min_length=1 ) ] ) ] | None)

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

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