templatefox 1.0.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/templatefox/api/account_api.rb +6 -6
  3. data/lib/templatefox/api/integrations_api.rb +10 -10
  4. data/lib/templatefox/api/pdf_api.rb +4 -4
  5. data/lib/templatefox/api/pdf_async_api.rb +219 -0
  6. data/lib/templatefox/api/templates_api.rb +6 -6
  7. data/lib/templatefox/api_client.rb +2 -2
  8. data/lib/templatefox/api_error.rb +2 -2
  9. data/lib/templatefox/api_model_base.rb +2 -2
  10. data/lib/templatefox/configuration.rb +2 -2
  11. data/lib/templatefox/models/account_info_response.rb +2 -2
  12. data/lib/templatefox/models/app_routers_v1_pdf_async_export_type.rb +39 -0
  13. data/lib/templatefox/models/{export_type.rb → app_routers_v1_pdf_export_type.rb} +5 -5
  14. data/lib/templatefox/models/create_async_pdf_request.rb +482 -0
  15. data/lib/templatefox/models/create_async_pdf_response.rb +242 -0
  16. data/lib/templatefox/models/create_pdf_request.rb +3 -3
  17. data/lib/templatefox/models/create_pdf_response.rb +2 -2
  18. data/lib/templatefox/models/http_validation_error.rb +2 -2
  19. data/lib/templatefox/models/job_list_response.rb +249 -0
  20. data/lib/templatefox/models/job_status.rb +42 -0
  21. data/lib/templatefox/models/job_status_response.rb +440 -0
  22. data/lib/templatefox/models/location_inner.rb +2 -2
  23. data/lib/templatefox/models/s3_config_request.rb +2 -2
  24. data/lib/templatefox/models/s3_config_response.rb +2 -2
  25. data/lib/templatefox/models/s3_success_response.rb +2 -2
  26. data/lib/templatefox/models/s3_test_response.rb +2 -2
  27. data/lib/templatefox/models/template_field.rb +21 -9
  28. data/lib/templatefox/models/template_field_spec.rb +205 -0
  29. data/lib/templatefox/models/template_list_item.rb +2 -2
  30. data/lib/templatefox/models/templates_list_response.rb +2 -2
  31. data/lib/templatefox/models/transaction.rb +2 -2
  32. data/lib/templatefox/models/transactions_response.rb +2 -2
  33. data/lib/templatefox/models/validation_error.rb +2 -2
  34. data/lib/templatefox/version.rb +3 -3
  35. data/lib/templatefox.rb +11 -3
  36. data/spec/api/account_api_spec.rb +4 -4
  37. data/spec/api/integrations_api_spec.rb +6 -6
  38. data/spec/api/pdf_api_spec.rb +3 -3
  39. data/spec/api/pdf_async_api_spec.rb +73 -0
  40. data/spec/api/templates_api_spec.rb +4 -4
  41. data/spec/models/account_info_response_spec.rb +2 -2
  42. data/spec/models/app_routers_v1_pdf_async_export_type_spec.rb +30 -0
  43. data/spec/models/app_routers_v1_pdf_export_type_spec.rb +30 -0
  44. data/spec/models/create_async_pdf_request_spec.rb +90 -0
  45. data/spec/models/create_async_pdf_response_spec.rb +48 -0
  46. data/spec/models/create_pdf_request_spec.rb +2 -2
  47. data/spec/models/create_pdf_response_spec.rb +2 -2
  48. data/spec/models/http_validation_error_spec.rb +2 -2
  49. data/spec/models/job_list_response_spec.rb +54 -0
  50. data/spec/models/job_status_response_spec.rb +126 -0
  51. data/spec/models/job_status_spec.rb +30 -0
  52. data/spec/models/location_inner_spec.rb +2 -2
  53. data/spec/models/s3_config_request_spec.rb +2 -2
  54. data/spec/models/s3_config_response_spec.rb +2 -2
  55. data/spec/models/s3_success_response_spec.rb +2 -2
  56. data/spec/models/s3_test_response_spec.rb +2 -2
  57. data/spec/models/template_field_spec.rb +8 -2
  58. data/spec/models/template_field_spec_spec.rb +48 -0
  59. data/spec/models/template_list_item_spec.rb +2 -2
  60. data/spec/models/templates_list_response_spec.rb +2 -2
  61. data/spec/models/transaction_spec.rb +2 -2
  62. data/spec/models/transactions_response_spec.rb +2 -2
  63. data/spec/models/validation_error_spec.rb +2 -2
  64. data/spec/spec_helper.rb +2 -2
  65. data/templatefox.gemspec +9 -4
  66. metadata +57 -50
  67. data/docs/AccountApi.md +0 -152
  68. data/docs/AccountInfoResponse.md +0 -20
  69. data/docs/CreatePdfRequest.md +0 -32
  70. data/docs/CreatePdfResponse.md +0 -24
  71. data/docs/ExportType.md +0 -15
  72. data/docs/HTTPValidationError.md +0 -18
  73. data/docs/IntegrationsApi.md +0 -286
  74. data/docs/LocationInner.md +0 -15
  75. data/docs/PDFApi.md +0 -79
  76. data/docs/S3ConfigRequest.md +0 -26
  77. data/docs/S3ConfigResponse.md +0 -28
  78. data/docs/S3SuccessResponse.md +0 -18
  79. data/docs/S3TestResponse.md +0 -20
  80. data/docs/TemplateField.md +0 -26
  81. data/docs/TemplateListItem.md +0 -24
  82. data/docs/TemplatesApi.md +0 -148
  83. data/docs/TemplatesListResponse.md +0 -18
  84. data/docs/Transaction.md +0 -28
  85. data/docs/TransactionsResponse.md +0 -24
  86. data/docs/ValidationError.md +0 -22
  87. data/git_push.sh +0 -57
  88. data/spec/models/export_type_spec.rb +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f13c971118753912fec80249e281bd9626bdd7def6aed8262ac20dc9d5743898
