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
|
@@ -0,0 +1,72 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Solifyn::ChatApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ChatApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::ChatApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ChatApi' do
|
|
30
|
+
it 'should create an instance of ChatApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::ChatApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for chat_controller_get_merchant_messages
|
|
36
|
+
# @param customer_id
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [nil]
|
|
39
|
+
describe 'chat_controller_get_merchant_messages test' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# unit tests for chat_controller_get_merchant_sessions
|
|
46
|
+
# @param [Hash] opts the optional parameters
|
|
47
|
+
# @return [nil]
|
|
48
|
+
describe 'chat_controller_get_merchant_sessions test' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# unit tests for chat_controller_send_customer_message
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @return [nil]
|
|
57
|
+
describe 'chat_controller_send_customer_message test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# unit tests for chat_controller_send_merchant_message
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [nil]
|
|
66
|
+
describe 'chat_controller_send_merchant_message test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -56,18 +56,6 @@ describe 'CheckoutApi' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
# unit tests for checkout_create_setup
|
|
60
|
-
# Create Setup Checkout Configuration
|
|
61
|
-
# Create a new checkout session in setup mode for collecting cards without immediate charge.
|
|
62
|
-
# @param create_setup_checkout_dto
|
|
63
|
-
# @param [Hash] opts the optional parameters
|
|
64
|
-
# @return [nil]
|
|
65
|
-
describe 'checkout_create_setup test' do
|
|
66
|
-
it 'should work' do
|
|
67
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
59
|
# unit tests for checkout_get_session
|
|
72
60
|
# Get Checkout Session Details
|
|
73
61
|
# Retrieve checkout details to mount the custom embedded checkout.
|
|
@@ -0,0 +1,113 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Solifyn::CommunityApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'CommunityApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::CommunityApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of CommunityApi' do
|
|
30
|
+
it 'should create an instance of CommunityApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::CommunityApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for community_controller_create_post
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @return [nil]
|
|
38
|
+
describe 'community_controller_create_post test' do
|
|
39
|
+
it 'should work' do
|
|
40
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# unit tests for community_controller_delete_post
|
|
45
|
+
# @param id
|
|
46
|
+
# @param [Hash] opts the optional parameters
|
|
47
|
+
# @return [nil]
|
|
48
|
+
describe 'community_controller_delete_post test' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# unit tests for community_controller_get_posts
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @return [nil]
|
|
57
|
+
describe 'community_controller_get_posts test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# unit tests for community_controller_like_post
|
|
64
|
+
# @param id
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @return [nil]
|
|
67
|
+
describe 'community_controller_like_post test' do
|
|
68
|
+
it 'should work' do
|
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# unit tests for community_controller_report_post
|
|
74
|
+
# @param id
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [nil]
|
|
77
|
+
describe 'community_controller_report_post test' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# unit tests for community_controller_share_post
|
|
84
|
+
# @param id
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @return [nil]
|
|
87
|
+
describe 'community_controller_share_post test' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# unit tests for community_controller_unlike_post
|
|
94
|
+
# @param id
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [nil]
|
|
97
|
+
describe 'community_controller_unlike_post test' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# unit tests for community_controller_update_post
|
|
104
|
+
# @param id
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [nil]
|
|
107
|
+
describe 'community_controller_update_post test' do
|
|
108
|
+
it 'should work' do
|
|
109
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
end
|
|
@@ -36,7 +36,7 @@ describe 'DefaultApi' do
|
|
|
36
36
|
# Dispute Created
|
|
37
37
|
# Occurs when a payment charge is disputed by the customer (chargeback initiated).
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [
|
|
39
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
40
40
|
# @return [nil]
|
|
41
41
|
describe 'dispute_created_post test' do
|
|
42
42
|
it 'should work' do
|
|
@@ -48,7 +48,7 @@ describe 'DefaultApi' do
|
|
|
48
48
|
# Dispute Lost
|
|
49
49
|
# Occurs when a dispute challenge is lost and the funds are returned to the cardholder.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @option opts [
|
|
51
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
52
52
|
# @return [nil]
|
|
53
53
|
describe 'dispute_lost_post test' do
|
|
54
54
|
it 'should work' do
|
|
@@ -60,7 +60,7 @@ describe 'DefaultApi' do
|
|
|
60
60
|
# Dispute Won
|
|
61
61
|
# Occurs when a dispute challenge is won by the merchant.
|
|
62
62
|
# @param [Hash] opts the optional parameters
|
|
63
|
-
# @option opts [
|
|
63
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
64
64
|
# @return [nil]
|
|
65
65
|
describe 'dispute_won_post test' do
|
|
66
66
|
it 'should work' do
|
|
@@ -68,59 +68,11 @@ describe 'DefaultApi' do
|
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
# unit tests for entitlement_grant_created_post
|
|
72
|
-
# Entitlement Grant Created
|
|
73
|
-
# Occurs when a new entitlement grant is created (e.g., at checkout completion if the product has GitHub access). The collaborator invitation is pending.
|
|
74
|
-
# @param [Hash] opts the optional parameters
|
|
75
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
76
|
-
# @return [nil]
|
|
77
|
-
describe 'entitlement_grant_created_post test' do
|
|
78
|
-
it 'should work' do
|
|
79
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
# unit tests for entitlement_grant_delivered_post
|
|
84
|
-
# Entitlement Grant Delivered
|
|
85
|
-
# Occurs when the customer successfully connects their GitHub account and the collaborator invitation is successfully delivered.
|
|
86
|
-
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
88
|
-
# @return [nil]
|
|
89
|
-
describe 'entitlement_grant_delivered_post test' do
|
|
90
|
-
it 'should work' do
|
|
91
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
# unit tests for entitlement_grant_failed_post
|
|
96
|
-
# Entitlement Grant Failed
|
|
97
|
-
# Occurs when invitation delivery fails (e.g., if the user GitHub account is flagged or invitation limit is reached).
|
|
98
|
-
# @param [Hash] opts the optional parameters
|
|
99
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
100
|
-
# @return [nil]
|
|
101
|
-
describe 'entitlement_grant_failed_post test' do
|
|
102
|
-
it 'should work' do
|
|
103
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
104
|
-
end
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# unit tests for entitlement_grant_revoked_post
|
|
108
|
-
# Entitlement Grant Revoked
|
|
109
|
-
# Occurs when the customer access is removed from the repository (manually or automatically via subscription cancel/refund).
|
|
110
|
-
# @param [Hash] opts the optional parameters
|
|
111
|
-
# @option opts [WebhookEntitlementGrantPayload] :webhook_entitlement_grant_payload
|
|
112
|
-
# @return [nil]
|
|
113
|
-
describe 'entitlement_grant_revoked_post test' do
|
|
114
|
-
it 'should work' do
|
|
115
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
|
|
119
71
|
# unit tests for license_created_post
|
|
120
72
|
# License Created
|
|
121
73
|
# Occurs when a new software license key is created or assigned to a customer purchase.
|
|
122
74
|
# @param [Hash] opts the optional parameters
|
|
123
|
-
# @option opts [
|
|
75
|
+
# @option opts [License] :license
|
|
124
76
|
# @return [nil]
|
|
125
77
|
describe 'license_created_post test' do
|
|
126
78
|
it 'should work' do
|
|
@@ -132,7 +84,7 @@ describe 'DefaultApi' do
|
|
|
132
84
|
# License Revoked
|
|
133
85
|
# Occurs when a software license key is revoked (e.g., due to subscription cancellation, refund, or dispute).
|
|
134
86
|
# @param [Hash] opts the optional parameters
|
|
135
|
-
# @option opts [
|
|
87
|
+
# @option opts [License] :license
|
|
136
88
|
# @return [nil]
|
|
137
89
|
describe 'license_revoked_post test' do
|
|
138
90
|
it 'should work' do
|
|
@@ -144,7 +96,7 @@ describe 'DefaultApi' do
|
|
|
144
96
|
# Payment Created
|
|
145
97
|
# Occurs when a new payment is initiated (e.g., at checkout start or subscription creation). The payment may still be in an incomplete or pending state.
|
|
146
98
|
# @param [Hash] opts the optional parameters
|
|
147
|
-
# @option opts [
|
|
99
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
148
100
|
# @return [nil]
|
|
149
101
|
describe 'payment_created_post test' do
|
|
150
102
|
it 'should work' do
|
|
@@ -180,7 +132,7 @@ describe 'DefaultApi' do
|
|
|
180
132
|
# Refund Failed
|
|
181
133
|
# Occurs when a payment refund fails.
|
|
182
134
|
# @param [Hash] opts the optional parameters
|
|
183
|
-
# @option opts [
|
|
135
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
184
136
|
# @return [nil]
|
|
185
137
|
describe 'refund_failed_post test' do
|
|
186
138
|
it 'should work' do
|
|
@@ -192,7 +144,7 @@ describe 'DefaultApi' do
|
|
|
192
144
|
# Refund Succeeded
|
|
193
145
|
# Occurs when a payment refund is confirmed as succeeded.
|
|
194
146
|
# @param [Hash] opts the optional parameters
|
|
195
|
-
# @option opts [
|
|
147
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
196
148
|
# @return [nil]
|
|
197
149
|
describe 'refund_succeeded_post test' do
|
|
198
150
|
it 'should work' do
|
|
@@ -204,7 +156,7 @@ describe 'DefaultApi' do
|
|
|
204
156
|
# Subscription Created
|
|
205
157
|
# Occurs when a customer subscription is successfully started.
|
|
206
158
|
# @param [Hash] opts the optional parameters
|
|
207
|
-
# @option opts [
|
|
159
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
208
160
|
# @return [nil]
|
|
209
161
|
describe 'subscription_created_post test' do
|
|
210
162
|
it 'should work' do
|
|
@@ -216,7 +168,7 @@ describe 'DefaultApi' do
|
|
|
216
168
|
# Subscription Deactivated
|
|
217
169
|
# Occurs when a customer subscription is deactivated or expired.
|
|
218
170
|
# @param [Hash] opts the optional parameters
|
|
219
|
-
# @option opts [
|
|
171
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
220
172
|
# @return [nil]
|
|
221
173
|
describe 'subscription_deactivated_post test' do
|
|
222
174
|
it 'should work' do
|
|
@@ -228,7 +180,7 @@ describe 'DefaultApi' do
|
|
|
228
180
|
# Subscription Updated
|
|
229
181
|
# Occurs when a customer subscription is updated (e.g., cancel at period end changes).
|
|
230
182
|
# @param [Hash] opts the optional parameters
|
|
231
|
-
# @option opts [
|
|
183
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
232
184
|
# @return [nil]
|
|
233
185
|
describe 'subscription_updated_post test' do
|
|
234
186
|
it 'should work' do
|
|
@@ -32,109 +32,86 @@ describe 'DeveloperApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
36
|
-
# Create Developer API Key
|
|
37
|
-
# @param create_api_key_dto
|
|
35
|
+
# unit tests for developer_controller_create_api_key
|
|
38
36
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [
|
|
40
|
-
describe '
|
|
41
|
-
it 'should work' do
|
|
42
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# unit tests for developer_create_webhook
|
|
47
|
-
# Create Webhook Endpoint
|
|
48
|
-
# @param create_webhook_endpoint_dto
|
|
49
|
-
# @param [Hash] opts the optional parameters
|
|
50
|
-
# @return [WebhookEndpointResponseDto]
|
|
51
|
-
describe 'developer_create_webhook test' do
|
|
37
|
+
# @return [nil]
|
|
38
|
+
describe 'developer_controller_create_api_key test' do
|
|
52
39
|
it 'should work' do
|
|
53
40
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
41
|
end
|
|
55
42
|
end
|
|
56
43
|
|
|
57
|
-
# unit tests for
|
|
58
|
-
# Delete Webhook Endpoint
|
|
59
|
-
# @param id The webhook endpoint ID
|
|
44
|
+
# unit tests for developer_controller_create_webhook_endpoint
|
|
60
45
|
# @param [Hash] opts the optional parameters
|
|
61
46
|
# @return [nil]
|
|
62
|
-
describe '
|
|
47
|
+
describe 'developer_controller_create_webhook_endpoint test' do
|
|
63
48
|
it 'should work' do
|
|
64
49
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
50
|
end
|
|
66
51
|
end
|
|
67
52
|
|
|
68
|
-
# unit tests for
|
|
69
|
-
#
|
|
53
|
+
# unit tests for developer_controller_delete_api_key
|
|
54
|
+
# @param id
|
|
70
55
|
# @param [Hash] opts the optional parameters
|
|
71
|
-
# @return [
|
|
72
|
-
describe '
|
|
56
|
+
# @return [nil]
|
|
57
|
+
describe 'developer_controller_delete_api_key test' do
|
|
73
58
|
it 'should work' do
|
|
74
59
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
60
|
end
|
|
76
61
|
end
|
|
77
62
|
|
|
78
|
-
# unit tests for
|
|
79
|
-
#
|
|
80
|
-
# @param id The webhook endpoint ID
|
|
63
|
+
# unit tests for developer_controller_delete_webhook_endpoint
|
|
64
|
+
# @param id
|
|
81
65
|
# @param [Hash] opts the optional parameters
|
|
82
|
-
# @return [
|
|
83
|
-
describe '
|
|
66
|
+
# @return [nil]
|
|
67
|
+
describe 'developer_controller_delete_webhook_endpoint test' do
|
|
84
68
|
it 'should work' do
|
|
85
69
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
86
70
|
end
|
|
87
71
|
end
|
|
88
72
|
|
|
89
|
-
# unit tests for
|
|
90
|
-
# List Developer API Keys
|
|
73
|
+
# unit tests for developer_controller_get_api_keys
|
|
91
74
|
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @return [
|
|
93
|
-
describe '
|
|
75
|
+
# @return [nil]
|
|
76
|
+
describe 'developer_controller_get_api_keys test' do
|
|
94
77
|
it 'should work' do
|
|
95
78
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
96
79
|
end
|
|
97
80
|
end
|
|
98
81
|
|
|
99
|
-
# unit tests for
|
|
100
|
-
# Retrieve Webhook Delivery Logs
|
|
101
|
-
# @param id The webhook endpoint ID
|
|
82
|
+
# unit tests for developer_controller_get_app_portal_url
|
|
102
83
|
# @param [Hash] opts the optional parameters
|
|
103
|
-
# @return [
|
|
104
|
-
describe '
|
|
84
|
+
# @return [nil]
|
|
85
|
+
describe 'developer_controller_get_app_portal_url test' do
|
|
105
86
|
it 'should work' do
|
|
106
87
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
107
88
|
end
|
|
108
89
|
end
|
|
109
90
|
|
|
110
|
-
# unit tests for
|
|
111
|
-
#
|
|
91
|
+
# unit tests for developer_controller_get_webhook_deliveries
|
|
92
|
+
# @param id
|
|
112
93
|
# @param [Hash] opts the optional parameters
|
|
113
|
-
# @return [
|
|
114
|
-
describe '
|
|
94
|
+
# @return [nil]
|
|
95
|
+
describe 'developer_controller_get_webhook_deliveries test' do
|
|
115
96
|
it 'should work' do
|
|
116
97
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
98
|
end
|
|
118
99
|
end
|
|
119
100
|
|
|
120
|
-
# unit tests for
|
|
121
|
-
# Revoke API Key
|
|
122
|
-
# @param id The API key ID
|
|
101
|
+
# unit tests for developer_controller_get_webhook_endpoints
|
|
123
102
|
# @param [Hash] opts the optional parameters
|
|
124
103
|
# @return [nil]
|
|
125
|
-
describe '
|
|
104
|
+
describe 'developer_controller_get_webhook_endpoints test' do
|
|
126
105
|
it 'should work' do
|
|
127
106
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
128
107
|
end
|
|
129
108
|
end
|
|
130
109
|
|
|
131
|
-
# unit tests for
|
|
132
|
-
#
|
|
133
|
-
# @param id The webhook endpoint ID
|
|
134
|
-
# @param update_webhook_endpoint_dto
|
|
110
|
+
# unit tests for developer_controller_update_webhook_endpoint
|
|
111
|
+
# @param id
|
|
135
112
|
# @param [Hash] opts the optional parameters
|
|
136
|
-
# @return [
|
|
137
|
-
describe '
|
|
113
|
+
# @return [nil]
|
|
114
|
+
describe 'developer_controller_update_webhook_endpoint test' do
|
|
138
115
|
it 'should work' do
|
|
139
116
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
140
117
|
end
|
|
@@ -13,43 +13,38 @@ Generator version: 7.10.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for Solifyn::
|
|
16
|
+
# Unit tests for Solifyn::PartnerApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
|
-
describe '
|
|
19
|
+
describe 'PartnerApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance = Solifyn::
|
|
22
|
+
@api_instance = Solifyn::PartnerApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
26
26
|
# run after each test
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test an instance of
|
|
30
|
-
it 'should create an instance of
|
|
31
|
-
expect(@api_instance).to be_instance_of(Solifyn::
|
|
29
|
+
describe 'test an instance of PartnerApi' do
|
|
30
|
+
it 'should create an instance of PartnerApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::PartnerApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
36
|
-
# Get Discord Bot Installation URL
|
|
37
|
-
# Generates the URL to invite the system-wide Discord Bot onto the merchant's Discord server.
|
|
35
|
+
# unit tests for partner_controller_get_partner_commissions
|
|
38
36
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
40
37
|
# @return [nil]
|
|
41
|
-
describe '
|
|
38
|
+
describe 'partner_controller_get_partner_commissions test' do
|
|
42
39
|
it 'should work' do
|
|
43
40
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
41
|
end
|
|
45
42
|
end
|
|
46
43
|
|
|
47
|
-
# unit tests for
|
|
48
|
-
# List Guild Discord Roles
|
|
49
|
-
# Retrieves all roles available in the connected merchant's Discord server/guild.
|
|
44
|
+
# unit tests for partner_controller_get_partner_stats
|
|
50
45
|
# @param [Hash] opts the optional parameters
|
|
51
|
-
# @return [
|
|
52
|
-
describe '
|
|
46
|
+
# @return [nil]
|
|
47
|
+
describe 'partner_controller_get_partner_stats test' do
|
|
53
48
|
it 'should work' do
|
|
54
49
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
50
|
end
|
|
@@ -0,0 +1,133 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Solifyn::PayoutsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'PayoutsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::PayoutsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of PayoutsApi' do
|
|
30
|
+
it 'should create an instance of PayoutsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::PayoutsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for payouts_create_withdrawal
|
|
36
|
+
# Create Withdrawal
|
|
37
|
+
# Initiate a balance withdrawal transfer request.
|
|
38
|
+
# @param withdrawal_create
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Withdrawal]
|
|
41
|
+
describe 'payouts_create_withdrawal test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for payouts_get_account
|
|
48
|
+
# Retrieve Payout Account
|
|
49
|
+
# Retrieve general status and information of onboarding payout accounts.
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [PayoutAccount]
|
|
52
|
+
describe 'payouts_get_account test' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for payouts_get_account_link
|
|
59
|
+
# Create Account Link
|
|
60
|
+
# Generate temporary links for onboarding or viewing portals.
|
|
61
|
+
# @param [Hash] opts the optional parameters
|
|
62
|
+
# @option opts [String] :use_case Onboarding link type context
|
|
63
|
+
# @return [PayoutAccountLink]
|
|
64
|
+
describe 'payouts_get_account_link test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for payouts_get_token
|
|
71
|
+
# Generate Portal Access Token
|
|
72
|
+
# Generate temporary credentials to access the embed portal.
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @return [PayoutAccessToken]
|
|
75
|
+
describe 'payouts_get_token test' do
|
|
76
|
+
it 'should work' do
|
|
77
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# unit tests for payouts_get_withdrawals
|
|
82
|
+
# Get Withdrawals List
|
|
83
|
+
# Retrieve withdrawal records for the active business.
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [Float] :limit Page size limit
|
|
86
|
+
# @option opts [Float] :page Page number
|
|
87
|
+
# @return [WithdrawalList]
|
|
88
|
+
describe 'payouts_get_withdrawals test' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# unit tests for payouts_list_methods
|
|
95
|
+
# List Payout Methods
|
|
96
|
+
# List saved payout destinations (bank accounts, cards).
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [Float] :limit
|
|
99
|
+
# @option opts [Float] :page
|
|
100
|
+
# @return [PayoutMethodList]
|
|
101
|
+
describe 'payouts_list_methods test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# unit tests for payouts_list_verifications
|
|
108
|
+
# List Verifications
|
|
109
|
+
# Retrieve pending or completed KYC verification checks.
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @option opts [Float] :limit
|
|
112
|
+
# @option opts [Float] :page
|
|
113
|
+
# @return [PayoutVerificationList]
|
|
114
|
+
describe 'payouts_list_verifications test' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# unit tests for payouts_list_withdrawals
|
|
121
|
+
# List Withdrawals
|
|
122
|
+
# Retrieve a list of past withdrawal history.
|
|
123
|
+
# @param [Hash] opts the optional parameters
|
|
124
|
+
# @option opts [Float] :limit Page size limit
|
|
125
|
+
# @option opts [Float] :page Page number
|
|
126
|
+
# @return [WithdrawalList]
|
|
127
|
+
describe 'payouts_list_withdrawals test' do
|
|
128
|
+
it 'should work' do
|
|
129
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
end
|