signwell_sdk 0.0.1.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +24 -0
  4. data/README.md +398 -0
  5. data/SECURITY.md +23 -0
  6. data/lib/signwell_sdk/client.rb +72 -0
  7. data/lib/signwell_sdk/errors.rb +228 -0
  8. data/lib/signwell_sdk/file_part.rb +58 -0
  9. data/lib/signwell_sdk/internal/transport/base_client.rb +573 -0
  10. data/lib/signwell_sdk/internal/transport/pooled_net_requester.rb +210 -0
  11. data/lib/signwell_sdk/internal/type/array_of.rb +168 -0
  12. data/lib/signwell_sdk/internal/type/base_model.rb +531 -0
  13. data/lib/signwell_sdk/internal/type/base_page.rb +55 -0
  14. data/lib/signwell_sdk/internal/type/boolean.rb +77 -0
  15. data/lib/signwell_sdk/internal/type/converter.rb +327 -0
  16. data/lib/signwell_sdk/internal/type/enum.rb +156 -0
  17. data/lib/signwell_sdk/internal/type/file_input.rb +111 -0
  18. data/lib/signwell_sdk/internal/type/hash_of.rb +188 -0
  19. data/lib/signwell_sdk/internal/type/request_parameters.rb +42 -0
  20. data/lib/signwell_sdk/internal/type/union.rb +243 -0
  21. data/lib/signwell_sdk/internal/type/unknown.rb +81 -0
  22. data/lib/signwell_sdk/internal/util.rb +920 -0
  23. data/lib/signwell_sdk/internal.rb +20 -0
  24. data/lib/signwell_sdk/models/attachment_request_info.rb +34 -0
  25. data/lib/signwell_sdk/models/checkbox_group_info.rb +66 -0
  26. data/lib/signwell_sdk/models/checkbox_validation.rb +18 -0
  27. data/lib/signwell_sdk/models/copied_contact_info.rb +34 -0
  28. data/lib/signwell_sdk/models/date_format.rb +20 -0
  29. data/lib/signwell_sdk/models/field_type.rb +29 -0
  30. data/lib/signwell_sdk/models/file_info.rb +26 -0
  31. data/lib/signwell_sdk/models/label_info.rb +26 -0
  32. data/lib/signwell_sdk/models/text_validation.rb +25 -0
  33. data/lib/signwell_sdk/models/v1/api_application_delete_params.rb +16 -0
  34. data/lib/signwell_sdk/models/v1/api_application_retrieve_params.rb +16 -0
  35. data/lib/signwell_sdk/models/v1/attachment_request.rb +38 -0
  36. data/lib/signwell_sdk/models/v1/bulk_send_create_params.rb +107 -0
  37. data/lib/signwell_sdk/models/v1/bulk_send_list_params.rb +55 -0
  38. data/lib/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rb +39 -0
  39. data/lib/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rb +32 -0
  40. data/lib/signwell_sdk/models/v1/bulk_send_retrieve_params.rb +16 -0
  41. data/lib/signwell_sdk/models/v1/bulk_send_validate_csv_params.rb +39 -0
  42. data/lib/signwell_sdk/models/v1/checkbox_group.rb +80 -0
  43. data/lib/signwell_sdk/models/v1/copied_contact.rb +26 -0
  44. data/lib/signwell_sdk/models/v1/document.rb +543 -0
  45. data/lib/signwell_sdk/models/v1/document_create_from_template_params.rb +740 -0
  46. data/lib/signwell_sdk/models/v1/document_create_from_template_response.rb +500 -0
  47. data/lib/signwell_sdk/models/v1/document_create_params.rb +620 -0
  48. data/lib/signwell_sdk/models/v1/document_delete_params.rb +16 -0
  49. data/lib/signwell_sdk/models/v1/document_file.rb +34 -0
  50. data/lib/signwell_sdk/models/v1/document_list_params.rb +32 -0
  51. data/lib/signwell_sdk/models/v1/document_list_response.rb +50 -0
  52. data/lib/signwell_sdk/models/v1/document_remind_params.rb +49 -0
  53. data/lib/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rb +55 -0
  54. data/lib/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rb +22 -0
  55. data/lib/signwell_sdk/models/v1/document_retrieve_params.rb +16 -0
  56. data/lib/signwell_sdk/models/v1/document_send_params.rb +198 -0
  57. data/lib/signwell_sdk/models/v1/document_template.rb +503 -0
  58. data/lib/signwell_sdk/models/v1/document_template_create_params.rb +599 -0
  59. data/lib/signwell_sdk/models/v1/document_template_delete_params.rb +16 -0
  60. data/lib/signwell_sdk/models/v1/document_template_list_params.rb +32 -0
  61. data/lib/signwell_sdk/models/v1/document_template_list_response.rb +50 -0
  62. data/lib/signwell_sdk/models/v1/document_template_retrieve_params.rb +16 -0
  63. data/lib/signwell_sdk/models/v1/document_template_update_params.rb +162 -0
  64. data/lib/signwell_sdk/models/v1/hook_create_params.rb +32 -0
  65. data/lib/signwell_sdk/models/v1/hook_delete_params.rb +16 -0
  66. data/lib/signwell_sdk/models/v1/hook_list_params.rb +16 -0
  67. data/lib/signwell_sdk/models/v1/label.rb +22 -0
  68. data/lib/signwell_sdk/models/v1/template_checkbox_group.rb +80 -0
  69. data/lib/signwell_sdk/models/v1_me_params.rb +14 -0
  70. data/lib/signwell_sdk/models.rb +63 -0
  71. data/lib/signwell_sdk/request_options.rb +77 -0
  72. data/lib/signwell_sdk/resources/v1/api_applications.rb +59 -0
  73. data/lib/signwell_sdk/resources/v1/bulk_sends.rb +198 -0
  74. data/lib/signwell_sdk/resources/v1/document_templates.rb +204 -0
  75. data/lib/signwell_sdk/resources/v1/documents.rb +372 -0
  76. data/lib/signwell_sdk/resources/v1/hooks.rb +78 -0
  77. data/lib/signwell_sdk/resources/v1.rb +47 -0
  78. data/lib/signwell_sdk/version.rb +5 -0
  79. data/lib/signwell_sdk.rb +107 -0
  80. data/manifest.yaml +17 -0
  81. data/rbi/signwell_sdk/client.rbi +49 -0
  82. data/rbi/signwell_sdk/errors.rbi +205 -0
  83. data/rbi/signwell_sdk/file_part.rbi +37 -0
  84. data/rbi/signwell_sdk/internal/transport/base_client.rbi +302 -0
  85. data/rbi/signwell_sdk/internal/transport/pooled_net_requester.rbi +84 -0
  86. data/rbi/signwell_sdk/internal/type/array_of.rbi +104 -0
  87. data/rbi/signwell_sdk/internal/type/base_model.rbi +308 -0
  88. data/rbi/signwell_sdk/internal/type/base_page.rbi +43 -0
  89. data/rbi/signwell_sdk/internal/type/boolean.rbi +58 -0
  90. data/rbi/signwell_sdk/internal/type/converter.rbi +216 -0
  91. data/rbi/signwell_sdk/internal/type/enum.rbi +82 -0
  92. data/rbi/signwell_sdk/internal/type/file_input.rbi +59 -0
  93. data/rbi/signwell_sdk/internal/type/hash_of.rbi +104 -0
  94. data/rbi/signwell_sdk/internal/type/request_parameters.rbi +31 -0
  95. data/rbi/signwell_sdk/internal/type/union.rbi +128 -0
  96. data/rbi/signwell_sdk/internal/type/unknown.rbi +58 -0
  97. data/rbi/signwell_sdk/internal/util.rbi +487 -0
  98. data/rbi/signwell_sdk/internal.rbi +18 -0
  99. data/rbi/signwell_sdk/models/attachment_request_info.rbi +52 -0
  100. data/rbi/signwell_sdk/models/checkbox_group_info.rbi +89 -0
  101. data/rbi/signwell_sdk/models/checkbox_validation.rbi +27 -0
  102. data/rbi/signwell_sdk/models/copied_contact_info.rbi +50 -0
  103. data/rbi/signwell_sdk/models/date_format.rbi +26 -0
  104. data/rbi/signwell_sdk/models/field_type.rbi +41 -0
  105. data/rbi/signwell_sdk/models/file_info.rbi +36 -0
  106. data/rbi/signwell_sdk/models/label_info.rbi +40 -0
  107. data/rbi/signwell_sdk/models/text_validation.rbi +44 -0
  108. data/rbi/signwell_sdk/models/v1/api_application_delete_params.rbi +34 -0
  109. data/rbi/signwell_sdk/models/v1/api_application_retrieve_params.rbi +34 -0
  110. data/rbi/signwell_sdk/models/v1/attachment_request.rbi +59 -0
  111. data/rbi/signwell_sdk/models/v1/bulk_send_create_params.rbi +160 -0
  112. data/rbi/signwell_sdk/models/v1/bulk_send_list_params.rbi +92 -0
  113. data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rbi +67 -0
  114. data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rbi +62 -0
  115. data/rbi/signwell_sdk/models/v1/bulk_send_retrieve_params.rbi +34 -0
  116. data/rbi/signwell_sdk/models/v1/bulk_send_validate_csv_params.rbi +64 -0
  117. data/rbi/signwell_sdk/models/v1/checkbox_group.rbi +121 -0
  118. data/rbi/signwell_sdk/models/v1/copied_contact.rbi +41 -0
  119. data/rbi/signwell_sdk/models/v1/document.rbi +833 -0
  120. data/rbi/signwell_sdk/models/v1/document_create_from_template_params.rbi +1270 -0
  121. data/rbi/signwell_sdk/models/v1/document_create_from_template_response.rbi +856 -0
  122. data/rbi/signwell_sdk/models/v1/document_create_params.rbi +1019 -0
  123. data/rbi/signwell_sdk/models/v1/document_delete_params.rbi +34 -0
  124. data/rbi/signwell_sdk/models/v1/document_file.rbi +55 -0
  125. data/rbi/signwell_sdk/models/v1/document_list_params.rbi +62 -0
  126. data/rbi/signwell_sdk/models/v1/document_list_response.rbi +71 -0
  127. data/rbi/signwell_sdk/models/v1/document_remind_params.rbi +107 -0
  128. data/rbi/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rbi +123 -0
  129. data/rbi/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rbi +34 -0
  130. data/rbi/signwell_sdk/models/v1/document_retrieve_params.rbi +34 -0
  131. data/rbi/signwell_sdk/models/v1/document_send_params.rbi +307 -0
  132. data/rbi/signwell_sdk/models/v1/document_template.rbi +830 -0
  133. data/rbi/signwell_sdk/models/v1/document_template_create_params.rbi +1050 -0
  134. data/rbi/signwell_sdk/models/v1/document_template_delete_params.rbi +34 -0
  135. data/rbi/signwell_sdk/models/v1/document_template_list_params.rbi +62 -0
  136. data/rbi/signwell_sdk/models/v1/document_template_list_response.rbi +71 -0
  137. data/rbi/signwell_sdk/models/v1/document_template_retrieve_params.rbi +34 -0
  138. data/rbi/signwell_sdk/models/v1/document_template_update_params.rbi +257 -0
  139. data/rbi/signwell_sdk/models/v1/hook_create_params.rbi +59 -0
  140. data/rbi/signwell_sdk/models/v1/hook_delete_params.rbi +34 -0
  141. data/rbi/signwell_sdk/models/v1/hook_list_params.rbi +34 -0
  142. data/rbi/signwell_sdk/models/v1/label.rbi +29 -0
  143. data/rbi/signwell_sdk/models/v1/template_checkbox_group.rbi +121 -0
  144. data/rbi/signwell_sdk/models/v1_me_params.rbi +27 -0
  145. data/rbi/signwell_sdk/models.rbi +25 -0
  146. data/rbi/signwell_sdk/request_options.rbi +59 -0
  147. data/rbi/signwell_sdk/resources/v1/api_applications.rbi +45 -0
  148. data/rbi/signwell_sdk/resources/v1/bulk_sends.rbi +173 -0
  149. data/rbi/signwell_sdk/resources/v1/document_templates.rbi +276 -0
  150. data/rbi/signwell_sdk/resources/v1/documents.rbi +527 -0
  151. data/rbi/signwell_sdk/resources/v1/hooks.rbi +52 -0
  152. data/rbi/signwell_sdk/resources/v1.rbi +32 -0
  153. data/rbi/signwell_sdk/version.rbi +5 -0
  154. data/sig/signwell_sdk/client.rbs +26 -0
  155. data/sig/signwell_sdk/errors.rbs +117 -0
  156. data/sig/signwell_sdk/file_part.rbs +21 -0
  157. data/sig/signwell_sdk/internal/transport/base_client.rbs +133 -0
  158. data/sig/signwell_sdk/internal/transport/pooled_net_requester.rbs +48 -0
  159. data/sig/signwell_sdk/internal/type/array_of.rbs +48 -0
  160. data/sig/signwell_sdk/internal/type/base_model.rbs +102 -0
  161. data/sig/signwell_sdk/internal/type/base_page.rbs +24 -0
  162. data/sig/signwell_sdk/internal/type/boolean.rbs +26 -0
  163. data/sig/signwell_sdk/internal/type/converter.rbs +79 -0
  164. data/sig/signwell_sdk/internal/type/enum.rbs +32 -0
  165. data/sig/signwell_sdk/internal/type/file_input.rbs +25 -0
  166. data/sig/signwell_sdk/internal/type/hash_of.rbs +48 -0
  167. data/sig/signwell_sdk/internal/type/request_parameters.rbs +19 -0
  168. data/sig/signwell_sdk/internal/type/union.rbs +52 -0
  169. data/sig/signwell_sdk/internal/type/unknown.rbs +26 -0
  170. data/sig/signwell_sdk/internal/util.rbs +185 -0
  171. data/sig/signwell_sdk/internal.rbs +9 -0
  172. data/sig/signwell_sdk/models/attachment_request_info.rbs +19 -0
  173. data/sig/signwell_sdk/models/checkbox_group_info.rbs +52 -0
  174. data/sig/signwell_sdk/models/checkbox_validation.rbs +16 -0
  175. data/sig/signwell_sdk/models/copied_contact_info.rbs +21 -0
  176. data/sig/signwell_sdk/models/date_format.rbs +22 -0
  177. data/sig/signwell_sdk/models/field_type.rbs +42 -0
  178. data/sig/signwell_sdk/models/file_info.rbs +15 -0
  179. data/sig/signwell_sdk/models/label_info.rbs +19 -0
  180. data/sig/signwell_sdk/models/text_validation.rbs +34 -0
  181. data/sig/signwell_sdk/models/v1/api_application_delete_params.rbs +17 -0
  182. data/sig/signwell_sdk/models/v1/api_application_retrieve_params.rbs +17 -0
  183. data/sig/signwell_sdk/models/v1/attachment_request.rbs +26 -0
  184. data/sig/signwell_sdk/models/v1/bulk_send_create_params.rbs +89 -0
  185. data/sig/signwell_sdk/models/v1/bulk_send_list_params.rbs +51 -0
  186. data/sig/signwell_sdk/models/v1/bulk_send_retrieve_csv_template_params.rbs +32 -0
  187. data/sig/signwell_sdk/models/v1/bulk_send_retrieve_documents_params.rbs +34 -0
  188. data/sig/signwell_sdk/models/v1/bulk_send_retrieve_params.rbs +17 -0
  189. data/sig/signwell_sdk/models/v1/bulk_send_validate_csv_params.rbs +30 -0
  190. data/sig/signwell_sdk/models/v1/checkbox_group.rbs +69 -0
  191. data/sig/signwell_sdk/models/v1/copied_contact.rbs +19 -0
  192. data/sig/signwell_sdk/models/v1/document.rbs +563 -0
  193. data/sig/signwell_sdk/models/v1/document_create_from_template_params.rbs +570 -0
  194. data/sig/signwell_sdk/models/v1/document_create_from_template_response.rbs +518 -0
  195. data/sig/signwell_sdk/models/v1/document_create_params.rbs +473 -0
  196. data/sig/signwell_sdk/models/v1/document_delete_params.rbs +17 -0
  197. data/sig/signwell_sdk/models/v1/document_file.rbs +32 -0
  198. data/sig/signwell_sdk/models/v1/document_list_params.rbs +34 -0
  199. data/sig/signwell_sdk/models/v1/document_list_response.rbs +47 -0
  200. data/sig/signwell_sdk/models/v1/document_remind_params.rbs +48 -0
  201. data/sig/signwell_sdk/models/v1/document_retrieve_completed_pdf_params.rbs +57 -0
  202. data/sig/signwell_sdk/models/v1/document_retrieve_completed_pdf_response.rbs +15 -0
  203. data/sig/signwell_sdk/models/v1/document_retrieve_params.rbs +17 -0
  204. data/sig/signwell_sdk/models/v1/document_send_params.rbs +160 -0
  205. data/sig/signwell_sdk/models/v1/document_template.rbs +530 -0
  206. data/sig/signwell_sdk/models/v1/document_template_create_params.rbs +459 -0
  207. data/sig/signwell_sdk/models/v1/document_template_delete_params.rbs +17 -0
  208. data/sig/signwell_sdk/models/v1/document_template_list_params.rbs +34 -0
  209. data/sig/signwell_sdk/models/v1/document_template_list_response.rbs +47 -0
  210. data/sig/signwell_sdk/models/v1/document_template_retrieve_params.rbs +17 -0
  211. data/sig/signwell_sdk/models/v1/document_template_update_params.rbs +132 -0
  212. data/sig/signwell_sdk/models/v1/hook_create_params.rbs +32 -0
  213. data/sig/signwell_sdk/models/v1/hook_delete_params.rbs +17 -0
  214. data/sig/signwell_sdk/models/v1/hook_list_params.rbs +17 -0
  215. data/sig/signwell_sdk/models/v1/label.rbs +15 -0
  216. data/sig/signwell_sdk/models/v1/template_checkbox_group.rbs +69 -0
  217. data/sig/signwell_sdk/models/v1_me_params.rbs +14 -0
  218. data/sig/signwell_sdk/models.rbs +23 -0
  219. data/sig/signwell_sdk/request_options.rbs +36 -0
  220. data/sig/signwell_sdk/resources/v1/api_applications.rbs +19 -0
  221. data/sig/signwell_sdk/resources/v1/bulk_sends.rbs +55 -0
  222. data/sig/signwell_sdk/resources/v1/document_templates.rbs +71 -0
  223. data/sig/signwell_sdk/resources/v1/documents.rbs +130 -0
  224. data/sig/signwell_sdk/resources/v1/hooks.rbs +22 -0
  225. data/sig/signwell_sdk/resources/v1.rbs +19 -0
  226. data/sig/signwell_sdk/version.rbs +3 -0
  227. metadata +298 -0