4
- data.tar.gz: a8517386bda455fcab289a7c3a5c26ade53957f9023488da5a31092afb558aeb
3
+ metadata.gz: 94b5e6a83d36e34cf47173fd5828443d07909a74ebceb0a566b8f40d29f65d4a
4
+ data.tar.gz: 88155d6c3d5c0e4656255e3e974cc28dc32363dfa3ba876467dae9ce0efcb83b
5
5
  SHA512:
6
- metadata.gz: 5dbf4e06a398eb74463480ef86c7e67849656da385d6cc56fe277f1008617a03eaca736831794cbce96fabf316cc7e3ef402049f92068acf5eb3906809fd3db5
7
- data.tar.gz: 77205cb17f8d2e5fcbd07ece7eff9d4cbe3d8f81a4db72f68f62c5ea2d512ce9bc85dd0f7bac62d3b7afee4d62fb78e44d6952f8d81fb4691c6ef2416145ed6a
6
+ metadata.gz: 56fd3d685ae0d1c88cf3860a39594698c00fc539606cdb4c8b0536a656b2c06f0cb932c1dd9c2efcac3afd4220585a067bde6f2d1f3527c50451ff2595a32fa5
7
+ data.tar.gz: 7e9ff754fcb984c3c7cccd66354c32198f469132487dddfac111846b5ec7cf3a16565e9064f583f9f364ba8a941ea39575b90c4dae4dc2ebab3580a61109784e
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -20,7 +20,7 @@ module TemplateFox
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get account info
23
- # Get account information including remaining credits. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** Check credit balance before performing operations. **No credits consumed:** This is a read-only endpoint.
23
+ # Get account information including remaining credits. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** Check credit balance before performing operations. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [AccountInfoResponse]
26
26
  def get_account(opts = {})
@@ -29,7 +29,7 @@ module TemplateFox
29
29
  end
30
30
 
31
31
  # Get account info
32
- # Get account information including remaining credits. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** Check credit balance before performing operations. **No credits consumed:** This is a read-only endpoint.
32
+ # Get account information including remaining credits. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** Check credit balance before performing operations. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(AccountInfoResponse, Integer, Hash)>] AccountInfoResponse data, response status code and response headers
35
35
  def get_account_with_http_info(opts = {})
@@ -77,7 +77,7 @@ module TemplateFox
77
77
  end
78
78
 
79
79
  # List transactions
80
- # List transaction history for the authenticated user. **Authentication:** API Key required (`x-api-key` header) or JWT token **Pagination:** Use `limit` and `offset` query parameters. **Transaction types:** - `PDFGEN`: PDF generation (consumes credits) - `REFUND`: Credit refund (on failed generation) - `PURCHASE`: Credit purchase - `BONUS`: Bonus credits **Credits field:** - Positive value = credits consumed - Negative value = credits added **No credits consumed:** This is a read-only endpoint.
80
+ # List transaction history for the authenticated user. **Authentication:** API Key required (`x-api-key` header) or JWT token **Pagination:** Use `limit` and `offset` query parameters. **Transaction types:** - `PDFGEN`: PDF generation (consumes credits) - `REFUND`: Credit refund (on failed generation) - `PURCHASE`: Credit purchase - `BONUS`: Bonus credits **Credits field:** - Positive value = credits consumed - Negative value = credits added **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @option opts [Integer] :limit Number of records to return (default to 300)
83
83
  # @option opts [Integer] :offset Number of records to skip (default to 0)
