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
@@ -14,26 +14,64 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Solifyn
17
- class PayoutVerification
18
- # The verification check ID
17
+ class WebhookEntitlementGrantPayload
18
+ # The unique entitlement grant ID.
19
19
  attr_accessor :id
20
20
 
21
- # Status of verification (pending, verified, rejected)
22
- attr_accessor :status
21
+ # The business ID context.
22
+ attr_accessor :business_id
23
+
24
+ # The customer ID.
25
+ attr_accessor :customer_id
26
+
27
+ # Associated payment transaction ID.
28
+ attr_accessor :payment_id
29
+
30
+ # The purchased product ID.
31
+ attr_accessor :product_id
23
32
 
24
- # Verification type (identity, business, address)
33
+ # The type of entitlement (e.g. GITHUB).
25
34
  attr_accessor :type
26
35
 
27
- # Details and requirements of the verification check
28
- attr_accessor :details
36
+ # Target GitHub repository (owner/repo) if type is GITHUB.
37
+ attr_accessor :github_repo
38
+
39
+ # GitHub access permission level if type is GITHUB.
40
+ attr_accessor :github_permission
41
+
42
+ # The connected customer GitHub username.
43
+ attr_accessor :github_username
44
+
45
+ # Delivery status of the collaborator invite (PENDING, DELIVERED, FAILED, REVOKED).
46
+ attr_accessor :status
47
+
48
+ # OAuth URL to redirect the customer to.
49
+ attr_accessor :oauth_url
50
+
51
+ # Error message if invitation delivery failed.
52
+ attr_accessor :error_details
53
+
54
+ attr_accessor :created_at
55
+
56
+ attr_accessor :updated_at
29
57
 
30
58
  # Attribute mapping from ruby-style variable name to JSON key.
31
59
  def self.attribute_map
32
60
  {
33
61
  :'id' => :'id',
34
- :'status' => :'status',
62
+ :'business_id' => :'businessId',
63
+ :'customer_id' => :'customerId',
64
+ :'payment_id' => :'paymentId',
65
+ :'product_id' => :'productId',
35
66
  :'type' => :'type',
36
- :'details' => :'details'
67
+ :'github_repo' => :'githubRepo',
68
+ :'github_permission' => :'githubPermission',
69
+ :'github_username' => :'githubUsername',
70
+ :'status' => :'status',
71
+ :'oauth_url' => :'oauthUrl',
72
+ :'error_details' => :'errorDetails',
73
+ :'created_at' => :'createdAt',
74
+ :'updated_at' => :'updatedAt'
37
75
  }
38
76
  end
39
77
 
@@ -46,9 +84,19 @@ module Solifyn
46
84
  def self.openapi_types
47
85
  {
48
86
  :'id' => :'String',
49
- :'status' => :'String',
87
+ :'business_id' => :'String',
88
+ :'customer_id' => :'String',
89
+ :'payment_id' => :'String',
90
+ :'product_id' => :'String',
50
91
  :'type' => :'String',
51
- :'details' => :'Object'
92
+ :'github_repo' => :'String',
93
+ :'github_permission' => :'String',
94
+ :'github_username' => :'String',
95
+ :'status' => :'String',
96
+ :'oauth_url' => :'String',
97
+ :'error_details' => :'String',
98
+ :'created_at' => :'Time',
99
+ :'updated_at' => :'Time'
52
100
  }
53
101
  end
54
102
 
@@ -62,57 +110,79 @@ module Solifyn
62
110
  # @param [Hash] attributes Model attributes in the form of hash
63
111
  def initialize(attributes = {})
64
112
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::PayoutVerification` initialize method"
113
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Solifyn::WebhookEntitlementGrantPayload` initialize method"
66
114
  end
67
115
 
68
116
  # check to see if the attribute exists and convert string to symbol for hash key
69
117
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
118
  if (!self.class.attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::PayoutVerification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
119
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Solifyn::WebhookEntitlementGrantPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
120
  end
73
121
  h[k.to_sym] = v
74
122
  }
75
123
 
76
124
  if attributes.key?(:'id')
77
125
  self.id = attributes[:'id']
78
- else
79
- self.id = nil
80
126
  end
81
127
 
82
- if attributes.key?(:'status')
83
- self.status = attributes[:'status']
84
- else
85
- self.status = nil
128
+ if attributes.key?(:'business_id')
129
+ self.business_id = attributes[:'business_id']
130
+ end
131
+
132
+ if attributes.key?(:'customer_id')
133
+ self.customer_id = attributes[:'customer_id']
134
+ end
135
+
136
+ if attributes.key?(:'payment_id')
137
+ self.payment_id = attributes[:'payment_id']
138
+ end
139
+
140
+ if attributes.key?(:'product_id')
141
+ self.product_id = attributes[:'product_id']
86
142
  end
