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.
- checksums.yaml +4 -4
- data/lib/templatefox/api/account_api.rb +6 -6
- data/lib/templatefox/api/integrations_api.rb +10 -10
- data/lib/templatefox/api/pdf_api.rb +4 -4
- data/lib/templatefox/api/pdf_async_api.rb +219 -0
- data/lib/templatefox/api/templates_api.rb +6 -6
- data/lib/templatefox/api_client.rb +2 -2
- data/lib/templatefox/api_error.rb +2 -2
- data/lib/templatefox/api_model_base.rb +2 -2
- data/lib/templatefox/configuration.rb +2 -2
- data/lib/templatefox/models/account_info_response.rb +2 -2
- data/lib/templatefox/models/app_routers_v1_pdf_async_export_type.rb +39 -0
- data/lib/templatefox/models/{export_type.rb → app_routers_v1_pdf_export_type.rb} +5 -5
- data/lib/templatefox/models/create_async_pdf_request.rb +482 -0
- data/lib/templatefox/models/create_async_pdf_response.rb +242 -0
- data/lib/templatefox/models/create_pdf_request.rb +3 -3
- data/lib/templatefox/models/create_pdf_response.rb +2 -2
- data/lib/templatefox/models/http_validation_error.rb +2 -2
- data/lib/templatefox/models/job_list_response.rb +249 -0
- data/lib/templatefox/models/job_status.rb +42 -0
- data/lib/templatefox/models/job_status_response.rb +440 -0
- data/lib/templatefox/models/location_inner.rb +2 -2
- data/lib/templatefox/models/s3_config_request.rb +2 -2
- data/lib/templatefox/models/s3_config_response.rb +2 -2
- data/lib/templatefox/models/s3_success_response.rb +2 -2
- data/lib/templatefox/models/s3_test_response.rb +2 -2
- data/lib/templatefox/models/template_field.rb +21 -9
- data/lib/templatefox/models/template_field_spec.rb +205 -0
- data/lib/templatefox/models/template_list_item.rb +2 -2
- data/lib/templatefox/models/templates_list_response.rb +2 -2
- data/lib/templatefox/models/transaction.rb +2 -2
- data/lib/templatefox/models/transactions_response.rb +2 -2
- data/lib/templatefox/models/validation_error.rb +2 -2
- data/lib/templatefox/version.rb +3 -3
- data/lib/templatefox.rb +11 -3
- data/spec/api/account_api_spec.rb +4 -4
- data/spec/api/integrations_api_spec.rb +6 -6
- data/spec/api/pdf_api_spec.rb +3 -3
- data/spec/api/pdf_async_api_spec.rb +73 -0
- data/spec/api/templates_api_spec.rb +4 -4
- data/spec/models/account_info_response_spec.rb +2 -2
- data/spec/models/app_routers_v1_pdf_async_export_type_spec.rb +30 -0
- data/spec/models/app_routers_v1_pdf_export_type_spec.rb +30 -0
- data/spec/models/create_async_pdf_request_spec.rb +90 -0
- data/spec/models/create_async_pdf_response_spec.rb +48 -0
- data/spec/models/create_pdf_request_spec.rb +2 -2
- data/spec/models/create_pdf_response_spec.rb +2 -2
- data/spec/models/http_validation_error_spec.rb +2 -2
- data/spec/models/job_list_response_spec.rb +54 -0
- data/spec/models/job_status_response_spec.rb +126 -0
- data/spec/models/job_status_spec.rb +30 -0
- data/spec/models/location_inner_spec.rb +2 -2
- data/spec/models/s3_config_request_spec.rb +2 -2
- data/spec/models/s3_config_response_spec.rb +2 -2
- data/spec/models/s3_success_response_spec.rb +2 -2
- data/spec/models/s3_test_response_spec.rb +2 -2
- data/spec/models/template_field_spec.rb +8 -2
- data/spec/models/template_field_spec_spec.rb +48 -0
- data/spec/models/template_list_item_spec.rb +2 -2
- data/spec/models/templates_list_response_spec.rb +2 -2
- data/spec/models/transaction_spec.rb +2 -2
- data/spec/models/transactions_response_spec.rb +2 -2
- data/spec/models/validation_error_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/templatefox.gemspec +9 -4
- metadata +57 -50
- data/docs/AccountApi.md +0 -152
- data/docs/AccountInfoResponse.md +0 -20
- data/docs/CreatePdfRequest.md +0 -32
- data/docs/CreatePdfResponse.md +0 -24
- data/docs/ExportType.md +0 -15
- data/docs/HTTPValidationError.md +0 -18
- data/docs/IntegrationsApi.md +0 -286
- data/docs/LocationInner.md +0 -15
- data/docs/PDFApi.md +0 -79
- data/docs/S3ConfigRequest.md +0 -26
- data/docs/S3ConfigResponse.md +0 -28
- data/docs/S3SuccessResponse.md +0 -18
- data/docs/S3TestResponse.md +0 -20
- data/docs/TemplateField.md +0 -26
- data/docs/TemplateListItem.md +0 -24
- data/docs/TemplatesApi.md +0 -148
- data/docs/TemplatesListResponse.md +0 -18
- data/docs/Transaction.md +0 -28
- data/docs/TransactionsResponse.md +0 -24
- data/docs/ValidationError.md +0 -22
- data/git_push.sh +0 -57
- data/spec/models/export_type_spec.rb +0 -30
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: templatefox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TemplateFox
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -34,22 +34,22 @@ dependencies:
|
|
|
34
34
|
name: rspec
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 3.6.0
|
|
40
37
|
- - "~>"
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: '3.6'
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 3.6.0
|
|
43
43
|
type: :development
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 3.6.0
|
|
50
47
|
- - "~>"
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: '3.6'
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: 3.6.0
|
|
53
53
|
description: Ruby SDK for TemplateFox - Generate PDFs from HTML templates via API
|
|
54
54
|
email:
|
|
55
55
|
- support@pdftemplateapi.com
|
|
@@ -61,47 +61,34 @@ files:
|
|
|
61
61
|
- LICENSE
|
|
62
62
|
- README.md
|
|
63
63
|
- Rakefile
|
|
64
|
-
- docs/AccountApi.md
|
|
65
|
-
- docs/AccountInfoResponse.md
|
|
66
|
-
- docs/CreatePdfRequest.md
|
|
67
|
-
- docs/CreatePdfResponse.md
|
|
68
|
-
- docs/ExportType.md
|
|
69
|
-
- docs/HTTPValidationError.md
|
|
70
|
-
- docs/IntegrationsApi.md
|
|
71
|
-
- docs/LocationInner.md
|
|
72
|
-
- docs/PDFApi.md
|
|
73
|
-
- docs/S3ConfigRequest.md
|
|
74
|
-
- docs/S3ConfigResponse.md
|
|
75
|
-
- docs/S3SuccessResponse.md
|
|
76
|
-
- docs/S3TestResponse.md
|
|
77
|
-
- docs/TemplateField.md
|
|
78
|
-
- docs/TemplateListItem.md
|
|
79
|
-
- docs/TemplatesApi.md
|
|
80
|
-
- docs/TemplatesListResponse.md
|
|
81
|
-
- docs/Transaction.md
|
|
82
|
-
- docs/TransactionsResponse.md
|
|
83
|
-
- docs/ValidationError.md
|
|
84
|
-
- git_push.sh
|
|
85
64
|
- lib/templatefox.rb
|
|
86
65
|
- lib/templatefox/api/account_api.rb
|
|
87
66
|
- lib/templatefox/api/integrations_api.rb
|
|
88
67
|
- lib/templatefox/api/pdf_api.rb
|
|
68
|
+
- lib/templatefox/api/pdf_async_api.rb
|
|
89
69
|
- lib/templatefox/api/templates_api.rb
|
|
90
70
|
- lib/templatefox/api_client.rb
|
|
91
71
|
- lib/templatefox/api_error.rb
|
|
92
72
|
- lib/templatefox/api_model_base.rb
|
|
93
73
|
- lib/templatefox/configuration.rb
|
|
94
74
|
- lib/templatefox/models/account_info_response.rb
|
|
75
|
+
- lib/templatefox/models/app_routers_v1_pdf_async_export_type.rb
|
|
76
|
+
- lib/templatefox/models/app_routers_v1_pdf_export_type.rb
|
|
77
|
+
- lib/templatefox/models/create_async_pdf_request.rb
|
|
78
|
+
- lib/templatefox/models/create_async_pdf_response.rb
|
|
95
79
|
- lib/templatefox/models/create_pdf_request.rb
|
|
96
80
|
- lib/templatefox/models/create_pdf_response.rb
|
|
97
|
-
- lib/templatefox/models/export_type.rb
|
|
98
81
|
- lib/templatefox/models/http_validation_error.rb
|
|
82
|
+
- lib/templatefox/models/job_list_response.rb
|
|
83
|
+
- lib/templatefox/models/job_status.rb
|
|
84
|
+
- lib/templatefox/models/job_status_response.rb
|
|
99
85
|
- lib/templatefox/models/location_inner.rb
|
|
100
86
|
- lib/templatefox/models/s3_config_request.rb
|
|
101
87
|
- lib/templatefox/models/s3_config_response.rb
|
|
102
88
|
- lib/templatefox/models/s3_success_response.rb
|
|
103
89
|
- lib/templatefox/models/s3_test_response.rb
|
|
104
90
|
- lib/templatefox/models/template_field.rb
|
|
91
|
+
- lib/templatefox/models/template_field_spec.rb
|
|
105
92
|
- lib/templatefox/models/template_list_item.rb
|
|
106
93
|
- lib/templatefox/models/templates_list_response.rb
|
|
107
94
|
- lib/templatefox/models/transaction.rb
|
|
@@ -111,18 +98,26 @@ files:
|
|
|
111
98
|
- spec/api/account_api_spec.rb
|
|
112
99
|
- spec/api/integrations_api_spec.rb
|
|
113
100
|
- spec/api/pdf_api_spec.rb
|
|
101
|
+
- spec/api/pdf_async_api_spec.rb
|
|
114
102
|
- spec/api/templates_api_spec.rb
|
|
115
103
|
- spec/models/account_info_response_spec.rb
|
|
104
|
+
- spec/models/app_routers_v1_pdf_async_export_type_spec.rb
|
|
105
|
+
- spec/models/app_routers_v1_pdf_export_type_spec.rb
|
|
106
|
+
- spec/models/create_async_pdf_request_spec.rb
|
|
107
|
+
- spec/models/create_async_pdf_response_spec.rb
|
|
116
108
|
- spec/models/create_pdf_request_spec.rb
|
|
117
109
|
- spec/models/create_pdf_response_spec.rb
|
|
118
|
-
- spec/models/export_type_spec.rb
|
|
119
110
|
- spec/models/http_validation_error_spec.rb
|
|
111
|
+
- spec/models/job_list_response_spec.rb
|
|
112
|
+
- spec/models/job_status_response_spec.rb
|
|
113
|
+
- spec/models/job_status_spec.rb
|
|
120
114
|
- spec/models/location_inner_spec.rb
|
|
121
115
|
- spec/models/s3_config_request_spec.rb
|
|
122
116
|
- spec/models/s3_config_response_spec.rb
|
|
123
117
|
- spec/models/s3_success_response_spec.rb
|
|
124
118
|
- spec/models/s3_test_response_spec.rb
|
|
125
119
|
- spec/models/template_field_spec.rb
|
|
120
|
+
- spec/models/template_field_spec_spec.rb
|
|
126
121
|
- spec/models/template_list_item_spec.rb
|
|
127
122
|
- spec/models/templates_list_response_spec.rb
|
|
128
123
|
- spec/models/transaction_spec.rb
|
|
@@ -130,11 +125,15 @@ files:
|
|
|
130
125
|
- spec/models/validation_error_spec.rb
|
|
131
126
|
- spec/spec_helper.rb
|
|
132
127
|
- templatefox.gemspec
|
|
133
|
-
homepage: https://
|
|
128
|
+
homepage: https://pdftemplateapi.com
|
|
134
129
|
licenses:
|
|
135
130
|
- MIT
|
|
136
|
-
metadata:
|
|
137
|
-
|
|
131
|
+
metadata:
|
|
132
|
+
source_code_uri: https://github.com/TemplateFoxPDF/rubysdk
|
|
133
|
+
bug_tracker_uri: https://github.com/TemplateFoxPDF/rubysdk/issues
|
|
134
|
+
documentation_uri: https://pdftemplateapi.com/docs
|
|
135
|
+
homepage_uri: https://pdftemplateapi.com
|
|
136
|
+
post_install_message:
|
|
138
137
|
rdoc_options: []
|
|
139
138
|
require_paths:
|
|
140
139
|
- lib
|
|
@@ -149,29 +148,37 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
149
148
|
- !ruby/object:Gem::Version
|
|
150
149
|
version: '0'
|
|
151
150
|
requirements: []
|
|
152
|
-
rubygems_version: 3.
|
|
153
|
-
signing_key:
|
|
151
|
+
rubygems_version: 3.4.19
|
|
152
|
+
signing_key:
|
|
154
153
|
specification_version: 4
|
|
155
154
|
summary: Official TemplateFox Ruby SDK
|
|
156
155
|
test_files:
|
|
156
|
+
- spec/api/templates_api_spec.rb
|
|
157
157
|
- spec/api/integrations_api_spec.rb
|
|
158
|
+
- spec/api/pdf_async_api_spec.rb
|
|
158
159
|
- spec/api/account_api_spec.rb
|
|
159
160
|
- spec/api/pdf_api_spec.rb
|
|
160
|
-
- spec/
|
|
161
|
-
- spec/models/
|
|
162
|
-
- spec/models/
|
|
161
|
+
- spec/models/s3_config_request_spec.rb
|
|
162
|
+
- spec/models/transactions_response_spec.rb
|
|
163
|
+
- spec/models/job_status_spec.rb
|
|
164
|
+
- spec/models/templates_list_response_spec.rb
|
|
165
|
+
- spec/models/template_field_spec.rb
|
|
166
|
+
- spec/models/job_status_response_spec.rb
|
|
167
|
+
- spec/models/create_pdf_response_spec.rb
|
|
163
168
|
- spec/models/template_list_item_spec.rb
|
|
164
|
-
- spec/models/
|
|
165
|
-
- spec/models/
|
|
166
|
-
- spec/models/
|
|
167
|
-
- spec/models/
|
|
169
|
+
- spec/models/create_async_pdf_response_spec.rb
|
|
170
|
+
- spec/models/app_routers_v1_pdf_async_export_type_spec.rb
|
|
171
|
+
- spec/models/s3_test_response_spec.rb
|
|
172
|
+
- spec/models/create_async_pdf_request_spec.rb
|
|
173
|
+
- spec/models/job_list_response_spec.rb
|
|
174
|
+
- spec/models/s3_success_response_spec.rb
|
|
168
175
|
- spec/models/location_inner_spec.rb
|
|
169
176
|
- spec/models/http_validation_error_spec.rb
|
|
177
|
+
- spec/models/validation_error_spec.rb
|
|
178
|
+
- spec/models/transaction_spec.rb
|
|
179
|
+
- spec/models/app_routers_v1_pdf_export_type_spec.rb
|
|
180
|
+
- spec/models/s3_config_response_spec.rb
|
|
181
|
+
- spec/models/template_field_spec_spec.rb
|
|
170
182
|
- spec/models/account_info_response_spec.rb
|
|
171
|
-
- spec/models/
|
|
172
|
-
- spec/models/templates_list_response_spec.rb
|
|
173
|
-
- spec/models/template_field_spec.rb
|
|
174
|
-
- spec/models/s3_success_response_spec.rb
|
|
175
|
-
- spec/models/transactions_response_spec.rb
|
|
176
|
-
- spec/models/s3_config_request_spec.rb
|
|
183
|
+
- spec/models/create_pdf_request_spec.rb
|
|
177
184
|
- spec/spec_helper.rb
|
data/docs/AccountApi.md
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# TemplateFox::AccountApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.pdftemplateapi.com*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_account**](AccountApi.md#get_account) | **GET** /v1/account | Get account info |
|
|
8
|
-
| [**list_transactions**](AccountApi.md#list_transactions) | **GET** /v1/account/transactions | List transactions |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## get_account
|
|
12
|
-
|
|
13
|
-
> <AccountInfoResponse> get_account
|
|
14
|
-
|
|
15
|
-
Get account info
|
|
16
|
-
|
|
17
|
-
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.
|
|
18
|
-
|
|
19
|
-
### Examples
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
require 'time'
|
|
23
|
-
require 'templatefox'
|
|
24
|
-
# setup authorization
|
|
25
|
-
TemplateFox.configure do |config|
|
|
26
|
-
# Configure API key authorization: ApiKeyAuth
|
|
27
|
-
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
28
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
29
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
api_instance = TemplateFox::AccountApi.new
|
|
33
|
-
|
|
34
|
-
begin
|
|
35
|
-
# Get account info
|
|
36
|
-
result = api_instance.get_account
|
|
37
|
-
p result
|
|
38
|
-
rescue TemplateFox::ApiError => e
|
|
39
|
-
puts "Error when calling AccountApi->get_account: #{e}"
|
|
40
|
-
end
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
#### Using the get_account_with_http_info variant
|
|
44
|
-
|
|
45
|
-
This returns an Array which contains the response data, status code and headers.
|
|
46
|
-
|
|
47
|
-
> <Array(<AccountInfoResponse>, Integer, Hash)> get_account_with_http_info
|
|
48
|
-
|
|
49
|
-
```ruby
|
|
50
|
-
begin
|
|
51
|
-
# Get account info
|
|
52
|
-
data, status_code, headers = api_instance.get_account_with_http_info
|
|
53
|
-
p status_code # => 2xx
|
|
54
|
-
p headers # => { ... }
|
|
55
|
-
p data # => <AccountInfoResponse>
|
|
56
|
-
rescue TemplateFox::ApiError => e
|
|
57
|
-
puts "Error when calling AccountApi->get_account_with_http_info: #{e}"
|
|
58
|
-
end
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Parameters
|
|
62
|
-
|
|
63
|
-
This endpoint does not need any parameter.
|
|
64
|
-
|
|
65
|
-
### Return type
|
|
66
|
-
|
|
67
|
-
[**AccountInfoResponse**](AccountInfoResponse.md)
|
|
68
|
-
|
|
69
|
-
### Authorization
|
|
70
|
-
|
|
71
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
72
|
-
|
|
73
|
-
### HTTP request headers
|
|
74
|
-
|
|
75
|
-
- **Content-Type**: Not defined
|
|
76
|
-
- **Accept**: application/json
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## list_transactions
|
|
80
|
-
|
|
81
|
-
> <TransactionsResponse> list_transactions(opts)
|
|
82
|
-
|
|
83
|
-
List transactions
|
|
84
|
-
|
|
85
|
-
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.
|
|
86
|
-
|
|
87
|
-
### Examples
|
|
88
|
-
|
|
89
|
-
```ruby
|
|
90
|
-
require 'time'
|
|
91
|
-
require 'templatefox'
|
|
92
|
-
# setup authorization
|
|
93
|
-
TemplateFox.configure do |config|
|
|
94
|
-
# Configure API key authorization: ApiKeyAuth
|
|
95
|
-
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
96
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
97
|
-
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
api_instance = TemplateFox::AccountApi.new
|
|
101
|
-
opts = {
|
|
102
|
-
limit: 56, # Integer | Number of records to return
|
|
103
|
-
offset: 56 # Integer | Number of records to skip
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
# List transactions
|
|
108
|
-
result = api_instance.list_transactions(opts)
|
|
109
|
-
p result
|
|
110
|
-
rescue TemplateFox::ApiError => e
|
|
111
|
-
puts "Error when calling AccountApi->list_transactions: #{e}"
|
|
112
|
-
end
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
#### Using the list_transactions_with_http_info variant
|
|
116
|
-
|
|
117
|
-
This returns an Array which contains the response data, status code and headers.
|
|
118
|
-
|
|
119
|
-
> <Array(<TransactionsResponse>, Integer, Hash)> list_transactions_with_http_info(opts)
|
|
120
|
-
|
|
121
|
-
```ruby
|
|
122
|
-
begin
|
|
123
|
-
# List transactions
|
|
124
|
-
data, status_code, headers = api_instance.list_transactions_with_http_info(opts)
|
|
125
|
-
p status_code # => 2xx
|
|
126
|
-
p headers # => { ... }
|
|
127
|
-
p data # => <TransactionsResponse>
|
|
128
|
-
rescue TemplateFox::ApiError => e
|
|
129
|
-
puts "Error when calling AccountApi->list_transactions_with_http_info: #{e}"
|
|
130
|
-
end
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
|
|
135
|
-
| Name | Type | Description | Notes |
|
|
136
|
-
| ---- | ---- | ----------- | ----- |
|
|
137
|
-
| **limit** | **Integer** | Number of records to return | [optional][default to 300] |
|
|
138
|
-
| **offset** | **Integer** | Number of records to skip | [optional][default to 0] |
|
|
139
|
-
|
|
140
|
-
### Return type
|
|
141
|
-
|
|
142
|
-
[**TransactionsResponse**](TransactionsResponse.md)
|
|
143
|
-
|
|
144
|
-
### Authorization
|
|
145
|
-
|
|
146
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
147
|
-
|
|
148
|
-
### HTTP request headers
|
|
149
|
-
|
|
150
|
-
- **Content-Type**: Not defined
|
|
151
|
-
- **Accept**: application/json
|
|
152
|
-
|
data/docs/AccountInfoResponse.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TemplateFox::AccountInfoResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **credits** | **Integer** | Remaining credits | |
|
|
8
|
-
| **email** | **String** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'templatefox'
|
|
14
|
-
|
|
15
|
-
instance = TemplateFox::AccountInfoResponse.new(
|
|
16
|
-
credits: null,
|
|
17
|
-
email: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/CreatePdfRequest.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# TemplateFox::CreatePdfRequest
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **template_id** | **String** | **Required.** Template short ID (12 characters) | |
|
|
8
|
-
| **data** | **Hash<String, Object>** | **Required.** Key-value data to render in the template. Keys must match template variables. | |
|
|
9
|
-
| **export_type** | [**ExportType**](ExportType.md) | Export format: `url` uploads to CDN and returns URL, `binary` returns raw PDF bytes | [optional] |
|
|
10
|
-
| **expiration** | **Integer** | URL expiration in seconds. Min: 60 (1 min), Max: 604800 (7 days). Only applies to `url` export type. | [optional][default to 86400] |
|
|
11
|
-
| **filename** | **String** | | [optional] |
|
|
12
|
-
| **store_s3** | **Boolean** | Upload to your configured S3 bucket instead of CDN | [optional][default to false] |
|
|
13
|
-
| **s3_filepath** | **String** | | [optional] |
|
|
14
|
-
| **s3_bucket** | **String** | | [optional] |
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```ruby
|
|
19
|
-
require 'templatefox'
|
|
20
|
-
|
|
21
|
-
instance = TemplateFox::CreatePdfRequest.new(
|
|
22
|
-
template_id: null,
|
|
23
|
-
data: null,
|
|
24
|
-
export_type: null,
|
|
25
|
-
expiration: null,
|
|
26
|
-
filename: null,
|
|
27
|
-
store_s3: null,
|
|
28
|
-
s3_filepath: null,
|
|
29
|
-
s3_bucket: null
|
|
30
|
-
)
|
|
31
|
-
```
|
|
32
|
-
|
data/docs/CreatePdfResponse.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# TemplateFox::CreatePdfResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **url** | **String** | Signed URL to download the PDF (expires after specified time) | |
|
|
8
|
-
| **filename** | **String** | Filename of the generated PDF | |
|
|
9
|
-
| **credits_remaining** | **Integer** | Remaining credits after this request | |
|
|
10
|
-
| **expires_in** | **Integer** | Seconds until URL expires | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'templatefox'
|
|
16
|
-
|
|
17
|
-
instance = TemplateFox::CreatePdfResponse.new(
|
|
18
|
-
url: null,
|
|
19
|
-
filename: null,
|
|
20
|
-
credits_remaining: null,
|
|
21
|
-
expires_in: null
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
data/docs/ExportType.md
DELETED
data/docs/HTTPValidationError.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# TemplateFox::HTTPValidationError
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'templatefox'
|
|
13
|
-
|
|
14
|
-
instance = TemplateFox::HTTPValidationError.new(
|
|
15
|
-
detail: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|