-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_billing_invoice.go
727 lines (607 loc) · 22.1 KB
/
model_billing_invoice.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
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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
"time"
)
// BillingInvoice struct for BillingInvoice
type BillingInvoice struct {
// Sum of services that the specified organization consumed in the period covered in this invoice. This parameter expresses its value in cents (100ths of one US Dollar) and calculates its value as **subtotalCents** + **salesTaxCents** - **startingBalanceCents**.
// Read only field.
AmountBilledCents *int64 `json:"amountBilledCents,omitempty"`
// Sum that the specified organization paid toward this invoice. This parameter expresses its value in cents (100ths of one US Dollar).
// Read only field.
AmountPaidCents *int64 `json:"amountPaidCents,omitempty"`
// Date and time when MongoDB Cloud created this invoice. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
Created *time.Time `json:"created,omitempty"`
// Sum that MongoDB credited the specified organization toward this invoice. This parameter expresses its value in cents (100ths of one US Dollar).
// Read only field.
CreditsCents *int64 `json:"creditsCents,omitempty"`
// Date and time when MongoDB Cloud finished the billing period that this invoice covers. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
EndDate *time.Time `json:"endDate,omitempty"`
// Unique 24-hexadecimal digit string that identifies the project associated to this invoice. This identifying string doesn't appear on all invoices.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the invoice submitted to the specified organization. Charges typically post the next day.
// Read only field.
Id *string `json:"id,omitempty"`
// List that contains individual services included in this invoice.
// Read only field.
LineItems *[]InvoiceLineItem `json:"lineItems,omitempty"`
// List that contains the invoices for organizations linked to the paying organization.
// Read only field.
LinkedInvoices *[]BillingInvoice `json:"linkedInvoices,omitempty"`
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
// Read only field.
Links *[]Link `json:"links,omitempty"`
// Unique 24-hexadecimal digit string that identifies the organization charged for services consumed from MongoDB Cloud.
// Read only field.
OrgId *string `json:"orgId,omitempty"`
// List that contains funds transferred to MongoDB to cover the specified service noted in this invoice.
// Read only field.
Payments *[]BillingPayment `json:"payments,omitempty"`
// List that contains payments that MongoDB returned to the organization for this invoice.
// Read only field.
Refunds *[]BillingRefund `json:"refunds,omitempty"`
// Sum of sales tax applied to this invoice. This parameter expresses its value in cents (100ths of one US Dollar).
// Read only field.
SalesTaxCents *int64 `json:"salesTaxCents,omitempty"`
// Date and time when MongoDB Cloud began the billing period that this invoice covers. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
StartDate *time.Time `json:"startDate,omitempty"`
// Sum that the specified organization owed to MongoDB when MongoDB issued this invoice. This parameter expresses its value in US Dollars.
// Read only field.
StartingBalanceCents *int64 `json:"startingBalanceCents,omitempty"`
// Phase of payment processing in which this invoice exists when you made this request. Accepted phases include: | Phase Value | Reason | |---|---| | CLOSED | MongoDB finalized all charges in the billing cycle but has yet to charge the customer. | | FAILED | MongoDB attempted to charge the provided credit card but charge for that amount failed. | | FORGIVEN | Customer initiated payment which MongoDB later forgave. | | FREE | All charges totalled zero so the customer won't be charged. | | INVOICED | MongoDB handled these charges using elastic invoicing. | | PAID | MongoDB succeeded in charging the provided credit card. | | PENDING | Invoice includes charges for the current billing cycle. | | PREPAID | Customer has a pre-paid plan so they won't be charged. |
StatusName *string `json:"statusName,omitempty"`
// Sum of all positive invoice line items contained in this invoice. This parameter expresses its value in cents (100ths of one US Dollar).
// Read only field.
SubtotalCents *int64 `json:"subtotalCents,omitempty"`
// Date and time when MongoDB Cloud last updated the value of this payment. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
// Read only field.
Updated *time.Time `json:"updated,omitempty"`
}
// NewBillingInvoice instantiates a new BillingInvoice 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 NewBillingInvoice() *BillingInvoice {
this := BillingInvoice{}
return &this
}
// NewBillingInvoiceWithDefaults instantiates a new BillingInvoice 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 NewBillingInvoiceWithDefaults() *BillingInvoice {
this := BillingInvoice{}
return &this
}
// GetAmountBilledCents returns the AmountBilledCents field value if set, zero value otherwise
func (o *BillingInvoice) GetAmountBilledCents() int64 {
if o == nil || IsNil(o.AmountBilledCents) {
var ret int64
return ret
}
return *o.AmountBilledCents
}
// GetAmountBilledCentsOk returns a tuple with the AmountBilledCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetAmountBilledCentsOk() (*int64, bool) {
if o == nil || IsNil(o.AmountBilledCents) {
return nil, false
}
return o.AmountBilledCents, true
}
// HasAmountBilledCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasAmountBilledCents() bool {
if o != nil && !IsNil(o.AmountBilledCents) {
return true
}
return false
}
// SetAmountBilledCents gets a reference to the given int64 and assigns it to the AmountBilledCents field.
func (o *BillingInvoice) SetAmountBilledCents(v int64) {
o.AmountBilledCents = &v
}
// GetAmountPaidCents returns the AmountPaidCents field value if set, zero value otherwise
func (o *BillingInvoice) GetAmountPaidCents() int64 {
if o == nil || IsNil(o.AmountPaidCents) {
var ret int64
return ret
}
return *o.AmountPaidCents
}
// GetAmountPaidCentsOk returns a tuple with the AmountPaidCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetAmountPaidCentsOk() (*int64, bool) {
if o == nil || IsNil(o.AmountPaidCents) {
return nil, false
}
return o.AmountPaidCents, true
}
// HasAmountPaidCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasAmountPaidCents() bool {
if o != nil && !IsNil(o.AmountPaidCents) {
return true
}
return false
}
// SetAmountPaidCents gets a reference to the given int64 and assigns it to the AmountPaidCents field.
func (o *BillingInvoice) SetAmountPaidCents(v int64) {
o.AmountPaidCents = &v
}
// GetCreated returns the Created field value if set, zero value otherwise
func (o *BillingInvoice) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
var ret time.Time
return ret
}
return *o.Created
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetCreatedOk() (*time.Time, bool) {
if o == nil || IsNil(o.Created) {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *BillingInvoice) HasCreated() bool {
if o != nil && !IsNil(o.Created) {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *BillingInvoice) SetCreated(v time.Time) {
o.Created = &v
}
// GetCreditsCents returns the CreditsCents field value if set, zero value otherwise
func (o *BillingInvoice) GetCreditsCents() int64 {
if o == nil || IsNil(o.CreditsCents) {
var ret int64
return ret
}
return *o.CreditsCents
}
// GetCreditsCentsOk returns a tuple with the CreditsCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetCreditsCentsOk() (*int64, bool) {
if o == nil || IsNil(o.CreditsCents) {
return nil, false
}
return o.CreditsCents, true
}
// HasCreditsCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasCreditsCents() bool {
if o != nil && !IsNil(o.CreditsCents) {
return true
}
return false
}
// SetCreditsCents gets a reference to the given int64 and assigns it to the CreditsCents field.
func (o *BillingInvoice) SetCreditsCents(v int64) {
o.CreditsCents = &v
}
// GetEndDate returns the EndDate field value if set, zero value otherwise
func (o *BillingInvoice) GetEndDate() time.Time {
if o == nil || IsNil(o.EndDate) {
var ret time.Time
return ret
}
return *o.EndDate
}
// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetEndDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.EndDate) {
return nil, false
}
return o.EndDate, true
}
// HasEndDate returns a boolean if a field has been set.
func (o *BillingInvoice) HasEndDate() bool {
if o != nil && !IsNil(o.EndDate) {
return true
}
return false
}
// SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field.
func (o *BillingInvoice) SetEndDate(v time.Time) {
o.EndDate = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *BillingInvoice) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *BillingInvoice) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *BillingInvoice) SetGroupId(v string) {
o.GroupId = &v
}
// GetId returns the Id field value if set, zero value otherwise
func (o *BillingInvoice) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *BillingInvoice) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *BillingInvoice) SetId(v string) {
o.Id = &v
}
// GetLineItems returns the LineItems field value if set, zero value otherwise
func (o *BillingInvoice) GetLineItems() []InvoiceLineItem {
if o == nil || IsNil(o.LineItems) {
var ret []InvoiceLineItem
return ret
}
return *o.LineItems
}
// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetLineItemsOk() (*[]InvoiceLineItem, bool) {
if o == nil || IsNil(o.LineItems) {
return nil, false
}
return o.LineItems, true
}
// HasLineItems returns a boolean if a field has been set.
func (o *BillingInvoice) HasLineItems() bool {
if o != nil && !IsNil(o.LineItems) {
return true
}
return false
}
// SetLineItems gets a reference to the given []InvoiceLineItem and assigns it to the LineItems field.
func (o *BillingInvoice) SetLineItems(v []InvoiceLineItem) {
o.LineItems = &v
}
// GetLinkedInvoices returns the LinkedInvoices field value if set, zero value otherwise
func (o *BillingInvoice) GetLinkedInvoices() []BillingInvoice {
if o == nil || IsNil(o.LinkedInvoices) {
var ret []BillingInvoice
return ret
}
return *o.LinkedInvoices
}
// GetLinkedInvoicesOk returns a tuple with the LinkedInvoices field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetLinkedInvoicesOk() (*[]BillingInvoice, bool) {
if o == nil || IsNil(o.LinkedInvoices) {
return nil, false
}
return o.LinkedInvoices, true
}
// HasLinkedInvoices returns a boolean if a field has been set.
func (o *BillingInvoice) HasLinkedInvoices() bool {
if o != nil && !IsNil(o.LinkedInvoices) {
return true
}
return false
}
// SetLinkedInvoices gets a reference to the given []BillingInvoice and assigns it to the LinkedInvoices field.
func (o *BillingInvoice) SetLinkedInvoices(v []BillingInvoice) {
o.LinkedInvoices = &v
}
// GetLinks returns the Links field value if set, zero value otherwise
func (o *BillingInvoice) GetLinks() []Link {
if o == nil || IsNil(o.Links) {
var ret []Link
return ret
}
return *o.Links
}
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetLinksOk() (*[]Link, bool) {
if o == nil || IsNil(o.Links) {
return nil, false
}
return o.Links, true
}
// HasLinks returns a boolean if a field has been set.
func (o *BillingInvoice) HasLinks() bool {
if o != nil && !IsNil(o.Links) {
return true
}
return false
}
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
func (o *BillingInvoice) SetLinks(v []Link) {
o.Links = &v
}
// GetOrgId returns the OrgId field value if set, zero value otherwise
func (o *BillingInvoice) GetOrgId() string {
if o == nil || IsNil(o.OrgId) {
var ret string
return ret
}
return *o.OrgId
}
// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetOrgIdOk() (*string, bool) {
if o == nil || IsNil(o.OrgId) {
return nil, false
}
return o.OrgId, true
}
// HasOrgId returns a boolean if a field has been set.
func (o *BillingInvoice) HasOrgId() bool {
if o != nil && !IsNil(o.OrgId) {
return true
}
return false
}
// SetOrgId gets a reference to the given string and assigns it to the OrgId field.
func (o *BillingInvoice) SetOrgId(v string) {
o.OrgId = &v
}
// GetPayments returns the Payments field value if set, zero value otherwise
func (o *BillingInvoice) GetPayments() []BillingPayment {
if o == nil || IsNil(o.Payments) {
var ret []BillingPayment
return ret
}
return *o.Payments
}
// GetPaymentsOk returns a tuple with the Payments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetPaymentsOk() (*[]BillingPayment, bool) {
if o == nil || IsNil(o.Payments) {
return nil, false
}
return o.Payments, true
}
// HasPayments returns a boolean if a field has been set.
func (o *BillingInvoice) HasPayments() bool {
if o != nil && !IsNil(o.Payments) {
return true
}
return false
}
// SetPayments gets a reference to the given []BillingPayment and assigns it to the Payments field.
func (o *BillingInvoice) SetPayments(v []BillingPayment) {
o.Payments = &v
}
// GetRefunds returns the Refunds field value if set, zero value otherwise
func (o *BillingInvoice) GetRefunds() []BillingRefund {
if o == nil || IsNil(o.Refunds) {
var ret []BillingRefund
return ret
}
return *o.Refunds
}
// GetRefundsOk returns a tuple with the Refunds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetRefundsOk() (*[]BillingRefund, bool) {
if o == nil || IsNil(o.Refunds) {
return nil, false
}
return o.Refunds, true
}
// HasRefunds returns a boolean if a field has been set.
func (o *BillingInvoice) HasRefunds() bool {
if o != nil && !IsNil(o.Refunds) {
return true
}
return false
}
// SetRefunds gets a reference to the given []BillingRefund and assigns it to the Refunds field.
func (o *BillingInvoice) SetRefunds(v []BillingRefund) {
o.Refunds = &v
}
// GetSalesTaxCents returns the SalesTaxCents field value if set, zero value otherwise
func (o *BillingInvoice) GetSalesTaxCents() int64 {
if o == nil || IsNil(o.SalesTaxCents) {
var ret int64
return ret
}
return *o.SalesTaxCents
}
// GetSalesTaxCentsOk returns a tuple with the SalesTaxCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetSalesTaxCentsOk() (*int64, bool) {
if o == nil || IsNil(o.SalesTaxCents) {
return nil, false
}
return o.SalesTaxCents, true
}
// HasSalesTaxCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasSalesTaxCents() bool {
if o != nil && !IsNil(o.SalesTaxCents) {
return true
}
return false
}
// SetSalesTaxCents gets a reference to the given int64 and assigns it to the SalesTaxCents field.
func (o *BillingInvoice) SetSalesTaxCents(v int64) {
o.SalesTaxCents = &v
}
// GetStartDate returns the StartDate field value if set, zero value otherwise
func (o *BillingInvoice) GetStartDate() time.Time {
if o == nil || IsNil(o.StartDate) {
var ret time.Time
return ret
}
return *o.StartDate
}
// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetStartDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.StartDate) {
return nil, false
}
return o.StartDate, true
}
// HasStartDate returns a boolean if a field has been set.
func (o *BillingInvoice) HasStartDate() bool {
if o != nil && !IsNil(o.StartDate) {
return true
}
return false
}
// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *BillingInvoice) SetStartDate(v time.Time) {
o.StartDate = &v
}
// GetStartingBalanceCents returns the StartingBalanceCents field value if set, zero value otherwise
func (o *BillingInvoice) GetStartingBalanceCents() int64 {
if o == nil || IsNil(o.StartingBalanceCents) {
var ret int64
return ret
}
return *o.StartingBalanceCents
}
// GetStartingBalanceCentsOk returns a tuple with the StartingBalanceCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetStartingBalanceCentsOk() (*int64, bool) {
if o == nil || IsNil(o.StartingBalanceCents) {
return nil, false
}
return o.StartingBalanceCents, true
}
// HasStartingBalanceCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasStartingBalanceCents() bool {
if o != nil && !IsNil(o.StartingBalanceCents) {
return true
}
return false
}
// SetStartingBalanceCents gets a reference to the given int64 and assigns it to the StartingBalanceCents field.
func (o *BillingInvoice) SetStartingBalanceCents(v int64) {
o.StartingBalanceCents = &v
}
// GetStatusName returns the StatusName field value if set, zero value otherwise
func (o *BillingInvoice) GetStatusName() string {
if o == nil || IsNil(o.StatusName) {
var ret string
return ret
}
return *o.StatusName
}
// GetStatusNameOk returns a tuple with the StatusName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetStatusNameOk() (*string, bool) {
if o == nil || IsNil(o.StatusName) {
return nil, false
}
return o.StatusName, true
}
// HasStatusName returns a boolean if a field has been set.
func (o *BillingInvoice) HasStatusName() bool {
if o != nil && !IsNil(o.StatusName) {
return true
}
return false
}
// SetStatusName gets a reference to the given string and assigns it to the StatusName field.
func (o *BillingInvoice) SetStatusName(v string) {
o.StatusName = &v
}
// GetSubtotalCents returns the SubtotalCents field value if set, zero value otherwise
func (o *BillingInvoice) GetSubtotalCents() int64 {
if o == nil || IsNil(o.SubtotalCents) {
var ret int64
return ret
}
return *o.SubtotalCents
}
// GetSubtotalCentsOk returns a tuple with the SubtotalCents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetSubtotalCentsOk() (*int64, bool) {
if o == nil || IsNil(o.SubtotalCents) {
return nil, false
}
return o.SubtotalCents, true
}
// HasSubtotalCents returns a boolean if a field has been set.
func (o *BillingInvoice) HasSubtotalCents() bool {
if o != nil && !IsNil(o.SubtotalCents) {
return true
}
return false
}
// SetSubtotalCents gets a reference to the given int64 and assigns it to the SubtotalCents field.
func (o *BillingInvoice) SetSubtotalCents(v int64) {
o.SubtotalCents = &v
}
// GetUpdated returns the Updated field value if set, zero value otherwise
func (o *BillingInvoice) GetUpdated() time.Time {
if o == nil || IsNil(o.Updated) {
var ret time.Time
return ret
}
return *o.Updated
}
// GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BillingInvoice) GetUpdatedOk() (*time.Time, bool) {
if o == nil || IsNil(o.Updated) {
return nil, false
}
return o.Updated, true
}
// HasUpdated returns a boolean if a field has been set.
func (o *BillingInvoice) HasUpdated() bool {
if o != nil && !IsNil(o.Updated) {
return true
}
return false
}
// SetUpdated gets a reference to the given time.Time and assigns it to the Updated field.
func (o *BillingInvoice) SetUpdated(v time.Time) {
o.Updated = &v
}
func (o BillingInvoice) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BillingInvoice) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.StatusName) {
toSerialize["statusName"] = o.StatusName
}
return toSerialize, nil
}