-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.php
More file actions
530 lines (471 loc) · 25.8 KB
/
Source.php
File metadata and controls
530 lines (471 loc) · 25.8 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<?php
declare(strict_types=1);
namespace Increase\PendingTransactions\PendingTransaction;
use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
use Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferIntention;
use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOnrampTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\CardAuthorization;
use Increase\PendingTransactions\PendingTransaction\Source\CardPushTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\Category;
use Increase\PendingTransactions\PendingTransaction\Source\CheckDepositInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\CheckTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\FednowTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\InboundFundsHold;
use Increase\PendingTransactions\PendingTransaction\Source\InboundWireTransferReversal;
use Increase\PendingTransactions\PendingTransaction\Source\Other;
use Increase\PendingTransactions\PendingTransaction\Source\RealTimePaymentsTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\SwiftTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\WireTransferInstruction;
/**
* This is an object giving more details on the network-level event that caused the Pending Transaction. For example, for a card transaction this lists the merchant's industry and location.
*
* @phpstan-import-type AccountTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction
* @phpstan-import-type ACHTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction
* @phpstan-import-type BlockchainOfframpTransferIntentionShape from \Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferIntention
* @phpstan-import-type BlockchainOnrampTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\BlockchainOnrampTransferInstruction
* @phpstan-import-type CardAuthorizationShape from \Increase\PendingTransactions\PendingTransaction\Source\CardAuthorization
* @phpstan-import-type CardPushTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\CardPushTransferInstruction
* @phpstan-import-type CheckDepositInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\CheckDepositInstruction
* @phpstan-import-type CheckTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\CheckTransferInstruction
* @phpstan-import-type FednowTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\FednowTransferInstruction
* @phpstan-import-type InboundFundsHoldShape from \Increase\PendingTransactions\PendingTransaction\Source\InboundFundsHold
* @phpstan-import-type InboundWireTransferReversalShape from \Increase\PendingTransactions\PendingTransaction\Source\InboundWireTransferReversal
* @phpstan-import-type OtherShape from \Increase\PendingTransactions\PendingTransaction\Source\Other
* @phpstan-import-type RealTimePaymentsTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\RealTimePaymentsTransferInstruction
* @phpstan-import-type SwiftTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\SwiftTransferInstruction
* @phpstan-import-type WireTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\WireTransferInstruction
*
* @phpstan-type SourceShape = array{
* accountTransferInstruction: null|AccountTransferInstruction|AccountTransferInstructionShape,
* achTransferInstruction: null|ACHTransferInstruction|ACHTransferInstructionShape,
* blockchainOfframpTransferIntention: null|BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape,
* blockchainOnrampTransferInstruction: null|BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape,
* cardAuthorization: null|CardAuthorization|CardAuthorizationShape,
* cardPushTransferInstruction: null|CardPushTransferInstruction|CardPushTransferInstructionShape,
* category: Category|value-of<Category>,
* checkDepositInstruction: null|CheckDepositInstruction|CheckDepositInstructionShape,
* checkTransferInstruction: null|CheckTransferInstruction|CheckTransferInstructionShape,
* fednowTransferInstruction: null|FednowTransferInstruction|FednowTransferInstructionShape,
* inboundFundsHold: null|InboundFundsHold|InboundFundsHoldShape,
* inboundWireTransferReversal: null|InboundWireTransferReversal|InboundWireTransferReversalShape,
* other: null|Other|OtherShape,
* realTimePaymentsTransferInstruction: null|RealTimePaymentsTransferInstruction|RealTimePaymentsTransferInstructionShape,
* swiftTransferInstruction: null|SwiftTransferInstruction|SwiftTransferInstructionShape,
* userInitiatedHold: array<string,mixed>|null,
* wireTransferInstruction: null|WireTransferInstruction|WireTransferInstructionShape,
* }
*/
final class Source implements BaseModel
{
/** @use SdkModel<SourceShape> */
use SdkModel;
/**
* An Account Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `account_transfer_instruction`.
*/
#[Required('account_transfer_instruction')]
public ?AccountTransferInstruction $accountTransferInstruction;
/**
* An ACH Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `ach_transfer_instruction`.
*/
#[Required('ach_transfer_instruction')]
public ?ACHTransferInstruction $achTransferInstruction;
/**
* A Blockchain Off-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_intention`.
*/
#[Required('blockchain_offramp_transfer_intention')]
public ?BlockchainOfframpTransferIntention $blockchainOfframpTransferIntention;
/**
* A Blockchain On-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_instruction`.
*/
#[Required('blockchain_onramp_transfer_instruction')]
public ?BlockchainOnrampTransferInstruction $blockchainOnrampTransferInstruction;
/**
* A Card Authorization object. This field will be present in the JSON response if and only if `category` is equal to `card_authorization`. Card Authorizations are temporary holds placed on a customers funds with the intent to later clear a transaction.
*/
#[Required('card_authorization')]
public ?CardAuthorization $cardAuthorization;
/**
* A Card Push Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `card_push_transfer_instruction`.
*/
#[Required('card_push_transfer_instruction')]
public ?CardPushTransferInstruction $cardPushTransferInstruction;
/**
* The type of the resource. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.
*
* @var value-of<Category> $category
*/
#[Required(enum: Category::class)]
public string $category;
/**
* A Check Deposit Instruction object. This field will be present in the JSON response if and only if `category` is equal to `check_deposit_instruction`.
*/
#[Required('check_deposit_instruction')]
public ?CheckDepositInstruction $checkDepositInstruction;
/**
* A Check Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `check_transfer_instruction`.
*/
#[Required('check_transfer_instruction')]
public ?CheckTransferInstruction $checkTransferInstruction;
/**
* A FedNow Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `fednow_transfer_instruction`.
*/
#[Required('fednow_transfer_instruction')]
public ?FednowTransferInstruction $fednowTransferInstruction;
/**
* An Inbound Funds Hold object. This field will be present in the JSON response if and only if `category` is equal to `inbound_funds_hold`. We hold funds for certain transaction types to account for return windows where funds might still be clawed back by the sending institution.
*/
#[Required('inbound_funds_hold')]
public ?InboundFundsHold $inboundFundsHold;
/**
* An Inbound Wire Transfer Reversal object. This field will be present in the JSON response if and only if `category` is equal to `inbound_wire_transfer_reversal`. An Inbound Wire Transfer Reversal is created when Increase has received a wire and the User requests that it be reversed.
*/
#[Required('inbound_wire_transfer_reversal')]
public ?InboundWireTransferReversal $inboundWireTransferReversal;
/**
* If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null.
*/
#[Required]
public ?Other $other;
/**
* A Real-Time Payments Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `real_time_payments_transfer_instruction`.
*/
#[Required('real_time_payments_transfer_instruction')]
public ?RealTimePaymentsTransferInstruction $realTimePaymentsTransferInstruction;
/**
* A Swift Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `swift_transfer_instruction`.
*/
#[Required('swift_transfer_instruction')]
public ?SwiftTransferInstruction $swiftTransferInstruction;
/**
* An User Initiated Hold object. This field will be present in the JSON response if and only if `category` is equal to `user_initiated_hold`. Created when a user initiates a hold on funds in their account.
*
* @var array<string,mixed>|null $userInitiatedHold
*/
#[Required('user_initiated_hold', map: 'mixed')]
public ?array $userInitiatedHold;
/**
* A Wire Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `wire_transfer_instruction`.
*/
#[Required('wire_transfer_instruction')]
public ?WireTransferInstruction $wireTransferInstruction;
/**
* `new Source()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* Source::with(
* accountTransferInstruction: ...,
* achTransferInstruction: ...,
* blockchainOfframpTransferIntention: ...,
* blockchainOnrampTransferInstruction: ...,
* cardAuthorization: ...,
* cardPushTransferInstruction: ...,
* category: ...,
* checkDepositInstruction: ...,
* checkTransferInstruction: ...,
* fednowTransferInstruction: ...,
* inboundFundsHold: ...,
* inboundWireTransferReversal: ...,
* other: ...,
* realTimePaymentsTransferInstruction: ...,
* swiftTransferInstruction: ...,
* userInitiatedHold: ...,
* wireTransferInstruction: ...,
* )
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new Source)
* ->withAccountTransferInstruction(...)
* ->withACHTransferInstruction(...)
* ->withBlockchainOfframpTransferIntention(...)
* ->withBlockchainOnrampTransferInstruction(...)
* ->withCardAuthorization(...)
* ->withCardPushTransferInstruction(...)
* ->withCategory(...)
* ->withCheckDepositInstruction(...)
* ->withCheckTransferInstruction(...)
* ->withFednowTransferInstruction(...)
* ->withInboundFundsHold(...)
* ->withInboundWireTransferReversal(...)
* ->withOther(...)
* ->withRealTimePaymentsTransferInstruction(...)
* ->withSwiftTransferInstruction(...)
* ->withUserInitiatedHold(...)
* ->withWireTransferInstruction(...)
* ```
*/
public function __construct()
{
$this->initialize();
}
/**
* Construct an instance from the required parameters.
*
* You must use named parameters to construct any parameters with a default value.
*
* @param AccountTransferInstruction|AccountTransferInstructionShape|null $accountTransferInstruction
* @param ACHTransferInstruction|ACHTransferInstructionShape|null $achTransferInstruction
* @param BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape|null $blockchainOfframpTransferIntention
* @param BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape|null $blockchainOnrampTransferInstruction
* @param CardAuthorization|CardAuthorizationShape|null $cardAuthorization
* @param CardPushTransferInstruction|CardPushTransferInstructionShape|null $cardPushTransferInstruction
* @param Category|value-of<Category> $category
* @param CheckDepositInstruction|CheckDepositInstructionShape|null $checkDepositInstruction
* @param CheckTransferInstruction|CheckTransferInstructionShape|null $checkTransferInstruction
* @param FednowTransferInstruction|FednowTransferInstructionShape|null $fednowTransferInstruction
* @param InboundFundsHold|InboundFundsHoldShape|null $inboundFundsHold
* @param InboundWireTransferReversal|InboundWireTransferReversalShape|null $inboundWireTransferReversal
* @param Other|OtherShape|null $other
* @param RealTimePaymentsTransferInstruction|RealTimePaymentsTransferInstructionShape|null $realTimePaymentsTransferInstruction
* @param SwiftTransferInstruction|SwiftTransferInstructionShape|null $swiftTransferInstruction
* @param array<string,mixed>|null $userInitiatedHold
* @param WireTransferInstruction|WireTransferInstructionShape|null $wireTransferInstruction
*/
public static function with(
AccountTransferInstruction|array|null $accountTransferInstruction,
ACHTransferInstruction|array|null $achTransferInstruction,
BlockchainOfframpTransferIntention|array|null $blockchainOfframpTransferIntention,
BlockchainOnrampTransferInstruction|array|null $blockchainOnrampTransferInstruction,
CardAuthorization|array|null $cardAuthorization,
CardPushTransferInstruction|array|null $cardPushTransferInstruction,
Category|string $category,
CheckDepositInstruction|array|null $checkDepositInstruction,
CheckTransferInstruction|array|null $checkTransferInstruction,
FednowTransferInstruction|array|null $fednowTransferInstruction,
InboundFundsHold|array|null $inboundFundsHold,
InboundWireTransferReversal|array|null $inboundWireTransferReversal,
Other|array|null $other,
RealTimePaymentsTransferInstruction|array|null $realTimePaymentsTransferInstruction,
SwiftTransferInstruction|array|null $swiftTransferInstruction,
?array $userInitiatedHold,
WireTransferInstruction|array|null $wireTransferInstruction,
): self {
$self = new self;
$self['accountTransferInstruction'] = $accountTransferInstruction;
$self['achTransferInstruction'] = $achTransferInstruction;
$self['blockchainOfframpTransferIntention'] = $blockchainOfframpTransferIntention;
$self['blockchainOnrampTransferInstruction'] = $blockchainOnrampTransferInstruction;
$self['cardAuthorization'] = $cardAuthorization;
$self['cardPushTransferInstruction'] = $cardPushTransferInstruction;
$self['category'] = $category;
$self['checkDepositInstruction'] = $checkDepositInstruction;
$self['checkTransferInstruction'] = $checkTransferInstruction;
$self['fednowTransferInstruction'] = $fednowTransferInstruction;
$self['inboundFundsHold'] = $inboundFundsHold;
$self['inboundWireTransferReversal'] = $inboundWireTransferReversal;
$self['other'] = $other;
$self['realTimePaymentsTransferInstruction'] = $realTimePaymentsTransferInstruction;
$self['swiftTransferInstruction'] = $swiftTransferInstruction;
$self['userInitiatedHold'] = $userInitiatedHold;
$self['wireTransferInstruction'] = $wireTransferInstruction;
return $self;
}
/**
* An Account Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `account_transfer_instruction`.
*
* @param AccountTransferInstruction|AccountTransferInstructionShape|null $accountTransferInstruction
*/
public function withAccountTransferInstruction(
AccountTransferInstruction|array|null $accountTransferInstruction
): self {
$self = clone $this;
$self['accountTransferInstruction'] = $accountTransferInstruction;
return $self;
}
/**
* An ACH Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `ach_transfer_instruction`.
*
* @param ACHTransferInstruction|ACHTransferInstructionShape|null $achTransferInstruction
*/
public function withACHTransferInstruction(
ACHTransferInstruction|array|null $achTransferInstruction
): self {
$self = clone $this;
$self['achTransferInstruction'] = $achTransferInstruction;
return $self;
}
/**
* A Blockchain Off-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_intention`.
*
* @param BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape|null $blockchainOfframpTransferIntention
*/
public function withBlockchainOfframpTransferIntention(
BlockchainOfframpTransferIntention|array|null $blockchainOfframpTransferIntention,
): self {
$self = clone $this;
$self['blockchainOfframpTransferIntention'] = $blockchainOfframpTransferIntention;
return $self;
}
/**
* A Blockchain On-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_instruction`.
*
* @param BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape|null $blockchainOnrampTransferInstruction
*/
public function withBlockchainOnrampTransferInstruction(
BlockchainOnrampTransferInstruction|array|null $blockchainOnrampTransferInstruction,
): self {
$self = clone $this;
$self['blockchainOnrampTransferInstruction'] = $blockchainOnrampTransferInstruction;
return $self;
}
/**
* A Card Authorization object. This field will be present in the JSON response if and only if `category` is equal to `card_authorization`. Card Authorizations are temporary holds placed on a customers funds with the intent to later clear a transaction.
*
* @param CardAuthorization|CardAuthorizationShape|null $cardAuthorization
*/
public function withCardAuthorization(
CardAuthorization|array|null $cardAuthorization
): self {
$self = clone $this;
$self['cardAuthorization'] = $cardAuthorization;
return $self;
}
/**
* A Card Push Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `card_push_transfer_instruction`.
*
* @param CardPushTransferInstruction|CardPushTransferInstructionShape|null $cardPushTransferInstruction
*/
public function withCardPushTransferInstruction(
CardPushTransferInstruction|array|null $cardPushTransferInstruction
): self {
$self = clone $this;
$self['cardPushTransferInstruction'] = $cardPushTransferInstruction;
return $self;
}
/**
* The type of the resource. We may add additional possible values for this enum over time; your application should be able to handle such additions gracefully.
*
* @param Category|value-of<Category> $category
*/
public function withCategory(Category|string $category): self
{
$self = clone $this;
$self['category'] = $category;
return $self;
}
/**
* A Check Deposit Instruction object. This field will be present in the JSON response if and only if `category` is equal to `check_deposit_instruction`.
*
* @param CheckDepositInstruction|CheckDepositInstructionShape|null $checkDepositInstruction
*/
public function withCheckDepositInstruction(
CheckDepositInstruction|array|null $checkDepositInstruction
): self {
$self = clone $this;
$self['checkDepositInstruction'] = $checkDepositInstruction;
return $self;
}
/**
* A Check Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `check_transfer_instruction`.
*
* @param CheckTransferInstruction|CheckTransferInstructionShape|null $checkTransferInstruction
*/
public function withCheckTransferInstruction(
CheckTransferInstruction|array|null $checkTransferInstruction
): self {
$self = clone $this;
$self['checkTransferInstruction'] = $checkTransferInstruction;
return $self;
}
/**
* A FedNow Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `fednow_transfer_instruction`.
*
* @param FednowTransferInstruction|FednowTransferInstructionShape|null $fednowTransferInstruction
*/
public function withFednowTransferInstruction(
FednowTransferInstruction|array|null $fednowTransferInstruction
): self {
$self = clone $this;
$self['fednowTransferInstruction'] = $fednowTransferInstruction;
return $self;
}
/**
* An Inbound Funds Hold object. This field will be present in the JSON response if and only if `category` is equal to `inbound_funds_hold`. We hold funds for certain transaction types to account for return windows where funds might still be clawed back by the sending institution.
*
* @param InboundFundsHold|InboundFundsHoldShape|null $inboundFundsHold
*/
public function withInboundFundsHold(
InboundFundsHold|array|null $inboundFundsHold
): self {
$self = clone $this;
$self['inboundFundsHold'] = $inboundFundsHold;
return $self;
}
/**
* An Inbound Wire Transfer Reversal object. This field will be present in the JSON response if and only if `category` is equal to `inbound_wire_transfer_reversal`. An Inbound Wire Transfer Reversal is created when Increase has received a wire and the User requests that it be reversed.
*
* @param InboundWireTransferReversal|InboundWireTransferReversalShape|null $inboundWireTransferReversal
*/
public function withInboundWireTransferReversal(
InboundWireTransferReversal|array|null $inboundWireTransferReversal
): self {
$self = clone $this;
$self['inboundWireTransferReversal'] = $inboundWireTransferReversal;
return $self;
}
/**
* If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null.
*
* @param Other|OtherShape|null $other
*/
public function withOther(Other|array|null $other): self
{
$self = clone $this;
$self['other'] = $other;
return $self;
}
/**
* A Real-Time Payments Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `real_time_payments_transfer_instruction`.
*
* @param RealTimePaymentsTransferInstruction|RealTimePaymentsTransferInstructionShape|null $realTimePaymentsTransferInstruction
*/
public function withRealTimePaymentsTransferInstruction(
RealTimePaymentsTransferInstruction|array|null $realTimePaymentsTransferInstruction,
): self {
$self = clone $this;
$self['realTimePaymentsTransferInstruction'] = $realTimePaymentsTransferInstruction;
return $self;
}
/**
* A Swift Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `swift_transfer_instruction`.
*
* @param SwiftTransferInstruction|SwiftTransferInstructionShape|null $swiftTransferInstruction
*/
public function withSwiftTransferInstruction(
SwiftTransferInstruction|array|null $swiftTransferInstruction
): self {
$self = clone $this;
$self['swiftTransferInstruction'] = $swiftTransferInstruction;
return $self;
}
/**
* An User Initiated Hold object. This field will be present in the JSON response if and only if `category` is equal to `user_initiated_hold`. Created when a user initiates a hold on funds in their account.
*
* @param array<string,mixed>|null $userInitiatedHold
*/
public function withUserInitiatedHold(?array $userInitiatedHold): self
{
$self = clone $this;
$self['userInitiatedHold'] = $userInitiatedHold;
return $self;
}
/**
* A Wire Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `wire_transfer_instruction`.
*
* @param WireTransferInstruction|WireTransferInstructionShape|null $wireTransferInstruction
*/
public function withWireTransferInstruction(
WireTransferInstruction|array|null $wireTransferInstruction
): self {
$self = clone $this;
$self['wireTransferInstruction'] = $wireTransferInstruction;
return $self;
}
}