docspring 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1be91b76c31c9162e4c340d87023d7db134d30348d791ff72ee62b2d594898f1
4
- data.tar.gz: 36899cc962a45a4b600aee02a939d5785c7d4119170265ebffb5ddad27338f2d
3
+ metadata.gz: 939bd91dfbd14e20907927edbd3f165b7f29eafa158dd5c96e591c22ed81ba9c
4
+ data.tar.gz: bb613af52b81ce0fe162be624431c7e03e9a4ccaacbf2cbb54134cadb9bd1b36
5
5
  SHA512:
6
- metadata.gz: fa5cf74b0d0d6c4725f3f8cbddf5035db11de42c721bc9e63d9346ad88fdc0721ff57907ca808d12018bd1997aed5865dc4e2618a9fb858c0ebb64c712eca5c0
7
- data.tar.gz: 458febae51a15f31ea6ad97e41958c3a3f9d3647c17b64a49cb686066da9f485a22a1a90d224f16a5ea11a64c793c7f6fbcba99e310acf82e20bc400023354af
6
+ metadata.gz: f9f9868aca3a924df5ac2196876db4f68b494b9bfe3ebe178697553d04e1803c0bd9d5e4a5ddc68745dc304049ef38bf50bb39cc2452f71caaf3481b8044eebf
7
+ data.tar.gz: b18c9ab4b8bfd0327e7598070092903455c7971854b1f615c534b58089ebca27d64ba2803e9a4332e11d240c4ba8228fccbfdba08dc6e934c6e299d46627a0d5
@@ -1,3 +1,7 @@
1
+ ### 1.3.2 [November 19, 2020]
2
+
3
+ - Added "sort_order" property for Submission Data Requests
4
+
1
5
  ### 1.3.1 [September 27, 2020]
2
6
 
3
7
  - Changed gem author to DocSpring
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docspring (1.3.1)
4
+ docspring (1.3.2)
5
5
  ffi (~> 1.0, >= 1.9.24)
6
6
  json (>= 1.8)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@ DocSpring is a service that helps you fill out and sign PDF templates.
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.3.1
10
+ - Package version: 1.3.2
11
11
  - Build package: com.docspring.codegen.DocSpringRubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build docspring.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./docspring-1.3.1.gem
