docusign_click 1.0.0 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f48d454cf4330ef6790b64b906eb50944b1dc30174a1141e01e5b101f36a5f19
4
- data.tar.gz: bd278a8496562b34f1c3a2a513487040fb9deb0a36df331e747072eff969d554
3
+ metadata.gz: 14b452f0d3285be26ae86bf0e210942f6a12a5804637f608cd2ba5664d5d0740
4
+ data.tar.gz: b4d167b2f771175216b61ad74474c461a196c993ae96232f35a35d987c8b1336
5
5
  SHA512:
6
- metadata.gz: 2fe9ac47e0f0eb36e7575111d555a6391479ded740695e706e7e78d9f46181893b7ffbac71970bc0901aedc6611829c8a65c78f927af1a52d8dd534319236993
7
- data.tar.gz: 811da097324cb4d97f7e35cd4fc429e4c83532001b8486bf300c6364281fab3c7c0cb11af038908d0ea4fa4b280389d3bc27bb07d0b11ac888e10da1bf8d6f2e
6
+ metadata.gz: 5312330c29bc3c2d68770722b50935f01947d78883befa1eb3b20fcf9c5ed5072aeaa9d85bba96465db8baac928ca2bbd22f88cae0637551ff3c8cce6ab47ddb
7
+ data.tar.gz: 5cb3ce912c96937454ac817c5fd9f33659dfcd2e377d3f65d613cc5c87e3bf62c061e46bc3310975df653e6f95394c50d580971cbd6242cf4caaf2262b30b6db
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # DocuSign Click Ruby Client Changelog
2
2
  See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
3
3
 
4
+ ## [1.1.0.rc1] - Click API v1-21.4.00 - 2021-11-19
5
+ ### Changed
6
+ - Added support for version v1-21.4.00 of the DocuSign Click API.
7
+ - Updated the SDK release version.
8
+
9
+
4
10
  ## [v1.0.0] - DocuSign Click API v1 - 02/11/2021
5
11
  ### Changed
6
12
  - First GA version of Click API, supports DocuSign Click v1-20.4.02.
@@ -3,9 +3,9 @@
3
3
  =begin
4
4
  #DocuSign Click API
5
5
 
6
- #An API for an integrator to access the features of DocuSign Click
6
+ #DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
7
7
 
8
- OpenAPI spec version: v2
8
+ OpenAPI spec version: v1
9
9
  Contact: devcenter@docusign.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
 
@@ -31,16 +31,18 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
32
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
33
33
 
34
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'rspec-mocks', '~> 3.8', '>= 3.8.0'
35
+ s.add_development_dependency 'rspec-expectations', '~> 3.8', '>= 3.8.0'
36
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
35
37
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
36
38
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
37
39
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
38
40
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
39
41
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
40
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
42
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
41
43
 
42
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
44
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
43
45
  s.test_files = `find spec/*`.split("\n")
44
46
  s.executables = []
45
47
  s.require_paths = ["lib"]
46
- end
48
+ end
@@ -40,6 +40,15 @@ module DocuSign_Click
40
40
  end
41
41
  end
42
42
 
43
+ class GetAgreementPdfOptions
44
+ #
45
+ attr_accessor :include_coc
46
+
47
+ def self.default
48
+ @@default ||= GetAgreementPdfOptions.new
49
+ end
50
+ end
51
+
43
52
  class GetClickwrapAgreementsOptions
44
53
  #
45
54
  attr_accessor :client_user_id
@@ -82,30 +91,15 @@ module DocuSign_Click
82
91
  end
83
92
  end
84
93
 
85
- class GetClickwrapVersionAgreementsByNumberOptions
94
+ class GetClickwrapsOptions
86
95
  #
87
- attr_accessor :client_user_id
96
+ attr_accessor :filter
88
97
 
89
98
  #
90
99
  attr_accessor :from_date
91
100
 
92
101
  #
93
- attr_accessor :page_number
94
-
95
- #
96
- attr_accessor :status
97
-
98
- #
99
- attr_accessor :to_date
100
-
101
- def self.default
102
- @@default ||= GetClickwrapVersionAgreementsByNumberOptions.new
103
- end
104
- end
105
-
106
- class GetClickwrapsOptions
107
- #
108
- attr_accessor :from_date
102
+ attr_accessor :name
109
103
 