@@ -0,0 +1,620 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SignwellSDK
4
+ module Models
5
+ module V1
6
+ # @see SignwellSDK::Resources::V1::Documents#create
7
+ class DocumentCreateParams < SignwellSDK::Internal::Type::BaseModel
8
+ extend SignwellSDK::Internal::Type::RequestParameters::Converter
9
+ include SignwellSDK::Internal::Type::RequestParameters
10
+
11
+ # @!attribute files
12
+ # Document files can be uploaded by specifying a file URL or base64 string. Either
13
+ # `file_url` or `file_base64` must be present (not both). Valid file types are:
14
+ # .pdf, .doc, .docx, .pages, .ppt, .pptx, .key, .xls, .xlsx, .numbers, .jpg,
15
+ # .jpeg, .png, .tiff, .tif, .webp, .html, and .htm
16
+ #
17
+ # @return [Array<SignwellSDK::Models::V1::DocumentFile>]
18
+ required :files, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::DocumentFile] }
19
+
20
+ # @!attribute recipients
21
+ # Document recipients are people that must complete and/or sign a document.
22
+ #
23
+ # @return [Array<SignwellSDK::Models::V1::DocumentCreateParams::Recipient>]
24
+ required :recipients,
25
+ -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::DocumentCreateParams::Recipient] }
26
+
27
+ # @!attribute allow_decline
28
+ # Whether to allow recipients the option to decline signing a document. If
29
+ # multiple signers are involved in a document, any single recipient can cancel the
30
+ # entire document signing process by declining to sign.
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :allow_decline, SignwellSDK::Internal::Type::Boolean
34
+
35
+ # @!attribute allow_reassign
36
+ # In some cases a signer is not the right person to sign and may need to reassign
37
+ # their signing responsibilities to another person. This feature allows them to
38
+ # reassign the document to someone else.
39
+ #
40
+ # @return [Boolean, nil]
41
+ optional :allow_reassign, SignwellSDK::Internal::Type::Boolean
42
+
43
+ # @!attribute api_application_id
44
+ # Unique identifier for API Application settings to use. API Applications are
45
+ # optional and mainly used when isolating OAuth apps or for more control over
46
+ # embedded API settings
47
+ #
48
+ # @return [String, nil]
49
+ optional :api_application_id, String
50
+
51
+ # @!attribute apply_signing_order
52
+ # When set to `true` recipients will sign one at a time in the order of the
53
+ # `recipients` collection of this request.
54
+ #
55
+ # @return [Boolean, nil]
56
+ optional :apply_signing_order, SignwellSDK::Internal::Type::Boolean
57
+
58
+ # @!attribute attachment_requests
59
+ # Attachments that a recipient must upload to complete the signing process.
60
+ # Attachment requests are shown after all document fields have been completed.
61
+ #
62
+ # @return [Array<SignwellSDK::Models::V1::AttachmentRequest>, nil]
63
+ optional :attachment_requests,
64
+ -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::AttachmentRequest] }
65
+
66
+ # @!attribute checkbox_groups
67
+ # Checkbox fields that are placed on a document can be grouped with selection
68
+ # requirements. At least 2 checkbox fields in an array of fields must be assigned
69
+ # to the same recipient.
70
+ #
71
+ # @return [Array<SignwellSDK::Models::V1::CheckboxGroup>, nil]
72
+ optional :checkbox_groups, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::CheckboxGroup] }
73
+
74
+ # @!attribute copied_contacts
75
+ # Copied contacts are emailed the final document once it has been completed by all
76
+ # recipients.
77
+ #
78
+ # @return [Array<SignwellSDK::Models::V1::CopiedContact>, nil]
79
+ optional :copied_contacts, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::CopiedContact] }
80
+
81
+ # @!attribute custom_requester_email
82
+ # Sets the custom requester email for the document. When set, this is the email
83
+ # used for all email communications, signing notifications, and in the audit file.
84
+ #
85
+ # @return [String, nil]
86
+ optional :custom_requester_email, String
87
+
88
+ # @!attribute custom_requester_name
89
+ # Sets the custom requester name for the document. When set, this is the name used
90
+ # for all email communications, signing notifications, and in the audit file.
91
+ #
92
+ # @return [String, nil]
93
+ optional :custom_requester_name, String
94
+
95
+ # @!attribute decline_redirect_url
96
+ # A URL that recipients are redirected to if the document is declined.
97
+ #
98
+ # @return [String, nil]
99
+ optional :decline_redirect_url, String
100
+
101
+ # @!attribute draft
102
+ # Whether the document can still be updated before sending a signature request. If
103
+ # set to `false` the document is sent for signing as part of this request.
104
+ # Defaults to `false`.
105
+ #
106
+ # @return [Boolean, nil]
107
+ optional :draft, SignwellSDK::Internal::Type::Boolean
108
+
109
+ # @!attribute embedded_signing
110
+ # When set to `true` it enables embedded signing in your website/web application.
111
+ # Embedded functionality works with an iFrame and email authentication is
112
+ # disabled. :embedded_signinig defaults to `false`.
113
+ #
114
+ # @return [Boolean, nil]
115
+ optional :embedded_signing, SignwellSDK::Internal::Type::Boolean
116
+
117
+ # @!attribute embedded_signing_notifications
118
+ # On embedding signing, document owners (and CC'd contacts) do not get a
119
+ # notification email when documents have been completed. Setting this param to
120
+ # `true` will send out those final completed notifications. Default is `false`
121
+ #
122
+ # @return [Boolean, nil]
123
+ optional :embedded_signing_notifications, SignwellSDK::Internal::Type::Boolean
124
+
125
+ # @!attribute expires_in
126
+ # Number of days before the signature request expires. Defaults to the account
127
+ # expiration setting or template expiration (if the document is created from a
128
+ # template).
129
+ #
130
+ # @return [Integer, nil]
131
+ optional :expires_in, Integer
132
+
133
+ # @!attribute fields
134
+ # Document fields placed on a document for collecting data or signatures from
135
+ # recipients. At least one field must be present in the Create Document request if
136
+ # `draft` is `false` (unless adding a signature page by using
137
+ # `with_signature_page`). Field data should be sent as a 2-dimensional JSON array.
138
+ # One array of fields is needed for each file in the files array. An array of
139
+ # fields can be empty if you have a file that does not contain any fields.
140
+ #
141
+ # @return [Array<Array<SignwellSDK::Models::V1::DocumentCreateParams::Field>>, nil]
142
+ optional :fields,
143
+ -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::DocumentCreateParams::Field]] }
144
+
145
+ # @!attribute labels
146
+ # Labels can be used to organize documents in a way that can make it easy to find
147
+ # using the document search in SignWell. A document can have multiple labels.
148
+ #
149
+ # @return [Array<SignwellSDK::Models::V1::Label>, nil]
150
+ optional :labels, -> { SignwellSDK::Internal::Type::ArrayOf[SignwellSDK::V1::Label] }
151
+
152
+ # @!attribute language
153
+ # Sets the language for all recipients on the document and updates all recipient
154
+ # side interactions including the document email and the document itself. Accepted
155
+ # languages: English, Français, Español, Deutsch, Polski, Português, Dansk,
156
+ # Nederlands, Italiano, Русский, Svenska, العربية, Ελληνικά, Türkçe, Slovenčina.
157
+ # Defaults to English. Language should be sent in ISO 639-1 format: en, fr, es,
158
+ # de, pl, pt, da, nl, it, ru, sv, ar, el, tr, sk.
159
+ #
160
+ # @return [String, nil]
161
+ optional :language, String
162
+
163
+ # @!attribute message
164
+ # Email message for the signature request that recipients will see. Defaults to
165
+ # the default system message or a template message (if the document is created
166
+ # from a template).
167
+ #
168
+ # @return [String, nil]
169
+ optional :message, String
170
+
171
+ # @!attribute metadata
172
+ # Optional key-value data that can be associated with the document. If set, will
173
+ # be available every time the document data is returned.
174
+ #
175
+ # @return [Hash{Symbol=>String}, nil]
176
+ optional :metadata, SignwellSDK::Internal::Type::HashOf[String]
177
+
178
+ # @!attribute name
179
+ # The name of the document.
180
+ #
181
+ # @return [String, nil]
182
+ optional :name, String
183
+
184
+ # @!attribute redirect_url
185
+ # A URL that recipients are redirected to after successfully signing a document.
186
+ #
187
+ # @return [String, nil]
188
+ optional :redirect_url, String
189
+
190
+ # @!attribute reminders
191
+ # Whether to send signing reminders to recipients. Reminders are sent on day 3,
192
+ # day 6, and day 10 if set to `true`. Defaults to `true`.
193
+ #
194
+ # @return [Boolean, nil]
195
+ optional :reminders, SignwellSDK::Internal::Type::Boolean
196
+
197
+ # @!attribute subject
198
+ # Email subject for the signature request that recipients will see. Defaults to
199
+ # the default system subject or a template subject (if the document is created
200
+ # from a template).
201
+ #
202
+ # @return [String, nil]
203
+ optional :subject, String
204
+
205
+ # @!attribute test_mode
206
+ # Set to `true` to enable Test Mode. Documents created with Test Mode do not count
207
+ # towards API billing and are not legally binding. Defaults to `false`
208
+ #
209
+ # @return [Boolean, nil]
210
+ optional :test_mode, SignwellSDK::Internal::Type::Boolean
211
+
212
+ # @!attribute text_tags
213
+ # An alternative way (if you can’t use the recommended way) of placing fields in
214
+ # specific locations of your document by using special text tags. Useful when
215
+ # changing the content of your files changes the location of fields. See API
216
+ # documentation for “Text Tags” for details. Defaults to false.
217
+ #
218
+ # @return [Boolean, nil]
219
+ optional :text_tags, SignwellSDK::Internal::Type::Boolean
220
+
221
+ # @!attribute with_signature_page
222
+ # When set to `true` the document will have a signature page added to the end, and
223
+ # all signers will be required to add their signature on that page.
224
+ #
225
+ # @return [Boolean, nil]
226
+ optional :with_signature_page, SignwellSDK::Internal::Type::Boolean
227
+
228
+ # @!method initialize(files:, recipients:, allow_decline: nil, allow_reassign: nil, api_application_id: nil, apply_signing_order: nil, attachment_requests: nil, checkbox_groups: nil, copied_contacts: nil, custom_requester_email: nil, custom_requester_name: nil, decline_redirect_url: nil, draft: nil, embedded_signing: nil, embedded_signing_notifications: nil, expires_in: nil, fields: nil, labels: nil, language: nil, message: nil, metadata: nil, name: nil, redirect_url: nil, reminders: nil, subject: nil, test_mode: nil, text_tags: nil, with_signature_page: nil, request_options: {})
229
+ # Some parameter documentations has been truncated, see
230
+ # {SignwellSDK::Models::V1::DocumentCreateParams} for more details.
231
+ #
232
+ # @param files [Array<SignwellSDK::Models::V1::DocumentFile>] Document files can be uploaded by specifying a file URL or base64 string. Either
233
+ #
234
+ # @param recipients [Array<SignwellSDK::Models::V1::DocumentCreateParams::Recipient>] Document recipients are people that must complete and/or sign a document.
235
+ #
236
+ # @param allow_decline [Boolean] Whether to allow recipients the option to decline signing a document. If multipl
237
+ #
238
+ # @param allow_reassign [Boolean] In some cases a signer is not the right person to sign and may need to reassign
239
+ #
240
+ # @param api_application_id [String] Unique identifier for API Application settings to use. API Applications are opti
241
+ #
242
+ # @param apply_signing_order [Boolean] When set to `true` recipients will sign one at a time in the order of the `recip
243
+ #
244
+ # @param attachment_requests [Array<SignwellSDK::Models::V1::AttachmentRequest>] Attachments that a recipient must upload to complete the signing process. Attach
245
+ #
246
+ # @param checkbox_groups [Array<SignwellSDK::Models::V1::CheckboxGroup>] Checkbox fields that are placed on a document can be grouped with selection requ
247
+ #
248
+ # @param copied_contacts [Array<SignwellSDK::Models::V1::CopiedContact>] Copied contacts are emailed the final document once it has been completed by all
249
+ #
250
+ # @param custom_requester_email [String] Sets the custom requester email for the document. When set, this is the email us
251
+ #
252
+ # @param custom_requester_name [String] Sets the custom requester name for the document. When set, this is the name used
253
+ #
254
+ # @param decline_redirect_url [String] A URL that recipients are redirected to if the document is declined.
255
+ #
256
+ # @param draft [Boolean] Whether the document can still be updated before sending a signature request. If
257
+ #
258
+ # @param embedded_signing [Boolean] When set to `true` it enables embedded signing in your website/web application.
259
+ #
260
+ # @param embedded_signing_notifications [Boolean] On embedding signing, document owners (and CC'd contacts) do not get a notificat
261
+ #
262
+ # @param expires_in [Integer] Number of days before the signature request expires. Defaults to the account exp
263
+ #
264
+ # @param fields [Array<Array<SignwellSDK::Models::V1::DocumentCreateParams::Field>>] Document fields placed on a document for collecting data or signatures from reci
265
+ #
266
+ # @param labels [Array<SignwellSDK::Models::V1::Label>] Labels can be used to organize documents in a way that can make it easy to find
267
+ #
268
+ # @param language [String] Sets the language for all recipients on the document and updates all recipient s
269
+ #
270
+ # @param message [String] Email message for the signature request that recipients will see. Defaults to th
271
+ #
272
+ # @param metadata [Hash{Symbol=>String}] Optional key-value data that can be associated with the document. If set, will b
273
+ #
274
+ # @param name [String] The name of the document.
275
+ #
276
+ # @param redirect_url [String] A URL that recipients are redirected to after successfully signing a document.
277
+ #
278
+ # @param reminders [Boolean] Whether to send signing reminders to recipients. Reminders are sent on day 3, da
279
+ #
280
+ # @param subject [String] Email subject for the signature request that recipients will see. Defaults to th
281
+ #
282
+ # @param test_mode [Boolean] Set to `true` to enable Test Mode. Documents created with Test Mode do not count
283
+ #
284
+ # @param text_tags [Boolean] An alternative way (if you can’t use the recommended way) of placing fields in s
285
+ #
286
+ # @param with_signature_page [Boolean] When set to `true` the document will have a signature page added to the end, and
287
+ #
288
+ # @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
289
+
290
+ class Recipient < SignwellSDK::Internal::Type::BaseModel
291
+ # @!attribute id
292
+ # A unique identifier that you will give to each recipient. We recommend numbering
293
+ # sequentially from 1 to X. IDs are required for associating recipients to fields
294
+ # and more.
295
+ #
296
+ # @return [String]
297
+ required :id, String
298
+
299
+ # @!attribute email
300
+ # Email address for the recipient.
301
+ #
302
+ # @return [String]
303
+ required :email, String
304
+
305
+ # @!attribute message
306
+ # Email message for the signature request that the recipient will see. Overrides
307
+ # the general message for the document.
308
+ #
309
+ # @return [String, nil]
310
+ optional :message, String
311
+
312
+ # @!attribute name
313
+ # Name of the recipient.
314
+ #
315
+ # @return [String, nil]
316
+ optional :name, String
317
+
318
+ # @!attribute passcode
319
+ # If set, signers assigned with a passcode will be required to enter the passcode
320
+ # before they’re able to view and complete the document.
321
+ #
322
+ # @return [String, nil]
323
+ optional :passcode, String
324
+
325
+ # @!attribute send_email
326
+ # Applies on when `embedded_signing` is `true`. By default, recipients are not
327
+ # notified through email to sign when doing embedded signing. Setting this to
328
+ # `true` will send a notification email to the recipient. Default is `false`.
329
+ #
330
+ # @return [Boolean, nil]
331
+ optional :send_email, SignwellSDK::Internal::Type::Boolean
332
+
333
+ # @!attribute send_email_delay
334
+ # If `send_email` is `true` recipients will receive a new document notification
335
+ # immediately. In the case of embedded signing, you can delay this notification to
336
+ # only send if the document is not completed within a few minutes. The email
337
+ # notification will not go out if the document is completed before the delay time
338
+ # is over. Valid values are in minutes ranging from `0` to `60`. Defaults to `0`.
339
+ #
340
+ # @return [Integer, nil]
341
+ optional :send_email_delay, Integer
342
+
343
+ # @!attribute subject
344
+ # Email subject for the signature request that the recipient will see. Overrides
345
+ # the general subject for the document.
346
+ #
347
+ # @return [String, nil]
348
+ optional :subject, String
349
+
350
+ # @!method initialize(id:, email:, message: nil, name: nil, passcode: nil, send_email: nil, send_email_delay: nil, subject: nil)
351
+ # Some parameter documentations has been truncated, see
352
+ # {SignwellSDK::Models::V1::DocumentCreateParams::Recipient} for more details.
353
+ #
354
+ # @param id [String] A unique identifier that you will give to each recipient. We recommend numbering
355
+ #
356
+ # @param email [String] Email address for the recipient.
357
+ #
358
+ # @param message [String] Email message for the signature request that the recipient will see. Overrides t
359
+ #
360
+ # @param name [String] Name of the recipient.
361
+ #
362
+ # @param passcode [String] If set, signers assigned with a passcode will be required to enter the passcode
363
+ #
364
+ # @param send_email [Boolean] Applies on when `embedded_signing` is `true`. By default, recipients are not not
365
+ #
366
+ # @param send_email_delay [Integer] If `send_email` is `true` recipients will receive a new document notification im
367
+ #
368
+ # @param subject [String] Email subject for the signature request that the recipient will see. Overrides t
369
+ end
370
+
371
+ class Field < SignwellSDK::Internal::Type::BaseModel
372
+ # @!attribute page
373
+ # The page number within the file. If the page does not exist within the file then
374
+ # the field won't be created.
375
+ #
376
+ # @return [Integer]
377
+ required :page, Integer
378
+
379
+ # @!attribute recipient_id
380
+ # Unique identifier of the recipient assigned to the field. Recipients assigned to
381
+ # fields will be the only ones that will see and be able to complete those fields.
382
+ #
383
+ # @return [String]
384
+ required :recipient_id, String
385
+
386
+ # @!attribute type
387
+ # Field type of the field. Valid field types: initials, signatures, checkbox,
388
+ # date, and text. To autofill fields with contact data, use an autofill field
389
+ # type. To group checkbox fields, enter an api_id for each checkbox and add the
390
+ # checkbox_groups parameter.
391
+ #
392
+ # @return [Symbol, SignwellSDK::Models::FieldType]
393
+ required :type, enum: -> { SignwellSDK::FieldType }
394
+
395
+ # @!attribute x
396
+ # Horizontal value in the coordinates of the field (in pixels). Coordinates are
397
+ # specific to the page where fields are located.
398
+ #
399
+ # @return [Float]
400
+ required :x, Float
401
+
402
+ # @!attribute y_
403
+ # Vertical value in the coordinates of the field (in pixels). Coordinates are
404
+ # specific to the page where fields are located.
405
+ #
406
+ # @return [Float]
407
+ required :y_, Float, api_name: :y
408
+
409
+ # @!attribute allow_other
410
+ # Whether to allow "Other" option with text input (for dropdown/select fields
411
+ # only)
412
+ #
413
+ # @return [Boolean, nil]
414
+ optional :allow_other, SignwellSDK::Internal::Type::Boolean
415
+
416
+ # @!attribute api_id
417
+ # Unique identifier of the field. Useful when needing to reference specific field
418
+ # values or update a document and its fields.
419
+ #
420
+ # @return [String, nil]
421
+ optional :api_id, String
422
+
423
+ # @!attribute date_format
424
+ # Date fields only: date format to use for the field. Valid values: MM/DD/YYYY,
425
+ # DD/MM/YYYY, YYYY/MM/DD, Month DD, YYYY, and MM/DD/YYYY hh:mm:ss a. Defaults to
426
+ # MM/DD/YYYY.
427
+ #
428
+ # @return [Symbol, SignwellSDK::Models::DateFormat, nil]
429
+ optional :date_format, enum: -> { SignwellSDK::DateFormat }
430
+
431
+ # @!attribute default_option
432
+ # Default selected option (for dropdown/select fields only)
433
+ #
434
+ # @return [String, nil]
435
+ optional :default_option, String
436
+
437
+ # @!attribute fixed_width
438
+ # Text fields only: whether the field width will stay fixed and text will display
439
+ # in multiple lines, rather than one long line. If set to `false` the field width
440
+ # will automatically grow horizontally to fit text on one line. Defaults to
441
+ # `false`.
442
+ #
443
+ # @return [Boolean, nil]
444
+ optional :fixed_width, SignwellSDK::Internal::Type::Boolean
445
+
446
+ # @!attribute height
447
+ # Height of the field (in pixels). Maximum height varies by field type:
448
+ # Signature/Initials (200px), others (74px). When using text tags if the height is
449
+ # greater than the maximum height, the height will be set to the maximum height.
450
+ #
451
+ # @return [Float, nil]
452
+ optional :height, Float
453
+
454
+ # @!attribute label
455
+ # Text and Date fields only: label that is displayed when the field is empty.
456
+ #
457
+ # @return [String, nil]
458
+ optional :label, String
459
+
460
+ # @!attribute lock_sign_date
461
+ # Date fields only: makes fields readonly and automatically populates with the
462
+ # date the recipient signed. Defaults to `false`.
463
+ #
464
+ # @return [Boolean, nil]
465
+ optional :lock_sign_date, SignwellSDK::Internal::Type::Boolean
466
+
467
+ # @!attribute name
468
+ # Checkbox fields only. At least 2 checkbox fields in an array of fields must be
469
+ # assigned to the same recipient and grouped with selection requirements.
470
+ #
471
+ # @return [String, nil]
472
+ optional :name, String
473
+
474
+ # @!attribute options
475
+ # Array of dropdown options (for dropdown/select fields only)
476
+ #
477
+ # @return [Array<String, SignwellSDK::Models::V1::DocumentCreateParams::Field::Option::DetailedOption>, nil]
478
+ optional :options,
479
+ -> { SignwellSDK::Internal::Type::ArrayOf[union: SignwellSDK::V1::DocumentCreateParams::Field::Option] }
480
+
481
+ # @!attribute required
482
+ # Whether the field must be completed by the recipient. Defaults to `true` except
483
+ # for checkbox type fields.
484
+ #
485
+ # @return [Boolean, nil]
486
+ optional :required, SignwellSDK::Internal::Type::Boolean
487
+
488
+ # @!attribute validation
489
+ # Text fields only: optional validation for field values. Valid values: numbers,
490
+ # letters, email_address, us_phone_number, us_zip_code, us_ssn, us_age,
491
+ # alphanumeric, us_bank_routing_number, us_bank_account.
492
+ #
493
+ # @return [Symbol, SignwellSDK::Models::TextValidation, nil]
494
+ optional :validation, enum: -> { SignwellSDK::TextValidation }
495
+
496
+ # @!attribute value
497
+ # Varies according to the field type. Text fields accept strings or numbers. Date
498
+ # fields accept Iso8601 date strings. CheckBoxes accept booleans. Signature and
499
+ # Initials fields can't be signed through API requests. Autofill text fields
500
+ # accept strings or numbers.
501
+ #
502
+ # @return [String, Boolean, Float, nil]
503
+ optional :value, union: -> { SignwellSDK::V1::DocumentCreateParams::Field::Value }
504
+
505
+ # @!attribute width
506
+ # Width of the field (in pixels). For text fields, width will auto-grow unless
507
+ # `fixed_width` is true.
508
+ #
509
+ # @return [Float, nil]
510
+ optional :width, Float
511
+
512
+ # @!method initialize(page:, recipient_id:, type:, x:, y_:, allow_other: nil, api_id: nil, date_format: nil, default_option: nil, fixed_width: nil, height: nil, label: nil, lock_sign_date: nil, name: nil, options: nil, required: nil, validation: nil, value: nil, width: nil)
513
+ # Some parameter documentations has been truncated, see
514
+ # {SignwellSDK::Models::V1::DocumentCreateParams::Field} for more details.
515
+ #
516
+ # @param page [Integer] The page number within the file. If the page does not exist within the file then
517
+ #
518
+ # @param recipient_id [String] Unique identifier of the recipient assigned to the field. Recipients assigned to
519
+ #
520
+ # @param type [Symbol, SignwellSDK::Models::FieldType] Field type of the field. Valid field types: initials, signatures, checkbox, date
521
+ #
522
+ # @param x [Float] Horizontal value in the coordinates of the field (in pixels). Coordinates are sp
523
+ #
524
+ # @param y_ [Float] Vertical value in the coordinates of the field (in pixels). Coordinates are spec
525
+ #
526
+ # @param allow_other [Boolean] Whether to allow "Other" option with text input (for dropdown/select fields only
527
+ #
528
+ # @param api_id [String] Unique identifier of the field. Useful when needing to reference specific field
529
+ #
530
+ # @param date_format [Symbol, SignwellSDK::Models::DateFormat] Date fields only: date format to use for the field. Valid values: MM/DD/YYYY, DD
531
+ #
532
+ # @param default_option [String] Default selected option (for dropdown/select fields only)
533
+ #
534
+ # @param fixed_width [Boolean] Text fields only: whether the field width will stay fixed and text will display
535
+ #
536
+ # @param height [Float] Height of the field (in pixels). Maximum height varies by field type: Signature/
537
+ #
538
+ # @param label [String] Text and Date fields only: label that is displayed when the field is empty.
539
+ #
540
+ # @param lock_sign_date [Boolean] Date fields only: makes fields readonly and automatically populates with the dat
541
+ #
542
+ # @param name [String] Checkbox fields only. At least 2 checkbox fields in an array of fields must be a
543
+ #
544
+ # @param options [Array<String, SignwellSDK::Models::V1::DocumentCreateParams::Field::Option::DetailedOption>] Array of dropdown options (for dropdown/select fields only)
545
+ #
546
+ # @param required [Boolean] Whether the field must be completed by the recipient. Defaults to `true` except
547
+ #
548
+ # @param validation [Symbol, SignwellSDK::Models::TextValidation] Text fields only: optional validation for field values. Valid values: numbers, l
549
+ #
550
+ # @param value [String, Boolean, Float] Varies according to the field type. Text fields accept strings or numbers. Date
551
+ #
552
+ # @param width [Float] Width of the field (in pixels). For text fields, width will auto-grow unless `fi
553
+
554
+ # A dropdown option - either a simple string or a detailed object with name and
555
+ # optional api_id
556
+ module Option
557
+ extend SignwellSDK::Internal::Type::Union
558
+
559
+ # Simple string option
560
+ variant String
561
+
562
+ # Detailed option object
563
+ variant -> { SignwellSDK::V1::DocumentCreateParams::Field::Option::DetailedOption }
564
+
565
+ class DetailedOption < SignwellSDK::Internal::Type::BaseModel
566
+ # @!attribute name
567
+ # Option display name
568
+ #
569
+ # @return [String]
570
+ required :name, String
571
+
572
+ # @!attribute api_id
573
+ # Unique identifier for the option
574
+ #
575
+ # @return [String, nil]
576
+ optional :api_id, String
577
+
578
+ # @!attribute is_other
579
+ # Whether this is the special "Other" option
580
+ #
581
+ # @return [Boolean, nil]
582
+ optional :is_other, SignwellSDK::Internal::Type::Boolean
583
+
584
+ # @!method initialize(name:, api_id: nil, is_other: nil)
585
+ # Detailed option object
586
+ #
587
+ # @param name [String] Option display name
588
+ #
589
+ # @param api_id [String] Unique identifier for the option
590
+ #
591
+ # @param is_other [Boolean] Whether this is the special "Other" option
592
+ end
593
+
594
+ # @!method self.variants
595
+ # @return [Array(String, SignwellSDK::Models::V1::DocumentCreateParams::Field::Option::DetailedOption)]
596
+ end
597
+
598
+ # Varies according to the field type. Text fields accept strings or numbers. Date
599
+ # fields accept Iso8601 date strings. CheckBoxes accept booleans. Signature and
600
+ # Initials fields can't be signed through API requests. Autofill text fields
601
+ # accept strings or numbers.
602
+ #
603
+ # @see SignwellSDK::Models::V1::DocumentCreateParams::Field#value
604
+ module Value
605
+ extend SignwellSDK::Internal::Type::Union
606
+
607
+ variant String
608
+
609
+ variant SignwellSDK::Internal::Type::Boolean
610
+
611
+ variant Float
612
+
613
+ # @!method self.variants
614
+ # @return [Array(String, Boolean, Float)]
615
+ end
616
+ end
617
+ end
618
+ end
619
+ end
620
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SignwellSDK
4
+ module Models
5
+ module V1
6
+ # @see SignwellSDK::Resources::V1::Documents#delete
7
+ class DocumentDeleteParams < SignwellSDK::Internal::Type::BaseModel
8
+ extend SignwellSDK::Internal::Type::RequestParameters::Converter
9
+ include SignwellSDK::Internal::Type::RequestParameters
10
+
11
+ # @!method initialize(request_options: {})
12
+ # @param request_options [SignwellSDK::RequestOptions, Hash{Symbol=>Object}]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SignwellSDK
4
+ module Models
5
+ module V1
6
+ class DocumentFile < SignwellSDK::Internal::Type::BaseModel
7
+ # @!attribute name
8
+ # Name of the file that will be uploaded.
9
+ #
10
+ # @return [String]
11
+ required :name, String
12
+
13
+ # @!attribute file_base64
14
+ # A RFC 4648 base64 string of the file to be uploaded.
15
+ #
16
+ # @return [String, nil]
17
+ optional :file_base64, String
18
+
19
+ # @!attribute file_url
20
+ # Publicly available URL of the file to be uploaded.
21
+ #
22
+ # @return [String, nil]
23
+ optional :file_url, String
24
+
25
+ # @!method initialize(name:, file_base64: nil, file_url: nil)
26
+ # @param name [String] Name of the file that will be uploaded.
27
+ #
28
+ # @param file_base64 [String] A RFC 4648 base64 string of the file to be uploaded.
29
+ #
30
+ # @param file_url [String] Publicly available URL of the file to be uploaded.
31
+ end
32
+ end
33
+ end
34
+ end