-
Notifications
You must be signed in to change notification settings - Fork 719
/
CreditReversals.d.ts
92 lines (75 loc) · 2.79 KB
/
CreditReversals.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
namespace Treasury {
/**
* You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal.
*/
interface CreditReversal {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'treasury.credit_reversal';
/**
* Amount (in cents) transferred.
*/
amount: number;
/**
* 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 FinancialAccount to reverse funds from.
*/
financial_account: string;
/**
* A [hosted transaction receipt](https://stripe.com/docs/treasury/moving-money/regulatory-receipts) URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
*/
hosted_regulatory_receipt_url: string | null;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
*/
metadata: Stripe.Metadata;
/**
* The rails used to reverse the funds.
*/
network: CreditReversal.Network;
/**
* The ReceivedCredit being reversed.
*/
received_credit: string;
/**
* Status of the CreditReversal
*/
status: CreditReversal.Status;
status_transitions: CreditReversal.StatusTransitions;
/**
* The Transaction associated with this object.
*/
transaction: string | Stripe.Treasury.Transaction | null;
}
namespace CreditReversal {
type Network = 'ach' | 'stripe';
type Status = 'canceled' | 'posted' | 'processing';
interface StatusTransitions {
/**
* Timestamp describing when the CreditReversal changed status to `posted`
*/
posted_at: number | null;
}
}
}
}
}