signrequest_client 0.1.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 +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE +21 -0
- data/README.md +122 -0
- data/Rakefile +9 -0
- data/docs/ApiTokensApi.md +226 -0
- data/docs/AuthToken.md +13 -0
- data/docs/Document.md +33 -0
- data/docs/DocumentAttachment.md +15 -0
- data/docs/DocumentAttachmentsApi.md +179 -0
- data/docs/DocumentSearch.md +22 -0
- data/docs/DocumentSignerTemplateConf.md +14 -0
- data/docs/DocumentsApi.md +301 -0
- data/docs/DocumentsSearchApi.md +119 -0
- data/docs/Event.md +17 -0
- data/docs/EventsApi.md +145 -0
- data/docs/FileFromSf.md +9 -0
- data/docs/InlineDocumentSignerIntegrationData.md +9 -0
- data/docs/InlineIntegrationData.md +9 -0
- data/docs/InlinePrefillTags.md +11 -0
- data/docs/InlineResponse200.md +11 -0
- data/docs/InlineResponse2001.md +11 -0
- data/docs/InlineResponse2002.md +11 -0
- data/docs/InlineResponse2003.md +11 -0
- data/docs/InlineResponse2004.md +11 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/InlineResponse2007.md +11 -0
- data/docs/InlineResponse2008.md +11 -0
- data/docs/InlineResponse2009.md +11 -0
- data/docs/InlineSignRequest.md +25 -0
- data/docs/InlineTeam.md +10 -0
- data/docs/InlineTeamMember.md +13 -0
- data/docs/InviteMember.md +10 -0
- data/docs/Placeholder.md +15 -0
- data/docs/RequiredAttachment.md +9 -0
- data/docs/SignRequest.md +29 -0
- data/docs/SignRequestQuickCreate.md +42 -0
- data/docs/Signer.md +40 -0
- data/docs/SignerAttachment.md +11 -0
- data/docs/SignerInputs.md +14 -0
- data/docs/SigningLog.md +9 -0
- data/docs/SignrequestQuickCreateApi.md +62 -0
- data/docs/SignrequestsApi.md +291 -0
- data/docs/Team.md +15 -0
- data/docs/TeamMember.md +14 -0
- data/docs/TeamMembersApi.md +131 -0
- data/docs/TeamsApi.md +344 -0
- data/docs/Template.md +14 -0
- data/docs/TemplatesApi.md +119 -0
- data/docs/User.md +11 -0
- data/docs/WebhookSubscription.md +15 -0
- data/docs/WebhooksApi.md +340 -0
- data/git_push.sh +55 -0
- data/lib/signrequest_client/api/api_tokens_api.rb +242 -0
- data/lib/signrequest_client/api/document_attachments_api.rb +197 -0
- data/lib/signrequest_client/api/documents_api.rb +330 -0
- data/lib/signrequest_client/api/documents_search_api.rb +133 -0
- data/lib/signrequest_client/api/events_api.rb +172 -0
- data/lib/signrequest_client/api/signrequest_quick_create_api.rb +78 -0
- data/lib/signrequest_client/api/signrequests_api.rb +316 -0
- data/lib/signrequest_client/api/team_members_api.rb +151 -0
- data/lib/signrequest_client/api/teams_api.rb +371 -0
- data/lib/signrequest_client/api/templates_api.rb +133 -0
- data/lib/signrequest_client/api/webhooks_api.rb +364 -0
- data/lib/signrequest_client/api_client.rb +389 -0
- data/lib/signrequest_client/api_error.rb +38 -0
- data/lib/signrequest_client/configuration.rb +209 -0
- data/lib/signrequest_client/models/auth_token.rb +298 -0
- data/lib/signrequest_client/models/document.rb +605 -0
- data/lib/signrequest_client/models/document_attachment.rb +304 -0
- data/lib/signrequest_client/models/document_search.rb +519 -0
- data/lib/signrequest_client/models/document_signer_template_conf.rb +294 -0
- data/lib/signrequest_client/models/event.rb +330 -0
- data/lib/signrequest_client/models/file_from_sf.rb +245 -0
- data/lib/signrequest_client/models/inline_document_signer_integration_data.rb +230 -0
- data/lib/signrequest_client/models/inline_integration_data.rb +230 -0
- data/lib/signrequest_client/models/inline_prefill_tags.rb +231 -0
- data/lib/signrequest_client/models/inline_response_200.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_1.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_2.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_3.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_4.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_5.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_6.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_7.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_8.rb +227 -0
- data/lib/signrequest_client/models/inline_response_200_9.rb +227 -0
- data/lib/signrequest_client/models/inline_sign_request.rb +496 -0
- data/lib/signrequest_client/models/inline_team.rb +247 -0
- data/lib/signrequest_client/models/inline_team_member.rb +249 -0
- data/lib/signrequest_client/models/invite_member.rb +234 -0
- data/lib/signrequest_client/models/placeholder.rb +326 -0
- data/lib/signrequest_client/models/required_attachment.rb +246 -0
- data/lib/signrequest_client/models/sign_request.rb +543 -0
- data/lib/signrequest_client/models/sign_request_quick_create.rb +764 -0
- data/lib/signrequest_client/models/signer.rb +751 -0
- data/lib/signrequest_client/models/signer_attachment.rb +247 -0
- data/lib/signrequest_client/models/signer_inputs.rb +312 -0
- data/lib/signrequest_client/models/signing_log.rb +213 -0
- data/lib/signrequest_client/models/team.rb +367 -0
- data/lib/signrequest_client/models/team_member.rb +258 -0
- data/lib/signrequest_client/models/template.rb +309 -0
- data/lib/signrequest_client/models/user.rb +296 -0
- data/lib/signrequest_client/models/webhook_subscription.rb +366 -0
- data/lib/signrequest_client/version.rb +15 -0
- data/lib/signrequest_client.rb +87 -0
- data/pkg/signrequest_client-0.1.0.gem +0 -0
- data/signrequest_client.gemspec +45 -0
- data/signrequst_client/.git/HEAD +1 -0
- data/signrequst_client/.git/config +7 -0
- data/signrequst_client/.git/description +1 -0
- data/signrequst_client/.git/hooks/applypatch-msg.sample +15 -0
- data/signrequst_client/.git/hooks/commit-msg.sample +24 -0
- data/signrequst_client/.git/hooks/fsmonitor-watchman.sample +114 -0
- data/signrequst_client/.git/hooks/post-update.sample +8 -0
- data/signrequst_client/.git/hooks/pre-applypatch.sample +14 -0
- data/signrequst_client/.git/hooks/pre-commit.sample +49 -0
- data/signrequst_client/.git/hooks/pre-push.sample +53 -0
- data/signrequst_client/.git/hooks/pre-rebase.sample +169 -0
- data/signrequst_client/.git/hooks/pre-receive.sample +24 -0
- data/signrequst_client/.git/hooks/prepare-commit-msg.sample +42 -0
- data/signrequst_client/.git/hooks/update.sample +128 -0
- data/signrequst_client/.git/index +0 -0
- data/signrequst_client/.git/info/exclude +6 -0
- data/signrequst_client/.git/objects/30/68cc8a074ffc0c7b8891cb21d68b5d367cb8c4 +0 -0
- data/signrequst_client/.git/objects/32/c4b7e9f988621ed2ce28954f1aaf088f340848 +2 -0
- data/signrequst_client/.git/objects/3e/8c4c2f8d1d5334612f3072160124e985f27e8c +0 -0
- data/signrequst_client/.git/objects/43/022f711e20ed55baf2470278eb8e428a04856f +0 -0
- data/signrequst_client/.git/objects/6f/8caa83dfb6dc8a987a2829cbfefae18c8870c3 +0 -0
- data/signrequst_client/.git/objects/91/06b2a345b019a799c02e5069affa88370b35dd +0 -0
- data/signrequst_client/.git/objects/aa/58e53f733551ac2bde6f7a50b5a9f16ddbf110 +0 -0
- data/signrequst_client/.git/objects/dc/e67d860af47a4eb630117ce03624bae45dcf26 +3 -0
- data/signrequst_client/.git/objects/f1/c9171bed4c19fd22429ffd68d4cbb2c3ce2fce +0 -0
- data/signrequst_client/.git/objects/f8/e4c2573ebc57d5a365ebe14d5c18cc8d0716c4 +0 -0
- data/spec/api/api_tokens_api_spec.rb +84 -0
- data/spec/api/document_attachments_api_spec.rb +75 -0
- data/spec/api/documents_api_spec.rb +106 -0
- data/spec/api/documents_search_api_spec.rb +60 -0
- data/spec/api/events_api_spec.rb +73 -0
- data/spec/api/signrequest_quick_create_api_spec.rb +47 -0
- data/spec/api/signrequests_api_spec.rb +100 -0
- data/spec/api/team_members_api_spec.rb +66 -0
- data/spec/api/teams_api_spec.rb +111 -0
- data/spec/api/templates_api_spec.rb +60 -0
- data/spec/api/webhooks_api_spec.rb +110 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/auth_token_spec.rb +72 -0
- data/spec/models/document_attachment_spec.rb +84 -0
- data/spec/models/document_search_spec.rb +126 -0
- data/spec/models/document_signer_template_conf_spec.rb +78 -0
- data/spec/models/document_spec.rb +196 -0
- data/spec/models/event_spec.rb +104 -0
- data/spec/models/file_from_sf_spec.rb +48 -0
- data/spec/models/inline_document_signer_integration_data_spec.rb +52 -0
- data/spec/models/inline_integration_data_spec.rb +52 -0
- data/spec/models/inline_prefill_tags_spec.rb +60 -0
- data/spec/models/inline_response_200_1_spec.rb +60 -0
- data/spec/models/inline_response_200_2_spec.rb +60 -0
- data/spec/models/inline_response_200_3_spec.rb +60 -0
- data/spec/models/inline_response_200_4_spec.rb +60 -0
- data/spec/models/inline_response_200_5_spec.rb +60 -0
- data/spec/models/inline_response_200_6_spec.rb +60 -0
- data/spec/models/inline_response_200_7_spec.rb +60 -0
- data/spec/models/inline_response_200_8_spec.rb +60 -0
- data/spec/models/inline_response_200_9_spec.rb +60 -0
- data/spec/models/inline_response_200_spec.rb +60 -0
- data/spec/models/inline_sign_request_spec.rb +148 -0
- data/spec/models/inline_team_member_spec.rb +72 -0
- data/spec/models/inline_team_spec.rb +54 -0
- data/spec/models/invite_member_spec.rb +54 -0
- data/spec/models/placeholder_spec.rb +88 -0
- data/spec/models/required_attachment_spec.rb +48 -0
- data/spec/models/sign_request_quick_create_spec.rb +254 -0
- data/spec/models/sign_request_spec.rb +176 -0
- data/spec/models/signer_attachment_spec.rb +60 -0
- data/spec/models/signer_inputs_spec.rb +82 -0
- data/spec/models/signer_spec.rb +238 -0
- data/spec/models/signing_log_spec.rb +48 -0
- data/spec/models/team_member_spec.rb +78 -0
- data/spec/models/team_spec.rb +84 -0
- data/spec/models/template_spec.rb +82 -0
- data/spec/models/user_spec.rb +60 -0
- data/spec/models/webhook_subscription_spec.rb +92 -0
- data/spec/spec_helper.rb +111 -0
- metadata +461 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SignRequest API
|
|
3
|
+
|
|
4
|
+
#API for SignRequest.com
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: tech-support@signrequest.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require "uri"
|
|
14
|
+
|
|
15
|
+
module SignRequestClient
|
|
16
|
+
class EventsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :document__uuid
|
|
27
|
+
# @option opts [String] :document__external_id
|
|
28
|
+
# @option opts [String] :document__signrequest__who
|
|
29
|
+
# @option opts [String] :document__signrequest__from_email
|
|
30
|
+
# @option opts [String] :document__status
|
|
31
|
+
# @option opts [String] :document__user__email
|
|
32
|
+
# @option opts [String] :document__user__first_name
|
|
33
|
+
# @option opts [String] :document__user__last_name
|
|
34
|
+
# @option opts [String] :delivered
|
|
35
|
+
# @option opts [String] :delivered_on
|
|
36
|
+
# @option opts [String] :timestamp
|
|
37
|
+
# @option opts [String] :status
|
|
38
|
+
# @option opts [String] :event_type
|
|
39
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
40
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
|
+
# @return [InlineResponse2004]
|
|
42
|
+
def events_list(opts = {})
|
|
43
|
+
data, _status_code, _headers = events_list_with_http_info(opts)
|
|
44
|
+
return data
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
#
|
|
48
|
+
#
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @option opts [String] :document__uuid
|
|
51
|
+
# @option opts [String] :document__external_id
|
|
52
|
+
# @option opts [String] :document__signrequest__who
|
|
53
|
+
# @option opts [String] :document__signrequest__from_email
|
|
54
|
+
# @option opts [String] :document__status
|
|
55
|
+
# @option opts [String] :document__user__email
|
|
56
|
+
# @option opts [String] :document__user__first_name
|
|
57
|
+
# @option opts [String] :document__user__last_name
|
|
58
|
+
# @option opts [String] :delivered
|
|
59
|
+
# @option opts [String] :delivered_on
|
|
60
|
+
# @option opts [String] :timestamp
|
|
61
|
+
# @option opts [String] :status
|
|
62
|
+
# @option opts [String] :event_type
|
|
63
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
64
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
65
|
+
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
|
66
|
+
def events_list_with_http_info(opts = {})
|
|
67
|
+
if @api_client.config.debugging
|
|
68
|
+
@api_client.config.logger.debug "Calling API: EventsApi.events_list ..."
|
|
69
|
+
end
|
|
70
|
+
# resource path
|
|
71
|
+
local_var_path = "/events/"
|
|
72
|
+
|
|
73
|
+
# query parameters
|
|
74
|
+
query_params = {}
|
|
75
|
+
query_params[:'document__uuid'] = opts[:'document__uuid'] if !opts[:'document__uuid'].nil?
|
|
76
|
+
query_params[:'document__external_id'] = opts[:'document__external_id'] if !opts[:'document__external_id'].nil?
|
|
77
|
+
query_params[:'document__signrequest__who'] = opts[:'document__signrequest__who'] if !opts[:'document__signrequest__who'].nil?
|
|
78
|
+
query_params[:'document__signrequest__from_email'] = opts[:'document__signrequest__from_email'] if !opts[:'document__signrequest__from_email'].nil?
|
|
79
|
+
query_params[:'document__status'] = opts[:'document__status'] if !opts[:'document__status'].nil?
|
|
80
|
+
query_params[:'document__user__email'] = opts[:'document__user__email'] if !opts[:'document__user__email'].nil?
|
|
81
|
+
query_params[:'document__user__first_name'] = opts[:'document__user__first_name'] if !opts[:'document__user__first_name'].nil?
|
|
82
|
+
query_params[:'document__user__last_name'] = opts[:'document__user__last_name'] if !opts[:'document__user__last_name'].nil?
|
|
83
|
+
query_params[:'delivered'] = opts[:'delivered'] if !opts[:'delivered'].nil?
|
|
84
|
+
query_params[:'delivered_on'] = opts[:'delivered_on'] if !opts[:'delivered_on'].nil?
|
|
85
|
+
query_params[:'timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
|
|
86
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
87
|
+
query_params[:'event_type'] = opts[:'event_type'] if !opts[:'event_type'].nil?
|
|
88
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
89
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
90
|
+
|
|
91
|
+
# header parameters
|
|
92
|
+
header_params = {}
|
|
93
|
+
# HTTP header 'Accept' (if needed)
|
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
95
|
+
# HTTP header 'Content-Type'
|
|
96
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
97
|
+
|
|
98
|
+
# form parameters
|
|
99
|
+
form_params = {}
|
|
100
|
+
|
|
101
|
+
# http body (model)
|
|
102
|
+
post_body = nil
|
|
103
|
+
auth_names = ['Token']
|
|
104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
105
|
+
:header_params => header_params,
|
|
106
|
+
:query_params => query_params,
|
|
107
|
+
:form_params => form_params,
|
|
108
|
+
:body => post_body,
|
|
109
|
+
:auth_names => auth_names,
|
|
110
|
+
:return_type => 'InlineResponse2004')
|
|
111
|
+
if @api_client.config.debugging
|
|
112
|
+
@api_client.config.logger.debug "API called: EventsApi#events_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
113
|
+
end
|
|
114
|
+
return data, status_code, headers
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
#
|
|
118
|
+
#
|
|
119
|
+
# @param id A unique integer value identifying this event.
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @return [Event]
|
|
122
|
+
def events_read(id, opts = {})
|
|
123
|
+
data, _status_code, _headers = events_read_with_http_info(id, opts)
|
|
124
|
+
return data
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
#
|
|
128
|
+
#
|
|
129
|
+
# @param id A unique integer value identifying this event.
|
|
130
|
+
# @param [Hash] opts the optional parameters
|
|
131
|
+
# @return [Array<(Event, Fixnum, Hash)>] Event data, response status code and response headers
|
|
132
|
+
def events_read_with_http_info(id, opts = {})
|
|
133
|
+
if @api_client.config.debugging
|
|
134
|
+
@api_client.config.logger.debug "Calling API: EventsApi.events_read ..."
|
|
135
|
+
end
|
|
136
|
+
# verify the required parameter 'id' is set
|
|
137
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EventsApi.events_read"
|
|
139
|
+
end
|
|
140
|
+
# resource path
|
|
141
|
+
local_var_path = "/events/{id}/".sub('{' + 'id' + '}', id.to_s)
|
|
142
|
+
|
|
143
|
+
# query parameters
|
|
144
|
+
query_params = {}
|
|
145
|
+
|
|
146
|
+
# header parameters
|
|
147
|
+
header_params = {}
|
|
148
|
+
# HTTP header 'Accept' (if needed)
|
|
149
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
150
|
+
# HTTP header 'Content-Type'
|
|
151
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
152
|
+
|
|
153
|
+
# form parameters
|
|
154
|
+
form_params = {}
|
|
155
|
+
|
|
156
|
+
# http body (model)
|
|
157
|
+
post_body = nil
|
|
158
|
+
auth_names = ['Token']
|
|
159
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
160
|
+
:header_params => header_params,
|
|
161
|
+
:query_params => query_params,
|
|
162
|
+
:form_params => form_params,
|
|
163
|
+
:body => post_body,
|
|
164
|
+
:auth_names => auth_names,
|
|
165
|
+
:return_type => 'Event')
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug "API called: EventsApi#events_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
168
|
+
end
|
|
169
|
+
return data, status_code, headers
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SignRequest API
|
|
3
|
+
|
|
4
|
+
#API for SignRequest.com
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: tech-support@signrequest.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require "uri"
|
|
14
|
+
|
|
15
|
+
module SignRequestClient
|
|
16
|
+
class SignrequestQuickCreateApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# @param data
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [SignRequestQuickCreate]
|
|
28
|
+
def signrequest_quick_create_create(data, opts = {})
|
|
29
|
+
data, _status_code, _headers = signrequest_quick_create_create_with_http_info(data, opts)
|
|
30
|
+
return data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
#
|
|
34
|
+
#
|
|
35
|
+
# @param data
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [Array<(SignRequestQuickCreate, Fixnum, Hash)>] SignRequestQuickCreate data, response status code and response headers
|
|
38
|
+
def signrequest_quick_create_create_with_http_info(data, opts = {})
|
|
39
|
+
if @api_client.config.debugging
|
|
40
|
+
@api_client.config.logger.debug "Calling API: SignrequestQuickCreateApi.signrequest_quick_create_create ..."
|
|
41
|
+
end
|
|
42
|
+
# verify the required parameter 'data' is set
|
|
43
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling SignrequestQuickCreateApi.signrequest_quick_create_create"
|
|
45
|
+
end
|
|
46
|
+
# resource path
|
|
47
|
+
local_var_path = "/signrequest-quick-create/"
|
|
48
|
+
|
|
49
|
+
# query parameters
|
|
50
|
+
query_params = {}
|
|
51
|
+
|
|
52
|
+
# header parameters
|
|
53
|
+
header_params = {}
|
|
54
|
+
# HTTP header 'Accept' (if needed)
|
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
56
|
+
# HTTP header 'Content-Type'
|
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = @api_client.object_to_http_body(data)
|
|
64
|
+
auth_names = ['Token']
|
|
65
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
66
|
+
:header_params => header_params,
|
|
67
|
+
:query_params => query_params,
|
|
68
|
+
:form_params => form_params,
|
|
69
|
+
:body => post_body,
|
|
70
|
+
:auth_names => auth_names,
|
|
71
|
+
:return_type => 'SignRequestQuickCreate')
|
|
72
|
+
if @api_client.config.debugging
|
|
73
|
+
@api_client.config.logger.debug "API called: SignrequestQuickCreateApi#signrequest_quick_create_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
74
|
+
end
|
|
75
|
+
return data, status_code, headers
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SignRequest API
|
|
3
|
+
|
|
4
|
+
#API for SignRequest.com
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: tech-support@signrequest.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require "uri"
|
|
14
|
+
|
|
15
|
+
module SignRequestClient
|
|
16
|
+
class SignrequestsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
# @param uuid
|
|
26
|
+
# @param data
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [SignRequest]
|
|
29
|
+
def signrequests_cancel_signrequest(uuid, data, opts = {})
|
|
30
|
+
data, _status_code, _headers = signrequests_cancel_signrequest_with_http_info(uuid, data, opts)
|
|
31
|
+
return data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
#
|
|
35
|
+
#
|
|
36
|
+
# @param uuid
|
|
37
|
+
# @param data
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Array<(SignRequest, Fixnum, Hash)>] SignRequest data, response status code and response headers
|
|
40
|
+
def signrequests_cancel_signrequest_with_http_info(uuid, data, opts = {})
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
@api_client.config.logger.debug "Calling API: SignrequestsApi.signrequests_cancel_signrequest ..."
|
|
43
|
+
end
|
|
44
|
+
# verify the required parameter 'uuid' is set
|
|
45
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling SignrequestsApi.signrequests_cancel_signrequest"
|
|
47
|
+
end
|
|
48
|
+
# verify the required parameter 'data' is set
|
|
49
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling SignrequestsApi.signrequests_cancel_signrequest"
|
|
51
|
+
end
|
|
52
|
+
# resource path
|
|
53
|
+
local_var_path = "/signrequests/{uuid}/cancel_signrequest/".sub('{' + 'uuid' + '}', uuid.to_s)
|
|
54
|
+
|
|
55
|
+
# query parameters
|
|
56
|
+
query_params = {}
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
62
|
+
# HTTP header 'Content-Type'
|
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = @api_client.object_to_http_body(data)
|
|
70
|
+
auth_names = ['Token']
|
|
71
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
72
|
+
:header_params => header_params,
|
|
73
|
+
:query_params => query_params,
|
|
74
|
+
:form_params => form_params,
|
|
75
|
+
:body => post_body,
|
|
76
|
+
:auth_names => auth_names,
|
|
77
|
+
:return_type => 'SignRequest')
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: SignrequestsApi#signrequests_cancel_signrequest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
#
|
|
85
|
+
#
|
|
86
|
+
# @param data
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [SignRequest]
|
|
89
|
+
def signrequests_create(data, opts = {})
|
|
90
|
+
data, _status_code, _headers = signrequests_create_with_http_info(data, opts)
|
|
91
|
+
return data
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
#
|
|
95
|
+
#
|
|
96
|
+
# @param data
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Array<(SignRequest, Fixnum, Hash)>] SignRequest data, response status code and response headers
|
|
99
|
+
def signrequests_create_with_http_info(data, opts = {})
|
|
100
|
+
if @api_client.config.debugging
|
|
101
|
+
@api_client.config.logger.debug "Calling API: SignrequestsApi.signrequests_create ..."
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'data' is set
|
|
104
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling SignrequestsApi.signrequests_create"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = "/signrequests/"
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
117
|
+
# HTTP header 'Content-Type'
|
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = @api_client.object_to_http_body(data)
|
|
125
|
+
auth_names = ['Token']
|
|
126
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
127
|
+
:header_params => header_params,
|
|
128
|
+
:query_params => query_params,
|
|
129
|
+
:form_params => form_params,
|
|
130
|
+
:body => post_body,
|
|
131
|
+
:auth_names => auth_names,
|
|
132
|
+
:return_type => 'SignRequest')
|
|
133
|
+
if @api_client.config.debugging
|
|
134
|
+
@api_client.config.logger.debug "API called: SignrequestsApi#signrequests_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
135
|
+
end
|
|
136
|
+
return data, status_code, headers
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
#
|
|
140
|
+
#
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @option opts [String] :who
|
|
143
|
+
# @option opts [String] :from_email
|
|
144
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
145
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
146
|
+
# @return [InlineResponse2005]
|
|
147
|
+
def signrequests_list(opts = {})
|
|
148
|
+
data, _status_code, _headers = signrequests_list_with_http_info(opts)
|
|
149
|
+
return data
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
#
|
|
153
|
+
#
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @option opts [String] :who
|
|
156
|
+
# @option opts [String] :from_email
|
|
157
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
158
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
159
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
|
160
|
+
def signrequests_list_with_http_info(opts = {})
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug "Calling API: SignrequestsApi.signrequests_list ..."
|
|
163
|
+
end
|
|
164
|
+
# resource path
|
|
165
|
+
local_var_path = "/signrequests/"
|
|
166
|
+
|
|
167
|
+
# query parameters
|
|
168
|
+
query_params = {}
|
|
169
|
+
query_params[:'who'] = opts[:'who'] if !opts[:'who'].nil?
|
|
170
|
+
query_params[:'from_email'] = opts[:'from_email'] if !opts[:'from_email'].nil?
|
|
171
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
172
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
173
|
+
|
|
174
|
+
# header parameters
|
|
175
|
+
header_params = {}
|
|
176
|
+
# HTTP header 'Accept' (if needed)
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
178
|
+
# HTTP header 'Content-Type'
|
|
179
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
180
|
+
|
|
181
|
+
# form parameters
|
|
182
|
+
form_params = {}
|
|
183
|
+
|
|
184
|
+
# http body (model)
|
|
185
|
+
post_body = nil
|
|
186
|
+
auth_names = ['Token']
|
|
187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
188
|
+
:header_params => header_params,
|
|
189
|
+
:query_params => query_params,
|
|
190
|
+
:form_params => form_params,
|
|
191
|
+
:body => post_body,
|
|
192
|
+
:auth_names => auth_names,
|
|
193
|
+
:return_type => 'InlineResponse2005')
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug "API called: SignrequestsApi#signrequests_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
196
|
+
end
|
|
197
|
+
return data, status_code, headers
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
#
|
|
201
|
+
#
|
|
202
|
+
# @param uuid
|
|
203
|
+
# @param [Hash] opts the optional parameters
|
|
204
|
+
# @return [SignRequest]
|
|
205
|
+
def signrequests_read(uuid, opts = {})
|
|
206
|
+
data, _status_code, _headers = signrequests_read_with_http_info(uuid, opts)
|
|
207
|
+
return data
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
#
|
|
211
|
+
#
|
|
212
|
+
# @param uuid
|
|
213
|
+
# @param [Hash] opts the optional parameters
|
|
214
|
+
# @return [Array<(SignRequest, Fixnum, Hash)>] SignRequest data, response status code and response headers
|
|
215
|
+
def signrequests_read_with_http_info(uuid, opts = {})
|
|
216
|
+
if @api_client.config.debugging
|
|
217
|
+
@api_client.config.logger.debug "Calling API: SignrequestsApi.signrequests_read ..."
|
|
218
|
+
end
|
|
219
|
+
# verify the required parameter 'uuid' is set
|
|
220
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
221
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling SignrequestsApi.signrequests_read"
|
|
222
|
+
end
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = "/signrequests/{uuid}/".sub('{' + 'uuid' + '}', uuid.to_s)
|
|
225
|
+
|
|
226
|
+
# query parameters
|
|
227
|
+
query_params = {}
|
|
228
|
+
|
|
229
|
+
# header parameters
|
|
230
|
+
header_params = {}
|
|
231
|
+
# HTTP header 'Accept' (if needed)
|
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
233
|
+
# HTTP header 'Content-Type'
|
|
234
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
235
|
+
|
|
236
|
+
# form parameters
|
|
237
|
+
form_params = {}
|
|
238
|
+
|
|
239
|
+
# http body (model)
|
|
240
|
+
post_body = nil
|
|
241
|
+
auth_names = ['Token']
|
|
242
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
243
|
+
:header_params => header_params,
|
|
244
|
+
:query_params => query_params,
|
|
245
|
+
:form_params => form_params,
|
|
246
|
+
:body => post_body,
|
|
247
|
+
:auth_names => auth_names,
|
|
248
|
+
:return_type => 'SignRequest')
|
|
249
|
+
if @api_client.config.debugging
|
|
250
|
+
@api_client.config.logger.debug "API called: SignrequestsApi#signrequests_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
251
|
+
end
|
|
252
|
+
return data, status_code, headers
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
#
|
|
256
|
+
#
|
|
257
|
+
# @param uuid
|
|
258
|
+
# @param data
|
|
259
|
+
# @param [Hash] opts the optional parameters
|
|
260
|
+
# @return [SignRequest]
|
|
261
|
+
def signrequests_resend_signrequest_email(uuid, data, opts = {})
|
|
262
|
+
data, _status_code, _headers = signrequests_resend_signrequest_email_with_http_info(uuid, data, opts)
|
|
263
|
+
return data
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
#
|
|
267
|
+
#
|
|
268
|
+
# @param uuid
|
|
269
|
+
# @param data
|
|
270
|
+
# @param [Hash] opts the optional parameters
|
|
271
|
+
# @return [Array<(SignRequest, Fixnum, Hash)>] SignRequest data, response status code and response headers
|
|
272
|
+
def signrequests_resend_signrequest_email_with_http_info(uuid, data, opts = {})
|
|
273
|
+
if @api_client.config.debugging
|
|
274
|
+
@api_client.config.logger.debug "Calling API: SignrequestsApi.signrequests_resend_signrequest_email ..."
|
|
275
|
+
end
|
|
276
|
+
# verify the required parameter 'uuid' is set
|
|
277
|
+
if @api_client.config.client_side_validation && uuid.nil?
|
|
278
|
+
fail ArgumentError, "Missing the required parameter 'uuid' when calling SignrequestsApi.signrequests_resend_signrequest_email"
|
|
279
|
+
end
|
|
280
|
+
# verify the required parameter 'data' is set
|
|
281
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
282
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling SignrequestsApi.signrequests_resend_signrequest_email"
|
|
283
|
+
end
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = "/signrequests/{uuid}/resend_signrequest_email/".sub('{' + 'uuid' + '}', uuid.to_s)
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = {}
|
|
289
|
+
|
|
290
|
+
# header parameters
|
|
291
|
+
header_params = {}
|
|
292
|
+
# HTTP header 'Accept' (if needed)
|
|
293
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
294
|
+
# HTTP header 'Content-Type'
|
|
295
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
296
|
+
|
|
297
|
+
# form parameters
|
|
298
|
+
form_params = {}
|
|
299
|
+
|
|
300
|
+
# http body (model)
|
|
301
|
+
post_body = @api_client.object_to_http_body(data)
|
|
302
|
+
auth_names = ['Token']
|
|
303
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
304
|
+
:header_params => header_params,
|
|
305
|
+
:query_params => query_params,
|
|
306
|
+
:form_params => form_params,
|
|
307
|
+
:body => post_body,
|
|
308
|
+
:auth_names => auth_names,
|
|
309
|
+
:return_type => 'SignRequest')
|
|
310
|
+
if @api_client.config.debugging
|
|
311
|
+
@api_client.config.logger.debug "API called: SignrequestsApi#signrequests_resend_signrequest_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
|
+
end
|
|
313
|
+
return data, status_code, headers
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
end
|