Repository navigation
Expand file tree
/
Copy pathmodel_create_template_request.go
More file actions
1942 lines (1672 loc) · 69.6 KB
/
Copy pathmodel_create_template_request.go
File metadata and controls
1942 lines (1672 loc) · 69.6 KB
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
/*
DocSpring API
Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
API version: v2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package docspring
import (
"encoding/json"
"fmt"
)
// checks if the CreateTemplateRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateTemplateRequest{}
// CreateTemplateRequest The template to create.
type CreateTemplateRequest struct {
// The template's name.
Name *string `json:"name,omitempty"`
// Shown under the template's name at the top of its hosted forms, and used as their meta description. Not shown on embedded forms or signature requests.
Description NullableString `json:"description,omitempty"`
// `pdf`: fields placed on an uploaded PDF. `html`: a PDF rendered from HTML and SCSS. `docx`: a Word document with tags where the data goes, which makes Word documents or PDFs. It can't be changed after the template is created.
TemplateType TemplateType `json:"template_type"`
// What each submission makes unless its request sets `output_formats`: `docx` (a Word document), `odt` (an OpenDocument file, converted from the Word document) or `pdf`. A Word template's is chosen when it's created; PDF and HTML templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
OutputFormat *OutputFormat `json:"output_format,omitempty"`
// The ID of the folder the template is in. Null for a template at the root. Setting it moves the template and all of its published versions.
ParentFolderId NullableString `json:"parent_folder_id,omitempty"`
// A locked template can't be changed or deleted until it's unlocked (`locked` can always be changed).
Locked *bool `json:"locked,omitempty"`
// Print the submission ID in the footer of each page of PDFs signed through signature requests.
AddSignatureRequestSubmissionIdFooters *bool `json:"add_signature_request_submission_id_footers,omitempty"`
// The language AI field setup names fields in: `auto` uses the form's language when it's written in the Latin alphabet without accents, and English otherwise; `english` always uses English; `form_language` uses the form's language and script. New templates take it from your account's template settings. Null for HTML templates.
AiFieldNamingLanguage *AiFieldNamingLanguage `json:"ai_field_naming_language,omitempty"`
// Accept submission data with properties that aren't fields of the template.
AllowAdditionalProperties *bool `json:"allow_additional_properties,omitempty"`
// Visual forms and signature request forms show the Continue button as soon as the required fields are filled in, without visiting each optional field. The `allowSkippingOptionalFields` embed option overrides it.
AllowSkippingOptionalFields *bool `json:"allow_skipping_optional_fields,omitempty"`
// The hosted form that /templates/{template_id}/form shows when its URL has no `mode` parameter: `web` (the web form), `visual` (the visual form, where fields are filled in on the PDF) or `dual` (both, in tabs). Only PDF templates have a visual form, so other templates accept only `web`.
DefaultFormMode *TemplateFormMode `json:"default_form_mode,omitempty"`
// Generate PDFs whose text and check fields stay fillable ("Generate Editable PDFs"). A submission's `editable` overrides it.
EditableSubmissions *bool `json:"editable_submissions,omitempty"`
// The sites that can embed the template's live signature requests and its embedded template editor: a host such as `app.example.com`, with an optional leading wildcard (`*.example.com`), port (`localhost:3000`) or scheme (`https://app.example.com`; without one, `http` and `https` both work). Browsers open a live signature request in a frame only on these sites (and DocSpring's), so with an empty list it can't be embedded anywhere; a test signature request can be embedded on any site. The embedded template editor loads only for a page on one of these sites (by its Referer or Origin header), and on any site when the list is empty. Forms embedded on a page (Visual Forms JS and the simple form) aren't restricted.
EmbedDomains []string `json:"embed_domains,omitempty"`
// Allow the embedded template editor to change sensitive template settings (webhooks, redirect URL, encryption, public access, expiration and so on).
EmbedEditAllowSettings *bool `json:"embed_edit_allow_settings,omitempty"`
// Allow the embedded template editor to publish, restore, compare and delete published versions.
EmbedEditAllowVersioning *bool `json:"embed_edit_allow_versioning,omitempty"`
// Allow the embedded template editor to replace the template's PDF.
EmbedEditAllowDocumentReplacement *bool `json:"embed_edit_allow_document_replacement,omitempty"`
// Encrypt generated PDFs with `encrypt_pdfs_password`. A Word template can only encrypt its PDFs when its `output_format` is `pdf`, because Word documents and OpenDocument files can't be password-protected.
EncryptPdfs *bool `json:"encrypt_pdfs,omitempty"`
// The password that opens encrypted PDFs. It's never returned; `has_encrypt_pdfs_password` says if it's set.
EncryptPdfsPassword NullableString `json:"encrypt_pdfs_password,omitempty"`
// Delete each submission's data and PDF after `expire_after` `expiration_interval`.
ExpireSubmissions *bool `json:"expire_submissions,omitempty"`
// How many `expiration_interval`s a submission's data and PDF are kept for, when `expire_submissions` is on. At most 5256000 (10 years in minutes).
ExpireAfter *int32 `json:"expire_after,omitempty"`
// The unit of `expire_after`.
ExpirationInterval *ExpirationInterval `json:"expiration_interval,omitempty"`
// Add the audit trail to the end of PDFs signed through signature requests.
MergeAuditTrailPdf *bool `json:"merge_audit_trail_pdf,omitempty"`
// Date fields also accept NN/NN/YYYY dates (with slashes, dashes or dots), read in the order of the template's default date format: month first for %m/%d/%Y, day first for %d/%m/%Y. When false, date fields only accept YYYY-MM-DD. Applies to PDF templates: an HTML or Word template's date fields only accept YYYY-MM-DD. Date fields that include a time take RFC 3339 date-times either way.
ParseDatesUsingTemplateDateFormat *bool `json:"parse_dates_using_template_date_format,omitempty"`
// Allow anyone with a submission's ID to download its PDF.
PublicSubmissions *bool `json:"public_submissions,omitempty"`
// Allow anyone to fill in the template's web form.
PublicWebForm *bool `json:"public_web_form,omitempty"`
// Where the web form sends people after they submit it.
RedirectUrl NullableString `json:"redirect_url,omitempty"`
// A Slack incoming webhook URL that is notified about the template's submissions. It's never returned; `has_slack_webhook_url` says if it's set.
SlackWebhookUrl NullableString `json:"slack_webhook_url,omitempty"`
// The default style of the template's fields. Setting it replaces the whole object.
Defaults *TemplateDefaultsInput `json:"defaults,omitempty"`
// The template's conditional logic rules. Setting them replaces all of the rules.
FieldDependencies []TemplateFieldDependencyInput `json:"field_dependencies,omitempty"`
// The field names that people using the embedded template editor choose from, each with the data type and settings a field gets when it's given that name. Setting it replaces the whole list; an empty list turns them off.
PredefinedFields []PredefinedFieldInput `json:"predefined_fields,omitempty"`
// Sample submission data that sets `predefined_fields`: each value becomes a predefined field, with a type that fits it (`string`, `number`, `boolean`, `date`, `email` or `url`) and `required_in_template` true. Nested objects and arrays become names with `/`, such as `customer/email`. Without `predefined_fields` in the same request, it replaces them; with them, it adds to them and sets the types of the ones it has values for.
PredefinedFieldsSampleData map[string]interface{} `json:"predefined_fields_sample_data,omitempty"`
// The HTML of an HTML template, as a Liquid template. Null for PDF and Word templates.
Html NullableString `json:"html,omitempty"`
// The SCSS of an HTML template.
Scss NullableString `json:"scss,omitempty"`
// The HTML printed at the top of each page of an HTML template.
HeaderHtml NullableString `json:"header_html,omitempty"`
// The HTML printed at the bottom of each page of an HTML template.
FooterHtml NullableString `json:"footer_html,omitempty"`
// Null resets the options to their defaults.
HtmlEngineOptions NullableHtmlEngineOptionsInput `json:"html_engine_options,omitempty"`
// Whether an HTML template HTML-escapes the values it prints. When true, `{{ value }}` prints a value as text, so a `<` or `&` in it is printed as that character, and `{{ value | raw }}` prints a value as HTML. New HTML templates default to true. Templates created before October 2026, or with API v1, default to false, which prints every value as HTML. Null for PDF templates.
HtmlEscapeData *bool `json:"html_escape_data,omitempty"`
// The template's document, a PDF or a Word document (.docx or .odt): the `fields.key` of a file you uploaded with the presigned upload (GET /uploads/presign). PDF and Word templates need one of `cache_id`, `document_url` and `document_base64`. To upload the file with the request, use POST /templates/upload.
CacheId *string `json:"cache_id,omitempty"`
// An https:// link to the template's document, instead of `cache_id`: a PDF template's PDF (up to 100 MB) or a Word template's Word document (.docx or .odt, up to 50 MB). DocSpring downloads it after responding, following redirects to other https:// links: the template's `document.state` is `downloading` until then, and `converting` while an .odt is converted (sync.api hosts wait for both). If it can't be downloaded, the state is `download_failed` and `document.error_message` says why.
DocumentUrl *string `json:"document_url,omitempty"`
// The template's document (a PDF, or a Word template's Word document), encoded as base64 (a `data:` URI works too), instead of `cache_id`. Up to 7 MB before it's encoded: send a larger file with `cache_id` or `document_url`.
DocumentBase64 *string `json:"document_base64,omitempty"`
// The file's name, for a `cache_id` (presigned uploads don't send one) or `document_base64`. A `document_url`'s is the last part of its path unless you set it.
Filename *string `json:"filename,omitempty"`
// Set up the PDF's fields as DocSpring's "Automatically detect fields" upload option does: import or detect the fields, name them with AI, and set up conditional logic. `field_source`, `field_naming` and `field_logic` choose how. Default false. `document.page_processing_statuses` and `document.field_logic_status` show how it's going, and `document.state` becomes `processed` once every page's fields are set up.
DetectFields *bool `json:"detect_fields,omitempty"`
// With `detect_fields`, where the fields come from. `auto` (the default) imports the form fields of a fillable PDF and detects the fields of a PDF without them; `pdf_detection` detects the fields from the page layout, even on a fillable PDF; `pdf_form_fields` only imports the PDF's form fields.
FieldSource *FieldSetupSource `json:"field_source,omitempty"`
// With `detect_fields`, how the fields are named. `ai` (the default) names them and sets their types and settings with AI; `preserve` keeps the names of the PDF's form fields, and AI only names the fields it detected. `preserve` needs `field_source` `auto` or `pdf_form_fields`.
FieldNaming *FieldSetupNaming `json:"field_naming,omitempty"`
// With `detect_fields`, whether AI reads the whole form once the fields are named and sets up conditional logic and required fields (`ai`) or not (`none`). Default: your account's template settings.
FieldLogic *FieldSetupLogic `json:"field_logic,omitempty"`
AdditionalProperties map[string]interface{}
}
type _CreateTemplateRequest CreateTemplateRequest
// NewCreateTemplateRequest instantiates a new CreateTemplateRequest 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 NewCreateTemplateRequest(templateType TemplateType) *CreateTemplateRequest {
this := CreateTemplateRequest{}
this.TemplateType = templateType
return &this
}
// NewCreateTemplateRequestWithDefaults instantiates a new CreateTemplateRequest 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 NewCreateTemplateRequestWithDefaults() *CreateTemplateRequest {
this := CreateTemplateRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *CreateTemplateRequest) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTemplateRequest) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CreateTemplateRequest) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *CreateTemplateRequest) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *CreateTemplateRequest) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *CreateTemplateRequest) UnsetDescription() {
o.Description.Unset()
}
// GetTemplateType returns the TemplateType field value
func (o *CreateTemplateRequest) GetTemplateType() TemplateType {
if o == nil {
var ret TemplateType
return ret
}
return o.TemplateType
}
// GetTemplateTypeOk returns a tuple with the TemplateType field value
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetTemplateTypeOk() (*TemplateType, bool) {
if o == nil {
return nil, false
}
return &o.TemplateType, true
}
// SetTemplateType sets field value
func (o *CreateTemplateRequest) SetTemplateType(v TemplateType) {
o.TemplateType = v
}
// GetOutputFormat returns the OutputFormat field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetOutputFormat() OutputFormat {
if o == nil || IsNil(o.OutputFormat) {
var ret OutputFormat
return ret
}
return *o.OutputFormat
}
// GetOutputFormatOk returns a tuple with the OutputFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetOutputFormatOk() (*OutputFormat, bool) {
if o == nil || IsNil(o.OutputFormat) {
return nil, false
}
return o.OutputFormat, true
}
// HasOutputFormat returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasOutputFormat() bool {
if o != nil && !IsNil(o.OutputFormat) {
return true
}
return false
}
// SetOutputFormat gets a reference to the given OutputFormat and assigns it to the OutputFormat field.
func (o *CreateTemplateRequest) SetOutputFormat(v OutputFormat) {
o.OutputFormat = &v
}
// GetParentFolderId returns the ParentFolderId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTemplateRequest) GetParentFolderId() string {
if o == nil || IsNil(o.ParentFolderId.Get()) {
var ret string
return ret
}
return *o.ParentFolderId.Get()
}
// GetParentFolderIdOk returns a tuple with the ParentFolderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CreateTemplateRequest) GetParentFolderIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ParentFolderId.Get(), o.ParentFolderId.IsSet()
}
// HasParentFolderId returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasParentFolderId() bool {
if o != nil && o.ParentFolderId.IsSet() {
return true
}
return false
}
// SetParentFolderId gets a reference to the given NullableString and assigns it to the ParentFolderId field.
func (o *CreateTemplateRequest) SetParentFolderId(v string) {
o.ParentFolderId.Set(&v)
}
// SetParentFolderIdNil sets the value for ParentFolderId to be an explicit nil
func (o *CreateTemplateRequest) SetParentFolderIdNil() {
o.ParentFolderId.Set(nil)
}
// UnsetParentFolderId ensures that no value is present for ParentFolderId, not even an explicit nil
func (o *CreateTemplateRequest) UnsetParentFolderId() {
o.ParentFolderId.Unset()
}
// GetLocked returns the Locked field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetLocked() bool {
if o == nil || IsNil(o.Locked) {
var ret bool
return ret
}
return *o.Locked
}
// GetLockedOk returns a tuple with the Locked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetLockedOk() (*bool, bool) {
if o == nil || IsNil(o.Locked) {
return nil, false
}
return o.Locked, true
}
// HasLocked returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasLocked() bool {
if o != nil && !IsNil(o.Locked) {
return true
}
return false
}
// SetLocked gets a reference to the given bool and assigns it to the Locked field.
func (o *CreateTemplateRequest) SetLocked(v bool) {
o.Locked = &v
}
// GetAddSignatureRequestSubmissionIdFooters returns the AddSignatureRequestSubmissionIdFooters field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetAddSignatureRequestSubmissionIdFooters() bool {
if o == nil || IsNil(o.AddSignatureRequestSubmissionIdFooters) {
var ret bool
return ret
}
return *o.AddSignatureRequestSubmissionIdFooters
}
// GetAddSignatureRequestSubmissionIdFootersOk returns a tuple with the AddSignatureRequestSubmissionIdFooters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetAddSignatureRequestSubmissionIdFootersOk() (*bool, bool) {
if o == nil || IsNil(o.AddSignatureRequestSubmissionIdFooters) {
return nil, false
}
return o.AddSignatureRequestSubmissionIdFooters, true
}
// HasAddSignatureRequestSubmissionIdFooters returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasAddSignatureRequestSubmissionIdFooters() bool {
if o != nil && !IsNil(o.AddSignatureRequestSubmissionIdFooters) {
return true
}
return false
}
// SetAddSignatureRequestSubmissionIdFooters gets a reference to the given bool and assigns it to the AddSignatureRequestSubmissionIdFooters field.
func (o *CreateTemplateRequest) SetAddSignatureRequestSubmissionIdFooters(v bool) {
o.AddSignatureRequestSubmissionIdFooters = &v
}
// GetAiFieldNamingLanguage returns the AiFieldNamingLanguage field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetAiFieldNamingLanguage() AiFieldNamingLanguage {
if o == nil || IsNil(o.AiFieldNamingLanguage) {
var ret AiFieldNamingLanguage
return ret
}
return *o.AiFieldNamingLanguage
}
// GetAiFieldNamingLanguageOk returns a tuple with the AiFieldNamingLanguage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetAiFieldNamingLanguageOk() (*AiFieldNamingLanguage, bool) {
if o == nil || IsNil(o.AiFieldNamingLanguage) {
return nil, false
}
return o.AiFieldNamingLanguage, true
}
// HasAiFieldNamingLanguage returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasAiFieldNamingLanguage() bool {
if o != nil && !IsNil(o.AiFieldNamingLanguage) {
return true
}
return false
}
// SetAiFieldNamingLanguage gets a reference to the given AiFieldNamingLanguage and assigns it to the AiFieldNamingLanguage field.
func (o *CreateTemplateRequest) SetAiFieldNamingLanguage(v AiFieldNamingLanguage) {
o.AiFieldNamingLanguage = &v
}
// GetAllowAdditionalProperties returns the AllowAdditionalProperties field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetAllowAdditionalProperties() bool {
if o == nil || IsNil(o.AllowAdditionalProperties) {
var ret bool
return ret
}
return *o.AllowAdditionalProperties
}
// GetAllowAdditionalPropertiesOk returns a tuple with the AllowAdditionalProperties field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetAllowAdditionalPropertiesOk() (*bool, bool) {
if o == nil || IsNil(o.AllowAdditionalProperties) {
return nil, false
}
return o.AllowAdditionalProperties, true
}
// HasAllowAdditionalProperties returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasAllowAdditionalProperties() bool {
if o != nil && !IsNil(o.AllowAdditionalProperties) {
return true
}
return false
}
// SetAllowAdditionalProperties gets a reference to the given bool and assigns it to the AllowAdditionalProperties field.
func (o *CreateTemplateRequest) SetAllowAdditionalProperties(v bool) {
o.AllowAdditionalProperties = &v
}
// GetAllowSkippingOptionalFields returns the AllowSkippingOptionalFields field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetAllowSkippingOptionalFields() bool {
if o == nil || IsNil(o.AllowSkippingOptionalFields) {
var ret bool
return ret
}
return *o.AllowSkippingOptionalFields
}
// GetAllowSkippingOptionalFieldsOk returns a tuple with the AllowSkippingOptionalFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetAllowSkippingOptionalFieldsOk() (*bool, bool) {
if o == nil || IsNil(o.AllowSkippingOptionalFields) {
return nil, false
}
return o.AllowSkippingOptionalFields, true
}
// HasAllowSkippingOptionalFields returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasAllowSkippingOptionalFields() bool {
if o != nil && !IsNil(o.AllowSkippingOptionalFields) {
return true
}
return false
}
// SetAllowSkippingOptionalFields gets a reference to the given bool and assigns it to the AllowSkippingOptionalFields field.
func (o *CreateTemplateRequest) SetAllowSkippingOptionalFields(v bool) {
o.AllowSkippingOptionalFields = &v
}
// GetDefaultFormMode returns the DefaultFormMode field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetDefaultFormMode() TemplateFormMode {
if o == nil || IsNil(o.DefaultFormMode) {
var ret TemplateFormMode
return ret
}
return *o.DefaultFormMode
}
// GetDefaultFormModeOk returns a tuple with the DefaultFormMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetDefaultFormModeOk() (*TemplateFormMode, bool) {
if o == nil || IsNil(o.DefaultFormMode) {
return nil, false
}
return o.DefaultFormMode, true
}
// HasDefaultFormMode returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasDefaultFormMode() bool {
if o != nil && !IsNil(o.DefaultFormMode) {
return true
}
return false
}
// SetDefaultFormMode gets a reference to the given TemplateFormMode and assigns it to the DefaultFormMode field.
func (o *CreateTemplateRequest) SetDefaultFormMode(v TemplateFormMode) {
o.DefaultFormMode = &v
}
// GetEditableSubmissions returns the EditableSubmissions field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEditableSubmissions() bool {
if o == nil || IsNil(o.EditableSubmissions) {
var ret bool
return ret
}
return *o.EditableSubmissions
}
// GetEditableSubmissionsOk returns a tuple with the EditableSubmissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEditableSubmissionsOk() (*bool, bool) {
if o == nil || IsNil(o.EditableSubmissions) {
return nil, false
}
return o.EditableSubmissions, true
}
// HasEditableSubmissions returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEditableSubmissions() bool {
if o != nil && !IsNil(o.EditableSubmissions) {
return true
}
return false
}
// SetEditableSubmissions gets a reference to the given bool and assigns it to the EditableSubmissions field.
func (o *CreateTemplateRequest) SetEditableSubmissions(v bool) {
o.EditableSubmissions = &v
}
// GetEmbedDomains returns the EmbedDomains field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEmbedDomains() []string {
if o == nil || IsNil(o.EmbedDomains) {
var ret []string
return ret
}
return o.EmbedDomains
}
// GetEmbedDomainsOk returns a tuple with the EmbedDomains field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEmbedDomainsOk() ([]string, bool) {
if o == nil || IsNil(o.EmbedDomains) {
return nil, false
}
return o.EmbedDomains, true
}
// HasEmbedDomains returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEmbedDomains() bool {
if o != nil && !IsNil(o.EmbedDomains) {
return true
}
return false
}
// SetEmbedDomains gets a reference to the given []string and assigns it to the EmbedDomains field.
func (o *CreateTemplateRequest) SetEmbedDomains(v []string) {
o.EmbedDomains = v
}
// GetEmbedEditAllowSettings returns the EmbedEditAllowSettings field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEmbedEditAllowSettings() bool {
if o == nil || IsNil(o.EmbedEditAllowSettings) {
var ret bool
return ret
}
return *o.EmbedEditAllowSettings
}
// GetEmbedEditAllowSettingsOk returns a tuple with the EmbedEditAllowSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEmbedEditAllowSettingsOk() (*bool, bool) {
if o == nil || IsNil(o.EmbedEditAllowSettings) {
return nil, false
}
return o.EmbedEditAllowSettings, true
}
// HasEmbedEditAllowSettings returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEmbedEditAllowSettings() bool {
if o != nil && !IsNil(o.EmbedEditAllowSettings) {
return true
}
return false
}
// SetEmbedEditAllowSettings gets a reference to the given bool and assigns it to the EmbedEditAllowSettings field.
func (o *CreateTemplateRequest) SetEmbedEditAllowSettings(v bool) {
o.EmbedEditAllowSettings = &v
}
// GetEmbedEditAllowVersioning returns the EmbedEditAllowVersioning field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEmbedEditAllowVersioning() bool {
if o == nil || IsNil(o.EmbedEditAllowVersioning) {
var ret bool
return ret
}
return *o.EmbedEditAllowVersioning
}
// GetEmbedEditAllowVersioningOk returns a tuple with the EmbedEditAllowVersioning field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEmbedEditAllowVersioningOk() (*bool, bool) {
if o == nil || IsNil(o.EmbedEditAllowVersioning) {
return nil, false
}
return o.EmbedEditAllowVersioning, true
}
// HasEmbedEditAllowVersioning returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEmbedEditAllowVersioning() bool {
if o != nil && !IsNil(o.EmbedEditAllowVersioning) {
return true
}
return false
}
// SetEmbedEditAllowVersioning gets a reference to the given bool and assigns it to the EmbedEditAllowVersioning field.
func (o *CreateTemplateRequest) SetEmbedEditAllowVersioning(v bool) {
o.EmbedEditAllowVersioning = &v
}
// GetEmbedEditAllowDocumentReplacement returns the EmbedEditAllowDocumentReplacement field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEmbedEditAllowDocumentReplacement() bool {
if o == nil || IsNil(o.EmbedEditAllowDocumentReplacement) {
var ret bool
return ret
}
return *o.EmbedEditAllowDocumentReplacement
}
// GetEmbedEditAllowDocumentReplacementOk returns a tuple with the EmbedEditAllowDocumentReplacement field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEmbedEditAllowDocumentReplacementOk() (*bool, bool) {
if o == nil || IsNil(o.EmbedEditAllowDocumentReplacement) {
return nil, false
}
return o.EmbedEditAllowDocumentReplacement, true
}
// HasEmbedEditAllowDocumentReplacement returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEmbedEditAllowDocumentReplacement() bool {
if o != nil && !IsNil(o.EmbedEditAllowDocumentReplacement) {
return true
}
return false
}
// SetEmbedEditAllowDocumentReplacement gets a reference to the given bool and assigns it to the EmbedEditAllowDocumentReplacement field.
func (o *CreateTemplateRequest) SetEmbedEditAllowDocumentReplacement(v bool) {
o.EmbedEditAllowDocumentReplacement = &v
}
// GetEncryptPdfs returns the EncryptPdfs field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetEncryptPdfs() bool {
if o == nil || IsNil(o.EncryptPdfs) {
var ret bool
return ret
}
return *o.EncryptPdfs
}
// GetEncryptPdfsOk returns a tuple with the EncryptPdfs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetEncryptPdfsOk() (*bool, bool) {
if o == nil || IsNil(o.EncryptPdfs) {
return nil, false
}
return o.EncryptPdfs, true
}
// HasEncryptPdfs returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEncryptPdfs() bool {
if o != nil && !IsNil(o.EncryptPdfs) {
return true
}
return false
}
// SetEncryptPdfs gets a reference to the given bool and assigns it to the EncryptPdfs field.
func (o *CreateTemplateRequest) SetEncryptPdfs(v bool) {
o.EncryptPdfs = &v
}
// GetEncryptPdfsPassword returns the EncryptPdfsPassword field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTemplateRequest) GetEncryptPdfsPassword() string {
if o == nil || IsNil(o.EncryptPdfsPassword.Get()) {
var ret string
return ret
}
return *o.EncryptPdfsPassword.Get()
}
// GetEncryptPdfsPasswordOk returns a tuple with the EncryptPdfsPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CreateTemplateRequest) GetEncryptPdfsPasswordOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.EncryptPdfsPassword.Get(), o.EncryptPdfsPassword.IsSet()
}
// HasEncryptPdfsPassword returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasEncryptPdfsPassword() bool {
if o != nil && o.EncryptPdfsPassword.IsSet() {
return true
}
return false
}
// SetEncryptPdfsPassword gets a reference to the given NullableString and assigns it to the EncryptPdfsPassword field.
func (o *CreateTemplateRequest) SetEncryptPdfsPassword(v string) {
o.EncryptPdfsPassword.Set(&v)
}
// SetEncryptPdfsPasswordNil sets the value for EncryptPdfsPassword to be an explicit nil
func (o *CreateTemplateRequest) SetEncryptPdfsPasswordNil() {
o.EncryptPdfsPassword.Set(nil)
}
// UnsetEncryptPdfsPassword ensures that no value is present for EncryptPdfsPassword, not even an explicit nil
func (o *CreateTemplateRequest) UnsetEncryptPdfsPassword() {
o.EncryptPdfsPassword.Unset()
}
// GetExpireSubmissions returns the ExpireSubmissions field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetExpireSubmissions() bool {
if o == nil || IsNil(o.ExpireSubmissions) {
var ret bool
return ret
}
return *o.ExpireSubmissions
}
// GetExpireSubmissionsOk returns a tuple with the ExpireSubmissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetExpireSubmissionsOk() (*bool, bool) {
if o == nil || IsNil(o.ExpireSubmissions) {
return nil, false
}
return o.ExpireSubmissions, true
}
// HasExpireSubmissions returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasExpireSubmissions() bool {
if o != nil && !IsNil(o.ExpireSubmissions) {
return true
}
return false
}
// SetExpireSubmissions gets a reference to the given bool and assigns it to the ExpireSubmissions field.
func (o *CreateTemplateRequest) SetExpireSubmissions(v bool) {
o.ExpireSubmissions = &v
}
// GetExpireAfter returns the ExpireAfter field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetExpireAfter() int32 {
if o == nil || IsNil(o.ExpireAfter) {
var ret int32
return ret
}
return *o.ExpireAfter
}
// GetExpireAfterOk returns a tuple with the ExpireAfter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetExpireAfterOk() (*int32, bool) {
if o == nil || IsNil(o.ExpireAfter) {
return nil, false
}
return o.ExpireAfter, true
}
// HasExpireAfter returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasExpireAfter() bool {
if o != nil && !IsNil(o.ExpireAfter) {
return true
}
return false
}
// SetExpireAfter gets a reference to the given int32 and assigns it to the ExpireAfter field.
func (o *CreateTemplateRequest) SetExpireAfter(v int32) {
o.ExpireAfter = &v
}
// GetExpirationInterval returns the ExpirationInterval field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetExpirationInterval() ExpirationInterval {
if o == nil || IsNil(o.ExpirationInterval) {
var ret ExpirationInterval
return ret
}
return *o.ExpirationInterval
}
// GetExpirationIntervalOk returns a tuple with the ExpirationInterval field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetExpirationIntervalOk() (*ExpirationInterval, bool) {
if o == nil || IsNil(o.ExpirationInterval) {
return nil, false
}
return o.ExpirationInterval, true
}
// HasExpirationInterval returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasExpirationInterval() bool {
if o != nil && !IsNil(o.ExpirationInterval) {
return true
}
return false
}
// SetExpirationInterval gets a reference to the given ExpirationInterval and assigns it to the ExpirationInterval field.
func (o *CreateTemplateRequest) SetExpirationInterval(v ExpirationInterval) {
o.ExpirationInterval = &v
}
// GetMergeAuditTrailPdf returns the MergeAuditTrailPdf field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetMergeAuditTrailPdf() bool {
if o == nil || IsNil(o.MergeAuditTrailPdf) {
var ret bool
return ret
}
return *o.MergeAuditTrailPdf
}
// GetMergeAuditTrailPdfOk returns a tuple with the MergeAuditTrailPdf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetMergeAuditTrailPdfOk() (*bool, bool) {
if o == nil || IsNil(o.MergeAuditTrailPdf) {
return nil, false
}
return o.MergeAuditTrailPdf, true
}
// HasMergeAuditTrailPdf returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasMergeAuditTrailPdf() bool {
if o != nil && !IsNil(o.MergeAuditTrailPdf) {
return true
}
return false
}
// SetMergeAuditTrailPdf gets a reference to the given bool and assigns it to the MergeAuditTrailPdf field.
func (o *CreateTemplateRequest) SetMergeAuditTrailPdf(v bool) {
o.MergeAuditTrailPdf = &v
}
// GetParseDatesUsingTemplateDateFormat returns the ParseDatesUsingTemplateDateFormat field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetParseDatesUsingTemplateDateFormat() bool {
if o == nil || IsNil(o.ParseDatesUsingTemplateDateFormat) {
var ret bool
return ret
}
return *o.ParseDatesUsingTemplateDateFormat
}
// GetParseDatesUsingTemplateDateFormatOk returns a tuple with the ParseDatesUsingTemplateDateFormat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetParseDatesUsingTemplateDateFormatOk() (*bool, bool) {
if o == nil || IsNil(o.ParseDatesUsingTemplateDateFormat) {
return nil, false
}
return o.ParseDatesUsingTemplateDateFormat, true
}
// HasParseDatesUsingTemplateDateFormat returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasParseDatesUsingTemplateDateFormat() bool {
if o != nil && !IsNil(o.ParseDatesUsingTemplateDateFormat) {
return true
}
return false
}
// SetParseDatesUsingTemplateDateFormat gets a reference to the given bool and assigns it to the ParseDatesUsingTemplateDateFormat field.
func (o *CreateTemplateRequest) SetParseDatesUsingTemplateDateFormat(v bool) {
o.ParseDatesUsingTemplateDateFormat = &v
}
// GetPublicSubmissions returns the PublicSubmissions field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetPublicSubmissions() bool {
if o == nil || IsNil(o.PublicSubmissions) {
var ret bool
return ret
}
return *o.PublicSubmissions
}
// GetPublicSubmissionsOk returns a tuple with the PublicSubmissions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetPublicSubmissionsOk() (*bool, bool) {
if o == nil || IsNil(o.PublicSubmissions) {
return nil, false
}
return o.PublicSubmissions, true
}
// HasPublicSubmissions returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasPublicSubmissions() bool {
if o != nil && !IsNil(o.PublicSubmissions) {
return true
}
return false
}
// SetPublicSubmissions gets a reference to the given bool and assigns it to the PublicSubmissions field.
func (o *CreateTemplateRequest) SetPublicSubmissions(v bool) {
o.PublicSubmissions = &v
}
// GetPublicWebForm returns the PublicWebForm field value if set, zero value otherwise.
func (o *CreateTemplateRequest) GetPublicWebForm() bool {
if o == nil || IsNil(o.PublicWebForm) {
var ret bool
return ret
}
return *o.PublicWebForm
}
// GetPublicWebFormOk returns a tuple with the PublicWebForm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTemplateRequest) GetPublicWebFormOk() (*bool, bool) {
if o == nil || IsNil(o.PublicWebForm) {
return nil, false
}
return o.PublicWebForm, true
}
// HasPublicWebForm returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasPublicWebForm() bool {
if o != nil && !IsNil(o.PublicWebForm) {
return true
}
return false
}
// SetPublicWebForm gets a reference to the given bool and assigns it to the PublicWebForm field.
func (o *CreateTemplateRequest) SetPublicWebForm(v bool) {
o.PublicWebForm = &v
}
// GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTemplateRequest) GetRedirectUrl() string {
if o == nil || IsNil(o.RedirectUrl.Get()) {
var ret string
return ret
}
return *o.RedirectUrl.Get()
}
// GetRedirectUrlOk returns a tuple with the RedirectUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CreateTemplateRequest) GetRedirectUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.RedirectUrl.Get(), o.RedirectUrl.IsSet()
}
// HasRedirectUrl returns a boolean if a field has been set.
func (o *CreateTemplateRequest) HasRedirectUrl() bool {
if o != nil && o.RedirectUrl.IsSet() {
return true
}
return false
}
// SetRedirectUrl gets a reference to the given NullableString and assigns it to the RedirectUrl field.
func (o *CreateTemplateRequest) SetRedirectUrl(v string) {
o.RedirectUrl.Set(&v)
}
// SetRedirectUrlNil sets the value for RedirectUrl to be an explicit nil
func (o *CreateTemplateRequest) SetRedirectUrlNil() {
o.RedirectUrl.Set(nil)
}
// UnsetRedirectUrl ensures that no value is present for RedirectUrl, not even an explicit nil
func (o *CreateTemplateRequest) UnsetRedirectUrl() {
o.RedirectUrl.Unset()
}
// GetSlackWebhookUrl returns the SlackWebhookUrl field value if set, zero value otherwise (both if not set or set to explicit null).