@@ -88,7 +88,7 @@ module TemplateFox
88
88
  end
89
89
 
90
90
  # List transactions
91
- # List transaction history for the authenticated user. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Pagination:** Use &#x60;limit&#x60; and &#x60;offset&#x60; query parameters. **Transaction types:** - &#x60;PDFGEN&#x60;: PDF generation (consumes credits) - &#x60;REFUND&#x60;: Credit refund (on failed generation) - &#x60;PURCHASE&#x60;: Credit purchase - &#x60;BONUS&#x60;: Bonus credits **Credits field:** - Positive value &#x3D; credits consumed - Negative value &#x3D; credits added **No credits consumed:** This is a read-only endpoint.
91
+ # List transaction history for the authenticated user. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Pagination:** Use &#x60;limit&#x60; and &#x60;offset&#x60; query parameters. **Transaction types:** - &#x60;PDFGEN&#x60;: PDF generation (consumes credits) - &#x60;REFUND&#x60;: Credit refund (on failed generation) - &#x60;PURCHASE&#x60;: Credit purchase - &#x60;BONUS&#x60;: Bonus credits **Credits field:** - Positive value &#x3D; credits consumed - Negative value &#x3D; credits added **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @option opts [Integer] :limit Number of records to return (default to 300)
94
94
  # @option opts [Integer] :offset Number of records to skip (default to 0)
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -20,7 +20,7 @@ module TemplateFox
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete S3 configuration
23
- # Delete S3 storage configuration. **Authentication:** API Key required (`x-api-key` header) with admin privileges **Usage:** Remove your S3 integration. Generated PDFs will use the default CDN storage after deletion. **Warning:** This action is irreversible. You'll need to reconfigure S3 to use it again. **No credits consumed:** This is a configuration endpoint.
23
+ # Delete S3 storage configuration. **Authentication:** API Key required (`x-api-key` header) **Usage:** Remove your S3 integration. Generated PDFs will use the default CDN storage after deletion. **Warning:** This action is irreversible. You'll need to reconfigure S3 to use it again. **No credits consumed:** This is a configuration endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [S3SuccessResponse]
26
26
  def delete_s3_config(opts = {})
@@ -29,7 +29,7 @@ module TemplateFox
29
29
  end
30
30
 
31
31
  # Delete S3 configuration
32
- # Delete S3 storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) with admin privileges **Usage:** Remove your S3 integration. Generated PDFs will use the default CDN storage after deletion. **Warning:** This action is irreversible. You&#39;ll need to reconfigure S3 to use it again. **No credits consumed:** This is a configuration endpoint.
32
+ # Delete S3 storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) **Usage:** Remove your S3 integration. Generated PDFs will use the default CDN storage after deletion. **Warning:** This action is irreversible. You&#39;ll need to reconfigure S3 to use it again. **No credits consumed:** This is a configuration endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(S3SuccessResponse, Integer, Hash)>] S3SuccessResponse data, response status code and response headers
35
35
  def delete_s3_config_with_http_info(opts = {})
@@ -77,7 +77,7 @@ module TemplateFox
77
77
  end
78
78
 
79
79
  # Get S3 configuration
80
- # Get current S3 storage configuration. **Authentication:** API Key required (`x-api-key` header) with admin privileges **Usage:** Retrieve your S3 integration settings. Secret access key is masked for security. **Returns 404** if S3 is not configured. **No credits consumed:** This is a read-only endpoint.
80
+ # Get current S3 storage configuration. **Authentication:** API Key required (`x-api-key` header) **Usage:** Retrieve your S3 integration settings. Secret access key is masked for security. **Returns 404** if S3 is not configured. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
81
81
  # @param [Hash] opts the optional parameters
82
82
  # @return [S3ConfigResponse]
83
83
  def get_s3_config(opts = {})
@@ -86,7 +86,7 @@ module TemplateFox
86
86
  end
87
87
 
88
88
  # Get S3 configuration
89
- # Get current S3 storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) with admin privileges **Usage:** Retrieve your S3 integration settings. Secret access key is masked for security. **Returns 404** if S3 is not configured. **No credits consumed:** This is a read-only endpoint.
89
+ # Get current S3 storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) **Usage:** Retrieve your S3 integration settings. Secret access key is masked for security. **Returns 404** if S3 is not configured. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @return [Array<(S3ConfigResponse, Integer, Hash)>] S3ConfigResponse data, response status code and response headers
92
92
  def get_s3_config_with_http_info(opts = {})
