/
model_get_order_response.go
891 lines (762 loc) · 26.5 KB
/
model_get_order_response.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
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
/*
SORACOM API
SORACOM API v1
API version: VERSION_PLACEHOLDER
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// GetOrderResponse struct for GetOrderResponse
type GetOrderResponse struct {
// 適用済み配送オプション
AppliedShippingOptions []map[string]interface{} `json:"appliedShippingOptions,omitempty"`
// 差引請求額
BalanceDue *float64 `json:"balanceDue,omitempty"`
ContainsTaxIncludedAmounts *bool `json:"containsTaxIncludedAmounts,omitempty"`
// 通貨
Currency *string `json:"currency,omitempty"`
// メールアドレス
Email *string `json:"email,omitempty"`
// 発注チャンネル
OrderChannel *string `json:"orderChannel,omitempty"`
// 発注日時 (yyyyMMddHHmmss)
OrderDateTime *string `json:"orderDateTime,omitempty"`
// 発注 ID
OrderId *string `json:"orderId,omitempty"`
// 発注商品リスト
OrderItemList []EstimatedOrderItemModel `json:"orderItemList,omitempty"`
// 発注ステータス
OrderStatus *string `json:"orderStatus,omitempty"`
// 希望納品日
PreferredDeliveryDate *string `json:"preferredDeliveryDate,omitempty"`
// 注文番号
PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"`
ShippingAddress *ShippingAddressModel `json:"shippingAddress,omitempty"`
// 商品発送先 ID
ShippingAddressId *string `json:"shippingAddressId,omitempty"`
// 配送料
ShippingCost *float64 `json:"shippingCost,omitempty"`
// 宅配便送り状番号 (代表)
ShippingLabelNumber *string `json:"shippingLabelNumber,omitempty"`
// 宅配便送り状番号
ShippingLabelNumbers []string `json:"shippingLabelNumbers,omitempty"`
// 税額
TaxAmount *float64 `json:"taxAmount,omitempty"`
// 送料に含まれる税額
TaxIncludedInShippingCost *float64 `json:"taxIncludedInShippingCost,omitempty"`
// 配送料の課税有無
TaxOnShippingCost *bool `json:"taxOnShippingCost,omitempty"`
// 合計額 (税込)
TotalAmount *float64 `json:"totalAmount,omitempty"`
// 源泉徴収税額
WithholdingTaxAmount *float64 `json:"withholdingTaxAmount,omitempty"`
}
// NewGetOrderResponse instantiates a new GetOrderResponse 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 NewGetOrderResponse() *GetOrderResponse {
this := GetOrderResponse{}
return &this
}
// NewGetOrderResponseWithDefaults instantiates a new GetOrderResponse 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 NewGetOrderResponseWithDefaults() *GetOrderResponse {
this := GetOrderResponse{}
return &this
}
// GetAppliedShippingOptions returns the AppliedShippingOptions field value if set, zero value otherwise.
func (o *GetOrderResponse) GetAppliedShippingOptions() []map[string]interface{} {
if o == nil || o.AppliedShippingOptions == nil {
var ret []map[string]interface{}
return ret
}
return o.AppliedShippingOptions
}
// GetAppliedShippingOptionsOk returns a tuple with the AppliedShippingOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetAppliedShippingOptionsOk() ([]map[string]interface{}, bool) {
if o == nil || o.AppliedShippingOptions == nil {
return nil, false
}
return o.AppliedShippingOptions, true
}
// HasAppliedShippingOptions returns a boolean if a field has been set.
func (o *GetOrderResponse) HasAppliedShippingOptions() bool {
if o != nil && o.AppliedShippingOptions != nil {
return true
}
return false
}
// SetAppliedShippingOptions gets a reference to the given []map[string]interface{} and assigns it to the AppliedShippingOptions field.
func (o *GetOrderResponse) SetAppliedShippingOptions(v []map[string]interface{}) {
o.AppliedShippingOptions = v
}
// GetBalanceDue returns the BalanceDue field value if set, zero value otherwise.
func (o *GetOrderResponse) GetBalanceDue() float64 {
if o == nil || o.BalanceDue == nil {
var ret float64
return ret
}
return *o.BalanceDue
}
// GetBalanceDueOk returns a tuple with the BalanceDue field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetBalanceDueOk() (*float64, bool) {
if o == nil || o.BalanceDue == nil {
return nil, false
}
return o.BalanceDue, true
}
// HasBalanceDue returns a boolean if a field has been set.
func (o *GetOrderResponse) HasBalanceDue() bool {
if o != nil && o.BalanceDue != nil {
return true
}
return false
}
// SetBalanceDue gets a reference to the given float64 and assigns it to the BalanceDue field.
func (o *GetOrderResponse) SetBalanceDue(v float64) {
o.BalanceDue = &v
}
// GetContainsTaxIncludedAmounts returns the ContainsTaxIncludedAmounts field value if set, zero value otherwise.
func (o *GetOrderResponse) GetContainsTaxIncludedAmounts() bool {
if o == nil || o.ContainsTaxIncludedAmounts == nil {
var ret bool
return ret
}
return *o.ContainsTaxIncludedAmounts
}
// GetContainsTaxIncludedAmountsOk returns a tuple with the ContainsTaxIncludedAmounts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetContainsTaxIncludedAmountsOk() (*bool, bool) {
if o == nil || o.ContainsTaxIncludedAmounts == nil {
return nil, false
}
return o.ContainsTaxIncludedAmounts, true
}
// HasContainsTaxIncludedAmounts returns a boolean if a field has been set.
func (o *GetOrderResponse) HasContainsTaxIncludedAmounts() bool {
if o != nil && o.ContainsTaxIncludedAmounts != nil {
return true
}
return false
}
// SetContainsTaxIncludedAmounts gets a reference to the given bool and assigns it to the ContainsTaxIncludedAmounts field.
func (o *GetOrderResponse) SetContainsTaxIncludedAmounts(v bool) {
o.ContainsTaxIncludedAmounts = &v
}
// GetCurrency returns the Currency field value if set, zero value otherwise.
func (o *GetOrderResponse) GetCurrency() string {
if o == nil || o.Currency == nil {
var ret string
return ret
}
return *o.Currency
}
// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetCurrencyOk() (*string, bool) {
if o == nil || o.Currency == nil {
return nil, false
}
return o.Currency, true
}
// HasCurrency returns a boolean if a field has been set.
func (o *GetOrderResponse) HasCurrency() bool {
if o != nil && o.Currency != nil {
return true
}
return false
}
// SetCurrency gets a reference to the given string and assigns it to the Currency field.
func (o *GetOrderResponse) SetCurrency(v string) {
o.Currency = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *GetOrderResponse) GetEmail() string {
if o == nil || o.Email == nil {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetEmailOk() (*string, bool) {
if o == nil || o.Email == nil {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *GetOrderResponse) HasEmail() bool {
if o != nil && o.Email != nil {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *GetOrderResponse) SetEmail(v string) {
o.Email = &v
}
// GetOrderChannel returns the OrderChannel field value if set, zero value otherwise.
func (o *GetOrderResponse) GetOrderChannel() string {
if o == nil || o.OrderChannel == nil {
var ret string
return ret
}
return *o.OrderChannel
}
// GetOrderChannelOk returns a tuple with the OrderChannel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetOrderChannelOk() (*string, bool) {
if o == nil || o.OrderChannel == nil {
return nil, false
}
return o.OrderChannel, true
}
// HasOrderChannel returns a boolean if a field has been set.
func (o *GetOrderResponse) HasOrderChannel() bool {
if o != nil && o.OrderChannel != nil {
return true
}
return false
}
// SetOrderChannel gets a reference to the given string and assigns it to the OrderChannel field.
func (o *GetOrderResponse) SetOrderChannel(v string) {
o.OrderChannel = &v
}
// GetOrderDateTime returns the OrderDateTime field value if set, zero value otherwise.
func (o *GetOrderResponse) GetOrderDateTime() string {
if o == nil || o.OrderDateTime == nil {
var ret string
return ret
}
return *o.OrderDateTime
}
// GetOrderDateTimeOk returns a tuple with the OrderDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetOrderDateTimeOk() (*string, bool) {
if o == nil || o.OrderDateTime == nil {
return nil, false
}
return o.OrderDateTime, true
}
// HasOrderDateTime returns a boolean if a field has been set.
func (o *GetOrderResponse) HasOrderDateTime() bool {
if o != nil && o.OrderDateTime != nil {
return true
}
return false
}
// SetOrderDateTime gets a reference to the given string and assigns it to the OrderDateTime field.
func (o *GetOrderResponse) SetOrderDateTime(v string) {
o.OrderDateTime = &v
}
// GetOrderId returns the OrderId field value if set, zero value otherwise.
func (o *GetOrderResponse) GetOrderId() string {
if o == nil || o.OrderId == nil {
var ret string
return ret
}
return *o.OrderId
}
// GetOrderIdOk returns a tuple with the OrderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetOrderIdOk() (*string, bool) {
if o == nil || o.OrderId == nil {
return nil, false
}
return o.OrderId, true
}
// HasOrderId returns a boolean if a field has been set.
func (o *GetOrderResponse) HasOrderId() bool {
if o != nil && o.OrderId != nil {
return true
}
return false
}
// SetOrderId gets a reference to the given string and assigns it to the OrderId field.
func (o *GetOrderResponse) SetOrderId(v string) {
o.OrderId = &v
}
// GetOrderItemList returns the OrderItemList field value if set, zero value otherwise.
func (o *GetOrderResponse) GetOrderItemList() []EstimatedOrderItemModel {
if o == nil || o.OrderItemList == nil {
var ret []EstimatedOrderItemModel
return ret
}
return o.OrderItemList
}
// GetOrderItemListOk returns a tuple with the OrderItemList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetOrderItemListOk() ([]EstimatedOrderItemModel, bool) {
if o == nil || o.OrderItemList == nil {
return nil, false
}
return o.OrderItemList, true
}
// HasOrderItemList returns a boolean if a field has been set.
func (o *GetOrderResponse) HasOrderItemList() bool {
if o != nil && o.OrderItemList != nil {
return true
}
return false
}
// SetOrderItemList gets a reference to the given []EstimatedOrderItemModel and assigns it to the OrderItemList field.
func (o *GetOrderResponse) SetOrderItemList(v []EstimatedOrderItemModel) {
o.OrderItemList = v
}
// GetOrderStatus returns the OrderStatus field value if set, zero value otherwise.
func (o *GetOrderResponse) GetOrderStatus() string {
if o == nil || o.OrderStatus == nil {
var ret string
return ret
}
return *o.OrderStatus
}
// GetOrderStatusOk returns a tuple with the OrderStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetOrderStatusOk() (*string, bool) {
if o == nil || o.OrderStatus == nil {
return nil, false
}
return o.OrderStatus, true
}
// HasOrderStatus returns a boolean if a field has been set.
func (o *GetOrderResponse) HasOrderStatus() bool {
if o != nil && o.OrderStatus != nil {
return true
}
return false
}
// SetOrderStatus gets a reference to the given string and assigns it to the OrderStatus field.
func (o *GetOrderResponse) SetOrderStatus(v string) {
o.OrderStatus = &v
}
// GetPreferredDeliveryDate returns the PreferredDeliveryDate field value if set, zero value otherwise.
func (o *GetOrderResponse) GetPreferredDeliveryDate() string {
if o == nil || o.PreferredDeliveryDate == nil {
var ret string
return ret
}
return *o.PreferredDeliveryDate
}
// GetPreferredDeliveryDateOk returns a tuple with the PreferredDeliveryDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetPreferredDeliveryDateOk() (*string, bool) {
if o == nil || o.PreferredDeliveryDate == nil {
return nil, false
}
return o.PreferredDeliveryDate, true
}
// HasPreferredDeliveryDate returns a boolean if a field has been set.
func (o *GetOrderResponse) HasPreferredDeliveryDate() bool {
if o != nil && o.PreferredDeliveryDate != nil {
return true
}
return false
}
// SetPreferredDeliveryDate gets a reference to the given string and assigns it to the PreferredDeliveryDate field.
func (o *GetOrderResponse) SetPreferredDeliveryDate(v string) {
o.PreferredDeliveryDate = &v
}
// GetPurchaseOrderNumber returns the PurchaseOrderNumber field value if set, zero value otherwise.
func (o *GetOrderResponse) GetPurchaseOrderNumber() string {
if o == nil || o.PurchaseOrderNumber == nil {
var ret string
return ret
}
return *o.PurchaseOrderNumber
}
// GetPurchaseOrderNumberOk returns a tuple with the PurchaseOrderNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetPurchaseOrderNumberOk() (*string, bool) {
if o == nil || o.PurchaseOrderNumber == nil {
return nil, false
}
return o.PurchaseOrderNumber, true
}
// HasPurchaseOrderNumber returns a boolean if a field has been set.
func (o *GetOrderResponse) HasPurchaseOrderNumber() bool {
if o != nil && o.PurchaseOrderNumber != nil {
return true
}
return false
}
// SetPurchaseOrderNumber gets a reference to the given string and assigns it to the PurchaseOrderNumber field.
func (o *GetOrderResponse) SetPurchaseOrderNumber(v string) {
o.PurchaseOrderNumber = &v
}
// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise.
func (o *GetOrderResponse) GetShippingAddress() ShippingAddressModel {
if o == nil || o.ShippingAddress == nil {
var ret ShippingAddressModel
return ret
}
return *o.ShippingAddress
}
// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetShippingAddressOk() (*ShippingAddressModel, bool) {
if o == nil || o.ShippingAddress == nil {
return nil, false
}
return o.ShippingAddress, true
}
// HasShippingAddress returns a boolean if a field has been set.
func (o *GetOrderResponse) HasShippingAddress() bool {
if o != nil && o.ShippingAddress != nil {
return true
}
return false
}
// SetShippingAddress gets a reference to the given ShippingAddressModel and assigns it to the ShippingAddress field.
func (o *GetOrderResponse) SetShippingAddress(v ShippingAddressModel) {
o.ShippingAddress = &v
}
// GetShippingAddressId returns the ShippingAddressId field value if set, zero value otherwise.
func (o *GetOrderResponse) GetShippingAddressId() string {
if o == nil || o.ShippingAddressId == nil {
var ret string
return ret
}
return *o.ShippingAddressId
}
// GetShippingAddressIdOk returns a tuple with the ShippingAddressId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetShippingAddressIdOk() (*string, bool) {
if o == nil || o.ShippingAddressId == nil {
return nil, false
}
return o.ShippingAddressId, true
}
// HasShippingAddressId returns a boolean if a field has been set.
func (o *GetOrderResponse) HasShippingAddressId() bool {
if o != nil && o.ShippingAddressId != nil {
return true
}
return false
}
// SetShippingAddressId gets a reference to the given string and assigns it to the ShippingAddressId field.
func (o *GetOrderResponse) SetShippingAddressId(v string) {
o.ShippingAddressId = &v
}
// GetShippingCost returns the ShippingCost field value if set, zero value otherwise.
func (o *GetOrderResponse) GetShippingCost() float64 {
if o == nil || o.ShippingCost == nil {
var ret float64
return ret
}
return *o.ShippingCost
}
// GetShippingCostOk returns a tuple with the ShippingCost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetShippingCostOk() (*float64, bool) {
if o == nil || o.ShippingCost == nil {
return nil, false
}
return o.ShippingCost, true
}
// HasShippingCost returns a boolean if a field has been set.
func (o *GetOrderResponse) HasShippingCost() bool {
if o != nil && o.ShippingCost != nil {
return true
}
return false
}
// SetShippingCost gets a reference to the given float64 and assigns it to the ShippingCost field.
func (o *GetOrderResponse) SetShippingCost(v float64) {
o.ShippingCost = &v
}
// GetShippingLabelNumber returns the ShippingLabelNumber field value if set, zero value otherwise.
func (o *GetOrderResponse) GetShippingLabelNumber() string {
if o == nil || o.ShippingLabelNumber == nil {
var ret string
return ret
}
return *o.ShippingLabelNumber
}
// GetShippingLabelNumberOk returns a tuple with the ShippingLabelNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetShippingLabelNumberOk() (*string, bool) {
if o == nil || o.ShippingLabelNumber == nil {
return nil, false
}
return o.ShippingLabelNumber, true
}
// HasShippingLabelNumber returns a boolean if a field has been set.
func (o *GetOrderResponse) HasShippingLabelNumber() bool {
if o != nil && o.ShippingLabelNumber != nil {
return true
}
return false
}
// SetShippingLabelNumber gets a reference to the given string and assigns it to the ShippingLabelNumber field.
func (o *GetOrderResponse) SetShippingLabelNumber(v string) {
o.ShippingLabelNumber = &v
}
// GetShippingLabelNumbers returns the ShippingLabelNumbers field value if set, zero value otherwise.
func (o *GetOrderResponse) GetShippingLabelNumbers() []string {
if o == nil || o.ShippingLabelNumbers == nil {
var ret []string
return ret
}
return o.ShippingLabelNumbers
}
// GetShippingLabelNumbersOk returns a tuple with the ShippingLabelNumbers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetShippingLabelNumbersOk() ([]string, bool) {
if o == nil || o.ShippingLabelNumbers == nil {
return nil, false
}
return o.ShippingLabelNumbers, true
}
// HasShippingLabelNumbers returns a boolean if a field has been set.
func (o *GetOrderResponse) HasShippingLabelNumbers() bool {
if o != nil && o.ShippingLabelNumbers != nil {
return true
}
return false
}
// SetShippingLabelNumbers gets a reference to the given []string and assigns it to the ShippingLabelNumbers field.
func (o *GetOrderResponse) SetShippingLabelNumbers(v []string) {
o.ShippingLabelNumbers = v
}
// GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.
func (o *GetOrderResponse) GetTaxAmount() float64 {
if o == nil || o.TaxAmount == nil {
var ret float64
return ret
}
return *o.TaxAmount
}
// GetTaxAmountOk returns a tuple with the TaxAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetTaxAmountOk() (*float64, bool) {
if o == nil || o.TaxAmount == nil {
return nil, false
}
return o.TaxAmount, true
}
// HasTaxAmount returns a boolean if a field has been set.
func (o *GetOrderResponse) HasTaxAmount() bool {
if o != nil && o.TaxAmount != nil {
return true
}
return false
}
// SetTaxAmount gets a reference to the given float64 and assigns it to the TaxAmount field.
func (o *GetOrderResponse) SetTaxAmount(v float64) {
o.TaxAmount = &v
}
// GetTaxIncludedInShippingCost returns the TaxIncludedInShippingCost field value if set, zero value otherwise.
func (o *GetOrderResponse) GetTaxIncludedInShippingCost() float64 {
if o == nil || o.TaxIncludedInShippingCost == nil {
var ret float64
return ret
}
return *o.TaxIncludedInShippingCost
}
// GetTaxIncludedInShippingCostOk returns a tuple with the TaxIncludedInShippingCost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetTaxIncludedInShippingCostOk() (*float64, bool) {
if o == nil || o.TaxIncludedInShippingCost == nil {
return nil, false
}
return o.TaxIncludedInShippingCost, true
}
// HasTaxIncludedInShippingCost returns a boolean if a field has been set.
func (o *GetOrderResponse) HasTaxIncludedInShippingCost() bool {
if o != nil && o.TaxIncludedInShippingCost != nil {
return true
}
return false
}
// SetTaxIncludedInShippingCost gets a reference to the given float64 and assigns it to the TaxIncludedInShippingCost field.
func (o *GetOrderResponse) SetTaxIncludedInShippingCost(v float64) {
o.TaxIncludedInShippingCost = &v
}
// GetTaxOnShippingCost returns the TaxOnShippingCost field value if set, zero value otherwise.
func (o *GetOrderResponse) GetTaxOnShippingCost() bool {
if o == nil || o.TaxOnShippingCost == nil {
var ret bool
return ret
}
return *o.TaxOnShippingCost
}
// GetTaxOnShippingCostOk returns a tuple with the TaxOnShippingCost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetTaxOnShippingCostOk() (*bool, bool) {
if o == nil || o.TaxOnShippingCost == nil {
return nil, false
}
return o.TaxOnShippingCost, true
}
// HasTaxOnShippingCost returns a boolean if a field has been set.
func (o *GetOrderResponse) HasTaxOnShippingCost() bool {
if o != nil && o.TaxOnShippingCost != nil {
return true
}
return false
}
// SetTaxOnShippingCost gets a reference to the given bool and assigns it to the TaxOnShippingCost field.
func (o *GetOrderResponse) SetTaxOnShippingCost(v bool) {
o.TaxOnShippingCost = &v
}
// GetTotalAmount returns the TotalAmount field value if set, zero value otherwise.
func (o *GetOrderResponse) GetTotalAmount() float64 {
if o == nil || o.TotalAmount == nil {
var ret float64
return ret
}
return *o.TotalAmount
}
// GetTotalAmountOk returns a tuple with the TotalAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetTotalAmountOk() (*float64, bool) {
if o == nil || o.TotalAmount == nil {
return nil, false
}
return o.TotalAmount, true
}
// HasTotalAmount returns a boolean if a field has been set.
func (o *GetOrderResponse) HasTotalAmount() bool {
if o != nil && o.TotalAmount != nil {
return true
}
return false
}
// SetTotalAmount gets a reference to the given float64 and assigns it to the TotalAmount field.
func (o *GetOrderResponse) SetTotalAmount(v float64) {
o.TotalAmount = &v
}
// GetWithholdingTaxAmount returns the WithholdingTaxAmount field value if set, zero value otherwise.
func (o *GetOrderResponse) GetWithholdingTaxAmount() float64 {
if o == nil || o.WithholdingTaxAmount == nil {
var ret float64
return ret
}
return *o.WithholdingTaxAmount
}
// GetWithholdingTaxAmountOk returns a tuple with the WithholdingTaxAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrderResponse) GetWithholdingTaxAmountOk() (*float64, bool) {
if o == nil || o.WithholdingTaxAmount == nil {
return nil, false
}
return o.WithholdingTaxAmount, true
}
// HasWithholdingTaxAmount returns a boolean if a field has been set.
func (o *GetOrderResponse) HasWithholdingTaxAmount() bool {
if o != nil && o.WithholdingTaxAmount != nil {
return true
}
return false
}
// SetWithholdingTaxAmount gets a reference to the given float64 and assigns it to the WithholdingTaxAmount field.
func (o *GetOrderResponse) SetWithholdingTaxAmount(v float64) {
o.WithholdingTaxAmount = &v
}
func (o GetOrderResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AppliedShippingOptions != nil {
toSerialize["appliedShippingOptions"] = o.AppliedShippingOptions
}
if o.BalanceDue != nil {
toSerialize["balanceDue"] = o.BalanceDue
}
if o.ContainsTaxIncludedAmounts != nil {
toSerialize["containsTaxIncludedAmounts"] = o.ContainsTaxIncludedAmounts
}
if o.Currency != nil {
toSerialize["currency"] = o.Currency
}
if o.Email != nil {
toSerialize["email"] = o.Email
}
if o.OrderChannel != nil {
toSerialize["orderChannel"] = o.OrderChannel
}
if o.OrderDateTime != nil {
toSerialize["orderDateTime"] = o.OrderDateTime
}
if o.OrderId != nil {
toSerialize["orderId"] = o.OrderId
}
if o.OrderItemList != nil {
toSerialize["orderItemList"] = o.OrderItemList
}
if o.OrderStatus != nil {
toSerialize["orderStatus"] = o.OrderStatus
}
if o.PreferredDeliveryDate != nil {
toSerialize["preferredDeliveryDate"] = o.PreferredDeliveryDate
}
if o.PurchaseOrderNumber != nil {
toSerialize["purchaseOrderNumber"] = o.PurchaseOrderNumber
}
if o.ShippingAddress != nil {
toSerialize["shippingAddress"] = o.ShippingAddress
}
if o.ShippingAddressId != nil {
toSerialize["shippingAddressId"] = o.ShippingAddressId
}
if o.ShippingCost != nil {
toSerialize["shippingCost"] = o.ShippingCost
}
if o.ShippingLabelNumber != nil {
toSerialize["shippingLabelNumber"] = o.ShippingLabelNumber
}
if o.ShippingLabelNumbers != nil {
toSerialize["shippingLabelNumbers"] = o.ShippingLabelNumbers
}
if o.TaxAmount != nil {
toSerialize["taxAmount"] = o.TaxAmount
}
if o.TaxIncludedInShippingCost != nil {
toSerialize["taxIncludedInShippingCost"] = o.TaxIncludedInShippingCost
}
if o.TaxOnShippingCost != nil {
toSerialize["taxOnShippingCost"] = o.TaxOnShippingCost
}
if o.TotalAmount != nil {
toSerialize["totalAmount"] = o.TotalAmount
}
if o.WithholdingTaxAmount != nil {
toSerialize["withholdingTaxAmount"] = o.WithholdingTaxAmount
}
return json.Marshal(toSerialize)
}
type NullableGetOrderResponse struct {
value *GetOrderResponse
isSet bool
}
func (v NullableGetOrderResponse) Get() *GetOrderResponse {
return v.value
}
func (v *NullableGetOrderResponse) Set(val *GetOrderResponse) {
v.value = val
v.isSet = true
}
func (v NullableGetOrderResponse) IsSet() bool {
return v.isSet
}
func (v *NullableGetOrderResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetOrderResponse(val *GetOrderResponse) *NullableGetOrderResponse {
return &NullableGetOrderResponse{value: val, isSet: true}
}
func (v NullableGetOrderResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetOrderResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}