-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66d2709
commit bb89aeb
Showing
12 changed files
with
310 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v178 | ||
v182 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
/** | ||
* The CustomerCashBalanceTransaction object. | ||
*/ | ||
interface CustomerCashBalanceTransaction { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'customer_cash_balance_transaction'; | ||
|
||
applied_to_payment?: CustomerCashBalanceTransaction.AppliedToPayment; | ||
|
||
/** | ||
* Time at which the object was created. Measured in seconds since the Unix epoch. | ||
*/ | ||
created: number; | ||
|
||
/** | ||
* 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). | ||
*/ | ||
currency: string; | ||
|
||
/** | ||
* The customer whose available cash balance changed as a result of this transaction. | ||
*/ | ||
customer: string | Stripe.Customer; | ||
|
||
/** | ||
* The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). | ||
*/ | ||
ending_balance: number; | ||
|
||
funded?: CustomerCashBalanceTransaction.Funded; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* The amount by which the cash balance changed, represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance. | ||
*/ | ||
net_amount: number; | ||
|
||
refunded_from_payment?: CustomerCashBalanceTransaction.RefundedFromPayment; | ||
|
||
/** | ||
* The type of the cash balance transaction. One of `applied_to_payment`, `unapplied_from_payment`, `refunded_from_payment`, `funded`, `return_initiated`, or `return_canceled`. New types may be added in future. See [Customer Balance](https://stripe.com/docs/payments/customer-balance#types) to learn more about these types. | ||
*/ | ||
type: CustomerCashBalanceTransaction.Type; | ||
|
||
unapplied_from_payment?: CustomerCashBalanceTransaction.UnappliedFromPayment; | ||
} | ||
|
||
namespace CustomerCashBalanceTransaction { | ||
interface AppliedToPayment { | ||
/** | ||
* The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to. | ||
*/ | ||
payment_intent: string | Stripe.PaymentIntent; | ||
} | ||
|
||
interface Funded { | ||
bank_transfer: Funded.BankTransfer; | ||
} | ||
|
||
namespace Funded { | ||
interface BankTransfer { | ||
eu_bank_transfer?: BankTransfer.EuBankTransfer; | ||
|
||
/** | ||
* The user-supplied reference field on the bank transfer. | ||
*/ | ||
reference: string | null; | ||
|
||
/** | ||
* The funding method type used to fund the customer balance. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`. | ||
*/ | ||
type: BankTransfer.Type; | ||
} | ||
|
||
namespace BankTransfer { | ||
interface EuBankTransfer { | ||
/** | ||
* The BIC of the bank of the sender of the funding. | ||
*/ | ||
bic: string | null; | ||
|
||
/** | ||
* The last 4 digits of the IBAN of the sender of the funding. | ||
*/ | ||
iban_last4: string | null; | ||
|
||
/** | ||
* The full name of the sender, as supplied by the sending bank. | ||
*/ | ||
sender_name: string | null; | ||
} | ||
|
||
type Type = | ||
| 'eu_bank_transfer' | ||
| 'gb_bank_transfer' | ||
| 'jp_bank_transfer' | ||
| 'mx_bank_transfer'; | ||
} | ||
} | ||
|
||
interface RefundedFromPayment { | ||
/** | ||
* The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance. | ||
*/ | ||
refund: string | Stripe.Refund; | ||
} | ||
|
||
type Type = | ||
| 'applied_to_payment' | ||
| 'funded' | ||
| 'refunded_from_payment' | ||
| 'return_canceled' | ||
| 'return_initiated' | ||
| 'unapplied_from_payment'; | ||
|
||
interface UnappliedFromPayment { | ||
/** | ||
* The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from. | ||
*/ | ||
payment_intent: string | Stripe.PaymentIntent; | ||
} | ||
} | ||
|
||
interface CustomerCashBalanceTransactionRetrieveParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
} | ||
|
||
interface CustomerCashBalanceTransactionListParams | ||
extends PaginationParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.