solifyn 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/solifyn/version.rb +1 -1
  4. data/spec/api/checkout_api_spec.rb +12 -0
  5. data/spec/api/developer_api_spec.rb +52 -29
  6. data/spec/models/checkout_session_details_dto_spec.rb +6 -0
  7. data/spec/models/collection_product_dto_spec.rb +28 -0
  8. data/spec/models/order_spec.rb +6 -0
  9. data/spec/models/product_create_spec.rb +28 -0
  10. data/spec/models/product_spec.rb +28 -0
  11. data/spec/models/product_update_spec.rb +28 -0
  12. metadata +133 -262
  13. data/LICENSE +0 -202
  14. data/docs/AffiliateApi.md +0 -845
  15. data/docs/BillingApi.md +0 -68
  16. data/docs/BrandsApi.md +0 -286
  17. data/docs/Business.md +0 -56
  18. data/docs/BusinessCreate.md +0 -18
  19. data/docs/BusinessFullCreate.md +0 -26
  20. data/docs/BusinessFullCreateResponse.md +0 -20
  21. data/docs/BusinessesApi.md +0 -350
  22. data/docs/ChatApi.md +0 -246
  23. data/docs/CommunityApi.md +0 -497
  24. data/docs/DefaultApi.md +0 -1214
  25. data/docs/PartnerApi.md +0 -125
  26. data/docs/PayoutAccessToken.md +0 -20
  27. data/docs/PayoutAccount.md +0 -22
  28. data/docs/PayoutAccountLink.md +0 -20
  29. data/docs/PayoutMethod.md +0 -24
  30. data/docs/PayoutMethodList.md +0 -18
  31. data/docs/PayoutVerification.md +0 -24
  32. data/docs/PayoutVerificationList.md +0 -18
  33. data/docs/PayoutsApi.md +0 -579
  34. data/docs/TicketApi.md +0 -318
  35. data/docs/UserPage.md +0 -26
  36. data/docs/UserProfileThemesApi.md +0 -345
  37. data/docs/UserSettings.md +0 -34
  38. data/docs/UserSettingsUpdate.md +0 -76
  39. data/docs/UserStats.md +0 -20
  40. data/docs/UserTheme.md +0 -26
  41. data/docs/UserThemeUpdate.md +0 -22
  42. data/docs/WhopApiKeysRotation.md +0 -18
  43. data/docs/Withdrawal.md +0 -46
  44. data/docs/WithdrawalCreate.md +0 -22
  45. data/docs/WithdrawalList.md +0 -20
  46. data/lib/solifyn/api/affiliate_api.rb +0 -760
  47. data/lib/solifyn/api/billing_api.rb +0 -77
  48. data/lib/solifyn/api/brands_api.rb +0 -284
  49. data/lib/solifyn/api/businesses_api.rb +0 -338
  50. data/lib/solifyn/api/chat_api.rb +0 -232
  51. data/lib/solifyn/api/community_api.rb +0 -466
  52. data/lib/solifyn/api/default_api.rb +0 -1076
  53. data/lib/solifyn/api/partner_api.rb +0 -124
  54. data/lib/solifyn/api/payouts_api.rb +0 -520
  55. data/lib/solifyn/api/ticket_api.rb +0 -328
  56. data/lib/solifyn/api/user_profile_themes_api.rb +0 -313
  57. data/lib/solifyn/models/business.rb +0 -482
  58. data/lib/solifyn/models/business_create.rb +0 -241
  59. data/lib/solifyn/models/business_full_create.rb +0 -288
  60. data/lib/solifyn/models/business_full_create_response.rb +0 -239
  61. data/lib/solifyn/models/payout_access_token.rb +0 -239
  62. data/lib/solifyn/models/payout_account.rb +0 -249
  63. data/lib/solifyn/models/payout_account_link.rb +0 -239
  64. data/lib/solifyn/models/payout_method.rb +0 -266
  65. data/lib/solifyn/models/payout_method_list.rb +0 -224
  66. data/lib/solifyn/models/payout_verification.rb +0 -266
  67. data/lib/solifyn/models/payout_verification_list.rb +0 -224
  68. data/lib/solifyn/models/user_page.rb +0 -290
  69. data/lib/solifyn/models/user_settings.rb +0 -337
  70. data/lib/solifyn/models/user_settings_update.rb +0 -505
  71. data/lib/solifyn/models/user_stats.rb +0 -241
  72. data/lib/solifyn/models/user_theme.rb +0 -276
  73. data/lib/solifyn/models/user_theme_update.rb +0 -235
  74. data/lib/solifyn/models/whop_api_keys_rotation.rb +0 -222
  75. data/lib/solifyn/models/withdrawal.rb +0 -411
  76. data/lib/solifyn/models/withdrawal_create.rb +0 -249
  77. data/lib/solifyn/models/withdrawal_list.rb +0 -241
  78. data/spec/api/affiliate_api_spec.rb +0 -165
  79. data/spec/api/billing_api_spec.rb +0 -46
  80. data/spec/api/brands_api_spec.rb +0 -83
  81. data/spec/api/businesses_api_spec.rb +0 -93
  82. data/spec/api/chat_api_spec.rb +0 -72
  83. data/spec/api/community_api_spec.rb +0 -113
  84. data/spec/api/default_api_spec.rb +0 -191
  85. data/spec/api/partner_api_spec.rb +0 -53
  86. data/spec/api/payouts_api_spec.rb +0 -133
  87. data/spec/api/ticket_api_spec.rb +0 -86
  88. data/spec/api/user_profile_themes_api_spec.rb +0 -91
  89. data/spec/models/business_create_spec.rb +0 -36
  90. data/spec/models/business_full_create_response_spec.rb +0 -42
  91. data/spec/models/business_full_create_spec.rb +0 -60
  92. data/spec/models/business_spec.rb +0 -150
  93. data/spec/models/payout_access_token_spec.rb +0 -42
  94. data/spec/models/payout_account_link_spec.rb +0 -42
  95. data/spec/models/payout_account_spec.rb +0 -48
  96. data/spec/models/payout_method_list_spec.rb +0 -36
  97. data/spec/models/payout_method_spec.rb +0 -54
  98. data/spec/models/payout_verification_list_spec.rb +0 -36
  99. data/spec/models/payout_verification_spec.rb +0 -54
  100. data/spec/models/user_page_spec.rb +0 -60
  101. data/spec/models/user_settings_spec.rb +0 -84
  102. data/spec/models/user_settings_update_spec.rb +0 -210
  103. data/spec/models/user_stats_spec.rb +0 -42
  104. data/spec/models/user_theme_spec.rb +0 -60
  105. data/spec/models/user_theme_update_spec.rb +0 -48
  106. data/spec/models/whop_api_keys_rotation_spec.rb +0 -36
  107. data/spec/models/withdrawal_create_spec.rb +0 -48
  108. data/spec/models/withdrawal_list_spec.rb +0 -42
  109. data/spec/models/withdrawal_spec.rb +0 -120