@@ -134,7 +134,7 @@ module TemplateFox
134
134
  end
135
135
 
136
136
  # Save S3 configuration
137
- # Save or update S3-compatible storage configuration. **Authentication:** API Key required (`x-api-key` header) with admin privileges **Usage:** Configure your S3-compatible storage to receive generated PDFs directly in your own bucket instead of the default CDN. **Supported providers:** - Amazon S3 - DigitalOcean Spaces - Cloudflare R2 - MinIO - Any S3-compatible storage **Secret key behavior:** - For new configuration: `secret_access_key` is required - For updates: Omit `secret_access_key` to keep existing value **No credits consumed:** This is a configuration endpoint.
137
+ # Save or update S3-compatible storage configuration. **Authentication:** API Key required (`x-api-key` header) **Usage:** Configure your S3-compatible storage to receive generated PDFs directly in your own bucket instead of the default CDN. **Supported providers:** - Amazon S3 - DigitalOcean Spaces - Cloudflare R2 - MinIO - Any S3-compatible storage **Secret key behavior:** - For new configuration: `secret_access_key` is required - For updates: Omit `secret_access_key` to keep existing value **No credits consumed:** This is a configuration endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
138
138
  # @param s3_config_request [S3ConfigRequest]
139
139
  # @param [Hash] opts the optional parameters
140
140
  # @return [S3SuccessResponse]
@@ -144,7 +144,7 @@ module TemplateFox
144
144
  end
145
145
 
146
146
  # Save S3 configuration
147
- # Save or update S3-compatible storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) with admin privileges **Usage:** Configure your S3-compatible storage to receive generated PDFs directly in your own bucket instead of the default CDN. **Supported providers:** - Amazon S3 - DigitalOcean Spaces - Cloudflare R2 - MinIO - Any S3-compatible storage **Secret key behavior:** - For new configuration: &#x60;secret_access_key&#x60; is required - For updates: Omit &#x60;secret_access_key&#x60; to keep existing value **No credits consumed:** This is a configuration endpoint.
147
+ # Save or update S3-compatible storage configuration. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) **Usage:** Configure your S3-compatible storage to receive generated PDFs directly in your own bucket instead of the default CDN. **Supported providers:** - Amazon S3 - DigitalOcean Spaces - Cloudflare R2 - MinIO - Any S3-compatible storage **Secret key behavior:** - For new configuration: &#x60;secret_access_key&#x60; is required - For updates: Omit &#x60;secret_access_key&#x60; to keep existing value **No credits consumed:** This is a configuration endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
148
148
  # @param s3_config_request [S3ConfigRequest]
149
149
  # @param [Hash] opts the optional parameters
150
150
  # @return [Array<(S3SuccessResponse, Integer, Hash)>] S3SuccessResponse data, response status code and response headers
@@ -202,7 +202,7 @@ module TemplateFox
202
202
  end
203
203
 
204
204
  # Test S3 connection
205
- # Test S3 connection with stored credentials. **Authentication:** API Key required (`x-api-key` header) with admin privileges **Usage:** Verify your S3 configuration is working correctly. The test will: 1. Connect to the endpoint 2. Verify bucket access 3. Check write permissions by uploading a small test file **Prerequisite:** S3 must be configured first using `POST /v1/integrations/s3` **No credits consumed:** This is a diagnostic endpoint.
205
+ # Test S3 connection with stored credentials. **Authentication:** API Key required (`x-api-key` header) **Usage:** Verify your S3 configuration is working correctly. The test will: 1. Connect to the endpoint 2. Verify bucket access 3. Check write permissions by uploading a small test file **Prerequisite:** S3 must be configured first using `POST /v1/integrations/s3` **No credits consumed:** This is a diagnostic endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
206
206
  # @param [Hash] opts the optional parameters
207
207
  # @return [S3TestResponse]
208
208
  def test_s3_connection(opts = {})
@@ -211,7 +211,7 @@ module TemplateFox
211
211
  end
212
212
 
213
213
  # Test S3 connection
