docusign_rooms 1.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +66 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +71 -0
- data/LICENSE +21 -0
- data/README.md +80 -0
- data/Rakefile +8 -0
- data/docusign_rooms-1.0.0.pre.alpha.gem +0 -0
- data/docusign_rooms.gemspec +45 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/docusign_rooms.rb +193 -0
- data/lib/docusign_rooms/.DS_Store +0 -0
- data/lib/docusign_rooms/api/accounts_api.rb +73 -0
- data/lib/docusign_rooms/api/activity_types_api.rb +69 -0
- data/lib/docusign_rooms/api/closing_statuses_api.rb +69 -0
- data/lib/docusign_rooms/api/contact_sides_api.rb +69 -0
- data/lib/docusign_rooms/api/countries_api.rb +69 -0
- data/lib/docusign_rooms/api/currencies_api.rb +69 -0
- data/lib/docusign_rooms/api/documents_api.rb +200 -0
- data/lib/docusign_rooms/api/e_sign_permission_profiles_api.rb +73 -0
- data/lib/docusign_rooms/api/external_form_fill_sessions_api.rb +79 -0
- data/lib/docusign_rooms/api/fields_api.rb +92 -0
- data/lib/docusign_rooms/api/financing_types_api.rb +69 -0
- data/lib/docusign_rooms/api/form_details_api.rb +77 -0
- data/lib/docusign_rooms/api/form_groups_api.rb +89 -0
- data/lib/docusign_rooms/api/form_libraries_api.rb +158 -0
- data/lib/docusign_rooms/api/offices_api.rb +310 -0
- data/lib/docusign_rooms/api/origins_of_leads_api.rb +69 -0
- data/lib/docusign_rooms/api/property_types_api.rb +69 -0
- data/lib/docusign_rooms/api/regions_api.rb +306 -0
- data/lib/docusign_rooms/api/roles_api.rb +328 -0
- data/lib/docusign_rooms/api/room_contact_types_api.rb +69 -0
- data/lib/docusign_rooms/api/room_folders_api.rb +93 -0
- data/lib/docusign_rooms/api/room_templates_api.rb +97 -0
- data/lib/docusign_rooms/api/rooms_api.rb +1146 -0
- data/lib/docusign_rooms/api/seller_decision_types_api.rb +69 -0
- data/lib/docusign_rooms/api/special_circumstance_types_api.rb +69 -0
- data/lib/docusign_rooms/api/states_api.rb +69 -0
- data/lib/docusign_rooms/api/task_date_types_api.rb +69 -0
- data/lib/docusign_rooms/api/task_list_templates_api.rb +89 -0
- data/lib/docusign_rooms/api/task_lists_api.rb +188 -0
- data/lib/docusign_rooms/api/task_responsibility_types_api.rb +69 -0
- data/lib/docusign_rooms/api/task_statuses_api.rb +69 -0
- data/lib/docusign_rooms/api/time_zones_api.rb +69 -0
- data/lib/docusign_rooms/api/transaction_sides_api.rb +69 -0
- data/lib/docusign_rooms/api/users_api.rb +908 -0
- data/lib/docusign_rooms/client/.DS_Store +0 -0
- data/lib/docusign_rooms/client/api_client.rb +590 -0
- data/lib/docusign_rooms/client/api_error.rb +37 -0
- data/lib/docusign_rooms/client/auth/oauth.rb +1061 -0
- data/lib/docusign_rooms/configuration.rb +202 -0
- data/lib/docusign_rooms/models/account_summary.rb +262 -0
- data/lib/docusign_rooms/models/activity_type.rb +192 -0
- data/lib/docusign_rooms/models/api_error.rb +192 -0
- data/lib/docusign_rooms/models/assignable_roles.rb +239 -0
- data/lib/docusign_rooms/models/classic_admin_to_invite.rb +216 -0
- data/lib/docusign_rooms/models/classic_agent_to_invite.rb +240 -0
- data/lib/docusign_rooms/models/classic_manager_permissions.rb +291 -0
- data/lib/docusign_rooms/models/classic_manager_to_invite.rb +338 -0
- data/lib/docusign_rooms/models/closing_status.rb +192 -0
- data/lib/docusign_rooms/models/contact_side.rb +192 -0
- data/lib/docusign_rooms/models/country.rb +192 -0
- data/lib/docusign_rooms/models/currency.rb +192 -0
- data/lib/docusign_rooms/models/custom_data.rb +192 -0
- data/lib/docusign_rooms/models/depends_on.rb +192 -0
- data/lib/docusign_rooms/models/designated_office.rb +188 -0
- data/lib/docusign_rooms/models/designated_region.rb +188 -0
- data/lib/docusign_rooms/models/document.rb +265 -0
- data/lib/docusign_rooms/models/document_user.rb +291 -0
- data/lib/docusign_rooms/models/document_user_for_create.rb +188 -0
- data/lib/docusign_rooms/models/e_sign_account_role_settings.rb +183 -0
- data/lib/docusign_rooms/models/e_sign_permission_profile.rb +201 -0
- data/lib/docusign_rooms/models/e_sign_permission_profile_list.rb +185 -0
- data/lib/docusign_rooms/models/external_form_fill_session.rb +183 -0
- data/lib/docusign_rooms/models/external_form_fill_session_for_create.rb +211 -0
- data/lib/docusign_rooms/models/field.rb +248 -0
- data/lib/docusign_rooms/models/field_configuration.rb +259 -0
- data/lib/docusign_rooms/models/field_data.rb +185 -0
- data/lib/docusign_rooms/models/field_data_for_create.rb +185 -0
- data/lib/docusign_rooms/models/field_data_for_update.rb +185 -0
- data/lib/docusign_rooms/models/field_set.rb +203 -0
- data/lib/docusign_rooms/models/financing_type.rb +192 -0
- data/lib/docusign_rooms/models/form_details.rb +246 -0
- data/lib/docusign_rooms/models/form_for_add.rb +188 -0
- data/lib/docusign_rooms/models/form_group_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_group_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/form_library_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_library_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/form_summary.rb +201 -0
- data/lib/docusign_rooms/models/form_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/global_activity_types.rb +185 -0
- data/lib/docusign_rooms/models/global_closing_statuses.rb +185 -0
- data/lib/docusign_rooms/models/global_contact_sides.rb +185 -0
- data/lib/docusign_rooms/models/global_countries.rb +185 -0
- data/lib/docusign_rooms/models/global_currencies.rb +185 -0
- data/lib/docusign_rooms/models/global_financing_types.rb +185 -0
- data/lib/docusign_rooms/models/global_origins_of_leads.rb +185 -0
- data/lib/docusign_rooms/models/global_property_types.rb +185 -0
- data/lib/docusign_rooms/models/global_room_contact_types.rb +185 -0
- data/lib/docusign_rooms/models/global_seller_decision_types.rb +185 -0
- data/lib/docusign_rooms/models/global_special_circumstance_types.rb +185 -0
- data/lib/docusign_rooms/models/global_states.rb +185 -0
- data/lib/docusign_rooms/models/global_task_date_types.rb +185 -0
- data/lib/docusign_rooms/models/global_task_responsibility_types.rb +185 -0
- data/lib/docusign_rooms/models/global_task_statuses.rb +185 -0
- data/lib/docusign_rooms/models/global_time_zones.rb +185 -0
- data/lib/docusign_rooms/models/global_transaction_sides.rb +185 -0
- data/lib/docusign_rooms/models/locked_out_details.rb +188 -0
- data/lib/docusign_rooms/models/nullable_field_data.rb +185 -0
- data/lib/docusign_rooms/models/nullable_permissions.rb +660 -0
- data/lib/docusign_rooms/models/office.rb +287 -0
- data/lib/docusign_rooms/models/office_for_create.rb +269 -0
- data/lib/docusign_rooms/models/office_reference_count.rb +192 -0
- data/lib/docusign_rooms/models/office_reference_count_list.rb +185 -0
- data/lib/docusign_rooms/models/office_summary.rb +282 -0
- data/lib/docusign_rooms/models/office_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/origin_of_lead.rb +192 -0
- data/lib/docusign_rooms/models/permissions.rb +660 -0
- data/lib/docusign_rooms/models/property_type.rb +192 -0
- data/lib/docusign_rooms/models/region.rb +206 -0
- data/lib/docusign_rooms/models/region_reference_count.rb +192 -0
- data/lib/docusign_rooms/models/region_reference_count_list.rb +185 -0
- data/lib/docusign_rooms/models/region_summary.rb +201 -0
- data/lib/docusign_rooms/models/region_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/role.rb +246 -0
- data/lib/docusign_rooms/models/role_for_create.rb +201 -0
- data/lib/docusign_rooms/models/role_for_update.rb +201 -0
- data/lib/docusign_rooms/models/role_summary.rb +228 -0
- data/lib/docusign_rooms/models/role_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room.rb +282 -0
- data/lib/docusign_rooms/models/room_contact_type.rb +192 -0
- data/lib/docusign_rooms/models/room_document.rb +246 -0
- data/lib/docusign_rooms/models/room_document_list.rb +230 -0
- data/lib/docusign_rooms/models/room_folder.rb +201 -0
- data/lib/docusign_rooms/models/room_folder_list.rb +230 -0
- data/lib/docusign_rooms/models/room_for_create.rb +248 -0
- data/lib/docusign_rooms/models/room_invite.rb +240 -0
- data/lib/docusign_rooms/models/room_invite_response.rb +237 -0
- data/lib/docusign_rooms/models/room_picture.rb +183 -0
- data/lib/docusign_rooms/models/room_summary.rb +273 -0
- data/lib/docusign_rooms/models/room_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room_template.rb +201 -0
- data/lib/docusign_rooms/models/room_templates_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/room_user.rb +246 -0
- data/lib/docusign_rooms/models/room_user_for_update.rb +192 -0
- data/lib/docusign_rooms/models/room_user_removal_detail.rb +183 -0
- data/lib/docusign_rooms/models/room_user_summary.rb +237 -0
- data/lib/docusign_rooms/models/room_users_result.rb +230 -0
- data/lib/docusign_rooms/models/select_list_field_option.rb +201 -0
- data/lib/docusign_rooms/models/seller_decision_type.rb +192 -0
- data/lib/docusign_rooms/models/special_circumstance_type.rb +192 -0
- data/lib/docusign_rooms/models/state.rb +192 -0
- data/lib/docusign_rooms/models/task_date_type.rb +192 -0
- data/lib/docusign_rooms/models/task_list.rb +275 -0
- data/lib/docusign_rooms/models/task_list_for_create.rb +183 -0
- data/lib/docusign_rooms/models/task_list_summary.rb +264 -0
- data/lib/docusign_rooms/models/task_list_summary_list.rb +185 -0
- data/lib/docusign_rooms/models/task_list_template.rb +210 -0
- data/lib/docusign_rooms/models/task_list_template_list.rb +230 -0
- data/lib/docusign_rooms/models/task_responsibility_type.rb +192 -0
- data/lib/docusign_rooms/models/task_status.rb +192 -0
- data/lib/docusign_rooms/models/task_summary.rb +291 -0
- data/lib/docusign_rooms/models/time_zone.rb +192 -0
- data/lib/docusign_rooms/models/transaction_side.rb +192 -0
- data/lib/docusign_rooms/models/user.rb +338 -0
- data/lib/docusign_rooms/models/user_for_update.rb +188 -0
- data/lib/docusign_rooms/models/user_summary.rb +307 -0
- data/lib/docusign_rooms/models/user_summary_list.rb +230 -0
- data/lib/docusign_rooms/models/user_to_invite.rb +337 -0
- data/lib/docusign_rooms/version.rb +14 -0
- data/tests/Gemfile +5 -0
- data/tests/Gemfile.lock +42 -0
- data/tests/docs/Test.pdf +0 -0
- data/tests/docs/private.pem +27 -0
- data/tests/spec/unit_tests_using_jwt_spec.rb +125 -0
- metadata +420 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 90acef53892276313019e2e5ac8174b30ac9514fdcd2b93cab2efc021081b59e
|
4
|
+
data.tar.gz: 3404a17dd3831458fd44b0a8253edc74dfdd6e7c6b9a88db89e4924ded12b6a6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 969e5ce8d27c602d50bfbd76c55ffe4a0f78fcc16e1889036143fb1993bbdd6b449c97bd04dbb982157111d3fba2a8488ee147a8579c9156170930e60cc80dc3
|
7
|
+
data.tar.gz: 373a4afb287f78fad34c2e7c77aaa3da812427cd56ebdea68e850048994a4020c2613ee5c9bb2ffeb6a96663cda154a563c21fd6b88cfa4888fec0adb02057ae
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
|
5
|
+
|
6
|
+
## [v3.3.0] - eSignature API v2.1-20.1.02 - 2020-05-31
|
7
|
+
### Changed
|
8
|
+
- Added support for version v2.1-20.1.02 of the DocuSign eSignature API.
|
9
|
+
- Updated the SDK release version.
|
10
|
+
|
11
|
+
## [v3.2.1] - eSignature API v2.1-20.1.00 - 2020-04-15
|
12
|
+
### Changed
|
13
|
+
- Updated jwt to version 2.2.1.
|
14
|
+
|
15
|
+
## [v3.2.0] - eSignature API v2.1-20.1.00 - 2020-03-30
|
16
|
+
### Changed
|
17
|
+
- Added support for version v2.1-20.1.00 of the DocuSign eSignature API.
|
18
|
+
- Updated rake to version 12.3.3.
|
19
|
+
- Updated the SDK release version.
|
20
|
+
### Added
|
21
|
+
- Added the new property `copy_recipient_data` to envelopes. When set to **true**, the information that recipients enter is retained when you clone an envelope. For example, if you resend an envelope that was declined or voided after one or more recipients entered data, that data is retained. Note that the account setting `enable_envelope_copy_with_data` must be set to **true**.
|
22
|
+
- Added a new object, `RecipientIdentityInputOption`: Reserved for DocuSign.
|
23
|
+
- Added a new parameter, `input_options`, to `AccountIdentityVerificationWorkflow`: Reserved for DocuSign.
|
24
|
+
|
25
|
+
## [v3.0.0] - eSignature API v2.1-19.2.02 - 2019-10-08
|
26
|
+
### BREAKING
|
27
|
+
- The SDK now supports version 19.2.02 of the DocuSign eSignature v2.1 API.
|
28
|
+
### Changed
|
29
|
+
- SDK Release Version updated.
|
30
|
+
## Fixed
|
31
|
+
- Issue [`#23`](https://github.com/docusign/docusign-ruby-client/issues/23): Support for DocuSign API 2.1. (DCM-3546)
|
32
|
+
- Issue [`#22`](https://github.com/docusign/docusign-ruby-client/issues/22): JSON version of version 2.0. (DCM-3375)
|
33
|
+
- Issue [`#17`](https://github.com/docusign/docusign-ruby-client/issues/17): Client doesn't properly handle Dropdown. (DCM-3192)
|
34
|
+
- Issue [`#16`](https://github.com/docusign/docusign-ruby-client/issues/16): Client doesn't properly handle Text tabs with Date Validation. (DCM-3193)
|
35
|
+
- Issue [`#15`](https://github.com/docusign/docusign-ruby-client/issues/15): ListStatus not accepting envelope_ids. (DCM-3123)
|
36
|
+
- Issue [`#7`](https://github.com/docusign/docusign-ruby-client/issues/7): Allow passing in JWT. (DCM-2312)
|
37
|
+
|
38
|
+
## [v2.1.0] - eSignature API v2-19.2.02 - 2019-10-08
|
39
|
+
### Changed
|
40
|
+
- The SDK now supports version 19.2.02 of the DocuSign eSignature v2 API.
|
41
|
+
- SDK Release Version updated.
|
42
|
+
## Fixed
|
43
|
+
- Issue [`#23`](https://github.com/docusign/docusign-ruby-client/issues/23): Support for DocuSign API 2.1. (DCM-3546)
|
44
|
+
- Issue [`#22`](https://github.com/docusign/docusign-ruby-client/issues/22): JSON version of version 2.0. (DCM-3375)
|
45
|
+
- Issue [`#17`](https://github.com/docusign/docusign-ruby-client/issues/17): Client doesn't properly handle Dropdown. (DCM-3192)
|
46
|
+
- Issue [`#16`](https://github.com/docusign/docusign-ruby-client/issues/16): Client doesn't properly handle Text tabs with Date Validation. (DCM-3193)
|
47
|
+
- Issue [`#15`](https://github.com/docusign/docusign-ruby-client/issues/15): ListStatus not accepting envelope_ids. (DCM-3123)
|
48
|
+
- Issue [`#7`](https://github.com/docusign/docusign-ruby-client/issues/7): Allow passing in JWT. (DCM-2312)
|
49
|
+
|
50
|
+
## [2.0.0] - eSignature API v19.1.02 - 2019-06-08
|
51
|
+
### BREAKING
|
52
|
+
* Moved ApiClient and ApiException under Client folder
|
53
|
+
### Removed
|
54
|
+
* empty test placeholder files
|
55
|
+
### Changed
|
56
|
+
* updated existing test cases to use JWT instead of the legacy auth (still not fully working yet)
|
57
|
+
### Added
|
58
|
+
* OAuth models under Client/Auth folder
|
59
|
+
* new dependency for OAuth support (firebase/php-jwt)
|
60
|
+
* OAuthTests.php for OAuth support test
|
61
|
+
### Fixed
|
62
|
+
* A bug with that could cause the *moveEnvelopes* method call to return a response without a *Content-Type* header. (DCM-2871)
|
63
|
+
|
64
|
+
## [1.0.2] - Updates Json gem dependency from 1.8 to 2.1 - 2018-10-22
|
65
|
+
|
66
|
+
## [1.0.1] - Updated JWT version requirement - 2018-10-22
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
docusign_rooms (1.0.0.pre.alpha)
|
5
|
+
json (~> 2.1, >= 2.1.0)
|
6
|
+
jwt (~> 2.2, >= 2.2.1)
|
7
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
ZenTest (4.12.0)
|
13
|
+
addressable (2.7.0)
|
14
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
|
+
autotest (4.4.6)
|
16
|
+
ZenTest (>= 4.4.1)
|
17
|
+
autotest-fsevent (0.2.17)
|
18
|
+
sys-uname
|
19
|
+
autotest-growl (0.2.16)
|
20
|
+
autotest-rails-pure (4.1.2)
|
21
|
+
crack (0.4.3)
|
22
|
+
safe_yaml (~> 1.0.0)
|
23
|
+
diff-lcs (1.4.4)
|
24
|
+
ethon (0.12.0)
|
25
|
+
ffi (>= 1.3.0)
|
26
|
+
ffi (1.13.1)
|
27
|
+
hashdiff (1.0.1)
|
28
|
+
json (2.3.1)
|
29
|
+
jwt (2.2.1)
|
30
|
+
public_suffix (4.0.5)
|
31
|
+
rake (12.3.3)
|
32
|
+
rspec (3.9.0)
|
33
|
+
rspec-core (~> 3.9.0)
|
34
|
+
rspec-expectations (~> 3.9.0)
|
35
|
+
rspec-mocks (~> 3.9.0)
|
36
|
+
rspec-core (3.9.2)
|
37
|
+
rspec-support (~> 3.9.3)
|
38
|
+
rspec-expectations (3.9.2)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.9.0)
|
41
|
+
rspec-mocks (3.9.1)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.9.0)
|
44
|
+
rspec-support (3.9.3)
|
45
|
+
safe_yaml (1.0.5)
|
46
|
+
sys-uname (1.2.1)
|
47
|
+
ffi (>= 1.0.0)
|
48
|
+
typhoeus (1.4.0)
|
49
|
+
ethon (>= 0.9.0)
|
50
|
+
vcr (3.0.3)
|
51
|
+
webmock (1.24.6)
|
52
|
+
addressable (>= 2.3.6)
|
53
|
+
crack (>= 0.3.2)
|
54
|
+
hashdiff
|
55
|
+
|
56
|
+
PLATFORMS
|
57
|
+
ruby
|
58
|
+
|
59
|
+
DEPENDENCIES
|
60
|
+
autotest (~> 4.4, >= 4.4.6)
|
61
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
62
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
63
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
64
|
+
docusign_rooms!
|
65
|
+
rake (~> 12.3.3)
|
66
|
+
rspec (~> 3.6, >= 3.6.0)
|
67
|
+
vcr (~> 3.0, >= 3.0.1)
|
68
|
+
webmock (~> 1.24, >= 1.24.3)
|
69
|
+
|
70
|
+
BUNDLED WITH
|
71
|
+
1.17.2
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017- DocuSign, Inc. (https://www.docusign.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# The Official DocuSign Ruby Client
|
2
|
+
|
3
|
+
[![RubyGems version][rubygems-image]][rubygems-url]
|
4
|
+
[![RubyGems downloads][downloads-image]][downloads-url]
|
5
|
+
[![Build status][travis-image]][travis-url]
|
6
|
+
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
- Ruby 1.9+
|
10
|
+
- Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
|
11
|
+
|
12
|
+
## Compatibility
|
13
|
+
|
14
|
+
- Ruby 1.9+
|
15
|
+
|
16
|
+
## Note
|
17
|
+
|
18
|
+
This open-source SDK is provided for cases where you would like to make additional changes that the SDK does not provide out-of-the-box. If you simply want to use the SDK with any of the examples shown in the [Developer Center](https://developers.docusign.com/esign-rest-api/code-examples), follow the installation instructions below.
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
|
22
|
+
### Install via your application's **Gemfile**:
|
23
|
+
|
24
|
+
1. In your application's **Gemfile**, add:
|
25
|
+
**gem 'docusign_rooms'**
|
26
|
+
2. Open your preferred console.
|
27
|
+
3. In your project directory, execute the installer by typing:
|
28
|
+
**bundle install**
|
29
|
+
|
30
|
+
### Manual install:
|
31
|
+
|
32
|
+
1. Open your preferred console.
|
33
|
+
2. In the console, type:
|
34
|
+
**gem install docusign_rooms**
|
35
|
+
|
36
|
+
### Dependencies
|
37
|
+
|
38
|
+
This client has the following external dependencies:
|
39
|
+
|
40
|
+
- Jwt>=1.5.2
|
41
|
+
- Json>=2.1.0
|
42
|
+
- Typhoeus>=1.0.1
|
43
|
+
|
44
|
+
## Code Examples
|
45
|
+
|
46
|
+
### Launchers
|
47
|
+
|
48
|
+
DocuSign provides a sample application code referred to as a [Launcher](https://github.com/docusign/code-examples-ruby). The Launcher contains a set of 31 common use cases and associated source files. These examples use either DocuSign's [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) or [JSON Web Tokens (JWT)](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-jsonwebtoken) flows.
|
49
|
+
|
50
|
+
### Proof-of-concept applications
|
51
|
+
|
52
|
+
If your goal is to create a proof-of-concept application, DocuSign provides a set of [Quick Start](https://github.com/docusign/qs-ruby) examples. The Quick Start examples are meant to be used with DocuSign's [OAuth Token Generator](https://developers.docusign.com/oauth-token-generator), which will allow you to generate tokens for the Demo/Sandbox environment only. These tokens last for eight hours and will enable you to build your proof-of-concept application without the need to fully implement an OAuth solution.
|
53
|
+
|
54
|
+
## OAuth Implementations
|
55
|
+
|
56
|
+
For details regarding which type of OAuth grant will work best for your DocuSign integration, see the [REST API Authentication Overview](https://developers.docusign.com/esign-rest-api/guides/authentication) guide located on the [DocuSign Developer Center](https://developers.docusign.com/esign-rest-api/guides/authentication).
|
57
|
+
|
58
|
+
For security purposes, DocuSign recommends using the [Authorization Code Grant](https://developers.docusign.com/esign-rest-api/guides/authentication/oauth2-code-grant) flow.
|
59
|
+
|
60
|
+
|
61
|
+
## Support
|
62
|
+
|
63
|
+
Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
|
64
|
+
|
65
|
+
## License
|
66
|
+
|
67
|
+
The DocuSign Ruby Client is licensed under the [MIT License](https://github.com/docusign/docusign-ruby-client/blob/master/LICENSE).
|
68
|
+
|
69
|
+
[rubygems-image]: https://img.shields.io/gem/v/docusign_rooms.svg?style=flat
|
70
|
+
[rubygems-url]: https://rubygems.org/gems/docusign_rooms
|
71
|
+
[downloads-image]: https://img.shields.io/gem/dt/docusign_rooms.svg?style=flat
|
72
|
+
[downloads-url]: https://rubygems.org/gems/docusign_rooms
|
73
|
+
[travis-image]: https://img.shields.io/travis/docusign/docusign-ruby-client.svg?style=flat
|
74
|
+
[travis-url]: https://travis-ci.org/docusign/docusign-ruby-client
|
75
|
+
|
76
|
+
### Additional Resources
|
77
|
+
* [DocuSign Developer Center](https://developers.docusign.com)
|
78
|
+
* [DocuSign API on Twitter](https://twitter.com/docusignapi)
|
79
|
+
* [DocuSign For Developers on LinkedIn](https://www.linkedin.com/showcase/docusign-for-developers/)
|
80
|
+
* [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
|
data/Rakefile
ADDED
Binary file
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#DocuSign Rooms API
|
5
|
+
|
6
|
+
#An API for an integrator to access the features of DocuSign Rooms
|
7
|
+
|
8
|
+
OpenAPI spec version: v2
|
9
|
+
Contact: devcenter@docusign.com
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
|
12
|
+
=end
|
13
|
+
|
14
|
+
$:.push File.expand_path("../lib", __FILE__)
|
15
|
+
require "docusign_rooms/version"
|
16
|
+
|
17
|
+
Gem::Specification.new do |s|
|
18
|
+
s.name = "docusign_rooms"
|
19
|
+
s.version = DocuSign_Rooms::VERSION
|
20
|
+
s.platform = Gem::Platform::RUBY
|
21
|
+
s.authors = ["DocuSign"]
|
22
|
+
s.email = ["devcenter@docusign.com"]
|
23
|
+
s.homepage = "https://github.com/docusign/docusign-rooms-ruby-client"
|
24
|
+
s.summary = "DocuSign Rooms API Ruby Gem"
|
25
|
+
s.description = "The DocuSign package makes integrating DocuSign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-rooms-ruby-client repository."
|
26
|
+
s.license = "MIT"
|
27
|
+
s.required_ruby_version = ">= 1.9"
|
28
|
+
|
29
|
+
s.add_runtime_dependency 'jwt', '~> 2.2', '>= 2.2.1'
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/.DS_Store
ADDED
Binary file
|
@@ -0,0 +1,193 @@
|
|
1
|
+
=begin
|
2
|
+
#DocuSign Rooms API - v2
|
3
|
+
|
4
|
+
#An API for an integrator to access the features of DocuSign Rooms
|
5
|
+
|
6
|
+
OpenAPI spec version: v2
|
7
|
+
Contact: devcenter@docusign.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
# Common files
|
13
|
+
require 'docusign_rooms/client/api_client'
|
14
|
+
require 'docusign_rooms/client/api_error'
|
15
|
+
require 'docusign_rooms/version'
|
16
|
+
require 'docusign_rooms/configuration'
|
17
|
+
|
18
|
+
# Client Files
|
19
|
+
require 'docusign_rooms/client/auth/oauth'
|
20
|
+
|
21
|
+
# Models
|
22
|
+
require 'docusign_rooms/models/account_summary'
|
23
|
+
require 'docusign_rooms/models/activity_type'
|
24
|
+
require 'docusign_rooms/models/api_error'
|
25
|
+
require 'docusign_rooms/models/assignable_roles'
|
26
|
+
require 'docusign_rooms/models/classic_admin_to_invite'
|
27
|
+
require 'docusign_rooms/models/classic_agent_to_invite'
|
28
|
+
require 'docusign_rooms/models/classic_manager_permissions'
|
29
|
+
require 'docusign_rooms/models/classic_manager_to_invite'
|
30
|
+
require 'docusign_rooms/models/closing_status'
|
31
|
+
require 'docusign_rooms/models/contact_side'
|
32
|
+
require 'docusign_rooms/models/country'
|
33
|
+
require 'docusign_rooms/models/currency'
|
34
|
+
require 'docusign_rooms/models/custom_data'
|
35
|
+
require 'docusign_rooms/models/depends_on'
|
36
|
+
require 'docusign_rooms/models/designated_office'
|
37
|
+
require 'docusign_rooms/models/designated_region'
|
38
|
+
require 'docusign_rooms/models/document'
|
39
|
+
require 'docusign_rooms/models/document_user'
|
40
|
+
require 'docusign_rooms/models/document_user_for_create'
|
41
|
+
require 'docusign_rooms/models/e_sign_account_role_settings'
|
42
|
+
require 'docusign_rooms/models/e_sign_permission_profile'
|
43
|
+
require 'docusign_rooms/models/e_sign_permission_profile_list'
|
44
|
+
require 'docusign_rooms/models/external_form_fill_session'
|
45
|
+
require 'docusign_rooms/models/external_form_fill_session_for_create'
|
46
|
+
require 'docusign_rooms/models/field'
|
47
|
+
require 'docusign_rooms/models/field_configuration'
|
48
|
+
require 'docusign_rooms/models/field_data'
|
49
|
+
require 'docusign_rooms/models/field_data_for_create'
|
50
|
+
require 'docusign_rooms/models/field_data_for_update'
|
51
|
+
require 'docusign_rooms/models/field_set'
|
52
|
+
require 'docusign_rooms/models/financing_type'
|
53
|
+
require 'docusign_rooms/models/form_details'
|
54
|
+
require 'docusign_rooms/models/form_for_add'
|
55
|
+
require 'docusign_rooms/models/form_group_summary'
|
56
|
+
require 'docusign_rooms/models/form_group_summary_list'
|
57
|
+
require 'docusign_rooms/models/form_library_summary'
|
58
|
+
require 'docusign_rooms/models/form_library_summary_list'
|
59
|
+
require 'docusign_rooms/models/form_summary'
|
60
|
+
require 'docusign_rooms/models/form_summary_list'
|
61
|
+
require 'docusign_rooms/models/global_activity_types'
|
62
|
+
require 'docusign_rooms/models/global_closing_statuses'
|
63
|
+
require 'docusign_rooms/models/global_contact_sides'
|
64
|
+
require 'docusign_rooms/models/global_countries'
|
65
|
+
require 'docusign_rooms/models/global_currencies'
|
66
|
+
require 'docusign_rooms/models/global_financing_types'
|
67
|
+
require 'docusign_rooms/models/global_origins_of_leads'
|
68
|
+
require 'docusign_rooms/models/global_property_types'
|
69
|
+
require 'docusign_rooms/models/global_room_contact_types'
|
70
|
+
require 'docusign_rooms/models/global_seller_decision_types'
|
71
|
+
require 'docusign_rooms/models/global_special_circumstance_types'
|
72
|
+
require 'docusign_rooms/models/global_states'
|
73
|
+
require 'docusign_rooms/models/global_task_date_types'
|
74
|
+
require 'docusign_rooms/models/global_task_responsibility_types'
|
75
|
+
require 'docusign_rooms/models/global_task_statuses'
|
76
|
+
require 'docusign_rooms/models/global_time_zones'
|
77
|
+
require 'docusign_rooms/models/global_transaction_sides'
|
78
|
+
require 'docusign_rooms/models/locked_out_details'
|
79
|
+
require 'docusign_rooms/models/nullable_field_data'
|
80
|
+
require 'docusign_rooms/models/nullable_permissions'
|
81
|
+
require 'docusign_rooms/models/office'
|
82
|
+
require 'docusign_rooms/models/office_for_create'
|
83
|
+
require 'docusign_rooms/models/office_reference_count'
|
84
|
+
require 'docusign_rooms/models/office_reference_count_list'
|
85
|
+
require 'docusign_rooms/models/office_summary'
|
86
|
+
require 'docusign_rooms/models/office_summary_list'
|
87
|
+
require 'docusign_rooms/models/origin_of_lead'
|
88
|
+
require 'docusign_rooms/models/permissions'
|
89
|
+
require 'docusign_rooms/models/property_type'
|
90
|
+
require 'docusign_rooms/models/region'
|
91
|
+
require 'docusign_rooms/models/region_reference_count'
|
92
|
+
require 'docusign_rooms/models/region_reference_count_list'
|
93
|
+
require 'docusign_rooms/models/region_summary'
|
94
|
+
require 'docusign_rooms/models/region_summary_list'
|
95
|
+
require 'docusign_rooms/models/role'
|
96
|
+
require 'docusign_rooms/models/role_for_create'
|
97
|
+
require 'docusign_rooms/models/role_for_update'
|
98
|
+
require 'docusign_rooms/models/role_summary'
|
99
|
+
require 'docusign_rooms/models/role_summary_list'
|
100
|
+
require 'docusign_rooms/models/room'
|
101
|
+
require 'docusign_rooms/models/room_contact_type'
|
102
|
+
require 'docusign_rooms/models/room_document'
|
103
|
+
require 'docusign_rooms/models/room_document_list'
|
104
|
+
require 'docusign_rooms/models/room_folder'
|
105
|
+
require 'docusign_rooms/models/room_folder_list'
|
106
|
+
require 'docusign_rooms/models/room_for_create'
|
107
|
+
require 'docusign_rooms/models/room_invite'
|
108
|
+
require 'docusign_rooms/models/room_invite_response'
|
109
|
+
require 'docusign_rooms/models/room_picture'
|
110
|
+
require 'docusign_rooms/models/room_summary'
|
111
|
+
require 'docusign_rooms/models/room_summary_list'
|
112
|
+
require 'docusign_rooms/models/room_template'
|
113
|
+
require 'docusign_rooms/models/room_templates_summary_list'
|
114
|
+
require 'docusign_rooms/models/room_user'
|
115
|
+
require 'docusign_rooms/models/room_user_for_update'
|
116
|
+
require 'docusign_rooms/models/room_user_removal_detail'
|
117
|
+
require 'docusign_rooms/models/room_user_summary'
|
118
|
+
require 'docusign_rooms/models/room_users_result'
|
119
|
+
require 'docusign_rooms/models/select_list_field_option'
|
120
|
+
require 'docusign_rooms/models/seller_decision_type'
|
121
|
+
require 'docusign_rooms/models/special_circumstance_type'
|
122
|
+
require 'docusign_rooms/models/state'
|
123
|
+
require 'docusign_rooms/models/task_date_type'
|
124
|
+
require 'docusign_rooms/models/task_list'
|
125
|
+
require 'docusign_rooms/models/task_list_for_create'
|
126
|
+
require 'docusign_rooms/models/task_list_summary'
|
127
|
+
require 'docusign_rooms/models/task_list_summary_list'
|
128
|
+
require 'docusign_rooms/models/task_list_template'
|
129
|
+
require 'docusign_rooms/models/task_list_template_list'
|
130
|
+
require 'docusign_rooms/models/task_responsibility_type'
|
131
|
+
require 'docusign_rooms/models/task_status'
|
132
|
+
require 'docusign_rooms/models/task_summary'
|
133
|
+
require 'docusign_rooms/models/time_zone'
|
134
|
+
require 'docusign_rooms/models/transaction_side'
|
135
|
+
require 'docusign_rooms/models/user'
|
136
|
+
require 'docusign_rooms/models/user_for_update'
|
137
|
+
require 'docusign_rooms/models/user_summary'
|
138
|
+
require 'docusign_rooms/models/user_summary_list'
|
139
|
+
require 'docusign_rooms/models/user_to_invite'
|
140
|
+
|
141
|
+
# APIs
|
142
|
+
require 'docusign_rooms/api/accounts_api'
|
143
|
+
require 'docusign_rooms/api/activity_types_api'
|
144
|
+
require 'docusign_rooms/api/closing_statuses_api'
|
145
|
+
require 'docusign_rooms/api/contact_sides_api'
|
146
|
+
require 'docusign_rooms/api/countries_api'
|
147
|
+
require 'docusign_rooms/api/currencies_api'
|
148
|
+
require 'docusign_rooms/api/documents_api'
|
149
|
+
require 'docusign_rooms/api/e_sign_permission_profiles_api'
|
150
|
+
require 'docusign_rooms/api/external_form_fill_sessions_api'
|
151
|
+
require 'docusign_rooms/api/fields_api'
|
152
|
+
require 'docusign_rooms/api/financing_types_api'
|
153
|
+
require 'docusign_rooms/api/form_details_api'
|
154
|
+
require 'docusign_rooms/api/form_groups_api'
|
155
|
+
require 'docusign_rooms/api/form_libraries_api'
|
156
|
+
require 'docusign_rooms/api/offices_api'
|
157
|
+
require 'docusign_rooms/api/origins_of_leads_api'
|
158
|
+
require 'docusign_rooms/api/property_types_api'
|
159
|
+
require 'docusign_rooms/api/regions_api'
|
160
|
+
require 'docusign_rooms/api/roles_api'
|
161
|
+
require 'docusign_rooms/api/room_contact_types_api'
|
162
|
+
require 'docusign_rooms/api/room_folders_api'
|
163
|
+
require 'docusign_rooms/api/room_templates_api'
|
164
|
+
require 'docusign_rooms/api/rooms_api'
|
165
|
+
require 'docusign_rooms/api/seller_decision_types_api'
|
166
|
+
require 'docusign_rooms/api/special_circumstance_types_api'
|
167
|
+
require 'docusign_rooms/api/states_api'
|
168
|
+
require 'docusign_rooms/api/task_date_types_api'
|
169
|
+
require 'docusign_rooms/api/task_list_templates_api'
|
170
|
+
require 'docusign_rooms/api/task_lists_api'
|
171
|
+
require 'docusign_rooms/api/task_responsibility_types_api'
|
172
|
+
require 'docusign_rooms/api/task_statuses_api'
|
173
|
+
require 'docusign_rooms/api/time_zones_api'
|
174
|
+
require 'docusign_rooms/api/transaction_sides_api'
|
175
|
+
require 'docusign_rooms/api/users_api'
|
176
|
+
|
177
|
+
module DocuSign_Rooms
|
178
|
+
class << self
|
179
|
+
# Customize default settings for the SDK using block.
|
180
|
+
# DocuSign_Rooms.configure do |config|
|
181
|
+
# config.username = "xxx"
|
182
|
+
# config.password = "xxx"
|
183
|
+
# end
|
184
|
+
# If no block given, return the default Configuration object.
|
185
|
+
def configure
|
186
|
+
if block_given?
|
187
|
+
yield(Configuration.default)
|
188
|
+
else
|
189
|
+
Configuration.default
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|