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.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -7
  3. data/docs/BalanceApi.md +1 -1
  4. data/docs/CheckoutApi.md +1 -1
  5. data/docs/CheckoutLinksApi.md +1 -1
  6. data/docs/CheckoutSessionDetailsDto.md +3 -1
  7. data/docs/CollectionProductDto.md +12 -0
  8. data/docs/CollectionsApi.md +1 -1
  9. data/docs/CustomersApi.md +1 -1
  10. data/docs/DefaultApi.md +285 -1
  11. data/docs/DeveloperApi.md +1 -1
  12. data/docs/DigitalFileApi.md +1 -1
  13. data/docs/DiscordIntegrationApi.md +135 -0
  14. data/docs/DiscordRolesResponseDto.md +24 -0
  15. data/docs/DiscountsApi.md +1 -1
  16. data/docs/DisputesApi.md +1 -1
  17. data/docs/EntitlementGrantResponseDto.md +54 -0
  18. data/docs/EntitlementGrantsApi.md +289 -0
  19. data/docs/GitHubIntegrationApi.md +145 -0
  20. data/docs/GithubReposResponseDto.md +22 -0
  21. data/docs/LicenseApi.md +1 -1
  22. data/docs/LicenseKeysApi.md +1 -1
  23. data/docs/LicenseKeysClientApi.md +1 -1
  24. data/docs/MetersApi.md +1 -1
  25. data/docs/OrdersApi.md +1 -1
  26. data/docs/Product.md +12 -0
  27. data/docs/ProductAddOnsApi.md +1 -1
  28. data/docs/ProductCreate.md +12 -0
  29. data/docs/ProductUpdate.md +12 -0
  30. data/docs/ProductsApi.md +1 -1
  31. data/docs/RefundRequestsApi.md +1 -1
  32. data/docs/RefundsChargebacksApi.md +1 -1
  33. data/docs/SubscriptionsApi.md +1 -1
  34. data/docs/SyncLoginDto.md +18 -0
  35. data/docs/WebhookApi.md +1 -1
  36. data/docs/WebhookEndpointApi.md +55 -10
  37. data/docs/WebhookEntitlementGrantPayload.md +44 -0
  38. data/git_push.sh +2 -2
  39. data/lib/solifyn/api/default_api.rb +248 -0
  40. data/lib/solifyn/api/{partner_api.rb → discord_integration_api.rb} +32 -19
  41. data/lib/solifyn/api/entitlement_grants_api.rb +271 -0
  42. data/lib/solifyn/api/git_hub_integration_api.rb +137 -0
  43. data/lib/solifyn/api/webhook_endpoint_api.rb +9 -9
  44. data/lib/solifyn/configuration.rb +4 -4
  45. data/lib/solifyn/models/checkout_session_details_dto.rb +16 -4
  46. data/lib/solifyn/models/collection_product_dto.rb +115 -1
  47. data/lib/solifyn/models/{payout_method.rb → discord_roles_response_dto.rb} +41 -34
  48. data/lib/solifyn/models/{withdrawal.rb → entitlement_grant_response_dto.rb} +149 -109
  49. data/lib/solifyn/models/{payout_account.rb → github_repos_response_dto.rb} +31 -24
  50. data/lib/solifyn/models/product.rb +115 -1
  51. data/lib/solifyn/models/product_create.rb +77 -1
  52. data/lib/solifyn/models/product_update.rb +77 -1
  53. data/lib/solifyn/models/{payout_method_list.rb → sync_login_dto.rb} +15 -17
  54. data/lib/solifyn/models/{payout_verification.rb → webhook_entitlement_grant_payload.rb} +118 -41
  55. data/lib/solifyn/version.rb +1 -1
  56. data/lib/solifyn.rb +8 -0
  57. data/spec/api/checkout_api_spec.rb +12 -0
  58. data/spec/api/default_api_spec.rb +59 -11
  59. data/spec/api/developer_api_spec.rb +52 -29
  60. data/spec/api/{partner_api_spec.rb → discord_integration_api_spec.rb} +16 -11
  61. data/spec/api/entitlement_grants_api_spec.rb +83 -0
  62. data/spec/api/git_hub_integration_api_spec.rb +58 -0
  63. data/spec/models/checkout_session_details_dto_spec.rb +6 -0
  64. data/spec/models/collection_product_dto_spec.rb +28 -0
  65. data/spec/models/{payout_method_spec.rb → discord_roles_response_dto_spec.rb} +9 -9
  66. data/spec/models/{withdrawal_spec.rb → entitlement_grant_response_dto_spec.rb} +18 -18
  67. data/spec/models/{payout_account_spec.rb → github_repos_response_dto_spec.rb} +8 -8
  68. data/spec/models/order_spec.rb +6 -0
  69. data/spec/models/product_create_spec.rb +28 -0
  70. data/spec/models/product_spec.rb +28 -0
  71. data/spec/models/product_update_spec.rb +28 -0
  72. data/spec/models/{business_create_spec.rb → sync_login_dto_spec.rb} +7 -7
  73. data/spec/models/{business_spec.rb → webhook_entitlement_grant_payload_spec.rb} +17 -53
  74. metadata +162 -254
  75. data/docs/AffiliateApi.md +0 -845
  76. data/docs/BillingApi.md +0 -68
  77. data/docs/BrandsApi.md +0 -286
  78. data/docs/Business.md +0 -56
  79. data/docs/BusinessCreate.md +0 -18
  80. data/docs/BusinessFullCreate.md +0 -26
  81. data/docs/BusinessFullCreateResponse.md +0 -20
  82. data/docs/BusinessesApi.md +0 -350
  83. data/docs/ChatApi.md +0 -246
  84. data/docs/CommunityApi.md +0 -497
  85. data/docs/PartnerApi.md +0 -125
  86. data/docs/PayoutAccessToken.md +0 -20
  87. data/docs/PayoutAccount.md +0 -22
  88. data/docs/PayoutAccountLink.md +0 -20
  89. data/docs/PayoutMethod.md +0 -24
  90. data/docs/PayoutMethodList.md +0 -18
  91. data/docs/PayoutVerification.md +0 -24
  92. data/docs/PayoutVerificationList.md +0 -18
  93. data/docs/PayoutsApi.md +0 -579
  94. data/docs/TicketApi.md +0 -318
  95. data/docs/UserPage.md +0 -26
  96. data/docs/UserProfileThemesApi.md +0 -345
  97. data/docs/UserSettings.md +0 -34
  98. data/docs/UserSettingsUpdate.md +0 -76
  99. data/docs/UserStats.md +0 -20
  100. data/docs/UserTheme.md +0 -26
  101. data/docs/UserThemeUpdate.md +0 -22
  102. data/docs/WhopApiKeysRotation.md +0 -18
  103. data/docs/Withdrawal.md +0 -46
  104. data/docs/WithdrawalCreate.md +0 -22
  105. data/docs/WithdrawalList.md +0 -20
  106. data/lib/solifyn/api/affiliate_api.rb +0 -760
  107. data/lib/solifyn/api/billing_api.rb +0 -77
  108. data/lib/solifyn/api/brands_api.rb +0 -284
  109. data/lib/solifyn/api/businesses_api.rb +0 -338
  110. data/lib/solifyn/api/chat_api.rb +0 -232
  111. data/lib/solifyn/api/community_api.rb +0 -466
  112. data/lib/solifyn/api/payouts_api.rb +0 -520
  113. data/lib/solifyn/api/ticket_api.rb +0 -328
  114. data/lib/solifyn/api/user_profile_themes_api.rb +0 -313
  115. data/lib/solifyn/models/business.rb +0 -482
  116. data/lib/solifyn/models/business_create.rb +0 -241
  117. data/lib/solifyn/models/business_full_create.rb +0 -288
  118. data/lib/solifyn/models/business_full_create_response.rb +0 -239
  119. data/lib/solifyn/models/payout_access_token.rb +0 -239
  120. data/lib/solifyn/models/payout_account_link.rb +0 -239
  121. data/lib/solifyn/models/payout_verification_list.rb +0 -224
  122. data/lib/solifyn/models/user_page.rb +0 -290
  123. data/lib/solifyn/models/user_settings.rb +0 -337
  124. data/lib/solifyn/models/user_settings_update.rb +0 -505
  125. data/lib/solifyn/models/user_stats.rb +0 -241
  126. data/lib/solifyn/models/user_theme.rb +0 -276
  127. data/lib/solifyn/models/user_theme_update.rb +0 -235
  128. data/lib/solifyn/models/whop_api_keys_rotation.rb +0 -222
  129. data/lib/solifyn/models/withdrawal_create.rb +0 -249
  130. data/lib/solifyn/models/withdrawal_list.rb +0 -241
  131. data/spec/api/affiliate_api_spec.rb +0 -165
  132. data/spec/api/billing_api_spec.rb +0 -46
  133. data/spec/api/brands_api_spec.rb +0 -83
  134. data/spec/api/businesses_api_spec.rb +0 -93
  135. data/spec/api/chat_api_spec.rb +0 -72
  136. data/spec/api/community_api_spec.rb +0 -113
  137. data/spec/api/payouts_api_spec.rb +0 -133
  138. data/spec/api/ticket_api_spec.rb +0 -86
  139. data/spec/api/user_profile_themes_api_spec.rb +0 -91
  140. data/spec/models/business_full_create_response_spec.rb +0 -42
  141. data/spec/models/business_full_create_spec.rb +0 -60
  142. data/spec/models/payout_access_token_spec.rb +0 -42
  143. data/spec/models/payout_account_link_spec.rb +0 -42
  144. data/spec/models/payout_method_list_spec.rb +0 -36
  145. data/spec/models/payout_verification_list_spec.rb +0 -36
  146. data/spec/models/payout_verification_spec.rb +0 -54
  147. data/spec/models/user_page_spec.rb +0 -60
  148. data/spec/models/user_settings_spec.rb +0 -84
  149. data/spec/models/user_settings_update_spec.rb +0 -210
  150. data/spec/models/user_stats_spec.rb +0 -42
  151. data/spec/models/user_theme_spec.rb +0 -60
  152. data/spec/models/user_theme_update_spec.rb +0 -48
  153. data/spec/models/whop_api_keys_rotation_spec.rb +0 -36
  154. data/spec/models/withdrawal_create_spec.rb +0 -48
  155. data/spec/models/withdrawal_list_spec.rb +0 -42