110
104
  #
111
105
  attr_accessor :owner_user_id
@@ -113,9 +107,6 @@ module DocuSign_Click
113
107
  #
114
108
  attr_accessor :page_number
115
109
 
116
- #
117
- attr_accessor :shared
118
-
119
110
  #
120
111
  attr_accessor :status
121
112
 
@@ -409,63 +400,6 @@ module DocuSign_Click
409
400
  return data, status_code, headers
410
401
  end
411
402
 
412
- # Delete a Clickwrap version specified by versionNumber. Use versionId instead of versionNumber
413
- #
414
- # @param account_id
415
- # @param clickwrap_id
416
- # @param version_number
417
- # @return [ClickwrapVersionSummaryResponse]
418
- def delete_clickwrap_version_by_number(account_id, clickwrap_id, version_number)
419
- data, _status_code, _headers = delete_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
420
- return data
421
- end
422
-
423
- # Delete a Clickwrap version specified by versionNumber. Use versionId instead of versionNumber
424
- #
425
- # @param account_id
426
- # @param clickwrap_id
427
- # @param version_number
428
- # @return [Array<(ClickwrapVersionSummaryResponse, Fixnum, Hash)>] ClickwrapVersionSummaryResponse data, response status code and response headers
429
- def delete_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
430
- if @api_client.config.debugging
431
- @api_client.config.logger.debug "Calling API: AccountsApi.delete_clickwrap_version_by_number ..."
432
- end
433
- # verify the required parameter 'account_id' is set
434
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_clickwrap_version_by_number" if account_id.nil?
435
- # verify the required parameter 'clickwrap_id' is set
436
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.delete_clickwrap_version_by_number" if clickwrap_id.nil?
437
- # verify the required parameter 'version_number' is set
438
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.delete_clickwrap_version_by_number" if version_number.nil?
439
- # resource path
440
- local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionNumber}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionNumber' + '}', version_number.to_s)
441
-
442
- # query parameters
443
- query_params = {}
444
-
445
- # header parameters
446
- header_params = {}
447
- # HTTP header 'Accept' (if needed)
448
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
449
-
450
- # form parameters
451
- form_params = {}
452
-
453
- # http body (model)
454
- post_body = nil
455
- auth_names = []
456
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
457
- :header_params => header_params,
458
- :query_params => query_params,
459
- :form_params => form_params,
460
- :body => post_body,
461
- :auth_names => auth_names,
462
- :return_type => 'ClickwrapVersionSummaryResponse')
463
- if @api_client.config.debugging
464
- @api_client.config.logger.debug "API called: AccountsApi#delete_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
- end
466
- return data, status_code, headers
467
- end
468
-
469
403
  # Deletes the versions specified by query parameter clickwrapVersionIds for a clickwrap, or all versions if no query parameter is specified. It will not delete if a version is active.
470
404
  #
471
405
  # @param account_id
@@ -574,7 +508,7 @@ module DocuSign_Click
574
508
  return data, status_code, headers
575
509
  end
576
510
 
577
- #
511
+ # Gets the agreement by a provided agreement ID
578
512
  #
579
513
  # @param account_id
580
514
  # @param agreement_id
@@ -585,7 +519,7 @@ module DocuSign_Click
585
519
  return data
586
520
  end
587
521
 
588
- #
522
+ # Gets the agreement by a provided agreement ID
589
523
  #
590
524
  # @param account_id
591
525
  # @param agreement_id
@@ -631,24 +565,26 @@ module DocuSign_Click
631
565
  return data, status_code, headers
632
566
  end
633
567
 
634
- #
568
+ # Downloads the agreement PDF and optionally certificate of completion.
635
569
  #
636
570
  # @param account_id
637
571
  # @param agreement_id
638
572
  # @param clickwrap_id
