solifyn 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/Brand.md +2 -2
- data/docs/CheckoutLinkResponseDto.md +3 -3
- data/docs/CollectionDetailResponseDto.md +3 -3
- data/docs/CollectionProductDto.md +11 -5
- data/docs/CollectionResponseDto.md +3 -3
- data/docs/CreateCustomerDto.md +1 -1
- data/docs/CreateMeterDto.md +1 -1
- data/docs/CreateWebhookEndpointDto.md +1 -1
- data/docs/CustomerResponseDto.md +3 -3
- data/docs/CustomerSharedInviteResponseDto.md +1 -1
- data/docs/DefaultApi.md +1214 -0
- data/docs/DeveloperApi.md +1 -1
- data/docs/DiscordIntegrationApi.md +135 -0
- data/docs/DiscordRolesResponseDto.md +24 -0
- data/docs/Dispute.md +3 -3
- data/docs/EntitlementGrantResponseDto.md +13 -5
- data/docs/Invoice.md +1 -1
- data/docs/MeterDetailResponseDto.md +3 -3
- data/docs/MeterIngestEventDto.md +1 -1
- data/docs/MeterIngestResponseDto.md +1 -1
- data/docs/MeterResponseDto.md +3 -3
- data/docs/MeterUsageEventDto.md +3 -3
- data/docs/OperationalWebhookEndpointHeadersInDto.md +1 -1
- data/docs/OperationalWebhookEndpointHeadersResponseDto.md +2 -2
- data/docs/OperationalWebhookEndpointInDto.md +2 -2
- data/docs/OperationalWebhookEndpointResponseDto.md +2 -2
- data/docs/OperationalWebhookEndpointUpdateDto.md +2 -2
- data/docs/Order.md +2 -2
- data/docs/OrderRefund.md +1 -1
- data/docs/Product.md +11 -5
- data/docs/ProductCreate.md +8 -2
- data/docs/ProductUpdate.md +8 -2
- data/docs/Refund.md +5 -5
- data/docs/Subscription.md +4 -4
- data/docs/UpdateCustomerDto.md +1 -1
- data/docs/UpdateMeterDto.md +1 -1
- data/docs/UpdateWebhookEndpointDto.md +1 -1
- data/docs/WebhookDeliveryResponseDto.md +1 -1
- data/docs/WebhookEndpointApi.md +1 -1
- data/docs/WebhookEndpointResponseDto.md +1 -1
- data/docs/WebhookEntitlementGrantPayload.md +5 -5
- data/lib/solifyn/api/default_api.rb +1076 -0
- data/lib/solifyn/api/discord_integration_api.rb +137 -0
- data/lib/solifyn/models/addon.rb +10 -2
- data/lib/solifyn/models/brand.rb +0 -6
- data/lib/solifyn/models/brand_create.rb +5 -6
- data/lib/solifyn/models/brand_update.rb +5 -6
- data/lib/solifyn/models/checkout_link_response_dto.rb +0 -12
- data/lib/solifyn/models/checkout_session_details_dto.rb +0 -1
- data/lib/solifyn/models/collection_detail_response_dto.rb +0 -2
- data/lib/solifyn/models/collection_product_dto.rb +132 -18
- data/lib/solifyn/models/collection_response_dto.rb +0 -2
- data/lib/solifyn/models/customer_response_dto.rb +0 -6
- data/lib/solifyn/models/discord_roles_response_dto.rb +273 -0
- data/lib/solifyn/models/discount.rb +10 -2
- data/lib/solifyn/models/discount_create.rb +0 -3
- data/lib/solifyn/models/discount_update.rb +0 -3
- data/lib/solifyn/models/dispute.rb +0 -10
- data/lib/solifyn/models/dispute_evidence_dto.rb +0 -4
- data/lib/solifyn/models/entitlement_grant_response_dto.rb +41 -1
- data/lib/solifyn/models/instance.rb +20 -4
- data/lib/solifyn/models/license.rb +40 -8
- data/lib/solifyn/models/license_sub_dto.rb +15 -3
- data/lib/solifyn/models/meter_detail_response_dto.rb +0 -4
- data/lib/solifyn/models/meter_response_dto.rb +0 -4
- data/lib/solifyn/models/meter_usage_event_dto.rb +0 -1
- data/lib/solifyn/models/product.rb +132 -18
- data/lib/solifyn/models/product_create.rb +33 -3
- data/lib/solifyn/models/product_sub_dto.rb +5 -1
- data/lib/solifyn/models/product_update.rb +33 -3
- data/lib/solifyn/models/refund.rb +0 -5
- data/lib/solifyn/models/resolved_addon.rb +5 -1
- data/lib/solifyn/models/subscription.rb +35 -10
- data/lib/solifyn/models/subscription_detail.rb +5 -1
- data/lib/solifyn/models/webhook_dispute_payload.rb +0 -5
- data/lib/solifyn/models/webhook_entitlement_grant_payload.rb +0 -6
- data/lib/solifyn/models/webhook_license_payload.rb +40 -8
- data/lib/solifyn/models/webhook_payment_payload.rb +0 -40
- data/lib/solifyn/models/webhook_refund_payload.rb +0 -4
- data/lib/solifyn/models/webhook_subscription_payload.rb +0 -9
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +2 -0
- data/spec/api/default_api_spec.rb +239 -0
- data/spec/api/discord_integration_api_spec.rb +58 -0
- data/spec/models/discord_roles_response_dto_spec.rb +54 -0
- metadata +145 -133
|
@@ -138,14 +138,6 @@ module Solifyn
|
|
|
138
138
|
# List of attributes with nullable: true
|
|
139
139
|
def self.openapi_nullable
|
|
140
140
|
Set.new([
|
|
141
|
-
:'product_id',
|
|
142
|
-
:'payment_id',
|
|
143
|
-
:'customer_id',
|
|
144
|
-
:'activation_limit',
|
|
145
|
-
:'activation_message',
|
|
146
|
-
:'expiry_hours',
|
|
147
|
-
:'expires_at',
|
|
148
|
-
:'filters',
|
|
149
141
|
])
|
|
150
142
|
end
|
|
151
143
|
|
|
@@ -282,10 +274,42 @@ module Solifyn
|
|
|
282
274
|
invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
|
|
283
275
|
end
|
|
284
276
|
|
|
277
|
+
if @product_id.nil?
|
|
278
|
+
invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if @payment_id.nil?
|
|
282
|
+
invalid_properties.push('invalid value for "payment_id", payment_id cannot be nil.')
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if @customer_id.nil?
|
|
286
|
+
invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.')
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if @activation_limit.nil?
|
|
290
|
+
invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if @activation_message.nil?
|
|
294
|
+
invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
|
|
295
|
+
end
|
|
296
|
+
|
|
285
297
|
if @instances_count.nil?
|
|
286
298
|
invalid_properties.push('invalid value for "instances_count", instances_count cannot be nil.')
|
|
287
299
|
end
|
|
288
300
|
|
|
301
|
+
if @expiry_hours.nil?
|
|
302
|
+
invalid_properties.push('invalid value for "expiry_hours", expiry_hours cannot be nil.')
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if @expires_at.nil?
|
|
306
|
+
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if @filters.nil?
|
|
310
|
+
invalid_properties.push('invalid value for "filters", filters cannot be nil.')
|
|
311
|
+
end
|
|
312
|
+
|
|
289
313
|
if @archived.nil?
|
|
290
314
|
invalid_properties.push('invalid value for "archived", archived cannot be nil.')
|
|
291
315
|
end
|
|
@@ -311,7 +335,15 @@ module Solifyn
|
|
|
311
335
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DISABLED", "REVOKED"])
|
|
312
336
|
return false unless status_validator.valid?(@status)
|
|
313
337
|
return false if @business_id.nil?
|
|
338
|
+
return false if @product_id.nil?
|
|
339
|
+
return false if @payment_id.nil?
|
|
340
|
+
return false if @customer_id.nil?
|
|
341
|
+
return false if @activation_limit.nil?
|
|
342
|
+
return false if @activation_message.nil?
|
|
314
343
|
return false if @instances_count.nil?
|
|
344
|
+
return false if @expiry_hours.nil?
|
|
345
|
+
return false if @expires_at.nil?
|
|
346
|
+
return false if @filters.nil?
|
|
315
347
|
return false if @archived.nil?
|
|
316
348
|
return false if @created_at.nil?
|
|
317
349
|
return false if @updated_at.nil?
|
|
@@ -237,46 +237,6 @@ module Solifyn
|
|
|
237
237
|
# List of attributes with nullable: true
|
|
238
238
|
def self.openapi_nullable
|
|
239
239
|
Set.new([
|
|
240
|
-
:'substatus',
|
|
241
|
-
:'customer_id',
|
|
242
|
-
:'customer_email',
|
|
243
|
-
:'customer_name',
|
|
244
|
-
:'customer_username',
|
|
245
|
-
:'product_title',
|
|
246
|
-
:'product_route',
|
|
247
|
-
:'plan_id',
|
|
248
|
-
:'membership_id',
|
|
249
|
-
:'membership_status',
|
|
250
|
-
:'billing_reason',
|
|
251
|
-
:'amount',
|
|
252
|
-
:'subtotal',
|
|
253
|
-
:'usd_total',
|
|
254
|
-
:'fee_amount',
|
|
255
|
-
:'amount_after_fees',
|
|
256
|
-
:'tax_amount',
|
|
257
|
-
:'tax_behavior',
|
|
258
|
-
:'tax_refunded_amount',
|
|
259
|
-
:'settlement_amount',
|
|
260
|
-
:'settlement_currency',
|
|
261
|
-
:'settlement_exchange_rate',
|
|
262
|
-
:'payment_method',
|
|
263
|
-
:'card_brand',
|
|
264
|
-
:'card_last4',
|
|
265
|
-
:'card_exp_month',
|
|
266
|
-
:'card_exp_year',
|
|
267
|
-
:'billing_address',
|
|
268
|
-
:'license_key',
|
|
269
|
-
:'files_snapshot',
|
|
270
|
-
:'checkout_id',
|
|
271
|
-
:'discount_code',
|
|
272
|
-
:'failure_message',
|
|
273
|
-
:'paid_at',
|
|
274
|
-
:'refunded_at',
|
|
275
|
-
:'dispute_alerted_at',
|
|
276
|
-
:'last_payment_attempt',
|
|
277
|
-
:'next_payment_attempt',
|
|
278
|
-
:'payment_event_type',
|
|
279
|
-
:'last_event_type',
|
|
280
240
|
])
|
|
281
241
|
end
|
|
282
242
|
|
|
@@ -93,15 +93,6 @@ module Solifyn
|
|
|
93
93
|
# List of attributes with nullable: true
|
|
94
94
|
def self.openapi_nullable
|
|
95
95
|
Set.new([
|
|
96
|
-
:'renewal_period_start',
|
|
97
|
-
:'renewal_period_end',
|
|
98
|
-
:'customer_id',
|
|
99
|
-
:'customer_email',
|
|
100
|
-
:'customer_name',
|
|
101
|
-
:'product_id',
|
|
102
|
-
:'product_title',
|
|
103
|
-
:'created_at',
|
|
104
|
-
:'updated_at'
|
|
105
96
|
])
|
|
106
97
|
end
|
|
107
98
|
|
data/lib/solifyn/version.rb
CHANGED
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'
|
|
@@ -161,6 +162,7 @@ require 'solifyn/api/collections_api'
|
|
|
161
162
|
require 'solifyn/api/customers_api'
|
|
162
163
|
require 'solifyn/api/developer_api'
|
|
163
164
|
require 'solifyn/api/digital_file_api'
|
|
165
|
+
require 'solifyn/api/discord_integration_api'
|
|
164
166
|
require 'solifyn/api/discounts_api'
|
|
165
167
|
require 'solifyn/api/disputes_api'
|
|
166
168
|
require 'solifyn/api/entitlement_grants_api'
|
|
@@ -0,0 +1,239 @@
|
|
|
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::DefaultApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DefaultApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::DefaultApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DefaultApi' do
|
|
30
|
+
it 'should create an instance of DefaultApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Solifyn::DefaultApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for dispute_created_post
|
|
36
|
+
# Dispute Created
|
|
37
|
+
# Occurs when a payment charge is disputed by the customer (chargeback initiated).
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [WebhookDisputePayload] :webhook_dispute_payload
|
|
40
|
+
# @return [nil]
|
|
41
|
+
describe 'dispute_created_post 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 dispute_lost_post
|
|
48
|
+
# Dispute Lost
|
|
49
|
+
# Occurs when a dispute challenge is lost and the funds are returned to the cardholder.
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @option opts [WebhookDisputePayload] :webhook_dispute_payload
|
|
52
|
+
# @return [nil]
|
|
53
|
+
describe 'dispute_lost_post test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for dispute_won_post
|
|
60
|
+
# Dispute Won
|
|
61
|
+
# Occurs when a dispute challenge is won by the merchant.
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [WebhookDisputePayload] :webhook_dispute_payload
|
|
64
|
+
# @return [nil]
|
|
65
|
+
describe 'dispute_won_post 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
|
+
# 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
|
+
# unit tests for license_created_post
|
|
120
|
+
# License Created
|
|
121
|
+
# Occurs when a new software license key is created or assigned to a customer purchase.
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @option opts [WebhookLicensePayload] :webhook_license_payload
|
|
124
|
+
# @return [nil]
|
|
125
|
+
describe 'license_created_post 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 license_revoked_post
|
|
132
|
+
# License Revoked
|
|
133
|
+
# Occurs when a software license key is revoked (e.g., due to subscription cancellation, refund, or dispute).
|
|
134
|
+
# @param [Hash] opts the optional parameters
|
|
135
|
+
# @option opts [WebhookLicensePayload] :webhook_license_payload
|
|
136
|
+
# @return [nil]
|
|
137
|
+
describe 'license_revoked_post test' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# unit tests for payment_created_post
|
|
144
|
+
# Payment Created
|
|
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.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [WebhookPaymentPayload] :webhook_payment_payload
|
|
148
|
+
# @return [nil]
|
|
149
|
+
describe 'payment_created_post test' do
|
|
150
|
+
it 'should work' do
|
|
151
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# unit tests for payment_failed_post
|
|
156
|
+
# Payment Failed
|
|
157
|
+
# Occurs when a customer payment attempt fails.
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @option opts [Order] :order
|
|
160
|
+
# @return [nil]
|
|
161
|
+
describe 'payment_failed_post test' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# unit tests for payment_succeeded_post
|
|
168
|
+
# Payment Succeeded
|
|
169
|
+
# Occurs when a customer payment is confirmed as succeeded.
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @option opts [Order] :order
|
|
172
|
+
# @return [nil]
|
|
173
|
+
describe 'payment_succeeded_post test' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# unit tests for refund_failed_post
|
|
180
|
+
# Refund Failed
|
|
181
|
+
# Occurs when a payment refund fails.
|
|
182
|
+
# @param [Hash] opts the optional parameters
|
|
183
|
+
# @option opts [WebhookRefundPayload] :webhook_refund_payload
|
|
184
|
+
# @return [nil]
|
|
185
|
+
describe 'refund_failed_post test' do
|
|
186
|
+
it 'should work' do
|
|
187
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# unit tests for refund_succeeded_post
|
|
192
|
+
# Refund Succeeded
|
|
193
|
+
# Occurs when a payment refund is confirmed as succeeded.
|
|
194
|
+
# @param [Hash] opts the optional parameters
|
|
195
|
+
# @option opts [WebhookRefundPayload] :webhook_refund_payload
|
|
196
|
+
# @return [nil]
|
|
197
|
+
describe 'refund_succeeded_post test' do
|
|
198
|
+
it 'should work' do
|
|
199
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# unit tests for subscription_created_post
|
|
204
|
+
# Subscription Created
|
|
205
|
+
# Occurs when a customer subscription is successfully started.
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
|
|
208
|
+
# @return [nil]
|
|
209
|
+
describe 'subscription_created_post test' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# unit tests for subscription_deactivated_post
|
|
216
|
+
# Subscription Deactivated
|
|
217
|
+
# Occurs when a customer subscription is deactivated or expired.
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
|
|
220
|
+
# @return [nil]
|
|
221
|
+
describe 'subscription_deactivated_post test' do
|
|
222
|
+
it 'should work' do
|
|
223
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# unit tests for subscription_updated_post
|
|
228
|
+
# Subscription Updated
|
|
229
|
+
# Occurs when a customer subscription is updated (e.g., cancel at period end changes).
|
|
230
|
+
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @option opts [WebhookSubscriptionPayload] :webhook_subscription_payload
|
|
232
|
+
# @return [nil]
|
|
233
|
+
describe 'subscription_updated_post test' do
|
|
234
|
+
it 'should work' do
|
|
235
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
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::DiscordIntegrationApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DiscordIntegrationApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Solifyn::DiscordIntegrationApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
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
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
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's Discord server.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :product_id Optional Product ID to redirect back to after installation
|
|
40
|
+
# @return [nil]
|
|
41
|
+
describe 'discord_get_install_url 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 discord_list_roles
|
|
48
|
+
# List Guild Discord Roles
|
|
49
|
+
# Retrieves all roles available in the connected merchant's Discord server/guild.
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [Array<DiscordRolesResponseDto>]
|
|
52
|
+
describe 'discord_list_roles 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
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Solifyn::DiscordRolesResponseDto
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Solifyn::DiscordRolesResponseDto do
|
|
21
|
+
let(:instance) { Solifyn::DiscordRolesResponseDto.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DiscordRolesResponseDto' do
|
|
24
|
+
it 'should create an instance of DiscordRolesResponseDto' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Solifyn::DiscordRolesResponseDto)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "name"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "position"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "color"' 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
|
+
end
|