-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinbound-wire-drawdown-requests.ts
More file actions
144 lines (122 loc) · 3.75 KB
/
Copy pathinbound-wire-drawdown-requests.ts
File metadata and controls
144 lines (122 loc) · 3.75 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import * as InboundWireDrawdownRequestsAPI from '../inbound-wire-drawdown-requests';
import { APIPromise } from '../../core/api-promise';
import { RequestOptions } from '../../internal/request-options';
export class InboundWireDrawdownRequests extends APIResource {
/**
* Simulates receiving an
* [Inbound Wire Drawdown Request](#inbound-wire-drawdown-requests).
*
* @example
* ```ts
* const inboundWireDrawdownRequest =
* await client.simulations.inboundWireDrawdownRequests.create(
* {
* amount: 10000,
* creditor_account_number: '987654321',
* creditor_routing_number: '101050001',
* currency: 'USD',
* recipient_account_number_id:
* 'account_number_v18nkfqm6afpsrvy82b2',
* },
* );
* ```
*/
create(
body: InboundWireDrawdownRequestCreateParams,
options?: RequestOptions,
): APIPromise<InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequest> {
return this._client.post('/simulations/inbound_wire_drawdown_requests', { body, ...options });
}
}
export interface InboundWireDrawdownRequestCreateParams {
/**
* The amount being requested in cents.
*/
amount: number;
/**
* The creditor's account number.
*/
creditor_account_number: string;
/**
* The creditor's routing number.
*/
creditor_routing_number: string;
/**
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
* requested. Will always be "USD".
*/
currency: string;
/**
* The Account Number to which the recipient of this request is being requested to
* send funds from.
*/
recipient_account_number_id: string;
/**
* A free-form address field set by the sender representing the first line of the
* creditor's address.
*/
creditor_address_line1?: string;
/**
* A free-form address field set by the sender representing the second line of the
* creditor's address.
*/
creditor_address_line2?: string;
/**
* A free-form address field set by the sender representing the third line of the
* creditor's address.
*/
creditor_address_line3?: string;
/**
* A free-form name field set by the sender representing the creditor's name.
*/
creditor_name?: string;
/**
* The debtor's account number.
*/
debtor_account_number?: string;
/**
* A free-form address field set by the sender representing the first line of the
* debtor's address.
*/
debtor_address_line1?: string;
/**
* A free-form address field set by the sender representing the second line of the
* debtor's address.
*/
debtor_address_line2?: string;
/**
* A free-form address field set by the sender.
*/
debtor_address_line3?: string;
/**
* A free-form name field set by the sender representing the debtor's name.
*/
debtor_name?: string;
/**
* The debtor's routing number.
*/
debtor_routing_number?: string;
/**
* A free-form reference string set by the sender, to help identify the transfer.
*/
end_to_end_identification?: string;
/**
* The sending bank's identifier for the wire transfer.
*/
instruction_identification?: string;
/**
* The Unique End-to-end Transaction Reference
* ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
* of the transfer.
*/
unique_end_to_end_transaction_reference?: string;
/**
* A free-form message set by the sender.
*/
unstructured_remittance_information?: string;
}
export declare namespace InboundWireDrawdownRequests {
export { type InboundWireDrawdownRequestCreateParams as InboundWireDrawdownRequestCreateParams };
}