639
- # @return [nil]
640
- def get_agreement_pdf(account_id, agreement_id, clickwrap_id)
641
- get_agreement_pdf_with_http_info(account_id, agreement_id, clickwrap_id)
642
- return nil
573
+ # @param DocuSign_Click::GetAgreementPdfOptions Options for modifying the behavior of the function.
574
+ # @return [File]
575
+ def get_agreement_pdf(account_id, agreement_id, clickwrap_id, options = DocuSign_Click::GetAgreementPdfOptions.default)
576
+ data, _status_code, _headers = get_agreement_pdf_with_http_info(account_id, agreement_id, clickwrap_id, options)
577
+ return data
643
578
  end
644
579
 
645
- #
580
+ # Downloads the agreement PDF and optionally certificate of completion.
646
581
  #
647
582
  # @param account_id
648
583
  # @param agreement_id
649
584
  # @param clickwrap_id
650
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
651
- def get_agreement_pdf_with_http_info(account_id, agreement_id, clickwrap_id)
585
+ # @param DocuSign_Click::GetAgreementPdfOptions Options for modifying the behavior of the function.
586
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
587
+ def get_agreement_pdf_with_http_info(account_id, agreement_id, clickwrap_id, options = DocuSign_Click::GetAgreementPdfOptions.default)
652
588
  if @api_client.config.debugging
653
589
  @api_client.config.logger.debug "Calling API: AccountsApi.get_agreement_pdf ..."
654
590
  end
@@ -663,11 +599,12 @@ module DocuSign_Click
663
599
 
664
600
  # query parameters
665
601
  query_params = {}
602
+ query_params[:'include_coc'] = options.include_coc if !options.include_coc.nil?
666
603
 
667
604
  # header parameters
668
605
  header_params = {}
669
606
  # HTTP header 'Accept' (if needed)
670
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
607
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
671
608
 
672
609
  # form parameters
673
610
  form_params = {}
@@ -680,7 +617,8 @@ module DocuSign_Click
680
617
  :query_params => query_params,
681
618
  :form_params => form_params,
682
619
  :body => post_body,
683
- :auth_names => auth_names)
620
+ :auth_names => auth_names,
621
+ :return_type => 'File')
684
622
  if @api_client.config.debugging
685
623
  @api_client.config.logger.debug "API called: AccountsApi#get_agreement_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
686
624
  end
@@ -740,7 +678,7 @@ module DocuSign_Click
740
678
  return data, status_code, headers
741
679
  end
742
680
 
743
- # Gets the Clickwraps for an account
681
+ # Gets the agreement responses for a clickwrap
744
682
  #
745
683
  # @param account_id
746
684
  # @param clickwrap_id
@@ -751,7 +689,7 @@ module DocuSign_Click
751
689
  return data
752
690
  end
753
691
 
754
- # Gets the Clickwraps for an account
692
+ # Gets the agreement responses for a clickwrap
755
693
  #
756
694
  # @param account_id
757
695
  # @param clickwrap_id
@@ -921,127 +859,6 @@ module DocuSign_Click
921
859
  return data, status_code, headers
922
860
  end
923
861
 
