/
model_service_billing_price.go
223 lines (184 loc) · 5.31 KB
/
model_service_billing_price.go
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
/*
HyperOne
HyperOne API
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// ServiceBillingPrice struct for ServiceBillingPrice
type ServiceBillingPrice struct {
EUR *float32 `json:"EUR,omitempty"`
GBP *float32 `json:"GBP,omitempty"`
PLN *float32 `json:"PLN,omitempty"`
USD *float32 `json:"USD,omitempty"`
}
// NewServiceBillingPrice instantiates a new ServiceBillingPrice object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewServiceBillingPrice() *ServiceBillingPrice {
this := ServiceBillingPrice{}
return &this
}
// NewServiceBillingPriceWithDefaults instantiates a new ServiceBillingPrice object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewServiceBillingPriceWithDefaults() *ServiceBillingPrice {
this := ServiceBillingPrice{}
return &this
}
// GetEUR returns the EUR field value if set, zero value otherwise.
func (o *ServiceBillingPrice) GetEUR() float32 {
if o == nil || o.EUR == nil {
var ret float32
return ret
}
return *o.EUR
}
// GetEUROk returns a tuple with the EUR field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceBillingPrice) GetEUROk() (*float32, bool) {
if o == nil || o.EUR == nil {
return nil, false
}
return o.EUR, true
}
// HasEUR returns a boolean if a field has been set.
func (o *ServiceBillingPrice) HasEUR() bool {
if o != nil && o.EUR != nil {
return true
}
return false
}
// SetEUR gets a reference to the given float32 and assigns it to the EUR field.
func (o *ServiceBillingPrice) SetEUR(v float32) {
o.EUR = &v
}
// GetGBP returns the GBP field value if set, zero value otherwise.
func (o *ServiceBillingPrice) GetGBP() float32 {
if o == nil || o.GBP == nil {
var ret float32
return ret
}
return *o.GBP
}
// GetGBPOk returns a tuple with the GBP field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceBillingPrice) GetGBPOk() (*float32, bool) {
if o == nil || o.GBP == nil {
return nil, false
}
return o.GBP, true
}
// HasGBP returns a boolean if a field has been set.
func (o *ServiceBillingPrice) HasGBP() bool {
if o != nil && o.GBP != nil {
return true
}
return false
}
// SetGBP gets a reference to the given float32 and assigns it to the GBP field.
func (o *ServiceBillingPrice) SetGBP(v float32) {
o.GBP = &v
}
// GetPLN returns the PLN field value if set, zero value otherwise.
func (o *ServiceBillingPrice) GetPLN() float32 {
if o == nil || o.PLN == nil {
var ret float32
return ret
}
return *o.PLN
}
// GetPLNOk returns a tuple with the PLN field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceBillingPrice) GetPLNOk() (*float32, bool) {
if o == nil || o.PLN == nil {
return nil, false
}
return o.PLN, true
}
// HasPLN returns a boolean if a field has been set.
func (o *ServiceBillingPrice) HasPLN() bool {
if o != nil && o.PLN != nil {
return true
}
return false
}
// SetPLN gets a reference to the given float32 and assigns it to the PLN field.
func (o *ServiceBillingPrice) SetPLN(v float32) {
o.PLN = &v
}
// GetUSD returns the USD field value if set, zero value otherwise.
func (o *ServiceBillingPrice) GetUSD() float32 {
if o == nil || o.USD == nil {
var ret float32
return ret
}
return *o.USD
}
// GetUSDOk returns a tuple with the USD field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceBillingPrice) GetUSDOk() (*float32, bool) {
if o == nil || o.USD == nil {
return nil, false
}
return o.USD, true
}
// HasUSD returns a boolean if a field has been set.
func (o *ServiceBillingPrice) HasUSD() bool {
if o != nil && o.USD != nil {
return true
}
return false
}
// SetUSD gets a reference to the given float32 and assigns it to the USD field.
func (o *ServiceBillingPrice) SetUSD(v float32) {
o.USD = &v
}
func (o ServiceBillingPrice) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.EUR != nil {
toSerialize["EUR"] = o.EUR
}
if o.GBP != nil {
toSerialize["GBP"] = o.GBP
}
if o.PLN != nil {
toSerialize["PLN"] = o.PLN
}
if o.USD != nil {
toSerialize["USD"] = o.USD
}
return json.Marshal(toSerialize)
}
type NullableServiceBillingPrice struct {
value *ServiceBillingPrice
isSet bool
}
func (v NullableServiceBillingPrice) Get() *ServiceBillingPrice {
return v.value
}
func (v *NullableServiceBillingPrice) Set(val *ServiceBillingPrice) {
v.value = val
v.isSet = true
}
func (v NullableServiceBillingPrice) IsSet() bool {
return v.isSet
}
func (v *NullableServiceBillingPrice) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableServiceBillingPrice(val *ServiceBillingPrice) *NullableServiceBillingPrice {
return &NullableServiceBillingPrice{value: val, isSet: true}
}
func (v NullableServiceBillingPrice) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableServiceBillingPrice) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}