214
- # Test S3 connection with stored credentials. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) with admin privileges **Usage:** Verify your S3 configuration is working correctly. The test will: 1. Connect to the endpoint 2. Verify bucket access 3. Check write permissions by uploading a small test file **Prerequisite:** S3 must be configured first using &#x60;POST /v1/integrations/s3&#x60; **No credits consumed:** This is a diagnostic endpoint.
214
+ # Test S3 connection with stored credentials. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) **Usage:** Verify your S3 configuration is working correctly. The test will: 1. Connect to the endpoint 2. Verify bucket access 3. Check write permissions by uploading a small test file **Prerequisite:** S3 must be configured first using &#x60;POST /v1/integrations/s3&#x60; **No credits consumed:** This is a diagnostic endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
215
215
  # @param [Hash] opts the optional parameters
216
216
  # @return [Array<(S3TestResponse, Integer, Hash)>] S3TestResponse data, response status code and response headers
217
217
  def test_s3_connection_with_http_info(opts = {})
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -20,7 +20,7 @@ module TemplateFox
20
20
  @api_client = api_client
21
21
  end
22
22
  # Generate PDF from template
23
- # Generate a PDF from a saved template with dynamic data. **Authentication:** API Key required (`x-api-key` header) ## Request Body | Field | Type | Required | Description | |-------|------|----------|-------------| | `template_id` | string | ✅ Yes | Template short ID (12 characters) | | `data` | object | ✅ Yes | Key-value data to render in template | | `export_type` | string | No | `url` (default) or `binary` | | `expiration` | integer | No | URL expiration in seconds (60-604800, default: 86400) | ## Export Types - `url` (default): PDF is uploaded to CDN, returns JSON with URL - `binary`: Returns raw PDF bytes directly **Credits:** 1 credit deducted per successful generation.
23
+ # Generate a PDF from a saved template with dynamic data. **Authentication:** API Key required (`x-api-key` header) ## Request Body | Field | Type | Required | Description | |-------|------|----------|-------------| | `template_id` | string | ✅ Yes | Template short ID (12 characters) | | `data` | object | ✅ Yes | Key-value data to render in template | | `export_type` | string | No | `url` (default) or `binary` | | `expiration` | integer | No | URL expiration in seconds (60-604800, default: 86400) | ## Export Types - `url` (default): PDF is uploaded to CDN, returns JSON with URL - `binary`: Returns raw PDF bytes directly **Credits:** 1 credit deducted per successful generation. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
24
24
  # @param create_pdf_request [CreatePdfRequest]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [CreatePdfResponse]
@@ -30,7 +30,7 @@ module TemplateFox
30
30
  end
31
31
 
32
32
  # Generate PDF from template
33
- # Generate a PDF from a saved template with dynamic data. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) ## Request Body | Field | Type | Required | Description | |-------|------|----------|-------------| | &#x60;template_id&#x60; | string | ✅ Yes | Template short ID (12 characters) | | &#x60;data&#x60; | object | ✅ Yes | Key-value data to render in template | | &#x60;export_type&#x60; | string | No | &#x60;url&#x60; (default) or &#x60;binary&#x60; | | &#x60;expiration&#x60; | integer | No | URL expiration in seconds (60-604800, default: 86400) | ## Export Types - &#x60;url&#x60; (default): PDF is uploaded to CDN, returns JSON with URL - &#x60;binary&#x60;: Returns raw PDF bytes directly **Credits:** 1 credit deducted per successful generation.
33
+ # Generate a PDF from a saved template with dynamic data. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) ## Request Body | Field | Type | Required | Description | |-------|------|----------|-------------| | &#x60;template_id&#x60; | string | ✅ Yes | Template short ID (12 characters) | | &#x60;data&#x60; | object | ✅ Yes | Key-value data to render in template | | &#x60;export_type&#x60; | string | No | &#x60;url&#x60; (default) or &#x60;binary&#x60; | | &#x60;expiration&#x60; | integer | No | URL expiration in seconds (60-604800, default: 86400) | ## Export Types - &#x60;url&#x60; (default): PDF is uploaded to CDN, returns JSON with URL - &#x60;binary&#x60;: Returns raw PDF bytes directly **Credits:** 1 credit deducted per successful generation. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
34
34
  # @param create_pdf_request [CreatePdfRequest]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(CreatePdfResponse, Integer, Hash)>] CreatePdfResponse data, response status code and response headers