924
- # Gets the agreement responses for a clickwrap version
925
- #
926
- # @param account_id
927
- # @param clickwrap_id
928
- # @param version_number
929
- # @param DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions Options for modifying the behavior of the function.
930
- # @return [ClickwrapAgreementsResponse]
931
- def get_clickwrap_version_agreements_by_number(account_id, clickwrap_id, version_number, options = DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions.default)
932
- data, _status_code, _headers = get_clickwrap_version_agreements_by_number_with_http_info(account_id, clickwrap_id, version_number, options)
933
- return data
934
- end
935
-
936
- # Gets the agreement responses for a clickwrap version
937
- #
938
- # @param account_id
939
- # @param clickwrap_id
940
- # @param version_number
941
- # @param DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions Options for modifying the behavior of the function.
942
- # @return [Array<(ClickwrapAgreementsResponse, Fixnum, Hash)>] ClickwrapAgreementsResponse data, response status code and response headers
943
- def get_clickwrap_version_agreements_by_number_with_http_info(account_id, clickwrap_id, version_number, options = DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions.default)
944
- if @api_client.config.debugging
945
- @api_client.config.logger.debug "Calling API: AccountsApi.get_clickwrap_version_agreements_by_number ..."
946
- end
947
- # verify the required parameter 'account_id' is set
948
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if account_id.nil?
949
- # verify the required parameter 'clickwrap_id' is set
950
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if clickwrap_id.nil?
951
- # verify the required parameter 'version_number' is set
952
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if version_number.nil?
953
- # resource path
954
- local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionNumber}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionNumber' + '}', version_number.to_s)
955
-
956
- # query parameters
957
- query_params = {}
958
- query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
959
- query_params[:'from_date'] = options.from_date if !options.from_date.nil?
960
- query_params[:'page_number'] = options.page_number if !options.page_number.nil?
961
- query_params[:'status'] = options.status if !options.status.nil?
962
- query_params[:'to_date'] = options.to_date if !options.to_date.nil?
963
-
964
- # header parameters
965
- header_params = {}
966
- # HTTP header 'Accept' (if needed)
967
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
968
-
969
- # form parameters
970
- form_params = {}
971
-
972
- # http body (model)
973
- post_body = nil
974
- auth_names = []
975
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
976
- :header_params => header_params,
977
- :query_params => query_params,
978
- :form_params => form_params,
979
- :body => post_body,
980
- :auth_names => auth_names,
981
- :return_type => 'ClickwrapAgreementsResponse')
982
- if @api_client.config.debugging
983
- @api_client.config.logger.debug "API called: AccountsApi#get_clickwrap_version_agreements_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
984
- end
985
- return data, status_code, headers
986
- end
987
-
988
- # Gets the Clickwrap version by clickwrapId and versionNumber for an account
989
- #
990
- # @param account_id
991
- # @param clickwrap_id
992
- # @param version_number
993
- # @return [ClickwrapVersionResponse]
994
- def get_clickwrap_version_by_number(account_id, clickwrap_id, version_number)
995
- data, _status_code, _headers = get_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
996
- return data
997
- end
998
-
999
- # Gets the Clickwrap version by clickwrapId and versionNumber for an account
1000
- #
1001
- # @param account_id
1002
- # @param clickwrap_id
1003
- # @param version_number
1004
- # @return [Array<(ClickwrapVersionResponse, Fixnum, Hash)>] ClickwrapVersionResponse data, response status code and response headers
1005
- def get_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
1006
- if @api_client.config.debugging
1007
- @api_client.config.logger.debug "Calling API: AccountsApi.get_clickwrap_version_by_number ..."
1008
- end
1009
- # verify the required parameter 'account_id' is set
1010
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_version_by_number" if account_id.nil?
1011
- # verify the required parameter 'clickwrap_id' is set
1012
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_by_number" if clickwrap_id.nil?
1013
- # verify the required parameter 'version_number' is set
1014
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.get_clickwrap_version_by_number" if version_number.nil?
1015
- # resource path
1016
- local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionNumber}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionNumber' + '}', version_number.to_s)
1017
-
1018
- # query parameters
1019
- query_params = {}
1020
-
1021
- # header parameters
1022
- header_params = {}
1023
- # HTTP header 'Accept' (if needed)
1024
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1025
-
1026
- # form parameters
1027
- form_params = {}
1028
-
1029
- # http body (model)
1030
- post_body = nil
1031
- auth_names = []
1032
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1033
- :header_params => header_params,
1034
- :query_params => query_params,
1035
- :form_params => form_params,
1036
- :body => post_body,
1037
- :auth_names => auth_names,
1038
- :return_type => 'ClickwrapVersionResponse')
1039
- if @api_client.config.debugging
1040
- @api_client.config.logger.debug "API called: AccountsApi#get_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1041
- end
1042
- return data, status_code, headers
1043
- end
1044
-
1045
862
  # Gets all the versions of a clickwrap for an account
1046
863
  #
1047
864
  # @param account_id
@@ -1121,10 +938,11 @@ module DocuSign_Click
1121
938
 
1122
939
  # query parameters
1123
940
  query_params = {}
941
+ query_params[:'filter'] = options.filter if !options.filter.nil?
1124
942
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
943
+ query_params[:'name'] = options.name if !options.name.nil?
1125
944
  query_params[:'ownerUserId'] = options.owner_user_id if !options.owner_user_id.nil?
1126
945
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
1127
- query_params[:'shared'] = options.shared if !options.shared.nil?
1128
946
  query_params[:'status'] = options.status if !options.status.nil?
