| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class CreditBalanceSummaryRetrieveParams(RequestOptions): |
| 9 |
customer: NotRequired[str] |
| 10 |
""" |
| 11 |
The customer whose credit balance summary you're retrieving. |
| 12 |
""" |
| 13 |
customer_account: NotRequired[str] |
| 14 |
""" |
| 15 |
The account representing the customer whose credit balance summary you're retrieving. |
| 16 |
""" |
| 17 |
expand: NotRequired[List[str]] |
| 18 |
""" |
| 19 |
Specifies which fields in the response should be expanded. |
| 20 |
""" |
| 21 |
filter: "CreditBalanceSummaryRetrieveParamsFilter" |
| 22 |
""" |
| 23 |
The filter criteria for the credit balance summary. |
| 24 |
""" |
| 25 |
|
| 26 |
|
| 27 |
class CreditBalanceSummaryRetrieveParamsFilter(TypedDict): |
| 28 |
applicability_scope: NotRequired[ |
| 29 |
"CreditBalanceSummaryRetrieveParamsFilterApplicabilityScope" |
| 30 |
] |
| 31 |
""" |
| 32 |
The billing credit applicability scope for which to fetch credit balance summary. |
| 33 |
""" |
| 34 |
credit_grant: NotRequired[str] |
| 35 |
""" |
| 36 |
The credit grant for which to fetch credit balance summary. |
| 37 |
""" |
| 38 |
type: Literal["applicability_scope", "credit_grant"] |
| 39 |
""" |
| 40 |
Specify the type of this filter. |
| 41 |
""" |
| 42 |
|
| 43 |
|
| 44 |
class CreditBalanceSummaryRetrieveParamsFilterApplicabilityScope(TypedDict): |
| 45 |
price_type: NotRequired[Literal["metered"]] |
| 46 |
""" |
| 47 |
The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`. |
| 48 |
""" |
| 49 |
prices: NotRequired[ |
| 50 |
List["CreditBalanceSummaryRetrieveParamsFilterApplicabilityScopePrice"] |
| 51 |
] |
| 52 |
""" |
| 53 |
A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`. |
| 54 |
""" |
| 55 |
|
| 56 |
|
| 57 |
class CreditBalanceSummaryRetrieveParamsFilterApplicabilityScopePrice( |
| 58 |
TypedDict, |
| 59 |
): |
| 60 |
id: str |
| 61 |
""" |
| 62 |
The price ID this credit grant should apply to. |
| 63 |
""" |