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
|
@@ -61,6 +61,15 @@ module Solifyn
|
|
|
61
61
|
# GitHub collaborator permission level.
|
|
62
62
|
attr_accessor :github_permission
|
|
63
63
|
|
|
64
|
+
# Whether the product includes Discord role access.
|
|
65
|
+
attr_accessor :has_discord_access
|
|
66
|
+
|
|
67
|
+
# Discord Guild (Server) ID to grant access to.
|
|
68
|
+
attr_accessor :discord_guild_id
|
|
69
|
+
|
|
70
|
+
# Discord Role ID to assign to the user.
|
|
71
|
+
attr_accessor :discord_role_id
|
|
72
|
+
|
|
64
73
|
# Whether the product price already includes applicable sales taxes.
|
|
65
74
|
attr_accessor :is_tax_inclusive
|
|
66
75
|
|
|
@@ -164,6 +173,9 @@ module Solifyn
|
|
|
164
173
|
:'has_github_access' => :'hasGithubAccess',
|
|
165
174
|
:'github_repo' => :'githubRepo',
|
|
166
175
|
:'github_permission' => :'githubPermission',
|
|
176
|
+
:'has_discord_access' => :'hasDiscordAccess',
|
|
177
|
+
:'discord_guild_id' => :'discordGuildId',
|
|
178
|
+
:'discord_role_id' => :'discordRoleId',
|
|
167
179
|
:'is_tax_inclusive' => :'isTaxInclusive',
|
|
168
180
|
:'billing_period' => :'billingPeriod',
|
|
169
181
|
:'trial_period_days' => :'trialPeriodDays',
|
|
@@ -211,6 +223,9 @@ module Solifyn
|
|
|
211
223
|
:'has_github_access' => :'Boolean',
|
|
212
224
|
:'github_repo' => :'String',
|
|
213
225
|
:'github_permission' => :'String',
|
|
226
|
+
:'has_discord_access' => :'Boolean',
|
|
227
|
+
:'discord_guild_id' => :'String',
|
|
228
|
+
:'discord_role_id' => :'String',
|
|
214
229
|
:'is_tax_inclusive' => :'Boolean',
|
|
215
230
|
:'billing_period' => :'Integer',
|
|
216
231
|
:'trial_period_days' => :'Integer',
|
|
@@ -238,23 +253,6 @@ module Solifyn
|
|
|
238
253
|
# List of attributes with nullable: true
|
|
239
254
|
def self.openapi_nullable
|
|
240
255
|
Set.new([
|
|
241
|
-
:'description',
|
|
242
|
-
:'image_url',
|
|
243
|
-
:'discount',
|
|
244
|
-
:'github_repo',
|
|
245
|
-
:'github_permission',
|
|
246
|
-
:'billing_period',
|
|
247
|
-
:'trial_period_days',
|
|
248
|
-
:'expiration_days',
|
|
249
|
-
:'statement_descriptor',
|
|
250
|
-
:'metadata',
|
|
251
|
-
:'custom_fields',
|
|
252
|
-
:'stock',
|
|
253
|
-
:'brand_id',
|
|
254
|
-
:'digital_link',
|
|
255
|
-
:'instructions',
|
|
256
|
-
:'activation_message',
|
|
257
|
-
:'expiry_hours',
|
|
258
256
|
])
|
|
259
257
|
end
|
|
260
258
|
|
|
@@ -361,6 +359,24 @@ module Solifyn
|
|
|
361
359
|
self.github_permission = nil
|
|
362
360
|
end
|
|
363
361
|
|
|
362
|
+
if attributes.key?(:'has_discord_access')
|
|
363
|
+
self.has_discord_access = attributes[:'has_discord_access']
|
|
364
|
+
else
|
|
365
|
+
self.has_discord_access = nil
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
if attributes.key?(:'discord_guild_id')
|
|
369
|
+
self.discord_guild_id = attributes[:'discord_guild_id']
|
|
370
|
+
else
|
|
371
|
+
self.discord_guild_id = nil
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if attributes.key?(:'discord_role_id')
|
|
375
|
+
self.discord_role_id = attributes[:'discord_role_id']
|
|
376
|
+
else
|
|
377
|
+
self.discord_role_id = nil
|
|
378
|
+
end
|
|
379
|
+
|
|
364
380
|
if attributes.key?(:'is_tax_inclusive')
|
|
365
381
|
self.is_tax_inclusive = attributes[:'is_tax_inclusive']
|
|
366
382
|
else
|
|
@@ -517,6 +533,10 @@ module Solifyn
|
|
|
517
533
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
518
534
|
end
|
|
519
535
|
|
|
536
|
+
if @image_url.nil?
|
|
537
|
+
invalid_properties.push('invalid value for "image_url", image_url cannot be nil.')
|
|
538
|
+
end
|
|
539
|
+
|
|
520
540
|
if @tax_category.nil?
|
|
521
541
|
invalid_properties.push('invalid value for "tax_category", tax_category cannot be nil.')
|
|
522
542
|
end
|
|
@@ -525,6 +545,10 @@ module Solifyn
|
|
|
525
545
|
invalid_properties.push('invalid value for "pricing_type", pricing_type cannot be nil.')
|
|
526
546
|
end
|
|
527
547
|
|
|
548
|
+
if @discount.nil?
|
|
549
|
+
invalid_properties.push('invalid value for "discount", discount cannot be nil.')
|
|
550
|
+
end
|
|
551
|
+
|
|
528
552
|
if @has_license_key.nil?
|
|
529
553
|
invalid_properties.push('invalid value for "has_license_key", has_license_key cannot be nil.')
|
|
530
554
|
end
|
|
@@ -537,14 +561,62 @@ module Solifyn
|
|
|
537
561
|
invalid_properties.push('invalid value for "has_github_access", has_github_access cannot be nil.')
|
|
538
562
|
end
|
|
539
563
|
|
|
564
|
+
if @github_repo.nil?
|
|
565
|
+
invalid_properties.push('invalid value for "github_repo", github_repo cannot be nil.')
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
if @github_permission.nil?
|
|
569
|
+
invalid_properties.push('invalid value for "github_permission", github_permission cannot be nil.')
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
if @has_discord_access.nil?
|
|
573
|
+
invalid_properties.push('invalid value for "has_discord_access", has_discord_access cannot be nil.')
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
if @discord_guild_id.nil?
|
|
577
|
+
invalid_properties.push('invalid value for "discord_guild_id", discord_guild_id cannot be nil.')
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
if @discord_role_id.nil?
|
|
581
|
+
invalid_properties.push('invalid value for "discord_role_id", discord_role_id cannot be nil.')
|
|
582
|
+
end
|
|
583
|
+
|
|
540
584
|
if @is_tax_inclusive.nil?
|
|
541
585
|
invalid_properties.push('invalid value for "is_tax_inclusive", is_tax_inclusive cannot be nil.')
|
|
542
586
|
end
|
|
543
587
|
|
|
588
|
+
if @billing_period.nil?
|
|
589
|
+
invalid_properties.push('invalid value for "billing_period", billing_period cannot be nil.')
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
if @trial_period_days.nil?
|
|
593
|
+
invalid_properties.push('invalid value for "trial_period_days", trial_period_days cannot be nil.')
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
if @expiration_days.nil?
|
|
597
|
+
invalid_properties.push('invalid value for "expiration_days", expiration_days cannot be nil.')
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
if @statement_descriptor.nil?
|
|
601
|
+
invalid_properties.push('invalid value for "statement_descriptor", statement_descriptor cannot be nil.')
|
|
602
|
+
end
|
|
603
|
+
|
|
544
604
|
if @pay_what_you_want.nil?
|
|
545
605
|
invalid_properties.push('invalid value for "pay_what_you_want", pay_what_you_want cannot be nil.')
|
|
546
606
|
end
|
|
547
607
|
|
|
608
|
+
if @metadata.nil?
|
|
609
|
+
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
if @custom_fields.nil?
|
|
613
|
+
invalid_properties.push('invalid value for "custom_fields", custom_fields cannot be nil.')
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
if @stock.nil?
|
|
617
|
+
invalid_properties.push('invalid value for "stock", stock cannot be nil.')
|
|
618
|
+
end
|
|
619
|
+
|
|
548
620
|
if @activation_limit.nil?
|
|
549
621
|
invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
|
|
550
622
|
end
|
|
@@ -569,6 +641,26 @@ module Solifyn
|
|
|
569
641
|
invalid_properties.push('invalid value for "is_permanently_deleted", is_permanently_deleted cannot be nil.')
|
|
570
642
|
end
|
|
571
643
|
|
|
644
|
+
if @brand_id.nil?
|
|
645
|
+
invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.')
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
if @digital_link.nil?
|
|
649
|
+
invalid_properties.push('invalid value for "digital_link", digital_link cannot be nil.')
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
if @instructions.nil?
|
|
653
|
+
invalid_properties.push('invalid value for "instructions", instructions cannot be nil.')
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
if @activation_message.nil?
|
|
657
|
+
invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
if @expiry_hours.nil?
|
|
661
|
+
invalid_properties.push('invalid value for "expiry_hours", expiry_hours cannot be nil.')
|
|
662
|
+
end
|
|
663
|
+
|
|
572
664
|
if @business_id.nil?
|
|
573
665
|
invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
|
|
574
666
|
end
|
|
@@ -585,25 +677,44 @@ module Solifyn
|
|
|
585
677
|
return false if @price.nil?
|
|
586
678
|
return false if @currency.nil?
|
|
587
679
|
return false if @status.nil?
|
|
680
|
+
return false if @image_url.nil?
|
|
588
681
|
return false if @tax_category.nil?
|
|
589
682
|
tax_category_validator = EnumAttributeValidator.new('String', ["digital_products", "saas", "physical_products", "service"])
|
|
590
683
|
return false unless tax_category_validator.valid?(@tax_category)
|
|
591
684
|
return false if @pricing_type.nil?
|
|
592
685
|
pricing_type_validator = EnumAttributeValidator.new('String', ["usage_based", "one_time", "renewal"])
|
|
593
686
|
return false unless pricing_type_validator.valid?(@pricing_type)
|
|
687
|
+
return false if @discount.nil?
|
|
594
688
|
return false if @has_license_key.nil?
|
|
595
689
|
return false if @has_digital_delivery.nil?
|
|
596
690
|
return false if @has_github_access.nil?
|
|
691
|
+
return false if @github_repo.nil?
|
|
692
|
+
return false if @github_permission.nil?
|
|
597
693
|
github_permission_validator = EnumAttributeValidator.new('String', ["pull", "triage", "push", "maintain", "admin"])
|
|
598
694
|
return false unless github_permission_validator.valid?(@github_permission)
|
|
695
|
+
return false if @has_discord_access.nil?
|
|
696
|
+
return false if @discord_guild_id.nil?
|
|
697
|
+
return false if @discord_role_id.nil?
|
|
599
698
|
return false if @is_tax_inclusive.nil?
|
|
699
|
+
return false if @billing_period.nil?
|
|
700
|
+
return false if @trial_period_days.nil?
|
|
701
|
+
return false if @expiration_days.nil?
|
|
702
|
+
return false if @statement_descriptor.nil?
|
|
600
703
|
return false if @pay_what_you_want.nil?
|
|
704
|
+
return false if @metadata.nil?
|
|
705
|
+
return false if @custom_fields.nil?
|
|
706
|
+
return false if @stock.nil?
|
|
601
707
|
return false if @activation_limit.nil?
|
|
602
708
|
return false if @is_listed.nil?
|
|
603
709
|
return false if @is_free.nil?
|
|
604
710
|
return false if @created_at.nil?
|
|
605
711
|
return false if @updated_at.nil?
|
|
606
712
|
return false if @is_permanently_deleted.nil?
|
|
713
|
+
return false if @brand_id.nil?
|
|
714
|
+
return false if @digital_link.nil?
|
|
715
|
+
return false if @instructions.nil?
|
|
716
|
+
return false if @activation_message.nil?
|
|
717
|
+
return false if @expiry_hours.nil?
|
|
607
718
|
return false if @business_id.nil?
|
|
608
719
|
true
|
|
609
720
|
end
|
|
@@ -658,6 +769,9 @@ module Solifyn
|
|
|
658
769
|
has_github_access == o.has_github_access &&
|
|
659
770
|
github_repo == o.github_repo &&
|
|
660
771
|
github_permission == o.github_permission &&
|
|
772
|
+
has_discord_access == o.has_discord_access &&
|
|
773
|
+
discord_guild_id == o.discord_guild_id &&
|
|
774
|
+
discord_role_id == o.discord_role_id &&
|
|
661
775
|
is_tax_inclusive == o.is_tax_inclusive &&
|
|
662
776
|
billing_period == o.billing_period &&
|
|
663
777
|
trial_period_days == o.trial_period_days &&
|
|
@@ -690,7 +804,7 @@ module Solifyn
|
|
|
690
804
|
# Calculates hash code according to all attributes.
|
|
691
805
|
# @return [Integer] Hash code
|
|
692
806
|
def hash
|
|
693
|
-
[id, name, price, currency, description, status, image_url, tax_category, pricing_type, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, is_tax_inclusive, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, activation_limit, is_listed, is_free, created_at, updated_at, is_permanently_deleted, brand_id, digital_link, instructions, activation_message, expiry_hours, business_id].hash
|
|
807
|
+
[id, name, price, currency, description, status, image_url, tax_category, pricing_type, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, has_discord_access, discord_guild_id, discord_role_id, is_tax_inclusive, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, activation_limit, is_listed, is_free, created_at, updated_at, is_permanently_deleted, brand_id, digital_link, instructions, activation_message, expiry_hours, business_id].hash
|
|
694
808
|
end
|
|
695
809
|
|
|
696
810
|
# Builds the object from hash
|
|
@@ -51,6 +51,15 @@ module Solifyn
|
|
|
51
51
|
# GitHub collaborator permission level.
|
|
52
52
|
attr_accessor :github_permission
|
|
53
53
|
|
|
54
|
+
# Whether the purchase includes Discord server role access.
|
|
55
|
+
attr_accessor :has_discord_access
|
|
56
|
+
|
|
57
|
+
# Discord Guild (Server) ID to grant access to.
|
|
58
|
+
attr_accessor :discord_guild_id
|
|
59
|
+
|
|
60
|
+
# Discord Role ID to assign to the user.
|
|
61
|
+
attr_accessor :discord_role_id
|
|
62
|
+
|
|
54
63
|
# Whether tax is included in the base price.
|
|
55
64
|
attr_accessor :is_tax_inclusive
|
|
56
65
|
|
|
@@ -130,6 +139,9 @@ module Solifyn
|
|
|
130
139
|
:'has_github_access' => :'hasGithubAccess',
|
|
131
140
|
:'github_repo' => :'githubRepo',
|
|
132
141
|
:'github_permission' => :'githubPermission',
|
|
142
|
+
:'has_discord_access' => :'hasDiscordAccess',
|
|
143
|
+
:'discord_guild_id' => :'discordGuildId',
|
|
144
|
+
:'discord_role_id' => :'discordRoleId',
|
|
133
145
|
:'is_tax_inclusive' => :'isTaxInclusive',
|
|
134
146
|
:'activation_limit' => :'activationLimit',
|
|
135
147
|
:'brand_id' => :'brandId',
|
|
@@ -167,6 +179,9 @@ module Solifyn
|
|
|
167
179
|
:'has_github_access' => :'Boolean',
|
|
168
180
|
:'github_repo' => :'String',
|
|
169
181
|
:'github_permission' => :'String',
|
|
182
|
+
:'has_discord_access' => :'Boolean',
|
|
183
|
+
:'discord_guild_id' => :'String',
|
|
184
|
+
:'discord_role_id' => :'String',
|
|
170
185
|
:'is_tax_inclusive' => :'Boolean',
|
|
171
186
|
:'activation_limit' => :'Integer',
|
|
172
187
|
:'brand_id' => :'String',
|
|
@@ -187,8 +202,6 @@ module Solifyn
|
|
|
187
202
|
# List of attributes with nullable: true
|
|
188
203
|
def self.openapi_nullable
|
|
189
204
|
Set.new([
|
|
190
|
-
:'activation_limit',
|
|
191
|
-
:'brand_id',
|
|
192
205
|
])
|
|
193
206
|
end
|
|
194
207
|
|
|
@@ -269,6 +282,20 @@ module Solifyn
|
|
|
269
282
|
self.github_permission = attributes[:'github_permission']
|
|
270
283
|
end
|
|
271
284
|
|
|
285
|
+
if attributes.key?(:'has_discord_access')
|
|
286
|
+
self.has_discord_access = attributes[:'has_discord_access']
|
|
287
|
+
else
|
|
288
|
+
self.has_discord_access = false
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'discord_guild_id')
|
|
292
|
+
self.discord_guild_id = attributes[:'discord_guild_id']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'discord_role_id')
|
|
296
|
+
self.discord_role_id = attributes[:'discord_role_id']
|
|
297
|
+
end
|
|
298
|
+
|
|
272
299
|
if attributes.key?(:'is_tax_inclusive')
|
|
273
300
|
self.is_tax_inclusive = attributes[:'is_tax_inclusive']
|
|
274
301
|
else
|
|
@@ -428,6 +455,9 @@ module Solifyn
|
|
|
428
455
|
has_github_access == o.has_github_access &&
|
|
429
456
|
github_repo == o.github_repo &&
|
|
430
457
|
github_permission == o.github_permission &&
|
|
458
|
+
has_discord_access == o.has_discord_access &&
|
|
459
|
+
discord_guild_id == o.discord_guild_id &&
|
|
460
|
+
discord_role_id == o.discord_role_id &&
|
|
431
461
|
is_tax_inclusive == o.is_tax_inclusive &&
|
|
432
462
|
activation_limit == o.activation_limit &&
|
|
433
463
|
brand_id == o.brand_id &&
|
|
@@ -453,7 +483,7 @@ module Solifyn
|
|
|
453
483
|
# Calculates hash code according to all attributes.
|
|
454
484
|
# @return [Integer] Hash code
|
|
455
485
|
def hash
|
|
456
|
-
[name, description, price, currency, image_url, tax_category, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, is_tax_inclusive, activation_limit, brand_id, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, is_listed, is_free, addons].hash
|
|
486
|
+
[name, description, price, currency, image_url, tax_category, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, has_discord_access, discord_guild_id, discord_role_id, is_tax_inclusive, activation_limit, brand_id, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, is_listed, is_free, addons].hash
|
|
457
487
|
end
|
|
458
488
|
|
|
459
489
|
# Builds the object from hash
|
|
@@ -47,7 +47,6 @@ module Solifyn
|
|
|
47
47
|
# List of attributes with nullable: true
|
|
48
48
|
def self.openapi_nullable
|
|
49
49
|
Set.new([
|
|
50
|
-
:'digital_link'
|
|
51
50
|
])
|
|
52
51
|
end
|
|
53
52
|
|
|
@@ -98,6 +97,10 @@ module Solifyn
|
|
|
98
97
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
99
98
|
end
|
|
100
99
|
|
|
100
|
+
if @digital_link.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "digital_link", digital_link cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
101
104
|
invalid_properties
|
|
102
105
|
end
|
|
103
106
|
|
|
@@ -107,6 +110,7 @@ module Solifyn
|
|
|
107
110
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
108
111
|
return false if @id.nil?
|
|
109
112
|
return false if @name.nil?
|
|
113
|
+
return false if @digital_link.nil?
|
|
110
114
|
true
|
|
111
115
|
end
|
|
112
116
|
|
|
@@ -51,6 +51,15 @@ module Solifyn
|
|
|
51
51
|
# GitHub collaborator permission level.
|
|
52
52
|
attr_accessor :github_permission
|
|
53
53
|
|
|
54
|
+
# Whether the purchase includes Discord server role access.
|
|
55
|
+
attr_accessor :has_discord_access
|
|
56
|
+
|
|
57
|
+
# Discord Guild (Server) ID to grant access to.
|
|
58
|
+
attr_accessor :discord_guild_id
|
|
59
|
+
|
|
60
|
+
# Discord Role ID to assign to the user.
|
|
61
|
+
attr_accessor :discord_role_id
|
|
62
|
+
|
|
54
63
|
# Whether tax is included in the base price.
|
|
55
64
|
attr_accessor :is_tax_inclusive
|
|
56
65
|
|
|
@@ -130,6 +139,9 @@ module Solifyn
|
|
|
130
139
|
:'has_github_access' => :'hasGithubAccess',
|
|
131
140
|
:'github_repo' => :'githubRepo',
|
|
132
141
|
:'github_permission' => :'githubPermission',
|
|
142
|
+
:'has_discord_access' => :'hasDiscordAccess',
|
|
143
|
+
:'discord_guild_id' => :'discordGuildId',
|
|
144
|
+
:'discord_role_id' => :'discordRoleId',
|
|
133
145
|
:'is_tax_inclusive' => :'isTaxInclusive',
|
|
134
146
|
:'activation_limit' => :'activationLimit',
|
|
135
147
|
:'brand_id' => :'brandId',
|
|
@@ -167,6 +179,9 @@ module Solifyn
|
|
|
167
179
|
:'has_github_access' => :'Boolean',
|
|
168
180
|
:'github_repo' => :'String',
|
|
169
181
|
:'github_permission' => :'String',
|
|
182
|
+
:'has_discord_access' => :'Boolean',
|
|
183
|
+
:'discord_guild_id' => :'String',
|
|
184
|
+
:'discord_role_id' => :'String',
|
|
170
185
|
:'is_tax_inclusive' => :'Boolean',
|
|
171
186
|
:'activation_limit' => :'Integer',
|
|
172
187
|
:'brand_id' => :'String',
|
|
@@ -187,8 +202,6 @@ module Solifyn
|
|
|
187
202
|
# List of attributes with nullable: true
|
|
188
203
|
def self.openapi_nullable
|
|
189
204
|
Set.new([
|
|
190
|
-
:'activation_limit',
|
|
191
|
-
:'brand_id',
|
|
192
205
|
])
|
|
193
206
|
end
|
|
194
207
|
|
|
@@ -263,6 +276,20 @@ module Solifyn
|
|
|
263
276
|
self.github_permission = attributes[:'github_permission']
|
|
264
277
|
end
|
|
265
278
|
|
|
279
|
+
if attributes.key?(:'has_discord_access')
|
|
280
|
+
self.has_discord_access = attributes[:'has_discord_access']
|
|
281
|
+
else
|
|
282
|
+
self.has_discord_access = false
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'discord_guild_id')
|
|
286
|
+
self.discord_guild_id = attributes[:'discord_guild_id']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'discord_role_id')
|
|
290
|
+
self.discord_role_id = attributes[:'discord_role_id']
|
|
291
|
+
end
|
|
292
|
+
|
|
266
293
|
if attributes.key?(:'is_tax_inclusive')
|
|
267
294
|
self.is_tax_inclusive = attributes[:'is_tax_inclusive']
|
|
268
295
|
else
|
|
@@ -402,6 +429,9 @@ module Solifyn
|
|
|
402
429
|
has_github_access == o.has_github_access &&
|
|
403
430
|
github_repo == o.github_repo &&
|
|
404
431
|
github_permission == o.github_permission &&
|
|
432
|
+
has_discord_access == o.has_discord_access &&
|
|
433
|
+
discord_guild_id == o.discord_guild_id &&
|
|
434
|
+
discord_role_id == o.discord_role_id &&
|
|
405
435
|
is_tax_inclusive == o.is_tax_inclusive &&
|
|
406
436
|
activation_limit == o.activation_limit &&
|
|
407
437
|
brand_id == o.brand_id &&
|
|
@@ -427,7 +457,7 @@ module Solifyn
|
|
|
427
457
|
# Calculates hash code according to all attributes.
|
|
428
458
|
# @return [Integer] Hash code
|
|
429
459
|
def hash
|
|
430
|
-
[name, description, price, currency, image_url, tax_category, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, is_tax_inclusive, activation_limit, brand_id, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, is_listed, is_free, addons].hash
|
|
460
|
+
[name, description, price, currency, image_url, tax_category, discount, has_license_key, has_digital_delivery, has_github_access, github_repo, github_permission, has_discord_access, discord_guild_id, discord_role_id, is_tax_inclusive, activation_limit, brand_id, billing_period, trial_period_days, expiration_days, statement_descriptor, pay_what_you_want, metadata, custom_fields, stock, is_listed, is_free, addons].hash
|
|
431
461
|
end
|
|
432
462
|
|
|
433
463
|
# Builds the object from hash
|
|
@@ -55,7 +55,6 @@ module Solifyn
|
|
|
55
55
|
# List of attributes with nullable: true
|
|
56
56
|
def self.openapi_nullable
|
|
57
57
|
Set.new([
|
|
58
|
-
:'image_url',
|
|
59
58
|
])
|
|
60
59
|
end
|
|
61
60
|
|
|
@@ -112,6 +111,10 @@ module Solifyn
|
|
|
112
111
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
113
112
|
end
|
|
114
113
|
|
|
114
|
+
if @image_url.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "image_url", image_url cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
115
118
|
if @quantity.nil?
|
|
116
119
|
invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
|
|
117
120
|
end
|
|
@@ -125,6 +128,7 @@ module Solifyn
|
|
|
125
128
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
129
|
return false if @product_id.nil?
|
|
127
130
|
return false if @name.nil?
|
|
131
|
+
return false if @image_url.nil?
|
|
128
132
|
return false if @quantity.nil?
|
|
129
133
|
true
|
|
130
134
|
end
|
|
@@ -166,16 +166,6 @@ module Solifyn
|
|
|
166
166
|
# List of attributes with nullable: true
|
|
167
167
|
def self.openapi_nullable
|
|
168
168
|
Set.new([
|
|
169
|
-
:'renewal_period_start',
|
|
170
|
-
:'renewal_period_end',
|
|
171
|
-
:'cancel_option',
|
|
172
|
-
:'cancellation_reason',
|
|
173
|
-
:'canceled_at',
|
|
174
|
-
:'promo_code',
|
|
175
|
-
:'license_key',
|
|
176
|
-
:'price',
|
|
177
|
-
:'type',
|
|
178
|
-
:'customer_id'
|
|
179
169
|
])
|
|
180
170
|
end
|
|
181
171
|
|
|
@@ -382,10 +372,30 @@ module Solifyn
|
|
|
382
372
|
invalid_properties.push('invalid value for "user", user cannot be nil.')
|
|
383
373
|
end
|
|
384
374
|
|
|
375
|
+
if @renewal_period_start.nil?
|
|
376
|
+
invalid_properties.push('invalid value for "renewal_period_start", renewal_period_start cannot be nil.')
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
if @renewal_period_end.nil?
|
|
380
|
+
invalid_properties.push('invalid value for "renewal_period_end", renewal_period_end cannot be nil.')
|
|
381
|
+
end
|
|
382
|
+
|
|
385
383
|
if @cancel_at_period_end.nil?
|
|
386
384
|
invalid_properties.push('invalid value for "cancel_at_period_end", cancel_at_period_end cannot be nil.')
|
|
387
385
|
end
|
|
388
386
|
|
|
387
|
+
if @cancel_option.nil?
|
|
388
|
+
invalid_properties.push('invalid value for "cancel_option", cancel_option cannot be nil.')
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
if @cancellation_reason.nil?
|
|
392
|
+
invalid_properties.push('invalid value for "cancellation_reason", cancellation_reason cannot be nil.')
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
if @canceled_at.nil?
|
|
396
|
+
invalid_properties.push('invalid value for "canceled_at", canceled_at cannot be nil.')
|
|
397
|
+
end
|
|
398
|
+
|
|
389
399
|
if @currency.nil?
|
|
390
400
|
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
|
391
401
|
end
|
|
@@ -398,10 +408,18 @@ module Solifyn
|
|
|
398
408
|
invalid_properties.push('invalid value for "plan", plan cannot be nil.')
|
|
399
409
|
end
|
|
400
410
|
|
|
411
|
+
if @promo_code.nil?
|
|
412
|
+
invalid_properties.push('invalid value for "promo_code", promo_code cannot be nil.')
|
|
413
|
+
end
|
|
414
|
+
|
|
401
415
|
if @product.nil?
|
|
402
416
|
invalid_properties.push('invalid value for "product", product cannot be nil.')
|
|
403
417
|
end
|
|
404
418
|
|
|
419
|
+
if @license_key.nil?
|
|
420
|
+
invalid_properties.push('invalid value for "license_key", license_key cannot be nil.')
|
|
421
|
+
end
|
|
422
|
+
|
|
405
423
|
if @metadata.nil?
|
|
406
424
|
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
407
425
|
end
|
|
@@ -429,11 +447,18 @@ module Solifyn
|
|
|
429
447
|
return false if @manage_url.nil?
|
|
430
448
|
return false if @member.nil?
|
|
431
449
|
return false if @user.nil?
|
|
450
|
+
return false if @renewal_period_start.nil?
|
|
451
|
+
return false if @renewal_period_end.nil?
|
|
432
452
|
return false if @cancel_at_period_end.nil?
|
|
453
|
+
return false if @cancel_option.nil?
|
|
454
|
+
return false if @cancellation_reason.nil?
|
|
455
|
+
return false if @canceled_at.nil?
|
|
433
456
|
return false if @currency.nil?
|
|
434
457
|
return false if @company.nil?
|
|
435
458
|
return false if @plan.nil?
|
|
459
|
+
return false if @promo_code.nil?
|
|
436
460
|
return false if @product.nil?
|
|
461
|
+
return false if @license_key.nil?
|
|
437
462
|
return false if @metadata.nil?
|
|
438
463
|
return false if @payment_collection_paused.nil?
|
|
439
464
|
return false if @checkout_configuration_id.nil?
|
|
@@ -56,7 +56,6 @@ module Solifyn
|
|
|
56
56
|
# List of attributes with nullable: true
|
|
57
57
|
def self.openapi_nullable
|
|
58
58
|
Set.new([
|
|
59
|
-
:'product'
|
|
60
59
|
])
|
|
61
60
|
end
|
|
62
61
|
|
|
@@ -121,6 +120,10 @@ module Solifyn
|
|
|
121
120
|
invalid_properties.push('invalid value for "purchased_addons", purchased_addons cannot be nil.')
|
|
122
121
|
end
|
|
123
122
|
|
|
123
|
+
if @product.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "product", product cannot be nil.')
|
|
125
|
+
end
|
|
126
|
+
|
|
124
127
|
invalid_properties
|
|
125
128
|
end
|
|
126
129
|
|
|
@@ -131,6 +134,7 @@ module Solifyn
|
|
|
131
134
|
return false if @subscription.nil?
|
|
132
135
|
return false if @payments.nil?
|
|
133
136
|
return false if @purchased_addons.nil?
|
|
137
|
+
return false if @product.nil?
|
|
134
138
|
true
|
|
135
139
|
end
|
|
136
140
|
|
|
@@ -103,12 +103,6 @@ module Solifyn
|
|
|
103
103
|
# List of attributes with nullable: true
|
|
104
104
|
def self.openapi_nullable
|
|
105
105
|
Set.new([
|
|
106
|
-
:'payment_id',
|
|
107
|
-
:'github_repo',
|
|
108
|
-
:'github_permission',
|
|
109
|
-
:'github_username',
|
|
110
|
-
:'oauth_url',
|
|
111
|
-
:'error_details',
|
|
112
106
|
])
|
|
113
107
|
end
|
|
114
108
|
|