1129
947
  query_params[:'to_date'] = options.to_date if !options.to_date.nil?
1130
948
 
@@ -1310,64 +1128,5 @@ module DocuSign_Click
1310
1128
  end
1311
1129
  return data, status_code, headers
1312
1130
  end
1313
-
1314
- # Updates the clickwrap version specified by versionNumber. Use versionId instead of versionNumber
1315
- #
1316
- # @param account_id
1317
- # @param clickwrap_id
1318
- # @param version_number
1319
- # @param clickwrap_request (optional parameter)
1320
- # @return [ClickwrapVersionSummaryResponse]
1321
- def update_clickwrap_version_by_number(account_id, clickwrap_id, version_number, clickwrap_request)
1322
- data, _status_code, _headers = update_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number, clickwrap_request)
1323
- return data
1324
- end
1325
-
1326
- # Updates the clickwrap version specified by versionNumber. Use versionId instead of versionNumber
1327
- #
1328
- # @param account_id
1329
- # @param clickwrap_id
1330
- # @param version_number
1331
- # @param clickwrap_request (optional parameter)
1332
- # @return [Array<(ClickwrapVersionSummaryResponse, Fixnum, Hash)>] ClickwrapVersionSummaryResponse data, response status code and response headers
1333
- def update_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number, clickwrap_request)
1334
- if @api_client.config.debugging
1335
- @api_client.config.logger.debug "Calling API: AccountsApi.update_clickwrap_version_by_number ..."
1336
- end
1337
- # verify the required parameter 'account_id' is set
1338
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_clickwrap_version_by_number" if account_id.nil?
1339
- # verify the required parameter 'clickwrap_id' is set
1340
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.update_clickwrap_version_by_number" if clickwrap_id.nil?
1341
- # verify the required parameter 'version_number' is set
1342
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.update_clickwrap_version_by_number" if version_number.nil?
1343
- # resource path
1344
- local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionNumber}".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionNumber' + '}', version_number.to_s)
1345
-
1346
- # query parameters
1347
- query_params = {}
1348
-
1349
- # header parameters
1350
- header_params = {}
1351
- # HTTP header 'Accept' (if needed)
1352
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1353
-
1354
- # form parameters
1355
- form_params = {}
1356
-
1357
- # http body (model)
1358
- post_body = @api_client.object_to_http_body(clickwrap_request)
1359
- auth_names = []
1360
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1361
- :header_params => header_params,
1362
- :query_params => query_params,
1363
- :form_params => form_params,
1364
- :body => post_body,
1365
- :auth_names => auth_names,
1366
- :return_type => 'ClickwrapVersionSummaryResponse')
1367
- if @api_client.config.debugging
1368
- @api_client.config.logger.debug "API called: AccountsApi#update_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1369
- end
1370
- return data, status_code, headers
1371
- end
1372
1131
  end
1373
1132
  end
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #DocuSign Click REST API
2
+ #DocuSign Click API
3
3
 
4
- #An API for an integrator to access the features of DocuSign Click
4
+ #DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
5
5
 
6
- OpenAPI spec version: v2
6
+ OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -35,7 +35,7 @@ module DocuSign_Click
35
35
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
36
36
  def initialize(config = Configuration.default)
37
37
  @config = config
38
- @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
38
+ @user_agent = "Swagger-Codegen/1.1.0.rc1/ruby"
39
39
  @default_headers = {
40
40
  'Content-Type' => "application/json",
41
41
  'User-Agent' => @user_agent
@@ -392,8 +392,11 @@ module DocuSign_Click
392
392
  # Helper method to set oauth base path
393
393
  # @param [String] oauth_base_path if passed nil it will determined from base_path
394
394
  def set_oauth_base_path(oauth_base_path=nil)
395
- self.oauth_base_path = oauth_base_path if oauth_base_path
396
- return if self.oauth_base_path
395
+ if oauth_base_path
396
+ raise ArgumentError.new('OAuth base path should only include domain name (without https://)') if oauth_base_path.include? "//"
397
+ self.oauth_base_path = oauth_base_path
398
+ return
399
+ end
397
400
 
398
401
  # did we need this check as we can determine it from base path
399
402
  #raise ArgumentError.new('oAuthBasePath cannot be empty') unless oauth_base_path
@@ -572,13 +575,14 @@ module DocuSign_Click
572
575
  :return_type => 'OAuth::OAuthToken',
573
576
  :oauth => true
574
577
  }
