ghl-models 0.4.1

Rust data models (DTOs) for the GoHighLevel (HighLevel) API v2 and v3, generated from the official OpenAPI specifications
Documentation
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
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
//! `locations` data models for GoHighLevel API V2 (47 types).
//!
//! Generated from HighLevel's official OpenAPI spec for the
//! **Locations** module. Every endpoint that uses these types, with its
//! parameters, required scopes and enum values, is documented in the
//! [`locations` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/locations.md).
//!
//! Enable with `features = ["locations"]`.
// @generated by xtask/generate_models.py — do not edit by hand.
// Source: https://github.com/GoHighLevel/highlevel-api-docs
// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
// they aren't held to rustdoc's markdown conventions.
#![allow(
    missing_docs,
    clippy::doc_lazy_continuation,
    clippy::doc_overindented_list_items
)]

use serde::{Deserialize, Serialize};

/// `BusinessSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct BusinessSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    #[serde(rename = "logoUrl", default, skip_serializing_if = "Option::is_none")]
    pub logo_url: Option<String>,
}

/// `CreateCustomFieldsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateCustomFieldsDTO {
    /// Required by the API.
    pub name: String,
    /// Required by the API.
    #[serde(rename = "dataType")]
    pub data_type: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub placeholder: Option<String>,
    #[serde(
        rename = "acceptedFormat",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub accepted_format: Vec<String>,
    #[serde(
        rename = "isMultipleFile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_multiple_file: Option<bool>,
    #[serde(
        rename = "maxNumberOfFiles",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_number_of_files: Option<f64>,
    /// Multiple possible shapes in the spec; raw JSON.
    #[serde(
        rename = "textBoxListOptions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub text_box_list_options: Vec<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub position: Option<f64>,
    /// Model of the custom field you want to create
    /// Allowed values: `contact`, `opportunity`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
}

/// `CreateLocationDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateLocationDto {
    /// The name for the sub-account/location
    /// Required by the API.
    pub name: String,
    /// The phone number of the business for which sub-account is created with the appropriate
    /// country-code
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// Company/Agency Id
    /// Required by the API.
    #[serde(rename = "companyId")]
    pub company_id: String,
    /// The address of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The city where the business is located for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The state in which the business operates for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    /// The 2 letter country-code in which the business is present for which sub-account is
    /// created
    /// Allowed values: `AF`, `AX`, `AL`, `DZ`, `AS`, `AD`, `AO`, `AI`, `AQ`, `AG`, `AR`, `AM`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// The postal code of the business for which sub-account is created
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    /// The website of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    /// The timezone of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    #[serde(
        rename = "prospectInfo",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prospect_info: Option<ProspectInfoDto>,
    /// The default settings for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<SettingsSchema>,
    /// The social media links for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub social: Option<SocialSchema>,
    /// The twilio credentials for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub twilio: Option<TwilioSchema>,
    /// The mailgun credentials for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mailgun: Option<MailgunSchema>,
    /// The snapshot ID to be loaded into the location.
    #[serde(
        rename = "snapshotId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub snapshot_id: Option<String>,
}

/// `CreateLocationSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateLocationSuccessfulResponseDto {
    /// Location Id
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Company/Agency Id
    #[serde(rename = "companyId", default, skip_serializing_if = "Option::is_none")]
    pub company_id: Option<String>,
    /// The name for the sub-account/location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The phone number of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// The email for the sub-account/location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The address of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The city where the business is located for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The state in which the business operates for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub domain: Option<String>,
    /// The country in which the business is present for which sub-account is created
    /// Allowed values: `AF`, `AX`, `AL`, `DZ`, `AS`, `AD`, `AO`, `AI`, `AQ`, `AG`, `AR`, `AM`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// The postal code of the business for which sub-account is created
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    /// The website of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    /// The timezone of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    /// The default settings for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<SettingsSchema>,
    /// The social media links for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub social: Option<SocialSchema>,
}

/// `CustomFieldDeleteSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomFieldDeleteSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub succeded: Option<bool>,
}

/// `CustomFieldSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomFieldSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "fieldKey", default, skip_serializing_if = "Option::is_none")]
    pub field_key: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub placeholder: Option<String>,
    #[serde(rename = "dataType", default, skip_serializing_if = "Option::is_none")]
    pub data_type: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub position: Option<f64>,
    #[serde(
        rename = "picklistOptions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub picklist_options: Vec<String>,
    #[serde(
        rename = "picklistImageOptions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub picklist_image_options: Vec<String>,
    #[serde(
        rename = "isAllowedCustomOption",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_allowed_custom_option: Option<bool>,
    #[serde(
        rename = "isMultiFileAllowed",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_multi_file_allowed: Option<bool>,
    #[serde(
        rename = "maxFileLimit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_file_limit: Option<f64>,
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
    /// Model of the custom field
    /// Allowed values: `contact`, `opportunity`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
}

