-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathExportLayoutConfigurationAmount.php
More file actions
executable file
·117 lines (96 loc) · 2.45 KB
/
Copy pathExportLayoutConfigurationAmount.php
File metadata and controls
executable file
·117 lines (96 loc) · 2.45 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
<?php
// The content of this file was automatically generated
namespace ProcessOut;
use ProcessOut\ProcessOut;
use ProcessOut\Networking\Request;
class ExportLayoutConfigurationAmount implements \JsonSerializable
{
/**
* ProcessOut's client
* @var ProcessOut\ProcessOut
*/
protected $client;
/**
* Chosen precision for the amount fields in the export.
* @var string
*/
protected $precision;
/**
* Chosen separator for the amount fields in the export.
* @var string
*/
protected $separator;
/**
* ExportLayoutConfigurationAmount constructor
* @param ProcessOut\ProcessOut $client
* @param array|null $prefill
*/
public function __construct(ProcessOut $client, $prefill = array())
{
$this->client = $client;
$this->fillWithData($prefill);
}
/**
* Get Precision
* Chosen precision for the amount fields in the export.
* @return string
*/
public function getPrecision()
{
return $this->precision;
}
/**
* Set Precision
* Chosen precision for the amount fields in the export.
* @param string $value
* @return $this
*/
public function setPrecision($value)
{
$this->precision = $value;
return $this;
}
/**
* Get Separator
* Chosen separator for the amount fields in the export.
* @return string
*/
public function getSeparator()
{
return $this->separator;
}
/**
* Set Separator
* Chosen separator for the amount fields in the export.
* @param string $value
* @return $this
*/
public function setSeparator($value)
{
$this->separator = $value;
return $this;
}
/**
* Fills the current object with the new values pulled from the data
* @param array $data
* @return ExportLayoutConfigurationAmount
*/
public function fillWithData($data)
{
if(! empty($data['precision']))
$this->setPrecision($data['precision']);
if(! empty($data['separator']))
$this->setSeparator($data['separator']);
return $this;
}
/**
* Implements the JsonSerializable interface
* @return array
*/
public function jsonSerialize(): array {
return array(
"precision" => $this->getPrecision(),
"separator" => $this->getSeparator(),
);
}
}