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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f8a3cad7edd185da89c1d4a824dfe4215ecc1d9566885686f86547d07adcdb7
|
|
4
|
+
data.tar.gz: fd03a98bb4b7b9105f584fca5b8166ea50eb4f73364d67872abd5eb6221d7c6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08950201c248e464de1e7902533c1e7808249171b55fe26f9871bdb726a1acd371574972cbf89bc9fa6758902bea780ce6bf2b7b5415c4dbec63cb4c8f780ce7'
|
|
7
|
+
data.tar.gz: 33c22224334e650ba1fc5a4ed7dd43ee257ce70a92bc7d6b556cf532ad19ff61c2f2c40c3716cd994cbbe0696761aeb1061b990a48a66205247b02bc54ece925
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage pr
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0.0
|
|
10
|
-
- Package version: 1.1.
|
|
10
|
+
- Package version: 1.1.2
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build solifyn.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./solifyn-1.1.
|
|
27
|
+
gem install ./solifyn-1.1.2.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./solifyn-1.1.
|
|
30
|
+
(for development, run `gem install --dev ./solifyn-1.1.2.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'solifyn', '~> 1.1.
|
|
36
|
+
gem 'solifyn', '~> 1.1.2'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
data/docs/Brand.md
CHANGED
|
@@ -33,8 +33,8 @@ instance = Solifyn::Brand.new(
|
|
|
33
33
|
statement_descriptor: ACME CORP INC,
|
|
34
34
|
merchant_id: mer_123,
|
|
35
35
|
business_id: biz_123,
|
|
36
|
-
created_at: 2025-01-01T12:
|
|
37
|
-
updated_at: 2025-01-01T12:
|
|
36
|
+
created_at: 2025-01-01T12:00Z,
|
|
37
|
+
updated_at: 2025-01-01T12:00Z
|
|
38
38
|
)
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
require 'solifyn'
|
|
29
29
|
|
|
30
30
|
instance = Solifyn::CheckoutLinkResponseDto.new(
|
|
31
|
-
id:
|
|
31
|
+
id: null,
|
|
32
32
|
title: Winter Bundle Checkout,
|
|
33
33
|
product_id: prod_123,
|
|
34
34
|
collection_id: col_123,
|
|
@@ -43,8 +43,8 @@ instance = Solifyn::CheckoutLinkResponseDto.new(
|
|
|
43
43
|
redirect_url: https://example.com/success,
|
|
44
44
|
cancel_url: https://example.com/cancel,
|
|
45
45
|
show_discounts: true,
|
|
46
|
-
created_at: 2025-01-01T12:
|
|
47
|
-
updated_at: 2025-01-01T12:
|
|
46
|
+
created_at: 2025-01-01T12:00Z,
|
|
47
|
+
updated_at: 2025-01-01T12:00Z
|
|
48
48
|
)
|
|
49
49
|
```
|
|
50
50
|
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
require 'solifyn'
|
|
22
22
|
|
|
23
23
|
instance = Solifyn::CollectionDetailResponseDto.new(
|
|
24
|
-
id:
|
|
24
|
+
id: null,
|
|
25
25
|
name: Summer Bundle,
|
|
26
26
|
description: Everything you need for summer.,
|
|
27
27
|
image_url: https://example.com/image.png,
|
|
28
28
|
status: ACTIVE,
|
|
29
29
|
business_id: biz_4r5t6y7u8i9o,
|
|
30
30
|
is_permanently_deleted: false,
|
|
31
|
-
created_at: 2025-01-01T12:
|
|
32
|
-
updated_at: 2025-01-01T12:
|
|
31
|
+
created_at: 2025-01-01T12:00Z,
|
|
32
|
+
updated_at: 2025-01-01T12:00Z,
|
|
33
33
|
products: null
|
|
34
34
|
)
|
|
35
35
|
```
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
require 'solifyn'
|
|
49
49
|
|
|
50
50
|
instance = Solifyn::CollectionProductDto.new(
|
|
51
|
-
id:
|
|
51
|
+
id: null,
|
|
52
52
|
name: Enterprise SaaS Plan,
|
|
53
53
|
price: 99,
|
|
54
54
|
currency: USD,
|
|
@@ -75,8 +75,8 @@ instance = Solifyn::CollectionProductDto.new(
|
|
|
75
75
|
activation_limit: 5,
|
|
76
76
|
is_listed: true,
|
|
77
77
|
is_free: false,
|
|
78
|
-
created_at: 2026-05-18T12:
|
|
79
|
-
updated_at: 2026-05-18T12:
|
|
78
|
+
created_at: 2026-05-18T12:00Z,
|
|
79
|
+
updated_at: 2026-05-18T12:00Z,
|
|
80
80
|
is_permanently_deleted: false,
|
|
81
81
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|
|
82
82
|
digital_link: null,
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
require 'solifyn'
|
|
22
22
|
|
|
23
23
|
instance = Solifyn::CollectionResponseDto.new(
|
|
24
|
-
id:
|
|
24
|
+
id: null,
|
|
25
25
|
name: Summer Bundle,
|
|
26
26
|
description: Everything you need for summer.,
|
|
27
27
|
image_url: https://example.com/image.png,
|
|
28
28
|
status: ACTIVE,
|
|
29
29
|
business_id: biz_4r5t6y7u8i9o,
|
|
30
30
|
is_permanently_deleted: false,
|
|
31
|
-
created_at: 2025-01-01T12:
|
|
32
|
-
updated_at: 2025-01-01T12:
|
|
31
|
+
created_at: 2025-01-01T12:00Z,
|
|
32
|
+
updated_at: 2025-01-01T12:00Z,
|
|
33
33
|
products: null
|
|
34
34
|
)
|
|
35
35
|
```
|
data/docs/CustomerResponseDto.md
CHANGED
|
@@ -30,8 +30,8 @@ instance = Solifyn::CustomerResponseDto.new(
|
|
|
30
30
|
phone: +1234567890,
|
|
31
31
|
phone_number: +1234567890,
|
|
32
32
|
metadata: {"key":"value"},
|
|
33
|
-
created_at: 2025-01-01T12:
|
|
34
|
-
updated_at: 2025-01-01T12:
|
|
33
|
+
created_at: 2025-01-01T12:00Z,
|
|
34
|
+
updated_at: 2025-01-01T12:00Z,
|
|
35
35
|
business_id: 537825c3-14d6-4173-b072-33f921416efc
|
|
36
36
|
)
|
|
37
37
|
```
|
data/docs/Dispute.md
CHANGED
|
@@ -39,7 +39,7 @@ instance = Solifyn::Dispute.new(
|
|
|
39
39
|
status: warning_needs_response,
|
|
40
40
|
reason: Product not received,
|
|
41
41
|
editable: true,
|
|
42
|
-
needs_response_by: 2025-01-01T12:
|
|
42
|
+
needs_response_by: 2025-01-01T12:00Z,
|
|
43
43
|
visa_rdr: false,
|
|
44
44
|
billing_address: 123 Main St, New York, NY,
|
|
45
45
|
customer_name: John Doe,
|
|
@@ -51,8 +51,8 @@ instance = Solifyn::Dispute.new(
|
|
|
51
51
|
evidence: null,
|
|
52
52
|
payment_id: pay_123,
|
|
53
53
|
business_id: biz_123,
|
|
54
|
-
created_at: 2025-01-01T12:
|
|
55
|
-
updated_at: 2025-01-01T12:
|
|
54
|
+
created_at: 2025-01-01T12:00Z,
|
|
55
|
+
updated_at: 2025-01-01T12:00Z
|
|
56
56
|
)
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
require 'solifyn'
|
|
27
27
|
|
|
28
28
|
instance = Solifyn::EntitlementGrantResponseDto.new(
|
|
29
|
-
id:
|
|
30
|
-
business_id:
|
|
31
|
-
customer_id:
|
|
32
|
-
payment_id:
|
|
33
|
-
product_id:
|
|
29
|
+
id: null,
|
|
30
|
+
business_id: null,
|
|
31
|
+
customer_id: null,
|
|
32
|
+
payment_id: null,
|
|
33
|
+
product_id: null,
|
|
34
34
|
type: GITHUB,
|
|
35
35
|
github_repo: solifyn/premium-app,
|
|
36
36
|
github_permission: pull,
|
data/docs/Invoice.md
CHANGED
|
@@ -33,10 +33,10 @@ instance = Solifyn::MeterDetailResponseDto.new(
|
|
|
33
33
|
aggregation_type: COUNT,
|
|
34
34
|
aggregation_key: tokens,
|
|
35
35
|
unit: requests,
|
|
36
|
-
filters: {event_type
|
|
36
|
+
filters: {"event_type":"premium","region":"asia"},
|
|
37
37
|
archived: false,
|
|
38
|
-
created_at: 2026-05-23T10:
|
|
39
|
-
updated_at: 2026-05-23T10:
|
|
38
|
+
created_at: 2026-05-23T10:00Z,
|
|
39
|
+
updated_at: 2026-05-23T10:00Z,
|
|
40
40
|
usage_events: null,
|
|
41
41
|
total_usage_events: 1284
|
|
42
42
|
)
|
data/docs/MeterResponseDto.md
CHANGED
|
@@ -33,8 +33,8 @@ instance = Solifyn::MeterResponseDto.new(
|
|
|
33
33
|
unit: requests,
|
|
34
34
|
filters: {"event_type":"premium","region":"asia"},
|
|
35
35
|
archived: false,
|
|
36
|
-
created_at: 2026-05-23T10:
|
|
37
|
-
updated_at: 2026-05-23T10:
|
|
36
|
+
created_at: 2026-05-23T10:00Z,
|
|
37
|
+
updated_at: 2026-05-23T10:00Z
|
|
38
38
|
)
|
|
39
39
|
```
|
|
40
40
|
|
data/docs/MeterUsageEventDto.md
CHANGED
|
@@ -23,8 +23,8 @@ instance = Solifyn::MeterUsageEventDto.new(
|
|
|
23
23
|
customer_id: cus_8n7m6l5k4j3h2g1f0e9d8c,
|
|
24
24
|
value: 1,
|
|
25
25
|
metadata: {"plan":"enterprise","region":"asia-southeast-1"},
|
|
26
|
-
timestamp: 2026-05-23T10:
|
|
27
|
-
processed_at: 2026-05-23T10:00:
|
|
26
|
+
timestamp: 2026-05-23T10:00Z,
|
|
27
|
+
processed_at: 2026-05-23T10:00:01Z
|
|
28
28
|
)
|
|
29
29
|
```
|
|
30
30
|
|
data/docs/Order.md
CHANGED
|
@@ -48,8 +48,8 @@ instance = Solifyn::Order.new(
|
|
|
48
48
|
amount_after_fees: 2750,
|
|
49
49
|
currency: usd,
|
|
50
50
|
status: paid,
|
|
51
|
-
created_at: 2026-05-22T08:
|
|
52
|
-
paid_at: 2026-05-22T08:
|
|
51
|
+
created_at: 2026-05-22T08:00Z,
|
|
52
|
+
paid_at: 2026-05-22T08:05Z,
|
|
53
53
|
payment_method: card,
|
|
54
54
|
card_last_four: 4242,
|
|
55
55
|
card_network: visa,
|
data/docs/OrderRefund.md
CHANGED
data/docs/Product.md
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
require 'solifyn'
|
|
48
48
|
|
|
49
49
|
instance = Solifyn::Product.new(
|
|
50
|
-
id:
|
|
50
|
+
id: null,
|
|
51
51
|
name: Enterprise SaaS Plan,
|
|
52
52
|
price: 99,
|
|
53
53
|
currency: USD,
|
|
@@ -68,14 +68,14 @@ instance = Solifyn::Product.new(
|
|
|
68
68
|
expiration_days: null,
|
|
69
69
|
statement_descriptor: SOLIFYN*SAAS,
|
|
70
70
|
pay_what_you_want: false,
|
|
71
|
-
metadata: {tier
|
|
72
|
-
custom_fields: [{id
|
|
71
|
+
metadata: {"tier":"enterprise","department":"engineering"},
|
|
72
|
+
custom_fields: [{"id":"57aa2241-eae4-43dc-b9ae-36069b84b2da","name":"Discord Username","order":0,"required":true,"field_type":"text","placeholder":"e.g. your_discord#1234"},{"id":"c86da32a-a967-457c-815b-c3440294d70b","name":"Company Name","order":1,"required":false,"field_type":"text","placeholder":"e.g. Acme Corp (Optional)"}],
|
|
73
73
|
stock: null,
|
|
74
74
|
activation_limit: 5,
|
|
75
75
|
is_listed: true,
|
|
76
76
|
is_free: false,
|
|
77
|
-
created_at: 2026-05-18T12:
|
|
78
|
-
updated_at: 2026-05-18T12:
|
|
77
|
+
created_at: 2026-05-18T12:00Z,
|
|
78
|
+
updated_at: 2026-05-18T12:00Z,
|
|
79
79
|
is_permanently_deleted: false,
|
|
80
80
|
brand_id: brd_4e29285b8sdf34ff51e07d4,
|
|
81
81
|
digital_link: null,
|
data/docs/ProductCreate.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| **github_repo** | **String** | GitHub repository to grant access to (format: owner/repo). | [optional] |
|
|
18
18
|
| **github_permission** | **String** | GitHub collaborator permission level. | [optional] |
|
|
19
19
|
| **is_tax_inclusive** | **Boolean** | Whether tax is included in the base price. | [optional][default to false] |
|
|
20
|
-
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional]
|
|
20
|
+
| **activation_limit** | **Integer** | Maximum concurrent activated instances allowed per license key. | [optional] |
|
|
21
21
|
| **brand_id** | **String** | Brand id for the product, if not provided will default to primary brand. | [optional] |
|
|
22
22
|
| **billing_period** | **Integer** | Billing period in days (for Subscription products). | [optional] |
|
|
23
23
|
| **trial_period_days** | **Integer** | Trial duration in days. | [optional] |
|
data/docs/ProductUpdate.md
CHANGED
|
@@ -57,8 +57,8 @@ instance = Solifyn::ProductUpdate.new(
|
|
|
57
57
|
expiration_days: null,
|
|
58
58
|
statement_descriptor: SOLIFYN*SAAS,
|
|
59
59
|
pay_what_you_want: false,
|
|
60
|
-
metadata: {internal_id
|
|
61
|
-
custom_fields: [{id
|
|
60
|
+
metadata: {"internal_id":"12345","campaign":"summer_sale"},
|
|
61
|
+
custom_fields: [{"id":"57aa2241-eae4-43dc-b9ae-36069b84b2da","name":"Discord Username","order":0,"required":true,"field_type":"text","placeholder":"e.g. your_discord#1234"},{"id":"c86da32a-a967-457c-815b-c3440294d70b","name":"Company Name","order":1,"required":false,"field_type":"text","placeholder":"e.g. Acme Corp (Optional)"}],
|
|
62
62
|
stock: 100,
|
|
63
63
|
is_listed: true,
|
|
64
64
|
is_free: false,
|
data/docs/Refund.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
require 'solifyn'
|
|
25
25
|
|
|
26
26
|
instance = Solifyn::Refund.new(
|
|
27
|
-
id:
|
|
27
|
+
id: null,
|
|
28
28
|
whop_id: rf_xyz123,
|
|
29
29
|
idempotency_key: idemp_abc123,
|
|
30
30
|
amount: 10.5,
|
|
@@ -33,10 +33,10 @@ instance = Solifyn::Refund.new(
|
|
|
33
33
|
provider: stripe,
|
|
34
34
|
reason: requested_by_customer,
|
|
35
35
|
reference_value: ARN123456789,
|
|
36
|
-
payment_id:
|
|
37
|
-
provider_created_at: 2025-01-01T12:
|
|
38
|
-
created_at: 2025-01-01T12:
|
|
39
|
-
updated_at: 2025-01-01T12:
|
|
36
|
+
payment_id: null,
|
|
37
|
+
provider_created_at: 2025-01-01T12:00Z,
|
|
38
|
+
created_at: 2025-01-01T12:00Z,
|
|
39
|
+
updated_at: 2025-01-01T12:00Z
|
|
40
40
|
)
|
|
41
41
|
```
|
|
42
42
|
|
data/docs/Subscription.md
CHANGED
|
@@ -39,9 +39,9 @@ require 'solifyn'
|
|
|
39
39
|
instance = Solifyn::Subscription.new(
|
|
40
40
|
id: mem_123,
|
|
41
41
|
status: active,
|
|
42
|
-
created_at: 2025-01-01T12:
|
|
43
|
-
joined_at: 2025-01-01T12:
|
|
44
|
-
updated_at: 2025-01-01T12:
|
|
42
|
+
created_at: 2025-01-01T12:00Z,
|
|
43
|
+
joined_at: 2025-01-01T12:00Z,
|
|
44
|
+
updated_at: 2025-01-01T12:00Z,
|
|
45
45
|
manage_url: https://example.com/billing/manage/mber_123,
|
|
46
46
|
member: null,
|
|
47
47
|
user: null,
|
data/docs/UpdateCustomerDto.md
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
require 'solifyn'
|
|
26
26
|
|
|
27
27
|
instance = Solifyn::WebhookEntitlementGrantPayload.new(
|
|
28
|
-
id:
|
|
29
|
-
business_id:
|
|
30
|
-
customer_id:
|
|
31
|
-
payment_id:
|
|
32
|
-
product_id:
|
|
28
|
+
id: null,
|
|
29
|
+
business_id: null,
|
|
30
|
+
customer_id: null,
|
|
31
|
+
payment_id: null,
|
|
32
|
+
product_id: null,
|
|
33
33
|
type: GITHUB,
|
|
34
34
|
github_repo: solifyn/premium-app,
|
|
35
35
|
github_permission: pull,
|
data/lib/solifyn/models/addon.rb
CHANGED
|
@@ -60,6 +60,8 @@ module Solifyn
|
|
|
60
60
|
# List of attributes with nullable: true
|
|
61
61
|
def self.openapi_nullable
|
|
62
62
|
Set.new([
|
|
63
|
+
:'max_quantity',
|
|
64
|
+
:'price_override',
|
|
63
65
|
])
|
|
64
66
|
end
|
|
65
67
|
|
|
@@ -122,14 +124,6 @@ module Solifyn
|
|
|
122
124
|
invalid_properties.push('invalid value for "min_quantity", min_quantity cannot be nil.')
|
|
123
125
|
end
|
|
124
126
|
|
|
125
|
-
if @max_quantity.nil?
|
|
126
|
-
invalid_properties.push('invalid value for "max_quantity", max_quantity cannot be nil.')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
if @price_override.nil?
|
|
130
|
-
invalid_properties.push('invalid value for "price_override", price_override cannot be nil.')
|
|
131
|
-
end
|
|
132
|
-
|
|
133
127
|
if @is_seat_addon.nil?
|
|
134
128
|
invalid_properties.push('invalid value for "is_seat_addon", is_seat_addon cannot be nil.')
|
|
135
129
|
end
|
|
@@ -143,8 +137,6 @@ module Solifyn
|
|
|
143
137
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
144
138
|
return false if @product_id.nil?
|
|
145
139
|
return false if @min_quantity.nil?
|
|
146
|
-
return false if @max_quantity.nil?
|
|
147
|
-
return false if @price_override.nil?
|
|
148
140
|
return false if @is_seat_addon.nil?
|
|
149
141
|
true
|
|
150
142
|
end
|
data/lib/solifyn/models/brand.rb
CHANGED
|
@@ -65,6 +65,11 @@ module Solifyn
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
+
:'website_url',
|
|
69
|
+
:'support_email',
|
|
70
|
+
:'description',
|
|
71
|
+
:'logo_url',
|
|
72
|
+
:'statement_descriptor'
|
|
68
73
|
])
|
|
69
74
|
end
|
|
70
75
|
|
|
@@ -157,11 +162,7 @@ module Solifyn
|
|
|
157
162
|
# Custom attribute writer method with validation
|
|
158
163
|
# @param [Object] statement_descriptor Value to be assigned
|
|
159
164
|
def statement_descriptor=(statement_descriptor)
|
|
160
|
-
if statement_descriptor.nil?
|
|
161
|
-
fail ArgumentError, 'statement_descriptor cannot be nil'
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
if statement_descriptor.to_s.length > 22
|
|
165
|
+
if !statement_descriptor.nil? && statement_descriptor.to_s.length > 22
|
|
165
166
|
fail ArgumentError, 'invalid value for "statement_descriptor", the character length must be smaller than or equal to 22.'
|
|
166
167
|
end
|
|
167
168
|
|
|
@@ -65,6 +65,11 @@ module Solifyn
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
+
:'website_url',
|
|
69
|
+
:'support_email',
|
|
70
|
+
:'description',
|
|
71
|
+
:'logo_url',
|
|
72
|
+
:'statement_descriptor'
|
|
68
73
|
])
|
|
69
74
|
end
|
|
70
75
|
|
|
@@ -150,11 +155,7 @@ module Solifyn
|
|
|
150
155
|
# Custom attribute writer method with validation
|
|
151
156
|
# @param [Object] statement_descriptor Value to be assigned
|
|
152
157
|
def statement_descriptor=(statement_descriptor)
|
|
153
|
-
if statement_descriptor.nil?
|
|
154
|
-
fail ArgumentError, 'statement_descriptor cannot be nil'
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if statement_descriptor.to_s.length > 22
|
|
158
|
+
if !statement_descriptor.nil? && statement_descriptor.to_s.length > 22
|
|
158
159
|
fail ArgumentError, 'invalid value for "statement_descriptor", the character length must be smaller than or equal to 22.'
|
|
159
160
|
end
|
|
160
161
|
|
|
@@ -120,6 +120,18 @@ module Solifyn
|
|
|
120
120
|
# List of attributes with nullable: true
|
|
121
121
|
def self.openapi_nullable
|
|
122
122
|
Set.new([
|
|
123
|
+
:'title',
|
|
124
|
+
:'product_id',
|
|
125
|
+
:'collection_id',
|
|
126
|
+
:'customer_name',
|
|
127
|
+
:'customer_email',
|
|
128
|
+
:'address_line1',
|
|
129
|
+
:'city',
|
|
130
|
+
:'state',
|
|
131
|
+
:'postal_code',
|
|
132
|
+
:'country',
|
|
133
|
+
:'redirect_url',
|
|
134
|
+
:'cancel_url',
|
|
123
135
|
])
|
|
124
136
|
end
|
|
125
137
|
|