575
- data, status_code, headers = self.call_api("POST", '/oauth/token', params)
576
- abort(data.inspect)
578
+
579
+ token, status_code, headers = self.call_api("POST", '/oauth/token', params)
577
580
 
578
- end
581
+ if status_code == 200
582
+ self.default_headers.store('Authorization', "#{token.token_type} #{token.access_token}")
579
583
 
580
- def set_access_token(token_obj)
581
- self.default_headers['Authorization'] = token_obj.access_token
584
+ token
585
+ end
582
586
  end
583
587
 
584
588
  # Helper method to add default header params
@@ -588,4 +592,4 @@ module DocuSign_Click
588
592
  @default_headers[header_name] = header_value
589
593
  end
590
594
  end
591
- end
595
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
- #DocuSign Click REST API
2
+ #DocuSign Click API
3
3
 
4
- #The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
4
+ #DocuSign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your DocuSign integrations.
5
5
 
6
- OpenAPI spec version: v2
6
+ OpenAPI spec version: v1
7
7
  Contact: devcenter@docusign.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -1058,4 +1058,4 @@ module DocuSign_Click
1058
1058
 
1059
1059
  end
1060
1060
  end
1061
- end
1061
+ end
@@ -49,9 +49,6 @@ module DocuSign_Click
49
49
  #
50
50
  attr_accessor :has_decline_button
51
51
 
52
- #
53
- attr_accessor :host_origin
54
-
55
52
  #
56
53
  attr_accessor :must_read
57
54
 
@@ -82,7 +79,6 @@ module DocuSign_Click
82
79
  :'downloadable' => :'downloadable',
83
80
  :'format' => :'format',
84
81
  :'has_decline_button' => :'hasDeclineButton',
85
- :'host_origin' => :'hostOrigin',
86
82
  :'must_read' => :'mustRead',
87
83
  :'must_view' => :'mustView',
88
84
  :'record_decline_responses' => :'recordDeclineResponses',
@@ -106,7 +102,6 @@ module DocuSign_Click
106
102
  :'downloadable' => :'BOOLEAN',
107
103
  :'format' => :'String',
108
104
  :'has_decline_button' => :'BOOLEAN',
109
- :'host_origin' => :'String',
110
105
  :'must_read' => :'BOOLEAN',
111
106
  :'must_view' => :'BOOLEAN',
112
107
  :'record_decline_responses' => :'BOOLEAN',
@@ -173,10 +168,6 @@ module DocuSign_Click
173
168
  self.has_decline_button = attributes[:'hasDeclineButton']
174
169
  end
175
170
 
176
- if attributes.has_key?(:'hostOrigin')
177
- self.host_origin = attributes[:'hostOrigin']
178
- end
179
-
180
171
  if attributes.has_key?(:'mustRead')
181
172
  self.must_read = attributes[:'mustRead']
182
173
  end
@@ -228,7 +219,6 @@ module DocuSign_Click
228
219
  downloadable == o.downloadable &&
229
220
  format == o.format &&
230
221
  has_decline_button == o.has_decline_button &&
231
- host_origin == o.host_origin &&
232
222
  must_read == o.must_read &&
233
223
  must_view == o.must_view &&
234
224
  record_decline_responses == o.record_decline_responses &&
@@ -245,7 +235,7 @@ module DocuSign_Click
245
235
  # Calculates hash code according to all attributes.
246
236
  # @return [Fixnum] Hash code
247
237
  def hash
248
- [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, host_origin, must_read, must_view, record_decline_responses, require_accept, send_to_email].hash
238
+ [action_button_alignment, allow_client_only, allowed_hosts, brand_id, consent_button_text, consent_text, decline_button_text, display_name, document_display, downloadable, format, has_decline_button, must_read, must_view, record_decline_responses, require_accept, send_to_email].hash
249
239
  end
250
240
 
251
241
  # Builds the object from hash