solifyn 1.1.4 → 1.1.6
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/README.md +21 -4
- data/docs/CreateEntitlementDto.md +42 -0
- data/docs/CreateFramerTemplateDto.md +22 -0
- data/docs/EntitlementDetailResponseDto.md +56 -0
- data/docs/EntitlementGrantResponseDto.md +4 -0
- data/docs/EntitlementGrantsApi.md +5 -1
- data/docs/EntitlementsApi.md +331 -0
- data/docs/FramerIntegrationApi.md +355 -0
- data/docs/FramerTemplateResponseDto.md +30 -0
- data/docs/LinkedProductDto.md +20 -0
- data/docs/ProductCreate.md +7 -1
- data/docs/ProductUpdate.md +7 -1
- data/docs/UpdateEntitlementDto.md +42 -0
- data/docs/UpdateFramerTemplateDto.md +22 -0
- data/lib/solifyn/api/entitlement_grants_api.rb +6 -0
- data/lib/solifyn/api/entitlements_api.rb +347 -0
- data/lib/solifyn/api/framer_integration_api.rb +345 -0
- data/lib/solifyn/models/create_entitlement_dto.rb +385 -0
- data/lib/solifyn/models/create_framer_template_dto.rb +249 -0
- data/lib/solifyn/models/entitlement_detail_response_dto.rb +470 -0
- data/lib/solifyn/models/entitlement_grant_response_dto.rb +21 -1
- data/lib/solifyn/models/framer_template_response_dto.rb +317 -0
- data/lib/solifyn/models/linked_product_dto.rb +239 -0
- data/lib/solifyn/models/product_create.rb +38 -4
- data/lib/solifyn/models/product_update.rb +38 -4
- data/lib/solifyn/models/update_entitlement_dto.rb +371 -0
- data/lib/solifyn/models/update_framer_template_dto.rb +235 -0
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +9 -0
- data/spec/api/entitlements_api_spec.rb +95 -0
- data/spec/api/framer_integration_api_spec.rb +95 -0
- data/spec/models/create_entitlement_dto_spec.rb +112 -0
- data/spec/models/create_framer_template_dto_spec.rb +48 -0
- data/spec/models/entitlement_detail_response_dto_spec.rb +150 -0
- data/spec/models/framer_template_response_dto_spec.rb +72 -0
- data/spec/models/linked_product_dto_spec.rb +42 -0
- data/spec/models/update_entitlement_dto_spec.rb +112 -0
- data/spec/models/update_framer_template_dto_spec.rb +48 -0
- metadata +172 -136
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
# Solifyn::FramerIntegrationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.solifyn.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**framer_create_template**](FramerIntegrationApi.md#framer_create_template) | **POST** /v1/framer/templates | Create Framer Template |
|
|
8
|
+
| [**framer_delete_template**](FramerIntegrationApi.md#framer_delete_template) | **DELETE** /v1/framer/templates/{id} | Delete Framer Template |
|
|
9
|
+
| [**framer_get_template**](FramerIntegrationApi.md#framer_get_template) | **GET** /v1/framer/templates/{id} | Retrieve Framer Template |
|
|
10
|
+
| [**framer_list_templates**](FramerIntegrationApi.md#framer_list_templates) | **GET** /v1/framer/templates | List Framer Templates |
|
|
11
|
+
| [**framer_update_template**](FramerIntegrationApi.md#framer_update_template) | **PUT** /v1/framer/templates/{id} | Update Framer Template |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## framer_create_template
|
|
15
|
+
|
|
16
|
+
> <FramerTemplateResponseDto> framer_create_template(create_framer_template_dto)
|
|
17
|
+
|
|
18
|
+
Create Framer Template
|
|
19
|
+
|
|
20
|
+
Registers a new Framer template with its public remix link for the active business.
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'solifyn'
|
|
27
|
+
# setup authorization
|
|
28
|
+
Solifyn.configure do |config|
|
|
29
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
30
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
api_instance = Solifyn::FramerIntegrationApi.new
|
|
34
|
+
create_framer_template_dto = Solifyn::CreateFramerTemplateDto.new({name: 'Portfolio Template', remix_link: 'https://framer.com/projects/xyz'}) # CreateFramerTemplateDto |
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# Create Framer Template
|
|
38
|
+
result = api_instance.framer_create_template(create_framer_template_dto)
|
|
39
|
+
p result
|
|
40
|
+
rescue Solifyn::ApiError => e
|
|
41
|
+
puts "Error when calling FramerIntegrationApi->framer_create_template: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the framer_create_template_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<FramerTemplateResponseDto>, Integer, Hash)> framer_create_template_with_http_info(create_framer_template_dto)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# Create Framer Template
|
|
54
|
+
data, status_code, headers = api_instance.framer_create_template_with_http_info(create_framer_template_dto)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <FramerTemplateResponseDto>
|
|
58
|
+
rescue Solifyn::ApiError => e
|
|
59
|
+
puts "Error when calling FramerIntegrationApi->framer_create_template_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **create_framer_template_dto** | [**CreateFramerTemplateDto**](CreateFramerTemplateDto.md) | | |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**FramerTemplateResponseDto**](FramerTemplateResponseDto.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: application/json
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## framer_delete_template
|
|
84
|
+
|
|
85
|
+
> framer_delete_template(id)
|
|
86
|
+
|
|
87
|
+
Delete Framer Template
|
|
88
|
+
|
|
89
|
+
Deletes a registered Framer template for the active business.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'solifyn'
|
|
96
|
+
# setup authorization
|
|
97
|
+
Solifyn.configure do |config|
|
|
98
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
api_instance = Solifyn::FramerIntegrationApi.new
|
|
103
|
+
id = 'id_example' # String | The Framer template ID
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# Delete Framer Template
|
|
107
|
+
api_instance.framer_delete_template(id)
|
|
108
|
+
rescue Solifyn::ApiError => e
|
|
109
|
+
puts "Error when calling FramerIntegrationApi->framer_delete_template: #{e}"
|
|
110
|
+
end
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Using the framer_delete_template_with_http_info variant
|
|
114
|
+
|
|
115
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
116
|
+
|
|
117
|
+
> <Array(nil, Integer, Hash)> framer_delete_template_with_http_info(id)
|
|
118
|
+
|
|
119
|
+
```ruby
|
|
120
|
+
begin
|
|
121
|
+
# Delete Framer Template
|
|
122
|
+
data, status_code, headers = api_instance.framer_delete_template_with_http_info(id)
|
|
123
|
+
p status_code # => 2xx
|
|
124
|
+
p headers # => { ... }
|
|
125
|
+
p data # => nil
|
|
126
|
+
rescue Solifyn::ApiError => e
|
|
127
|
+
puts "Error when calling FramerIntegrationApi->framer_delete_template_with_http_info: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
| Name | Type | Description | Notes |
|
|
134
|
+
| ---- | ---- | ----------- | ----- |
|
|
135
|
+
| **id** | **String** | The Framer template ID | |
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
nil (empty response body)
|
|
140
|
+
|
|
141
|
+
### Authorization
|
|
142
|
+
|
|
143
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: Not defined
|
|
148
|
+
- **Accept**: Not defined
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## framer_get_template
|
|
152
|
+
|
|
153
|
+
> <FramerTemplateResponseDto> framer_get_template(id)
|
|
154
|
+
|
|
155
|
+
Retrieve Framer Template
|
|
156
|
+
|
|
157
|
+
Retrieves details of a specific registered Framer template.
|
|
158
|
+
|
|
159
|
+
### Examples
|
|
160
|
+
|
|
161
|
+
```ruby
|
|
162
|
+
require 'time'
|
|
163
|
+
require 'solifyn'
|
|
164
|
+
# setup authorization
|
|
165
|
+
Solifyn.configure do |config|
|
|
166
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
167
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
api_instance = Solifyn::FramerIntegrationApi.new
|
|
171
|
+
id = 'id_example' # String | The Framer template ID
|
|
172
|
+
|
|
173
|
+
begin
|
|
174
|
+
# Retrieve Framer Template
|
|
175
|
+
result = api_instance.framer_get_template(id)
|
|
176
|
+
p result
|
|
177
|
+
rescue Solifyn::ApiError => e
|
|
178
|
+
puts "Error when calling FramerIntegrationApi->framer_get_template: #{e}"
|
|
179
|
+
end
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Using the framer_get_template_with_http_info variant
|
|
183
|
+
|
|
184
|
+
This returns an Array which contains the response data, status code and headers.
|
|
185
|
+
|
|
186
|
+
> <Array(<FramerTemplateResponseDto>, Integer, Hash)> framer_get_template_with_http_info(id)
|
|
187
|
+
|
|
188
|
+
```ruby
|
|
189
|
+
begin
|
|
190
|
+
# Retrieve Framer Template
|
|
191
|
+
data, status_code, headers = api_instance.framer_get_template_with_http_info(id)
|
|
192
|
+
p status_code # => 2xx
|
|
193
|
+
p headers # => { ... }
|
|
194
|
+
p data # => <FramerTemplateResponseDto>
|
|
195
|
+
rescue Solifyn::ApiError => e
|
|
196
|
+
puts "Error when calling FramerIntegrationApi->framer_get_template_with_http_info: #{e}"
|
|
197
|
+
end
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
| Name | Type | Description | Notes |
|
|
203
|
+
| ---- | ---- | ----------- | ----- |
|
|
204
|
+
| **id** | **String** | The Framer template ID | |
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
[**FramerTemplateResponseDto**](FramerTemplateResponseDto.md)
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: Not defined
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## framer_list_templates
|
|
221
|
+
|
|
222
|
+
> <Array<FramerTemplateResponseDto>> framer_list_templates
|
|
223
|
+
|
|
224
|
+
List Framer Templates
|
|
225
|
+
|
|
226
|
+
Retrieves all registered Framer templates for the active business.
|
|
227
|
+
|
|
228
|
+
### Examples
|
|
229
|
+
|
|
230
|
+
```ruby
|
|
231
|
+
require 'time'
|
|
232
|
+
require 'solifyn'
|
|
233
|
+
# setup authorization
|
|
234
|
+
Solifyn.configure do |config|
|
|
235
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
236
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
api_instance = Solifyn::FramerIntegrationApi.new
|
|
240
|
+
|
|
241
|
+
begin
|
|
242
|
+
# List Framer Templates
|
|
243
|
+
result = api_instance.framer_list_templates
|
|
244
|
+
p result
|
|
245
|
+
rescue Solifyn::ApiError => e
|
|
246
|
+
puts "Error when calling FramerIntegrationApi->framer_list_templates: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### Using the framer_list_templates_with_http_info variant
|
|
251
|
+
|
|
252
|
+
This returns an Array which contains the response data, status code and headers.
|
|
253
|
+
|
|
254
|
+
> <Array(<Array<FramerTemplateResponseDto>>, Integer, Hash)> framer_list_templates_with_http_info
|
|
255
|
+
|
|
256
|
+
```ruby
|
|
257
|
+
begin
|
|
258
|
+
# List Framer Templates
|
|
259
|
+
data, status_code, headers = api_instance.framer_list_templates_with_http_info
|
|
260
|
+
p status_code # => 2xx
|
|
261
|
+
p headers # => { ... }
|
|
262
|
+
p data # => <Array<FramerTemplateResponseDto>>
|
|
263
|
+
rescue Solifyn::ApiError => e
|
|
264
|
+
puts "Error when calling FramerIntegrationApi->framer_list_templates_with_http_info: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
This endpoint does not need any parameter.
|
|
271
|
+
|
|
272
|
+
### Return type
|
|
273
|
+
|
|
274
|
+
[**Array<FramerTemplateResponseDto>**](FramerTemplateResponseDto.md)
|
|
275
|
+
|
|
276
|
+
### Authorization
|
|
277
|
+
|
|
278
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
279
|
+
|
|
280
|
+
### HTTP request headers
|
|
281
|
+
|
|
282
|
+
- **Content-Type**: Not defined
|
|
283
|
+
- **Accept**: application/json
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## framer_update_template
|
|
287
|
+
|
|
288
|
+
> <FramerTemplateResponseDto> framer_update_template(id, update_framer_template_dto)
|
|
289
|
+
|
|
290
|
+
Update Framer Template
|
|
291
|
+
|
|
292
|
+
Updates a registered Framer template for the active business.
|
|
293
|
+
|
|
294
|
+
### Examples
|
|
295
|
+
|
|
296
|
+
```ruby
|
|
297
|
+
require 'time'
|
|
298
|
+
require 'solifyn'
|
|
299
|
+
# setup authorization
|
|
300
|
+
Solifyn.configure do |config|
|
|
301
|
+
# Configure Bearer authorization (API Key): ApiKeyAuth
|
|
302
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
api_instance = Solifyn::FramerIntegrationApi.new
|
|
306
|
+
id = 'id_example' # String | The Framer template ID
|
|
307
|
+
update_framer_template_dto = Solifyn::UpdateFramerTemplateDto.new # UpdateFramerTemplateDto |
|
|
308
|
+
|
|
309
|
+
begin
|
|
310
|
+
# Update Framer Template
|
|
311
|
+
result = api_instance.framer_update_template(id, update_framer_template_dto)
|
|
312
|
+
p result
|
|
313
|
+
rescue Solifyn::ApiError => e
|
|
314
|
+
puts "Error when calling FramerIntegrationApi->framer_update_template: #{e}"
|
|
315
|
+
end
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
#### Using the framer_update_template_with_http_info variant
|
|
319
|
+
|
|
320
|
+
This returns an Array which contains the response data, status code and headers.
|
|
321
|
+
|
|
322
|
+
> <Array(<FramerTemplateResponseDto>, Integer, Hash)> framer_update_template_with_http_info(id, update_framer_template_dto)
|
|
323
|
+
|
|
324
|
+
```ruby
|
|
325
|
+
begin
|
|
326
|
+
# Update Framer Template
|
|
327
|
+
data, status_code, headers = api_instance.framer_update_template_with_http_info(id, update_framer_template_dto)
|
|
328
|
+
p status_code # => 2xx
|
|
329
|
+
p headers # => { ... }
|
|
330
|
+
p data # => <FramerTemplateResponseDto>
|
|
331
|
+
rescue Solifyn::ApiError => e
|
|
332
|
+
puts "Error when calling FramerIntegrationApi->framer_update_template_with_http_info: #{e}"
|
|
333
|
+
end
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Parameters
|
|
337
|
+
|
|
338
|
+
| Name | Type | Description | Notes |
|
|
339
|
+
| ---- | ---- | ----------- | ----- |
|
|
340
|
+
| **id** | **String** | The Framer template ID | |
|
|
341
|
+
| **update_framer_template_dto** | [**UpdateFramerTemplateDto**](UpdateFramerTemplateDto.md) | | |
|
|
342
|
+
|
|
343
|
+
### Return type
|
|
344
|
+
|
|
345
|
+
[**FramerTemplateResponseDto**](FramerTemplateResponseDto.md)
|
|
346
|
+
|
|
347
|
+
### Authorization
|
|
348
|
+
|
|
349
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
350
|
+
|
|
351
|
+
### HTTP request headers
|
|
352
|
+
|
|
353
|
+
- **Content-Type**: application/json
|
|
354
|
+
- **Accept**: application/json
|
|
355
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Solifyn::FramerTemplateResponseDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The unique Framer template ID. | |
|
|
8
|
+
| **business_id** | **String** | The business ID owning the template. | |
|
|
9
|
+
| **name** | **String** | The name of the Framer template. | |
|
|
10
|
+
| **remix_link** | **String** | The public Framer remix link. | |
|
|
11
|
+
| **description** | **String** | A brief description of the template. | [optional] |
|
|
12
|
+
| **created_at** | **String** | Creation timestamp. | |
|
|
13
|
+
| **updated_at** | **String** | Modification timestamp. | |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'solifyn'
|
|
19
|
+
|
|
20
|
+
instance = Solifyn::FramerTemplateResponseDto.new(
|
|
21
|
+
id: tmpl_123456,
|
|
22
|
+
business_id: biz_123456,
|
|
23
|
+
name: Portfolio Template,
|
|
24
|
+
remix_link: https://framer.com/projects/xyz,
|
|
25
|
+
description: Premium dark-mode portfolio.,
|
|
26
|
+
created_at: null,
|
|
27
|
+
updated_at: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Solifyn::LinkedProductDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | The unique product ID | |
|
|
8
|
+
| **name** | **String** | The product name | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'solifyn'
|
|
14
|
+
|
|
15
|
+
instance = Solifyn::LinkedProductDto.new(
|
|
16
|
+
id: prod_12345,
|
|
17
|
+
name: Premium Developer Plan
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/ProductCreate.md
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
| **has_discord_access** | **Boolean** | Whether the purchase includes Discord server role access. | [optional][default to false] |
|
|
20
20
|
| **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | [optional] |
|
|
21
21
|
| **discord_role_id** | **String** | Discord Role ID to assign to the user. | [optional] |
|
|
22
|
+
| **has_framer_access** | **Boolean** | Whether the purchase includes Framer Template access. | [optional][default to false] |
|
|
23
|
+
| **framer_template_id** | **String** | Framer Template ID to grant access to. | [optional] |
|
|
22
24
|
| **is_tax_inclusive** | **Boolean** | Whether tax is included in the base price. | [optional][default to false] |
|
|
23
25
|
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional] |
|
|
24
26
|
| **brand_id** | **String** | Brand id for the product, if not provided will default to primary brand. | [optional] |
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
| **is_listed** | **Boolean** | Whether the product is publicly visible. | [optional][default to true] |
|
|
34
36
|
| **is_free** | **Boolean** | Whether the product is free of charge. | [optional][default to false] |
|
|
35
37
|
| **addons** | [**Array<ProductCreateAddonsInner>**](ProductCreateAddonsInner.md) | Product addons configurations. | [optional] |
|
|
38
|
+
| **entitlement_ids** | **Array<String>** | Array of independent entitlement IDs to link to this product. | [optional] |
|
|
36
39
|
|
|
37
40
|
## Example
|
|
38
41
|
|
|
@@ -55,6 +58,8 @@ instance = Solifyn::ProductCreate.new(
|
|
|
55
58
|
has_discord_access: false,
|
|
56
59
|
discord_guild_id: 123456789012345678,
|
|
57
60
|
discord_role_id: 876543210987654321,
|
|
61
|
+
has_framer_access: false,
|
|
62
|
+
framer_template_id: fmt_8Z1aB2cD3eF4gH5iJ6kL7m,
|
|
58
63
|
is_tax_inclusive: false,
|
|
59
64
|
activation_limit: null,
|
|
60
65
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|
|
@@ -68,7 +73,8 @@ instance = Solifyn::ProductCreate.new(
|
|
|
68
73
|
stock: 100,
|
|
69
74
|
is_listed: true,
|
|
70
75
|
is_free: false,
|
|
71
|
-
addons: null
|
|
76
|
+
addons: null,
|
|
77
|
+
entitlement_ids: null
|
|
72
78
|
)
|
|
73
79
|
```
|
|
74
80
|
|
data/docs/ProductUpdate.md
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
| **has_discord_access** | **Boolean** | Whether the purchase includes Discord server role access. | [optional][default to false] |
|
|
20
20
|
| **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | [optional] |
|
|
21
21
|
| **discord_role_id** | **String** | Discord Role ID to assign to the user. | [optional] |
|
|
22
|
+
| **has_framer_access** | **Boolean** | Whether the purchase includes Framer Template access. | [optional][default to false] |
|
|
23
|
+
| **framer_template_id** | **String** | Framer Template ID to grant access to. | [optional] |
|
|
22
24
|
| **is_tax_inclusive** | **Boolean** | Whether tax is included in the base price. | [optional][default to false] |
|
|
23
25
|
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional] |
|
|
24
26
|
| **brand_id** | **String** | Brand id for the product, if not provided will default to primary brand. | [optional] |
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
| **is_listed** | **Boolean** | Whether the product is publicly visible. | [optional][default to true] |
|
|
34
36
|
| **is_free** | **Boolean** | Whether the product is free of charge. | [optional][default to false] |
|
|
35
37
|
| **addons** | [**Array<ProductCreateAddonsInner>**](ProductCreateAddonsInner.md) | Product addons configurations. | [optional] |
|
|
38
|
+
| **entitlement_ids** | **Array<String>** | Array of independent entitlement IDs to link to this product. | [optional] |
|
|
36
39
|
|
|
37
40
|
## Example
|
|
38
41
|
|
|
@@ -55,6 +58,8 @@ instance = Solifyn::ProductUpdate.new(
|
|
|
55
58
|
has_discord_access: false,
|
|
56
59
|
discord_guild_id: 123456789012345678,
|
|
57
60
|
discord_role_id: 876543210987654321,
|
|
61
|
+
has_framer_access: false,
|
|
62
|
+
framer_template_id: fmt_8Z1aB2cD3eF4gH5iJ6kL7m,
|
|
58
63
|
is_tax_inclusive: false,
|
|
59
64
|
activation_limit: null,
|
|
60
65
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|
|
@@ -68,7 +73,8 @@ instance = Solifyn::ProductUpdate.new(
|
|
|
68
73
|
stock: 100,
|
|
69
74
|
is_listed: true,
|
|
70
75
|
is_free: false,
|
|
71
|
-
addons: null
|
|
76
|
+
addons: null,
|
|
77
|
+
entitlement_ids: null
|
|
72
78
|
)
|
|
73
79
|
```
|
|
74
80
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Solifyn::UpdateEntitlementDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | The user-friendly name of the entitlement | [optional] |
|
|
8
|
+
| **type** | **String** | The type of access to grant | [optional] |
|
|
9
|
+
| **github_repo** | **String** | The GitHub repository (e.g., owner/repo) | [optional] |
|
|
10
|
+
| **github_permission** | **String** | The GitHub repository permission level | [optional][default to 'pull'] |
|
|
11
|
+
| **discord_guild_id** | **String** | The Discord Guild/Server ID | [optional] |
|
|
12
|
+
| **discord_role_id** | **String** | The Discord Role ID to assign | [optional] |
|
|
13
|
+
| **framer_template_id** | **String** | The associated Framer Template ID | [optional] |
|
|
14
|
+
| **license_key** | **String** | The static License Key (if not dynamically generated) | [optional] |
|
|
15
|
+
| **activation_limit** | **Float** | The maximum activation limit for licenses | [optional] |
|
|
16
|
+
| **activation_message** | **String** | A message shown to the user upon license activation | [optional] |
|
|
17
|
+
| **expiry_hours** | **Float** | The number of hours until the entitlement expires | [optional] |
|
|
18
|
+
| **digital_link** | **String** | The digital download URL or redirect link | [optional] |
|
|
19
|
+
| **instructions** | **String** | Custom setup instructions for the user | [optional] |
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'solifyn'
|
|
25
|
+
|
|
26
|
+
instance = Solifyn::UpdateEntitlementDto.new(
|
|
27
|
+
name: Premium GitHub Access,
|
|
28
|
+
type: GITHUB,
|
|
29
|
+
github_repo: solifyn/premium-repo,
|
|
30
|
+
github_permission: pull,
|
|
31
|
+
discord_guild_id: 123456789012345678,
|
|
32
|
+
discord_role_id: 876543210987654321,
|
|
33
|
+
framer_template_id: framer_tmpl_123,
|
|
34
|
+
license_key: whsec_license_key_123,
|
|
35
|
+
activation_limit: 3,
|
|
36
|
+
activation_message: Thank you for activating your software license!,
|
|
37
|
+
expiry_hours: 720,
|
|
38
|
+
digital_link: https://downloads.solifyn.com/file.zip,
|
|
39
|
+
instructions: Clone the repository and run npm install.
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Solifyn::UpdateFramerTemplateDto
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | The name of the Framer template. | [optional] |
|
|
8
|
+
| **remix_link** | **String** | The public Framer remix link. | [optional] |
|
|
9
|
+
| **description** | **String** | A brief description of the template. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'solifyn'
|
|
15
|
+
|
|
16
|
+
instance = Solifyn::UpdateFramerTemplateDto.new(
|
|
17
|
+
name: Portfolio Template,
|
|
18
|
+
remix_link: https://framer.com/projects/xyz,
|
|
19
|
+
description: Premium dark-mode portfolio.
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -86,6 +86,8 @@ module Solifyn
|
|
|
86
86
|
# Retrieve all GitHub repository entitlement grants for the active business.
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @option opts [String] :status Filter by status (PENDING, DELIVERED, FAILED, REVOKED)
|
|
89
|
+
# @option opts [String] :entitlement_id Filter by entitlement config ID
|
|
90
|
+
# @option opts [String] :product_id Filter by product ID
|
|
89
91
|
# @return [Array<EntitlementGrantResponseDto>]
|
|
90
92
|
def entitlement_grants_list(opts = {})
|
|
91
93
|
data, _status_code, _headers = entitlement_grants_list_with_http_info(opts)
|
|
@@ -96,6 +98,8 @@ module Solifyn
|
|
|
96
98
|
# Retrieve all GitHub repository entitlement grants for the active business.
|
|
97
99
|
# @param [Hash] opts the optional parameters
|
|
98
100
|
# @option opts [String] :status Filter by status (PENDING, DELIVERED, FAILED, REVOKED)
|
|
101
|
+
# @option opts [String] :entitlement_id Filter by entitlement config ID
|
|
102
|
+
# @option opts [String] :product_id Filter by product ID
|
|
99
103
|
# @return [Array<(Array<EntitlementGrantResponseDto>, Integer, Hash)>] Array<EntitlementGrantResponseDto> data, response status code and response headers
|
|
100
104
|
def entitlement_grants_list_with_http_info(opts = {})
|
|
101
105
|
if @api_client.config.debugging
|
|
@@ -107,6 +111,8 @@ module Solifyn
|
|
|
107
111
|
# query parameters
|
|
108
112
|
query_params = opts[:query_params] || {}
|
|
109
113
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
114
|
+
query_params[:'entitlementId'] = opts[:'entitlement_id'] if !opts[:'entitlement_id'].nil?
|
|
115
|
+
query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
|
110
116
|
|
|
111
117
|
# header parameters
|
|
112
118
|
header_params = opts[:header_params] || {}
|