-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockchainOfframpTransferIntention.php
More file actions
97 lines (83 loc) · 2.63 KB
/
BlockchainOfframpTransferIntention.php
File metadata and controls
97 lines (83 loc) · 2.63 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
<?php
declare(strict_types=1);
namespace Increase\PendingTransactions\PendingTransaction\Source;
use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
/**
* 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`.
*
* @phpstan-type BlockchainOfframpTransferIntentionShape = array{
* sourceBlockchainAddressID: string, transferID: string
* }
*/
final class BlockchainOfframpTransferIntention implements BaseModel
{
/** @use SdkModel<BlockchainOfframpTransferIntentionShape> */
use SdkModel;
/**
* The identifier of the Blockchain Address the funds were received at.
*/
#[Required('source_blockchain_address_id')]
public string $sourceBlockchainAddressID;
/**
* The identifier of the Blockchain Off-Ramp Transfer that led to this Transaction.
*/
#[Required('transfer_id')]
public string $transferID;
/**
* `new BlockchainOfframpTransferIntention()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* BlockchainOfframpTransferIntention::with(
* sourceBlockchainAddressID: ..., transferID: ...
* )
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new BlockchainOfframpTransferIntention)
* ->withSourceBlockchainAddressID(...)
* ->withTransferID(...)
* ```
*/
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.
*/
public static function with(
string $sourceBlockchainAddressID,
string $transferID
): self {
$self = new self;
$self['sourceBlockchainAddressID'] = $sourceBlockchainAddressID;
$self['transferID'] = $transferID;
return $self;
}
/**
* The identifier of the Blockchain Address the funds were received at.
*/
public function withSourceBlockchainAddressID(
string $sourceBlockchainAddressID
): self {
$self = clone $this;
$self['sourceBlockchainAddressID'] = $sourceBlockchainAddressID;
return $self;
}
/**
* The identifier of the Blockchain Off-Ramp Transfer that led to this Transaction.
*/
public function withTransferID(string $transferID): self
{
$self = clone $this;
$self['transferID'] = $transferID;
return $self;
}
}