@@ -0,0 +1,219 @@
1
+ =begin
2
+ #TemplateFox API
3
+
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
+
6
+ The version of the OpenAPI document: 1.6.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module TemplateFox
16
+ class PDFAsyncApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Generate PDF asynchronously
23
+ # Queue a PDF generation job for async processing. **Authentication:** API Key required (`x-api-key` header) ## How It Works 1. Submit a job with template and data 2. Receive a `job_id` immediately 3. Poll `/v1/pdf/status/{job_id}` for completion 4. Optionally receive a webhook notification ## When to Use Async Use async generation when: - Processing large documents or batches - You can't wait for synchronous response - You want webhook notifications ## Webhooks If `webhook_url` is provided, we'll POST to it when the job completes or fails: ```json { \"event\": \"pdf.completed\", \"job_id\": \"...\", \"status\": \"completed\", \"result\": { \"url\": \"https://...\", \"filename\": \"invoice.pdf\" } } ``` Webhooks include HMAC-SHA256 signature in `X-TemplateFox-Signature` header if you provide a `webhook_secret`. **Credits:** 1 credit deducted immediately (refunded if job fails permanently).
24
+ # @param create_async_pdf_request [CreateAsyncPdfRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [CreateAsyncPdfResponse]
27
+ def create_pdf_async(create_async_pdf_request, opts = {})
28
+ data, _status_code, _headers = create_pdf_async_with_http_info(create_async_pdf_request, opts)
29
+ data
30
+ end
31
+
32
+ # Generate PDF asynchronously
33
+ # Queue a PDF generation job for async processing. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) ## How It Works 1. Submit a job with template and data 2. Receive a &#x60;job_id&#x60; immediately 3. Poll &#x60;/v1/pdf/status/{job_id}&#x60; for completion 4. Optionally receive a webhook notification ## When to Use Async Use async generation when: - Processing large documents or batches - You can&#39;t wait for synchronous response - You want webhook notifications ## Webhooks If &#x60;webhook_url&#x60; is provided, we&#39;ll POST to it when the job completes or fails: &#x60;&#x60;&#x60;json { \&quot;event\&quot;: \&quot;pdf.completed\&quot;, \&quot;job_id\&quot;: \&quot;...\&quot;, \&quot;status\&quot;: \&quot;completed\&quot;, \&quot;result\&quot;: { \&quot;url\&quot;: \&quot;https://...\&quot;, \&quot;filename\&quot;: \&quot;invoice.pdf\&quot; } } &#x60;&#x60;&#x60; Webhooks include HMAC-SHA256 signature in &#x60;X-TemplateFox-Signature&#x60; header if you provide a &#x60;webhook_secret&#x60;. **Credits:** 1 credit deducted immediately (refunded if job fails permanently).
34
+ # @param create_async_pdf_request [CreateAsyncPdfRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(CreateAsyncPdfResponse, Integer, Hash)>] CreateAsyncPdfResponse data, response status code and response headers
37
+ def create_pdf_async_with_http_info(create_async_pdf_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PDFAsyncApi.create_pdf_async ...'
40
+ end
41
+ # verify the required parameter 'create_async_pdf_request' is set
42
+ if @api_client.config.client_side_validation && create_async_pdf_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'create_async_pdf_request' when calling PDFAsyncApi.create_pdf_async"
44
+ end
45
+ # resource path
46
+ local_var_path = '/v1/pdf/create-async'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_async_pdf_request)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'CreateAsyncPdfResponse'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"PDFAsyncApi.create_pdf_async",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: PDFAsyncApi#create_pdf_async\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Get PDF job status
91
+ # Get the current status of an async PDF generation job. **Authentication:** API Key required (`x-api-key` header) ## Status Values | Status | Description | |--------|-------------| | `pending` | Job is queued, waiting to be processed | | `processing` | Job is being processed | | `completed` | PDF generated successfully | | `failed` | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
92
+ # @param job_id [String]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [JobStatusResponse]
95
+ def get_pdf_job(job_id, opts = {})
96
+ data, _status_code, _headers = get_pdf_job_with_http_info(job_id, opts)
97
+ data
98
+ end
99
+
100
+ # Get PDF job status
101
+ # Get the current status of an async PDF generation job. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) ## Status Values | Status | Description | |--------|-------------| | &#x60;pending&#x60; | Job is queued, waiting to be processed | | &#x60;processing&#x60; | Job is being processed | | &#x60;completed&#x60; | PDF generated successfully | | &#x60;failed&#x60; | Job failed (check error_message) | ## Polling Recommendations - Poll every 1-2 seconds for small documents - Poll every 5-10 seconds for large documents - Consider using webhooks instead of polling
102
+ # @param job_id [String]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(JobStatusResponse, Integer, Hash)>] JobStatusResponse data, response status code and response headers
105
+ def get_pdf_job_with_http_info(job_id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: PDFAsyncApi.get_pdf_job ...'
108
+ end
109
+ # verify the required parameter 'job_id' is set
110
+ if @api_client.config.client_side_validation && job_id.nil?
111
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling PDFAsyncApi.get_pdf_job"
112
+ end
113
+ # resource path
114
+ local_var_path = '/v1/pdf/jobs/{job_id}'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type] || 'JobStatusResponse'
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"PDFAsyncApi.get_pdf_job",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: PDFAsyncApi#get_pdf_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # List PDF jobs
154
+ # List async PDF generation jobs for your team. **Authentication:** API Key required (`x-api-key` header) Supports pagination and filtering by status.
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [Integer] :limit (default to 20)
157
+ # @option opts [Integer] :offset (default to 0)
158
+ # @option opts [JobStatus] :status
159
+ # @return [JobListResponse]
160
+ def list_pdf_jobs(opts = {})
161
+ data, _status_code, _headers = list_pdf_jobs_with_http_info(opts)
162
+ data
163
+ end
164
+
165
+ # List PDF jobs
166
+ # List async PDF generation jobs for your team. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) Supports pagination and filtering by status.
167
+ # @param [Hash] opts the optional parameters
168
+ # @option opts [Integer] :limit (default to 20)
169
+ # @option opts [Integer] :offset (default to 0)
170
+ # @option opts [JobStatus] :status
171
+ # @return [Array<(JobListResponse, Integer, Hash)>] JobListResponse data, response status code and response headers
172
+ def list_pdf_jobs_with_http_info(opts = {})
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug 'Calling API: PDFAsyncApi.list_pdf_jobs ...'
175
+ end
176
+ # resource path
177
+ local_var_path = '/v1/pdf/jobs'
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
182
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
183
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
184
+
185
+ # header parameters
186
+ header_params = opts[:header_params] || {}
187
+ # HTTP header 'Accept' (if needed)
188
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
189
+
190
+ # form parameters
191
+ form_params = opts[:form_params] || {}
192
+
193
+ # http body (model)
194
+ post_body = opts[:debug_body]
195
+
196
+ # return_type
197
+ return_type = opts[:debug_return_type] || 'JobListResponse'
198
+
199
+ # auth_names
200
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
201
+
202
+ new_options = opts.merge(
203
+ :operation => :"PDFAsyncApi.list_pdf_jobs",
204
+ :header_params => header_params,
205
+ :query_params => query_params,
206
+ :form_params => form_params,
207
+ :body => post_body,
208
+ :auth_names => auth_names,
209
+ :return_type => return_type
210
+ )
211
+
212
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: PDFAsyncApi#list_pdf_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
218
+ end
219
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -20,7 +20,7 @@ module TemplateFox
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get template fields
23
- # Get the dynamic fields for a template. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for Zapier Dynamic Fields integration. It returns an array of field definitions that Zapier uses to dynamically generate input forms. **Response format:** Array of objects compatible with Zapier InputFieldsSchema. Each field has: `key`, `label`, `type`, `required`, and optional `helpText`. **Field types:** - `string`: Text input (also used for JSON arrays/objects) - `integer`: Integer number - `number`: Decimal number - `boolean`: True/False checkbox **Arrays and objects:** Complex types are returned as `string` type with a `helpText` showing the expected JSON format. **No credits consumed:** This is a read-only endpoint.
23
+ # Get the dynamic fields for a template. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for no-code tool integrations (Zapier, Make.com). It returns an array of field definitions used to dynamically generate input forms. **Response format:** Array of field objects with: `key`, `label`, `type`, `required`, optional `helpText`, and optional `spec` (for array fields). **Field types:** - `string`: Text input - `integer`: Integer number - `number`: Decimal number - `boolean`: True/False checkbox - `array`: Array of items with nested `spec` defining item structure **Array fields:** When a field is an array of objects, the response includes a `spec` array defining the structure of each item (name, label, type for each nested field). **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
24
24
  # @param template_id [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [Array<TemplateField>]