@@ -1,239 +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 BusinessFullCreateResponse
18
- # Indicates if creation was successful
19
- attr_accessor :success
20
-
21
- # The newly created business ID
22
- attr_accessor :business_id
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'success' => :'success',
28
- :'business_id' => :'businessId'
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
- :'success' => :'Boolean',
41
- :'business_id' => :'String'
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::BusinessFullCreateResponse` 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::BusinessFullCreateResponse`. 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?(:'success')
67
- self.success = attributes[:'success']
68
- else
69
- self.success = nil
70
- end
71
-
72
- if attributes.key?(:'business_id')
73
- self.business_id = attributes[:'business_id']
74
- else
75
- self.business_id = nil
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
- invalid_properties = Array.new
84
- if @success.nil?
85
- invalid_properties.push('invalid value for "success", success cannot be nil.')
86
- end
87
-
88
- if @business_id.nil?
89
- invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
90
- end
91
-
92
- invalid_properties
93
- end
94
-
95
- # Check to see if the all the properties in the model are valid
96
- # @return true if the model is valid
97
- def valid?
98
- warn '[DEPRECATED] the `valid?` method is obsolete'
99
- return false if @success.nil?
100
- return false if @business_id.nil?
101
- true
102
- end
103
-
104
- # Checks equality by comparing each attribute.
105
- # @param [Object] Object to be compared
106
- def ==(o)
107
- return true if self.equal?(o)
108
- self.class == o.class &&
109
- success == o.success &&
110
- business_id == o.business_id
111
- end
112
-
113
- # @see the `==` method
114
- # @param [Object] Object to be compared
115
- def eql?(o)
116
- self == o
117
- end
118
-
119
- # Calculates hash code according to all attributes.
120
- # @return [Integer] Hash code
121
- def hash
122
- [success, business_id].hash
123
- end
124
-
125
- # Builds the object from hash
126
- # @param [Hash] attributes Model attributes in the form of hash
127
- # @return [Object] Returns the model itself
128
- def self.build_from_hash(attributes)
129
- return nil unless attributes.is_a?(Hash)
130
- attributes = attributes.transform_keys(&:to_sym)
131
- transformed_hash = {}
132
- openapi_types.each_pair do |key, type|
133
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
- transformed_hash["#{key}"] = nil
135
- elsif type =~ /\AArray<(.*)>/i
136
- # check to ensure the input is an array given that the attribute
137
- # is documented as an array but the input is not
138
- if attributes[attribute_map[key]].is_a?(Array)
139
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
- end
141
- elsif !attributes[attribute_map[key]].nil?
142
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
- end
144
- end
145
- new(transformed_hash)
146
- end
147
-
148
- # Deserializes the data based on type
149
- # @param string type Data type
150
- # @param string value Value to be deserialized
151
- # @return [Object] Deserialized data
152
- def self._deserialize(type, value)
153
- case type.to_sym
154
- when :Time
155
- Time.parse(value)
156
- when :Date
157
- Date.parse(value)
158
- when :String
159
- value.to_s
160
- when :Integer
161
- value.to_i
162
- when :Float
163
- value.to_f
164
- when :Boolean
165
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
- true
167
- else
168
- false
169
- end
170
- when :Object
171
- # generic object (usually a Hash), return directly
172
- value
173
- when /\AArray<(?<inner_type>.+)>\z/
174
- inner_type = Regexp.last_match[:inner_type]
175
- value.map { |v| _deserialize(inner_type, v) }
176
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
- k_type = Regexp.last_match[:k_type]
178
- v_type = Regexp.last_match[:v_type]
179
- {}.tap do |hash|
180
- value.each do |k, v|
181
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
- end
183
- end
184
- else # model
185
- # models (e.g. Pet) or oneOf
186
- klass = Solifyn.const_get(type)
187
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
- end
189
- end
190
-
191
- # Returns the string representation of the object
192
- # @return [String] String presentation of the object
193
- def to_s
194
- to_hash.to_s
195
- end
196
-
197
- # to_body is an alias to to_hash (backward compatibility)
198
- # @return [Hash] Returns the object in the form of hash
199
- def to_body
200
- to_hash
201
- end
202
-
203
- # Returns the object in the form of hash
204
- # @return [Hash] Returns the object in the form of hash
205
- def to_hash
206
- hash = {}
207
- self.class.attribute_map.each_pair do |attr, param|
208
- value = self.send(attr)
209
- if value.nil?
210
- is_nullable = self.class.openapi_nullable.include?(attr)
211
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
- end
213
-
214
- hash[param] = _to_hash(value)
215
- end
216
- hash
217
- end
218
-
219
- # Outputs non-array value in the form of hash
220
- # For object, use to_hash. Otherwise, just return the value
221
- # @param [Object] value Any valid value
222
- # @return [Hash] Returns the value in the form of hash
223
- def _to_hash(value)
224
- if value.is_a?(Array)
225
- value.compact.map { |v| _to_hash(v) }
226
- elsif value.is_a?(Hash)
227
- {}.tap do |hash|
228
- value.each { |k, v| hash[k] = _to_hash(v) }
229
- end
230
- elsif value.respond_to? :to_hash
231
- value.to_hash
232
- else
233
- value
234
- end
235
- end
236
-
237
- end
238
-
239
- end
@@ -1,239 +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 PayoutAccessToken
18
- # The temporary access token for embed portals
19
- attr_accessor :access_token
20
-
21
- # Expiration timestamp of the access token
22
- attr_accessor :expires_at
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'access_token' => :'access_token',
28
- :'expires_at' => :'expires_at'
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
- :'access_token' => :'String',
41
- :'expires_at' => :'Time'
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::PayoutAccessToken` 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::PayoutAccessToken`. 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?(:'access_token')
67
- self.access_token = attributes[:'access_token']
68
- else
69
- self.access_token = nil
70
- end
71
-
72
- if attributes.key?(:'expires_at')
73
- self.expires_at = attributes[:'expires_at']
74
- else
75
- self.expires_at = nil
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
- invalid_properties = Array.new
84
- if @access_token.nil?
85
- invalid_properties.push('invalid value for "access_token", access_token cannot be nil.')
86
- end
87
-
88
- if @expires_at.nil?
89
- invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
90
- end
91
-
92
- invalid_properties
93
- end
94
-
95
- # Check to see if the all the properties in the model are valid
96
- # @return true if the model is valid
97
- def valid?
98
- warn '[DEPRECATED] the `valid?` method is obsolete'
99
- return false if @access_token.nil?
100
- return false if @expires_at.nil?
101
- true
102
- end
103
-
104
- # Checks equality by comparing each attribute.
105
- # @param [Object] Object to be compared
106
- def ==(o)
107
- return true if self.equal?(o)
108
- self.class == o.class &&
109
- access_token == o.access_token &&
110
- expires_at == o.expires_at
111
- end
112
-
113
- # @see the `==` method
114
- # @param [Object] Object to be compared
115
- def eql?(o)
116
- self == o
117
- end
118
-
119
- # Calculates hash code according to all attributes.
120
- # @return [Integer] Hash code
121
- def hash
122
- [access_token, expires_at].hash
123
- end
124
-
125
- # Builds the object from hash
126
- # @param [Hash] attributes Model attributes in the form of hash
127
- # @return [Object] Returns the model itself
128
- def self.build_from_hash(attributes)
129
- return nil unless attributes.is_a?(Hash)
130
- attributes = attributes.transform_keys(&:to_sym)
131
- transformed_hash = {}
132
- openapi_types.each_pair do |key, type|
133
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
- transformed_hash["#{key}"] = nil
135
- elsif type =~ /\AArray<(.*)>/i
136
- # check to ensure the input is an array given that the attribute
137
- # is documented as an array but the input is not
138
- if attributes[attribute_map[key]].is_a?(Array)
139
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
- end
141
- elsif !attributes[attribute_map[key]].nil?
142
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
- end
144
- end
145
- new(transformed_hash)
146
- end
147
-
148
- # Deserializes the data based on type
149
- # @param string type Data type
150
- # @param string value Value to be deserialized
151
- # @return [Object] Deserialized data
152
- def self._deserialize(type, value)
153
- case type.to_sym
154
- when :Time
155
- Time.parse(value)
156
- when :Date
157
- Date.parse(value)
158
- when :String
159
- value.to_s
160
- when :Integer
161
- value.to_i
162
- when :Float
163
- value.to_f
164
- when :Boolean
165
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
- true
167
- else
168
- false
169
- end
170
- when :Object
171
- # generic object (usually a Hash), return directly
172
- value
173
- when /\AArray<(?<inner_type>.+)>\z/
174
- inner_type = Regexp.last_match[:inner_type]
175
- value.map { |v| _deserialize(inner_type, v) }
176
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
- k_type = Regexp.last_match[:k_type]
178
- v_type = Regexp.last_match[:v_type]
179
- {}.tap do |hash|
180
- value.each do |k, v|
181
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
- end
183
- end
184
- else # model
185
- # models (e.g. Pet) or oneOf
186
- klass = Solifyn.const_get(type)
187
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
- end
189
- end
190
-
191
- # Returns the string representation of the object
192
- # @return [String] String presentation of the object
193
- def to_s
194
- to_hash.to_s
195
- end
196
-
197
- # to_body is an alias to to_hash (backward compatibility)
198
- # @return [Hash] Returns the object in the form of hash
199
- def to_body
200
- to_hash
201
- end
202
-
203
- # Returns the object in the form of hash
204
- # @return [Hash] Returns the object in the form of hash
205
- def to_hash
206
- hash = {}
207
- self.class.attribute_map.each_pair do |attr, param|
208
- value = self.send(attr)
209
- if value.nil?
210
- is_nullable = self.class.openapi_nullable.include?(attr)
211
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
- end
213
-
214
- hash[param] = _to_hash(value)
215
- end
216
- hash
217
- end
218
-
219
- # Outputs non-array value in the form of hash
220
- # For object, use to_hash. Otherwise, just return the value
221
- # @param [Object] value Any valid value
222
- # @return [Hash] Returns the value in the form of hash
223
- def _to_hash(value)
224
- if value.is_a?(Array)
225
- value.compact.map { |v| _to_hash(v) }
226
- elsif value.is_a?(Hash)
227
- {}.tap do |hash|
228
- value.each { |k, v| hash[k] = _to_hash(v) }
229
- end
230
- elsif value.respond_to? :to_hash
231
- value.to_hash
232
- else
233
- value
234
- end
235
- end
236
-
237
- end
238
-
239
- end