assinafy 2.0.0 → 2.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 +4 -4
- data/CHANGELOG.md +23 -0
- data/README.en.md +33 -8
- data/README.md +39 -3
- data/docs/API_REFERENCE.md +155 -13
- data/lib/assinafy/client.rb +4 -0
- data/lib/assinafy/resources/account_resource.rb +1 -0
- data/lib/assinafy/resources/assignment_resource.rb +22 -11
- data/lib/assinafy/resources/contract_resource.rb +450 -0
- data/lib/assinafy/resources/document_resource.rb +3 -0
- data/lib/assinafy/resources/user_resource.rb +18 -6
- data/lib/assinafy/resources/webhook_resource.rb +35 -5
- data/lib/assinafy/version.rb +1 -1
- data/lib/assinafy.rb +1 -0
- data/sig/assinafy.rbs +19 -0
- metadata +4 -3
data/lib/assinafy.rb
CHANGED
|
@@ -17,6 +17,7 @@ require_relative 'assinafy/resources/oauth_resource'
|
|
|
17
17
|
require_relative 'assinafy/resources/account_resource'
|
|
18
18
|
require_relative 'assinafy/resources/user_resource'
|
|
19
19
|
require_relative 'assinafy/resources/document_resource'
|
|
20
|
+
require_relative 'assinafy/resources/contract_resource'
|
|
20
21
|
require_relative 'assinafy/resources/signer_resource'
|
|
21
22
|
require_relative 'assinafy/resources/signer_document_resource'
|
|
22
23
|
require_relative 'assinafy/resources/assignment_resource'
|
data/sig/assinafy.rbs
CHANGED
|
@@ -283,6 +283,23 @@ module Assinafy
|
|
|
283
283
|
def signing_progress: (String document_id) -> signing_progress
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
class ContractResource < BaseResource
|
|
287
|
+
STATUSES: Array[String]
|
|
288
|
+
RELATION_TYPES: Array[String]
|
|
289
|
+
SORTS: Array[String]
|
|
290
|
+
LIST_FIELDS: Array[String]
|
|
291
|
+
UPDATE_FIELDS: Array[String]
|
|
292
|
+
RENEW_FIELDS: Array[String]
|
|
293
|
+
TERMINATE_FIELDS: Array[String]
|
|
294
|
+
|
|
295
|
+
def list: (?params params, ?String? account_id_override) -> list_result
|
|
296
|
+
def get: (String document_id, ?String? account_id_override) -> api_object?
|
|
297
|
+
def update: (String document_id, params payload, ?String? account_id_override) -> api_object
|
|
298
|
+
def related: (String document_id, ?String? account_id_override) -> api_object?
|
|
299
|
+
def renew: (String document_id, params payload, ?String? account_id_override) -> api_object
|
|
300
|
+
def terminate: (String document_id, ?params payload, ?String? account_id_override) -> api_object
|
|
301
|
+
end
|
|
302
|
+
|
|
286
303
|
class SignerResource < BaseResource
|
|
287
304
|
EMAIL_REGEX: Regexp
|
|
288
305
|
SIGNATURE_TYPES: Array[String]
|
|
@@ -336,6 +353,7 @@ module Assinafy
|
|
|
336
353
|
METHODS: Array[String]
|
|
337
354
|
VERIFICATION_METHODS: Array[String]
|
|
338
355
|
NOTIFICATION_METHODS: Array[String]
|
|
356
|
+
DIGITAL_CERTIFICATE_REQUIRES_VIRTUAL: String
|
|
339
357
|
SIGN_ITEM_KEY_MAP: Hash[String, String]
|
|
340
358
|
IDENTITY_REVIEW_IMAGES: Array[String]
|
|
341
359
|
|
|
@@ -444,6 +462,7 @@ module Assinafy
|
|
|
444
462
|
attr_reader accounts: Resources::AccountResource
|
|
445
463
|
attr_reader users: Resources::UserResource
|
|
446
464
|
attr_reader documents: Resources::DocumentResource
|
|
465
|
+
attr_reader contracts: Resources::ContractResource
|
|
447
466
|
attr_reader signers: Resources::SignerResource
|
|
448
467
|
attr_reader signer_documents: Resources::SignerDocumentResource
|
|
449
468
|
attr_reader assignments: Resources::AssignmentResource
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: assinafy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Assinafy SDK Contributors
|
|
@@ -134,8 +134,8 @@ dependencies:
|
|
|
134
134
|
- !ruby/object:Gem::Version
|
|
135
135
|
version: '3.0'
|
|
136
136
|
description: Ruby SDK for Assinafy. Covers the documented authentication, OAuth 2.1,
|
|
137
|
-
account, user, document, signer, assignment, webhook, template, tag, and
|
|
138
|
-
plus the high-level upload_and_request_signatures helper.
|
|
137
|
+
account, user, document, contract, signer, assignment, webhook, template, tag, and
|
|
138
|
+
field APIs, plus the high-level upload_and_request_signatures helper.
|
|
139
139
|
email:
|
|
140
140
|
- sdk@assinafy.com.br
|
|
141
141
|
executables: []
|
|
@@ -157,6 +157,7 @@ files:
|
|
|
157
157
|
- lib/assinafy/resources/assignment_resource.rb
|
|
158
158
|
- lib/assinafy/resources/auth_resource.rb
|
|
159
159
|
- lib/assinafy/resources/base_resource.rb
|
|
160
|
+
- lib/assinafy/resources/contract_resource.rb
|
|
160
161
|
- lib/assinafy/resources/document_resource.rb
|
|
161
162
|
- lib/assinafy/resources/field_resource.rb
|
|
162
163
|
- lib/assinafy/resources/oauth_resource.rb
|