docusign_click 1.0.0.beta → 1.1.0

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: 5f6335c714fcbe2ee4ecfa9c82b806cd82f9f991d0313241980b89fe8b7107ac
4
- data.tar.gz: 897a5d21f916e16092657a43c35d91e1f74ca28b861d04865b1b5b81b06b0db2
3
+ metadata.gz: 54c3a561390af917e9e249c8ae658624f5841b2e7c1b20a7142eeed58ef5c351
4
+ data.tar.gz: 304e3dab2fdf316a5d1ff663cd4923f466feba8897ea1f38ec6d258bdab08b2e
5
5
  SHA512:
6
- metadata.gz: 539402f4be62a236f98453afa9acd5dac673afa69015bd6fe27e8879467fd8e68191d37307fbc2b6e406e8420457fc26acd42a1e0d98b86be14ecb589e4bacf7
7
- data.tar.gz: caa0e209da01629b0b0d2f51e62dff3b23eed14c2cd7af69f4ee5e841ad8463ff1804b756c1567efb9f2b90383eaf2519e074d7aca36618574612e8380adb363
6
+ metadata.gz: e414962999263a2b9d368fe76f203661e9d23147bd2d6ea074e7693da29de86f6d5717ea293725d615d2913e246dc6d0b06c230b9e23e7a3ccf5d9d858c3ec24
7
+ data.tar.gz: acfd800a7e9acd04e44a43f44559980dc79d9fec52ee3c7d1145b0f7acdcb6925f5768d22374bce7e45797c2a7a54b7401259096dee8e7d81ef5426af6f00f37
data/CHANGELOG.md CHANGED
@@ -1,6 +1,22 @@
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] - Click API v1-21.4.01 - 2021-12-09
5
+ ### Changed
6
+ - Added support for version v1-21.4.01 of the DocuSign Click API.
7
+ - Updated the SDK release version.
8
+
9
+
10
+ ## [1.1.0.rc1] - Click API v1-21.4.00 - 2021-11-19
11
+ ### Changed
12
+ - Added support for version v1-21.4.00 of the DocuSign Click API.
13
+ - Updated the SDK release version.
14
+
15
+
16
+ ## [v1.0.0] - DocuSign Click API v1 - 02/11/2021
17
+ ### Changed
18
+ - First GA version of Click API, supports DocuSign Click v1-20.4.02.
19
+
4
20
  ## [v1.0.0.beta] - Click API v1-20.3.02 - 2020-12-17
5
21
  ### Changed