26
+ gem install ./docspring-1.3.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./docspring-1.3.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./docspring-1.3.2.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'docspring', '~> 1.3.1'
34
+ gem 'docspring', '~> 1.3.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -86,6 +86,7 @@ Class | Method | HTTP request | Description
86
86
  *DocSpring::PDFApi* | [**batch_generate_pdfs**](docs/PDFApi.md#batch_generate_pdfs) | **POST** /submissions/batches | Generates multiple PDFs
87
87
  *DocSpring::PDFApi* | [**combine_pdfs**](docs/PDFApi.md#combine_pdfs) | **POST** /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files
88
88
  *DocSpring::PDFApi* | [**combine_submissions**](docs/PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
89
+ *DocSpring::PDFApi* | [**copy_template**](docs/PDFApi.md#copy_template) | **POST** /templates/{template_id}/copy | Copy a Template
89
90
  *DocSpring::PDFApi* | [**create_custom_file_from_upload**](docs/PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
90
91
  *DocSpring::PDFApi* | [**create_data_request_token**](docs/PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
91
92
  *DocSpring::PDFApi* | [**create_folder**](docs/PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
@@ -123,6 +124,7 @@ Class | Method | HTTP request | Description
123
124
  - [DocSpring::CombinedSubmission](docs/CombinedSubmission.md)
124
125
  - [DocSpring::CombinedSubmissionAction](docs/CombinedSubmissionAction.md)
125
126
  - [DocSpring::CombinedSubmissionData](docs/CombinedSubmissionData.md)
127
+ - [DocSpring::CopyTemplateData](docs/CopyTemplateData.md)
126
128
  - [DocSpring::CreateCombinedSubmissionResponse](docs/CreateCombinedSubmissionResponse.md)
127
129
  - [DocSpring::CreateCustomFileData](docs/CreateCustomFileData.md)
128
130
  - [DocSpring::CreateCustomFileResponse](docs/CreateCustomFileResponse.md)
@@ -0,0 +1,9 @@
1
+ # DocSpring::CopyTemplateData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **parent_folder_id** | **String** | |
8
+
9
+
@@ -3,6 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **parent_folder_id** | **String** | | [optional]
6
+ **parent_folder_id** | **String** | |
7
7
 
8
8
 
@@ -9,6 +9,7 @@ Method | HTTP request | Description
9
9
  [**batch_generate_pdfs**](PDFApi.md#batch_generate_pdfs) | **POST** /submissions/batches | Generates multiple PDFs
10
10
  [**combine_pdfs**](PDFApi.md#combine_pdfs) | **POST** /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files
11
11
  [**combine_submissions**](PDFApi.md#combine_submissions) | **POST** /combined_submissions | Merge generated PDFs together
12
+ [**copy_template**](PDFApi.md#copy_template) | **POST** /templates/{template_id}/copy | Copy a Template
12
13
  [**create_custom_file_from_upload**](PDFApi.md#create_custom_file_from_upload) | **POST** /custom_files | Create a new custom file from a cached presign upload
13
14
  [**create_data_request_token**](PDFApi.md#create_data_request_token) | **POST** /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication
14
15
  [**create_folder**](PDFApi.md#create_folder) | **POST** /folders/ | Create a folder
@@ -285,6 +286,57 @@ Name | Type | Description | Notes
285
286
 
286
287
 
287
288
 
289
+ # **copy_template**
290
+ > Template copy_template(template_id, copy_template_data)
291
+
292
+ Copy a Template
293
+
294
+ ### Example
295
+ ```ruby
296
+ # load the gem
297
+ require 'docspring'
298
+ # setup authorization
299
+ DocSpring.configure do |config|
300
+ # Configure HTTP basic authorization: api_token_basic
301
+ config.username = 'YOUR USERNAME'
302
+ config.password = 'YOUR PASSWORD'
303
+ end
304
+
305
+ api_instance = DocSpring::PDFApi.new
306
+ template_id = 'tpl_000000000000000001' # String |
307
+ copy_template_data = DocSpring::CopyTemplateData.new # CopyTemplateData |
308
+
309
+ begin
310
+ #Copy a Template
311
+ result = api_instance.copy_template(template_id, copy_template_data)
312
+ p result
313
+ rescue DocSpring::ApiError => e
314
+ puts "Exception when calling PDFApi->copy_template: #{e}"
315
+ end
316
+ ```
317
+
318
+ ### Parameters
319
+
320
+ Name | Type | Description | Notes
321
+ ------------- | ------------- | ------------- | -------------
322
+ **template_id** | **String**| |
323
+ **copy_template_data** | [**CopyTemplateData**](CopyTemplateData.md)| |
324
+
325
+ ### Return type
326
+
327
+ [**Template**](Template.md)
328
+
329
+ ### Authorization
330
+
331
+ [api_token_basic](../README.md#api_token_basic)
332
+
333
+ ### HTTP request headers
334
+
335
+ - **Content-Type**: application/json
336
+ - **Accept**: application/json
337
+
338
+
339
+
288
340
  # **create_custom_file_from_upload**
289
341
  > CreateCustomFileResponse create_custom_file_from_upload(create_custom_file_data)
290
342
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **name** | **String** | |
8
8
  **email** | **String** | |
9
9
  **order** | **Integer** | |
10
+ **sort_order** | **Integer** | |
10
11
  **fields** | **Array<String>** | |
11
12
  **metadata** | **Object** | |
12
13
  **state** | **String** | |
@@ -25,6 +25,7 @@ require 'docspring/models/combine_pdfs_data'
25
25
  require 'docspring/models/combined_submission'
26
26
  require 'docspring/models/combined_submission_action'
27
27
  require 'docspring/models/combined_submission_data'
28
+ require 'docspring/models/copy_template_data'
28
29
  require 'docspring/models/create_combined_submission_response'
29
30
  require 'docspring/models/create_custom_file_data'
30
31
  require 'docspring/models/create_custom_file_response'
@@ -296,6 +296,65 @@ module DocSpring
296
296
  return data, status_code, headers
297
297
  end
298
298
 
299
+ # Copy a Template
300
+ # @param template_id
301
+ # @param copy_template_data
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [Template]
304
+ def copy_template(template_id, copy_template_data, opts = {})
305
+ data, _status_code, _headers = copy_template_with_http_info(template_id, copy_template_data, opts)
306
+ data
307
+ end
308
+
309
+ # Copy a Template
310
+ # @param template_id
311
+ # @param copy_template_data
312
+ # @param [Hash] opts the optional parameters
313
+ # @return [Array<(Template, Fixnum, Hash)>] Template data, response status code and response headers
314
+ def copy_template_with_http_info(template_id, copy_template_data, opts = {})
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug 'Calling API: PDFApi.copy_template ...'
317
+ end
318
+ # verify the required parameter 'template_id' is set
319
+ if @api_client.config.client_side_validation && template_id.nil?
320
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling PDFApi.copy_template"
321
+ end
322
+ # verify the required parameter 'copy_template_data' is set
323
+ if @api_client.config.client_side_validation && copy_template_data.nil?
324
+ fail ArgumentError, "Missing the required parameter 'copy_template_data' when calling PDFApi.copy_template"
325
+ end
326
+ # resource path
327
+ local_var_path = '/templates/{template_id}/copy'.sub('{' + 'template_id' + '}', template_id.to_s)
328
+
329
+ # query parameters
330
+ query_params = {}
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+
342
+ # http body (model)
343
+ post_body = @api_client.object_to_http_body(copy_template_data)
344
+ auth_names = ['api_token_basic']
345
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => 'Template')
352
+ if @api_client.config.debugging
353
+ @api_client.config.logger.debug "API called: PDFApi#copy_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+
299
358
  # Create a new custom file from a cached presign upload
300
359
  # @param create_custom_file_data
301
360
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,197 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module DocSpring
16
+ class CopyTemplateData
17
+ attr_accessor :name
18
+
19
+ attr_accessor :parent_folder_id
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'parent_folder_id' => :'parent_folder_id'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'parent_folder_id' => :'String'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ return unless attributes.is_a?(Hash)
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+
45
+ if attributes.has_key?(:'name')
46
+ self.name = attributes[:'name']
47
+ end
48
+
49
+ if attributes.has_key?(:'parent_folder_id')
50
+ self.parent_folder_id = attributes[:'parent_folder_id']
51
+ end
52
+ end
53
+
54
+ # Show invalid properties with the reasons. Usually used together with valid?
55
+ # @return Array for valid properties with the reasons
56
+ def list_invalid_properties
57
+ invalid_properties = Array.new
58
+ if @parent_folder_id.nil?
59
+ invalid_properties.push('invalid value for "parent_folder_id", parent_folder_id cannot be nil.')
60
+ end
61
+
62
+ invalid_properties
63
+ end
64
+
65
+ # Check to see if the all the properties in the model are valid
66
+ # @return true if the model is valid
67
+ def valid?
68
+ return false if @parent_folder_id.nil?
69
+ true
70
+ end
71
+
72
+ # Checks equality by comparing each attribute.
73
+ # @param [Object] Object to be compared
74
+ def ==(o)
75
+ return true if self.equal?(o)
76
+ self.class == o.class &&
77
+ name == o.name &&
78
+ parent_folder_id == o.parent_folder_id
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [name, parent_folder_id].hash
91
+ end
92
+
93
+ # Builds the object from hash
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ # @return [Object] Returns the model itself
96
+ def build_from_hash(attributes)
97
+ return nil unless attributes.is_a?(Hash)
98
+ self.class.openapi_types.each_pair do |key, type|
99
+ if type =~ /\AArray<(.*)>/i
100
+ # check to ensure the input is an array given that the the attribute
101
+ # is documented as an array but the input is not
102
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
103
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
+ end
105
+ elsif !attributes[self.class.attribute_map[key]].nil?
106
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
107
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ end
109
+
110
+ self
111
+ end
112
+
113
+ # Deserializes the data based on type
114
+ # @param string type Data type
115
+ # @param string value Value to be deserialized
116
+ # @return [Object] Deserialized data
117
+ def _deserialize(type, value)
118
+ case type.to_sym
119
+ when :DateTime
120
+ DateTime.parse(value)
121
+ when :Date
122
+ Date.parse(value)
123
+ when :String
124
+ value.to_s
125
+ when :Integer
126
+ value.to_i
127
+ when :Float
128
+ value.to_f
129
+ when :BOOLEAN
130
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131
+ true
132
+ else
133
+ false
134
+ end
135
+ when :Object
136
+ # generic object (usually a Hash), return directly
137
+ value
138
+ when /\AArray<(?<inner_type>.+)>\z/
139
+ inner_type = Regexp.last_match[:inner_type]
140
+ value.map { |v| _deserialize(inner_type, v) }
141
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
142
+ k_type = Regexp.last_match[:k_type]
143
+ v_type = Regexp.last_match[:v_type]
144
+ {}.tap do |hash|
145
+ value.each do |k, v|
146
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
147
+ end
148
+ end
149
+ else # model
150
+ temp_model = DocSpring.const_get(type).new
151
+ temp_model.build_from_hash(value)
152
+ end
153
+ end
154
+
155
+ # Returns the string representation of the object
156
+ # @return [String] String presentation of the object
157
+ def to_s
158
+ to_hash.to_s
159
+ end
160
+
161
+ # to_body is an alias to to_hash (backward compatibility)
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_body
164
+ to_hash
165
+ end
166
+
167
+ # Returns the object in the form of hash
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_hash
170
+ hash = {}
171
+ self.class.attribute_map.each_pair do |attr, param|
172
+ value = self.send(attr)
173
+ next if value.nil?
174
+ hash[param] = _to_hash(value)
175
+ end
176
+ hash
177
+ end
178
+
179
+ # Outputs non-array value in the form of hash
180
+ # For object, use to_hash. Otherwise, just return the value
181
+ # @param [Object] value Any valid value
182
+ # @return [Hash] Returns the value in the form of hash
183
+ def _to_hash(value)
184
+ if value.is_a?(Array)
185
+ value.compact.map { |v| _to_hash(v) }
186
+ elsif value.is_a?(Hash)
187
+ {}.tap do |hash|
188
+ value.each { |k, v| hash[k] = _to_hash(v) }
189
+ end
190
+ elsif value.respond_to? :to_hash
191
+ value.to_hash
192
+ else
193
+ value
194
+ end
195
+ end
196
+ end
197
+ end
@@ -47,12 +47,17 @@ module DocSpring
47
47
  # @return Array for valid properties with the reasons
48
48
  def list_invalid_properties
49
49
  invalid_properties = Array.new
50
+ if @parent_folder_id.nil?
51
+ invalid_properties.push('invalid value for "parent_folder_id", parent_folder_id cannot be nil.')
52
+ end
53
+
50
54
  invalid_properties
51
55
  end
52
56
 
53
57
  # Check to see if the all the properties in the model are valid
54
58
  # @return true if the model is valid
55
59
  def valid?
60
+ return false if @parent_folder_id.nil?
56
61
  true
57
62
  end
58
63
 
@@ -22,6 +22,8 @@ module DocSpring
22
22
 
23
23
  attr_accessor :order
24
24
 
25
+ attr_accessor :sort_order
26
+
25
27
  attr_accessor :fields
26
28
 
27
29
  attr_accessor :metadata
@@ -81,6 +83,7 @@ module DocSpring
81
83
  :'name' => :'name',
82
84
  :'email' => :'email',
83
85
  :'order' => :'order',
86
+ :'sort_order' => :'sort_order',
84
87
  :'fields' => :'fields',
85
88
  :'metadata' => :'metadata',
86
89
  :'state' => :'state',
@@ -106,6 +109,7 @@ module DocSpring
106
109
  :'name' => :'String',
107
110
  :'email' => :'String',
108
111
  :'order' => :'Integer',
112
+ :'sort_order' => :'Integer',
109
113
  :'fields' => :'Array<String>',
110
114
  :'metadata' => :'Object',
111
115
  :'state' => :'String',
@@ -148,6 +152,10 @@ module DocSpring
148
152
  self.order = attributes[:'order']
149
153
  end
150
154
 
155
+ if attributes.has_key?(:'sort_order')
156
+ self.sort_order = attributes[:'sort_order']
157
+ end
158
+
151
159
  if attributes.has_key?(:'fields')
152
160
  if (value = attributes[:'fields']).is_a?(Array)
153
161
  self.fields = value
@@ -223,6 +231,10 @@ module DocSpring
223
231
  invalid_properties.push('invalid value for "order", order cannot be nil.')
224
232
  end
225
233
 
234
+ if @sort_order.nil?
235
+ invalid_properties.push('invalid value for "sort_order", sort_order cannot be nil.')
236
+ end
237
+
226
238
  if @metadata.nil?
227
239
  invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
228
240
  end
@@ -239,6 +251,7 @@ module DocSpring
239
251
  def valid?
240
252
  return false if @id.nil?
241
253
  return false if @order.nil?
254
+ return false if @sort_order.nil?
242
255
  return false if @metadata.nil?
243
256
  return false if @state.nil?
244
257
  state_validator = EnumAttributeValidator.new('String', ['pending', 'completed'])
@@ -289,6 +302,7 @@ module DocSpring
289
302
  name == o.name &&
290
303
  email == o.email &&
291
304
  order == o.order &&
305
+ sort_order == o.sort_order &&
292
306
  fields == o.fields &&
293
307
  metadata == o.metadata &&
294
308
  state == o.state &&
@@ -315,7 +329,7 @@ module DocSpring
315
329
  # Calculates hash code according to all attributes.
316
330
  # @return [Fixnum] Hash code
317
331
  def hash
318
- [id, name, email, order, fields, metadata, state, viewed_at, completed_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent].hash
332
+ [id, name, email, order, sort_order, fields, metadata, state, viewed_at, completed_at, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent].hash
319
333
  end
320
334
 
321
335
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 3.3.0
11
11
  =end
12
12
 
13
13
  module DocSpring
14
- VERSION = '1.3.1'
14
+ VERSION = '1.3.2'
15
15
  end
@@ -102,6 +102,20 @@ describe 'PDFApi' do
102
102
  expect(result).to_not be_nil
103
103
  end
104
104
  end
105
+ # integration tests for copy_template
106
+ # Copy a Template
107
+ # @param template_id
108
+ # @param copy_template_data
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [Template]
111
+ describe 'copy_template test' do
112
+ it 'should work' do
113
+ template_id = 'tpl_000000000000000001' # String |
114
+ copy_template_data = DocSpring::CopyTemplateData.new # CopyTemplateData |
115
+ result = api_instance.copy_template(template_id, copy_template_data)
116
+ expect(result).to_not be_nil
117
+ end
118
+ end
105
119
  # integration tests for create_custom_file_from_upload
106
120
  # Create a new custom file from a cached presign upload
107
121
  # @param create_custom_file_data
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::CopyTemplateData
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'CopyTemplateData' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::CopyTemplateData.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CopyTemplateData' do
31
+ it 'should create an instance of CopyTemplateData' do
32
+ expect(@instance).to be_instance_of(DocSpring::CopyTemplateData)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "parent_folder_id"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -56,6 +56,12 @@ describe 'SubmissionDataRequest' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "sort_order"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "fields"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocSpring
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -230,6 +230,7 @@ files:
230
230
  - docs/CombinedSubmission.md
231
231
  - docs/CombinedSubmissionAction.md
232
232
  - docs/CombinedSubmissionData.md
233
+ - docs/CopyTemplateData.md
233
234
  - docs/CreateCombinedSubmissionResponse.md
234
235
  - docs/CreateCustomFileData.md
235
236
  - docs/CreateCustomFileResponse.md
@@ -286,6 +287,7 @@ files:
286
287
  - lib/docspring/models/combined_submission.rb
287
288
  - lib/docspring/models/combined_submission_action.rb
288
289
  - lib/docspring/models/combined_submission_data.rb
290
+ - lib/docspring/models/copy_template_data.rb
289
291
  - lib/docspring/models/create_combined_submission_response.rb
290
292
  - lib/docspring/models/create_custom_file_data.rb
291
293
  - lib/docspring/models/create_custom_file_response.rb
@@ -339,6 +341,7 @@ files:
339
341
  - spec/models/combined_submission_action_spec.rb
340
342
  - spec/models/combined_submission_data_spec.rb
341
343
  - spec/models/combined_submission_spec.rb
344
+ - spec/models/copy_template_data_spec.rb
342
345
  - spec/models/create_combined_submission_response_spec.rb
343
346
  - spec/models/create_custom_file_data_spec.rb
344
347
  - spec/models/create_custom_file_response_spec.rb
@@ -383,7 +386,7 @@ homepage: https://github.com/DocSpring/docspring-ruby
383
386
  licenses:
384
387
  - MIT
385
388
  metadata: {}
386
- post_install_message:
389
+ post_install_message:
387
390
  rdoc_options: []
388
391
  require_paths:
389
392
  - lib
@@ -399,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
402
  version: '0'
400
403
  requirements: []
401
404
  rubygems_version: 3.1.2
402
- signing_key:
405
+ signing_key:
403
406
  specification_version: 4
404
407
  summary: DocSpring API Client
405
408
  test_files:
@@ -416,6 +419,7 @@ test_files:
416
419
  - spec/models/combined_submission_action_spec.rb
417
420
  - spec/models/combined_submission_data_spec.rb
418
421
  - spec/models/combined_submission_spec.rb
422
+ - spec/models/copy_template_data_spec.rb
419
423
  - spec/models/create_combined_submission_response_spec.rb
420
424
  - spec/models/create_custom_file_data_spec.rb
421
425
  - spec/models/create_custom_file_response_spec.rb