-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_invoice_detailsv6_1_response_summary_misc_charges_inner.go
275 lines (229 loc) · 9.73 KB
/
model_invoice_detailsv6_1_response_summary_misc_charges_inner.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
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
/*
XI Sdk Resellers
For resellers seeking to innovate with Ingram Micro's API solutions, automate your eCommerce experience with our array of API's and webhooks to craft a seamless journey for your customers.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package xi_sdk_resellers
import (
"encoding/json"
)
// checks if the InvoiceDetailsv61ResponseSummaryMiscChargesInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &InvoiceDetailsv61ResponseSummaryMiscChargesInner{}
// InvoiceDetailsv61ResponseSummaryMiscChargesInner struct for InvoiceDetailsv61ResponseSummaryMiscChargesInner
type InvoiceDetailsv61ResponseSummaryMiscChargesInner struct {
// Description of the charge.
ChargeDescription *string `json:"chargeDescription,omitempty"`
// The number of lines for which miscellaneous charges are applicable.
MiscChargeLineCount *int32 `json:"miscChargeLineCount,omitempty"`
// Miscellaneous charge amount.
MiscChargeLineTotal *float64 `json:"miscChargeLineTotal,omitempty"`
// Reference of the chargeLine.
ChargeLineReference *string `json:"chargeLineReference,omitempty"`
// Is charge non miscellaneous.
IsNonMisc *string `json:"isNonMisc,omitempty"`
}
// NewInvoiceDetailsv61ResponseSummaryMiscChargesInner instantiates a new InvoiceDetailsv61ResponseSummaryMiscChargesInner 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 NewInvoiceDetailsv61ResponseSummaryMiscChargesInner() *InvoiceDetailsv61ResponseSummaryMiscChargesInner {
this := InvoiceDetailsv61ResponseSummaryMiscChargesInner{}
return &this
}
// NewInvoiceDetailsv61ResponseSummaryMiscChargesInnerWithDefaults instantiates a new InvoiceDetailsv61ResponseSummaryMiscChargesInner 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 NewInvoiceDetailsv61ResponseSummaryMiscChargesInnerWithDefaults() *InvoiceDetailsv61ResponseSummaryMiscChargesInner {
this := InvoiceDetailsv61ResponseSummaryMiscChargesInner{}
return &this
}
// GetChargeDescription returns the ChargeDescription field value if set, zero value otherwise.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetChargeDescription() string {
if o == nil || IsNil(o.ChargeDescription) {
var ret string
return ret
}
return *o.ChargeDescription
}
// GetChargeDescriptionOk returns a tuple with the ChargeDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetChargeDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.ChargeDescription) {
return nil, false
}
return o.ChargeDescription, true
}
// HasChargeDescription returns a boolean if a field has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) HasChargeDescription() bool {
if o != nil && !IsNil(o.ChargeDescription) {
return true
}
return false
}
// SetChargeDescription gets a reference to the given string and assigns it to the ChargeDescription field.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) SetChargeDescription(v string) {
o.ChargeDescription = &v
}
// GetMiscChargeLineCount returns the MiscChargeLineCount field value if set, zero value otherwise.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetMiscChargeLineCount() int32 {
if o == nil || IsNil(o.MiscChargeLineCount) {
var ret int32
return ret
}
return *o.MiscChargeLineCount
}
// GetMiscChargeLineCountOk returns a tuple with the MiscChargeLineCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetMiscChargeLineCountOk() (*int32, bool) {
if o == nil || IsNil(o.MiscChargeLineCount) {
return nil, false
}
return o.MiscChargeLineCount, true
}
// HasMiscChargeLineCount returns a boolean if a field has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) HasMiscChargeLineCount() bool {
if o != nil && !IsNil(o.MiscChargeLineCount) {
return true
}
return false
}
// SetMiscChargeLineCount gets a reference to the given int32 and assigns it to the MiscChargeLineCount field.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) SetMiscChargeLineCount(v int32) {
o.MiscChargeLineCount = &v
}
// GetMiscChargeLineTotal returns the MiscChargeLineTotal field value if set, zero value otherwise.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetMiscChargeLineTotal() float64 {
if o == nil || IsNil(o.MiscChargeLineTotal) {
var ret float64
return ret
}
return *o.MiscChargeLineTotal
}
// GetMiscChargeLineTotalOk returns a tuple with the MiscChargeLineTotal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetMiscChargeLineTotalOk() (*float64, bool) {
if o == nil || IsNil(o.MiscChargeLineTotal) {
return nil, false
}
return o.MiscChargeLineTotal, true
}
// HasMiscChargeLineTotal returns a boolean if a field has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) HasMiscChargeLineTotal() bool {
if o != nil && !IsNil(o.MiscChargeLineTotal) {
return true
}
return false
}
// SetMiscChargeLineTotal gets a reference to the given float64 and assigns it to the MiscChargeLineTotal field.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) SetMiscChargeLineTotal(v float64) {
o.MiscChargeLineTotal = &v
}
// GetChargeLineReference returns the ChargeLineReference field value if set, zero value otherwise.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetChargeLineReference() string {
if o == nil || IsNil(o.ChargeLineReference) {
var ret string
return ret
}
return *o.ChargeLineReference
}
// GetChargeLineReferenceOk returns a tuple with the ChargeLineReference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetChargeLineReferenceOk() (*string, bool) {
if o == nil || IsNil(o.ChargeLineReference) {
return nil, false
}
return o.ChargeLineReference, true
}
// HasChargeLineReference returns a boolean if a field has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) HasChargeLineReference() bool {
if o != nil && !IsNil(o.ChargeLineReference) {
return true
}
return false
}
// SetChargeLineReference gets a reference to the given string and assigns it to the ChargeLineReference field.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) SetChargeLineReference(v string) {
o.ChargeLineReference = &v
}
// GetIsNonMisc returns the IsNonMisc field value if set, zero value otherwise.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetIsNonMisc() string {
if o == nil || IsNil(o.IsNonMisc) {
var ret string
return ret
}
return *o.IsNonMisc
}
// GetIsNonMiscOk returns a tuple with the IsNonMisc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) GetIsNonMiscOk() (*string, bool) {
if o == nil || IsNil(o.IsNonMisc) {
return nil, false
}
return o.IsNonMisc, true
}
// HasIsNonMisc returns a boolean if a field has been set.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) HasIsNonMisc() bool {
if o != nil && !IsNil(o.IsNonMisc) {
return true
}
return false
}
// SetIsNonMisc gets a reference to the given string and assigns it to the IsNonMisc field.
func (o *InvoiceDetailsv61ResponseSummaryMiscChargesInner) SetIsNonMisc(v string) {
o.IsNonMisc = &v
}
func (o InvoiceDetailsv61ResponseSummaryMiscChargesInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o InvoiceDetailsv61ResponseSummaryMiscChargesInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ChargeDescription) {
toSerialize["chargeDescription"] = o.ChargeDescription
}
if !IsNil(o.MiscChargeLineCount) {
toSerialize["miscChargeLineCount"] = o.MiscChargeLineCount
}
if !IsNil(o.MiscChargeLineTotal) {
toSerialize["miscChargeLineTotal"] = o.MiscChargeLineTotal
}
if !IsNil(o.ChargeLineReference) {
toSerialize["chargeLineReference"] = o.ChargeLineReference
}
if !IsNil(o.IsNonMisc) {
toSerialize["isNonMisc"] = o.IsNonMisc
}
return toSerialize, nil
}
type NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner struct {
value *InvoiceDetailsv61ResponseSummaryMiscChargesInner
isSet bool
}
func (v NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) Get() *InvoiceDetailsv61ResponseSummaryMiscChargesInner {
return v.value
}
func (v *NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) Set(val *InvoiceDetailsv61ResponseSummaryMiscChargesInner) {
v.value = val
v.isSet = true
}
func (v NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) IsSet() bool {
return v.isSet
}
func (v *NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInvoiceDetailsv61ResponseSummaryMiscChargesInner(val *InvoiceDetailsv61ResponseSummaryMiscChargesInner) *NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner {
return &NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner{value: val, isSet: true}
}
func (v NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInvoiceDetailsv61ResponseSummaryMiscChargesInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}