| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import Dict, List |
| 5 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class PaymentRecordReportRefundParams(RequestOptions): |
| 9 |
amount: NotRequired["PaymentRecordReportRefundParamsAmount"] |
| 10 |
""" |
| 11 |
A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment. |
| 12 |
""" |
| 13 |
expand: NotRequired[List[str]] |
| 14 |
""" |
| 15 |
Specifies which fields in the response should be expanded. |
| 16 |
""" |
| 17 |
initiated_at: NotRequired[int] |
| 18 |
""" |
| 19 |
When the reported refund was initiated. Measured in seconds since the Unix epoch. |
| 20 |
""" |
| 21 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 22 |
""" |
| 23 |
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`. |
| 24 |
""" |
| 25 |
outcome: Literal["refunded"] |
| 26 |
""" |
| 27 |
The outcome of the reported refund. |
| 28 |
""" |
| 29 |
processor_details: "PaymentRecordReportRefundParamsProcessorDetails" |
| 30 |
""" |
| 31 |
Processor information for this refund. |
| 32 |
""" |
| 33 |
refunded: "PaymentRecordReportRefundParamsRefunded" |
| 34 |
""" |
| 35 |
Information about the payment attempt refund. |
| 36 |
""" |
| 37 |
|
| 38 |
|
| 39 |
class PaymentRecordReportRefundParamsAmount(TypedDict): |
| 40 |
currency: str |
| 41 |
""" |
| 42 |
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). |
| 43 |
""" |
| 44 |
value: int |
| 45 |
""" |
| 46 |
A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. |
| 47 |
""" |
| 48 |
|
| 49 |
|
| 50 |
class PaymentRecordReportRefundParamsProcessorDetails(TypedDict): |
| 51 |
custom: NotRequired[ |
| 52 |
"PaymentRecordReportRefundParamsProcessorDetailsCustom" |
| 53 |
] |
| 54 |
""" |
| 55 |
Information about the custom processor used to make this refund. |
| 56 |
""" |
| 57 |
type: Literal["custom"] |
| 58 |
""" |
| 59 |
The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. |
| 60 |
""" |
| 61 |
|
| 62 |
|
| 63 |
class PaymentRecordReportRefundParamsProcessorDetailsCustom(TypedDict): |
| 64 |
refund_reference: str |
| 65 |
""" |
| 66 |
A reference to the external refund. This field must be unique across all refunds. |
| 67 |
""" |
| 68 |
|
| 69 |
|
| 70 |
class PaymentRecordReportRefundParamsRefunded(TypedDict): |
| 71 |
refunded_at: int |
| 72 |
""" |
| 73 |
When the reported refund completed. Measured in seconds since the Unix epoch. |
| 74 |
""" |