/
model_get_single_order_200_response_data_order_info_order_detail_inner.go
942 lines (806 loc) · 30.5 KB
/
model_get_single_order_200_response_data_order_info_order_detail_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
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
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
/*
Tokopedia API
Tokopedia API
API version: 1.0
Contact: dev@sirclo.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package tokopedia
import (
"encoding/json"
)
// checks if the GetSingleOrder200ResponseDataOrderInfoOrderDetailInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetSingleOrder200ResponseDataOrderInfoOrderDetailInner{}
// GetSingleOrder200ResponseDataOrderInfoOrderDetailInner struct for GetSingleOrder200ResponseDataOrderInfoOrderDetailInner
type GetSingleOrder200ResponseDataOrderInfoOrderDetailInner struct {
// Order Detail Unique Identifier
OrderDetailId *int64 `json:"order_detail_id,omitempty"`
// Product Unique Identifier
ProductId *int64 `json:"product_id,omitempty"`
// Product Name
ProductName *string `json:"product_name,omitempty"`
// Product Description PDP
ProductDescPdp *string `json:"product_desc_pdp,omitempty"`
// Product Description ATC
ProductDescAtc *string `json:"product_desc_atc,omitempty"`
// Product Price
ProductPrice *float64 `json:"product_price,omitempty"`
// Product Order Total Price
SubtotalPrice *float64 `json:"subtotal_price,omitempty"`
// Product Weight
Weight *float64 `json:"weight,omitempty"`
// Product Order Total Weight
TotalWeight *float64 `json:"total_weight,omitempty"`
// Product Order Quantity
Quantity *int64 `json:"quantity,omitempty"`
// Product Order Quantity Deliver Count
QuantityDeliver *int64 `json:"quantity_deliver,omitempty"`
// Product Order Quantity Reject Count
QuantityReject *int64 `json:"quantity_reject,omitempty"`
// Is free returns?
IsFreeReturns *bool `json:"is_free_returns,omitempty"`
// Product Order Insurance Price
InsurancePrice *float64 `json:"insurance_price,omitempty"`
// Product Order Normal Price
NormalPrice *float64 `json:"normal_price,omitempty"`
// Currency Unique Identifier
CurrencyId *int64 `json:"currency_id,omitempty"`
// Currency Rate
CurrencyRate *float64 `json:"currency_rate,omitempty"`
// Product Minimum Order
MinOrder *int64 `json:"min_order,omitempty"`
// Product Child Category Unique Identifier
ChildCatId *int64 `json:"child_cat_id,omitempty"`
// Campaign Unique Identifier
CampaignId *string `json:"campaign_id,omitempty"`
// Product Picture URL
ProductPicture *string `json:"product_picture,omitempty"`
// Product Snapshot URL
SnapshotUrl *string `json:"snapshot_url,omitempty"`
// SKU
Sku *string `json:"sku,omitempty"`
}
// NewGetSingleOrder200ResponseDataOrderInfoOrderDetailInner instantiates a new GetSingleOrder200ResponseDataOrderInfoOrderDetailInner 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 NewGetSingleOrder200ResponseDataOrderInfoOrderDetailInner() *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner {
this := GetSingleOrder200ResponseDataOrderInfoOrderDetailInner{}
return &this
}
// NewGetSingleOrder200ResponseDataOrderInfoOrderDetailInnerWithDefaults instantiates a new GetSingleOrder200ResponseDataOrderInfoOrderDetailInner 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 NewGetSingleOrder200ResponseDataOrderInfoOrderDetailInnerWithDefaults() *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner {
this := GetSingleOrder200ResponseDataOrderInfoOrderDetailInner{}
return &this
}
// GetOrderDetailId returns the OrderDetailId field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetOrderDetailId() int64 {
if o == nil || IsNil(o.OrderDetailId) {
var ret int64
return ret
}
return *o.OrderDetailId
}
// GetOrderDetailIdOk returns a tuple with the OrderDetailId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetOrderDetailIdOk() (*int64, bool) {
if o == nil || IsNil(o.OrderDetailId) {
return nil, false
}
return o.OrderDetailId, true
}
// HasOrderDetailId returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasOrderDetailId() bool {
if o != nil && !IsNil(o.OrderDetailId) {
return true
}
return false
}
// SetOrderDetailId gets a reference to the given int64 and assigns it to the OrderDetailId field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetOrderDetailId(v int64) {
o.OrderDetailId = &v
}
// GetProductId returns the ProductId field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductId() int64 {
if o == nil || IsNil(o.ProductId) {
var ret int64
return ret
}
return *o.ProductId
}
// GetProductIdOk returns a tuple with the ProductId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductIdOk() (*int64, bool) {
if o == nil || IsNil(o.ProductId) {
return nil, false
}
return o.ProductId, true
}
// HasProductId returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductId() bool {
if o != nil && !IsNil(o.ProductId) {
return true
}
return false
}
// SetProductId gets a reference to the given int64 and assigns it to the ProductId field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductId(v int64) {
o.ProductId = &v
}
// GetProductName returns the ProductName field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductName() string {
if o == nil || IsNil(o.ProductName) {
var ret string
return ret
}
return *o.ProductName
}
// GetProductNameOk returns a tuple with the ProductName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductNameOk() (*string, bool) {
if o == nil || IsNil(o.ProductName) {
return nil, false
}
return o.ProductName, true
}
// HasProductName returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductName() bool {
if o != nil && !IsNil(o.ProductName) {
return true
}
return false
}
// SetProductName gets a reference to the given string and assigns it to the ProductName field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductName(v string) {
o.ProductName = &v
}
// GetProductDescPdp returns the ProductDescPdp field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductDescPdp() string {
if o == nil || IsNil(o.ProductDescPdp) {
var ret string
return ret
}
return *o.ProductDescPdp
}
// GetProductDescPdpOk returns a tuple with the ProductDescPdp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductDescPdpOk() (*string, bool) {
if o == nil || IsNil(o.ProductDescPdp) {
return nil, false
}
return o.ProductDescPdp, true
}
// HasProductDescPdp returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductDescPdp() bool {
if o != nil && !IsNil(o.ProductDescPdp) {
return true
}
return false
}
// SetProductDescPdp gets a reference to the given string and assigns it to the ProductDescPdp field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductDescPdp(v string) {
o.ProductDescPdp = &v
}
// GetProductDescAtc returns the ProductDescAtc field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductDescAtc() string {
if o == nil || IsNil(o.ProductDescAtc) {
var ret string
return ret
}
return *o.ProductDescAtc
}
// GetProductDescAtcOk returns a tuple with the ProductDescAtc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductDescAtcOk() (*string, bool) {
if o == nil || IsNil(o.ProductDescAtc) {
return nil, false
}
return o.ProductDescAtc, true
}
// HasProductDescAtc returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductDescAtc() bool {
if o != nil && !IsNil(o.ProductDescAtc) {
return true
}
return false
}
// SetProductDescAtc gets a reference to the given string and assigns it to the ProductDescAtc field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductDescAtc(v string) {
o.ProductDescAtc = &v
}
// GetProductPrice returns the ProductPrice field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductPrice() float64 {
if o == nil || IsNil(o.ProductPrice) {
var ret float64
return ret
}
return *o.ProductPrice
}
// GetProductPriceOk returns a tuple with the ProductPrice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductPriceOk() (*float64, bool) {
if o == nil || IsNil(o.ProductPrice) {
return nil, false
}
return o.ProductPrice, true
}
// HasProductPrice returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductPrice() bool {
if o != nil && !IsNil(o.ProductPrice) {
return true
}
return false
}
// SetProductPrice gets a reference to the given float64 and assigns it to the ProductPrice field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductPrice(v float64) {
o.ProductPrice = &v
}
// GetSubtotalPrice returns the SubtotalPrice field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSubtotalPrice() float64 {
if o == nil || IsNil(o.SubtotalPrice) {
var ret float64
return ret
}
return *o.SubtotalPrice
}
// GetSubtotalPriceOk returns a tuple with the SubtotalPrice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSubtotalPriceOk() (*float64, bool) {
if o == nil || IsNil(o.SubtotalPrice) {
return nil, false
}
return o.SubtotalPrice, true
}
// HasSubtotalPrice returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasSubtotalPrice() bool {
if o != nil && !IsNil(o.SubtotalPrice) {
return true
}
return false
}
// SetSubtotalPrice gets a reference to the given float64 and assigns it to the SubtotalPrice field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetSubtotalPrice(v float64) {
o.SubtotalPrice = &v
}
// GetWeight returns the Weight field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetWeight() float64 {
if o == nil || IsNil(o.Weight) {
var ret float64
return ret
}
return *o.Weight
}
// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetWeightOk() (*float64, bool) {
if o == nil || IsNil(o.Weight) {
return nil, false
}
return o.Weight, true
}
// HasWeight returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasWeight() bool {
if o != nil && !IsNil(o.Weight) {
return true
}
return false
}
// SetWeight gets a reference to the given float64 and assigns it to the Weight field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetWeight(v float64) {
o.Weight = &v
}
// GetTotalWeight returns the TotalWeight field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetTotalWeight() float64 {
if o == nil || IsNil(o.TotalWeight) {
var ret float64
return ret
}
return *o.TotalWeight
}
// GetTotalWeightOk returns a tuple with the TotalWeight field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetTotalWeightOk() (*float64, bool) {
if o == nil || IsNil(o.TotalWeight) {
return nil, false
}
return o.TotalWeight, true
}
// HasTotalWeight returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasTotalWeight() bool {
if o != nil && !IsNil(o.TotalWeight) {
return true
}
return false
}
// SetTotalWeight gets a reference to the given float64 and assigns it to the TotalWeight field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetTotalWeight(v float64) {
o.TotalWeight = &v
}
// GetQuantity returns the Quantity field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantity() int64 {
if o == nil || IsNil(o.Quantity) {
var ret int64
return ret
}
return *o.Quantity
}
// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantityOk() (*int64, bool) {
if o == nil || IsNil(o.Quantity) {
return nil, false
}
return o.Quantity, true
}
// HasQuantity returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasQuantity() bool {
if o != nil && !IsNil(o.Quantity) {
return true
}
return false
}
// SetQuantity gets a reference to the given int64 and assigns it to the Quantity field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetQuantity(v int64) {
o.Quantity = &v
}
// GetQuantityDeliver returns the QuantityDeliver field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantityDeliver() int64 {
if o == nil || IsNil(o.QuantityDeliver) {
var ret int64
return ret
}
return *o.QuantityDeliver
}
// GetQuantityDeliverOk returns a tuple with the QuantityDeliver field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantityDeliverOk() (*int64, bool) {
if o == nil || IsNil(o.QuantityDeliver) {
return nil, false
}
return o.QuantityDeliver, true
}
// HasQuantityDeliver returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasQuantityDeliver() bool {
if o != nil && !IsNil(o.QuantityDeliver) {
return true
}
return false
}
// SetQuantityDeliver gets a reference to the given int64 and assigns it to the QuantityDeliver field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetQuantityDeliver(v int64) {
o.QuantityDeliver = &v
}
// GetQuantityReject returns the QuantityReject field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantityReject() int64 {
if o == nil || IsNil(o.QuantityReject) {
var ret int64
return ret
}
return *o.QuantityReject
}
// GetQuantityRejectOk returns a tuple with the QuantityReject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetQuantityRejectOk() (*int64, bool) {
if o == nil || IsNil(o.QuantityReject) {
return nil, false
}
return o.QuantityReject, true
}
// HasQuantityReject returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasQuantityReject() bool {
if o != nil && !IsNil(o.QuantityReject) {
return true
}
return false
}
// SetQuantityReject gets a reference to the given int64 and assigns it to the QuantityReject field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetQuantityReject(v int64) {
o.QuantityReject = &v
}
// GetIsFreeReturns returns the IsFreeReturns field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetIsFreeReturns() bool {
if o == nil || IsNil(o.IsFreeReturns) {
var ret bool
return ret
}
return *o.IsFreeReturns
}
// GetIsFreeReturnsOk returns a tuple with the IsFreeReturns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetIsFreeReturnsOk() (*bool, bool) {
if o == nil || IsNil(o.IsFreeReturns) {
return nil, false
}
return o.IsFreeReturns, true
}
// HasIsFreeReturns returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasIsFreeReturns() bool {
if o != nil && !IsNil(o.IsFreeReturns) {
return true
}
return false
}
// SetIsFreeReturns gets a reference to the given bool and assigns it to the IsFreeReturns field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetIsFreeReturns(v bool) {
o.IsFreeReturns = &v
}
// GetInsurancePrice returns the InsurancePrice field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetInsurancePrice() float64 {
if o == nil || IsNil(o.InsurancePrice) {
var ret float64
return ret
}
return *o.InsurancePrice
}
// GetInsurancePriceOk returns a tuple with the InsurancePrice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetInsurancePriceOk() (*float64, bool) {
if o == nil || IsNil(o.InsurancePrice) {
return nil, false
}
return o.InsurancePrice, true
}
// HasInsurancePrice returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasInsurancePrice() bool {
if o != nil && !IsNil(o.InsurancePrice) {
return true
}
return false
}
// SetInsurancePrice gets a reference to the given float64 and assigns it to the InsurancePrice field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetInsurancePrice(v float64) {
o.InsurancePrice = &v
}
// GetNormalPrice returns the NormalPrice field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetNormalPrice() float64 {
if o == nil || IsNil(o.NormalPrice) {
var ret float64
return ret
}
return *o.NormalPrice
}
// GetNormalPriceOk returns a tuple with the NormalPrice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetNormalPriceOk() (*float64, bool) {
if o == nil || IsNil(o.NormalPrice) {
return nil, false
}
return o.NormalPrice, true
}
// HasNormalPrice returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasNormalPrice() bool {
if o != nil && !IsNil(o.NormalPrice) {
return true
}
return false
}
// SetNormalPrice gets a reference to the given float64 and assigns it to the NormalPrice field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetNormalPrice(v float64) {
o.NormalPrice = &v
}
// GetCurrencyId returns the CurrencyId field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCurrencyId() int64 {
if o == nil || IsNil(o.CurrencyId) {
var ret int64
return ret
}
return *o.CurrencyId
}
// GetCurrencyIdOk returns a tuple with the CurrencyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCurrencyIdOk() (*int64, bool) {
if o == nil || IsNil(o.CurrencyId) {
return nil, false
}
return o.CurrencyId, true
}
// HasCurrencyId returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasCurrencyId() bool {
if o != nil && !IsNil(o.CurrencyId) {
return true
}
return false
}
// SetCurrencyId gets a reference to the given int64 and assigns it to the CurrencyId field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetCurrencyId(v int64) {
o.CurrencyId = &v
}
// GetCurrencyRate returns the CurrencyRate field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCurrencyRate() float64 {
if o == nil || IsNil(o.CurrencyRate) {
var ret float64
return ret
}
return *o.CurrencyRate
}
// GetCurrencyRateOk returns a tuple with the CurrencyRate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCurrencyRateOk() (*float64, bool) {
if o == nil || IsNil(o.CurrencyRate) {
return nil, false
}
return o.CurrencyRate, true
}
// HasCurrencyRate returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasCurrencyRate() bool {
if o != nil && !IsNil(o.CurrencyRate) {
return true
}
return false
}
// SetCurrencyRate gets a reference to the given float64 and assigns it to the CurrencyRate field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetCurrencyRate(v float64) {
o.CurrencyRate = &v
}
// GetMinOrder returns the MinOrder field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetMinOrder() int64 {
if o == nil || IsNil(o.MinOrder) {
var ret int64
return ret
}
return *o.MinOrder
}
// GetMinOrderOk returns a tuple with the MinOrder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetMinOrderOk() (*int64, bool) {
if o == nil || IsNil(o.MinOrder) {
return nil, false
}
return o.MinOrder, true
}
// HasMinOrder returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasMinOrder() bool {
if o != nil && !IsNil(o.MinOrder) {
return true
}
return false
}
// SetMinOrder gets a reference to the given int64 and assigns it to the MinOrder field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetMinOrder(v int64) {
o.MinOrder = &v
}
// GetChildCatId returns the ChildCatId field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetChildCatId() int64 {
if o == nil || IsNil(o.ChildCatId) {
var ret int64
return ret
}
return *o.ChildCatId
}
// GetChildCatIdOk returns a tuple with the ChildCatId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetChildCatIdOk() (*int64, bool) {
if o == nil || IsNil(o.ChildCatId) {
return nil, false
}
return o.ChildCatId, true
}
// HasChildCatId returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasChildCatId() bool {
if o != nil && !IsNil(o.ChildCatId) {
return true
}
return false
}
// SetChildCatId gets a reference to the given int64 and assigns it to the ChildCatId field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetChildCatId(v int64) {
o.ChildCatId = &v
}
// GetCampaignId returns the CampaignId field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCampaignId() string {
if o == nil || IsNil(o.CampaignId) {
var ret string
return ret
}
return *o.CampaignId
}
// GetCampaignIdOk returns a tuple with the CampaignId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetCampaignIdOk() (*string, bool) {
if o == nil || IsNil(o.CampaignId) {
return nil, false
}
return o.CampaignId, true
}
// HasCampaignId returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasCampaignId() bool {
if o != nil && !IsNil(o.CampaignId) {
return true
}
return false
}
// SetCampaignId gets a reference to the given string and assigns it to the CampaignId field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetCampaignId(v string) {
o.CampaignId = &v
}
// GetProductPicture returns the ProductPicture field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductPicture() string {
if o == nil || IsNil(o.ProductPicture) {
var ret string
return ret
}
return *o.ProductPicture
}
// GetProductPictureOk returns a tuple with the ProductPicture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetProductPictureOk() (*string, bool) {
if o == nil || IsNil(o.ProductPicture) {
return nil, false
}
return o.ProductPicture, true
}
// HasProductPicture returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasProductPicture() bool {
if o != nil && !IsNil(o.ProductPicture) {
return true
}
return false
}
// SetProductPicture gets a reference to the given string and assigns it to the ProductPicture field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetProductPicture(v string) {
o.ProductPicture = &v
}
// GetSnapshotUrl returns the SnapshotUrl field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSnapshotUrl() string {
if o == nil || IsNil(o.SnapshotUrl) {
var ret string
return ret
}
return *o.SnapshotUrl
}
// GetSnapshotUrlOk returns a tuple with the SnapshotUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSnapshotUrlOk() (*string, bool) {
if o == nil || IsNil(o.SnapshotUrl) {
return nil, false
}
return o.SnapshotUrl, true
}
// HasSnapshotUrl returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasSnapshotUrl() bool {
if o != nil && !IsNil(o.SnapshotUrl) {
return true
}
return false
}
// SetSnapshotUrl gets a reference to the given string and assigns it to the SnapshotUrl field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetSnapshotUrl(v string) {
o.SnapshotUrl = &v
}
// GetSku returns the Sku field value if set, zero value otherwise.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSku() string {
if o == nil || IsNil(o.Sku) {
var ret string
return ret
}
return *o.Sku
}
// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) GetSkuOk() (*string, bool) {
if o == nil || IsNil(o.Sku) {
return nil, false
}
return o.Sku, true
}
// HasSku returns a boolean if a field has been set.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) HasSku() bool {
if o != nil && !IsNil(o.Sku) {
return true
}
return false
}
// SetSku gets a reference to the given string and assigns it to the Sku field.
func (o *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) SetSku(v string) {
o.Sku = &v
}
func (o GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.OrderDetailId) {
toSerialize["order_detail_id"] = o.OrderDetailId
}
if !IsNil(o.ProductId) {
toSerialize["product_id"] = o.ProductId
}
if !IsNil(o.ProductName) {
toSerialize["product_name"] = o.ProductName
}
if !IsNil(o.ProductDescPdp) {
toSerialize["product_desc_pdp"] = o.ProductDescPdp
}
if !IsNil(o.ProductDescAtc) {
toSerialize["product_desc_atc"] = o.ProductDescAtc
}
if !IsNil(o.ProductPrice) {
toSerialize["product_price"] = o.ProductPrice
}
if !IsNil(o.SubtotalPrice) {
toSerialize["subtotal_price"] = o.SubtotalPrice
}
if !IsNil(o.Weight) {
toSerialize["weight"] = o.Weight
}
if !IsNil(o.TotalWeight) {
toSerialize["total_weight"] = o.TotalWeight
}
if !IsNil(o.Quantity) {
toSerialize["quantity"] = o.Quantity
}
if !IsNil(o.QuantityDeliver) {
toSerialize["quantity_deliver"] = o.QuantityDeliver
}
if !IsNil(o.QuantityReject) {
toSerialize["quantity_reject"] = o.QuantityReject
}
if !IsNil(o.IsFreeReturns) {
toSerialize["is_free_returns"] = o.IsFreeReturns
}
if !IsNil(o.InsurancePrice) {
toSerialize["insurance_price"] = o.InsurancePrice
}
if !IsNil(o.NormalPrice) {
toSerialize["normal_price"] = o.NormalPrice
}
if !IsNil(o.CurrencyId) {
toSerialize["currency_id"] = o.CurrencyId
}
if !IsNil(o.CurrencyRate) {
toSerialize["currency_rate"] = o.CurrencyRate
}
if !IsNil(o.MinOrder) {
toSerialize["min_order"] = o.MinOrder
}
if !IsNil(o.ChildCatId) {
toSerialize["child_cat_id"] = o.ChildCatId
}
if !IsNil(o.CampaignId) {
toSerialize["campaign_id"] = o.CampaignId
}
if !IsNil(o.ProductPicture) {
toSerialize["product_picture"] = o.ProductPicture
}
if !IsNil(o.SnapshotUrl) {
toSerialize["snapshot_url"] = o.SnapshotUrl
}
if !IsNil(o.Sku) {
toSerialize["sku"] = o.Sku
}
return toSerialize, nil
}
type NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner struct {
value *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner
isSet bool
}
func (v NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) Get() *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner {
return v.value
}
func (v *NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) Set(val *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) {
v.value = val
v.isSet = true
}
func (v NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner(val *GetSingleOrder200ResponseDataOrderInfoOrderDetailInner) *NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner {
return &NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner{value: val, isSet: true}
}
func (v NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetSingleOrder200ResponseDataOrderInfoOrderDetailInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}