signrequest_client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -7
- data/Rakefile +0 -1
- data/docs/ApiTokensApi.md +0 -164
- data/docs/Document.md +6 -0
- data/docs/DocumentAttachment.md +1 -1
- data/docs/DocumentAttachmentsApi.md +4 -4
- data/docs/DocumentSearch.md +5 -5
- data/docs/DocumentSigningLog.md +9 -0
- data/docs/DocumentSignrequest.md +28 -0
- data/docs/DocumentTeam.md +10 -0
- data/docs/DocumentsApi.md +11 -11
- data/docs/DocumentsSearchApi.md +8 -8
- data/docs/Event.md +1 -0
- data/docs/EventsApi.md +13 -13
- data/docs/FileFromSf.md +1 -0
- data/docs/InlineResponse201.md +1 -1
- data/docs/InlineSignRequest.md +3 -0
- data/docs/SignRequest.md +4 -1
- data/docs/SignRequestQuickCreate.md +5 -1
- data/docs/Signer.md +3 -0
- data/docs/SignrequestsApi.md +5 -5
- data/docs/Team.md +2 -0
- data/docs/TeamMember.md +1 -0
- data/docs/TeamMembersApi.md +7 -7
- data/docs/TeamsApi.md +57 -3
- data/docs/Template.md +1 -0
- data/docs/TemplatesApi.md +1 -1
- data/docs/WebhookSubscription.md +1 -0
- data/docs/WebhooksApi.md +4 -4
- data/lib/signrequest_client.rb +4 -1
- data/lib/signrequest_client/api/api_tokens_api.rb +5 -170
- data/lib/signrequest_client/api/document_attachments_api.rb +11 -14
- data/lib/signrequest_client/api/documents_api.rb +14 -18
- data/lib/signrequest_client/api/documents_search_api.rb +5 -6
- data/lib/signrequest_client/api/events_api.rb +8 -10
- data/lib/signrequest_client/api/signrequest_quick_create_api.rb +5 -6
- data/lib/signrequest_client/api/signrequests_api.rb +17 -22
- data/lib/signrequest_client/api/team_members_api.rb +8 -10
- data/lib/signrequest_client/api/teams_api.rb +69 -21
- data/lib/signrequest_client/api/templates_api.rb +8 -10
- data/lib/signrequest_client/api/webhooks_api.rb +20 -26
- data/lib/signrequest_client/api_client.rb +9 -9
- data/lib/signrequest_client/api_error.rb +1 -1
- data/lib/signrequest_client/configuration.rb +2 -2
- data/lib/signrequest_client/models/auth_token.rb +16 -23
- data/lib/signrequest_client/models/document.rb +113 -45
- data/lib/signrequest_client/models/document_attachment.rb +17 -25
- data/lib/signrequest_client/models/document_search.rb +111 -122
- data/lib/signrequest_client/models/document_signer_template_conf.rb +14 -21
- data/lib/signrequest_client/models/document_signing_log.rb +209 -0
- data/lib/signrequest_client/models/document_signrequest.rb +538 -0
- data/lib/signrequest_client/models/document_team.rb +240 -0
- data/lib/signrequest_client/models/event.rb +24 -20
- data/lib/signrequest_client/models/file_from_sf.rb +40 -21
- data/lib/signrequest_client/models/inline_document_signer_integration_data.rb +9 -13
- data/lib/signrequest_client/models/inline_integration_data.rb +9 -13
- data/lib/signrequest_client/models/inline_prefill_tags.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_1.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_2.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_3.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_4.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_5.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_6.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_7.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_8.rb +8 -13
- data/lib/signrequest_client/models/inline_response_200_9.rb +8 -13
- data/lib/signrequest_client/models/inline_response_201.rb +27 -31
- data/lib/signrequest_client/models/inline_response_201_1.rb +11 -15
- data/lib/signrequest_client/models/inline_sign_request.rb +69 -35
- data/lib/signrequest_client/models/inline_team.rb +12 -19
- data/lib/signrequest_client/models/inline_team_member.rb +8 -14
- data/lib/signrequest_client/models/invite_member.rb +10 -15
- data/lib/signrequest_client/models/placeholder.rb +15 -21
- data/lib/signrequest_client/models/required_attachment.rb +14 -20
- data/lib/signrequest_client/models/sign_request.rb +75 -40
- data/lib/signrequest_client/models/sign_request_quick_create.rb +124 -61
- data/lib/signrequest_client/models/signer.rb +103 -60
- data/lib/signrequest_client/models/signer_attachment.rb +10 -17
- data/lib/signrequest_client/models/signer_inputs.rb +14 -20
- data/lib/signrequest_client/models/signing_log.rb +8 -14
- data/lib/signrequest_client/models/team.rb +55 -34
- data/lib/signrequest_client/models/team_member.rb +18 -15
- data/lib/signrequest_client/models/template.rb +23 -20
- data/lib/signrequest_client/models/user.rb +18 -26
- data/lib/signrequest_client/models/webhook_subscription.rb +33 -30
- data/lib/signrequest_client/version.rb +2 -2
- data/signrequest_client-1.0.0.gem +0 -0
- data/signrequest_client.gemspec +4 -4
- data/spec/models/document_signing_log_spec.rb +47 -0
- data/spec/models/document_signrequest_spec.rb +165 -0
- data/spec/models/document_team_spec.rb +53 -0
- metadata +28 -42
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
Contact: tech-support@signrequest.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module SignRequestClient
|
16
16
|
class TeamMembersApi
|
@@ -19,7 +19,6 @@ module SignRequestClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Retrieve a list of Team Members
|
24
23
|
#
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -34,7 +33,7 @@ module SignRequestClient
|
|
34
33
|
# @return [InlineResponse2006]
|
35
34
|
def team_members_list(opts = {})
|
36
35
|
data, _status_code, _headers = team_members_list_with_http_info(opts)
|
37
|
-
|
36
|
+
data
|
38
37
|
end
|
39
38
|
|
40
39
|
# Retrieve a list of Team Members
|
@@ -51,10 +50,10 @@ module SignRequestClient
|
|
51
50
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
52
51
|
def team_members_list_with_http_info(opts = {})
|
53
52
|
if @api_client.config.debugging
|
54
|
-
@api_client.config.logger.debug
|
53
|
+
@api_client.config.logger.debug 'Calling API: TeamMembersApi.team_members_list ...'
|
55
54
|
end
|
56
55
|
# resource path
|
57
|
-
local_var_path =
|
56
|
+
local_var_path = '/team-members/'
|
58
57
|
|
59
58
|
# query parameters
|
60
59
|
query_params = {}
|
@@ -92,7 +91,6 @@ module SignRequestClient
|
|
92
91
|
end
|
93
92
|
return data, status_code, headers
|
94
93
|
end
|
95
|
-
|
96
94
|
# Retrieve a Team Member
|
97
95
|
#
|
98
96
|
# @param uuid
|
@@ -100,7 +98,7 @@ module SignRequestClient
|
|
100
98
|
# @return [TeamMember]
|
101
99
|
def team_members_read(uuid, opts = {})
|
102
100
|
data, _status_code, _headers = team_members_read_with_http_info(uuid, opts)
|
103
|
-
|
101
|
+
data
|
104
102
|
end
|
105
103
|
|
106
104
|
# Retrieve a Team Member
|
@@ -110,14 +108,14 @@ module SignRequestClient
|
|
110
108
|
# @return [Array<(TeamMember, Fixnum, Hash)>] TeamMember data, response status code and response headers
|
111
109
|
def team_members_read_with_http_info(uuid, opts = {})
|
112
110
|
if @api_client.config.debugging
|
113
|
-
@api_client.config.logger.debug
|
111
|
+
@api_client.config.logger.debug 'Calling API: TeamMembersApi.team_members_read ...'
|
114
112
|
end
|
115
113
|
# verify the required parameter 'uuid' is set
|
116
114
|
if @api_client.config.client_side_validation && uuid.nil?
|
117
115
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling TeamMembersApi.team_members_read"
|
118
116
|
end
|
119
117
|
# resource path
|
120
|
-
local_var_path =
|
118
|
+
local_var_path = '/team-members/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
121
119
|
|
122
120
|
# query parameters
|
123
121
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
Contact: tech-support@signrequest.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module SignRequestClient
|
16
16
|
class TeamsApi
|
@@ -19,7 +19,6 @@ module SignRequestClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Create a Team
|
24
23
|
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
25
24
|
# @param data
|
@@ -27,7 +26,7 @@ module SignRequestClient
|
|
27
26
|
# @return [Team]
|
28
27
|
def teams_create(data, opts = {})
|
29
28
|
data, _status_code, _headers = teams_create_with_http_info(data, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Create a Team
|
@@ -37,14 +36,14 @@ module SignRequestClient
|
|
37
36
|
# @return [Array<(Team, Fixnum, Hash)>] Team data, response status code and response headers
|
38
37
|
def teams_create_with_http_info(data, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_create ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'data' is set
|
43
42
|
if @api_client.config.client_side_validation && data.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'data' when calling TeamsApi.teams_create"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/teams/'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,59 @@ module SignRequestClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
76
|
+
# Delete a Team
|
77
|
+
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
78
|
+
# @param subdomain
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [nil]
|
81
|
+
def teams_delete(subdomain, opts = {})
|
82
|
+
teams_delete_with_http_info(subdomain, opts)
|
83
|
+
nil
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete a Team
|
87
|
+
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
88
|
+
# @param subdomain
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
91
|
+
def teams_delete_with_http_info(subdomain, opts = {})
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_delete ...'
|
94
|
+
end
|
95
|
+
# verify the required parameter 'subdomain' is set
|
96
|
+
if @api_client.config.client_side_validation && subdomain.nil?
|
97
|
+
fail ArgumentError, "Missing the required parameter 'subdomain' when calling TeamsApi.teams_delete"
|
98
|
+
end
|
99
|
+
# resource path
|
100
|
+
local_var_path = '/teams/{subdomain}/'.sub('{' + 'subdomain' + '}', subdomain.to_s)
|
101
|
+
|
102
|
+
# query parameters
|
103
|
+
query_params = {}
|
104
|
+
|
105
|
+
# header parameters
|
106
|
+
header_params = {}
|
107
|
+
# HTTP header 'Accept' (if needed)
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
109
|
+
# HTTP header 'Content-Type'
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
77
111
|
|
112
|
+
# form parameters
|
113
|
+
form_params = {}
|
114
|
+
|
115
|
+
# http body (model)
|
116
|
+
post_body = nil
|
117
|
+
auth_names = ['Token']
|
118
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
119
|
+
:header_params => header_params,
|
120
|
+
:query_params => query_params,
|
121
|
+
:form_params => form_params,
|
122
|
+
:body => post_body,
|
123
|
+
:auth_names => auth_names)
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug "API called: TeamsApi#teams_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
end
|
127
|
+
return data, status_code, headers
|
128
|
+
end
|
78
129
|
# Invite a Team Member
|
79
130
|
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
80
131
|
# @param subdomain
|
@@ -83,7 +134,7 @@ module SignRequestClient
|
|
83
134
|
# @return [InviteMember]
|
84
135
|
def teams_invite_member(subdomain, data, opts = {})
|
85
136
|
data, _status_code, _headers = teams_invite_member_with_http_info(subdomain, data, opts)
|
86
|
-
|
137
|
+
data
|
87
138
|
end
|
88
139
|
|
89
140
|
# Invite a Team Member
|
@@ -94,7 +145,7 @@ module SignRequestClient
|
|
94
145
|
# @return [Array<(InviteMember, Fixnum, Hash)>] InviteMember data, response status code and response headers
|
95
146
|
def teams_invite_member_with_http_info(subdomain, data, opts = {})
|
96
147
|
if @api_client.config.debugging
|
97
|
-
@api_client.config.logger.debug
|
148
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_invite_member ...'
|
98
149
|
end
|
99
150
|
# verify the required parameter 'subdomain' is set
|
100
151
|
if @api_client.config.client_side_validation && subdomain.nil?
|
@@ -105,7 +156,7 @@ module SignRequestClient
|
|
105
156
|
fail ArgumentError, "Missing the required parameter 'data' when calling TeamsApi.teams_invite_member"
|
106
157
|
end
|
107
158
|
# resource path
|
108
|
-
local_var_path =
|
159
|
+
local_var_path = '/teams/{subdomain}/invite_member/'.sub('{' + 'subdomain' + '}', subdomain.to_s)
|
109
160
|
|
110
161
|
# query parameters
|
111
162
|
query_params = {}
|
@@ -135,7 +186,6 @@ module SignRequestClient
|
|
135
186
|
end
|
136
187
|
return data, status_code, headers
|
137
188
|
end
|
138
|
-
|
139
189
|
# Retrieve a list of Teams
|
140
190
|
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
141
191
|
# @param [Hash] opts the optional parameters
|
@@ -144,7 +194,7 @@ module SignRequestClient
|
|
144
194
|
# @return [InlineResponse2007]
|
145
195
|
def teams_list(opts = {})
|
146
196
|
data, _status_code, _headers = teams_list_with_http_info(opts)
|
147
|
-
|
197
|
+
data
|
148
198
|
end
|
149
199
|
|
150
200
|
# Retrieve a list of Teams
|
@@ -155,10 +205,10 @@ module SignRequestClient
|
|
155
205
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
156
206
|
def teams_list_with_http_info(opts = {})
|
157
207
|
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug
|
208
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_list ...'
|
159
209
|
end
|
160
210
|
# resource path
|
161
|
-
local_var_path =
|
211
|
+
local_var_path = '/teams/'
|
162
212
|
|
163
213
|
# query parameters
|
164
214
|
query_params = {}
|
@@ -190,7 +240,6 @@ module SignRequestClient
|
|
190
240
|
end
|
191
241
|
return data, status_code, headers
|
192
242
|
end
|
193
|
-
|
194
243
|
# Update a Team
|
195
244
|
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
196
245
|
# @param subdomain
|
@@ -199,7 +248,7 @@ module SignRequestClient
|
|
199
248
|
# @return [Team]
|
200
249
|
def teams_partial_update(subdomain, data, opts = {})
|
201
250
|
data, _status_code, _headers = teams_partial_update_with_http_info(subdomain, data, opts)
|
202
|
-
|
251
|
+
data
|
203
252
|
end
|
204
253
|
|
205
254
|
# Update a Team
|
@@ -210,7 +259,7 @@ module SignRequestClient
|
|
210
259
|
# @return [Array<(Team, Fixnum, Hash)>] Team data, response status code and response headers
|
211
260
|
def teams_partial_update_with_http_info(subdomain, data, opts = {})
|
212
261
|
if @api_client.config.debugging
|
213
|
-
@api_client.config.logger.debug
|
262
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_partial_update ...'
|
214
263
|
end
|
215
264
|
# verify the required parameter 'subdomain' is set
|
216
265
|
if @api_client.config.client_side_validation && subdomain.nil?
|
@@ -221,7 +270,7 @@ module SignRequestClient
|
|
221
270
|
fail ArgumentError, "Missing the required parameter 'data' when calling TeamsApi.teams_partial_update"
|
222
271
|
end
|
223
272
|
# resource path
|
224
|
-
local_var_path =
|
273
|
+
local_var_path = '/teams/{subdomain}/'.sub('{' + 'subdomain' + '}', subdomain.to_s)
|
225
274
|
|
226
275
|
# query parameters
|
227
276
|
query_params = {}
|
@@ -251,7 +300,6 @@ module SignRequestClient
|
|
251
300
|
end
|
252
301
|
return data, status_code, headers
|
253
302
|
end
|
254
|
-
|
255
303
|
# Retrieve a Team
|
256
304
|
# Required fields are **name** and **subdomain** where the subdomain is globally unique. Use **POST** to create a Team. To update a field on a Team use **PATCH**. To use the API on behalf of a particular team change the endpoint to: *https://**{{ subdomain }}**.signrequest.com/api/v1/...* To invite new team members you can use **POST** {\"email\":\"**email-of-member-to-invite@example.com**\",\"is_admin\":false,\"is_owner\":false} to: *https://signrequest.com/api/v1/teams/**{{ subdomain }}**/invite_member/*
|
257
305
|
# @param subdomain
|
@@ -259,7 +307,7 @@ module SignRequestClient
|
|
259
307
|
# @return [Team]
|
260
308
|
def teams_read(subdomain, opts = {})
|
261
309
|
data, _status_code, _headers = teams_read_with_http_info(subdomain, opts)
|
262
|
-
|
310
|
+
data
|
263
311
|
end
|
264
312
|
|
265
313
|
# Retrieve a Team
|
@@ -269,14 +317,14 @@ module SignRequestClient
|
|
269
317
|
# @return [Array<(Team, Fixnum, Hash)>] Team data, response status code and response headers
|
270
318
|
def teams_read_with_http_info(subdomain, opts = {})
|
271
319
|
if @api_client.config.debugging
|
272
|
-
@api_client.config.logger.debug
|
320
|
+
@api_client.config.logger.debug 'Calling API: TeamsApi.teams_read ...'
|
273
321
|
end
|
274
322
|
# verify the required parameter 'subdomain' is set
|
275
323
|
if @api_client.config.client_side_validation && subdomain.nil?
|
276
324
|
fail ArgumentError, "Missing the required parameter 'subdomain' when calling TeamsApi.teams_read"
|
277
325
|
end
|
278
326
|
# resource path
|
279
|
-
local_var_path =
|
327
|
+
local_var_path = '/teams/{subdomain}/'.sub('{' + 'subdomain' + '}', subdomain.to_s)
|
280
328
|
|
281
329
|
# query parameters
|
282
330
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
Contact: tech-support@signrequest.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module SignRequestClient
|
16
16
|
class TemplatesApi
|
@@ -19,7 +19,6 @@ module SignRequestClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Retrieve a list of Templates
|
24
23
|
#
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -28,7 +27,7 @@ module SignRequestClient
|
|
28
27
|
# @return [InlineResponse2008]
|
29
28
|
def templates_list(opts = {})
|
30
29
|
data, _status_code, _headers = templates_list_with_http_info(opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# Retrieve a list of Templates
|
@@ -39,10 +38,10 @@ module SignRequestClient
|
|
39
38
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
40
39
|
def templates_list_with_http_info(opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.templates_list ...'
|
43
42
|
end
|
44
43
|
# resource path
|
45
|
-
local_var_path =
|
44
|
+
local_var_path = '/templates/'
|
46
45
|
|
47
46
|
# query parameters
|
48
47
|
query_params = {}
|
@@ -74,7 +73,6 @@ module SignRequestClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# Retrieve a Template
|
79
77
|
#
|
80
78
|
# @param uuid
|
@@ -82,7 +80,7 @@ module SignRequestClient
|
|
82
80
|
# @return [Template]
|
83
81
|
def templates_read(uuid, opts = {})
|
84
82
|
data, _status_code, _headers = templates_read_with_http_info(uuid, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# Retrieve a Template
|
@@ -92,14 +90,14 @@ module SignRequestClient
|
|
92
90
|
# @return [Array<(Template, Fixnum, Hash)>] Template data, response status code and response headers
|
93
91
|
def templates_read_with_http_info(uuid, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: TemplatesApi.templates_read ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'uuid' is set
|
98
96
|
if @api_client.config.client_side_validation && uuid.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling TemplatesApi.templates_read"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/templates/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
Contact: tech-support@signrequest.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.8
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module SignRequestClient
|
16
16
|
class WebhooksApi
|
@@ -19,7 +19,6 @@ module SignRequestClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# Create a Webhook
|
24
23
|
#
|
25
24
|
# @param data
|
@@ -27,7 +26,7 @@ module SignRequestClient
|
|
27
26
|
# @return [WebhookSubscription]
|
28
27
|
def webhooks_create(data, opts = {})
|
29
28
|
data, _status_code, _headers = webhooks_create_with_http_info(data, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# Create a Webhook
|
@@ -37,14 +36,14 @@ module SignRequestClient
|
|
37
36
|
# @return [Array<(WebhookSubscription, Fixnum, Hash)>] WebhookSubscription data, response status code and response headers
|
38
37
|
def webhooks_create_with_http_info(data, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_create ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'data' is set
|
43
42
|
if @api_client.config.client_side_validation && data.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'data' when calling WebhooksApi.webhooks_create"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/webhooks/'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module SignRequestClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# Delete a Webhook
|
79
77
|
#
|
80
78
|
# @param uuid
|
@@ -82,7 +80,7 @@ module SignRequestClient
|
|
82
80
|
# @return [nil]
|
83
81
|
def webhooks_delete(uuid, opts = {})
|
84
82
|
webhooks_delete_with_http_info(uuid, opts)
|
85
|
-
|
83
|
+
nil
|
86
84
|
end
|
87
85
|
|
88
86
|
# Delete a Webhook
|
@@ -92,14 +90,14 @@ module SignRequestClient
|
|
92
90
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
93
91
|
def webhooks_delete_with_http_info(uuid, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_delete ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'uuid' is set
|
98
96
|
if @api_client.config.client_side_validation && uuid.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling WebhooksApi.webhooks_delete"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/webhooks/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -128,7 +126,6 @@ module SignRequestClient
|
|
128
126
|
end
|
129
127
|
return data, status_code, headers
|
130
128
|
end
|
131
|
-
|
132
129
|
# Retrieve a list of Webhooks
|
133
130
|
#
|
134
131
|
# @param [Hash] opts the optional parameters
|
@@ -137,7 +134,7 @@ module SignRequestClient
|
|
137
134
|
# @return [InlineResponse2009]
|
138
135
|
def webhooks_list(opts = {})
|
139
136
|
data, _status_code, _headers = webhooks_list_with_http_info(opts)
|
140
|
-
|
137
|
+
data
|
141
138
|
end
|
142
139
|
|
143
140
|
# Retrieve a list of Webhooks
|
@@ -148,10 +145,10 @@ module SignRequestClient
|
|
148
145
|
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
149
146
|
def webhooks_list_with_http_info(opts = {})
|
150
147
|
if @api_client.config.debugging
|
151
|
-
@api_client.config.logger.debug
|
148
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_list ...'
|
152
149
|
end
|
153
150
|
# resource path
|
154
|
-
local_var_path =
|
151
|
+
local_var_path = '/webhooks/'
|
155
152
|
|
156
153
|
# query parameters
|
157
154
|
query_params = {}
|
@@ -183,7 +180,6 @@ module SignRequestClient
|
|
183
180
|
end
|
184
181
|
return data, status_code, headers
|
185
182
|
end
|
186
|
-
|
187
183
|
# Partially update a Webhook
|
188
184
|
#
|
189
185
|
# @param uuid
|
@@ -192,7 +188,7 @@ module SignRequestClient
|
|
192
188
|
# @return [WebhookSubscription]
|
193
189
|
def webhooks_partial_update(uuid, data, opts = {})
|
194
190
|
data, _status_code, _headers = webhooks_partial_update_with_http_info(uuid, data, opts)
|
195
|
-
|
191
|
+
data
|
196
192
|
end
|
197
193
|
|
198
194
|
# Partially update a Webhook
|
@@ -203,7 +199,7 @@ module SignRequestClient
|
|
203
199
|
# @return [Array<(WebhookSubscription, Fixnum, Hash)>] WebhookSubscription data, response status code and response headers
|
204
200
|
def webhooks_partial_update_with_http_info(uuid, data, opts = {})
|
205
201
|
if @api_client.config.debugging
|
206
|
-
@api_client.config.logger.debug
|
202
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_partial_update ...'
|
207
203
|
end
|
208
204
|
# verify the required parameter 'uuid' is set
|
209
205
|
if @api_client.config.client_side_validation && uuid.nil?
|
@@ -214,7 +210,7 @@ module SignRequestClient
|
|
214
210
|
fail ArgumentError, "Missing the required parameter 'data' when calling WebhooksApi.webhooks_partial_update"
|
215
211
|
end
|
216
212
|
# resource path
|
217
|
-
local_var_path =
|
213
|
+
local_var_path = '/webhooks/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
218
214
|
|
219
215
|
# query parameters
|
220
216
|
query_params = {}
|
@@ -244,7 +240,6 @@ module SignRequestClient
|
|
244
240
|
end
|
245
241
|
return data, status_code, headers
|
246
242
|
end
|
247
|
-
|
248
243
|
# Retrieve a Webhook
|
249
244
|
#
|
250
245
|
# @param uuid
|
@@ -252,7 +247,7 @@ module SignRequestClient
|
|
252
247
|
# @return [WebhookSubscription]
|
253
248
|
def webhooks_read(uuid, opts = {})
|
254
249
|
data, _status_code, _headers = webhooks_read_with_http_info(uuid, opts)
|
255
|
-
|
250
|
+
data
|
256
251
|
end
|
257
252
|
|
258
253
|
# Retrieve a Webhook
|
@@ -262,14 +257,14 @@ module SignRequestClient
|
|
262
257
|
# @return [Array<(WebhookSubscription, Fixnum, Hash)>] WebhookSubscription data, response status code and response headers
|
263
258
|
def webhooks_read_with_http_info(uuid, opts = {})
|
264
259
|
if @api_client.config.debugging
|
265
|
-
@api_client.config.logger.debug
|
260
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_read ...'
|
266
261
|
end
|
267
262
|
# verify the required parameter 'uuid' is set
|
268
263
|
if @api_client.config.client_side_validation && uuid.nil?
|
269
264
|
fail ArgumentError, "Missing the required parameter 'uuid' when calling WebhooksApi.webhooks_read"
|
270
265
|
end
|
271
266
|
# resource path
|
272
|
-
local_var_path =
|
267
|
+
local_var_path = '/webhooks/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
273
268
|
|
274
269
|
# query parameters
|
275
270
|
query_params = {}
|
@@ -299,7 +294,6 @@ module SignRequestClient
|
|
299
294
|
end
|
300
295
|
return data, status_code, headers
|
301
296
|
end
|
302
|
-
|
303
297
|
# Update a Webhook
|
304
298
|
#
|
305
299
|
# @param uuid
|
@@ -308,7 +302,7 @@ module SignRequestClient
|
|
308
302
|
# @return [WebhookSubscription]
|
309
303
|
def webhooks_update(uuid, data, opts = {})
|
310
304
|
data, _status_code, _headers = webhooks_update_with_http_info(uuid, data, opts)
|
311
|
-
|
305
|
+
data
|
312
306
|
end
|
313
307
|
|
314
308
|
# Update a Webhook
|
@@ -319,7 +313,7 @@ module SignRequestClient
|
|
319
313
|
# @return [Array<(WebhookSubscription, Fixnum, Hash)>] WebhookSubscription data, response status code and response headers
|
320
314
|
def webhooks_update_with_http_info(uuid, data, opts = {})
|
321
315
|
if @api_client.config.debugging
|
322
|
-
@api_client.config.logger.debug
|
316
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_update ...'
|
323
317
|
end
|
324
318
|
# verify the required parameter 'uuid' is set
|
325
319
|
if @api_client.config.client_side_validation && uuid.nil?
|
@@ -330,7 +324,7 @@ module SignRequestClient
|
|
330
324
|
fail ArgumentError, "Missing the required parameter 'data' when calling WebhooksApi.webhooks_update"
|
331
325
|
end
|
332
326
|
# resource path
|
333
|
-
local_var_path =
|
327
|
+
local_var_path = '/webhooks/{uuid}/'.sub('{' + 'uuid' + '}', uuid.to_s)
|
334
328
|
|
335
329
|
# query parameters
|
336
330
|
query_params = {}
|