@@ -30,7 +30,7 @@ module TemplateFox
30
30
  end
31
31
 
32
32
  # Get template fields
33
- # Get the dynamic fields for a template. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for Zapier Dynamic Fields integration. It returns an array of field definitions that Zapier uses to dynamically generate input forms. **Response format:** Array of objects compatible with Zapier InputFieldsSchema. Each field has: &#x60;key&#x60;, &#x60;label&#x60;, &#x60;type&#x60;, &#x60;required&#x60;, and optional &#x60;helpText&#x60;. **Field types:** - &#x60;string&#x60;: Text input (also used for JSON arrays/objects) - &#x60;integer&#x60;: Integer number - &#x60;number&#x60;: Decimal number - &#x60;boolean&#x60;: True/False checkbox **Arrays and objects:** Complex types are returned as &#x60;string&#x60; type with a &#x60;helpText&#x60; showing the expected JSON format. **No credits consumed:** This is a read-only endpoint.
33
+ # Get the dynamic fields for a template. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for no-code tool integrations (Zapier, Make.com). It returns an array of field definitions used to dynamically generate input forms. **Response format:** Array of field objects with: &#x60;key&#x60;, &#x60;label&#x60;, &#x60;type&#x60;, &#x60;required&#x60;, optional &#x60;helpText&#x60;, and optional &#x60;spec&#x60; (for array fields). **Field types:** - &#x60;string&#x60;: Text input - &#x60;integer&#x60;: Integer number - &#x60;number&#x60;: Decimal number - &#x60;boolean&#x60;: True/False checkbox - &#x60;array&#x60;: Array of items with nested &#x60;spec&#x60; defining item structure **Array fields:** When a field is an array of objects, the response includes a &#x60;spec&#x60; array defining the structure of each item (name, label, type for each nested field). **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
34
34
  # @param template_id [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(Array<TemplateField>, Integer, Hash)>] Array<TemplateField> data, response status code and response headers
