/
model_get_shop_info_200_response_data_inner_warehouses_inner.go
811 lines (690 loc) · 25.1 KB
/
model_get_shop_info_200_response_data_inner_warehouses_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
/*
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 GetShopInfo200ResponseDataInnerWarehousesInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetShopInfo200ResponseDataInnerWarehousesInner{}
// GetShopInfo200ResponseDataInnerWarehousesInner struct for GetShopInfo200ResponseDataInnerWarehousesInner
type GetShopInfo200ResponseDataInnerWarehousesInner struct {
WarehouseId *int64 `json:"warehouse_id,omitempty"`
PartnerId *GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId `json:"partner_id,omitempty"`
ShopId *GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId `json:"shop_id,omitempty"`
WarehouseName *string `json:"warehouse_name,omitempty"`
DistrictId *int64 `json:"district_id,omitempty"`
DistrictName *string `json:"district_name,omitempty"`
CityId *int64 `json:"city_id,omitempty"`
CityName *string `json:"city_name,omitempty"`
ProvinceId *int64 `json:"province_id,omitempty"`
ProvinceName *string `json:"province_name,omitempty"`
Status *int64 `json:"status,omitempty"`
PostalCode *string `json:"postal_code,omitempty"`
IsDefault *int64 `json:"is_default,omitempty"`
Latlon *string `json:"latlon,omitempty"`
Latitude *string `json:"latitude,omitempty"`
Longitude *string `json:"longitude,omitempty"`
Email *string `json:"email,omitempty"`
AddressDetail *string `json:"address_detail,omitempty"`
Phone *string `json:"phone,omitempty"`
WarehoseType *string `json:"warehose_type,omitempty"`
}
// NewGetShopInfo200ResponseDataInnerWarehousesInner instantiates a new GetShopInfo200ResponseDataInnerWarehousesInner 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 NewGetShopInfo200ResponseDataInnerWarehousesInner() *GetShopInfo200ResponseDataInnerWarehousesInner {
this := GetShopInfo200ResponseDataInnerWarehousesInner{}
return &this
}
// NewGetShopInfo200ResponseDataInnerWarehousesInnerWithDefaults instantiates a new GetShopInfo200ResponseDataInnerWarehousesInner 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 NewGetShopInfo200ResponseDataInnerWarehousesInnerWithDefaults() *GetShopInfo200ResponseDataInnerWarehousesInner {
this := GetShopInfo200ResponseDataInnerWarehousesInner{}
return &this
}
// GetWarehouseId returns the WarehouseId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehouseId() int64 {
if o == nil || IsNil(o.WarehouseId) {
var ret int64
return ret
}
return *o.WarehouseId
}
// GetWarehouseIdOk returns a tuple with the WarehouseId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehouseIdOk() (*int64, bool) {
if o == nil || IsNil(o.WarehouseId) {
return nil, false
}
return o.WarehouseId, true
}
// HasWarehouseId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasWarehouseId() bool {
if o != nil && !IsNil(o.WarehouseId) {
return true
}
return false
}
// SetWarehouseId gets a reference to the given int64 and assigns it to the WarehouseId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetWarehouseId(v int64) {
o.WarehouseId = &v
}
// GetPartnerId returns the PartnerId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPartnerId() GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId {
if o == nil || IsNil(o.PartnerId) {
var ret GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId
return ret
}
return *o.PartnerId
}
// GetPartnerIdOk returns a tuple with the PartnerId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPartnerIdOk() (*GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId, bool) {
if o == nil || IsNil(o.PartnerId) {
return nil, false
}
return o.PartnerId, true
}
// HasPartnerId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasPartnerId() bool {
if o != nil && !IsNil(o.PartnerId) {
return true
}
return false
}
// SetPartnerId gets a reference to the given GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId and assigns it to the PartnerId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetPartnerId(v GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId) {
o.PartnerId = &v
}
// GetShopId returns the ShopId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetShopId() GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId {
if o == nil || IsNil(o.ShopId) {
var ret GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId
return ret
}
return *o.ShopId
}
// GetShopIdOk returns a tuple with the ShopId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetShopIdOk() (*GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId, bool) {
if o == nil || IsNil(o.ShopId) {
return nil, false
}
return o.ShopId, true
}
// HasShopId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasShopId() bool {
if o != nil && !IsNil(o.ShopId) {
return true
}
return false
}
// SetShopId gets a reference to the given GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId and assigns it to the ShopId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetShopId(v GetShopInfo200ResponseDataInnerWarehousesInnerPartnerId) {
o.ShopId = &v
}
// GetWarehouseName returns the WarehouseName field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehouseName() string {
if o == nil || IsNil(o.WarehouseName) {
var ret string
return ret
}
return *o.WarehouseName
}
// GetWarehouseNameOk returns a tuple with the WarehouseName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehouseNameOk() (*string, bool) {
if o == nil || IsNil(o.WarehouseName) {
return nil, false
}
return o.WarehouseName, true
}
// HasWarehouseName returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasWarehouseName() bool {
if o != nil && !IsNil(o.WarehouseName) {
return true
}
return false
}
// SetWarehouseName gets a reference to the given string and assigns it to the WarehouseName field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetWarehouseName(v string) {
o.WarehouseName = &v
}
// GetDistrictId returns the DistrictId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetDistrictId() int64 {
if o == nil || IsNil(o.DistrictId) {
var ret int64
return ret
}
return *o.DistrictId
}
// GetDistrictIdOk returns a tuple with the DistrictId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetDistrictIdOk() (*int64, bool) {
if o == nil || IsNil(o.DistrictId) {
return nil, false
}
return o.DistrictId, true
}
// HasDistrictId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasDistrictId() bool {
if o != nil && !IsNil(o.DistrictId) {
return true
}
return false
}
// SetDistrictId gets a reference to the given int64 and assigns it to the DistrictId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetDistrictId(v int64) {
o.DistrictId = &v
}
// GetDistrictName returns the DistrictName field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetDistrictName() string {
if o == nil || IsNil(o.DistrictName) {
var ret string
return ret
}
return *o.DistrictName
}
// GetDistrictNameOk returns a tuple with the DistrictName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetDistrictNameOk() (*string, bool) {
if o == nil || IsNil(o.DistrictName) {
return nil, false
}
return o.DistrictName, true
}
// HasDistrictName returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasDistrictName() bool {
if o != nil && !IsNil(o.DistrictName) {
return true
}
return false
}
// SetDistrictName gets a reference to the given string and assigns it to the DistrictName field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetDistrictName(v string) {
o.DistrictName = &v
}
// GetCityId returns the CityId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetCityId() int64 {
if o == nil || IsNil(o.CityId) {
var ret int64
return ret
}
return *o.CityId
}
// GetCityIdOk returns a tuple with the CityId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetCityIdOk() (*int64, bool) {
if o == nil || IsNil(o.CityId) {
return nil, false
}
return o.CityId, true
}
// HasCityId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasCityId() bool {
if o != nil && !IsNil(o.CityId) {
return true
}
return false
}
// SetCityId gets a reference to the given int64 and assigns it to the CityId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetCityId(v int64) {
o.CityId = &v
}
// GetCityName returns the CityName field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetCityName() string {
if o == nil || IsNil(o.CityName) {
var ret string
return ret
}
return *o.CityName
}
// GetCityNameOk returns a tuple with the CityName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetCityNameOk() (*string, bool) {
if o == nil || IsNil(o.CityName) {
return nil, false
}
return o.CityName, true
}
// HasCityName returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasCityName() bool {
if o != nil && !IsNil(o.CityName) {
return true
}
return false
}
// SetCityName gets a reference to the given string and assigns it to the CityName field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetCityName(v string) {
o.CityName = &v
}
// GetProvinceId returns the ProvinceId field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetProvinceId() int64 {
if o == nil || IsNil(o.ProvinceId) {
var ret int64
return ret
}
return *o.ProvinceId
}
// GetProvinceIdOk returns a tuple with the ProvinceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetProvinceIdOk() (*int64, bool) {
if o == nil || IsNil(o.ProvinceId) {
return nil, false
}
return o.ProvinceId, true
}
// HasProvinceId returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasProvinceId() bool {
if o != nil && !IsNil(o.ProvinceId) {
return true
}
return false
}
// SetProvinceId gets a reference to the given int64 and assigns it to the ProvinceId field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetProvinceId(v int64) {
o.ProvinceId = &v
}
// GetProvinceName returns the ProvinceName field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetProvinceName() string {
if o == nil || IsNil(o.ProvinceName) {
var ret string
return ret
}
return *o.ProvinceName
}
// GetProvinceNameOk returns a tuple with the ProvinceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetProvinceNameOk() (*string, bool) {
if o == nil || IsNil(o.ProvinceName) {
return nil, false
}
return o.ProvinceName, true
}
// HasProvinceName returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasProvinceName() bool {
if o != nil && !IsNil(o.ProvinceName) {
return true
}
return false
}
// SetProvinceName gets a reference to the given string and assigns it to the ProvinceName field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetProvinceName(v string) {
o.ProvinceName = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetStatus() int64 {
if o == nil || IsNil(o.Status) {
var ret int64
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetStatusOk() (*int64, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given int64 and assigns it to the Status field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetStatus(v int64) {
o.Status = &v
}
// GetPostalCode returns the PostalCode field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPostalCode() string {
if o == nil || IsNil(o.PostalCode) {
var ret string
return ret
}
return *o.PostalCode
}
// GetPostalCodeOk returns a tuple with the PostalCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPostalCodeOk() (*string, bool) {
if o == nil || IsNil(o.PostalCode) {
return nil, false
}
return o.PostalCode, true
}
// HasPostalCode returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasPostalCode() bool {
if o != nil && !IsNil(o.PostalCode) {
return true
}
return false
}
// SetPostalCode gets a reference to the given string and assigns it to the PostalCode field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetPostalCode(v string) {
o.PostalCode = &v
}
// GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetIsDefault() int64 {
if o == nil || IsNil(o.IsDefault) {
var ret int64
return ret
}
return *o.IsDefault
}
// GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetIsDefaultOk() (*int64, bool) {
if o == nil || IsNil(o.IsDefault) {
return nil, false
}
return o.IsDefault, true
}
// HasIsDefault returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasIsDefault() bool {
if o != nil && !IsNil(o.IsDefault) {
return true
}
return false
}
// SetIsDefault gets a reference to the given int64 and assigns it to the IsDefault field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetIsDefault(v int64) {
o.IsDefault = &v
}
// GetLatlon returns the Latlon field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLatlon() string {
if o == nil || IsNil(o.Latlon) {
var ret string
return ret
}
return *o.Latlon
}
// GetLatlonOk returns a tuple with the Latlon field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLatlonOk() (*string, bool) {
if o == nil || IsNil(o.Latlon) {
return nil, false
}
return o.Latlon, true
}
// HasLatlon returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasLatlon() bool {
if o != nil && !IsNil(o.Latlon) {
return true
}
return false
}
// SetLatlon gets a reference to the given string and assigns it to the Latlon field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetLatlon(v string) {
o.Latlon = &v
}
// GetLatitude returns the Latitude field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLatitude() string {
if o == nil || IsNil(o.Latitude) {
var ret string
return ret
}
return *o.Latitude
}
// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLatitudeOk() (*string, bool) {
if o == nil || IsNil(o.Latitude) {
return nil, false
}
return o.Latitude, true
}
// HasLatitude returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasLatitude() bool {
if o != nil && !IsNil(o.Latitude) {
return true
}
return false
}
// SetLatitude gets a reference to the given string and assigns it to the Latitude field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetLatitude(v string) {
o.Latitude = &v
}
// GetLongitude returns the Longitude field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLongitude() string {
if o == nil || IsNil(o.Longitude) {
var ret string
return ret
}
return *o.Longitude
}
// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetLongitudeOk() (*string, bool) {
if o == nil || IsNil(o.Longitude) {
return nil, false
}
return o.Longitude, true
}
// HasLongitude returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasLongitude() bool {
if o != nil && !IsNil(o.Longitude) {
return true
}
return false
}
// SetLongitude gets a reference to the given string and assigns it to the Longitude field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetLongitude(v string) {
o.Longitude = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetEmail() string {
if o == nil || IsNil(o.Email) {
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 *GetShopInfo200ResponseDataInnerWarehousesInner) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetEmail(v string) {
o.Email = &v
}
// GetAddressDetail returns the AddressDetail field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetAddressDetail() string {
if o == nil || IsNil(o.AddressDetail) {
var ret string
return ret
}
return *o.AddressDetail
}
// GetAddressDetailOk returns a tuple with the AddressDetail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetAddressDetailOk() (*string, bool) {
if o == nil || IsNil(o.AddressDetail) {
return nil, false
}
return o.AddressDetail, true
}
// HasAddressDetail returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasAddressDetail() bool {
if o != nil && !IsNil(o.AddressDetail) {
return true
}
return false
}
// SetAddressDetail gets a reference to the given string and assigns it to the AddressDetail field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetAddressDetail(v string) {
o.AddressDetail = &v
}
// GetPhone returns the Phone field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPhone() string {
if o == nil || IsNil(o.Phone) {
var ret string
return ret
}
return *o.Phone
}
// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetPhoneOk() (*string, bool) {
if o == nil || IsNil(o.Phone) {
return nil, false
}
return o.Phone, true
}
// HasPhone returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasPhone() bool {
if o != nil && !IsNil(o.Phone) {
return true
}
return false
}
// SetPhone gets a reference to the given string and assigns it to the Phone field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetPhone(v string) {
o.Phone = &v
}
// GetWarehoseType returns the WarehoseType field value if set, zero value otherwise.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehoseType() string {
if o == nil || IsNil(o.WarehoseType) {
var ret string
return ret
}
return *o.WarehoseType
}
// GetWarehoseTypeOk returns a tuple with the WarehoseType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) GetWarehoseTypeOk() (*string, bool) {
if o == nil || IsNil(o.WarehoseType) {
return nil, false
}
return o.WarehoseType, true
}
// HasWarehoseType returns a boolean if a field has been set.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) HasWarehoseType() bool {
if o != nil && !IsNil(o.WarehoseType) {
return true
}
return false
}
// SetWarehoseType gets a reference to the given string and assigns it to the WarehoseType field.
func (o *GetShopInfo200ResponseDataInnerWarehousesInner) SetWarehoseType(v string) {
o.WarehoseType = &v
}
func (o GetShopInfo200ResponseDataInnerWarehousesInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetShopInfo200ResponseDataInnerWarehousesInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.WarehouseId) {
toSerialize["warehouse_id"] = o.WarehouseId
}
if !IsNil(o.PartnerId) {
toSerialize["partner_id"] = o.PartnerId
}
if !IsNil(o.ShopId) {
toSerialize["shop_id"] = o.ShopId
}
if !IsNil(o.WarehouseName) {
toSerialize["warehouse_name"] = o.WarehouseName
}
if !IsNil(o.DistrictId) {
toSerialize["district_id"] = o.DistrictId
}
if !IsNil(o.DistrictName) {
toSerialize["district_name"] = o.DistrictName
}
if !IsNil(o.CityId) {
toSerialize["city_id"] = o.CityId
}
if !IsNil(o.CityName) {
toSerialize["city_name"] = o.CityName
}
if !IsNil(o.ProvinceId) {
toSerialize["province_id"] = o.ProvinceId
}
if !IsNil(o.ProvinceName) {
toSerialize["province_name"] = o.ProvinceName
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.PostalCode) {
toSerialize["postal_code"] = o.PostalCode
}
if !IsNil(o.IsDefault) {
toSerialize["is_default"] = o.IsDefault
}
if !IsNil(o.Latlon) {
toSerialize["latlon"] = o.Latlon
}
if !IsNil(o.Latitude) {
toSerialize["latitude"] = o.Latitude
}
if !IsNil(o.Longitude) {
toSerialize["longitude"] = o.Longitude
}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.AddressDetail) {
toSerialize["address_detail"] = o.AddressDetail
}
if !IsNil(o.Phone) {
toSerialize["phone"] = o.Phone
}
if !IsNil(o.WarehoseType) {
toSerialize["warehose_type"] = o.WarehoseType
}
return toSerialize, nil
}
type NullableGetShopInfo200ResponseDataInnerWarehousesInner struct {
value *GetShopInfo200ResponseDataInnerWarehousesInner
isSet bool
}
func (v NullableGetShopInfo200ResponseDataInnerWarehousesInner) Get() *GetShopInfo200ResponseDataInnerWarehousesInner {
return v.value
}
func (v *NullableGetShopInfo200ResponseDataInnerWarehousesInner) Set(val *GetShopInfo200ResponseDataInnerWarehousesInner) {
v.value = val
v.isSet = true
}
func (v NullableGetShopInfo200ResponseDataInnerWarehousesInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetShopInfo200ResponseDataInnerWarehousesInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetShopInfo200ResponseDataInnerWarehousesInner(val *GetShopInfo200ResponseDataInnerWarehousesInner) *NullableGetShopInfo200ResponseDataInnerWarehousesInner {
return &NullableGetShopInfo200ResponseDataInnerWarehousesInner{value: val, isSet: true}
}
func (v NullableGetShopInfo200ResponseDataInnerWarehousesInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetShopInfo200ResponseDataInnerWarehousesInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}