solifyn 1.0.0 → 1.0.5
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 +20 -7
- data/docs/BalanceApi.md +1 -1
- data/docs/CheckoutApi.md +1 -1
- data/docs/CheckoutLinksApi.md +1 -1
- data/docs/CheckoutSessionDetailsDto.md +3 -1
- data/docs/CollectionProductDto.md +12 -0
- data/docs/CollectionsApi.md +1 -1
- data/docs/CustomersApi.md +1 -1
- data/docs/DefaultApi.md +285 -1
- data/docs/DeveloperApi.md +1 -1
- data/docs/DigitalFileApi.md +1 -1
- data/docs/DiscordIntegrationApi.md +135 -0
- data/docs/DiscordRolesResponseDto.md +24 -0
- data/docs/DiscountsApi.md +1 -1
- data/docs/DisputesApi.md +1 -1
- data/docs/EntitlementGrantResponseDto.md +54 -0
- data/docs/EntitlementGrantsApi.md +289 -0
- data/docs/GitHubIntegrationApi.md +145 -0
- data/docs/GithubReposResponseDto.md +22 -0
- data/docs/LicenseApi.md +1 -1
- data/docs/LicenseKeysApi.md +1 -1
- data/docs/LicenseKeysClientApi.md +1 -1
- data/docs/MetersApi.md +1 -1
- data/docs/OrdersApi.md +1 -1
- data/docs/Product.md +12 -0
- data/docs/ProductAddOnsApi.md +1 -1
- data/docs/ProductCreate.md +12 -0
- data/docs/ProductUpdate.md +12 -0
- data/docs/ProductsApi.md +1 -1
- data/docs/RefundRequestsApi.md +1 -1
- data/docs/RefundsChargebacksApi.md +1 -1
- data/docs/SubscriptionsApi.md +1 -1
- data/docs/SyncLoginDto.md +18 -0
- data/docs/WebhookApi.md +1 -1
- data/docs/WebhookEndpointApi.md +55 -10
- data/docs/WebhookEntitlementGrantPayload.md +44 -0
- data/git_push.sh +2 -2
- data/lib/solifyn/api/default_api.rb +248 -0
- data/lib/solifyn/api/{partner_api.rb → discord_integration_api.rb} +32 -19
- data/lib/solifyn/api/entitlement_grants_api.rb +271 -0
- data/lib/solifyn/api/git_hub_integration_api.rb +137 -0
- data/lib/solifyn/api/webhook_endpoint_api.rb +9 -9
- data/lib/solifyn/configuration.rb +4 -4
- data/lib/solifyn/models/checkout_session_details_dto.rb +16 -4
- data/lib/solifyn/models/collection_product_dto.rb +115 -1
- data/lib/solifyn/models/{payout_method.rb → discord_roles_response_dto.rb} +41 -34
- data/lib/solifyn/models/{withdrawal.rb → entitlement_grant_response_dto.rb} +149 -109
- data/lib/solifyn/models/{payout_account.rb → github_repos_response_dto.rb} +31 -24
- data/lib/solifyn/models/product.rb +115 -1
- data/lib/solifyn/models/product_create.rb +77 -1
- data/lib/solifyn/models/product_update.rb +77 -1
- data/lib/solifyn/models/{payout_method_list.rb → sync_login_dto.rb} +15 -17
- data/lib/solifyn/models/{payout_verification.rb → webhook_entitlement_grant_payload.rb} +118 -41
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +8 -0
- data/spec/api/checkout_api_spec.rb +12 -0
- data/spec/api/default_api_spec.rb +59 -11
- data/spec/api/developer_api_spec.rb +52 -29
- data/spec/api/{partner_api_spec.rb → discord_integration_api_spec.rb} +16 -11
- data/spec/api/entitlement_grants_api_spec.rb +83 -0
- data/spec/api/git_hub_integration_api_spec.rb +58 -0
- data/spec/models/checkout_session_details_dto_spec.rb +6 -0
- data/spec/models/collection_product_dto_spec.rb +28 -0
- data/spec/models/{payout_method_spec.rb → discord_roles_response_dto_spec.rb} +9 -9
- data/spec/models/{withdrawal_spec.rb → entitlement_grant_response_dto_spec.rb} +18 -18
- data/spec/models/{payout_account_spec.rb → github_repos_response_dto_spec.rb} +8 -8
- data/spec/models/order_spec.rb +6 -0
- data/spec/models/product_create_spec.rb +28 -0
- data/spec/models/product_spec.rb +28 -0
- data/spec/models/product_update_spec.rb +28 -0
- data/spec/models/{business_create_spec.rb → sync_login_dto_spec.rb} +7 -7
- data/spec/models/{business_spec.rb → webhook_entitlement_grant_payload_spec.rb} +17 -53
- metadata +162 -254
- data/docs/AffiliateApi.md +0 -845
- data/docs/BillingApi.md +0 -68
- data/docs/BrandsApi.md +0 -286
- data/docs/Business.md +0 -56
- data/docs/BusinessCreate.md +0 -18
- data/docs/BusinessFullCreate.md +0 -26
- data/docs/BusinessFullCreateResponse.md +0 -20
- data/docs/BusinessesApi.md +0 -350
- data/docs/ChatApi.md +0 -246
- data/docs/CommunityApi.md +0 -497
- data/docs/PartnerApi.md +0 -125
- data/docs/PayoutAccessToken.md +0 -20
- data/docs/PayoutAccount.md +0 -22
- data/docs/PayoutAccountLink.md +0 -20
- data/docs/PayoutMethod.md +0 -24
- data/docs/PayoutMethodList.md +0 -18
- data/docs/PayoutVerification.md +0 -24
- data/docs/PayoutVerificationList.md +0 -18
- data/docs/PayoutsApi.md +0 -579
- data/docs/TicketApi.md +0 -318
- data/docs/UserPage.md +0 -26
- data/docs/UserProfileThemesApi.md +0 -345
- data/docs/UserSettings.md +0 -34
- data/docs/UserSettingsUpdate.md +0 -76
- data/docs/UserStats.md +0 -20
- data/docs/UserTheme.md +0 -26
- data/docs/UserThemeUpdate.md +0 -22
- data/docs/WhopApiKeysRotation.md +0 -18
- data/docs/Withdrawal.md +0 -46
- data/docs/WithdrawalCreate.md +0 -22
- data/docs/WithdrawalList.md +0 -20
- data/lib/solifyn/api/affiliate_api.rb +0 -760
- data/lib/solifyn/api/billing_api.rb +0 -77
- data/lib/solifyn/api/brands_api.rb +0 -284
- data/lib/solifyn/api/businesses_api.rb +0 -338
- data/lib/solifyn/api/chat_api.rb +0 -232
- data/lib/solifyn/api/community_api.rb +0 -466
- data/lib/solifyn/api/payouts_api.rb +0 -520
- data/lib/solifyn/api/ticket_api.rb +0 -328
- data/lib/solifyn/api/user_profile_themes_api.rb +0 -313
- data/lib/solifyn/models/business.rb +0 -482
- data/lib/solifyn/models/business_create.rb +0 -241
- data/lib/solifyn/models/business_full_create.rb +0 -288
- data/lib/solifyn/models/business_full_create_response.rb +0 -239
- data/lib/solifyn/models/payout_access_token.rb +0 -239
- data/lib/solifyn/models/payout_account_link.rb +0 -239
- data/lib/solifyn/models/payout_verification_list.rb +0 -224
- data/lib/solifyn/models/user_page.rb +0 -290
- data/lib/solifyn/models/user_settings.rb +0 -337
- data/lib/solifyn/models/user_settings_update.rb +0 -505
- data/lib/solifyn/models/user_stats.rb +0 -241
- data/lib/solifyn/models/user_theme.rb +0 -276
- data/lib/solifyn/models/user_theme_update.rb +0 -235
- data/lib/solifyn/models/whop_api_keys_rotation.rb +0 -222
- data/lib/solifyn/models/withdrawal_create.rb +0 -249
- data/lib/solifyn/models/withdrawal_list.rb +0 -241
- data/spec/api/affiliate_api_spec.rb +0 -165
- data/spec/api/billing_api_spec.rb +0 -46
- data/spec/api/brands_api_spec.rb +0 -83
- data/spec/api/businesses_api_spec.rb +0 -93
- data/spec/api/chat_api_spec.rb +0 -72
- data/spec/api/community_api_spec.rb +0 -113
- data/spec/api/payouts_api_spec.rb +0 -133
- data/spec/api/ticket_api_spec.rb +0 -86
- data/spec/api/user_profile_themes_api_spec.rb +0 -91
- data/spec/models/business_full_create_response_spec.rb +0 -42
- data/spec/models/business_full_create_spec.rb +0 -60
- data/spec/models/payout_access_token_spec.rb +0 -42
- data/spec/models/payout_account_link_spec.rb +0 -42
- data/spec/models/payout_method_list_spec.rb +0 -36
- data/spec/models/payout_verification_list_spec.rb +0 -36
- data/spec/models/payout_verification_spec.rb +0 -54
- data/spec/models/user_page_spec.rb +0 -60
- data/spec/models/user_settings_spec.rb +0 -84
- data/spec/models/user_settings_update_spec.rb +0 -210
- data/spec/models/user_stats_spec.rb +0 -42
- data/spec/models/user_theme_spec.rb +0 -60
- data/spec/models/user_theme_update_spec.rb +0 -48
- data/spec/models/whop_api_keys_rotation_spec.rb +0 -36
- data/spec/models/withdrawal_create_spec.rb +0 -48
- data/spec/models/withdrawal_list_spec.rb +0 -42
|
@@ -1,241 +0,0 @@
|
|
|
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 WithdrawalList
|
|
18
|
-
# List of withdrawals
|
|
19
|
-
attr_accessor :items
|
|
20
|
-
|
|
21
|
-
# Total count of withdrawals matching filters
|
|
22
|
-
attr_accessor :total_count
|
|
23
|
-
|
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
-
def self.attribute_map
|
|
26
|
-
{
|
|
27
|
-
:'items' => :'items',
|
|
28
|
-
:'total_count' => :'total_count'
|
|
29
|
-
}
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# Returns all the JSON keys this model knows about
|
|
33
|
-
def self.acceptable_attributes
|
|
34
|
-
attribute_map.values
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# Attribute type mapping.
|
|
38
|
-
def self.openapi_types
|
|
39
|
-
{
|
|
40
|
-
:'items' => :'Array<Withdrawal>',
|
|
41
|
-
:'total_count' => :'Float'
|
|
42
|
-
}
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# List of attributes with nullable: true
|
|
46
|
-
def self.openapi_nullable
|
|
47
|
-
Set.new([
|
|
48
|
-
])
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Initializes the object
|
|
52
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
-
def initialize(attributes = {})
|
|
54
|
-
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::WithdrawalList` initialize method"
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::WithdrawalList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
|
-
end
|
|
63
|
-
h[k.to_sym] = v
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if attributes.key?(:'items')
|
|
67
|
-
if (value = attributes[:'items']).is_a?(Array)
|
|
68
|
-
self.items = value
|
|
69
|
-
end
|
|
70
|
-
else
|
|
71
|
-
self.items = nil
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
if attributes.key?(:'total_count')
|
|
75
|
-
self.total_count = attributes[:'total_count']
|
|
76
|
-
else
|
|
77
|
-
self.total_count = nil
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
-
# @return Array for valid properties with the reasons
|
|
83
|
-
def list_invalid_properties
|
|
84
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
-
invalid_properties = Array.new
|
|
86
|
-
if @items.nil?
|
|
87
|
-
invalid_properties.push('invalid value for "items", items cannot be nil.')
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if @total_count.nil?
|
|
91
|
-
invalid_properties.push('invalid value for "total_count", total_count cannot be nil.')
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
invalid_properties
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# Check to see if the all the properties in the model are valid
|
|
98
|
-
# @return true if the model is valid
|
|
99
|
-
def valid?
|
|
100
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
101
|
-
return false if @items.nil?
|
|
102
|
-
return false if @total_count.nil?
|
|
103
|
-
true
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Checks equality by comparing each attribute.
|
|
107
|
-
# @param [Object] Object to be compared
|
|
108
|
-
def ==(o)
|
|
109
|
-
return true if self.equal?(o)
|
|
110
|
-
self.class == o.class &&
|
|
111
|
-
items == o.items &&
|
|
112
|
-
total_count == o.total_count
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
# @see the `==` method
|
|
116
|
-
# @param [Object] Object to be compared
|
|
117
|
-
def eql?(o)
|
|
118
|
-
self == o
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# Calculates hash code according to all attributes.
|
|
122
|
-
# @return [Integer] Hash code
|
|
123
|
-
def hash
|
|
124
|
-
[items, total_count].hash
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# Builds the object from hash
|
|
128
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
-
# @return [Object] Returns the model itself
|
|
130
|
-
def self.build_from_hash(attributes)
|
|
131
|
-
return nil unless attributes.is_a?(Hash)
|
|
132
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
-
transformed_hash = {}
|
|
134
|
-
openapi_types.each_pair do |key, type|
|
|
135
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
136
|
-
transformed_hash["#{key}"] = nil
|
|
137
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
-
# check to ensure the input is an array given that the attribute
|
|
139
|
-
# is documented as an array but the input is not
|
|
140
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
141
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
142
|
-
end
|
|
143
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
144
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
145
|
-
end
|
|
146
|
-
end
|
|
147
|
-
new(transformed_hash)
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Deserializes the data based on type
|
|
151
|
-
# @param string type Data type
|
|
152
|
-
# @param string value Value to be deserialized
|
|
153
|
-
# @return [Object] Deserialized data
|
|
154
|
-
def self._deserialize(type, value)
|
|
155
|
-
case type.to_sym
|
|
156
|
-
when :Time
|
|
157
|
-
Time.parse(value)
|
|
158
|
-
when :Date
|
|
159
|
-
Date.parse(value)
|
|
160
|
-
when :String
|
|
161
|
-
value.to_s
|
|
162
|
-
when :Integer
|
|
163
|
-
value.to_i
|
|
164
|
-
when :Float
|
|
165
|
-
value.to_f
|
|
166
|
-
when :Boolean
|
|
167
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
|
-
true
|
|
169
|
-
else
|
|
170
|
-
false
|
|
171
|
-
end
|
|
172
|
-
when :Object
|
|
173
|
-
# generic object (usually a Hash), return directly
|
|
174
|
-
value
|
|
175
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
177
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
|
-
k_type = Regexp.last_match[:k_type]
|
|
180
|
-
v_type = Regexp.last_match[:v_type]
|
|
181
|
-
{}.tap do |hash|
|
|
182
|
-
value.each do |k, v|
|
|
183
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
184
|
-
end
|
|
185
|
-
end
|
|
186
|
-
else # model
|
|
187
|
-
# models (e.g. Pet) or oneOf
|
|
188
|
-
klass = Solifyn.const_get(type)
|
|
189
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
# Returns the string representation of the object
|
|
194
|
-
# @return [String] String presentation of the object
|
|
195
|
-
def to_s
|
|
196
|
-
to_hash.to_s
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
-
# @return [Hash] Returns the object in the form of hash
|
|
201
|
-
def to_body
|
|
202
|
-
to_hash
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# Returns the object in the form of hash
|
|
206
|
-
# @return [Hash] Returns the object in the form of hash
|
|
207
|
-
def to_hash
|
|
208
|
-
hash = {}
|
|
209
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
-
value = self.send(attr)
|
|
211
|
-
if value.nil?
|
|
212
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
213
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
hash[param] = _to_hash(value)
|
|
217
|
-
end
|
|
218
|
-
hash
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# Outputs non-array value in the form of hash
|
|
222
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
223
|
-
# @param [Object] value Any valid value
|
|
224
|
-
# @return [Hash] Returns the value in the form of hash
|
|
225
|
-
def _to_hash(value)
|
|
226
|
-
if value.is_a?(Array)
|
|
227
|
-
value.compact.map { |v| _to_hash(v) }
|
|
228
|
-
elsif value.is_a?(Hash)
|
|
229
|
-
{}.tap do |hash|
|
|
230
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
231
|
-
end
|
|
232
|
-
elsif value.respond_to? :to_hash
|
|
233
|
-
value.to_hash
|
|
234
|
-
else
|
|
235
|
-
value
|
|
236
|
-
end
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
end
|
|
240
|
-
|
|
241
|
-
end
|
|
@@ -1,165 +0,0 @@
|
|
|
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::AffiliateApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'AffiliateApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = Solifyn::AffiliateApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of AffiliateApi' do
|
|
30
|
-
it 'should create an instance of AffiliateApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::AffiliateApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for affiliate_controller_approve_connection
|
|
36
|
-
# @param id
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [nil]
|
|
39
|
-
describe 'affiliate_controller_approve_connection test' do
|
|
40
|
-
it 'should work' do
|
|
41
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# unit tests for affiliate_controller_archive_connection
|
|
46
|
-
# @param id
|
|
47
|
-
# @param [Hash] opts the optional parameters
|
|
48
|
-
# @return [nil]
|
|
49
|
-
describe 'affiliate_controller_archive_connection test' do
|
|
50
|
-
it 'should work' do
|
|
51
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# unit tests for affiliate_controller_delete_override
|
|
56
|
-
# @param id
|
|
57
|
-
# @param [Hash] opts the optional parameters
|
|
58
|
-
# @return [nil]
|
|
59
|
-
describe 'affiliate_controller_delete_override test' do
|
|
60
|
-
it 'should work' do
|
|
61
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# unit tests for affiliate_controller_get_earnings_connections
|
|
66
|
-
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @return [nil]
|
|
68
|
-
describe 'affiliate_controller_get_earnings_connections test' do
|
|
69
|
-
it 'should work' do
|
|
70
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
# unit tests for affiliate_controller_get_earnings_ledger
|
|
75
|
-
# @param [Hash] opts the optional parameters
|
|
76
|
-
# @return [nil]
|
|
77
|
-
describe 'affiliate_controller_get_earnings_ledger test' do
|
|
78
|
-
it 'should work' do
|
|
79
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# unit tests for affiliate_controller_get_earnings_stats
|
|
84
|
-
# @param [Hash] opts the optional parameters
|
|
85
|
-
# @return [nil]
|
|
86
|
-
describe 'affiliate_controller_get_earnings_stats test' do
|
|
87
|
-
it 'should work' do
|
|
88
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
# unit tests for affiliate_controller_get_marketplace
|
|
93
|
-
# @param [Hash] opts the optional parameters
|
|
94
|
-
# @return [nil]
|
|
95
|
-
describe 'affiliate_controller_get_marketplace test' do
|
|
96
|
-
it 'should work' do
|
|
97
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# unit tests for affiliate_controller_get_program_connections
|
|
102
|
-
# @param [Hash] opts the optional parameters
|
|
103
|
-
# @return [nil]
|
|
104
|
-
describe 'affiliate_controller_get_program_connections test' do
|
|
105
|
-
it 'should work' do
|
|
106
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
# unit tests for affiliate_controller_get_program_ledger
|
|
111
|
-
# @param [Hash] opts the optional parameters
|
|
112
|
-
# @return [nil]
|
|
113
|
-
describe 'affiliate_controller_get_program_ledger test' do
|
|
114
|
-
it 'should work' do
|
|
115
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# unit tests for affiliate_controller_get_program_settings
|
|
120
|
-
# @param [Hash] opts the optional parameters
|
|
121
|
-
# @return [nil]
|
|
122
|
-
describe 'affiliate_controller_get_program_settings test' do
|
|
123
|
-
it 'should work' do
|
|
124
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
# unit tests for affiliate_controller_join_program
|
|
129
|
-
# @param [Hash] opts the optional parameters
|
|
130
|
-
# @return [nil]
|
|
131
|
-
describe 'affiliate_controller_join_program test' do
|
|
132
|
-
it 'should work' do
|
|
133
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
# unit tests for affiliate_controller_reject_connection
|
|
138
|
-
# @param id
|
|
139
|
-
# @param [Hash] opts the optional parameters
|
|
140
|
-
# @return [nil]
|
|
141
|
-
describe 'affiliate_controller_reject_connection test' do
|
|
142
|
-
it 'should work' do
|
|
143
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# unit tests for affiliate_controller_save_override
|
|
148
|
-
# @param [Hash] opts the optional parameters
|
|
149
|
-
# @return [nil]
|
|
150
|
-
describe 'affiliate_controller_save_override test' do
|
|
151
|
-
it 'should work' do
|
|
152
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
# unit tests for affiliate_controller_save_program_settings
|
|
157
|
-
# @param [Hash] opts the optional parameters
|
|
158
|
-
# @return [nil]
|
|
159
|
-
describe 'affiliate_controller_save_program_settings test' do
|
|
160
|
-
it 'should work' do
|
|
161
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
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::BillingApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'BillingApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = Solifyn::BillingApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of BillingApi' do
|
|
30
|
-
it 'should create an instance of BillingApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::BillingApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for billing_get_plans
|
|
36
|
-
# Get Platform Plans
|
|
37
|
-
# Returns all available platform subscription plans with fees and features.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [nil]
|
|
40
|
-
describe 'billing_get_plans test' do
|
|
41
|
-
it 'should work' do
|
|
42
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
end
|
data/spec/api/brands_api_spec.rb
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
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::BrandsApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'BrandsApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = Solifyn::BrandsApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of BrandsApi' do
|
|
30
|
-
it 'should create an instance of BrandsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::BrandsApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for brands_create
|
|
36
|
-
# Create Brand
|
|
37
|
-
# Add a new brand identity under the current active business.
|
|
38
|
-
# @param brand_create
|
|
39
|
-
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [Brand]
|
|
41
|
-
describe 'brands_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 brands_get
|
|
48
|
-
# Retrieve Brand
|
|
49
|
-
# Retrieve details of a brand identity by ID.
|
|
50
|
-
# @param id The brand ID to retrieve
|
|
51
|
-
# @param [Hash] opts the optional parameters
|
|
52
|
-
# @return [Brand]
|
|
53
|
-
describe 'brands_get 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 brands_list
|
|
60
|
-
# List Brands
|
|
61
|
-
# Retrieve all brands associated with the current business context.
|
|
62
|
-
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @return [Array<Brand>]
|
|
64
|
-
describe 'brands_list test' 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
|
-
# unit tests for brands_update
|
|
71
|
-
# Update Brand
|
|
72
|
-
# Update website, logo, description, or statement descriptors of a brand.
|
|
73
|
-
# @param id The brand ID to update
|
|
74
|
-
# @param brand_update
|
|
75
|
-
# @param [Hash] opts the optional parameters
|
|
76
|
-
# @return [Brand]
|
|
77
|
-
describe 'brands_update test' do
|
|
78
|
-
it 'should work' do
|
|
79
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
end
|
|
@@ -1,93 +0,0 @@
|
|
|
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::BusinessesApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'BusinessesApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = Solifyn::BusinessesApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of BusinessesApi' do
|
|
30
|
-
it 'should create an instance of BusinessesApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::BusinessesApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for businesses_billing_history
|
|
36
|
-
# Get Platform Billing History
|
|
37
|
-
# Retrieve history of SaaS subscription payments paid by this business to the platform.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [nil]
|
|
40
|
-
describe 'businesses_billing_history test' do
|
|
41
|
-
it 'should work' do
|
|
42
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# unit tests for merchants_generate_api_keys
|
|
47
|
-
# Rotate Whop API Keys
|
|
48
|
-
# Generate and sync a new Whop Child Company API key (restricted to business owners).
|
|
49
|
-
# @param [Hash] opts the optional parameters
|
|
50
|
-
# @return [WhopApiKeysRotation]
|
|
51
|
-
describe 'merchants_generate_api_keys test' do
|
|
52
|
-
it 'should work' do
|
|
53
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# unit tests for merchants_update_page
|
|
58
|
-
# Update Page configuration
|
|
59
|
-
# Modify store page content configs, banner images, or avatar details.
|
|
60
|
-
# @param user_theme_update
|
|
61
|
-
# @param [Hash] opts the optional parameters
|
|
62
|
-
# @return [UserPage]
|
|
63
|
-
describe 'merchants_update_page test' do
|
|
64
|
-
it 'should work' do
|
|
65
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
# unit tests for merchants_update_settings
|
|
70
|
-
# Update Merchant Settings
|
|
71
|
-
# Update profile parameters, SEO, Google analytics, and email notification properties.
|
|
72
|
-
# @param user_settings_update
|
|
73
|
-
# @param [Hash] opts the optional parameters
|
|
74
|
-
# @return [UserSettings]
|
|
75
|
-
describe 'merchants_update_settings test' do
|
|
76
|
-
it 'should work' do
|
|
77
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# unit tests for merchants_update_theme
|
|
82
|
-
# Update Theme
|
|
83
|
-
# Update colors, fonts, avatar, or banner settings for the store.
|
|
84
|
-
# @param user_theme_update
|
|
85
|
-
# @param [Hash] opts the optional parameters
|
|
86
|
-
# @return [UserTheme]
|
|
87
|
-
describe 'merchants_update_theme test' do
|
|
88
|
-
it 'should work' do
|
|
89
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
end
|
data/spec/api/chat_api_spec.rb
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
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::ChatApi
|
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
-
# Please update as you see appropriate
|
|
19
|
-
describe 'ChatApi' do
|
|
20
|
-
before do
|
|
21
|
-
# run before each test
|
|
22
|
-
@api_instance = Solifyn::ChatApi.new
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
after do
|
|
26
|
-
# run after each test
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
describe 'test an instance of ChatApi' do
|
|
30
|
-
it 'should create an instance of ChatApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::ChatApi)
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# unit tests for chat_controller_get_merchant_messages
|
|
36
|
-
# @param customer_id
|
|
37
|
-
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [nil]
|
|
39
|
-
describe 'chat_controller_get_merchant_messages test' do
|
|
40
|
-
it 'should work' do
|
|
41
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# unit tests for chat_controller_get_merchant_sessions
|
|
46
|
-
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [nil]
|
|
48
|
-
describe 'chat_controller_get_merchant_sessions test' do
|
|
49
|
-
it 'should work' do
|
|
50
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# unit tests for chat_controller_send_customer_message
|
|
55
|
-
# @param [Hash] opts the optional parameters
|
|
56
|
-
# @return [nil]
|
|
57
|
-
describe 'chat_controller_send_customer_message test' do
|
|
58
|
-
it 'should work' do
|
|
59
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# unit tests for chat_controller_send_merchant_message
|
|
64
|
-
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @return [nil]
|
|
66
|
-
describe 'chat_controller_send_merchant_message test' do
|
|
67
|
-
it 'should work' do
|
|
68
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
end
|