Repository navigation
Expand file tree
/
Copy pathmodel_create_submission_request.go
More file actions
878 lines (747 loc) · 30.6 KB
/
Copy pathmodel_create_submission_request.go
File metadata and controls
878 lines (747 loc) · 30.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
/*
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"
)
// checks if the CreateSubmissionRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateSubmissionRequest{}
// CreateSubmissionRequest The submission's data and settings.
type CreateSubmissionRequest struct {
// Test PDFs have a watermark and are free. Live PDFs use credits. Submissions made with a test API token are always test submissions, and the demo API token's are always live.
Test *bool `json:"test,omitempty"`
// `true` keeps the PDF's text and check fields fillable, and `false` flattens every field. Left out, the template decides: its `editable_submissions` setting, or each field's own Editable option. A response shows the template's setting when the request left this out. Can't be `true` with `signature_requests`.
Editable *bool `json:"editable,omitempty"`
// The values of the template's fields, by field name. Required for PDF templates, Word templates and page designs, unless `signature_requests` collects them. Signatures come only from signature requests: a value for a signature or initials field makes the submission `invalid_data`, in test mode too. To print an image or a name you send, use an Image or Text field.
Data map[string]interface{} `json:"data,omitempty"`
// Your own data about the submission, such as an ID from your app. It isn't printed on the PDF. Two keys also change the PDF: `pdf_filename` names its file (`files.pdf.filename`, and its download), and `pdf_title` is its title in the PDF's document properties (and an HTML template's `<title>`, unless its HTML has one). Without `pdf_title`, the title is the template's name. In `pdf_filename`, a `.pdf` ending is removed, each run of characters other than letters, digits, `-`, `_` and `.` becomes one `_`, and the first 128 characters are kept, then `.pdf` is added. Without it, the file is named after the submission's ID (`sub_1234567890abcdef01.pdf`).
Metadata map[string]interface{} `json:"metadata,omitempty"`
// A password that the PDF needs to be opened with. It's never returned; `has_password` says if it's set. Word documents and OpenDocument files can't be password-protected, so a submission with a password can't make them.
Password *string `json:"password,omitempty"`
// What the submission makes: `pdf`, `docx` (a Word document, from a Word template), `odt` (an OpenDocument file, the format LibreOffice uses, converted from a Word template's Word document), and `png` (an image of each page of the PDF, up to 100 pages, which adds `pdf`) when you ask for it. Default `["pdf"]`, or a Word template's `output_format`. A Word template's submission with signature requests makes only `pdf`, which its signers sign. POST /submissions/{submission_id}/generate_files adds `png`, and a Word template's submission's `pdf`, `docx` or `odt`, to a processed submission.
OutputFormats []OutputFormat `json:"output_formats,omitempty"`
// Seconds after the submission is processed until it expires, up to 10 years (315360000), sooner or later than the template's or the account's expiry setting. Defaults to the template's expiry when it overrides the account's (`override_account_expiry`), and otherwise to the account's expiry setting. A submission that isn't processed, such as one with invalid data, is kept for at least 48 hours. The demo API token's submissions expire within an hour: up to 3600, and that's their default.
ExpiresIn *int32 `json:"expires_in,omitempty"`
// Changes to field settings for this submission only, by field name, such as `{"name": {"required": false, "font_size": 9}}`. A setting that identifies the field (`id`, `name`, `type`), that only the template sets (such as `description`), or that doesn't apply to the field's type and display type (such as `check_character` on a field displayed as text) is a 422. A `default` for a signature or initials field makes the submission `invalid_data`. With `signature_requests`, `editable: true` is a 422.
FieldOverrides map[string]FieldOverride `json:"field_overrides,omitempty"`
// For an HTML template, HTML to use instead of the template's.
Html *string `json:"html,omitempty"`
// For an HTML template, SCSS (plain CSS works too) added after the template's styles, on the page and in its header and footer. It doesn't replace them: its rules come later, so they win over the template's rules of the same specificity.
Css *string `json:"css,omitempty"`
// The people who sign the PDF, and fill in their fields first. The PDF is generated once every signature request is completed. The signers of an HTML template, a Word template or a page design fill in its form fields and signature tags in a PDF made from `data`, and a Word template's submission makes only a PDF. Without `role`s, the first signature request is `Signer 1`, the second `Signer 2`, and so on. To leave a signer out, give every signature request its `role` and leave that one's out.
SignatureRequests []SignatureRequestInput `json:"signature_requests,omitempty"`
// Whether DocSpring emails the signers their signing links, and sends the reminders and the completed document. Default true. Each signature request's own `send_email` overrides it. A test submission only emails your DocSpring team: every other address is a 422. `true` needs `signature_requests`. DocSpring doesn't email the signers of a form library template: leave `send_email` out, and send them their links yourself.
SendEmail *bool `json:"send_email,omitempty"`
// `parallel` (the default): everyone can sign at once. `sequential`: people sign one step at a time (`signing_step`), and DocSpring emails each step when the one before it is done. Needs `signature_requests`.
SigningOrder *SigningOrder `json:"signing_order,omitempty"`
// The subject of the emails that ask people to sign. You can use `{{ signer.name }}`, `{{ signer.email }}`, `{{ document.name }}`, `{{ sender.name }}` and `{{ account.name }}`. Default "<sender> sent you <document> to sign" when you leave it out (a blank subject is a 422). Links and web addresses are shown as plain text (`example[.]com`).
EmailSubject *string `json:"email_subject,omitempty"`
// A message for the people who sign, shown above the signing button. It takes the same variables as `email_subject`. Links and web addresses are shown as plain text. Leave it out for none: a blank message is a 422.
EmailMessage *string `json:"email_message,omitempty"`
// People who get a copy of the completed document, as well as the template's `signature_request_cc`. They don't sign.
Cc []string `json:"cc,omitempty"`
// Where replies to the emails go: a member of your DocSpring team, or an address at one of your verified email domains. Leave it out for the template's reply-to address (the account owner when it has none).
ReplyTo *string `json:"reply_to,omitempty"`
// Who DocSpring tells when the document is completed or declined, or an email bounces or can't be sent: members of your DocSpring team or addresses at your verified email domains. Leave it out for the template's notification addresses (the account owner when it has none); an empty list means the account owner.
NotificationEmails []string `json:"notification_emails,omitempty"`
// Also email `notification_emails` each time someone signs. Default false.
NotifyWhenSigned *bool `json:"notify_when_signed,omitempty"`
// Remind people who haven't signed: every `interval_days` days, up to `max_count` times. Each reminder has a new signing link. Without it, DocSpring sends no reminders.
Reminders *SignatureRequestReminders `json:"reminders,omitempty"`
AdditionalProperties map[string]interface{}
}
type _CreateSubmissionRequest CreateSubmissionRequest
// NewCreateSubmissionRequest instantiates a new CreateSubmissionRequest 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 NewCreateSubmissionRequest() *CreateSubmissionRequest {
this := CreateSubmissionRequest{}
return &this
}
// NewCreateSubmissionRequestWithDefaults instantiates a new CreateSubmissionRequest 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 NewCreateSubmissionRequestWithDefaults() *CreateSubmissionRequest {
this := CreateSubmissionRequest{}
return &this
}
// GetTest returns the Test field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetTest() bool {
if o == nil || IsNil(o.Test) {
var ret bool
return ret
}
return *o.Test
}
// GetTestOk returns a tuple with the Test field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetTestOk() (*bool, bool) {
if o == nil || IsNil(o.Test) {
return nil, false
}
return o.Test, true
}
// HasTest returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasTest() bool {
if o != nil && !IsNil(o.Test) {
return true
}
return false
}
// SetTest gets a reference to the given bool and assigns it to the Test field.
func (o *CreateSubmissionRequest) SetTest(v bool) {
o.Test = &v
}
// GetEditable returns the Editable field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetEditable() bool {
if o == nil || IsNil(o.Editable) {
var ret bool
return ret
}
return *o.Editable
}
// GetEditableOk returns a tuple with the Editable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetEditableOk() (*bool, bool) {
if o == nil || IsNil(o.Editable) {
return nil, false
}
return o.Editable, true
}
// HasEditable returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasEditable() bool {
if o != nil && !IsNil(o.Editable) {
return true
}
return false
}
// SetEditable gets a reference to the given bool and assigns it to the Editable field.
func (o *CreateSubmissionRequest) SetEditable(v bool) {
o.Editable = &v
}
// GetData returns the Data field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetData() map[string]interface{} {
if o == nil || IsNil(o.Data) {
var ret map[string]interface{}
return ret
}
return o.Data
}
// GetDataOk returns a tuple with the Data field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetDataOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Data) {
return map[string]interface{}{}, false
}
return o.Data, true
}
// HasData returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasData() bool {
if o != nil && !IsNil(o.Data) {
return true
}
return false
}
// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.
func (o *CreateSubmissionRequest) SetData(v map[string]interface{}) {
o.Data = v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetMetadata() map[string]interface{} {
if o == nil || IsNil(o.Metadata) {
var ret map[string]interface{}
return ret
}
return o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetMetadataOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Metadata) {
return map[string]interface{}{}, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasMetadata() bool {
if o != nil && !IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.
func (o *CreateSubmissionRequest) SetMetadata(v map[string]interface{}) {
o.Metadata = v
}
// GetPassword returns the Password field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetPassword() string {
if o == nil || IsNil(o.Password) {
var ret string
return ret
}
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetPasswordOk() (*string, bool) {
if o == nil || IsNil(o.Password) {
return nil, false
}
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasPassword() bool {
if o != nil && !IsNil(o.Password) {
return true
}
return false
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
func (o *CreateSubmissionRequest) SetPassword(v string) {
o.Password = &v
}
// GetOutputFormats returns the OutputFormats field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetOutputFormats() []OutputFormat {
if o == nil || IsNil(o.OutputFormats) {
var ret []OutputFormat
return ret
}
return o.OutputFormats
}
// GetOutputFormatsOk returns a tuple with the OutputFormats field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetOutputFormatsOk() ([]OutputFormat, bool) {
if o == nil || IsNil(o.OutputFormats) {
return nil, false
}
return o.OutputFormats, true
}
// HasOutputFormats returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasOutputFormats() bool {
if o != nil && !IsNil(o.OutputFormats) {
return true
}
return false
}
// SetOutputFormats gets a reference to the given []OutputFormat and assigns it to the OutputFormats field.
func (o *CreateSubmissionRequest) SetOutputFormats(v []OutputFormat) {
o.OutputFormats = v
}
// GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetExpiresIn() int32 {
if o == nil || IsNil(o.ExpiresIn) {
var ret int32
return ret
}
return *o.ExpiresIn
}
// GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetExpiresInOk() (*int32, bool) {
if o == nil || IsNil(o.ExpiresIn) {
return nil, false
}
return o.ExpiresIn, true
}
// HasExpiresIn returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasExpiresIn() bool {
if o != nil && !IsNil(o.ExpiresIn) {
return true
}
return false
}
// SetExpiresIn gets a reference to the given int32 and assigns it to the ExpiresIn field.
func (o *CreateSubmissionRequest) SetExpiresIn(v int32) {
o.ExpiresIn = &v
}
// GetFieldOverrides returns the FieldOverrides field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetFieldOverrides() map[string]FieldOverride {
if o == nil || IsNil(o.FieldOverrides) {
var ret map[string]FieldOverride
return ret
}
return o.FieldOverrides
}
// GetFieldOverridesOk returns a tuple with the FieldOverrides field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetFieldOverridesOk() (map[string]FieldOverride, bool) {
if o == nil || IsNil(o.FieldOverrides) {
return map[string]FieldOverride{}, false
}
return o.FieldOverrides, true
}
// HasFieldOverrides returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasFieldOverrides() bool {
if o != nil && !IsNil(o.FieldOverrides) {
return true
}
return false
}
// SetFieldOverrides gets a reference to the given map[string]FieldOverride and assigns it to the FieldOverrides field.
func (o *CreateSubmissionRequest) SetFieldOverrides(v map[string]FieldOverride) {
o.FieldOverrides = v
}
// GetHtml returns the Html field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetHtml() string {
if o == nil || IsNil(o.Html) {
var ret string
return ret
}
return *o.Html
}
// GetHtmlOk returns a tuple with the Html field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetHtmlOk() (*string, bool) {
if o == nil || IsNil(o.Html) {
return nil, false
}
return o.Html, true
}
// HasHtml returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasHtml() bool {
if o != nil && !IsNil(o.Html) {
return true
}
return false
}
// SetHtml gets a reference to the given string and assigns it to the Html field.
func (o *CreateSubmissionRequest) SetHtml(v string) {
o.Html = &v
}
// GetCss returns the Css field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetCss() string {
if o == nil || IsNil(o.Css) {
var ret string
return ret
}
return *o.Css
}
// GetCssOk returns a tuple with the Css field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetCssOk() (*string, bool) {
if o == nil || IsNil(o.Css) {
return nil, false
}
return o.Css, true
}
// HasCss returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasCss() bool {
if o != nil && !IsNil(o.Css) {
return true
}
return false
}
// SetCss gets a reference to the given string and assigns it to the Css field.
func (o *CreateSubmissionRequest) SetCss(v string) {
o.Css = &v
}
// GetSignatureRequests returns the SignatureRequests field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetSignatureRequests() []SignatureRequestInput {
if o == nil || IsNil(o.SignatureRequests) {
var ret []SignatureRequestInput
return ret
}
return o.SignatureRequests
}
// GetSignatureRequestsOk returns a tuple with the SignatureRequests field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetSignatureRequestsOk() ([]SignatureRequestInput, bool) {
if o == nil || IsNil(o.SignatureRequests) {
return nil, false
}
return o.SignatureRequests, true
}
// HasSignatureRequests returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasSignatureRequests() bool {
if o != nil && !IsNil(o.SignatureRequests) {
return true
}
return false
}
// SetSignatureRequests gets a reference to the given []SignatureRequestInput and assigns it to the SignatureRequests field.
func (o *CreateSubmissionRequest) SetSignatureRequests(v []SignatureRequestInput) {
o.SignatureRequests = v
}
// GetSendEmail returns the SendEmail field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetSendEmail() bool {
if o == nil || IsNil(o.SendEmail) {
var ret bool
return ret
}
return *o.SendEmail
}
// GetSendEmailOk returns a tuple with the SendEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetSendEmailOk() (*bool, bool) {
if o == nil || IsNil(o.SendEmail) {
return nil, false
}
return o.SendEmail, true
}
// HasSendEmail returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasSendEmail() bool {
if o != nil && !IsNil(o.SendEmail) {
return true
}
return false
}
// SetSendEmail gets a reference to the given bool and assigns it to the SendEmail field.
func (o *CreateSubmissionRequest) SetSendEmail(v bool) {
o.SendEmail = &v
}
// GetSigningOrder returns the SigningOrder field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetSigningOrder() SigningOrder {
if o == nil || IsNil(o.SigningOrder) {
var ret SigningOrder
return ret
}
return *o.SigningOrder
}
// GetSigningOrderOk returns a tuple with the SigningOrder field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetSigningOrderOk() (*SigningOrder, bool) {
if o == nil || IsNil(o.SigningOrder) {
return nil, false
}
return o.SigningOrder, true
}
// HasSigningOrder returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasSigningOrder() bool {
if o != nil && !IsNil(o.SigningOrder) {
return true
}
return false
}
// SetSigningOrder gets a reference to the given SigningOrder and assigns it to the SigningOrder field.
func (o *CreateSubmissionRequest) SetSigningOrder(v SigningOrder) {
o.SigningOrder = &v
}
// GetEmailSubject returns the EmailSubject field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetEmailSubject() string {
if o == nil || IsNil(o.EmailSubject) {
var ret string
return ret
}
return *o.EmailSubject
}
// GetEmailSubjectOk returns a tuple with the EmailSubject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetEmailSubjectOk() (*string, bool) {
if o == nil || IsNil(o.EmailSubject) {
return nil, false
}
return o.EmailSubject, true
}
// HasEmailSubject returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasEmailSubject() bool {
if o != nil && !IsNil(o.EmailSubject) {
return true
}
return false
}
// SetEmailSubject gets a reference to the given string and assigns it to the EmailSubject field.
func (o *CreateSubmissionRequest) SetEmailSubject(v string) {
o.EmailSubject = &v
}
// GetEmailMessage returns the EmailMessage field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetEmailMessage() string {
if o == nil || IsNil(o.EmailMessage) {
var ret string
return ret
}
return *o.EmailMessage
}
// GetEmailMessageOk returns a tuple with the EmailMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetEmailMessageOk() (*string, bool) {
if o == nil || IsNil(o.EmailMessage) {
return nil, false
}
return o.EmailMessage, true
}
// HasEmailMessage returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasEmailMessage() bool {
if o != nil && !IsNil(o.EmailMessage) {
return true
}
return false
}
// SetEmailMessage gets a reference to the given string and assigns it to the EmailMessage field.
func (o *CreateSubmissionRequest) SetEmailMessage(v string) {
o.EmailMessage = &v
}
// GetCc returns the Cc field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetCc() []string {
if o == nil || IsNil(o.Cc) {
var ret []string
return ret
}
return o.Cc
}
// GetCcOk returns a tuple with the Cc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetCcOk() ([]string, bool) {
if o == nil || IsNil(o.Cc) {
return nil, false
}
return o.Cc, true
}
// HasCc returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasCc() bool {
if o != nil && !IsNil(o.Cc) {
return true
}
return false
}
// SetCc gets a reference to the given []string and assigns it to the Cc field.
func (o *CreateSubmissionRequest) SetCc(v []string) {
o.Cc = v
}
// GetReplyTo returns the ReplyTo field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetReplyTo() string {
if o == nil || IsNil(o.ReplyTo) {
var ret string
return ret
}
return *o.ReplyTo
}
// GetReplyToOk returns a tuple with the ReplyTo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetReplyToOk() (*string, bool) {
if o == nil || IsNil(o.ReplyTo) {
return nil, false
}
return o.ReplyTo, true
}
// HasReplyTo returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasReplyTo() bool {
if o != nil && !IsNil(o.ReplyTo) {
return true
}
return false
}
// SetReplyTo gets a reference to the given string and assigns it to the ReplyTo field.
func (o *CreateSubmissionRequest) SetReplyTo(v string) {
o.ReplyTo = &v
}
// GetNotificationEmails returns the NotificationEmails field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetNotificationEmails() []string {
if o == nil || IsNil(o.NotificationEmails) {
var ret []string
return ret
}
return o.NotificationEmails
}
// GetNotificationEmailsOk returns a tuple with the NotificationEmails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetNotificationEmailsOk() ([]string, bool) {
if o == nil || IsNil(o.NotificationEmails) {
return nil, false
}
return o.NotificationEmails, true
}
// HasNotificationEmails returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasNotificationEmails() bool {
if o != nil && !IsNil(o.NotificationEmails) {
return true
}
return false
}
// SetNotificationEmails gets a reference to the given []string and assigns it to the NotificationEmails field.
func (o *CreateSubmissionRequest) SetNotificationEmails(v []string) {
o.NotificationEmails = v
}
// GetNotifyWhenSigned returns the NotifyWhenSigned field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetNotifyWhenSigned() bool {
if o == nil || IsNil(o.NotifyWhenSigned) {
var ret bool
return ret
}
return *o.NotifyWhenSigned
}
// GetNotifyWhenSignedOk returns a tuple with the NotifyWhenSigned field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetNotifyWhenSignedOk() (*bool, bool) {
if o == nil || IsNil(o.NotifyWhenSigned) {
return nil, false
}
return o.NotifyWhenSigned, true
}
// HasNotifyWhenSigned returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasNotifyWhenSigned() bool {
if o != nil && !IsNil(o.NotifyWhenSigned) {
return true
}
return false
}
// SetNotifyWhenSigned gets a reference to the given bool and assigns it to the NotifyWhenSigned field.
func (o *CreateSubmissionRequest) SetNotifyWhenSigned(v bool) {
o.NotifyWhenSigned = &v
}
// GetReminders returns the Reminders field value if set, zero value otherwise.
func (o *CreateSubmissionRequest) GetReminders() SignatureRequestReminders {
if o == nil || IsNil(o.Reminders) {
var ret SignatureRequestReminders
return ret
}
return *o.Reminders
}
// GetRemindersOk returns a tuple with the Reminders field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateSubmissionRequest) GetRemindersOk() (*SignatureRequestReminders, bool) {
if o == nil || IsNil(o.Reminders) {
return nil, false
}
return o.Reminders, true
}
// HasReminders returns a boolean if a field has been set.
func (o *CreateSubmissionRequest) HasReminders() bool {
if o != nil && !IsNil(o.Reminders) {
return true
}
return false
}
// SetReminders gets a reference to the given SignatureRequestReminders and assigns it to the Reminders field.
func (o *CreateSubmissionRequest) SetReminders(v SignatureRequestReminders) {
o.Reminders = &v
}
func (o CreateSubmissionRequest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CreateSubmissionRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Test) {
toSerialize["test"] = o.Test
}
if !IsNil(o.Editable) {
toSerialize["editable"] = o.Editable
}
if !IsNil(o.Data) {
toSerialize["data"] = o.Data
}
if !IsNil(o.Metadata) {
toSerialize["metadata"] = o.Metadata
}
if !IsNil(o.Password) {
toSerialize["password"] = o.Password
}
if !IsNil(o.OutputFormats) {
toSerialize["output_formats"] = o.OutputFormats
}
if !IsNil(o.ExpiresIn) {
toSerialize["expires_in"] = o.ExpiresIn
}
if !IsNil(o.FieldOverrides) {
toSerialize["field_overrides"] = o.FieldOverrides
}
if !IsNil(o.Html) {
toSerialize["html"] = o.Html
}
if !IsNil(o.Css) {
toSerialize["css"] = o.Css
}
if !IsNil(o.SignatureRequests) {
toSerialize["signature_requests"] = o.SignatureRequests
}
if !IsNil(o.SendEmail) {
toSerialize["send_email"] = o.SendEmail
}
if !IsNil(o.SigningOrder) {
toSerialize["signing_order"] = o.SigningOrder
}
if !IsNil(o.EmailSubject) {
toSerialize["email_subject"] = o.EmailSubject
}
if !IsNil(o.EmailMessage) {
toSerialize["email_message"] = o.EmailMessage
}
if !IsNil(o.Cc) {
toSerialize["cc"] = o.Cc
}
if !IsNil(o.ReplyTo) {
toSerialize["reply_to"] = o.ReplyTo
}
if !IsNil(o.NotificationEmails) {
toSerialize["notification_emails"] = o.NotificationEmails
}
if !IsNil(o.NotifyWhenSigned) {
toSerialize["notify_when_signed"] = o.NotifyWhenSigned
}
if !IsNil(o.Reminders) {
toSerialize["reminders"] = o.Reminders
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *CreateSubmissionRequest) UnmarshalJSON(data []byte) (err error) {
varCreateSubmissionRequest := _CreateSubmissionRequest{}
err = json.Unmarshal(data, &varCreateSubmissionRequest)
if err != nil {
return err
}
*o = CreateSubmissionRequest(varCreateSubmissionRequest)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "test")
delete(additionalProperties, "editable")
delete(additionalProperties, "data")
delete(additionalProperties, "metadata")
delete(additionalProperties, "password")
delete(additionalProperties, "output_formats")
delete(additionalProperties, "expires_in")
delete(additionalProperties, "field_overrides")
delete(additionalProperties, "html")
delete(additionalProperties, "css")
delete(additionalProperties, "signature_requests")
delete(additionalProperties, "send_email")
delete(additionalProperties, "signing_order")
delete(additionalProperties, "email_subject")
delete(additionalProperties, "email_message")
delete(additionalProperties, "cc")
delete(additionalProperties, "reply_to")
delete(additionalProperties, "notification_emails")
delete(additionalProperties, "notify_when_signed")
delete(additionalProperties, "reminders")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableCreateSubmissionRequest struct {
value *CreateSubmissionRequest
isSet bool
}
func (v NullableCreateSubmissionRequest) Get() *CreateSubmissionRequest {
return v.value
}
func (v *NullableCreateSubmissionRequest) Set(val *CreateSubmissionRequest) {
v.value = val
v.isSet = true
}
func (v NullableCreateSubmissionRequest) IsSet() bool {
return v.isSet
}
func (v *NullableCreateSubmissionRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCreateSubmissionRequest(val *CreateSubmissionRequest) *NullableCreateSubmissionRequest {
return &NullableCreateSubmissionRequest{value: val, isSet: true}
}
func (v NullableCreateSubmissionRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCreateSubmissionRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}