Skip to content

SplitCreditRequest

Source code in docs_src/capo_billing/types/split_credit_request.py
class SplitCreditRequest(TypedDict, closed=True):
    credit_id: "capo_billing.types.credit_id.CreditId"
    """<p>The ID of the credit to split.</p>"""
    portions: "capo_billing.types.split_portions.SplitPortions"
    """<p>The new credits to create, one for each portion, in the order listed.</p>"""
    client_token: NotRequired["capo_billing.types.client_token.ClientToken"]
    """<p>A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a successful request with the same client token and parameters, the retry completes without performing any further actions. If you reuse a client token with different parameters, the request fails with a <code>ValidationException</code>.</p>"""
    dry_run: NotRequired["bool"]
    """<p>Specifies whether to validate the request and return the result without changing any credit.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you retry a successful request with the same client token and parameters, the retry completes without performing any further actions. If you reuse a client token with different parameters, the request fails with a ValidationException.

credit_id instance-attribute

credit_id: CreditId

The ID of the credit to split.

dry_run instance-attribute

dry_run: NotRequired[bool]

Specifies whether to validate the request and return the result without changing any credit.

portions instance-attribute

portions: SplitPortions

The new credits to create, one for each portion, in the order listed.