87
143
 
88
144
  if attributes.key?(:'type')
89
145
  self.type = attributes[:'type']
90
- else
91
- self.type = nil
92
146
  end
93
147
 
94
- if attributes.key?(:'details')
95
- self.details = attributes[:'details']
148
+ if attributes.key?(:'github_repo')
149
+ self.github_repo = attributes[:'github_repo']
96
150
  end
97
- end
98
151
 
99
- # Show invalid properties with the reasons. Usually used together with valid?
100
- # @return Array for valid properties with the reasons
101
- def list_invalid_properties
102
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
- invalid_properties = Array.new
104
- if @id.nil?
105
- invalid_properties.push('invalid value for "id", id cannot be nil.')
152
+ if attributes.key?(:'github_permission')
153
+ self.github_permission = attributes[:'github_permission']
154
+ end
155
+
156
+ if attributes.key?(:'github_username')
157
+ self.github_username = attributes[:'github_username']
158
+ end
159
+
160
+ if attributes.key?(:'status')
161
+ self.status = attributes[:'status']
106
162
  end
107
163
 
108
- if @status.nil?
109
- invalid_properties.push('invalid value for "status", status cannot be nil.')
164
+ if attributes.key?(:'oauth_url')
165
+ self.oauth_url = attributes[:'oauth_url']
110
166
  end
111
167
 
112
- if @type.nil?
113
- invalid_properties.push('invalid value for "type", type cannot be nil.')
168
+ if attributes.key?(:'error_details')
169
+ self.error_details = attributes[:'error_details']
114
170
  end
115
171
 
172
+ if attributes.key?(:'created_at')
173
+ self.created_at = attributes[:'created_at']
174
+ end
175
+
176
+ if attributes.key?(:'updated_at')
177
+ self.updated_at = attributes[:'updated_at']
178
+ end
179
+ end
180
+
181
+ # Show invalid properties with the reasons. Usually used together with valid?
182
+ # @return Array for valid properties with the reasons
183
+ def list_invalid_properties
184
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
185
+ invalid_properties = Array.new
116
186
  invalid_properties
117
187
  end
118
188
 
@@ -120,9 +190,6 @@ module Solifyn
120
190
  # @return true if the model is valid
121
191
  def valid?
122
192
  warn '[DEPRECATED] the `valid?` method is obsolete'
123
- return false if @id.nil?
124
- return false if @status.nil?
125
- return false if @type.nil?
126
193
  true
127
194
  end
128
195
 
@@ -132,9 +199,19 @@ module Solifyn
132
199
  return true if self.equal?(o)
133
200
  self.class == o.class &&
134
201
  id == o.id &&
135
- status == o.status &&
202
+ business_id == o.business_id &&
203
+ customer_id == o.customer_id &&
204
+ payment_id == o.payment_id &&
205
+ product_id == o.product_id &&
136
206
  type == o.type &&
137
- details == o.details
207
+ github_repo == o.github_repo &&
208
+ github_permission == o.github_permission &&
209
+ github_username == o.github_username &&
210
+ status == o.status &&
211
+ oauth_url == o.oauth_url &&
212
+ error_details == o.error_details &&
213
+ created_at == o.created_at &&
214
+ updated_at == o.updated_at
138
215
  end
139
216
 
140
217
  # @see the `==` method
@@ -146,7 +223,7 @@ module Solifyn
146
223
  # Calculates hash code according to all attributes.
147
224
  # @return [Integer] Hash code
148
225
  def hash
149
- [id, status, type, details].hash
226
+ [id, business_id, customer_id, payment_id, product_id, type, github_repo, github_permission, github_username, status, oauth_url, error_details, created_at, updated_at].hash
150
227
  end
151
228
 
152
229
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Solifyn
14
- VERSION = '1.0.0'
14
+ VERSION = '1.0.5'
15
15
  end
data/lib/solifyn.rb CHANGED
@@ -54,6 +54,7 @@ require 'solifyn/models/customer_message_response_dto'
54
54
  require 'solifyn/models/customer_response_dto'
55
55
  require 'solifyn/models/customer_shared_invite_response_dto'
56
56
  require 'solifyn/models/dashboard_stats_dto'
57
+ require 'solifyn/models/discord_roles_response_dto'
57
58
  require 'solifyn/models/discount'
