Payment Models
Payment models for ACPortal API.
- class ab.api.models.payments.PaymentParams(*, jobSubKey=None)[source]
Bases:
RequestModelQuery parameters for GET /job/{jobDisplayId}/payment.
- Parameters:
jobSubKey (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.PaymentInfo(*, totalAmount=None, balanceDue=None, paymentStatus=None, payments=None, **extra_data)[source]
Bases:
ResponseModelPayment state for a job — GET /job/{jobDisplayId}/payment.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.PaymentSource(*, sourceId=None, type=None, lastFour=None, brand=None, isDefault=None, **extra_data)[source]
Bases:
ResponseModelStored payment method — GET /job/{jobDisplayId}/payment/sources.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.ACHSessionResponse(*, sessionId=None, clientSecret=None, **extra_data)[source]
Bases:
ResponseModelACH payment session — POST /job/{jobDisplayId}/payment/ACHPaymentSession.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.PayBySourceRequest(*, sourceId=None, amount=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/bysource.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.ACHSessionRequest(*, returnUrl=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/ACHPaymentSession.
- Parameters:
returnUrl (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.ACHCreditTransferRequest(*, amount=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/ACHCreditTransfer.
- Parameters:
amount (float | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.AttachBankRequest(*, token=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/attachCustomerBank.
- Parameters:
token (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.VerifyACHRequest(*, amounts=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/verifyJobACHSource.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.payments.BankSourceRequest(*, sourceId=None)[source]
Bases:
RequestModelBody for POST /job/{jobDisplayId}/payment/banksource.
- Parameters:
sourceId (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].