@@ -83,7 +83,7 @@ module TemplateFox
83
83
  end
84
84
 
85
85
  # List templates
86
- # List all templates for the authenticated user. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for no-code tools (Zapier, Make, n8n) to populate template selection dropdowns. **No credits consumed:** This is a read-only endpoint.
86
+ # List all templates for the authenticated user. **Authentication:** API Key required (`x-api-key` header) or JWT token **Usage:** This endpoint is designed for no-code tools (Zapier, Make, n8n) to populate template selection dropdowns. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @return [TemplatesListResponse]
89
89
  def list_templates(opts = {})
@@ -92,7 +92,7 @@ module TemplateFox
92
92
  end
93
93
 
94
94
  # List templates
95
- # List all templates for the authenticated user. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for no-code tools (Zapier, Make, n8n) to populate template selection dropdowns. **No credits consumed:** This is a read-only endpoint.
95
+ # List all templates for the authenticated user. **Authentication:** API Key required (&#x60;x-api-key&#x60; header) or JWT token **Usage:** This endpoint is designed for no-code tools (Zapier, Make, n8n) to populate template selection dropdowns. **No credits consumed:** This is a read-only endpoint. **Rate Limits:** 60 requests/min (free), 120 requests/min (paid). Headers included in response.
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [Array<(TemplatesListResponse, Integer, Hash)>] TemplatesListResponse data, response status code and response headers
98
98
  def list_templates_with_http_info(opts = {})
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -0,0 +1,39 @@
1
+ =begin
2
+ #TemplateFox API
3
+
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
+
6
+ The version of the OpenAPI document: 1.6.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module TemplateFox
17
+ class AppRoutersV1PdfAsyncExportType
18
+ URL = "url".freeze
19
+
20
+ def self.all_vars
21
+ @all_vars ||= [URL].freeze
22
+ end
23
+
24
+ # Builds the enum from string
25
+ # @param [String] The enum value in the form of the string
26
+ # @return [String] The enum value
27
+ def self.build_from_hash(value)
28
+ new.build_from_hash(value)
29
+ end
30
+
31
+ # Builds the enum from string
32
+ # @param [String] The enum value in the form of the string
33
+ # @return [String] The enum value
34
+ def build_from_hash(value)
35
+ return value if AppRoutersV1PdfAsyncExportType.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #AppRoutersV1PdfAsyncExportType"
37
+ end
38
+ end
39
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #TemplateFox API
3
3
 
4
- #Generate PDFs from HTML templates via API. Design once, generate thousands.
4
+ #Generate beautiful PDFs from HTML/CSS templates with Jinja2 via API. Design once, generate thousands.
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 1.6.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.19.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TemplateFox
17
- class ExportType
17
+ class AppRoutersV1PdfExportType
18
18
  URL = "url".freeze
19
19
  BINARY = "binary".freeze
20
20
 
@@ -33,8 +33,8 @@ module TemplateFox
33
33
  # @param [String] The enum value in the form of the string
34
34
  # @return [String] The enum value
35
35
  def build_from_hash(value)
36
- return value if ExportType.all_vars.include?(value)
37
- raise "Invalid ENUM value #{value} for class #ExportType"
36
+ return value if AppRoutersV1PdfExportType.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #AppRoutersV1PdfExportType"
38
38
  end
39
39
  end
40
40
  end