58
59
  require 'solifyn/models/discount_create'
59
60
  require 'solifyn/models/discount_update'
@@ -66,6 +67,8 @@ require 'solifyn/models/dispute_evidence_update'
66
67
  require 'solifyn/models/dispute_file_upload'
67
68
  require 'solifyn/models/dispute_list'
68
69
  require 'solifyn/models/dispute_list_meta_dto'
70
+ require 'solifyn/models/entitlement_grant_response_dto'
71
+ require 'solifyn/models/github_repos_response_dto'
69
72
  require 'solifyn/models/instance'
70
73
  require 'solifyn/models/invoice'
71
74
  require 'solifyn/models/license'
@@ -133,6 +136,7 @@ require 'solifyn/models/subscription_seat_adjustment'
133
136
  require 'solifyn/models/subscription_user_dto'
134
137
  require 'solifyn/models/subscriptions_action201_response'
135
138
  require 'solifyn/models/supported_currencies_response_dto'
139
+ require 'solifyn/models/sync_login_dto'
136
140
  require 'solifyn/models/update_checkout_link_dto'
137
141
  require 'solifyn/models/update_collection_dto'
138
142
  require 'solifyn/models/update_collection_product_dto'
@@ -143,6 +147,7 @@ require 'solifyn/models/update_webhook_endpoint_dto'
143
147
  require 'solifyn/models/webhook_delivery_response_dto'
144
148
  require 'solifyn/models/webhook_dispute_payload'
145
149
  require 'solifyn/models/webhook_endpoint_response_dto'
150
+ require 'solifyn/models/webhook_entitlement_grant_payload'
146
151
  require 'solifyn/models/webhook_license_payload'
147
152
  require 'solifyn/models/webhook_payment_payload'
148
153
  require 'solifyn/models/webhook_payment_payload_billing_address'
@@ -157,8 +162,11 @@ require 'solifyn/api/collections_api'
157
162
  require 'solifyn/api/customers_api'
158
163
  require 'solifyn/api/developer_api'
159
164
  require 'solifyn/api/digital_file_api'
165
+ require 'solifyn/api/discord_integration_api'
160
166
  require 'solifyn/api/discounts_api'
161
167
  require 'solifyn/api/disputes_api'
168
+ require 'solifyn/api/entitlement_grants_api'
169
+ require 'solifyn/api/git_hub_integration_api'
162
170
  require 'solifyn/api/license_api'
163
171
  require 'solifyn/api/license_keys_api'
164
172
  require 'solifyn/api/license_keys_client_api'
@@ -56,6 +56,18 @@ 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
+
59
71
  # unit tests for checkout_get_session
60
72
  # Get Checkout Session Details
61
73
  # Retrieve checkout details to mount the custom embedded checkout.
@@ -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 [UNKNOWN_BASE_TYPE] :unknown_base_type
39
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
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 [UNKNOWN_BASE_TYPE] :unknown_base_type
51
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
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 [UNKNOWN_BASE_TYPE] :unknown_base_type
63
+ # @option opts [WebhookDisputePayload] :webhook_dispute_payload
64
64
  # @return [nil]
65
65
  describe 'dispute_won_post test' do
66
66
  it 'should work' do
@@ -68,11 +68,59 @@ 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
+
71
119
  # unit tests for license_created_post
72
120
  # License Created
73
121
  # Occurs when a new software license key is created or assigned to a customer purchase.
74
122
  # @param [Hash] opts the optional parameters
75
- # @option opts [License] :license
123
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
76
124
  # @return [nil]
77
125
  describe 'license_created_post test' do
78
126
  it 'should work' do
@@ -84,7 +132,7 @@ describe 'DefaultApi' do
84
132
  # License Revoked
85
133
  # Occurs when a software license key is revoked (e.g., due to subscription cancellation, refund, or dispute).
86
134
  # @param [Hash] opts the optional parameters
87
- # @option opts [License] :license
135
+ # @option opts [WebhookLicensePayload] :webhook_license_payload
88
136
  # @return [nil]
89
137
  describe 'license_revoked_post test' do
90
138
  it 'should work' do
@@ -96,7 +144,7 @@ describe 'DefaultApi' do
96
144
  # Payment Created
97
145
  # 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.
98
146
  # @param [Hash] opts the optional parameters
99
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
147
+ # @option opts [WebhookPaymentPayload] :webhook_payment_payload
100
148
  # @return [nil]
101
149
  describe 'payment_created_post test' do
102
150
  it 'should work' do
