Debian Codegraph @

stripe/params/_customer_balance_transaction_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class CustomerBalanceTransactionCreateParams(TypedDict):
8 amount: int
9 """
10 The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance.
11 """
12 currency: str
13 """
14 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Specifies the [`invoice_credit_balance`](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance) that this transaction will apply to. If the customer's `currency` is not set, it will be updated to this value.
15 """
16 description: NotRequired[str]
17 """
18 An arbitrary string attached to the object. Often useful for displaying to users.
19 """
20 expand: NotRequired[List[str]]
21 """
22 Specifies which fields in the response should be expanded.
23 """
24 metadata: NotRequired["Literal['']|Dict[str, str]"]
25 """
26 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
27 """