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
@@ -1,76 +0,0 @@
1
- # Solifyn::UserSettingsUpdate
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **subdomain** | **String** | The custom store subdomain | [optional] |
8
- | **store_name** | **String** | The store name shown to customers | [optional] |
9
- | **social_links** | **Object** | JSON structure listing social/contact URLs | [optional] |
10
- | **page_title** | **String** | SEO title tag of the store page | [optional] |
11
- | **seo_description** | **String** | SEO description meta tag | [optional] |
12
- | **seo_image** | **String** | SEO preview image URL | [optional] |
13
- | **favicon_url** | **String** | Favicon image URL | [optional] |
14
- | **google_analytics_id** | **String** | Google Analytics 4 Property ID | [optional] |
15
- | **google_tag_manager_id** | **String** | Google Tag Manager Container ID | [optional] |
16
- | **meta_pixel_id** | **String** | Facebook Meta Pixel ID | [optional] |
17
- | **logo_url** | **String** | Company/Store logo image URL | [optional] |
18
- | **business_title** | **String** | Name of the business entity | [optional] |
19
- | **statement_descriptor** | **String** | Credit card statement descriptor | [optional] |
20
- | **default_currency** | **String** | Three-letter currency symbol | [optional] |
21
- | **email** | **String** | User contact email | [optional] |
22
- | **first_name** | **String** | User first name | [optional] |
23
- | **last_name** | **String** | User last name | [optional] |
24
- | **avatar_url** | **String** | User profile avatar URL | [optional] |
25
- | **payout_threshold** | **Float** | Minimum balance required for automatic payouts in cents | [optional] |
26
- | **notify_on_success** | **Boolean** | Send email notifications on successful payments | [optional] |
27
- | **send_license_key_email** | **Boolean** | Send license keys automatically via email | [optional] |
28
- | **send_digital_file_email** | **Boolean** | Send download links automatically via email | [optional] |
29
- | **notify_on_subscription_plan_changed** | **Boolean** | Send email notifications on subscription plan changes | [optional] |
30
- | **notify_on_subscription_set_to_cancel** | **Boolean** | Send email notifications when subscription is set to cancel | [optional] |
31
- | **notify_on_subscription_cancelled** | **Boolean** | Send email notifications when subscription is cancelled | [optional] |
32
- | **notify_on_refund_successful** | **Boolean** | Send email notifications when refund is successful | [optional] |
33
- | **notify_on_payment_failed** | **Boolean** | Send email notifications when payment fails | [optional] |
34
- | **notify_on_subscription_renewal_failed** | **Boolean** | Send email notifications when subscription renewal fails | [optional] |
35
- | **notify_on_subscription_trial_ending** | **Boolean** | Send email notifications when subscription trial is ending | [optional] |
36
- | **notify_on_subscription_paused** | **Boolean** | Send email notifications when subscription is paused | [optional] |
37
-
38
- ## Example
39
-
40
- ```ruby
41
- require 'solifyn'
42
-
43
- instance = Solifyn::UserSettingsUpdate.new(
44
- subdomain: acme,
45
- store_name: Acme Store,
46
- social_links: null,
47
- page_title: Acme - Shop,
48
- seo_description: Buy Acme products here,
49
- seo_image: https://acme.com/seo.png,
50
- favicon_url: https://acme.com/favicon.ico,
51
- google_analytics_id: G-XXXXXX,
52
- google_tag_manager_id: GTM-XXXXXX,
53
- meta_pixel_id: 1234567890,
54
- logo_url: https://acme.com/logo.png,
55
- business_title: Acme Inc,
56
- statement_descriptor: ACME SHOP,
57
- default_currency: USD,
58
- email: contact@acme.com,
59
- first_name: John,
60
- last_name: Doe,
61
- avatar_url: https://acme.com/profile.png,
62
- payout_threshold: 5000,
63
- notify_on_success: true,
64
- send_license_key_email: true,
65
- send_digital_file_email: true,
66
- notify_on_subscription_plan_changed: true,
67
- notify_on_subscription_set_to_cancel: true,
68
- notify_on_subscription_cancelled: true,
69
- notify_on_refund_successful: true,
70
- notify_on_payment_failed: true,
71
- notify_on_subscription_renewal_failed: true,
72
- notify_on_subscription_trial_ending: true,
73
- notify_on_subscription_paused: true
74
- )
75
- ```
76
-
data/docs/UserStats.md DELETED
@@ -1,20 +0,0 @@
1
- # Solifyn::UserStats
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **summary** | [**DashboardStatsDto**](DashboardStatsDto.md) | Core metric summaries | |
8
- | **chart_data** | **Array<Object>** | Graph data plotting daily analytics over past month | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'solifyn'
14
-
15
- instance = Solifyn::UserStats.new(
16
- summary: null,
17
- chart_data: [{"date":"2025-01-01","revenue":12000,"orders":3}]
18
- )
19
- ```
20
-
data/docs/UserTheme.md DELETED
@@ -1,26 +0,0 @@
1
- # Solifyn::UserTheme
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | Theme configuration ID | |
8
- | **config** | **Object** | Styling config JSON (fontFamily, borderRadius, colors) | |
9
- | **avatar_url** | **String** | Logo/avatar image URL | [optional] |
10
- | **banner_url** | **String** | Header banner image URL | [optional] |
11
- | **business_id** | **String** | The linked business ID | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'solifyn'
17
-
18
- instance = Solifyn::UserTheme.new(
19
- id: theme_123,
20
- config: {"theme":{"primaryColor":"#0f172a","fontFamily":"Inter"}},
21
- avatar_url: https://acme.com/avatar.png,
22
- banner_url: https://acme.com/banner.png,
23
- business_id: biz_123
24
- )
25
- ```
26
-
@@ -1,22 +0,0 @@
1
- # Solifyn::UserThemeUpdate
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **config** | **Object** | JSON object specifying styling parameters (colors, fonts, borders) | [optional] |
8
- | **avatar_url** | **String** | URL of the store avatar/logo | [optional] |
9
- | **banner_url** | **String** | URL of the store banner header image | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'solifyn'
15
-
16
- instance = Solifyn::UserThemeUpdate.new(
17
- config: {"theme":{"primaryColor":"#0f172a","fontFamily":"Inter"}},
18
- avatar_url: https://acme.com/avatar.png,
19
- banner_url: https://acme.com/banner.png
20
- )
21
- ```
22
-
@@ -1,18 +0,0 @@
1
- # Solifyn::WhopApiKeysRotation
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **success** | **Boolean** | Indicates success status | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'solifyn'
13
-
14
- instance = Solifyn::WhopApiKeysRotation.new(
15
- success: true
16
- )
17
- ```
18
-
data/docs/Withdrawal.md DELETED
@@ -1,46 +0,0 @@
1
- # Solifyn::Withdrawal
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The local withdrawal ID | |
8
- | **whop_id** | **String** | The Whop withdrawal ID | |
9
- | **amount** | **Float** | The amount withdrawn in cents | |
10
- | **currency** | **String** | Three-letter ISO currency code | |
11
- | **status** | **String** | The status of the withdrawal request | |
12
- | **fee_amount** | **Float** | Fee amount charged for the withdrawal in cents | [optional] |
13
- | **fee_type** | **String** | The fee structure type (inclusive or exclusive) | [optional] |
14
- | **markup_fee** | **Float** | Markup fee applied in cents | [optional] |
15
- | **speed** | **String** | Speed of withdrawal (standard, instant) | [optional] |
16
- | **trace_code** | **String** | Bank trace or reference code for tracking the payout | [optional] |
17
- | **payer_name** | **String** | The name of the entity or account paying out | [optional] |
18
- | **error_message** | **String** | Error message if the withdrawal failed | [optional] |
19
- | **business_id** | **String** | The business ID associated with this withdrawal | |
20
- | **created_at** | **Time** | Timestamp when the withdrawal was requested | |
21
- | **updated_at** | **Time** | Timestamp when the withdrawal status was updated | |
22
-
23
- ## Example
24
-
25
- ```ruby
26
- require 'solifyn'
27
-
28
- instance = Solifyn::Withdrawal.new(
29
- id: wd_123,
30
- whop_id: wdrl_123,
31
- amount: 1000,
32
- currency: usd,
33
- status: completed,
34
- fee_amount: 150,
35
- fee_type: exclusive,
36
- markup_fee: 50,
37
- speed: standard,
38
- trace_code: TR123456789,
39
- payer_name: Whop Payments,
40
- error_message: Insufficient funds in balance,
41
- business_id: biz_123,
42
- created_at: 2025-01-01T12:00:00Z,
43
- updated_at: 2025-01-01T12:00:00Z
44
- )
45
- ```
46
-
@@ -1,22 +0,0 @@
1
- # Solifyn::WithdrawalCreate
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **amount** | **Float** | The amount to withdraw in cents (e.g. 1000 for $10.00) | |
8
- | **currency** | **String** | Three-letter ISO currency code (lowercase) | |
9
- | **payout_method_id** | **String** | The ID of the payout method to withdraw to. If omitted, default is used. | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'solifyn'
15
-
16
- instance = Solifyn::WithdrawalCreate.new(
17
- amount: 1000,
18
- currency: usd,
19
- payout_method_id: pm_123
20
- )
21
- ```
22
-
@@ -1,20 +0,0 @@
1
- # Solifyn::WithdrawalList
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **items** | [**Array<Withdrawal>**](Withdrawal.md) | List of withdrawals | |
8
- | **total_count** | **Float** | Total count of withdrawals matching filters | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'solifyn'
14
-
15
- instance = Solifyn::WithdrawalList.new(
16
- items: null,
17
- total_count: 5
18
- )
19
- ```
20
-