@@ -132,7 +180,7 @@ describe 'DefaultApi' do
132
180
  # Refund Failed
133
181
  # Occurs when a payment refund fails.
134
182
  # @param [Hash] opts the optional parameters
135
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
183
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
136
184
  # @return [nil]
137
185
  describe 'refund_failed_post test' do
138
186
  it 'should work' do
@@ -144,7 +192,7 @@ describe 'DefaultApi' do
144
192
  # Refund Succeeded
145
193
  # Occurs when a payment refund is confirmed as succeeded.
146
194
  # @param [Hash] opts the optional parameters
147
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
195
+ # @option opts [WebhookRefundPayload] :webhook_refund_payload
148
196
  # @return [nil]
149
197
  describe 'refund_succeeded_post test' do
150
198
  it 'should work' do
@@ -156,7 +204,7 @@ describe 'DefaultApi' do
156
204
  # Subscription Created
157
205
  # Occurs when a customer subscription is successfully started.
158
206
  # @param [Hash] opts the optional parameters
159
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
207
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
160
208
  # @return [nil]
161
209
  describe 'subscription_created_post test' do
162
210
  it 'should work' do
@@ -168,7 +216,7 @@ describe 'DefaultApi' do
168
216
  # Subscription Deactivated
169
217
  # Occurs when a customer subscription is deactivated or expired.
170
218
  # @param [Hash] opts the optional parameters
171
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
219
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
172
220
  # @return [nil]
173
221
  describe 'subscription_deactivated_post test' do
174
222
  it 'should work' do
@@ -180,7 +228,7 @@ describe 'DefaultApi' do
180
228
  # Subscription Updated
181
229
  # Occurs when a customer subscription is updated (e.g., cancel at period end changes).
182
230
  # @param [Hash] opts the optional parameters
183
- # @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
231
+ # @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
184
232
  # @return [nil]
185
233
  describe 'subscription_updated_post test' do
186
234
  it 'should work' do
@@ -32,86 +32,109 @@ describe 'DeveloperApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for developer_controller_create_api_key
35
+ # unit tests for developer_create_api_key
36
+ # Create Developer API Key
37
+ # @param create_api_key_dto
36
38
  # @param [Hash] opts the optional parameters
37
- # @return [nil]
38
- describe 'developer_controller_create_api_key test' do
39
+ # @return [ApiKeyResponseDto]
40
+ describe 'developer_create_api_key test' do
39
41
  it 'should work' do
40
42
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
41
43
  end
42
44
  end
43
45
 
44
- # unit tests for developer_controller_create_webhook_endpoint
46
+ # unit tests for developer_create_webhook
47
+ # Create Webhook Endpoint
48
+ # @param create_webhook_endpoint_dto
45
49
  # @param [Hash] opts the optional parameters
46
- # @return [nil]
47
- describe 'developer_controller_create_webhook_endpoint test' do
50
+ # @return [WebhookEndpointResponseDto]
51
+ describe 'developer_create_webhook test' do
48
52
  it 'should work' do
49
53
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
50
54
  end
51
55
  end
52
56
 
53
- # unit tests for developer_controller_delete_api_key
54
- # @param id
57
+ # unit tests for developer_delete_webhook
58
+ # Delete Webhook Endpoint
59
+ # @param id The webhook endpoint ID
55
60
  # @param [Hash] opts the optional parameters
56
61
  # @return [nil]
57
- describe 'developer_controller_delete_api_key test' do
62
+ describe 'developer_delete_webhook test' do
58
63
  it 'should work' do
59
64
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
60
65
  end
61
66
  end
62
67
 
63
- # unit tests for developer_controller_delete_webhook_endpoint
64
- # @param id
68
+ # unit tests for developer_get_app_portal
69
+ # Retrieve Hosted Webhooks Portal URL
65
70
  # @param [Hash] opts the optional parameters
66
- # @return [nil]
67
- describe 'developer_controller_delete_webhook_endpoint test' do
71
+ # @return [AppPortalUrlResponseDto]
72
+ describe 'developer_get_app_portal test' do
68
73
  it 'should work' do
69
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
70
75
  end
71
76
  end
72
77
 
73
- # unit tests for developer_controller_get_api_keys
78
+ # unit tests for developer_get_webhook
79
+ # Retrieve Webhook Endpoint Details
80
+ # @param id The webhook endpoint ID
74
81
  # @param [Hash] opts the optional parameters
75
- # @return [nil]
76
- describe 'developer_controller_get_api_keys test' do
82
+ # @return [WebhookEndpointResponseDto]
83
+ describe 'developer_get_webhook test' do
77
84
  it 'should work' do