/// `CustomFieldSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomFieldSuccessfulResponseDto {
    #[serde(
        rename = "customField",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub custom_field: Option<CustomFieldSchema>,
}

/// `CustomFieldsListSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomFieldsListSuccessfulResponseDto {
    #[serde(
        rename = "customFields",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub custom_fields: Vec<CustomFieldSchema>,
}

/// `CustomRRulesOptions` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomRRulesOptions {
    /// Allowed values: `yearly`, `monthly`, `weekly`, `daily`, `hourly`.
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "intervalType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub interval_type: Option<String>,
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub interval: Option<f64>,
    /// Start Date
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(rename = "startDate", default, skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    /// End Date
    #[serde(rename = "endDate", default, skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
    /// 1, 2, 3, ..., 27, 31
    #[serde(
        rename = "dayOfMonth",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub day_of_month: Option<f64>,
    /// Allowed values: `MO`, `TU`, `WE`, `TH`, `FR`, `SA`, `SU`.
    #[serde(rename = "dayOfWeek", default, skip_serializing_if = "Option::is_none")]
    pub day_of_week: Option<String>,
    /// 1, 2, ....., 11, 12
    #[serde(
        rename = "monthOfYear",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub month_of_year: Option<f64>,
    /// Max number of task executions
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<f64>,
    /// Create Task If Over Due
    #[serde(
        rename = "createTaskIfOverDue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub create_task_if_over_due: Option<bool>,
    /// Due after seconds
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "dueAfterSeconds",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub due_after_seconds: Option<f64>,
}

/// `CustomValueDeleteSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomValueDeleteSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub succeded: Option<bool>,
}

/// `CustomValueIdSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomValueIdSuccessfulResponseDto {
    #[serde(
        rename = "customValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub custom_value: Option<CustomValueSchema>,
}

/// `CustomValueSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomValueSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "fieldKey", default, skip_serializing_if = "Option::is_none")]
    pub field_key: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
}

/// `CustomValuesListSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomValuesListSuccessfulResponseDto {
    #[serde(
        rename = "customValues",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub custom_values: Vec<CustomValueSchema>,
}

/// `DeleteRecurringTaskResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteRecurringTaskResponseDTO {
    /// Recurring Task Id
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Success
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
}

/// `EmailTemplateSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct EmailTemplateSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub attachments: Vec<Vec<serde_json::Value>>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub html: Option<String>,
}

/// `FileUploadBody` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FileUploadBody {
    /// Id(Contact Id/Opportunity Id/Custom Field Id)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Max number of files
    #[serde(rename = "maxFiles", default, skip_serializing_if = "Option::is_none")]
    pub max_files: Option<String>,
}

/// `FileUploadResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FileUploadResponseDto {
    /// Uploaded files
    #[serde(
        rename = "uploadedFiles",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub uploaded_files: Option<serde_json::Value>,
    /// Meta data of uploaded files
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub meta: Vec<String>,
}

/// `GetEmailTemplateResponseSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetEmailTemplateResponseSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[serde(rename = "dateAdded", default, skip_serializing_if = "Option::is_none")]
    pub date_added: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<EmailTemplateSchema>,
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
}

/// `GetLocationByIdSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetLocationByIdSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "companyId", default, skip_serializing_if = "Option::is_none")]
    pub company_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub domain: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(rename = "logoUrl", default, skip_serializing_if = "Option::is_none")]
    pub logo_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    #[serde(rename = "firstName", default, skip_serializing_if = "Option::is_none")]
    pub first_name: Option<String>,
    #[serde(rename = "lastName", default, skip_serializing_if = "Option::is_none")]
    pub last_name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub business: Option<BusinessSchema>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub social: Option<SocialSchema>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<SettingsSchema>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reseller: Option<serde_json::Value>,
}

/// `GetLocationByIdSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetLocationByIdSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub location: Option<GetLocationByIdSchema>,
}

/// `GetLocationSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetLocationSchema {
    /// Location Id
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// The name for the sub-account/location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The phone number of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// The email for the sub-account/location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The address of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The city where the business is located for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The state in which the business operates for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    /// The country in which the business is present for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// The postal code of the business for which sub-account is created
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    /// The website of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    /// The timezone of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    /// The default settings for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<SettingsSchema>,
    /// The social media links for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub social: Option<SocialSchema>,
}

/// `GetSmsTemplateResponseSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetSmsTemplateResponseSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub template: Option<SmsTemplateSchema>,
    #[serde(rename = "dateAdded", default, skip_serializing_if = "Option::is_none")]
    pub date_added: Option<String>,
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
    #[serde(
        rename = "urlAttachments",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub url_attachments: Vec<String>,
}