6
- - First BETA version of Click API
22
+ - First BETA version of Click API
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2017- DocuSign, Inc. (https://www.docusign.com)
3
+ Copyright (c) 2020- DocuSign, Inc. (https://www.docusign.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # The Official DocuSign Ruby Client
1
+ # The Official DocuSign Click Ruby Client
2
2
 
3
3
  [![RubyGems version][rubygems-image]][rubygems-url]
4
4
  [![RubyGems downloads][downloads-image]][downloads-url]
@@ -77,4 +77,4 @@ The DocuSign Ruby Client is licensed under the [MIT License](https://github.com/
77
77
  * [DocuSign Developer Center](https://developers.docusign.com)
78
78
  * [DocuSign API on Twitter](https://twitter.com/docusignapi)
79
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)
80
+ * [DocuSign For Developers on YouTube](https://www.youtube.com/channel/UCJSJ2kMs_qeQotmw4-lX2NQ)
@@ -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
 
@@ -27,19 +27,22 @@ Gem::Specification.new do |s|
27
27
  s.required_ruby_version = ">= 1.9"
28
28
 
29
29
  s.add_runtime_dependency 'jwt', '~> 2.2', '>= 2.2.1'
30
+ s.add_runtime_dependency 'addressable', '~> 2.7', '>= 2.7.0'
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
32
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
33
 
33
- 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'
34
37
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
38
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
39
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
40
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
41
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
42
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
40
43
 
41
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
44
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
42
45
  s.test_files = `find spec/*`.split("\n")
43
46
  s.executables = []
44
47
  s.require_paths = ["lib"]
45
- 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
@@ -406,63 +400,6 @@ module DocuSign_Click
406
400
  return data, status_code, headers
407
401
  end
408
402
 
409
- # Delete a Clickwrap version specified by versionNumber. Use versionId instead of versionNumber
410
- #
411
- # @param account_id
412
- # @param clickwrap_id
413
- # @param version_number
414
- # @return [ClickwrapVersionSummaryResponse]
415
- def delete_clickwrap_version_by_number(account_id, clickwrap_id, version_number)
416
- data, _status_code, _headers = delete_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
417
- return data
418
- end
419
-
420
- # Delete a Clickwrap version specified by versionNumber. Use versionId instead of versionNumber
421
- #
422
- # @param account_id
423
- # @param clickwrap_id
424
- # @param version_number
425
- # @return [Array<(ClickwrapVersionSummaryResponse, Fixnum, Hash)>] ClickwrapVersionSummaryResponse data, response status code and response headers
426
- def delete_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
427
- if @api_client.config.debugging
428
- @api_client.config.logger.debug "Calling API: AccountsApi.delete_clickwrap_version_by_number ..."
429
- end
430
- # verify the required parameter 'account_id' is set
431
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.delete_clickwrap_version_by_number" if account_id.nil?
432
- # verify the required parameter 'clickwrap_id' is set
433
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.delete_clickwrap_version_by_number" if clickwrap_id.nil?
434
- # verify the required parameter 'version_number' is set
435
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.delete_clickwrap_version_by_number" if version_number.nil?
436
- # resource path
437
- 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)
438
-
439
- # query parameters
440
- query_params = {}
441
-
442
- # header parameters
443
- header_params = {}
444
- # HTTP header 'Accept' (if needed)
445
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
446
-
447
- # form parameters
448
- form_params = {}
449
-
450
- # http body (model)
451
- post_body = nil
452
- auth_names = []
453
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
454
- :header_params => header_params,
455
- :query_params => query_params,
456
- :form_params => form_params,
457
- :body => post_body,
458
- :auth_names => auth_names,
459
- :return_type => 'ClickwrapVersionSummaryResponse')
460
- if @api_client.config.debugging
461
- @api_client.config.logger.debug "API called: AccountsApi#delete_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
462
- end
463
- return data, status_code, headers
464
- end
465
-
466
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.
467
404
  #
468
405
  # @param account_id
@@ -571,7 +508,7 @@ module DocuSign_Click
571
508
  return data, status_code, headers
572
509
  end
573
510
 
574
- #
511
+ # Gets the agreement by a provided agreement ID
575
512
  #
576
513
  # @param account_id
577
514
  # @param agreement_id
@@ -582,7 +519,7 @@ module DocuSign_Click
582
519
  return data
583
520
  end
584
521
 
585
- #
522
+ # Gets the agreement by a provided agreement ID
586
523
  #
587
524
  # @param account_id
588
525
  # @param agreement_id
@@ -628,24 +565,26 @@ module DocuSign_Click
628
565
  return data, status_code, headers
629
566
  end
630
567
 
631
- #
568
+ # Downloads the agreement PDF and optionally certificate of completion.
632
569
  #
633
570
  # @param account_id
634
571
  # @param agreement_id
635
572
  # @param clickwrap_id
636
- # @return [nil]
637
- def get_agreement_pdf(account_id, agreement_id, clickwrap_id)
638
- get_agreement_pdf_with_http_info(account_id, agreement_id, clickwrap_id)
639
- 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
640
578
  end
641
579
 
642
- #
580
+ # Downloads the agreement PDF and optionally certificate of completion.
643
581
  #
644
582
  # @param account_id
645
583
  # @param agreement_id
646
584
  # @param clickwrap_id
647
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
648
- 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)
649
588
  if @api_client.config.debugging
650
589
  @api_client.config.logger.debug "Calling API: AccountsApi.get_agreement_pdf ..."
651
590
  end
@@ -660,11 +599,12 @@ module DocuSign_Click
660
599
 
661
600
  # query parameters
662
601
  query_params = {}
602
+ query_params[:'include_coc'] = options.include_coc if !options.include_coc.nil?
663
603
 
664
604
  # header parameters
665
605
  header_params = {}
666
606
  # HTTP header 'Accept' (if needed)
667
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
607
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
668
608
 
669
609
  # form parameters
670
610
  form_params = {}
@@ -677,7 +617,8 @@ module DocuSign_Click
677
617
  :query_params => query_params,
678
618
  :form_params => form_params,
679
619
  :body => post_body,
680
- :auth_names => auth_names)
620
+ :auth_names => auth_names,
621
+ :return_type => 'File')
681
622
  if @api_client.config.debugging