@@ -14,68 +14,84 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Solifyn
17
- class Withdrawal
18
- # The local withdrawal ID
17
+ class EntitlementGrantResponseDto
18
+ # The unique entitlement grant ID.
19
19
  attr_accessor :id
20
20
 
21
- # The Whop withdrawal ID
22
- attr_accessor :whop_id
21
+ # The business ID context.
22
+ attr_accessor :business_id
23
23
 
24
- # The amount withdrawn in cents
25
- attr_accessor :amount
24
+ # The customer ID.
25
+ attr_accessor :customer_id
26
26
 
27
- # Three-letter ISO currency code
28
- attr_accessor :currency
27
+ # Associated payment transaction ID.
28
+ attr_accessor :payment_id
29
29
 
30
- # The status of the withdrawal request
31
- attr_accessor :status
30
+ # The purchased product ID.
31
+ attr_accessor :product_id
32
32
 
33
- # Fee amount charged for the withdrawal in cents
34
- attr_accessor :fee_amount
33
+ # The type of entitlement (e.g. GITHUB, DISCORD, TELEGRAM).
34
+ attr_accessor :type
35
35
 
36
- # The fee structure type (inclusive or exclusive)
37
- attr_accessor :fee_type
36
+ # Target GitHub repository (owner/repo) if type is GITHUB.
37
+ attr_accessor :github_repo
38
38
 