/// `GetTemplatesSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GetTemplatesSuccessfulResponseDto {
    /// Multiple possible shapes in the spec; raw JSON.
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub templates: Vec<serde_json::Value>,
    #[serde(
        rename = "totalCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_count: Option<f64>,
}

/// `LocationDeletedSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationDeletedSuccessfulResponseDto {
    /// Success status of the API
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
    /// Success message of the API
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}

/// `LocationTagDeleteSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationTagDeleteSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub succeded: Option<bool>,
}

/// `LocationTagSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationTagSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tag: Option<LocationTagsSchema>,
}

/// `LocationTagsSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationTagsSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
}

/// `LocationTagsSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationTagsSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub tags: Vec<LocationTagsSchema>,
}

/// `LocationTaskListSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LocationTaskListSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub tasks: Vec<Vec<serde_json::Value>>,
}

/// `MailgunSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct MailgunSchema {
    /// API key provided by Mailgun
    /// Required by the API.
    #[serde(rename = "apiKey")]
    pub api_key: String,
    /// Domain connected with Mailgun
    /// Required by the API.
    pub domain: String,
}

/// `ProspectInfoDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct ProspectInfoDto {
    /// First name of the prospect
    /// Required by the API.
    #[serde(rename = "firstName")]
    pub first_name: String,
    /// Last name of the prospect
    /// Required by the API.
    #[serde(rename = "lastName")]
    pub last_name: String,
    /// Email of the prospect
    /// Required by the API.
    pub email: String,
}

/// `RecurringTaskCreateDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RecurringTaskCreateDTO {
    /// Name of the task
    /// Required by the API.
    pub title: String,
    /// Description of the task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Contact Id
    #[serde(rename = "contactIds", default, skip_serializing_if = "Vec::is_empty")]
    pub contact_ids: Vec<String>,
    /// Assigned To
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub owners: Vec<String>,
    /// Recurring rules
    /// Required by the API.
    #[serde(rename = "rruleOptions")]
    pub rrule_options: CustomRRulesOptions,
    /// Create initial task or not
    #[serde(
        rename = "ignoreTaskCreation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ignore_task_creation: Option<bool>,
}

/// `RecurringTaskResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RecurringTaskResponseDTO {
    /// Recurring Task Id
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Name of the task
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Description of the task
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Location Id
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "locationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub location_id: Option<String>,
    /// Updated At
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(rename = "updatedAt", default, skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
    /// Created At
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(rename = "createdAt", default, skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Recurring rules
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "rruleOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rrule_options: Option<CustomRRulesOptions>,
    /// Total Occurrence
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "totalOccurrence",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub total_occurrence: Option<f64>,
    /// Deleted
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
    /// Assigned To
    #[serde(
        rename = "assignedTo",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assigned_to: Option<String>,
    /// Contact Id
    #[serde(rename = "contactId", default, skip_serializing_if = "Option::is_none")]
    pub contact_id: Option<String>,
}

/// `RecurringTaskSingleResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RecurringTaskSingleResponseDTO {
    /// Recurring Tasks
    /// Required by the API.
    /// (Optional here so responses that omit it still parse.)
    #[serde(
        rename = "recurringTask",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recurring_task: Option<RecurringTaskResponseDTO>,
}

/// `RecurringTaskUpdateDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RecurringTaskUpdateDTO {
    /// Name of the task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// Description of the task
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Contact Id
    #[serde(rename = "contactIds", default, skip_serializing_if = "Vec::is_empty")]
    pub contact_ids: Vec<String>,
    /// Assigned To
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub owners: Vec<String>,
    /// Recurring rules
    #[serde(
        rename = "rruleOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rrule_options: Option<CustomRRulesOptions>,
    /// Create initial task or not
    #[serde(
        rename = "ignoreTaskCreation",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ignore_task_creation: Option<bool>,
}

/// `SearchSuccessfulResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SearchSuccessfulResponseDto {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub locations: Vec<GetLocationSchema>,
}

/// `SettingsSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SettingsSchema {
    #[serde(
        rename = "allowDuplicateContact",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub allow_duplicate_contact: Option<bool>,
    #[serde(
        rename = "allowDuplicateOpportunity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub allow_duplicate_opportunity: Option<bool>,
    #[serde(
        rename = "allowFacebookNameMerge",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub allow_facebook_name_merge: Option<bool>,
    #[serde(
        rename = "disableContactTimezone",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub disable_contact_timezone: Option<bool>,
}

/// `SmsTemplateSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SmsTemplateSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub attachments: Vec<Vec<serde_json::Value>>,
}