682
623
  @api_client.config.logger.debug "API called: AccountsApi#get_agreement_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
683
624
  end
@@ -737,7 +678,7 @@ module DocuSign_Click
737
678
  return data, status_code, headers
738
679
  end
739
680
 
740
- # Gets the Clickwraps for an account
681
+ # Gets the agreement responses for a clickwrap
741
682
  #
742
683
  # @param account_id
743
684
  # @param clickwrap_id
@@ -748,7 +689,7 @@ module DocuSign_Click
748
689
  return data
749
690
  end
750
691
 
751
- # Gets the Clickwraps for an account
692
+ # Gets the agreement responses for a clickwrap
752
693
  #
753
694
  # @param account_id
754
695
  # @param clickwrap_id
@@ -762,19 +703,15 @@ module DocuSign_Click
762
703
  fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_agreements" if account_id.nil?
763
704
  # verify the required parameter 'clickwrap_id' is set
764
705
  fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_agreements" if clickwrap_id.nil?
765
- # verify the required parameter 'client_user_id' is set
766
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_agreements" if client_user_id.nil?
767
- # verify the required parameter 'status' is set
768
- fail ArgumentError, "Missing the required parameter 'status' when calling AccountsApi.get_clickwrap_agreements" if status.nil?
769
706
  # resource path
770
707
  local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s)
771
708
 
772
709
  # query parameters
773
710
  query_params = {}
774
- query_params[:'client_user_id'] = client_user_id
775
- query_params[:'status'] = status
711
+ query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
776
712
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
777
713
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
714
+ query_params[:'status'] = options.status if !options.status.nil?
778
715
  query_params[:'to_date'] = options.to_date if !options.to_date.nil?
779
716
 
780
717
  # header parameters
@@ -887,14 +824,12 @@ module DocuSign_Click
887
824
  fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_agreements" if clickwrap_id.nil?
888
825
  # verify the required parameter 'version_id' is set
889
826
  fail ArgumentError, "Missing the required parameter 'version_id' when calling AccountsApi.get_clickwrap_version_agreements" if version_id.nil?
890
- # verify the required parameter 'client_user_id' is set
891
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_version_agreements" if client_user_id.nil?
892
827
  # resource path