39
- # Markup fee applied in cents
40
- attr_accessor :markup_fee
39
+ # GitHub access permission level if type is GITHUB.
40
+ attr_accessor :github_permission
41
41
 
42
- # Speed of withdrawal (standard, instant)
43
- attr_accessor :speed
42
+ # The connected customer GitHub username.
43
+ attr_accessor :github_username
44
44
 
45
- # Bank trace or reference code for tracking the payout
46
- attr_accessor :trace_code
45
+ # Target Discord Guild ID if type is DISCORD.
46
+ attr_accessor :discord_guild_id
47
47
 
48
- # The name of the entity or account paying out
49
- attr_accessor :payer_name
48
+ # Target Discord Role ID if type is DISCORD.
49
+ attr_accessor :discord_role_id
50
50
 
51
- # Error message if the withdrawal failed
52
- attr_accessor :error_message
51
+ # The connected customer Discord username.
52
+ attr_accessor :discord_username
53
53
 
54
- # The business ID associated with this withdrawal
55
- attr_accessor :business_id
54
+ # The connected customer Discord user ID.
55
+ attr_accessor :discord_user_id
56
+
57
+ # Delivery status of the collaborator invite (PENDING, DELIVERED, FAILED, REVOKED).
58
+ attr_accessor :status
59
+
60
+ # OAuth URL to redirect the customer to.
61
+ attr_accessor :oauth_url
56
62
 