/// `SnapshotPutSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SnapshotPutSchema {
    /// Snaptshot ID
    /// Required by the API.
    pub id: String,
    /// If you want override all conflicted assets then pass true. Default value is false.
    #[serde(rename = "override", default, skip_serializing_if = "Option::is_none")]
    pub override_: Option<bool>,
}

/// `SocialSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct SocialSchema {
    /// Facebook URL
    #[serde(
        rename = "facebookUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub facebook_url: Option<String>,
    /// Googleplus URL
    #[serde(
        rename = "googlePlus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub google_plus: Option<String>,
    /// LinkedIn URL
    #[serde(rename = "linkedIn", default, skip_serializing_if = "Option::is_none")]
    pub linked_in: Option<String>,
    /// Foursquare URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub foursquare: Option<String>,
    /// Twitter URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub twitter: Option<String>,
    /// Yelp URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub yelp: Option<String>,
    /// Instagram URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub instagram: Option<String>,
    /// Instagram URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub youtube: Option<String>,
    /// Instagram URL
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pinterest: Option<String>,
    /// Instagram URL
    #[serde(rename = "blogRss", default, skip_serializing_if = "Option::is_none")]
    pub blog_rss: Option<String>,
    /// Google Business Places ID
    #[serde(
        rename = "googlePlacesId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub google_places_id: Option<String>,
}

/// `TaskSearchParamsDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TaskSearchParamsDto {
    /// Contact Ids
    #[serde(rename = "contactId", default, skip_serializing_if = "Vec::is_empty")]
    pub contact_id: Vec<String>,
    /// Task Completed Or Pending
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub completed: Option<bool>,
    /// Assigned User Ids
    #[serde(rename = "assignedTo", default, skip_serializing_if = "Vec::is_empty")]
    pub assigned_to: Vec<String>,
    /// Search Value
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub query: Option<String>,
    /// Limit To Api
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit: Option<f64>,
    /// Number Of Tasks To Skip
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub skip: Option<f64>,
    /// Bussiness Id
    #[serde(
        rename = "businessId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub business_id: Option<String>,
}

/// `TwilioSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TwilioSchema {
    /// SID provided by Twilio
    /// Required by the API.
    pub sid: String,
    /// Auth token provided by Twilio
    /// Required by the API.
    #[serde(rename = "authToken")]
    pub auth_token: String,
}

/// `UpdateCustomFieldsDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateCustomFieldsDTO {
    /// Required by the API.
    pub name: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub placeholder: Option<String>,
    #[serde(
        rename = "acceptedFormat",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub accepted_format: Vec<String>,
    #[serde(
        rename = "isMultipleFile",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_multiple_file: Option<bool>,
    #[serde(
        rename = "maxNumberOfFiles",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_number_of_files: Option<f64>,
    /// Multiple possible shapes in the spec; raw JSON.
    #[serde(
        rename = "textBoxListOptions",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub text_box_list_options: Vec<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub position: Option<f64>,
    /// Model of the custom field you want to update
    /// Allowed values: `contact`, `opportunity`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
}

/// `UpdateLocationDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateLocationDto {
    /// The name for the sub-account/location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The phone number of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// Company/Agency Id
    /// Required by the API.
    #[serde(rename = "companyId")]
    pub company_id: String,
    /// The address of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub address: Option<String>,
    /// The city where the business is located for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub city: Option<String>,
    /// The state in which the business operates for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    /// The country in which the business is present for which sub-account is created
    /// Allowed values: `AF`, `AX`, `AL`, `DZ`, `AS`, `AD`, `AO`, `AI`, `AQ`, `AG`, `AR`, `AM`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    /// The postal code of the business for which sub-account is created
    #[serde(
        rename = "postalCode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub postal_code: Option<String>,
    /// The website of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub website: Option<String>,
    /// The timezone of the business for which sub-account is created
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timezone: Option<String>,
    #[serde(
        rename = "prospectInfo",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prospect_info: Option<ProspectInfoDto>,
    /// The default settings for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<SettingsSchema>,
    /// The social media links for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub social: Option<SocialSchema>,
    /// The twilio credentials for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub twilio: Option<TwilioSchema>,
    /// The mailgun credentials for location
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mailgun: Option<MailgunSchema>,
    /// The snapshot to be updated in the location.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub snapshot: Option<SnapshotPutSchema>,
}

/// `customValuesDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CustomValuesDTO {
    /// Required by the API.
    pub name: String,
    /// Required by the API.
    pub value: String,
}

/// `tagBody` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TagBody {
    /// Tag name
    /// Required by the API.
    pub name: String,
}

/// `textBoxListOptionsSchema` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct TextBoxListOptionsSchema {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    #[serde(
        rename = "prefillValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub prefill_value: Option<String>,
}