893
828
  local_var_path = "/v1/accounts/{accountId}/clickwraps/{clickwrapId}/versions/{versionId}/users".sub('{format}','json').sub('{' + 'accountId' + '}', account_id.to_s).sub('{' + 'clickwrapId' + '}', clickwrap_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
894
829
 
895
830
  # query parameters
896
831
  query_params = {}
897
- query_params[:'client_user_id'] = client_user_id
832
+ query_params[:'client_user_id'] = options.client_user_id if !options.client_user_id.nil?
898
833
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
899
834
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
900
835
  query_params[:'status'] = options.status if !options.status.nil?
@@ -924,129 +859,6 @@ module DocuSign_Click
924
859
  return data, status_code, headers
925
860
  end
926
861
 
927
- # Gets the agreement responses for a clickwrap version
928
- #
929
- # @param account_id
930
- # @param clickwrap_id
931
- # @param version_number
932
- # @param DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions Options for modifying the behavior of the function.
933
- # @return [ClickwrapAgreementsResponse]
934
- def get_clickwrap_version_agreements_by_number(account_id, clickwrap_id, version_number, options = DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions.default)
935
- data, _status_code, _headers = get_clickwrap_version_agreements_by_number_with_http_info(account_id, clickwrap_id, version_number, options)
936
- return data
937
- end
938
-
939
- # Gets the agreement responses for a clickwrap version
940
- #
941
- # @param account_id
942
- # @param clickwrap_id
943
- # @param version_number
944
- # @param DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions Options for modifying the behavior of the function.
945
- # @return [Array<(ClickwrapAgreementsResponse, Fixnum, Hash)>] ClickwrapAgreementsResponse data, response status code and response headers
946
- def get_clickwrap_version_agreements_by_number_with_http_info(account_id, clickwrap_id, version_number, options = DocuSign_Click::GetClickwrapVersionAgreementsByNumberOptions.default)
947
- if @api_client.config.debugging
948
- @api_client.config.logger.debug "Calling API: AccountsApi.get_clickwrap_version_agreements_by_number ..."
949
- end
950
- # verify the required parameter 'account_id' is set
951
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if account_id.nil?
952
- # verify the required parameter 'clickwrap_id' is set
953
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if clickwrap_id.nil?
954
- # verify the required parameter 'version_number' is set
955
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if version_number.nil?
956
- # verify the required parameter 'client_user_id' is set
957
- fail ArgumentError, "Missing the required parameter 'client_user_id' when calling AccountsApi.get_clickwrap_version_agreements_by_number" if client_user_id.nil?
958
- # resource path
959
- 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)
960
-
961
- # query parameters
962
- query_params = {}
963
- query_params[:'client_user_id'] = client_user_id
964
- query_params[:'from_date'] = options.from_date if !options.from_date.nil?
965
- query_params[:'page_number'] = options.page_number if !options.page_number.nil?
966
- query_params[:'status'] = options.status if !options.status.nil?
967
- query_params[:'to_date'] = options.to_date if !options.to_date.nil?
968
-
969
- # header parameters
970
- header_params = {}
971
- # HTTP header 'Accept' (if needed)
972
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
973
-
974
- # form parameters
975
- form_params = {}
976
-
977
- # http body (model)
978
- post_body = nil
979
- auth_names = []
980
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
981
- :header_params => header_params,
982
- :query_params => query_params,
983
- :form_params => form_params,
984
- :body => post_body,
985
- :auth_names => auth_names,
986
- :return_type => 'ClickwrapAgreementsResponse')
987
- if @api_client.config.debugging
988
- @api_client.config.logger.debug "API called: AccountsApi#get_clickwrap_version_agreements_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
989
- end
990
- return data, status_code, headers
991
- end
992
-
993
- # Gets the Clickwrap version by clickwrapId and versionNumber for an account
994
- #
995
- # @param account_id
996
- # @param clickwrap_id
997
- # @param version_number
998
- # @return [ClickwrapVersionResponse]
999
- def get_clickwrap_version_by_number(account_id, clickwrap_id, version_number)
1000
- data, _status_code, _headers = get_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
1001
- return data
1002
- end
1003
-
1004
- # Gets the Clickwrap version by clickwrapId and versionNumber for an account
1005
- #
1006
- # @param account_id
1007
- # @param clickwrap_id
1008
- # @param version_number
1009
- # @return [Array<(ClickwrapVersionResponse, Fixnum, Hash)>] ClickwrapVersionResponse data, response status code and response headers
1010
- def get_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number)
1011
- if @api_client.config.debugging
1012
- @api_client.config.logger.debug "Calling API: AccountsApi.get_clickwrap_version_by_number ..."
1013
- end
1014
- # verify the required parameter 'account_id' is set
1015
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.get_clickwrap_version_by_number" if account_id.nil?
1016
- # verify the required parameter 'clickwrap_id' is set
1017
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.get_clickwrap_version_by_number" if clickwrap_id.nil?
1018
- # verify the required parameter 'version_number' is set
1019
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.get_clickwrap_version_by_number" if version_number.nil?
1020
- # resource path
1021
- 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)
1022
-
1023
- # query parameters
1024
- query_params = {}
1025
-
1026
- # header parameters
1027
- header_params = {}
1028
- # HTTP header 'Accept' (if needed)
1029
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1030
-
1031
- # form parameters
1032
- form_params = {}
1033
-
1034
- # http body (model)
1035
- post_body = nil
1036
- auth_names = []
1037
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1038
- :header_params => header_params,
1039
- :query_params => query_params,
1040
- :form_params => form_params,
1041
- :body => post_body,
1042
- :auth_names => auth_names,
1043
- :return_type => 'ClickwrapVersionResponse')
1044
- if @api_client.config.debugging
1045
- @api_client.config.logger.debug "API called: AccountsApi#get_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1046
- end
1047
- return data, status_code, headers
1048
- end
1049
-
1050
862
  # Gets all the versions of a clickwrap for an account
