solifyn 1.1.1 → 1.1.2
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 +4 -4
- data/docs/Brand.md +2 -2
- data/docs/CheckoutLinkResponseDto.md +3 -3
- data/docs/CollectionDetailResponseDto.md +3 -3
- data/docs/CollectionProductDto.md +3 -3
- data/docs/CollectionResponseDto.md +3 -3
- data/docs/CustomerResponseDto.md +2 -2
- data/docs/CustomerSharedInviteResponseDto.md +1 -1
- data/docs/Dispute.md +3 -3
- data/docs/EntitlementGrantResponseDto.md +5 -5
- data/docs/Invoice.md +1 -1
- data/docs/MeterDetailResponseDto.md +3 -3
- data/docs/MeterResponseDto.md +2 -2
- data/docs/MeterUsageEventDto.md +2 -2
- data/docs/Order.md +2 -2
- data/docs/OrderRefund.md +1 -1
- data/docs/Product.md +5 -5
- data/docs/ProductCreate.md +1 -1
- data/docs/ProductUpdate.md +2 -2
- data/docs/Refund.md +5 -5
- data/docs/Subscription.md +3 -3
- data/docs/UpdateCustomerDto.md +1 -1
- data/docs/WebhookEntitlementGrantPayload.md +5 -5
- data/lib/solifyn/models/addon.rb +2 -10
- data/lib/solifyn/models/brand.rb +6 -0
- data/lib/solifyn/models/brand_create.rb +6 -5
- data/lib/solifyn/models/brand_update.rb +6 -5
- data/lib/solifyn/models/checkout_link_response_dto.rb +12 -0
- data/lib/solifyn/models/checkout_session_details_dto.rb +1 -0
- data/lib/solifyn/models/collection_detail_response_dto.rb +2 -0
- data/lib/solifyn/models/collection_product_dto.rb +17 -80
- data/lib/solifyn/models/collection_response_dto.rb +2 -0
- data/lib/solifyn/models/customer_response_dto.rb +6 -0
- data/lib/solifyn/models/discount.rb +2 -10
- data/lib/solifyn/models/discount_create.rb +3 -0
- data/lib/solifyn/models/discount_update.rb +3 -0
- data/lib/solifyn/models/dispute.rb +10 -0
- data/lib/solifyn/models/dispute_evidence_dto.rb +4 -0
- data/lib/solifyn/models/instance.rb +4 -20
- data/lib/solifyn/models/license.rb +8 -40
- data/lib/solifyn/models/license_sub_dto.rb +3 -15
- data/lib/solifyn/models/meter_detail_response_dto.rb +4 -0
- data/lib/solifyn/models/meter_response_dto.rb +4 -0
- data/lib/solifyn/models/meter_usage_event_dto.rb +1 -0
- data/lib/solifyn/models/product.rb +17 -80
- data/lib/solifyn/models/product_create.rb +2 -2
- data/lib/solifyn/models/product_sub_dto.rb +1 -5
- data/lib/solifyn/models/product_update.rb +2 -0
- data/lib/solifyn/models/refund.rb +5 -0
- data/lib/solifyn/models/resolved_addon.rb +1 -5
- data/lib/solifyn/models/subscription.rb +10 -35
- data/lib/solifyn/models/subscription_detail.rb +1 -5
- data/lib/solifyn/models/webhook_dispute_payload.rb +5 -0
- data/lib/solifyn/models/webhook_entitlement_grant_payload.rb +6 -0
- data/lib/solifyn/models/webhook_license_payload.rb +8 -40
- data/lib/solifyn/models/webhook_payment_payload.rb +40 -0
- data/lib/solifyn/models/webhook_refund_payload.rb +4 -0
- data/lib/solifyn/models/webhook_subscription_payload.rb +9 -0
- data/lib/solifyn/version.rb +1 -1
- metadata +160 -160
|
@@ -242,6 +242,23 @@ module Solifyn
|
|
|
242
242
|
# List of attributes with nullable: true
|
|
243
243
|
def self.openapi_nullable
|
|
244
244
|
Set.new([
|
|
245
|
+
:'description',
|
|
246
|
+
:'image_url',
|
|
247
|
+
:'discount',
|
|
248
|
+
:'github_repo',
|
|
249
|
+
:'github_permission',
|
|
250
|
+
:'billing_period',
|
|
251
|
+
:'trial_period_days',
|
|
252
|
+
:'expiration_days',
|
|
253
|
+
:'statement_descriptor',
|
|
254
|
+
:'metadata',
|
|
255
|
+
:'custom_fields',
|
|
256
|
+
:'stock',
|
|
257
|
+
:'brand_id',
|
|
258
|
+
:'digital_link',
|
|
259
|
+
:'instructions',
|
|
260
|
+
:'activation_message',
|
|
261
|
+
:'expiry_hours',
|
|
245
262
|
])
|
|
246
263
|
end
|
|
247
264
|
|
|
@@ -510,10 +527,6 @@ module Solifyn
|
|
|
510
527
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
511
528
|
end
|
|
512
529
|
|
|
513
|
-
if @image_url.nil?
|
|
514
|
-
invalid_properties.push('invalid value for "image_url", image_url cannot be nil.')
|
|
515
|
-
end
|
|
516
|
-
|
|
517
530
|
if @tax_category.nil?
|
|
518
531
|
invalid_properties.push('invalid value for "tax_category", tax_category cannot be nil.')
|
|
519
532
|
end
|
|
@@ -522,10 +535,6 @@ module Solifyn
|
|
|
522
535
|
invalid_properties.push('invalid value for "pricing_type", pricing_type cannot be nil.')
|
|
523
536
|
end
|
|
524
537
|
|
|
525
|
-
if @discount.nil?
|
|
526
|
-
invalid_properties.push('invalid value for "discount", discount cannot be nil.')
|
|
527
|
-
end
|
|
528
|
-
|
|
529
538
|
if @has_license_key.nil?
|
|
530
539
|
invalid_properties.push('invalid value for "has_license_key", has_license_key cannot be nil.')
|
|
531
540
|
end
|
|
@@ -538,50 +547,14 @@ module Solifyn
|
|
|
538
547
|
invalid_properties.push('invalid value for "has_github_access", has_github_access cannot be nil.')
|
|
539
548
|
end
|
|
540
549
|
|
|
541
|
-
if @github_repo.nil?
|
|
542
|
-
invalid_properties.push('invalid value for "github_repo", github_repo cannot be nil.')
|
|
543
|
-
end
|
|
544
|
-
|
|
545
|
-
if @github_permission.nil?
|
|
546
|
-
invalid_properties.push('invalid value for "github_permission", github_permission cannot be nil.')
|
|
547
|
-
end
|
|
548
|
-
|
|
549
550
|
if @is_tax_inclusive.nil?
|
|
550
551
|
invalid_properties.push('invalid value for "is_tax_inclusive", is_tax_inclusive cannot be nil.')
|
|
551
552
|
end
|
|
552
553
|
|
|
553
|
-
if @billing_period.nil?
|
|
554
|
-
invalid_properties.push('invalid value for "billing_period", billing_period cannot be nil.')
|
|
555
|
-
end
|
|
556
|
-
|
|
557
|
-
if @trial_period_days.nil?
|
|
558
|
-
invalid_properties.push('invalid value for "trial_period_days", trial_period_days cannot be nil.')
|
|
559
|
-
end
|
|
560
|
-
|
|
561
|
-
if @expiration_days.nil?
|
|
562
|
-
invalid_properties.push('invalid value for "expiration_days", expiration_days cannot be nil.')
|
|
563
|
-
end
|
|
564
|
-
|
|
565
|
-
if @statement_descriptor.nil?
|
|
566
|
-
invalid_properties.push('invalid value for "statement_descriptor", statement_descriptor cannot be nil.')
|
|
567
|
-
end
|
|
568
|
-
|
|
569
554
|
if @pay_what_you_want.nil?
|
|
570
555
|
invalid_properties.push('invalid value for "pay_what_you_want", pay_what_you_want cannot be nil.')
|
|
571
556
|
end
|
|
572
557
|
|
|
573
|
-
if @metadata.nil?
|
|
574
|
-
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
575
|
-
end
|
|
576
|
-
|
|
577
|
-
if @custom_fields.nil?
|
|
578
|
-
invalid_properties.push('invalid value for "custom_fields", custom_fields cannot be nil.')
|
|
579
|
-
end
|
|
580
|
-
|
|
581
|
-
if @stock.nil?
|
|
582
|
-
invalid_properties.push('invalid value for "stock", stock cannot be nil.')
|
|
583
|
-
end
|
|
584
|
-
|
|
585
558
|
if @activation_limit.nil?
|
|
586
559
|
invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
|
|
587
560
|
end
|
|
@@ -606,26 +579,6 @@ module Solifyn
|
|
|
606
579
|
invalid_properties.push('invalid value for "is_permanently_deleted", is_permanently_deleted cannot be nil.')
|
|
607
580
|
end
|
|
608
581
|
|
|
609
|
-
if @brand_id.nil?
|
|
610
|
-
invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.')
|
|
611
|
-
end
|
|
612
|
-
|
|
613
|
-
if @digital_link.nil?
|
|
614
|
-
invalid_properties.push('invalid value for "digital_link", digital_link cannot be nil.')
|
|
615
|
-
end
|
|
616
|
-
|
|
617
|
-
if @instructions.nil?
|
|
618
|
-
invalid_properties.push('invalid value for "instructions", instructions cannot be nil.')
|
|
619
|
-
end
|
|
620
|
-
|
|
621
|
-
if @activation_message.nil?
|
|
622
|
-
invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
if @expiry_hours.nil?
|
|
626
|
-
invalid_properties.push('invalid value for "expiry_hours", expiry_hours cannot be nil.')
|
|
627
|
-
end
|
|
628
|
-
|
|
629
582
|
if @business_id.nil?
|
|
630
583
|
invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
|
|
631
584
|
end
|
|
@@ -646,41 +599,25 @@ module Solifyn
|
|
|
646
599
|
return false if @price.nil?
|
|
647
600
|
return false if @currency.nil?
|
|
648
601
|
return false if @status.nil?
|
|
649
|
-
return false if @image_url.nil?
|
|
650
602
|
return false if @tax_category.nil?
|
|
651
603
|
tax_category_validator = EnumAttributeValidator.new('String', ["digital_products", "saas", "physical_products", "service"])
|
|
652
604
|
return false unless tax_category_validator.valid?(@tax_category)
|
|
653
605
|
return false if @pricing_type.nil?
|
|
654
606
|
pricing_type_validator = EnumAttributeValidator.new('String', ["usage_based", "one_time", "renewal"])
|
|
655
607
|
return false unless pricing_type_validator.valid?(@pricing_type)
|
|
656
|
-
return false if @discount.nil?
|
|
657
608
|
return false if @has_license_key.nil?
|
|
658
609
|
return false if @has_digital_delivery.nil?
|
|
659
610
|
return false if @has_github_access.nil?
|
|
660
|
-
return false if @github_repo.nil?
|
|
661
|
-
return false if @github_permission.nil?
|
|
662
611
|
github_permission_validator = EnumAttributeValidator.new('String', ["pull", "triage", "push", "maintain", "admin"])
|
|
663
612
|
return false unless github_permission_validator.valid?(@github_permission)
|
|
664
613
|
return false if @is_tax_inclusive.nil?
|
|
665
|
-
return false if @billing_period.nil?
|
|
666
|
-
return false if @trial_period_days.nil?
|
|
667
|
-
return false if @expiration_days.nil?
|
|
668
|
-
return false if @statement_descriptor.nil?
|
|
669
614
|
return false if @pay_what_you_want.nil?
|
|
670
|
-
return false if @metadata.nil?
|
|
671
|
-
return false if @custom_fields.nil?
|
|
672
|
-
return false if @stock.nil?
|
|
673
615
|
return false if @activation_limit.nil?
|
|
674
616
|
return false if @is_listed.nil?
|
|
675
617
|
return false if @is_free.nil?
|
|
676
618
|
return false if @created_at.nil?
|
|
677
619
|
return false if @updated_at.nil?
|
|
678
620
|
return false if @is_permanently_deleted.nil?
|
|
679
|
-
return false if @brand_id.nil?
|
|
680
|
-
return false if @digital_link.nil?
|
|
681
|
-
return false if @instructions.nil?
|
|
682
|
-
return false if @activation_message.nil?
|
|
683
|
-
return false if @expiry_hours.nil?
|
|
684
621
|
return false if @business_id.nil?
|
|
685
622
|
return false if @quantity.nil?
|
|
686
623
|
true
|
|
@@ -123,6 +123,8 @@ module Solifyn
|
|
|
123
123
|
# List of attributes with nullable: true
|
|
124
124
|
def self.openapi_nullable
|
|
125
125
|
Set.new([
|
|
126
|
+
:'usage_limit',
|
|
127
|
+
:'expires_at',
|
|
126
128
|
])
|
|
127
129
|
end
|
|
128
130
|
|
|
@@ -243,18 +245,10 @@ module Solifyn
|
|
|
243
245
|
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
|
244
246
|
end
|
|
245
247
|
|
|
246
|
-
if @usage_limit.nil?
|
|
247
|
-
invalid_properties.push('invalid value for "usage_limit", usage_limit cannot be nil.')
|
|
248
|
-
end
|
|
249
|
-
|
|
250
248
|
if @times_used.nil?
|
|
251
249
|
invalid_properties.push('invalid value for "times_used", times_used cannot be nil.')
|
|
252
250
|
end
|
|
253
251
|
|
|
254
|
-
if @expires_at.nil?
|
|
255
|
-
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
|
256
|
-
end
|
|
257
|
-
|
|
258
252
|
if @status.nil?
|
|
259
253
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
260
254
|
end
|
|
@@ -285,9 +279,7 @@ module Solifyn
|
|
|
285
279
|
type_validator = EnumAttributeValidator.new('String', ["percentage", "fixed_amount"])
|
|
286
280
|
return false unless type_validator.valid?(@type)
|
|
287
281
|
return false if @amount.nil?
|
|
288
|
-
return false if @usage_limit.nil?
|
|
289
282
|
return false if @times_used.nil?
|
|
290
|
-
return false if @expires_at.nil?
|
|
291
283
|
return false if @status.nil?
|
|
292
284
|
status_validator = EnumAttributeValidator.new('String', ["active", "expired"])
|
|
293
285
|
return false unless status_validator.valid?(@status)
|
|
@@ -140,6 +140,16 @@ module Solifyn
|
|
|
140
140
|
# List of attributes with nullable: true
|
|
141
141
|
def self.openapi_nullable
|
|
142
142
|
Set.new([
|
|
143
|
+
:'reason',
|
|
144
|
+
:'needs_response_by',
|
|
145
|
+
:'billing_address',
|
|
146
|
+
:'customer_name',
|
|
147
|
+
:'customer_email',
|
|
148
|
+
:'notes',
|
|
149
|
+
:'product_description',
|
|
150
|
+
:'service_date',
|
|
151
|
+
:'access_activity_log',
|
|
152
|
+
:'evidence',
|
|
143
153
|
])
|
|
144
154
|
end
|
|
145
155
|
|
|
@@ -71,6 +71,10 @@ module Solifyn
|
|
|
71
71
|
# List of attributes with nullable: true
|
|
72
72
|
def self.openapi_nullable
|
|
73
73
|
Set.new([
|
|
74
|
+
:'instance_id',
|
|
75
|
+
:'instance_name',
|
|
76
|
+
:'ip_address',
|
|
77
|
+
:'last_seen_at'
|
|
74
78
|
])
|
|
75
79
|
end
|
|
76
80
|
|
|
@@ -145,26 +149,10 @@ module Solifyn
|
|
|
145
149
|
invalid_properties.push('invalid value for "license_id", license_id cannot be nil.')
|
|
146
150
|
end
|
|
147
151
|
|
|
148
|
-
if @instance_id.nil?
|
|
149
|
-
invalid_properties.push('invalid value for "instance_id", instance_id cannot be nil.')
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
if @instance_name.nil?
|
|
153
|
-
invalid_properties.push('invalid value for "instance_name", instance_name cannot be nil.')
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
if @ip_address.nil?
|
|
157
|
-
invalid_properties.push('invalid value for "ip_address", ip_address cannot be nil.')
|
|
158
|
-
end
|
|
159
|
-
|
|
160
152
|
if @activated_at.nil?
|
|
161
153
|
invalid_properties.push('invalid value for "activated_at", activated_at cannot be nil.')
|
|
162
154
|
end
|
|
163
155
|
|
|
164
|
-
if @last_seen_at.nil?
|
|
165
|
-
invalid_properties.push('invalid value for "last_seen_at", last_seen_at cannot be nil.')
|
|
166
|
-
end
|
|
167
|
-
|
|
168
156
|
invalid_properties
|
|
169
157
|
end
|
|
170
158
|
|
|
@@ -174,11 +162,7 @@ module Solifyn
|
|
|
174
162
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
175
163
|
return false if @id.nil?
|
|
176
164
|
return false if @license_id.nil?
|
|
177
|
-
return false if @instance_id.nil?
|
|
178
|
-
return false if @instance_name.nil?
|
|
179
|
-
return false if @ip_address.nil?
|
|
180
165
|
return false if @activated_at.nil?
|
|
181
|
-
return false if @last_seen_at.nil?
|
|
182
166
|
true
|
|
183
167
|
end
|
|
184
168
|
|
|
@@ -138,6 +138,14 @@ 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',
|
|
141
149
|
])
|
|
142
150
|
end
|
|
143
151
|
|
|
@@ -274,42 +282,10 @@ module Solifyn
|
|
|
274
282
|
invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
|
|
275
283
|
end
|
|
276
284
|
|
|
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
|
-
|
|
297
285
|
if @instances_count.nil?
|
|
298
286
|
invalid_properties.push('invalid value for "instances_count", instances_count cannot be nil.')
|
|
299
287
|
end
|
|
300
288
|
|
|
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
|
-
|
|
313
289
|
if @archived.nil?
|
|
314
290
|
invalid_properties.push('invalid value for "archived", archived cannot be nil.')
|
|
315
291
|
end
|
|
@@ -335,15 +311,7 @@ module Solifyn
|
|
|
335
311
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DISABLED", "REVOKED"])
|
|
336
312
|
return false unless status_validator.valid?(@status)
|
|
337
313
|
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?
|
|
343
314
|
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?
|
|
347
315
|
return false if @archived.nil?
|
|
348
316
|
return false if @created_at.nil?
|
|
349
317
|
return false if @updated_at.nil?
|
|
@@ -63,6 +63,9 @@ module Solifyn
|
|
|
63
63
|
# List of attributes with nullable: true
|
|
64
64
|
def self.openapi_nullable
|
|
65
65
|
Set.new([
|
|
66
|
+
:'activation_limit',
|
|
67
|
+
:'activation_message',
|
|
68
|
+
:'expires_at',
|
|
66
69
|
])
|
|
67
70
|
end
|
|
68
71
|
|
|
@@ -139,18 +142,6 @@ module Solifyn
|
|
|
139
142
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
140
143
|
end
|
|
141
144
|
|
|
142
|
-
if @activation_limit.nil?
|
|
143
|
-
invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if @activation_message.nil?
|
|
147
|
-
invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
if @expires_at.nil?
|
|
151
|
-
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
145
|
invalid_properties
|
|
155
146
|
end
|
|
156
147
|
|
|
@@ -161,9 +152,6 @@ module Solifyn
|
|
|
161
152
|
return false if @id.nil?
|
|
162
153
|
return false if @key.nil?
|
|
163
154
|
return false if @status.nil?
|
|
164
|
-
return false if @activation_limit.nil?
|
|
165
|
-
return false if @activation_message.nil?
|
|
166
|
-
return false if @expires_at.nil?
|
|
167
155
|
true
|
|
168
156
|
end
|
|
169
157
|
|
|
@@ -238,6 +238,23 @@ module Solifyn
|
|
|
238
238
|
# List of attributes with nullable: true
|
|
239
239
|
def self.openapi_nullable
|
|
240
240
|
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',
|
|
241
258
|
])
|
|
242
259
|
end
|
|
243
260
|
|
|
@@ -500,10 +517,6 @@ module Solifyn
|
|
|
500
517
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
501
518
|
end
|
|
502
519
|
|
|
503
|
-
if @image_url.nil?
|
|
504
|
-
invalid_properties.push('invalid value for "image_url", image_url cannot be nil.')
|
|
505
|
-
end
|
|
506
|
-
|
|
507
520
|
if @tax_category.nil?
|
|
508
521
|
invalid_properties.push('invalid value for "tax_category", tax_category cannot be nil.')
|
|
509
522
|
end
|
|
@@ -512,10 +525,6 @@ module Solifyn
|
|
|
512
525
|
invalid_properties.push('invalid value for "pricing_type", pricing_type cannot be nil.')
|
|
513
526
|
end
|
|
514
527
|
|
|
515
|
-
if @discount.nil?
|
|
516
|
-
invalid_properties.push('invalid value for "discount", discount cannot be nil.')
|
|
517
|
-
end
|
|
518
|
-
|
|
519
528
|
if @has_license_key.nil?
|
|
520
529
|
invalid_properties.push('invalid value for "has_license_key", has_license_key cannot be nil.')
|
|
521
530
|
end
|
|
@@ -528,50 +537,14 @@ module Solifyn
|
|
|
528
537
|
invalid_properties.push('invalid value for "has_github_access", has_github_access cannot be nil.')
|
|
529
538
|
end
|
|
530
539
|
|
|
531
|
-
if @github_repo.nil?
|
|
532
|
-
invalid_properties.push('invalid value for "github_repo", github_repo cannot be nil.')
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
if @github_permission.nil?
|
|
536
|
-
invalid_properties.push('invalid value for "github_permission", github_permission cannot be nil.')
|
|
537
|
-
end
|
|
538
|
-
|
|
539
540
|
if @is_tax_inclusive.nil?
|
|
540
541
|
invalid_properties.push('invalid value for "is_tax_inclusive", is_tax_inclusive cannot be nil.')
|
|
541
542
|
end
|
|
542
543
|
|
|
543
|
-
if @billing_period.nil?
|
|
544
|
-
invalid_properties.push('invalid value for "billing_period", billing_period cannot be nil.')
|
|
545
|
-
end
|
|
546
|
-
|
|
547
|
-
if @trial_period_days.nil?
|
|
548
|
-
invalid_properties.push('invalid value for "trial_period_days", trial_period_days cannot be nil.')
|
|
549
|
-
end
|
|
550
|
-
|
|
551
|
-
if @expiration_days.nil?
|
|
552
|
-
invalid_properties.push('invalid value for "expiration_days", expiration_days cannot be nil.')
|
|
553
|
-
end
|
|
554
|
-
|
|
555
|
-
if @statement_descriptor.nil?
|
|
556
|
-
invalid_properties.push('invalid value for "statement_descriptor", statement_descriptor cannot be nil.')
|
|
557
|
-
end
|
|
558
|
-
|
|
559
544
|
if @pay_what_you_want.nil?
|
|
560
545
|
invalid_properties.push('invalid value for "pay_what_you_want", pay_what_you_want cannot be nil.')
|
|
561
546
|
end
|
|
562
547
|
|
|
563
|
-
if @metadata.nil?
|
|
564
|
-
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
if @custom_fields.nil?
|
|
568
|
-
invalid_properties.push('invalid value for "custom_fields", custom_fields cannot be nil.')
|
|
569
|
-
end
|
|
570
|
-
|
|
571
|
-
if @stock.nil?
|
|
572
|
-
invalid_properties.push('invalid value for "stock", stock cannot be nil.')
|
|
573
|
-
end
|
|
574
|
-
|
|
575
548
|
if @activation_limit.nil?
|
|
576
549
|
invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
|
|
577
550
|
end
|
|
@@ -596,26 +569,6 @@ module Solifyn
|
|
|
596
569
|
invalid_properties.push('invalid value for "is_permanently_deleted", is_permanently_deleted cannot be nil.')
|
|
597
570
|
end
|
|
598
571
|
|
|
599
|
-
if @brand_id.nil?
|
|
600
|
-
invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.')
|
|
601
|
-
end
|
|
602
|
-
|
|
603
|
-
if @digital_link.nil?
|
|
604
|
-
invalid_properties.push('invalid value for "digital_link", digital_link cannot be nil.')
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
if @instructions.nil?
|
|
608
|
-
invalid_properties.push('invalid value for "instructions", instructions cannot be nil.')
|
|
609
|
-
end
|
|
610
|
-
|
|
611
|
-
if @activation_message.nil?
|
|
612
|
-
invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
|
|
613
|
-
end
|
|
614
|
-
|
|
615
|
-
if @expiry_hours.nil?
|
|
616
|
-
invalid_properties.push('invalid value for "expiry_hours", expiry_hours cannot be nil.')
|
|
617
|
-
end
|
|
618
|
-
|
|
619
572
|
if @business_id.nil?
|
|
620
573
|
invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
|
|
621
574
|
end
|
|
@@ -632,41 +585,25 @@ module Solifyn
|
|
|
632
585
|
return false if @price.nil?
|
|
633
586
|
return false if @currency.nil?
|
|
634
587
|
return false if @status.nil?
|
|
635
|
-
return false if @image_url.nil?
|
|
636
588
|
return false if @tax_category.nil?
|
|
637
589
|
tax_category_validator = EnumAttributeValidator.new('String', ["digital_products", "saas", "physical_products", "service"])
|
|
638
590
|
return false unless tax_category_validator.valid?(@tax_category)
|
|
639
591
|
return false if @pricing_type.nil?
|
|
640
592
|
pricing_type_validator = EnumAttributeValidator.new('String', ["usage_based", "one_time", "renewal"])
|
|
641
593
|
return false unless pricing_type_validator.valid?(@pricing_type)
|
|
642
|
-
return false if @discount.nil?
|
|
643
594
|
return false if @has_license_key.nil?
|
|
644
595
|
return false if @has_digital_delivery.nil?
|
|
645
596
|
return false if @has_github_access.nil?
|
|
646
|
-
return false if @github_repo.nil?
|
|
647
|
-
return false if @github_permission.nil?
|
|
648
597
|
github_permission_validator = EnumAttributeValidator.new('String', ["pull", "triage", "push", "maintain", "admin"])
|
|
649
598
|
return false unless github_permission_validator.valid?(@github_permission)
|
|
650
599
|
return false if @is_tax_inclusive.nil?
|
|
651
|
-
return false if @billing_period.nil?
|
|
652
|
-
return false if @trial_period_days.nil?
|
|
653
|
-
return false if @expiration_days.nil?
|
|
654
|
-
return false if @statement_descriptor.nil?
|
|
655
600
|
return false if @pay_what_you_want.nil?
|
|
656
|
-
return false if @metadata.nil?
|
|
657
|
-
return false if @custom_fields.nil?
|
|
658
|
-
return false if @stock.nil?
|
|
659
601
|
return false if @activation_limit.nil?
|
|
660
602
|
return false if @is_listed.nil?
|
|
661
603
|
return false if @is_free.nil?
|
|
662
604
|
return false if @created_at.nil?
|
|
663
605
|
return false if @updated_at.nil?
|
|
664
606
|
return false if @is_permanently_deleted.nil?
|
|
665
|
-
return false if @brand_id.nil?
|
|
666
|
-
return false if @digital_link.nil?
|
|
667
|
-
return false if @instructions.nil?
|
|
668
|
-
return false if @activation_message.nil?
|
|
669
|
-
return false if @expiry_hours.nil?
|
|
670
607
|
return false if @business_id.nil?
|
|
671
608
|
true
|
|
672
609
|
end
|
|
@@ -187,6 +187,8 @@ module Solifyn
|
|
|
187
187
|
# List of attributes with nullable: true
|
|
188
188
|
def self.openapi_nullable
|
|
189
189
|
Set.new([
|
|
190
|
+
:'activation_limit',
|
|
191
|
+
:'brand_id',
|
|
190
192
|
])
|
|
191
193
|
end
|
|
192
194
|
|
|
@@ -275,8 +277,6 @@ module Solifyn
|
|
|
275
277
|
|
|
276
278
|
if attributes.key?(:'activation_limit')
|
|
277
279
|
self.activation_limit = attributes[:'activation_limit']
|
|
278
|
-
else
|
|
279
|
-
self.activation_limit = null
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
if attributes.key?(:'brand_id')
|
|
@@ -47,6 +47,7 @@ module Solifyn
|
|
|
47
47
|
# List of attributes with nullable: true
|
|
48
48
|
def self.openapi_nullable
|
|
49
49
|
Set.new([
|
|
50
|
+
:'digital_link'
|
|
50
51
|
])
|
|
51
52
|
end
|
|
52
53
|
|
|
@@ -97,10 +98,6 @@ module Solifyn
|
|
|
97
98
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
98
99
|
end
|
|
99
100
|
|
|
100
|
-
if @digital_link.nil?
|
|
101
|
-
invalid_properties.push('invalid value for "digital_link", digital_link cannot be nil.')
|
|
102
|
-
end
|
|
103
|
-
|
|
104
101
|
invalid_properties
|
|
105
102
|
end
|
|
106
103
|
|
|
@@ -110,7 +107,6 @@ module Solifyn
|
|
|
110
107
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
111
108
|
return false if @id.nil?
|
|
112
109
|
return false if @name.nil?
|
|
113
|
-
return false if @digital_link.nil?
|
|
114
110
|
true
|
|
115
111
|
end
|
|
116
112
|
|