-
Notifications
You must be signed in to change notification settings - Fork 719
/
OutboundPaymentsResource.d.ts
105 lines (96 loc) · 3.31 KB
/
OutboundPaymentsResource.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
93
94
95
96
97
98
99
100
101
102
103
104
105
// File generated from our OpenAPI spec
declare module 'stripe' {
namespace Stripe {
namespace TestHelpers {
namespace Treasury {
interface OutboundPaymentFailParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
namespace Treasury {
interface OutboundPaymentPostParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
namespace Treasury {
interface OutboundPaymentReturnOutboundPaymentParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Optional hash to set the the return code.
*/
returned_details?: OutboundPaymentReturnOutboundPaymentParams.ReturnedDetails;
}
namespace OutboundPaymentReturnOutboundPaymentParams {
interface ReturnedDetails {
/**
* The return code to be set on the OutboundPayment object.
*/
code?: ReturnedDetails.Code;
}
namespace ReturnedDetails {
type Code =
| 'account_closed'
| 'account_frozen'
| 'bank_account_restricted'
| 'bank_ownership_changed'
| 'declined'
| 'incorrect_account_holder_name'
| 'invalid_account_number'
| 'invalid_currency'
| 'no_account'
| 'other';
}
}
}
namespace Treasury {
class OutboundPaymentsResource {
/**
* Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
*/
fail(
id: string,
params?: OutboundPaymentFailParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
fail(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
/**
* Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
*/
post(
id: string,
params?: OutboundPaymentPostParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
post(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
/**
* Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
*/
returnOutboundPayment(
id: string,
params?: OutboundPaymentReturnOutboundPaymentParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
returnOutboundPayment(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Treasury.OutboundPayment>>;
}
}
}
}
}