solifyn 1.0.5 → 1.0.7
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/LICENSE +202 -0
- data/README.md +6 -10
- data/docs/AffiliateApi.md +845 -0
- data/docs/BillingApi.md +68 -0
- data/docs/BrandsApi.md +286 -0
- data/docs/Business.md +56 -0
- data/docs/BusinessCreate.md +18 -0
- data/docs/BusinessFullCreate.md +26 -0
- data/docs/BusinessFullCreateResponse.md +20 -0
- data/docs/BusinessesApi.md +350 -0
- data/docs/ChatApi.md +246 -0
- data/docs/CollectionProductDto.md +0 -6
- data/docs/CommunityApi.md +497 -0
- data/docs/DefaultApi.md +0 -284
- data/docs/EntitlementGrantResponseDto.md +0 -8
- data/docs/PartnerApi.md +125 -0
- data/docs/PayoutAccessToken.md +20 -0
- data/docs/PayoutAccount.md +22 -0
- data/docs/PayoutAccountLink.md +20 -0
- data/docs/PayoutMethod.md +24 -0
- data/docs/PayoutMethodList.md +18 -0
- data/docs/PayoutVerification.md +24 -0
- data/docs/PayoutVerificationList.md +18 -0
- data/docs/PayoutsApi.md +579 -0
- data/docs/Product.md +0 -6
- data/docs/ProductCreate.md +0 -6
- data/docs/ProductUpdate.md +0 -6
- data/docs/TicketApi.md +318 -0
- data/docs/UserPage.md +26 -0
- data/docs/UserProfileThemesApi.md +345 -0
- data/docs/UserSettings.md +34 -0
- data/docs/UserSettingsUpdate.md +76 -0
- data/docs/UserStats.md +20 -0
- data/docs/UserTheme.md +26 -0
- data/docs/UserThemeUpdate.md +22 -0
- data/docs/WhopApiKeysRotation.md +18 -0
- data/docs/Withdrawal.md +46 -0
- data/docs/WithdrawalCreate.md +22 -0
- data/docs/WithdrawalList.md +20 -0
- data/git_push.sh +2 -2
- data/lib/solifyn/api/affiliate_api.rb +760 -0
- data/lib/solifyn/api/billing_api.rb +77 -0
- data/lib/solifyn/api/brands_api.rb +284 -0
- data/lib/solifyn/api/businesses_api.rb +338 -0
- data/lib/solifyn/api/chat_api.rb +232 -0
- data/lib/solifyn/api/community_api.rb +466 -0
- data/lib/solifyn/api/default_api.rb +0 -248
- data/lib/solifyn/api/{discord_integration_api.rb → partner_api.rb} +19 -32
- data/lib/solifyn/api/payouts_api.rb +520 -0
- data/lib/solifyn/api/ticket_api.rb +328 -0
- data/lib/solifyn/api/user_profile_themes_api.rb +313 -0
- data/lib/solifyn/models/business.rb +482 -0
- data/lib/solifyn/models/business_create.rb +241 -0
- data/lib/solifyn/models/business_full_create.rb +288 -0
- data/lib/solifyn/models/business_full_create_response.rb +239 -0
- data/lib/solifyn/models/collection_product_dto.rb +1 -52
- data/lib/solifyn/models/entitlement_grant_response_dto.rb +1 -41
- data/lib/solifyn/models/payout_access_token.rb +239 -0
- data/lib/solifyn/models/payout_account.rb +249 -0
- data/lib/solifyn/models/payout_account_link.rb +239 -0
- data/lib/solifyn/models/{discord_roles_response_dto.rb → payout_method.rb} +34 -41
- data/lib/solifyn/models/payout_method_list.rb +224 -0
- data/lib/solifyn/models/{webhook_entitlement_grant_payload.rb → payout_verification.rb} +41 -118
- data/lib/solifyn/models/payout_verification_list.rb +224 -0
- data/lib/solifyn/models/product.rb +1 -52
- data/lib/solifyn/models/product_create.rb +1 -33
- data/lib/solifyn/models/product_update.rb +1 -33
- data/lib/solifyn/models/user_page.rb +290 -0
- data/lib/solifyn/models/user_settings.rb +337 -0
- data/lib/solifyn/models/user_settings_update.rb +505 -0
- data/lib/solifyn/models/user_stats.rb +241 -0
- data/lib/solifyn/models/user_theme.rb +276 -0
- data/lib/solifyn/models/user_theme_update.rb +235 -0
- data/lib/solifyn/models/whop_api_keys_rotation.rb +222 -0
- data/lib/solifyn/models/withdrawal.rb +411 -0
- data/lib/solifyn/models/withdrawal_create.rb +249 -0
- data/lib/solifyn/models/withdrawal_list.rb +241 -0
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +0 -3
- data/spec/api/affiliate_api_spec.rb +165 -0
- data/spec/api/billing_api_spec.rb +46 -0
- data/spec/api/brands_api_spec.rb +83 -0
- data/spec/api/businesses_api_spec.rb +93 -0
- data/spec/api/chat_api_spec.rb +72 -0
- data/spec/api/checkout_api_spec.rb +0 -12
- data/spec/api/community_api_spec.rb +113 -0
- data/spec/api/default_api_spec.rb +11 -59
- data/spec/api/developer_api_spec.rb +29 -52
- data/spec/api/{discord_integration_api_spec.rb → partner_api_spec.rb} +11 -16
- data/spec/api/payouts_api_spec.rb +133 -0
- data/spec/api/ticket_api_spec.rb +86 -0
- data/spec/api/user_profile_themes_api_spec.rb +91 -0
- data/spec/models/business_create_spec.rb +36 -0
- data/spec/models/business_full_create_response_spec.rb +42 -0
- data/spec/models/business_full_create_spec.rb +60 -0
- data/spec/models/business_spec.rb +150 -0
- data/spec/models/checkout_session_details_dto_spec.rb +0 -6
- data/spec/models/collection_product_dto_spec.rb +0 -28
- data/spec/models/order_spec.rb +0 -6
- data/spec/models/payout_access_token_spec.rb +42 -0
- data/spec/models/payout_account_link_spec.rb +42 -0
- data/spec/models/payout_account_spec.rb +48 -0
- data/spec/models/payout_method_list_spec.rb +36 -0
- data/spec/models/{discord_roles_response_dto_spec.rb → payout_method_spec.rb} +9 -9
- data/spec/models/payout_verification_list_spec.rb +36 -0
- data/spec/models/payout_verification_spec.rb +54 -0
- data/spec/models/product_create_spec.rb +0 -28
- data/spec/models/product_spec.rb +0 -28
- data/spec/models/product_update_spec.rb +0 -28
- data/spec/models/user_page_spec.rb +60 -0
- data/spec/models/user_settings_spec.rb +84 -0
- data/spec/models/user_settings_update_spec.rb +210 -0
- data/spec/models/user_stats_spec.rb +42 -0
- data/spec/models/user_theme_spec.rb +60 -0
- data/spec/models/user_theme_update_spec.rb +48 -0
- data/spec/models/whop_api_keys_rotation_spec.rb +36 -0
- data/spec/models/withdrawal_create_spec.rb +48 -0
- data/spec/models/withdrawal_list_spec.rb +42 -0
- data/spec/models/{webhook_entitlement_grant_payload_spec.rb → withdrawal_spec.rb} +23 -17
- metadata +258 -145
- data/docs/DiscordIntegrationApi.md +0 -135
- data/docs/DiscordRolesResponseDto.md +0 -24
- data/docs/WebhookEntitlementGrantPayload.md +0 -44
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# Solifyn::DiscordIntegrationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.solifyn.com*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**discord_get_install_url**](DiscordIntegrationApi.md#discord_get_install_url) | **GET** /v1/discord/install | Get Discord Bot Installation URL |
|
|
8
|
-
| [**discord_list_roles**](DiscordIntegrationApi.md#discord_list_roles) | **GET** /v1/discord/roles | List Guild Discord Roles |
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## discord_get_install_url
|
|
12
|
-
|
|
13
|
-
> discord_get_install_url(opts)
|
|
14
|
-
|
|
15
|
-
Get Discord Bot Installation URL
|
|
16
|
-
|
|
17
|
-
Generates the URL to invite the system-wide Discord Bot onto the merchant's Discord server.
|
|
18
|
-
|
|
19
|
-
### Examples
|
|
20
|
-
|
|
21
|
-
```ruby
|
|
22
|
-
require 'time'
|
|
23
|
-
require 'solifyn'
|
|
24
|
-
|
|
25
|
-
api_instance = Solifyn::DiscordIntegrationApi.new
|
|
26
|
-
opts = {
|
|
27
|
-
product_id: 'product_id_example' # String | Optional Product ID to redirect back to after installation
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
begin
|
|
31
|
-
# Get Discord Bot Installation URL
|
|
32
|
-
api_instance.discord_get_install_url(opts)
|
|
33
|
-
rescue Solifyn::ApiError => e
|
|
34
|
-
puts "Error when calling DiscordIntegrationApi->discord_get_install_url: #{e}"
|
|
35
|
-
end
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
#### Using the discord_get_install_url_with_http_info variant
|
|
39
|
-
|
|
40
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
41
|
-
|
|
42
|
-
> <Array(nil, Integer, Hash)> discord_get_install_url_with_http_info(opts)
|
|
43
|
-
|
|
44
|
-
```ruby
|
|
45
|
-
begin
|
|
46
|
-
# Get Discord Bot Installation URL
|
|
47
|
-
data, status_code, headers = api_instance.discord_get_install_url_with_http_info(opts)
|
|
48
|
-
p status_code # => 2xx
|
|
49
|
-
p headers # => { ... }
|
|
50
|
-
p data # => nil
|
|
51
|
-
rescue Solifyn::ApiError => e
|
|
52
|
-
puts "Error when calling DiscordIntegrationApi->discord_get_install_url_with_http_info: #{e}"
|
|
53
|
-
end
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Parameters
|
|
57
|
-
|
|
58
|
-
| Name | Type | Description | Notes |
|
|
59
|
-
| ---- | ---- | ----------- | ----- |
|
|
60
|
-
| **product_id** | **String** | Optional Product ID to redirect back to after installation | [optional] |
|
|
61
|
-
|
|
62
|
-
### Return type
|
|
63
|
-
|
|
64
|
-
nil (empty response body)
|
|
65
|
-
|
|
66
|
-
### Authorization
|
|
67
|
-
|
|
68
|
-
No authorization required
|
|
69
|
-
|
|
70
|
-
### HTTP request headers
|
|
71
|
-
|
|
72
|
-
- **Content-Type**: Not defined
|
|
73
|
-
- **Accept**: Not defined
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## discord_list_roles
|
|
77
|
-
|
|
78
|
-
> <Array<DiscordRolesResponseDto>> discord_list_roles
|
|
79
|
-
|
|
80
|
-
List Guild Discord Roles
|
|
81
|
-
|
|
82
|
-
Retrieves all roles available in the connected merchant's Discord server/guild.
|
|
83
|
-
|
|
84
|
-
### Examples
|
|
85
|
-
|
|
86
|
-
```ruby
|
|
87
|
-
require 'time'
|
|
88
|
-
require 'solifyn'
|
|
89
|
-
|
|
90
|
-
api_instance = Solifyn::DiscordIntegrationApi.new
|
|
91
|
-
|
|
92
|
-
begin
|
|
93
|
-
# List Guild Discord Roles
|
|
94
|
-
result = api_instance.discord_list_roles
|
|
95
|
-
p result
|
|
96
|
-
rescue Solifyn::ApiError => e
|
|
97
|
-
puts "Error when calling DiscordIntegrationApi->discord_list_roles: #{e}"
|
|
98
|
-
end
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
#### Using the discord_list_roles_with_http_info variant
|
|
102
|
-
|
|
103
|
-
This returns an Array which contains the response data, status code and headers.
|
|
104
|
-
|
|
105
|
-
> <Array(<Array<DiscordRolesResponseDto>>, Integer, Hash)> discord_list_roles_with_http_info
|
|
106
|
-
|
|
107
|
-
```ruby
|
|
108
|
-
begin
|
|
109
|
-
# List Guild Discord Roles
|
|
110
|
-
data, status_code, headers = api_instance.discord_list_roles_with_http_info
|
|
111
|
-
p status_code # => 2xx
|
|
112
|
-
p headers # => { ... }
|
|
113
|
-
p data # => <Array<DiscordRolesResponseDto>>
|
|
114
|
-
rescue Solifyn::ApiError => e
|
|
115
|
-
puts "Error when calling DiscordIntegrationApi->discord_list_roles_with_http_info: #{e}"
|
|
116
|
-
end
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
### Parameters
|
|
120
|
-
|
|
121
|
-
This endpoint does not need any parameter.
|
|
122
|
-
|
|
123
|
-
### Return type
|
|
124
|
-
|
|
125
|
-
[**Array<DiscordRolesResponseDto>**](DiscordRolesResponseDto.md)
|
|
126
|
-
|
|
127
|
-
### Authorization
|
|
128
|
-
|
|
129
|
-
No authorization required
|
|
130
|
-
|
|
131
|
-
### HTTP request headers
|
|
132
|
-
|
|
133
|
-
- **Content-Type**: Not defined
|
|
134
|
-
- **Accept**: application/json
|
|
135
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Solifyn::DiscordRolesResponseDto
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The Discord Role ID | |
|
|
8
|
-
| **name** | **String** | The Discord Role Name | |
|
|
9
|
-
| **position** | **Float** | The position of the role in the server hierarchy | |
|
|
10
|
-
| **color** | **Float** | The color of the role (hex integer code) | |
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```ruby
|
|
15
|
-
require 'solifyn'
|
|
16
|
-
|
|
17
|
-
instance = Solifyn::DiscordRolesResponseDto.new(
|
|
18
|
-
id: 876543210987654321,
|
|
19
|
-
name: VIP Member,
|
|
20
|
-
position: 3,
|
|
21
|
-
color: 3447003
|
|
22
|
-
)
|
|
23
|
-
```
|
|
24
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# Solifyn::WebhookEntitlementGrantPayload
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The unique entitlement grant ID. | [optional] |
|
|
8
|
-
| **business_id** | **String** | The business ID context. | [optional] |
|
|
9
|
-
| **customer_id** | **String** | The customer ID. | [optional] |
|
|
10
|
-
| **payment_id** | **String** | Associated payment transaction ID. | [optional] |
|
|
11
|
-
| **product_id** | **String** | The purchased product ID. | [optional] |
|
|
12
|
-
| **type** | **String** | The type of entitlement (e.g. GITHUB). | [optional] |
|
|
13
|
-
| **github_repo** | **String** | Target GitHub repository (owner/repo) if type is GITHUB. | [optional] |
|
|
14
|
-
| **github_permission** | **String** | GitHub access permission level if type is GITHUB. | [optional] |
|
|
15
|
-
| **github_username** | **String** | The connected customer GitHub username. | [optional] |
|
|
16
|
-
| **status** | **String** | Delivery status of the collaborator invite (PENDING, DELIVERED, FAILED, REVOKED). | [optional] |
|
|
17
|
-
| **oauth_url** | **String** | OAuth URL to redirect the customer to. | [optional] |
|
|
18
|
-
| **error_details** | **String** | Error message if invitation delivery failed. | [optional] |
|
|
19
|
-
| **created_at** | **Time** | | [optional] |
|
|
20
|
-
| **updated_at** | **Time** | | [optional] |
|
|
21
|
-
|
|
22
|
-
## Example
|
|
23
|
-
|
|
24
|
-
```ruby
|
|
25
|
-
require 'solifyn'
|
|
26
|
-
|
|
27
|
-
instance = Solifyn::WebhookEntitlementGrantPayload.new(
|
|
28
|
-
id: grant_123456,
|
|
29
|
-
business_id: biz_123456,
|
|
30
|
-
customer_id: cust_123456,
|
|
31
|
-
payment_id: pay_123456,
|
|
32
|
-
product_id: prod_123456,
|
|
33
|
-
type: GITHUB,
|
|
34
|
-
github_repo: solifyn/premium-app,
|
|
35
|
-
github_permission: pull,
|
|
36
|
-
github_username: octocat,
|
|
37
|
-
status: PENDING,
|
|
38
|
-
oauth_url: https://github.com/login/oauth/authorize...,
|
|
39
|
-
error_details: Permission denied,
|
|
40
|
-
created_at: null,
|
|
41
|
-
updated_at: null
|
|
42
|
-
)
|
|
43
|
-
```
|
|
44
|
-
|