78
85
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
86
  end
80
87
  end
81
88
 
82
- # unit tests for developer_controller_get_app_portal_url
89
+ # unit tests for developer_list_api_keys
90
+ # List Developer API Keys
83
91
  # @param [Hash] opts the optional parameters
84
- # @return [nil]
85
- describe 'developer_controller_get_app_portal_url test' do
92
+ # @return [Array<ApiKeyResponseDto>]
93
+ describe 'developer_list_api_keys test' do
86
94
  it 'should work' do
87
95
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
88
96
  end
89
97
  end
90
98
 
91
- # unit tests for developer_controller_get_webhook_deliveries
92
- # @param id
99
+ # unit tests for developer_list_webhook_deliveries
100
+ # Retrieve Webhook Delivery Logs
101
+ # @param id The webhook endpoint ID
93
102
  # @param [Hash] opts the optional parameters
94
- # @return [nil]
95
- describe 'developer_controller_get_webhook_deliveries test' do
103
+ # @return [Array<WebhookDeliveryResponseDto>]
104
+ describe 'developer_list_webhook_deliveries test' do
96
105
  it 'should work' do
97
106
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
98
107
  end
99
108
  end
100
109
 
101
- # unit tests for developer_controller_get_webhook_endpoints
110
+ # unit tests for developer_list_webhooks
111
+ # List Webhook Endpoints
102
112
  # @param [Hash] opts the optional parameters
103
- # @return [nil]
104
- describe 'developer_controller_get_webhook_endpoints test' do
113
+ # @return [Array<WebhookEndpointResponseDto>]
114
+ describe 'developer_list_webhooks test' do
105
115
  it 'should work' do
106
116
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
117
  end
108
118
  end
109
119
 
110
- # unit tests for developer_controller_update_webhook_endpoint
111
- # @param id
120
+ # unit tests for developer_revoke_api_key
121
+ # Revoke API Key
122
+ # @param id The API key ID
112
123
  # @param [Hash] opts the optional parameters
113
124
  # @return [nil]
114
- describe 'developer_controller_update_webhook_endpoint test' do
125
+ describe 'developer_revoke_api_key test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
128
+ end
129
+ end
130
+
131
+ # unit tests for developer_update_webhook
132
+ # Update Webhook Endpoint
133
+ # @param id The webhook endpoint ID
134
+ # @param update_webhook_endpoint_dto
135
+ # @param [Hash] opts the optional parameters
136
+ # @return [WebhookEndpointResponseDto]
137
+ describe 'developer_update_webhook test' do
115
138
  it 'should work' do
116
139
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
117
140
  end
@@ -13,38 +13,43 @@ Generator version: 7.10.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for Solifyn::PartnerApi
16
+ # Unit tests for Solifyn::DiscordIntegrationApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'PartnerApi' do
19
+ describe 'DiscordIntegrationApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = Solifyn::PartnerApi.new
22
+ @api_instance = Solifyn::DiscordIntegrationApi.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 PartnerApi' do
30
- it 'should create an instance of PartnerApi' do
31
- expect(@api_instance).to be_instance_of(Solifyn::PartnerApi)
29
+ describe 'test an instance of DiscordIntegrationApi' do
30
+ it 'should create an instance of DiscordIntegrationApi' do
31
+ expect(@api_instance).to be_instance_of(Solifyn::DiscordIntegrationApi)
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for partner_controller_get_partner_commissions
35
+ # unit tests for discord_get_install_url
36
+ # Get Discord Bot Installation URL
37
+ # Generates the URL to invite the system-wide Discord Bot onto the merchant&#39;s Discord server.
36
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :product_id Optional Product ID to redirect back to after installation
37
40
  # @return [nil]
38
- describe 'partner_controller_get_partner_commissions test' do
41
+ describe 'discord_get_install_url test' do
39
42
  it 'should work' do
40
43
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
41
44
  end
42
45
  end
43
46
 
44
- # unit tests for partner_controller_get_partner_stats
47
+ # unit tests for discord_list_roles
48
+ # List Guild Discord Roles
49
+ # Retrieves all roles available in the connected merchant&#39;s Discord server/guild.
45
50
  # @param [Hash] opts the optional parameters
46
- # @return [nil]
47
- describe 'partner_controller_get_partner_stats test' do
51
+ # @return [Array<DiscordRolesResponseDto>]
52
+ describe 'discord_list_roles test' do
48
53
  it 'should work' do
49
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
50
55
  end