57
- # Timestamp when the withdrawal was requested
63
+ # Error message if invitation delivery failed.
64
+ attr_accessor :error_details
65
+
66
+ # Platform-specific metadata.
67
+ attr_accessor :metadata
68
+
69
+ # Creation timestamp.
58
70
  attr_accessor :created_at
59
71
 
60
- # Timestamp when the withdrawal status was updated
72
+ # Modification timestamp.
61
73
  attr_accessor :updated_at
62
74
 
63
75
  # Attribute mapping from ruby-style variable name to JSON key.
64
76
  def self.attribute_map
65
77
  {
66
78
  :'id' => :'id',
67
- :'whop_id' => :'whopId',
68
- :'amount' => :'amount',
69
- :'currency' => :'currency',
70
- :'status' => :'status',
71
- :'fee_amount' => :'feeAmount',
72
- :'fee_type' => :'feeType',
73
- :'markup_fee' => :'markupFee',
74
- :'speed' => :'speed',
75
- :'trace_code' => :'traceCode',
76
- :'payer_name' => :'payerName',
77
- :'error_message' => :'errorMessage',
78
79
  :'business_id' => :'businessId',
80
+ :'customer_id' => :'customerId',
81
+ :'payment_id' => :'paymentId',
82
+ :'product_id' => :'productId',
83
+ :'type' => :'type',
84
+ :'github_repo' => :'githubRepo',
85
+ :'github_permission' => :'githubPermission',
86
+ :'github_username' => :'githubUsername',
87
+ :'discord_guild_id' => :'discordGuildId',
88
+ :'discord_role_id' => :'discordRoleId',
89
+ :'discord_username' => :'discordUsername',
90
+ :'discord_user_id' => :'discordUserId',
91
+ :'status' => :'status',
92
+ :'oauth_url' => :'oauthUrl',
93
+ :'error_details' => :'errorDetails',
94
+ :'metadata' => :'metadata',
79
95
  :'created_at' => :'createdAt',
80
96
  :'updated_at' => :'updatedAt'
81
97
  }
@@ -90,20 +106,24 @@ module Solifyn
90
106
  def self.openapi_types
91
107
  {
92
108
  :'id' => :'String',
93
- :'whop_id' => :'String',
94
- :'amount' => :'Float',
95
- :'currency' => :'String',
96
- :'status' => :'String',
97
- :'fee_amount' => :'Float',
98
- :'fee_type' => :'String',
99
- :'markup_fee' => :'Float',
100
- :'speed' => :'String',
101
- :'trace_code' => :'String',
102
- :'payer_name' => :'String',
103
- :'error_message' => :'String',
104
109
  :'business_id' => :'String',
105
- :'created_at' => :'Time',
106
- :'updated_at' => :'Time'
110
+ :'customer_id' => :'String',
111
+ :'payment_id' => :'String',
112
+ :'product_id' => :'String',
113
+ :'type' => :'String',
114
+ :'github_repo' => :'String',
115
+ :'github_permission' => :'String',
116
+ :'github_username' => :'String',
117
+ :'discord_guild_id' => :'String',
118
+ :'discord_role_id' => :'String',
119
+ :'discord_username' => :'String',
120
+ :'discord_user_id' => :'String',
121
+ :'status' => :'String',
122
+ :'oauth_url' => :'String',
123
+ :'error_details' => :'String',
124
+ :'metadata' => :'Object',
125
+ :'created_at' => :'String',
126
+ :'updated_at' => :'String'
107
127
  }
