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
|
@@ -0,0 +1,271 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class EntitlementGrantsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Retrieve Entitlement Grant
|
|
23
|
+
# Retrieve details of a specific entitlement grant.
|
|
24
|
+
# @param id [String] The unique grant ID
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [EntitlementGrantResponseDto]
|
|
27
|
+
def entitlement_grants_get(id, opts = {})
|
|
28
|
+
data, _status_code, _headers = entitlement_grants_get_with_http_info(id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Retrieve Entitlement Grant
|
|
33
|
+
# Retrieve details of a specific entitlement grant.
|
|
34
|
+
# @param id [String] The unique grant ID
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(EntitlementGrantResponseDto, Integer, Hash)>] EntitlementGrantResponseDto data, response status code and response headers
|
|
37
|
+
def entitlement_grants_get_with_http_info(id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: EntitlementGrantsApi.entitlement_grants_get ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EntitlementGrantsApi.entitlement_grants_get"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v1/entitlement-grants/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:debug_body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:debug_return_type] || 'EntitlementGrantResponseDto'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:operation => :"EntitlementGrantsApi.entitlement_grants_get",
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => return_type
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
79
|
+
if @api_client.config.debugging
|
|
80
|
+
@api_client.config.logger.debug "API called: EntitlementGrantsApi#entitlement_grants_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
|
+
end
|
|
82
|
+
return data, status_code, headers
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# List Entitlement Grants
|
|
86
|
+
# Retrieve all GitHub repository entitlement grants for the active business.
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :status Filter by status (PENDING, DELIVERED, FAILED, REVOKED)
|
|
89
|
+
# @return [Array<EntitlementGrantResponseDto>]
|
|
90
|
+
def entitlement_grants_list(opts = {})
|
|
91
|
+
data, _status_code, _headers = entitlement_grants_list_with_http_info(opts)
|
|
92
|
+
data
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# List Entitlement Grants
|
|
96
|
+
# Retrieve all GitHub repository entitlement grants for the active business.
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :status Filter by status (PENDING, DELIVERED, FAILED, REVOKED)
|
|
99
|
+
# @return [Array<(Array<EntitlementGrantResponseDto>, Integer, Hash)>] Array<EntitlementGrantResponseDto> data, response status code and response headers
|
|
100
|
+
def entitlement_grants_list_with_http_info(opts = {})
|
|
101
|
+
if @api_client.config.debugging
|
|
102
|
+
@api_client.config.logger.debug 'Calling API: EntitlementGrantsApi.entitlement_grants_list ...'
|
|
103
|
+
end
|
|
104
|
+
# resource path
|
|
105
|
+
local_var_path = '/v1/entitlement-grants'
|
|
106
|
+
|
|
107
|
+
# query parameters
|
|
108
|
+
query_params = opts[:query_params] || {}
|
|
109
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
110
|
+
|
|
111
|
+
# header parameters
|
|
112
|
+
header_params = opts[:header_params] || {}
|
|
113
|
+
# HTTP header 'Accept' (if needed)
|
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = opts[:form_params] || {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = opts[:debug_body]
|
|
121
|
+
|
|
122
|
+
# return_type
|
|
123
|
+
return_type = opts[:debug_return_type] || 'Array<EntitlementGrantResponseDto>'
|
|
124
|
+
|
|
125
|
+
# auth_names
|
|
126
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
127
|
+
|
|
128
|
+
new_options = opts.merge(
|
|
129
|
+
:operation => :"EntitlementGrantsApi.entitlement_grants_list",
|
|
130
|
+
:header_params => header_params,
|
|
131
|
+
:query_params => query_params,
|
|
132
|
+
:form_params => form_params,
|
|
133
|
+
:body => post_body,
|
|
134
|
+
:auth_names => auth_names,
|
|
135
|
+
:return_type => return_type
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
139
|
+
if @api_client.config.debugging
|
|
140
|
+
@api_client.config.logger.debug "API called: EntitlementGrantsApi#entitlement_grants_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
141
|
+
end
|
|
142
|
+
return data, status_code, headers
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Retry Entitlement Grant Delivery
|
|
146
|
+
# Attempts to re-invite the collaborator if GitHub username is already connected, or resets the OAuth URL redirect.
|
|
147
|
+
# @param id [String] The unique grant ID
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [EntitlementGrantResponseDto]
|
|
150
|
+
def entitlement_grants_retry(id, opts = {})
|
|
151
|
+
data, _status_code, _headers = entitlement_grants_retry_with_http_info(id, opts)
|
|
152
|
+
data
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Retry Entitlement Grant Delivery
|
|
156
|
+
# Attempts to re-invite the collaborator if GitHub username is already connected, or resets the OAuth URL redirect.
|
|
157
|
+
# @param id [String] The unique grant ID
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @return [Array<(EntitlementGrantResponseDto, Integer, Hash)>] EntitlementGrantResponseDto data, response status code and response headers
|
|
160
|
+
def entitlement_grants_retry_with_http_info(id, opts = {})
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug 'Calling API: EntitlementGrantsApi.entitlement_grants_retry ...'
|
|
163
|
+
end
|
|
164
|
+
# verify the required parameter 'id' is set
|
|
165
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EntitlementGrantsApi.entitlement_grants_retry"
|
|
167
|
+
end
|
|
168
|
+
# resource path
|
|
169
|
+
local_var_path = '/v1/entitlement-grants/{id}/retry'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
170
|
+
|
|
171
|
+
# query parameters
|
|
172
|
+
query_params = opts[:query_params] || {}
|
|
173
|
+
|
|
174
|
+
# header parameters
|
|
175
|
+
header_params = opts[:header_params] || {}
|
|
176
|
+
# HTTP header 'Accept' (if needed)
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
178
|
+
|
|
179
|
+
# form parameters
|
|
180
|
+
form_params = opts[:form_params] || {}
|
|
181
|
+
|
|
182
|
+
# http body (model)
|
|
183
|
+
post_body = opts[:debug_body]
|
|
184
|
+
|
|
185
|
+
# return_type
|
|
186
|
+
return_type = opts[:debug_return_type] || 'EntitlementGrantResponseDto'
|
|
187
|
+
|
|
188
|
+
# auth_names
|
|
189
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
190
|
+
|
|
191
|
+
new_options = opts.merge(
|
|
192
|
+
:operation => :"EntitlementGrantsApi.entitlement_grants_retry",
|
|
193
|
+
:header_params => header_params,
|
|
194
|
+
:query_params => query_params,
|
|
195
|
+
:form_params => form_params,
|
|
196
|
+
:body => post_body,
|
|
197
|
+
:auth_names => auth_names,
|
|
198
|
+
:return_type => return_type
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
202
|
+
if @api_client.config.debugging
|
|
203
|
+
@api_client.config.logger.debug "API called: EntitlementGrantsApi#entitlement_grants_retry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
204
|
+
end
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Manually Revoke Entitlement Grant
|
|
209
|
+
# Manually remove the customer collaborator access from the repository and revoke the grant.
|
|
210
|
+
# @param id [String] The unique grant ID
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @return [EntitlementGrantResponseDto]
|
|
213
|
+
def entitlement_grants_revoke(id, opts = {})
|
|
214
|
+
data, _status_code, _headers = entitlement_grants_revoke_with_http_info(id, opts)
|
|
215
|
+
data
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Manually Revoke Entitlement Grant
|
|
219
|
+
# Manually remove the customer collaborator access from the repository and revoke the grant.
|
|
220
|
+
# @param id [String] The unique grant ID
|
|
221
|
+
# @param [Hash] opts the optional parameters
|
|
222
|
+
# @return [Array<(EntitlementGrantResponseDto, Integer, Hash)>] EntitlementGrantResponseDto data, response status code and response headers
|
|
223
|
+
def entitlement_grants_revoke_with_http_info(id, opts = {})
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug 'Calling API: EntitlementGrantsApi.entitlement_grants_revoke ...'
|
|
226
|
+
end
|
|
227
|
+
# verify the required parameter 'id' is set
|
|
228
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
229
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling EntitlementGrantsApi.entitlement_grants_revoke"
|
|
230
|
+
end
|
|
231
|
+
# resource path
|
|
232
|
+
local_var_path = '/v1/entitlement-grants/{id}/revoke'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
233
|
+
|
|
234
|
+
# query parameters
|
|
235
|
+
query_params = opts[:query_params] || {}
|
|
236
|
+
|
|
237
|
+
# header parameters
|
|
238
|
+
header_params = opts[:header_params] || {}
|
|
239
|
+
# HTTP header 'Accept' (if needed)
|
|
240
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
241
|
+
|
|
242
|
+
# form parameters
|
|
243
|
+
form_params = opts[:form_params] || {}
|
|
244
|
+
|
|
245
|
+
# http body (model)
|
|
246
|
+
post_body = opts[:debug_body]
|
|
247
|
+
|
|
248
|
+
# return_type
|
|
249
|
+
return_type = opts[:debug_return_type] || 'EntitlementGrantResponseDto'
|
|
250
|
+
|
|
251
|
+
# auth_names
|
|
252
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
253
|
+
|
|
254
|
+
new_options = opts.merge(
|
|
255
|
+
:operation => :"EntitlementGrantsApi.entitlement_grants_revoke",
|
|
256
|
+
:header_params => header_params,
|
|
257
|
+
:query_params => query_params,
|
|
258
|
+
:form_params => form_params,
|
|
259
|
+
:body => post_body,
|
|
260
|
+
:auth_names => auth_names,
|
|
261
|
+
:return_type => return_type
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug "API called: EntitlementGrantsApi#entitlement_grants_revoke\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
267
|
+
end
|
|
268
|
+
return data, status_code, headers
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class GitHubIntegrationApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get GitHub App Installation URL
|
|
23
|
+
# Generates the URL to install the system-wide GitHub App onto the merchant's GitHub account/org.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def github_get_install_url(opts = {})
|
|
28
|
+
github_get_install_url_with_http_info(opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Get GitHub App Installation URL
|
|
33
|
+
# Generates the URL to install the system-wide GitHub App onto the merchant's GitHub account/org.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def github_get_install_url_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: GitHubIntegrationApi.github_get_install_url ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/v1/github/install'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = opts[:header_params] || {}
|
|
50
|
+
|
|
51
|
+
# form parameters
|
|
52
|
+
form_params = opts[:form_params] || {}
|
|
53
|
+
|
|
54
|
+
# http body (model)
|
|
55
|
+
post_body = opts[:debug_body]
|
|
56
|
+
|
|
57
|
+
# return_type
|
|
58
|
+
return_type = opts[:debug_return_type]
|
|
59
|
+
|
|
60
|
+
# auth_names
|
|
61
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
62
|
+
|
|
63
|
+
new_options = opts.merge(
|
|
64
|
+
:operation => :"GitHubIntegrationApi.github_get_install_url",
|
|
65
|
+
:header_params => header_params,
|
|
66
|
+
:query_params => query_params,
|
|
67
|
+
:form_params => form_params,
|
|
68
|
+
:body => post_body,
|
|
69
|
+
:auth_names => auth_names,
|
|
70
|
+
:return_type => return_type
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
74
|
+
if @api_client.config.debugging
|
|
75
|
+
@api_client.config.logger.debug "API called: GitHubIntegrationApi#github_get_install_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
|
+
end
|
|
77
|
+
return data, status_code, headers
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List Available GitHub Repositories
|
|
81
|
+
# Retrieves all repositories accessible by the merchant's installed GitHub App.
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [Array<GithubReposResponseDto>]
|
|
84
|
+
def github_list_repos(opts = {})
|
|
85
|
+
data, _status_code, _headers = github_list_repos_with_http_info(opts)
|
|
86
|
+
data
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# List Available GitHub Repositories
|
|
90
|
+
# Retrieves all repositories accessible by the merchant's installed GitHub App.
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [Array<(Array<GithubReposResponseDto>, Integer, Hash)>] Array<GithubReposResponseDto> data, response status code and response headers
|
|
93
|
+
def github_list_repos_with_http_info(opts = {})
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug 'Calling API: GitHubIntegrationApi.github_list_repos ...'
|
|
96
|
+
end
|
|
97
|
+
# resource path
|
|
98
|
+
local_var_path = '/v1/github/repos'
|
|
99
|
+
|
|
100
|
+
# query parameters
|
|
101
|
+
query_params = opts[:query_params] || {}
|
|
102
|
+
|
|
103
|
+
# header parameters
|
|
104
|
+
header_params = opts[:header_params] || {}
|
|
105
|
+
# HTTP header 'Accept' (if needed)
|
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
107
|
+
|
|
108
|
+
# form parameters
|
|
109
|
+
form_params = opts[:form_params] || {}
|
|
110
|
+
|
|
111
|
+
# http body (model)
|
|
112
|
+
post_body = opts[:debug_body]
|
|
113
|
+
|
|
114
|
+
# return_type
|
|
115
|
+
return_type = opts[:debug_return_type] || 'Array<GithubReposResponseDto>'
|
|
116
|
+
|
|
117
|
+
# auth_names
|
|
118
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
119
|
+
|
|
120
|
+
new_options = opts.merge(
|
|
121
|
+
:operation => :"GitHubIntegrationApi.github_list_repos",
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
131
|
+
if @api_client.config.debugging
|
|
132
|
+
@api_client.config.logger.debug "API called: GitHubIntegrationApi#github_list_repos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
133
|
+
end
|
|
134
|
+
return data, status_code, headers
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -66,7 +66,7 @@ module Solifyn
|
|
|
66
66
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
67
67
|
|
|
68
68
|
# auth_names
|
|
69
|
-
auth_names = opts[:debug_auth_names] || []
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
70
70
|
|
|
71
71
|
new_options = opts.merge(
|
|
72
72
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_create",
|
|
@@ -125,7 +125,7 @@ module Solifyn
|
|
|
125
125
|
return_type = opts[:debug_return_type]
|
|
126
126
|
|
|
127
127
|
# auth_names
|
|
128
|
-
auth_names = opts[:debug_auth_names] || []
|
|
128
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
129
129
|
|
|
130
130
|
new_options = opts.merge(
|
|
131
131
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_delete",
|
|
@@ -186,7 +186,7 @@ module Solifyn
|
|
|
186
186
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
187
187
|
|
|
188
188
|
# auth_names
|
|
189
|
-
auth_names = opts[:debug_auth_names] || []
|
|
189
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
190
190
|
|
|
191
191
|
new_options = opts.merge(
|
|
192
192
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_get",
|
|
@@ -247,7 +247,7 @@ module Solifyn
|
|
|
247
247
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointHeadersResponseDto'
|
|
248
248
|
|
|
249
249
|
# auth_names
|
|
250
|
-
auth_names = opts[:debug_auth_names] || []
|
|
250
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
251
251
|
|
|
252
252
|
new_options = opts.merge(
|
|
253
253
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_get_headers",
|
|
@@ -308,7 +308,7 @@ module Solifyn
|
|
|
308
308
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointSecretResponseDto'
|
|
309
309
|
|
|
310
310
|
# auth_names
|
|
311
|
-
auth_names = opts[:debug_auth_names] || []
|
|
311
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
312
312
|
|
|
313
313
|
new_options = opts.merge(
|
|
314
314
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_get_secret",
|
|
@@ -363,7 +363,7 @@ module Solifyn
|
|
|
363
363
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointListResponseDto'
|
|
364
364
|
|
|
365
365
|
# auth_names
|
|
366
|
-
auth_names = opts[:debug_auth_names] || []
|
|
366
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
367
367
|
|
|
368
368
|
new_options = opts.merge(
|
|
369
369
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_list",
|
|
@@ -433,7 +433,7 @@ module Solifyn
|
|
|
433
433
|
return_type = opts[:debug_return_type]
|
|
434
434
|
|
|
435
435
|
# auth_names
|
|
436
|
-
auth_names = opts[:debug_auth_names] || []
|
|
436
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
437
437
|
|
|
438
438
|
new_options = opts.merge(
|
|
439
439
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_rotate_secret",
|
|
@@ -505,7 +505,7 @@ module Solifyn
|
|
|
505
505
|
return_type = opts[:debug_return_type] || 'OperationalWebhookEndpointResponseDto'
|
|
506
506
|
|
|
507
507
|
# auth_names
|
|
508
|
-
auth_names = opts[:debug_auth_names] || []
|
|
508
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
509
509
|
|
|
510
510
|
new_options = opts.merge(
|
|
511
511
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_update",
|
|
@@ -575,7 +575,7 @@ module Solifyn
|
|
|
575
575
|
return_type = opts[:debug_return_type]
|
|
576
576
|
|
|
577
577
|
# auth_names
|
|
578
|
-
auth_names = opts[:debug_auth_names] || []
|
|
578
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
579
579
|
|
|
580
580
|
new_options = opts.merge(
|
|
581
581
|
:operation => :"WebhookEndpointApi.operational_webhook_controller_update_headers",
|
|
@@ -157,8 +157,8 @@ module Solifyn
|
|
|
157
157
|
attr_accessor :force_ending_format
|
|
158
158
|
|
|
159
159
|
def initialize
|
|
160
|
-
@scheme = '
|
|
161
|
-
@host = '
|
|
160
|
+
@scheme = 'https'
|
|
161
|
+
@host = 'api.solifyn.com'
|
|
162
162
|
@base_path = ''
|
|
163
163
|
@server_index = nil
|
|
164
164
|
@server_operation_index = {}
|
|
@@ -259,11 +259,11 @@ module Solifyn
|
|
|
259
259
|
def server_settings
|
|
260
260
|
[
|
|
261
261
|
{
|
|
262
|
-
url: "
|
|
262
|
+
url: "https://api.solifyn.com",
|
|
263
263
|
description: "Live environment",
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
url: "
|
|
266
|
+
url: "https://sandbox-api.solifyn.com",
|
|
267
267
|
description: "Test environment",
|
|
268
268
|
}
|
|
269
269
|
]
|
|
@@ -48,6 +48,9 @@ module Solifyn
|
|
|
48
48
|
# The details of the product being purchased
|
|
49
49
|
attr_accessor :product
|
|
50
50
|
|
|
51
|
+
# List of entitlement grants (e.g. GitHub repo invites) associated with this checkout.
|
|
52
|
+
attr_accessor :entitlement_grants
|
|
53
|
+
|
|
51
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
55
|
def self.attribute_map
|
|
53
56
|
{
|
|
@@ -61,7 +64,8 @@ module Solifyn
|
|
|
61
64
|
:'session_id' => :'session_id',
|
|
62
65
|
:'payment_id' => :'paymentId',
|
|
63
66
|
:'checkout_url' => :'checkoutUrl',
|
|
64
|
-
:'product' => :'product'
|
|
67
|
+
:'product' => :'product',
|
|
68
|
+
:'entitlement_grants' => :'entitlementGrants'
|
|
65
69
|
}
|
|
66
70
|
end
|
|
67
71
|
|
|
@@ -83,7 +87,8 @@ module Solifyn
|
|
|
83
87
|
:'session_id' => :'String',
|
|
84
88
|
:'payment_id' => :'String',
|
|
85
89
|
:'checkout_url' => :'String',
|
|
86
|
-
:'product' => :'Product'
|
|
90
|
+
:'product' => :'Product',
|
|
91
|
+
:'entitlement_grants' => :'Array<Object>'
|
|
87
92
|
}
|
|
88
93
|
end
|
|
89
94
|
|
|
@@ -161,6 +166,12 @@ module Solifyn
|
|
|
161
166
|
if attributes.key?(:'product')
|
|
162
167
|
self.product = attributes[:'product']
|
|
163
168
|
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'entitlement_grants')
|
|
171
|
+
if (value = attributes[:'entitlement_grants']).is_a?(Array)
|
|
172
|
+
self.entitlement_grants = value
|
|
173
|
+
end
|
|
174
|
+
end
|
|
164
175
|
end
|
|
165
176
|
|
|
166
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -218,7 +229,8 @@ module Solifyn
|
|
|
218
229
|
session_id == o.session_id &&
|
|
219
230
|
payment_id == o.payment_id &&
|
|
220
231
|
checkout_url == o.checkout_url &&
|
|
221
|
-
product == o.product
|
|
232
|
+
product == o.product &&
|
|
233
|
+
entitlement_grants == o.entitlement_grants
|
|
222
234
|
end
|
|
223
235
|
|
|
224
236
|
# @see the `==` method
|
|
@@ -230,7 +242,7 @@ module Solifyn
|
|
|
230
242
|
# Calculates hash code according to all attributes.
|
|
231
243
|
# @return [Integer] Hash code
|
|
232
244
|
def hash
|
|
233
|
-
[id, price, currency, store_name, status, billing_address, custom_fields, session_id, payment_id, checkout_url, product].hash
|
|
245
|
+
[id, price, currency, store_name, status, billing_address, custom_fields, session_id, payment_id, checkout_url, product, entitlement_grants].hash
|
|
234
246
|
end
|
|
235
247
|
|
|
236
248
|
# Builds the object from hash
|