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
|
@@ -14,68 +14,84 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Solifyn
|
|
17
|
-
class
|
|
18
|
-
# The
|
|
17
|
+
class EntitlementGrantResponseDto
|
|
18
|
+
# The unique entitlement grant ID.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
# The
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# The business ID context.
|
|
22
|
+
attr_accessor :business_id
|
|
23
23
|
|
|
24
|
-
# The
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# The customer ID.
|
|
25
|
+
attr_accessor :customer_id
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
27
|
+
# Associated payment transaction ID.
|
|
28
|
+
attr_accessor :payment_id
|
|
29
29
|
|
|
30
|
-
# The
|
|
31
|
-
attr_accessor :
|
|
30
|
+
# The purchased product ID.
|
|
31
|
+
attr_accessor :product_id
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# The type of entitlement (e.g. GITHUB, DISCORD, TELEGRAM).
|
|
34
|
+
attr_accessor :type
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
36
|
+
# Target GitHub repository (owner/repo) if type is GITHUB.
|
|
37
|
+
attr_accessor :github_repo
|
|
38
38
|
|
|
39
|
-
#
|
|
40
|
-
attr_accessor :
|
|
39
|
+
# GitHub access permission level if type is GITHUB.
|
|
40
|
+
attr_accessor :github_permission
|
|
41
41
|
|
|
42
|
-
#
|
|
43
|
-
attr_accessor :
|
|
42
|
+
# The connected customer GitHub username.
|
|
43
|
+
attr_accessor :github_username
|
|
44
44
|
|
|
45
|
-
#
|
|
46
|
-
attr_accessor :
|
|
45
|
+
# Target Discord Guild ID if type is DISCORD.
|
|
46
|
+
attr_accessor :discord_guild_id
|
|
47
47
|
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :
|
|
48
|
+
# Target Discord Role ID if type is DISCORD.
|
|
49
|
+
attr_accessor :discord_role_id
|
|
50
50
|
|
|
51
|
-
#
|
|
52
|
-
attr_accessor :
|
|
51
|
+
# The connected customer Discord username.
|
|
52
|
+
attr_accessor :discord_username
|
|
53
53
|
|
|
54
|
-
# The
|
|
55
|
-
attr_accessor :
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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
|
-
:'
|
|
106
|
-
:'
|
|
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::
|
|
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::
|
|
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?(:'
|
|
138
|
-
self.
|
|
157
|
+
if attributes.key?(:'business_id')
|
|
158
|
+
self.business_id = attributes[:'business_id']
|
|
139
159
|
else
|
|
140
|
-
self.
|
|
160
|
+
self.business_id = nil
|
|
141
161
|
end
|
|
142
162
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
163
|
+
if attributes.key?(:'customer_id')
|
|
164
|
+
self.customer_id = attributes[:'customer_id']
|
|
145
165
|
else
|
|
146
|
-
self.
|
|
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?(:'
|
|
150
|
-
self.
|
|
173
|
+
if attributes.key?(:'product_id')
|
|
174
|
+
self.product_id = attributes[:'product_id']
|
|
151
175
|
else
|
|
152
|
-
self.
|
|
176
|
+
self.product_id = nil
|
|
153
177
|
end
|
|
154
178
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
self.
|
|
179
|
+
if attributes.key?(:'type')
|
|
180
|
+
self.type = attributes[:'type']
|
|
157
181
|
else
|
|
158
|
-
self.
|
|
182
|
+
self.type = nil
|
|
159
183
|
end
|
|
160
184
|
|
|
161
|
-
if attributes.key?(:'
|
|
162
|
-
self.
|
|
185
|
+
if attributes.key?(:'github_repo')
|
|
186
|
+
self.github_repo = attributes[:'github_repo']
|
|
163
187
|
end
|
|
164
188
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
189
|
+
if attributes.key?(:'github_permission')
|
|
190
|
+
self.github_permission = attributes[:'github_permission']
|
|
167
191
|
end
|
|
168
192
|
|
|
169
|
-
if attributes.key?(:'
|
|
170
|
-
self.
|
|
193
|
+
if attributes.key?(:'github_username')
|
|
194
|
+
self.github_username = attributes[:'github_username']
|
|
171
195
|
end
|
|
172
196
|
|
|
173
|
-
if attributes.key?(:'
|
|
174
|
-
self.
|
|
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?(:'
|
|
178
|
-
self.
|
|
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?(:'
|
|
182
|
-
self.
|
|
205
|
+
if attributes.key?(:'discord_username')
|
|
206
|
+
self.discord_username = attributes[:'discord_username']
|
|
183
207
|
end
|
|
184
208
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
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?(:'
|
|
190
|
-
self.
|
|
213
|
+
if attributes.key?(:'status')
|
|
214
|
+
self.status = attributes[:'status']
|
|
191
215
|
else
|
|
192
|
-
self.
|
|
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 @
|
|
218
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
222
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
226
|
-
invalid_properties.push('invalid value for "
|
|
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,
|
|
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
|
|
18
|
-
# The
|
|
17
|
+
class GithubReposResponseDto
|
|
18
|
+
# The GitHub repository ID
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# The repository full name (owner/repo)
|
|
22
|
+
attr_accessor :full_name
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
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
|
-
:'
|
|
32
|
-
:'
|
|
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' => :'
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
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::
|
|
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::
|
|
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?(:'
|
|
78
|
-
self.
|
|
77
|
+
if attributes.key?(:'full_name')
|
|
78
|
+
self.full_name = attributes[:'full_name']
|
|
79
79
|
else
|
|
80
|
-
self.
|
|
80
|
+
self.full_name = nil
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
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 @
|
|
98
|
-
invalid_properties.push('invalid value for "
|
|
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 @
|
|
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
|
-
|
|
120
|
-
|
|
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,
|
|
139
|
+
[id, full_name, name].hash
|
|
133
140
|
end
|
|
134
141
|
|
|
135
142
|
# Builds the object from hash
|