108
128
  end
109
129
 
@@ -117,13 +137,13 @@ module Solifyn
117
137
  # @param [Hash] attributes Model attributes in the form of hash
118
138
  def initialize(attributes = {})
119
139
  if (!attributes.is_a?(Hash))
120
- fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::Withdrawal` initialize method"
140
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::EntitlementGrantResponseDto` initialize method"
121
141
  end
122
142
 
123
143
  # check to see if the attribute exists and convert string to symbol for hash key
124
144
  attributes = attributes.each_with_object({}) { |(k, v), h|
125
145
  if (!self.class.attribute_map.key?(k.to_sym))
126
- fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::Withdrawal`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
146
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::EntitlementGrantResponseDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
127
147
  end
128
148
  h[k.to_sym] = v
129
149
  }
@@ -134,62 +154,78 @@ module Solifyn
134
154
  self.id = nil
135
155
  end
136
156
 
137
- if attributes.key?(:'whop_id')
138
- self.whop_id = attributes[:'whop_id']
157
+ if attributes.key?(:'business_id')
158
+ self.business_id = attributes[:'business_id']
139
159
  else
140
- self.whop_id = nil
160
+ self.business_id = nil
141
161
  end
142
162
 
143
- if attributes.key?(:'amount')
144
- self.amount = attributes[:'amount']
163
+ if attributes.key?(:'customer_id')
164
+ self.customer_id = attributes[:'customer_id']
145
165
  else
146
- self.amount = nil
166
+ self.customer_id = nil
167
+ end
168
+
169
+ if attributes.key?(:'payment_id')
170
+ self.payment_id = attributes[:'payment_id']
147
171
  end
148
172
 
149
- if attributes.key?(:'currency')
150
- self.currency = attributes[:'currency']
173
+ if attributes.key?(:'product_id')
174
+ self.product_id = attributes[:'product_id']
151
175
  else
152
- self.currency = nil
176
+ self.product_id = nil
153
177
  end
154
178
 
155
- if attributes.key?(:'status')
156
- self.status = attributes[:'status']
179
+ if attributes.key?(:'type')
180
+ self.type = attributes[:'type']
157
181
  else
158
- self.status = nil
182
+ self.type = nil
159
183
  end
160
184
 
161
- if attributes.key?(:'fee_amount')
162
- self.fee_amount = attributes[:'fee_amount']
185
+ if attributes.key?(:'github_repo')
186
+ self.github_repo = attributes[:'github_repo']
163
187
  end
164
188
 
165
- if attributes.key?(:'fee_type')
166
- self.fee_type = attributes[:'fee_type']
189
+ if attributes.key?(:'github_permission')
190
+ self.github_permission = attributes[:'github_permission']
167
191
  end
168
192
 
169
- if attributes.key?(:'markup_fee')
170
- self.markup_fee = attributes[:'markup_fee']
193
+ if attributes.key?(:'github_username')
194
+ self.github_username = attributes[:'github_username']
171
195
  end
172
196
 
173
- if attributes.key?(:'speed')
174
- self.speed = attributes[:'speed']
197
+ if attributes.key?(:'discord_guild_id')
198
+ self.discord_guild_id = attributes[:'discord_guild_id']
175
199
  end
176
200
 
177
- if attributes.key?(:'trace_code')
178
- self.trace_code = attributes[:'trace_code']
201
+ if attributes.key?(:'discord_role_id')
202
+ self.discord_role_id = attributes[:'discord_role_id']
179
203
  end
180
204
 
181
- if attributes.key?(:'payer_name')
182
- self.payer_name = attributes[:'payer_name']
205
+ if attributes.key?(:'discord_username')
206
+ self.discord_username = attributes[:'discord_username']
183
207
  end
184
208
 
185
- if attributes.key?(:'error_message')
186
- self.error_message = attributes[:'error_message']
209
+ if attributes.key?(:'discord_user_id')
210
+ self.discord_user_id = attributes[:'discord_user_id']
187
211
  end
188
212
 
189
- if attributes.key?(:'business_id')
190
- self.business_id = attributes[:'business_id']
213
+ if attributes.key?(:'status')
214
+ self.status = attributes[:'status']
191
215
  else
192
- self.business_id = nil
216
+ self.status = nil
217
+ end
218
+
219
+ if attributes.key?(:'oauth_url')
220
+ self.oauth_url = attributes[:'oauth_url']
221
+ end
222
+
223
+ if attributes.key?(:'error_details')
224
+ self.error_details = attributes[:'error_details']
225
+ end
226
+
227
+ if attributes.key?(:'metadata')
228
+ self.metadata = attributes[:'metadata']
193
229
  end
194
230
 
195
231
  if attributes.key?(:'created_at')
@@ -214,26 +250,26 @@ module Solifyn
214
250
  invalid_properties.push('invalid value for "id", id cannot be nil.')
215
251
  end
216
252
 
217
- if @whop_id.nil?
218
- invalid_properties.push('invalid value for "whop_id", whop_id cannot be nil.')
253
+ if @business_id.nil?
254
+ invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
255
+ end
256
+
257
+ if @customer_id.nil?
258
+ invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.')
219
259
  end
220
260
 
221
- if @amount.nil?
222
- invalid_properties.push('invalid value for "amount", amount cannot be nil.')
261
+ if @product_id.nil?
262
+ invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
223
263
  end
224
264
 
225
- if @currency.nil?
226
- invalid_properties.push('invalid value for "currency", currency cannot be nil.')
265
+ if @type.nil?
266
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
227
267
  end
228
268
 
229
269
  if @status.nil?
230
270
  invalid_properties.push('invalid value for "status", status cannot be nil.')
231
271
  end
232
272
 
233
- if @business_id.nil?
234
- invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
235
- end
236
-
237
273
  if @created_at.nil?
238
274
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
239
275
  end
@@ -250,11 +286,11 @@ module Solifyn
250
286
  def valid?
251
287
  warn '[DEPRECATED] the `valid?` method is obsolete'
252
288
  return false if @id.nil?
253
- return false if @whop_id.nil?
254
- return false if @amount.nil?
255
- return false if @currency.nil?
256
- return false if @status.nil?
257
289
  return false if @business_id.nil?
290
+ return false if @customer_id.nil?
291
+ return false if @product_id.nil?
292
+ return false if @type.nil?
293
+ return false if @status.nil?
258
294
  return false if @created_at.nil?
259
295
  return false if @updated_at.nil?
260
296
  true
@@ -266,18 +302,22 @@ module Solifyn
266
302
  return true if self.equal?(o)
267
303
  self.class == o.class &&
268
304
  id == o.id &&
269
- whop_id == o.whop_id &&
270
- amount == o.amount &&
271
- currency == o.currency &&
272
- status == o.status &&
273
- fee_amount == o.fee_amount &&
274
- fee_type == o.fee_type &&
275
- markup_fee == o.markup_fee &&
276
- speed == o.speed &&
277
- trace_code == o.trace_code &&
278
- payer_name == o.payer_name &&
279
- error_message == o.error_message &&
280
305
  business_id == o.business_id &&
306
+ customer_id == o.customer_id &&
307
+ payment_id == o.payment_id &&
308
+ product_id == o.product_id &&
309
+ type == o.type &&
310
+ github_repo == o.github_repo &&
311
+ github_permission == o.github_permission &&
312
+ github_username == o.github_username &&
313
+ discord_guild_id == o.discord_guild_id &&
314
+ discord_role_id == o.discord_role_id &&
315
+ discord_username == o.discord_username &&
316
+ discord_user_id == o.discord_user_id &&
317
+ status == o.status &&
318
+ oauth_url == o.oauth_url &&
319
+ error_details == o.error_details &&
320
+ metadata == o.metadata &&
281
321
  created_at == o.created_at &&
282
322
  updated_at == o.updated_at
283
323
  end
@@ -291,7 +331,7 @@ module Solifyn
291
331
  # Calculates hash code according to all attributes.
292
332
  # @return [Integer] Hash code
293
333
  def hash
294
- [id, whop_id, amount, currency, status, fee_amount, fee_type, markup_fee, speed, trace_code, payer_name, error_message, business_id, created_at, updated_at].hash
334
+ [id, business_id, customer_id, payment_id, product_id, type, github_repo, github_permission, github_username, discord_guild_id, discord_role_id, discord_username, discord_user_id, status, oauth_url, error_details, metadata, created_at, updated_at].hash
295
335
  end
296
336
 
297
337
  # Builds the object from hash
@@ -14,22 +14,22 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Solifyn
17
- class PayoutAccount
18
- # The payout account ID
17
+ class GithubReposResponseDto
18
+ # The GitHub repository ID
19
19
  attr_accessor :id
20
20
 
21
- # Status of the payout account onboarding
22
- attr_accessor :status
21
+ # The repository full name (owner/repo)
22
+ attr_accessor :full_name
23
23
 
24
- # Onboarding capability status flags (e.g., transfers, payouts)
25
- attr_accessor :capabilities
24
+ # The repository name
25
+ attr_accessor :name
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'id' => :'id',
31
- :'status' => :'status',
32
- :'capabilities' => :'capabilities'
31
+ :'full_name' => :'fullName',
32
+ :'name' => :'name'
33
33
  }
34
34
  end
35
35
 
@@ -41,9 +41,9 @@ module Solifyn
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'id' => :'String',
45
- :'status' => :'String',
46
- :'capabilities' => :'Object'
44
+ :'id' => :'Float',
45
+ :'full_name' => :'String',
46
+ :'name' => :'String'
47
47
  }
48
48
  end
49
49
 
@@ -57,13 +57,13 @@ module Solifyn
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::PayoutAccount` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::GithubReposResponseDto` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
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
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::GithubReposResponseDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -74,14 +74,16 @@ module Solifyn
74
74
  self.id = nil
75
75
  end
76
76
 
77
- if attributes.key?(:'status')
78
- self.status = attributes[:'status']
77
+ if attributes.key?(:'full_name')
78
+ self.full_name = attributes[:'full_name']
79
79
  else
80
- self.status = nil
80
+ self.full_name = nil
81
81
  end
82
82
 
83
- if attributes.key?(:'capabilities')
84
- self.capabilities = attributes[:'capabilities']
83
+ if attributes.key?(:'name')
84
+ self.name = attributes[:'name']
85
+ else
86
+ self.name = nil
85
87
  end
86
88
  end
87
89
 
@@ -94,8 +96,12 @@ module Solifyn
94
96
  invalid_properties.push('invalid value for "id", id cannot be nil.')
95
97
  end
96
98
 
97
- if @status.nil?
98
- invalid_properties.push('invalid value for "status", status cannot be nil.')
99
+ if @full_name.nil?
100
+ invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
101
+ end
102
+
103
+ if @name.nil?
104
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
99
105
  end
100
106
 
101
107
  invalid_properties
@@ -106,7 +112,8 @@ module Solifyn
106
112
  def valid?
107
113
  warn '[DEPRECATED] the `valid?` method is obsolete'
108
114
  return false if @id.nil?
109
- return false if @status.nil?
115
+ return false if @full_name.nil?
116
+ return false if @name.nil?
110
117
  true
111
118
  end
112
119
 
@@ -116,8 +123,8 @@ module Solifyn
116
123
  return true if self.equal?(o)
117
124
  self.class == o.class &&
118
125
  id == o.id &&
119
- status == o.status &&
120
- capabilities == o.capabilities
126
+ full_name == o.full_name &&
127
+ name == o.name
121
128
  end
122
129
 
123
130
  # @see the `==` method
@@ -129,7 +136,7 @@ module Solifyn
129
136
  # Calculates hash code according to all attributes.
130
137
  # @return [Integer] Hash code
131
138
  def hash
132
- [id, status, capabilities].hash
139
+ [id, full_name, name].hash
133
140
  end
134
141
 
135
142
  # Builds the object from hash