docspring 4.3.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +80 -0
- data/.openapi-generator/FILES +90 -0
- data/AGENTS.md +2 -0
- data/CHANGELOG.md +70 -0
- data/Gemfile.lock +10 -10
- data/LICENSE +1 -1
- data/README.md +23 -1
- data/docs/AddTemplateFieldsRequest.md +1 -1
- data/docs/Client.md +2313 -766
- data/docs/CombinedPdfSource.md +1 -1
- data/docs/CreateAccountEmailActionRequest.md +54 -0
- data/docs/CreateEmailActionRequest.md +50 -0
- data/docs/CreateEmailDomainRequest.md +18 -0
- data/docs/CreateSubmissionBatchRequest.md +2 -2
- data/docs/CreateSubmissionRequest.md +24 -6
- data/docs/CreateTemplateRequest.md +32 -8
- data/docs/DnsRecordType.md +15 -0
- data/docs/EmailAction.md +76 -0
- data/docs/EmailActionConditions.md +20 -0
- data/docs/EmailActionConditionsInput.md +20 -0
- data/docs/EmailActionCustomization.md +36 -0
- data/docs/EmailActionDelivery.md +15 -0
- data/docs/EmailActionFileFormats.md +15 -0
- data/docs/EmailActionList.md +20 -0
- data/docs/EmailActionSetting.md +15 -0
- data/docs/EmailActionSubmissionType.md +15 -0
- data/docs/EmailActionTestEmail.md +18 -0
- data/docs/EmailDomain.md +38 -0
- data/docs/EmailDomainDnsRecord.md +24 -0
- data/docs/EmailDomainDnsRecordPurpose.md +15 -0
- data/docs/EmailDomainList.md +20 -0
- data/docs/EmailDomainRecordState.md +15 -0
- data/docs/EmailDomainState.md +15 -0
- data/docs/ErrorInfo.md +16 -6
- data/docs/Field.md +1 -1
- data/docs/FieldInput.md +1 -1
- data/docs/HtmlEngineOptions.md +5 -5
- data/docs/HtmlEngineOptionsInput.md +5 -5
- data/docs/SendAccountEmailActionTestEmailRequest.md +18 -0
- data/docs/SignatureRequest.md +9 -1
- data/docs/SignatureRequestEmailAttachments.md +15 -0
- data/docs/SignatureRequestEmailStatus.md +15 -0
- data/docs/SignatureRequestInput.md +7 -3
- data/docs/SignatureRequestReminders.md +20 -0
- data/docs/SigningOrder.md +15 -0
- data/docs/Submission.md +4 -2
- data/docs/SubmissionAction.md +5 -3
- data/docs/SubmissionInput.md +4 -4
- data/docs/SubmissionSummary.md +1 -1
- data/docs/Template.md +32 -8
- data/docs/TemplateFormSection.md +24 -0
- data/docs/TemplateFormSectionInput.md +24 -0
- data/docs/TemplateSourcePdf.md +1 -1
- data/docs/TemplateSummary.md +4 -4
- data/docs/UpdateAccountEmailActionRequest.md +54 -0
- data/docs/UpdateEmailActionCustomizationRequest.md +46 -0
- data/docs/UpdateEmailActionRequest.md +50 -0
- data/docs/UpdateTemplateDocumentRequest.md +1 -1
- data/docs/UpdateTemplateRequest.md +30 -6
- data/docs/ValidateSubmissionRequest.md +24 -6
- data/lib/docspring/api/client.rb +1752 -314
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/add_template_fields_request.rb +1 -1
- data/lib/docspring/models/combined_pdf_source.rb +1 -1
- data/lib/docspring/models/create_account_email_action_request.rb +388 -0
- data/lib/docspring/models/create_email_action_request.rb +364 -0
- data/lib/docspring/models/create_email_domain_request.rb +185 -0
- data/lib/docspring/models/create_submission_batch_request.rb +2 -2
- data/lib/docspring/models/create_submission_request.rb +145 -9
- data/lib/docspring/models/create_template_request.rb +153 -11
- data/lib/docspring/models/dns_record_type.rb +42 -0
- data/lib/docspring/models/email_action.rb +790 -0
- data/lib/docspring/models/email_action_conditions.rb +219 -0
- data/lib/docspring/models/email_action_conditions_input.rb +219 -0
- data/lib/docspring/models/email_action_customization.rb +360 -0
- data/lib/docspring/models/email_action_delivery.rb +41 -0
- data/lib/docspring/models/email_action_file_formats.rb +43 -0
- data/lib/docspring/models/email_action_list.rb +200 -0
- data/lib/docspring/models/email_action_setting.rb +53 -0
- data/lib/docspring/models/email_action_submission_type.rb +42 -0
- data/lib/docspring/models/email_action_test_email.rb +185 -0
- data/lib/docspring/models/email_domain.rb +423 -0
- data/lib/docspring/models/email_domain_dns_record.rb +288 -0
- data/lib/docspring/models/email_domain_dns_record_purpose.rb +42 -0
- data/lib/docspring/models/email_domain_list.rb +200 -0
- data/lib/docspring/models/email_domain_record_state.rb +42 -0
- data/lib/docspring/models/email_domain_state.rb +42 -0
- data/lib/docspring/models/error_code.rb +3 -1
- data/lib/docspring/models/error_info.rb +59 -9
- data/lib/docspring/models/field.rb +1 -1
- data/lib/docspring/models/field_input.rb +1 -1
- data/lib/docspring/models/html_engine_options.rb +5 -5
- data/lib/docspring/models/html_engine_options_input.rb +5 -5
- data/lib/docspring/models/send_account_email_action_test_email_request.rb +168 -0
- data/lib/docspring/models/signature_request.rb +68 -2
- data/lib/docspring/models/signature_request_email_attachments.rb +41 -0
- data/lib/docspring/models/signature_request_email_status.rb +47 -0
- data/lib/docspring/models/signature_request_event_type.rb +3 -1
- data/lib/docspring/models/signature_request_input.rb +25 -22
- data/lib/docspring/models/signature_request_reminders.rb +212 -0
- data/lib/docspring/models/signing_order.rb +41 -0
- data/lib/docspring/models/string_condition_type.rb +8 -1
- data/lib/docspring/models/submission.rb +30 -3
- data/lib/docspring/models/submission_action.rb +18 -5
- data/lib/docspring/models/submission_input.rb +4 -4
- data/lib/docspring/models/submission_summary.rb +1 -1
- data/lib/docspring/models/template.rb +227 -9
- data/lib/docspring/models/template_form_section.rb +254 -0
- data/lib/docspring/models/template_form_section_input.rb +252 -0
- data/lib/docspring/models/template_source_pdf.rb +1 -1
- data/lib/docspring/models/template_summary.rb +4 -4
- data/lib/docspring/models/template_type.rb +2 -1
- data/lib/docspring/models/update_account_email_action_request.rb +388 -0
- data/lib/docspring/models/update_email_action_customization_request.rb +343 -0
- data/lib/docspring/models/update_email_action_request.rb +364 -0
- data/lib/docspring/models/update_template_document_request.rb +1 -1
- data/lib/docspring/models/update_template_request.rb +153 -9
- data/lib/docspring/models/validate_submission_request.rb +145 -9
- data/lib/docspring/models/webhook_event_type.rb +3 -1
- data/lib/docspring/request_schemas.json +1708 -88
- data/lib/docspring/request_validator.rb +4 -0
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +30 -0
- data/spec/api/client_spec.rb +307 -18
- data/spec/models/create_account_email_action_request_spec.rb +144 -0
- data/spec/models/create_email_action_request_spec.rb +132 -0
- data/spec/models/create_email_domain_request_spec.rb +36 -0
- data/spec/models/create_submission_request_spec.rb +54 -0
- data/spec/models/create_template_request_spec.rb +72 -0
- data/spec/models/dns_record_type_spec.rb +30 -0
- data/spec/models/email_action_conditions_input_spec.rb +42 -0
- data/spec/models/email_action_conditions_spec.rb +42 -0
- data/spec/models/email_action_customization_spec.rb +90 -0
- data/spec/models/email_action_delivery_spec.rb +30 -0
- data/spec/models/email_action_file_formats_spec.rb +30 -0
- data/spec/models/email_action_list_spec.rb +42 -0
- data/spec/models/email_action_setting_spec.rb +30 -0
- data/spec/models/email_action_spec.rb +210 -0
- data/spec/models/email_action_submission_type_spec.rb +30 -0
- data/spec/models/email_action_test_email_spec.rb +36 -0
- data/spec/models/email_domain_dns_record_purpose_spec.rb +30 -0
- data/spec/models/email_domain_dns_record_spec.rb +54 -0
- data/spec/models/email_domain_list_spec.rb +42 -0
- data/spec/models/email_domain_record_state_spec.rb +30 -0
- data/spec/models/email_domain_spec.rb +96 -0
- data/spec/models/email_domain_state_spec.rb +30 -0
- data/spec/models/error_info_spec.rb +30 -0
- data/spec/models/send_account_email_action_test_email_request_spec.rb +36 -0
- data/spec/models/signature_request_email_attachments_spec.rb +30 -0
- data/spec/models/signature_request_email_status_spec.rb +30 -0
- data/spec/models/signature_request_input_spec.rb +12 -0
- data/spec/models/signature_request_reminders_spec.rb +42 -0
- data/spec/models/signature_request_spec.rb +24 -0
- data/spec/models/signing_order_spec.rb +30 -0
- data/spec/models/submission_action_spec.rb +6 -0
- data/spec/models/submission_spec.rb +6 -0
- data/spec/models/template_form_section_input_spec.rb +54 -0
- data/spec/models/template_form_section_spec.rb +54 -0
- data/spec/models/template_spec.rb +72 -0
- data/spec/models/update_account_email_action_request_spec.rb +144 -0
- data/spec/models/update_email_action_customization_request_spec.rb +120 -0
- data/spec/models/update_email_action_request_spec.rb +132 -0
- data/spec/models/update_template_request_spec.rb +72 -0
- data/spec/models/validate_submission_request_spec.rb +54 -0
- metadata +123 -4
- data/.gitlab-ci.yml +0 -26
- data/.travis.yml +0 -11
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DocSpring API
|
|
3
|
+
|
|
4
|
+
#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.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v2
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0-DOCSPRING
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DocSpring
|
|
17
|
+
# A section of the template's web form, with its fields in order.
|
|
18
|
+
class TemplateFormSectionInput < ApiModelBase
|
|
19
|
+
# The section's ID, unique among the template's sections. Any string you choose.
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# The section's heading on the web form.
|
|
23
|
+
attr_accessor :title
|
|
24
|
+
|
|
25
|
+
# Text shown under the section's heading. Null for none.
|
|
26
|
+
attr_accessor :description
|
|
27
|
+
|
|
28
|
+
# The IDs of the section's fields (Field's `id`), in the order the web form shows them. A field can be in one section only.
|
|
29
|
+
attr_accessor :field_ids
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'id' => :'id',
|
|
35
|
+
:'title' => :'title',
|
|
36
|
+
:'description' => :'description',
|
|
37
|
+
:'field_ids' => :'field_ids'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns attribute mapping this model knows about
|
|
42
|
+
def self.acceptable_attribute_map
|
|
43
|
+
attribute_map
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
|
47
|
+
def self.acceptable_attributes
|
|
48
|
+
acceptable_attribute_map.values
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.openapi_types
|
|
53
|
+
{
|
|
54
|
+
:'id' => :'String',
|
|
55
|
+
:'title' => :'String',
|
|
56
|
+
:'description' => :'String',
|
|
57
|
+
:'field_ids' => :'Array<Integer>'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# List of attributes with nullable: true
|
|
62
|
+
def self.openapi_nullable
|
|
63
|
+
Set.new([
|
|
64
|
+
:'description',
|
|
65
|
+
])
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns attribute type mapping
|
|
69
|
+
def self.acceptable_openapi_types
|
|
70
|
+
openapi_types
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns the nullable attributes
|
|
74
|
+
def self.acceptable_openapi_nullable
|
|
75
|
+
openapi_nullable
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Initializes the object
|
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
80
|
+
def initialize(attributes = {})
|
|
81
|
+
if (!attributes.is_a?(Hash))
|
|
82
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::TemplateFormSectionInput` initialize method"
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::TemplateFormSectionInput`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
|
+
end
|
|
91
|
+
h[k.to_sym] = v
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'id')
|
|
95
|
+
self.id = attributes[:'id']
|
|
96
|
+
else
|
|
97
|
+
self.id = nil
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'title')
|
|
101
|
+
self.title = attributes[:'title']
|
|
102
|
+
else
|
|
103
|
+
self.title = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'description')
|
|
107
|
+
self.description = attributes[:'description']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'field_ids')
|
|
111
|
+
if (value = attributes[:'field_ids']).is_a?(Array)
|
|
112
|
+
self.field_ids = value
|
|
113
|
+
end
|
|
114
|
+
else
|
|
115
|
+
self.field_ids = nil
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
120
|
+
# @return Array for valid properties with the reasons
|
|
121
|
+
def list_invalid_properties
|
|
122
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
|
+
invalid_properties = Array.new
|
|
124
|
+
if @id.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if @title.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @field_ids.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "field_ids", field_ids cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
invalid_properties
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Check to see if the all the properties in the model are valid
|
|
140
|
+
# @return true if the model is valid
|
|
141
|
+
def valid?
|
|
142
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
|
+
return false if @id.nil?
|
|
144
|
+
return false if @title.nil?
|
|
145
|
+
return false if @field_ids.nil?
|
|
146
|
+
true
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param [Object] id Value to be assigned
|
|
151
|
+
def id=(id)
|
|
152
|
+
if id.nil?
|
|
153
|
+
fail ArgumentError, 'id cannot be nil'
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
@id = id
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Custom attribute writer method with validation
|
|
160
|
+
# @param [Object] title Value to be assigned
|
|
161
|
+
def title=(title)
|
|
162
|
+
if title.nil?
|
|
163
|
+
fail ArgumentError, 'title cannot be nil'
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
@title = title
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Custom attribute writer method with validation
|
|
170
|
+
# @param [Object] field_ids Value to be assigned
|
|
171
|
+
def field_ids=(field_ids)
|
|
172
|
+
if field_ids.nil?
|
|
173
|
+
fail ArgumentError, 'field_ids cannot be nil'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
@field_ids = field_ids
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Checks equality by comparing each attribute.
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def ==(o)
|
|
182
|
+
return true if self.equal?(o)
|
|
183
|
+
self.class == o.class &&
|
|
184
|
+
id == o.id &&
|
|
185
|
+
title == o.title &&
|
|
186
|
+
description == o.description &&
|
|
187
|
+
field_ids == o.field_ids
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# @see the `==` method
|
|
191
|
+
# @param [Object] Object to be compared
|
|
192
|
+
def eql?(o)
|
|
193
|
+
self == o
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Calculates hash code according to all attributes.
|
|
197
|
+
# @return [Integer] Hash code
|
|
198
|
+
def hash
|
|
199
|
+
[id, title, description, field_ids].hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Builds the object from hash
|
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
204
|
+
# @return [Object] Returns the model itself
|
|
205
|
+
def self.build_from_hash(attributes)
|
|
206
|
+
return nil unless attributes.is_a?(Hash)
|
|
207
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
208
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
209
|
+
map = acceptable_attribute_map
|
|
210
|
+
transformed_hash = {}
|
|
211
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
212
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
213
|
+
transformed_hash["#{key}"] = nil
|
|
214
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
215
|
+
# check to ensure the input is an array given that the attribute
|
|
216
|
+
# is documented as an array but the input is not
|
|
217
|
+
if attributes[map[key]].is_a?(Array)
|
|
218
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
219
|
+
end
|
|
220
|
+
elsif !attributes[map[key]].nil?
|
|
221
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
# Responses can include enum values added after this client was released, so the enum setters
|
|
225
|
+
# accept any value while the model is built from a response
|
|
226
|
+
allocate.tap do |model|
|
|
227
|
+
model.instance_variable_set(:@_skip_enum_validation, true)
|
|
228
|
+
model.send(:initialize, transformed_hash)
|
|
229
|
+
model.remove_instance_variable(:@_skip_enum_validation)
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the object in the form of hash
|
|
234
|
+
# @return [Hash] Returns the object in the form of hash
|
|
235
|
+
def to_hash
|
|
236
|
+
hash = {}
|
|
237
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
238
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
239
|
+
value = self.send(attr)
|
|
240
|
+
if value.nil?
|
|
241
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
end
|
|
@@ -22,7 +22,7 @@ module DocSpring
|
|
|
22
22
|
# The ID of the submission, combined PDF, template or custom file.
|
|
23
23
|
attr_accessor :id
|
|
24
24
|
|
|
25
|
-
# For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest`
|
|
25
|
+
# For a `template` source, the version to use: a published version (`1.2.0`, or `1` for the latest 1.x.x), `latest` (the newest published version, or the draft when none has been published) or `draft`. Default `latest`.
|
|
26
26
|
attr_accessor :template_version
|
|
27
27
|
|
|
28
28
|
# For a `template` source: true (the default) merges the template's processed PDF, which is the PDF submissions are filled in on (decrypted, with its form fields removed). false merges the PDF as it was uploaded.
|
|
@@ -25,16 +25,16 @@ module DocSpring
|
|
|
25
25
|
# 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.
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
-
# `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.
|
|
28
|
+
# `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. `page_designer`: a page design, a PDF laid out in the Page Designer from its `layout`. It can't be changed after the template is created.
|
|
29
29
|
attr_accessor :template_type
|
|
30
30
|
|
|
31
|
-
# 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;
|
|
31
|
+
# 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; other templates always make PDFs. A Word template that encrypts its PDFs makes PDFs, because Word documents and OpenDocument files can't be password-protected.
|
|
32
32
|
attr_accessor :output_format
|
|
33
33
|
|
|
34
|
-
# Whether the template can make documents. HTML templates are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
34
|
+
# Whether the template can make documents. HTML templates and page designs are always ready. A PDF template is ready once DocSpring has stored its PDF, made an image of each page and finished looking for fields on each page, which can be after `document.state` becomes `processed`. A PDF template with no PDF (`document` is null) isn't ready. A Word template is ready once it has a Word document (a `document_url`'s has been downloaded).
|
|
35
35
|
attr_accessor :ready
|
|
36
36
|
|
|
37
|
-
# The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
37
|
+
# The PDF of a PDF template, or the Word document of a Word template: its file name, page count and processing state. Null for HTML templates and page designs, and for a PDF template that has no PDF yet. A template created from a `document_url`, or a Word template created from an OpenDocument file (.odt), has one, with no file, while it's downloaded or converted.
|
|
38
38
|
attr_accessor :document
|
|
39
39
|
|
|
40
40
|
# 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.
|
|
@@ -18,9 +18,10 @@ module DocSpring
|
|
|
18
18
|
PDF = "pdf".freeze
|
|
19
19
|
HTML = "html".freeze
|
|
20
20
|
DOCX = "docx".freeze
|
|
21
|
+
PAGE_DESIGNER = "page_designer".freeze
|
|
21
22
|
|
|
22
23
|
def self.all_vars
|
|
23
|
-
@all_vars ||= [PDF, HTML, DOCX].freeze
|
|
24
|
+
@all_vars ||= [PDF, HTML, DOCX, PAGE_DESIGNER].freeze
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# Builds the enum from string
|
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DocSpring API
|
|
3
|
+
|
|
4
|
+
#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.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v2
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0-DOCSPRING
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DocSpring
|
|
17
|
+
# The settings to change. Properties left out keep their values.
|
|
18
|
+
class UpdateAccountEmailActionRequest < ApiModelBase
|
|
19
|
+
# For an account email action: the IDs of the templates it sends for. With `folder_ids`, it sends for a template that either list includes. Both empty sends for every template. Always empty for a template's own email action.
|
|
20
|
+
attr_accessor :template_ids
|
|
21
|
+
|
|
22
|
+
# For an account email action: the IDs of folders whose templates it sends for, including the templates in the folders inside them. Always empty for a template's own email action.
|
|
23
|
+
attr_accessor :folder_ids
|
|
24
|
+
|
|
25
|
+
# A name for the email action, shown in the dashboard. Null shows its recipients instead.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# Whether it sends emails. DocSpring turns an email action off after 3 days of failed emails, or straight away when one of the addresses in `to`, `cc` or `bcc` (not one from a field or metadata) bounces or marks an email as spam.
|
|
29
|
+
attr_accessor :enabled
|
|
30
|
+
|
|
31
|
+
# Who gets each email: email addresses, and tags for an address that each submission gives, from one of the template's text or email fields (`{{ data.client_email }}`, or `{{ data["client email"] }}` for a name with spaces) or from its metadata (`{{ metadata.agent_email }}`, or `{{ metadata.agent.email }}` for a value in an object). A tag whose value is blank or isn't a valid address is skipped for that submission, and so is a field an account email action names that the template doesn't have. `{{ signer.email }}` sends each of the submission's signers their own email, to them alone, and everyone else in `to`, `cc` and `bcc` one email together, without the signers. An email needs at least one entry in `to`, `cc` or `bcc`, and at most 10 across them.
|
|
32
|
+
attr_accessor :to
|
|
33
|
+
|
|
34
|
+
# Who is copied on each email, as in `to` (but not `{{ signer.email }}`).
|
|
35
|
+
attr_accessor :cc
|
|
36
|
+
|
|
37
|
+
# Who is blind-copied on each email, as in `to` (but not `{{ signer.email }}`).
|
|
38
|
+
attr_accessor :bcc
|
|
39
|
+
|
|
40
|
+
# The sender's name. Null uses your account's name. From DocSpring's shared address, the name is followed by "via DocSpring".
|
|
41
|
+
attr_accessor :from_name
|
|
42
|
+
|
|
43
|
+
# The sender's address, at one of your verified email domains. Null sends from DocSpring's shared address.
|
|
44
|
+
attr_accessor :from_address
|
|
45
|
+
|
|
46
|
+
# Where replies go: a team member's email address, or an address at one of your verified email domains. Null sends without a reply address.
|
|
47
|
+
attr_accessor :reply_to
|
|
48
|
+
|
|
49
|
+
# The subject line, a Liquid template with the variables `account.name`, `template.name`, `template.id`, `submission.id`, the submission's values as `data.<field name>` (`data["field name"]` for a name with spaces) and its metadata as `metadata.<key>`, such as `Your {{ template.name }}`. Null uses the template's name followed by the file it sends, such as "Lease PDF", or by "files" when it sends several.
|
|
50
|
+
attr_accessor :subject
|
|
51
|
+
|
|
52
|
+
# The email's text, a Liquid template with the same variables as `subject`. `if`, `unless` and `case` tags work. Line breaks are kept. Null uses a short message that says the files are attached or ready to download.
|
|
53
|
+
attr_accessor :message
|
|
54
|
+
|
|
55
|
+
# The attached files' name, a Liquid template with the same variables as `subject`, such as `{{ data.last_name }} lease`. Each file's extension (`.pdf`, `.docx` or `.odt`) is added. Null uses the submission's `pdf_filename` metadata when it has one, and otherwise the template's name. A download link's files have the names their other downloads have: the submission's `pdf_filename`, or its ID.
|
|
56
|
+
attr_accessor :file_name
|
|
57
|
+
|
|
58
|
+
# Which of the submission's files the email sends: `all` sends every file the submission made (its PDF, and a Word template's Word document and OpenDocument file when it made them), and `docx`, `odt` or `pdf` sends only that file. A submission that made none of them sends nothing, and its email shows as skipped. Only Word templates make Word documents and OpenDocument files, so another template's email action takes `pdf` or `all`.
|
|
59
|
+
attr_accessor :file_formats
|
|
60
|
+
|
|
61
|
+
# `attachment` attaches the files, or sends a download link when together they're larger than `max_attachment_mb`. `link` sends a download link, which works for 7 days. Accounts with a BAA start with `link`.
|
|
62
|
+
attr_accessor :delivery
|
|
63
|
+
|
|
64
|
+
# With `delivery` `attachment`, files larger than this many megabytes in all (1 MB is 1,000,000 bytes) are sent as a download link instead. Emailing a file makes it about 38% larger, and many company mail servers refuse emails over 10 MB, so the default is 7. Raise it only when every recipient's mail server accepts larger emails, such as Microsoft 365 (up to 36 MB) or Gmail (50 MB).
|
|
65
|
+
attr_accessor :max_attachment_mb
|
|
66
|
+
|
|
67
|
+
# Which submissions send emails: `live`, `test` or `all`. Test submissions only email your team's members, and skip every other recipient.
|
|
68
|
+
attr_accessor :submission_type
|
|
69
|
+
|
|
70
|
+
# Sends the email only when the submission's values meet these conditions, which work as a conditional logic rule's do. The values are the ones the PDF has: formulas worked out, and blank for a field that a rule hides. A field the template doesn't have (in an account email action's conditions) counts as blank. A submission that doesn't meet them sends nothing, and its email shows as skipped. Null sends for every submission.
|
|
71
|
+
attr_accessor :send_when
|
|
72
|
+
|
|
73
|
+
# Whether the account's owner gets an email when the email action's emails keep failing.
|
|
74
|
+
attr_accessor :failure_notifications_enabled
|
|
75
|
+
|
|
76
|
+
class EnumAttributeValidator
|
|
77
|
+
attr_reader :datatype
|
|
78
|
+
attr_reader :allowable_values
|
|
79
|
+
|
|
80
|
+
def initialize(datatype, allowable_values)
|
|
81
|
+
@allowable_values = allowable_values.map do |value|
|
|
82
|
+
case datatype.to_s
|
|
83
|
+
when /Integer/i
|
|
84
|
+
value.to_i
|
|
85
|
+
when /Float/i
|
|
86
|
+
value.to_f
|
|
87
|
+
else
|
|
88
|
+
value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def valid?(value)
|
|
94
|
+
!value || allowable_values.include?(value)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
99
|
+
def self.attribute_map
|
|
100
|
+
{
|
|
101
|
+
:'template_ids' => :'template_ids',
|
|
102
|
+
:'folder_ids' => :'folder_ids',
|
|
103
|
+
:'name' => :'name',
|
|
104
|
+
:'enabled' => :'enabled',
|
|
105
|
+
:'to' => :'to',
|
|
106
|
+
:'cc' => :'cc',
|
|
107
|
+
:'bcc' => :'bcc',
|
|
108
|
+
:'from_name' => :'from_name',
|
|
109
|
+
:'from_address' => :'from_address',
|
|
110
|
+
:'reply_to' => :'reply_to',
|
|
111
|
+
:'subject' => :'subject',
|
|
112
|
+
:'message' => :'message',
|
|
113
|
+
:'file_name' => :'file_name',
|
|
114
|
+
:'file_formats' => :'file_formats',
|
|
115
|
+
:'delivery' => :'delivery',
|
|
116
|
+
:'max_attachment_mb' => :'max_attachment_mb',
|
|
117
|
+
:'submission_type' => :'submission_type',
|
|
118
|
+
:'send_when' => :'send_when',
|
|
119
|
+
:'failure_notifications_enabled' => :'failure_notifications_enabled'
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Returns attribute mapping this model knows about
|
|
124
|
+
def self.acceptable_attribute_map
|
|
125
|
+
attribute_map
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Returns all the JSON keys this model knows about
|
|
129
|
+
def self.acceptable_attributes
|
|
130
|
+
acceptable_attribute_map.values
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Attribute type mapping.
|
|
134
|
+
def self.openapi_types
|
|
135
|
+
{
|
|
136
|
+
:'template_ids' => :'Array<String>',
|
|
137
|
+
:'folder_ids' => :'Array<String>',
|
|
138
|
+
:'name' => :'String',
|
|
139
|
+
:'enabled' => :'Boolean',
|
|
140
|
+
:'to' => :'Array<String>',
|
|
141
|
+
:'cc' => :'Array<String>',
|
|
142
|
+
:'bcc' => :'Array<String>',
|
|
143
|
+
:'from_name' => :'String',
|
|
144
|
+
:'from_address' => :'String',
|
|
145
|
+
:'reply_to' => :'String',
|
|
146
|
+
:'subject' => :'String',
|
|
147
|
+
:'message' => :'String',
|
|
148
|
+
:'file_name' => :'String',
|
|
149
|
+
:'file_formats' => :'EmailActionFileFormats',
|
|
150
|
+
:'delivery' => :'EmailActionDelivery',
|
|
151
|
+
:'max_attachment_mb' => :'Integer',
|
|
152
|
+
:'submission_type' => :'EmailActionSubmissionType',
|
|
153
|
+
:'send_when' => :'EmailActionConditionsInput',
|
|
154
|
+
:'failure_notifications_enabled' => :'Boolean'
|
|
155
|
+
}
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# List of attributes with nullable: true
|
|
159
|
+
def self.openapi_nullable
|
|
160
|
+
Set.new([
|
|
161
|
+
:'name',
|
|
162
|
+
:'from_name',
|
|
163
|
+
:'from_address',
|
|
164
|
+
:'reply_to',
|
|
165
|
+
:'subject',
|
|
166
|
+
:'message',
|
|
167
|
+
:'file_name',
|
|
168
|
+
:'send_when',
|
|
169
|
+
])
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns attribute type mapping
|
|
173
|
+
def self.acceptable_openapi_types
|
|
174
|
+
openapi_types
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Returns the nullable attributes
|
|
178
|
+
def self.acceptable_openapi_nullable
|
|
179
|
+
openapi_nullable
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Initializes the object
|
|
183
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
184
|
+
def initialize(attributes = {})
|
|
185
|
+
if (!attributes.is_a?(Hash))
|
|
186
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::UpdateAccountEmailActionRequest` initialize method"
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
190
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
191
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
192
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
193
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::UpdateAccountEmailActionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
194
|
+
end
|
|
195
|
+
h[k.to_sym] = v
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'template_ids')
|
|
199
|
+
if (value = attributes[:'template_ids']).is_a?(Array)
|
|
200
|
+
self.template_ids = value
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'folder_ids')
|
|
205
|
+
if (value = attributes[:'folder_ids']).is_a?(Array)
|
|
206
|
+
self.folder_ids = value
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'name')
|
|
211
|
+
self.name = attributes[:'name']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'enabled')
|
|
215
|
+
self.enabled = attributes[:'enabled']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'to')
|
|
219
|
+
if (value = attributes[:'to']).is_a?(Array)
|
|
220
|
+
self.to = value
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'cc')
|
|
225
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
|
226
|
+
self.cc = value
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'bcc')
|
|
231
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
|
232
|
+
self.bcc = value
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'from_name')
|
|
237
|
+
self.from_name = attributes[:'from_name']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'from_address')
|
|
241
|
+
self.from_address = attributes[:'from_address']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'reply_to')
|
|
245
|
+
self.reply_to = attributes[:'reply_to']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'subject')
|
|
249
|
+
self.subject = attributes[:'subject']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'message')
|
|
253
|
+
self.message = attributes[:'message']
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if attributes.key?(:'file_name')
|
|
257
|
+
self.file_name = attributes[:'file_name']
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.key?(:'file_formats')
|
|
261
|
+
self.file_formats = attributes[:'file_formats']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.key?(:'delivery')
|
|
265
|
+
self.delivery = attributes[:'delivery']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.key?(:'max_attachment_mb')
|
|
269
|
+
self.max_attachment_mb = attributes[:'max_attachment_mb']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'submission_type')
|
|
273
|
+
self.submission_type = attributes[:'submission_type']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'send_when')
|
|
277
|
+
self.send_when = attributes[:'send_when']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'failure_notifications_enabled')
|
|
281
|
+
self.failure_notifications_enabled = attributes[:'failure_notifications_enabled']
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
286
|
+
# @return Array for valid properties with the reasons
|
|
287
|
+
def list_invalid_properties
|
|
288
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
289
|
+
invalid_properties = Array.new
|
|
290
|
+
invalid_properties
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Check to see if the all the properties in the model are valid
|
|
294
|
+
# @return true if the model is valid
|
|
295
|
+
def valid?
|
|
296
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
297
|
+
true
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Checks equality by comparing each attribute.
|
|
301
|
+
# @param [Object] Object to be compared
|
|
302
|
+
def ==(o)
|
|
303
|
+
return true if self.equal?(o)
|
|
304
|
+
self.class == o.class &&
|
|
305
|
+
template_ids == o.template_ids &&
|
|
306
|
+
folder_ids == o.folder_ids &&
|
|
307
|
+
name == o.name &&
|
|
308
|
+
enabled == o.enabled &&
|
|
309
|
+
to == o.to &&
|
|
310
|
+
cc == o.cc &&
|
|
311
|
+
bcc == o.bcc &&
|
|
312
|
+
from_name == o.from_name &&
|
|
313
|
+
from_address == o.from_address &&
|
|
314
|
+
reply_to == o.reply_to &&
|
|
315
|
+
subject == o.subject &&
|
|
316
|
+
message == o.message &&
|
|
317
|
+
file_name == o.file_name &&
|
|
318
|
+
file_formats == o.file_formats &&
|
|
319
|
+
delivery == o.delivery &&
|
|
320
|
+
max_attachment_mb == o.max_attachment_mb &&
|
|
321
|
+
submission_type == o.submission_type &&
|
|
322
|
+
send_when == o.send_when &&
|
|
323
|
+
failure_notifications_enabled == o.failure_notifications_enabled
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# @see the `==` method
|
|
327
|
+
# @param [Object] Object to be compared
|
|
328
|
+
def eql?(o)
|
|
329
|
+
self == o
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Calculates hash code according to all attributes.
|
|
333
|
+
# @return [Integer] Hash code
|
|
334
|
+
def hash
|
|
335
|
+
[template_ids, folder_ids, name, enabled, to, cc, bcc, from_name, from_address, reply_to, subject, message, file_name, file_formats, delivery, max_attachment_mb, submission_type, send_when, failure_notifications_enabled].hash
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Builds the object from hash
|
|
339
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
340
|
+
# @return [Object] Returns the model itself
|
|
341
|
+
def self.build_from_hash(attributes)
|
|
342
|
+
return nil unless attributes.is_a?(Hash)
|
|
343
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
344
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
345
|
+
map = acceptable_attribute_map
|
|
346
|
+
transformed_hash = {}
|
|
347
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
348
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
349
|
+
transformed_hash["#{key}"] = nil
|
|
350
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
351
|
+
# check to ensure the input is an array given that the attribute
|
|
352
|
+
# is documented as an array but the input is not
|
|
353
|
+
if attributes[map[key]].is_a?(Array)
|
|
354
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
355
|
+
end
|
|
356
|
+
elsif !attributes[map[key]].nil?
|
|
357
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
# Responses can include enum values added after this client was released, so the enum setters
|
|
361
|
+
# accept any value while the model is built from a response
|
|
362
|
+
allocate.tap do |model|
|
|
363
|
+
model.instance_variable_set(:@_skip_enum_validation, true)
|
|
364
|
+
model.send(:initialize, transformed_hash)
|
|
365
|
+
model.remove_instance_variable(:@_skip_enum_validation)
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# Returns the object in the form of hash
|
|
370
|
+
# @return [Hash] Returns the object in the form of hash
|
|
371
|
+
def to_hash
|
|
372
|
+
hash = {}
|
|
373
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
374
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
375
|
+
value = self.send(attr)
|
|
376
|
+
if value.nil?
|
|
377
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
378
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
hash[param] = _to_hash(value)
|
|
382
|
+
end
|
|
383
|
+
hash
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
end
|