1051
863
  #
1052
864
  # @param account_id
@@ -1126,7 +938,9 @@ module DocuSign_Click
1126
938
 
1127
939
  # query parameters
1128
940
  query_params = {}
941
+ query_params[:'filter'] = options.filter if !options.filter.nil?
1129
942
  query_params[:'from_date'] = options.from_date if !options.from_date.nil?
943
+ query_params[:'name'] = options.name if !options.name.nil?
1130
944
  query_params[:'ownerUserId'] = options.owner_user_id if !options.owner_user_id.nil?
1131
945
  query_params[:'page_number'] = options.page_number if !options.page_number.nil?
1132
946
  query_params[:'status'] = options.status if !options.status.nil?
@@ -1314,64 +1128,5 @@ module DocuSign_Click
1314
1128
  end
1315
1129
  return data, status_code, headers
1316
1130
  end
1317
-
1318
- # Updates the clickwrap version specified by versionNumber. Use versionId instead of versionNumber
1319
- #
1320
- # @param account_id
1321
- # @param clickwrap_id
1322
- # @param version_number
1323
- # @param clickwrap_request (optional parameter)
1324
- # @return [ClickwrapVersionSummaryResponse]
1325
- def update_clickwrap_version_by_number(account_id, clickwrap_id, version_number, clickwrap_request)
1326
- data, _status_code, _headers = update_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number, clickwrap_request)
1327
- return data
1328
- end
1329
-
1330
- # Updates the clickwrap version specified by versionNumber. Use versionId instead of versionNumber
1331
- #
1332
- # @param account_id
1333
- # @param clickwrap_id
1334
- # @param version_number
1335
- # @param clickwrap_request (optional parameter)
1336
- # @return [Array<(ClickwrapVersionSummaryResponse, Fixnum, Hash)>] ClickwrapVersionSummaryResponse data, response status code and response headers
1337
- def update_clickwrap_version_by_number_with_http_info(account_id, clickwrap_id, version_number, clickwrap_request)
1338
- if @api_client.config.debugging
1339
- @api_client.config.logger.debug "Calling API: AccountsApi.update_clickwrap_version_by_number ..."
1340
- end
1341
- # verify the required parameter 'account_id' is set
1342
- fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountsApi.update_clickwrap_version_by_number" if account_id.nil?
1343
- # verify the required parameter 'clickwrap_id' is set
1344
- fail ArgumentError, "Missing the required parameter 'clickwrap_id' when calling AccountsApi.update_clickwrap_version_by_number" if clickwrap_id.nil?
1345
- # verify the required parameter 'version_number' is set
1346
- fail ArgumentError, "Missing the required parameter 'version_number' when calling AccountsApi.update_clickwrap_version_by_number" if version_number.nil?
1347
- # resource path
1348
- 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)
1349
-
1350
- # query parameters
1351
- query_params = {}
1352
-
1353
- # header parameters
1354
- header_params = {}
1355
- # HTTP header 'Accept' (if needed)
1356
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1357
-
1358
- # form parameters
1359
- form_params = {}
1360
-
1361
- # http body (model)
1362
- post_body = @api_client.object_to_http_body(clickwrap_request)
1363
- auth_names = []
1364
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1365
- :header_params => header_params,
1366
- :query_params => query_params,
1367
- :form_params => form_params,
1368
- :body => post_body,
1369
- :auth_names => auth_names,
1370
- :return_type => 'ClickwrapVersionSummaryResponse')
1371
- if @api_client.config.debugging
1372
- @api_client.config.logger.debug "API called: AccountsApi#update_clickwrap_version_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1373
- end
1374
- return data, status_code, headers
1375
- end
1376
1131
  end
1377
1132
  end