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,235 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Solifyn
|
|
17
|
+
class UpdateFramerTemplateDto
|
|
18
|
+
# The name of the Framer template.
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# The public Framer remix link.
|
|
22
|
+
attr_accessor :remix_link
|
|
23
|
+
|
|
24
|
+
# A brief description of the template.
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'name' => :'name',
|
|
31
|
+
:'remix_link' => :'remixLink',
|
|
32
|
+
:'description' => :'description'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'name' => :'String',
|
|
45
|
+
:'remix_link' => :'String',
|
|
46
|
+
:'description' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::UpdateFramerTemplateDto` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::UpdateFramerTemplateDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'name')
|
|
72
|
+
self.name = attributes[:'name']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'remix_link')
|
|
76
|
+
self.remix_link = attributes[:'remix_link']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'description')
|
|
80
|
+
self.description = attributes[:'description']
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
88
|
+
invalid_properties = Array.new
|
|
89
|
+
invalid_properties
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Check to see if the all the properties in the model are valid
|
|
93
|
+
# @return true if the model is valid
|
|
94
|
+
def valid?
|
|
95
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
96
|
+
true
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Checks equality by comparing each attribute.
|
|
100
|
+
# @param [Object] Object to be compared
|
|
101
|
+
def ==(o)
|
|
102
|
+
return true if self.equal?(o)
|
|
103
|
+
self.class == o.class &&
|
|
104
|
+
name == o.name &&
|
|
105
|
+
remix_link == o.remix_link &&
|
|
106
|
+
description == o.description
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @see the `==` method
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def eql?(o)
|
|
112
|
+
self == o
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Calculates hash code according to all attributes.
|
|
116
|
+
# @return [Integer] Hash code
|
|
117
|
+
def hash
|
|
118
|
+
[name, remix_link, description].hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Builds the object from hash
|
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
+
# @return [Object] Returns the model itself
|
|
124
|
+
def self.build_from_hash(attributes)
|
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
|
126
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
127
|
+
transformed_hash = {}
|
|
128
|
+
openapi_types.each_pair do |key, type|
|
|
129
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
130
|
+
transformed_hash["#{key}"] = nil
|
|
131
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
132
|
+
# check to ensure the input is an array given that the attribute
|
|
133
|
+
# is documented as an array but the input is not
|
|
134
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
135
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
136
|
+
end
|
|
137
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
138
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
new(transformed_hash)
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Deserializes the data based on type
|
|
145
|
+
# @param string type Data type
|
|
146
|
+
# @param string value Value to be deserialized
|
|
147
|
+
# @return [Object] Deserialized data
|
|
148
|
+
def self._deserialize(type, value)
|
|
149
|
+
case type.to_sym
|
|
150
|
+
when :Time
|
|
151
|
+
Time.parse(value)
|
|
152
|
+
when :Date
|
|
153
|
+
Date.parse(value)
|
|
154
|
+
when :String
|
|
155
|
+
value.to_s
|
|
156
|
+
when :Integer
|
|
157
|
+
value.to_i
|
|
158
|
+
when :Float
|
|
159
|
+
value.to_f
|
|
160
|
+
when :Boolean
|
|
161
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
162
|
+
true
|
|
163
|
+
else
|
|
164
|
+
false
|
|
165
|
+
end
|
|
166
|
+
when :Object
|
|
167
|
+
# generic object (usually a Hash), return directly
|
|
168
|
+
value
|
|
169
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
170
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
171
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
172
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
173
|
+
k_type = Regexp.last_match[:k_type]
|
|
174
|
+
v_type = Regexp.last_match[:v_type]
|
|
175
|
+
{}.tap do |hash|
|
|
176
|
+
value.each do |k, v|
|
|
177
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
else # model
|
|
181
|
+
# models (e.g. Pet) or oneOf
|
|
182
|
+
klass = Solifyn.const_get(type)
|
|
183
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Returns the string representation of the object
|
|
188
|
+
# @return [String] String presentation of the object
|
|
189
|
+
def to_s
|
|
190
|
+
to_hash.to_s
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
|
195
|
+
def to_body
|
|
196
|
+
to_hash
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the object in the form of hash
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_hash
|
|
202
|
+
hash = {}
|
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
204
|
+
value = self.send(attr)
|
|
205
|
+
if value.nil?
|
|
206
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
207
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
hash[param] = _to_hash(value)
|
|
211
|
+
end
|
|
212
|
+
hash
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Outputs non-array value in the form of hash
|
|
216
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
217
|
+
# @param [Object] value Any valid value
|
|
218
|
+
# @return [Hash] Returns the value in the form of hash
|
|
219
|
+
def _to_hash(value)
|
|
220
|
+
if value.is_a?(Array)
|
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
|
222
|
+
elsif value.is_a?(Hash)
|
|
223
|
+
{}.tap do |hash|
|
|
224
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
225
|
+
end
|
|
226
|
+
elsif value.respond_to? :to_hash
|
|
227
|
+
value.to_hash
|
|
228
|
+
else
|
|
229
|
+
value
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
data/lib/solifyn/version.rb
CHANGED
data/lib/solifyn.rb
CHANGED
|
@@ -46,6 +46,8 @@ require 'solifyn/models/create_checkout_link_dto'
|
|
|
46
46
|
require 'solifyn/models/create_collection_checkout_dto'
|
|
47
47
|
require 'solifyn/models/create_collection_dto'
|
|
48
48
|
require 'solifyn/models/create_customer_dto'
|
|
49
|
+
require 'solifyn/models/create_entitlement_dto'
|
|
50
|
+
require 'solifyn/models/create_framer_template_dto'
|
|
49
51
|
require 'solifyn/models/create_meter_dto'
|
|
50
52
|
require 'solifyn/models/create_setup_checkout_dto'
|
|
51
53
|
require 'solifyn/models/create_webhook_endpoint_dto'
|
|
@@ -67,7 +69,9 @@ require 'solifyn/models/dispute_evidence_update'
|
|
|
67
69
|
require 'solifyn/models/dispute_file_upload'
|
|
68
70
|
require 'solifyn/models/dispute_list'
|
|
69
71
|
require 'solifyn/models/dispute_list_meta_dto'
|
|
72
|
+
require 'solifyn/models/entitlement_detail_response_dto'
|
|
70
73
|
require 'solifyn/models/entitlement_grant_response_dto'
|
|
74
|
+
require 'solifyn/models/framer_template_response_dto'
|
|
71
75
|
require 'solifyn/models/github_repos_response_dto'
|
|
72
76
|
require 'solifyn/models/instance'
|
|
73
77
|
require 'solifyn/models/invoice'
|
|
@@ -81,6 +85,7 @@ require 'solifyn/models/licenses_deactivate_request'
|
|
|
81
85
|
require 'solifyn/models/licenses_update_instance_post_request'
|
|
82
86
|
require 'solifyn/models/licenses_update_request'
|
|
83
87
|
require 'solifyn/models/licenses_verify_request'
|
|
88
|
+
require 'solifyn/models/linked_product_dto'
|
|
84
89
|
require 'solifyn/models/meter_detail_response_dto'
|
|
85
90
|
require 'solifyn/models/meter_events_response_dto'
|
|
86
91
|
require 'solifyn/models/meter_ingest_event_dto'
|
|
@@ -141,6 +146,8 @@ require 'solifyn/models/update_checkout_link_dto'
|
|
|
141
146
|
require 'solifyn/models/update_collection_dto'
|
|
142
147
|
require 'solifyn/models/update_collection_product_dto'
|
|
143
148
|
require 'solifyn/models/update_customer_dto'
|
|
149
|
+
require 'solifyn/models/update_entitlement_dto'
|
|
150
|
+
require 'solifyn/models/update_framer_template_dto'
|
|
144
151
|
require 'solifyn/models/update_instance_dto'
|
|
145
152
|
require 'solifyn/models/update_meter_dto'
|
|
146
153
|
require 'solifyn/models/update_webhook_endpoint_dto'
|
|
@@ -166,6 +173,8 @@ require 'solifyn/api/discord_integration_api'
|
|
|
166
173
|
require 'solifyn/api/discounts_api'
|
|
167
174
|
require 'solifyn/api/disputes_api'
|
|
168
175
|
require 'solifyn/api/entitlement_grants_api'
|
|
176
|
+
require 'solifyn/api/entitlements_api'
|
|
177
|
+
require 'solifyn/api/framer_integration_api'
|
|
169
178
|
require 'solifyn/api/git_hub_integration_api'
|
|
170
179
|
require 'solifyn/api/license_api'
|
|
171
180
|
require 'solifyn/api/license_keys_api'
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Solifyn::EntitlementsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'EntitlementsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::EntitlementsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of EntitlementsApi' do
|
|
30
|
+
it 'should create an instance of EntitlementsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::EntitlementsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for entitlements_create
|
|
36
|
+
# Create Entitlement
|
|
37
|
+
# Create a new independent access entitlement.
|
|
38
|
+
# @param create_entitlement_dto
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [EntitlementDetailResponseDto]
|
|
41
|
+
describe 'entitlements_create test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for entitlements_delete
|
|
48
|
+
# Delete Entitlement
|
|
49
|
+
# Delete an independent entitlement and unlink all mapped products.
|
|
50
|
+
# @param id The unique entitlement ID.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [EntitlementDetailResponseDto]
|
|
53
|
+
describe 'entitlements_delete test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for entitlements_get
|
|
60
|
+
# Retrieve Entitlement
|
|
61
|
+
# Retrieve a specific entitlement definition by ID.
|
|
62
|
+
# @param id The unique entitlement ID.
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [EntitlementDetailResponseDto]
|
|
65
|
+
describe 'entitlements_get test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for entitlements_list
|
|
72
|
+
# List Entitlements
|
|
73
|
+
# List all independent entitlements for the active business.
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [Array<EntitlementDetailResponseDto>]
|
|
76
|
+
describe 'entitlements_list test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for entitlements_update
|
|
83
|
+
# Update Entitlement
|
|
84
|
+
# Update details of an existing independent entitlement.
|
|
85
|
+
# @param id The unique entitlement ID.
|
|
86
|
+
# @param update_entitlement_dto
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [EntitlementDetailResponseDto]
|
|
89
|
+
describe 'entitlements_update test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Solifyn::FramerIntegrationApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'FramerIntegrationApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::FramerIntegrationApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of FramerIntegrationApi' do
|
|
30
|
+
it 'should create an instance of FramerIntegrationApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::FramerIntegrationApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for framer_create_template
|
|
36
|
+
# Create Framer Template
|
|
37
|
+
# Registers a new Framer template with its public remix link for the active business.
|
|
38
|
+
# @param create_framer_template_dto
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [FramerTemplateResponseDto]
|
|
41
|
+
describe 'framer_create_template test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for framer_delete_template
|
|
48
|
+
# Delete Framer Template
|
|
49
|
+
# Deletes a registered Framer template for the active business.
|
|
50
|
+
# @param id The Framer template ID
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [nil]
|
|
53
|
+
describe 'framer_delete_template test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for framer_get_template
|
|
60
|
+
# Retrieve Framer Template
|
|
61
|
+
# Retrieves details of a specific registered Framer template.
|
|
62
|
+
# @param id The Framer template ID
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [FramerTemplateResponseDto]
|
|
65
|
+
describe 'framer_get_template test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for framer_list_templates
|
|
72
|
+
# List Framer Templates
|
|
73
|
+
# Retrieves all registered Framer templates for the active business.
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [Array<FramerTemplateResponseDto>]
|
|
76
|
+
describe 'framer_list_templates test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for framer_update_template
|
|
83
|
+
# Update Framer Template
|
|
84
|
+
# Updates a registered Framer template for the active business.
|
|
85
|
+
# @param id The Framer template ID
|
|
86
|
+
# @param update_framer_template_dto
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [FramerTemplateResponseDto]
|
|
89
|
+
describe 'framer_update_template test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Solifyn::CreateEntitlementDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Solifyn::CreateEntitlementDto do
|
|
21
|
+
let(:instance) { Solifyn::CreateEntitlementDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateEntitlementDto' do
|
|
24
|
+
it 'should create an instance of CreateEntitlementDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Solifyn::CreateEntitlementDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "type"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["GITHUB", "DISCORD", "FRAMER", "LICENSE", "DIGITAL"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.type = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "github_repo"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "github_permission"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "discord_guild_id"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "discord_role_id"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "framer_template_id"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "license_key"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
describe 'test attribute "activation_limit"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
describe 'test attribute "activation_message"' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "expiry_hours"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
describe 'test attribute "digital_link"' do
|
|
101
|
+
it 'should work' do
|
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
describe 'test attribute "instructions"' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Solifyn::CreateFramerTemplateDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Solifyn::CreateFramerTemplateDto do
|
|
21
|
+
let(:instance) { Solifyn::CreateFramerTemplateDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateFramerTemplateDto' do
|
|
24
|
+
it 'should create an instance of CreateFramerTemplateDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Solifyn::CreateFramerTemplateDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "remix_link"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "description"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|