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,249 +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 PayoutAccount
18
- # The payout account ID
19
- attr_accessor :id
20
-
21
- # Status of the payout account onboarding
22
- attr_accessor :status
23
-
24
- # Onboarding capability status flags (e.g., transfers, payouts)
25
- attr_accessor :capabilities
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'id' => :'id',
31
- :'status' => :'status',
32
- :'capabilities' => :'capabilities'
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
- :'id' => :'String',
45
- :'status' => :'String',
46
- :'capabilities' => :'Object'
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::PayoutAccount` 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::PayoutAccount`. 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?(:'id')
72
- self.id = attributes[:'id']
73
- else
74
- self.id = nil
75
- end
76
-
77
- if attributes.key?(:'status')
78
- self.status = attributes[:'status']
79
- else
80
- self.status = nil
81
- end
82
-
83
- if attributes.key?(:'capabilities')
84
- self.capabilities = attributes[:'capabilities']
85
- end
86
- end
87
-
88
- # Show invalid properties with the reasons. Usually used together with valid?
89
- # @return Array for valid properties with the reasons
90
- def list_invalid_properties
91
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
- invalid_properties = Array.new
93
- if @id.nil?
94
- invalid_properties.push('invalid value for "id", id cannot be nil.')
95
- end
96
-
97
- if @status.nil?
98
- invalid_properties.push('invalid value for "status", status cannot be nil.')
99
- end
100
-
101
- invalid_properties
102
- end
103
-
104
- # Check to see if the all the properties in the model are valid
105
- # @return true if the model is valid
106
- def valid?
107
- warn '[DEPRECATED] the `valid?` method is obsolete'
108
- return false if @id.nil?
109
- return false if @status.nil?
110
- true
111
- end
112
-
113
- # Checks equality by comparing each attribute.
114
- # @param [Object] Object to be compared
115
- def ==(o)
116
- return true if self.equal?(o)
117
- self.class == o.class &&
118
- id == o.id &&
119
- status == o.status &&
120
- capabilities == o.capabilities
121
- end
122
-
123
- # @see the `==` method
124
- # @param [Object] Object to be compared
125
- def eql?(o)
126
- self == o
127
- end
128
-
129
- # Calculates hash code according to all attributes.
130
- # @return [Integer] Hash code
131
- def hash
132
- [id, status, capabilities].hash
133
- end
134
-
135
- # Builds the object from hash
136
- # @param [Hash] attributes Model attributes in the form of hash
137
- # @return [Object] Returns the model itself
138
- def self.build_from_hash(attributes)
139
- return nil unless attributes.is_a?(Hash)
140
- attributes = attributes.transform_keys(&:to_sym)
141
- transformed_hash = {}
142
- openapi_types.each_pair do |key, type|
143
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
- transformed_hash["#{key}"] = nil
145
- elsif type =~ /\AArray<(.*)>/i
146
- # check to ensure the input is an array given that the attribute
147
- # is documented as an array but the input is not
148
- if attributes[attribute_map[key]].is_a?(Array)
149
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
- end
151
- elsif !attributes[attribute_map[key]].nil?
152
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
- end
154
- end
155
- new(transformed_hash)
156
- end
157
-
158
- # Deserializes the data based on type
159
- # @param string type Data type
160
- # @param string value Value to be deserialized
161
- # @return [Object] Deserialized data
162
- def self._deserialize(type, value)
163
- case type.to_sym
164
- when :Time
165
- Time.parse(value)
166
- when :Date
167
- Date.parse(value)
168
- when :String
169
- value.to_s
170
- when :Integer
171
- value.to_i
172
- when :Float
173
- value.to_f
174
- when :Boolean
175
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
- true
177
- else
178
- false
179
- end
180
- when :Object
181
- # generic object (usually a Hash), return directly
182
- value
183
- when /\AArray<(?<inner_type>.+)>\z/
184
- inner_type = Regexp.last_match[:inner_type]
185
- value.map { |v| _deserialize(inner_type, v) }
186
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
- k_type = Regexp.last_match[:k_type]
188
- v_type = Regexp.last_match[:v_type]
189
- {}.tap do |hash|
190
- value.each do |k, v|
191
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
- end
193
- end
194
- else # model
195
- # models (e.g. Pet) or oneOf
196
- klass = Solifyn.const_get(type)
197
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
198
- end
199
- end
200
-
201
- # Returns the string representation of the object
202
- # @return [String] String presentation of the object
203
- def to_s
204
- to_hash.to_s
205
- end
206
-
207
- # to_body is an alias to to_hash (backward compatibility)
208
- # @return [Hash] Returns the object in the form of hash
209
- def to_body
210
- to_hash
211
- end
212
-
213
- # Returns the object in the form of hash
214
- # @return [Hash] Returns the object in the form of hash
215
- def to_hash
216
- hash = {}
217
- self.class.attribute_map.each_pair do |attr, param|
218
- value = self.send(attr)
219
- if value.nil?
220
- is_nullable = self.class.openapi_nullable.include?(attr)
221
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
- end
223
-
224
- hash[param] = _to_hash(value)
225
- end
226
- hash
227
- end
228
-
229
- # Outputs non-array value in the form of hash
230
- # For object, use to_hash. Otherwise, just return the value
231
- # @param [Object] value Any valid value
232
- # @return [Hash] Returns the value in the form of hash
233
- def _to_hash(value)
234
- if value.is_a?(Array)
235
- value.compact.map { |v| _to_hash(v) }
236
- elsif value.is_a?(Hash)
237
- {}.tap do |hash|
238
- value.each { |k, v| hash[k] = _to_hash(v) }
239
- end
240
- elsif value.respond_to? :to_hash
241
- value.to_hash
242
- else
243
- value
244
- end
245
- end
246
-
247
- end
248
-
249
- 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 PayoutAccountLink
18
- # The URL redirecting to the Stripe Express onboarding/portal
19
- attr_accessor :url
20
-
21
- # Expiration timestamp of the link
22
- attr_accessor :expires_at
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'url' => :'url',
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
- :'url' => :'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::PayoutAccountLink` 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::PayoutAccountLink`. 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?(:'url')
67
- self.url = attributes[:'url']
68
- else
69
- self.url = 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 @url.nil?
85
- invalid_properties.push('invalid value for "url", url 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 @url.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
- url == o.url &&
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
- [url, 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