solifyn 1.0.9 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63745af6a98d5384c95312f7a75548d225e4902cadc2ba25239aebeaa62908bc
4
- data.tar.gz: 3d0f9d8383a1e715c8e45688a28c1e2678280bf209c02a1362041e7860e34df4
3
+ metadata.gz: 1bff404fe974d6b920520ad233f8c1d205431b2221d4828078cec32012042baa
4
+ data.tar.gz: 38445f08651c6ea1510da6e9c07a311b644e56a4760cc814a902e0f12f3c82b0
5
5
  SHA512:
6
- metadata.gz: f8ef8a292b96c8eda21f85d63abbbb121818e6bb96e019a6327bf1f9899f20fbc1ebbb0908916f494163ead3904b4042d271c27d92d2bc1384392c71ef8e03b0
7
- data.tar.gz: 252a1eed21bc950213caa541a29edb21f46c3fef921885ab1545894c85192e1c896635c10c4d2690b8a48f1bf0a324a484e144de3ee1b77c77d236fdbc1c6d11
6
+ metadata.gz: 30611fc52aed7683d3cca46ee90eb0d95a740817b3a1e905ba11a3dab9b44198b2e76d7f8d9b3d9ba750033f7702776ec39043d73e3db5b7d3d2a6f2ea93ba7b
7
+ data.tar.gz: 192ff4ff01aa100a09969054422279373d095634d24fa277a1a43624df638c37a9373c05092400772117cd85033784ce0e94ec2a4c6afbb666e2c904cffa5e6f
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.0.9
10
+ - Package version: 1.1.0
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.0.9.gem
27
+ gem install ./solifyn-1.1.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./solifyn-1.0.9.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./solifyn-1.1.0.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.0.9'
36
+ gem 'solifyn', '~> 1.1.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -69,8 +69,8 @@ instance = Solifyn::CollectionProductDto.new(
69
69
  expiration_days: null,
70
70
  statement_descriptor: SOLIFYN*SAAS,
71
71
  pay_what_you_want: false,
72
- metadata: {tier=enterprise, department=engineering},
73
- 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)}],
72
+ metadata: {"tier":"enterprise","department":"engineering"},
73
+ 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)"}],
74
74
  stock: null,
75
75
  activation_limit: 5,
76
76
  is_listed: true,
@@ -20,7 +20,7 @@ instance = Solifyn::CreateCustomerDto.new(
20
20
  name: John Doe,
21
21
  phone: +1234567890,
22
22
  username: johndoe,
23
- metadata: {customKey=customValue}
23
+ metadata: {"customKey":"customValue"}
24
24
  )
25
25
  ```
26
26
 
@@ -25,7 +25,7 @@ instance = Solifyn::CreateMeterDto.new(
25
25
  aggregation_type: COUNT,
26
26
  aggregation_key: tokens,
27
27
  unit: requests,
28
- filters: {event_type=premium, region=asia},
28
+ filters: {"event_type":"premium","region":"asia"},
29
29
  enable_filtering: false
30
30
  )
31
31
  ```
@@ -16,7 +16,7 @@ require 'solifyn'
16
16
  instance = Solifyn::CreateWebhookEndpointDto.new(
17
17
  url: https://api.example.com/webhooks,
18
18
  description: Primary payment listener,
19
- events: [payment.created, payment.succeeded]
19
+ events: ["payment.created","payment.succeeded"]
20
20
  )
21
21
  ```
22
22
 
@@ -29,7 +29,7 @@ instance = Solifyn::CustomerResponseDto.new(
29
29
  username: johndoe,
30
30
  phone: +1234567890,
31
31
  phone_number: +1234567890,
32
- metadata: {key=value},
32
+ metadata: {"key":"value"},
33
33
  created_at: 2025-01-01T12:00:00Z,
34
34
  updated_at: 2025-01-01T12:00:00Z,
35
35
  business_id: 537825c3-14d6-4173-b072-33f921416efc
data/docs/DeveloperApi.md CHANGED
@@ -91,7 +91,7 @@ require 'time'
91
91
  require 'solifyn'
92
92
 
93
93
  api_instance = Solifyn::DeveloperApi.new
94
- create_webhook_endpoint_dto = Solifyn::CreateWebhookEndpointDto.new({url: 'https://api.example.com/webhooks', events: [payment.created, payment.succeeded]}) # CreateWebhookEndpointDto |
94
+ create_webhook_endpoint_dto = Solifyn::CreateWebhookEndpointDto.new({url: 'https://api.example.com/webhooks', events: ["payment.created", "payment.succeeded"]}) # CreateWebhookEndpointDto |
95
95
 
96
96
  begin
97
97
  # Create Webhook Endpoint
@@ -21,7 +21,7 @@ instance = Solifyn::MeterIngestEventDto.new(
21
21
  customer_id: cus_8n7m6l5k4j3h2g1f0e9d8c,
22
22
  event_name: api.request,
23
23
  value: 1,
24
- metadata: {plan=enterprise, region=asia-southeast-1},
24
+ metadata: {"plan":"enterprise","region":"asia-southeast-1"},
25
25
  timestamp: 2026-05-23T10:00:00.000Z
26
26
  )
27
27
  ```
@@ -16,7 +16,7 @@ require 'solifyn'
16
16
  instance = Solifyn::MeterIngestResponseDto.new(
17
17
  processed: 5,
18
18
  failed: 1,
19
- errors: [{event=evt_9Y3kP4qR7tU1vW2xZ5aB6c, error=Meter not found}]
19
+ errors: [{"event":"evt_9Y3kP4qR7tU1vW2xZ5aB6c","error":"Meter not found"}]
20
20
  )
21
21
  ```
22
22
 
@@ -31,7 +31,7 @@ instance = Solifyn::MeterResponseDto.new(
31
31
  aggregation_type: COUNT,
32
32
  aggregation_key: tokens,
33
33
  unit: requests,
34
- filters: {event_type=premium, region=asia},
34
+ filters: {"event_type":"premium","region":"asia"},
35
35
  archived: false,
36
36
  created_at: 2026-05-23T10:00:00.000Z,
37
37
  updated_at: 2026-05-23T10:00:00.000Z
@@ -22,7 +22,7 @@ instance = Solifyn::MeterUsageEventDto.new(
22
22
  meter_id: mtr_8Z1aB2cD3eF4gH5iJ6kL7m,
23
23
  customer_id: cus_8n7m6l5k4j3h2g1f0e9d8c,
24
24
  value: 1,
25
- metadata: {plan=enterprise, region=asia-southeast-1},
25
+ metadata: {"plan":"enterprise","region":"asia-southeast-1"},
26
26
  timestamp: 2026-05-23T10:00:00.000Z,
27
27
  processed_at: 2026-05-23T10:00:01.000Z
28
28
  )
@@ -12,7 +12,7 @@
12
12
  require 'solifyn'
13
13
 
14
14
  instance = Solifyn::OperationalWebhookEndpointHeadersInDto.new(
15
- headers: {X-Example=123, X-Foobar=Bar}
15
+ headers: {"X-Example":"123","X-Foobar":"Bar"}
16
16
  )
17
17
  ```
18
18
 
@@ -13,8 +13,8 @@
13
13
  require 'solifyn'
14
14
 
15
15
  instance = Solifyn::OperationalWebhookEndpointHeadersResponseDto.new(
16
- headers: {X-Example=123, X-Foobar=Bar},
17
- sensitive: [Authorization]
16
+ headers: {"X-Example":"123","X-Foobar":"Bar"},
17
+ sensitive: ["Authorization"]
18
18
  )
19
19
  ```
20
20
 
@@ -22,8 +22,8 @@ instance = Solifyn::OperationalWebhookEndpointInDto.new(
22
22
  url: https://example.com/webhook/,
23
23
  description: Production monitoring endpoint,
24
24
  disabled: false,
25
- filter_types: [message.attempt.failing, message.attempt.exhausted],
26
- metadata: {environment=production},
25
+ filter_types: ["message.attempt.failing","message.attempt.exhausted"],
26
+ metadata: {"environment":"production"},
27
27
  secret: whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD,
28
28
  throttle_rate: 5,
29
29
  uid: monitoring-prod-endpoint
@@ -26,8 +26,8 @@ instance = Solifyn::OperationalWebhookEndpointResponseDto.new(
26
26
  url: https://example.com/webhook/,
27
27
  description: Production monitoring endpoint,
28
28
  disabled: false,
29
- filter_types: [message.attempt.failing],
30
- metadata: {environment=production},
29
+ filter_types: ["message.attempt.failing"],
30
+ metadata: {"environment":"production"},
31
31
  throttle_rate: 0,
32
32
  uid: monitoring-prod-endpoint,
33
33
  created_at: 2026-05-30T14:11:29.071Z,
@@ -21,8 +21,8 @@ instance = Solifyn::OperationalWebhookEndpointUpdateDto.new(
21
21
  url: https://example.com/new-webhook/,
22
22
  description: Updated monitoring endpoint,
23
23
  disabled: true,
24
- filter_types: [message.attempt.failing, message.attempt.exhausted, endpoint.disabled],
25
- metadata: {environment=staging},
24
+ filter_types: ["message.attempt.failing","message.attempt.exhausted","endpoint.disabled"],
25
+ metadata: {"environment":"staging"},
26
26
  throttle_rate: 10,
27
27
  uid: monitoring-updated-endpoint
28
28
  )
@@ -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][default to null] |
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] |
@@ -57,8 +57,8 @@ instance = Solifyn::ProductCreate.new(
57
57
  expiration_days: null,
58
58
  statement_descriptor: SOLIFYN*SAAS,
59
59
  pay_what_you_want: false,
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)}],
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/Subscription.md CHANGED
@@ -57,7 +57,7 @@ instance = Solifyn::Subscription.new(
57
57
  promo_code: null,
58
58
  product: null,
59
59
  license_key: null,
60
- metadata: {is_usage_based=false},
60
+ metadata: {"is_usage_based":"false"},
61
61
  payment_collection_paused: false,
62
62
  checkout_configuration_id: ch_123,
63
63
  price: 99,
@@ -25,7 +25,7 @@ instance = Solifyn::UpdateMeterDto.new(
25
25
  aggregation_type: COUNT,
26
26
  aggregation_key: tokens,
27
27
  unit: requests,
28
- filters: {event_type=premium, region=asia},
28
+ filters: {"event_type":"premium","region":"asia"},
29
29
  enable_filtering: false
30
30
  )
31
31
  ```
@@ -17,7 +17,7 @@ require 'solifyn'
17
17
  instance = Solifyn::UpdateWebhookEndpointDto.new(
18
18
  url: https://api.example.com/new-webhooks,
19
19
  description: Updated payment listener,
20
- events: [payment.created, payment.succeeded, refund.succeeded],
20
+ events: ["payment.created","payment.succeeded","refund.succeeded"],
21
21
  status: ACTIVE
22
22
  )
23
23
  ```
@@ -23,7 +23,7 @@ instance = Solifyn::WebhookDeliveryResponseDto.new(
23
23
  id: dlv_12345,
24
24
  endpoint_id: ep_12345,
25
25
  event: payment.succeeded,
26
- payload: {type=payment.succeeded, data={}},
26
+ payload: {"type":"payment.succeeded","data":{}},
27
27
  response_status: 200,
28
28
  response_body: {"success":true},
29
29
  duration_ms: 120,
@@ -569,7 +569,7 @@ end
569
569
 
570
570
  api_instance = Solifyn::WebhookEndpointApi.new
571
571
  id = 'id_example' # String | The endpoint ID or UID
572
- operational_webhook_endpoint_headers_in_dto = Solifyn::OperationalWebhookEndpointHeadersInDto.new({headers: {X-Example=123, X-Foobar=Bar}}) # OperationalWebhookEndpointHeadersInDto |
572
+ operational_webhook_endpoint_headers_in_dto = Solifyn::OperationalWebhookEndpointHeadersInDto.new({headers: {"X-Example":"123","X-Foobar":"Bar"}}) # OperationalWebhookEndpointHeadersInDto |
573
573
 
574
574
  begin
575
575
  # Set Operational Webhook Endpoint Headers
@@ -23,7 +23,7 @@ instance = Solifyn::WebhookEndpointResponseDto.new(
23
23
  id: ep_12345,
24
24
  url: https://api.example.com/webhooks,
25
25
  description: Primary payment listener,
26
- events: [payment.created, payment.succeeded],
26
+ events: ["payment.created","payment.succeeded"],
27
27
  status: ACTIVE,
28
28
  masked_secret: whsec_Ab...xyz,
29
29
  secret: whsec_AbCDeFGhiJKlMnOpQrStUvWxYz123456,
@@ -275,6 +275,8 @@ module Solifyn
275
275
 
276
276
  if attributes.key?(:'activation_limit')
277
277
  self.activation_limit = attributes[:'activation_limit']
278
+ else
279
+ self.activation_limit = null
278
280
  end
279
281
 
280
282
  if attributes.key?(:'brand_id')
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Solifyn
14
- VERSION = '1.0.9'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -0,0 +1,114 @@
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::WebhookEntitlementGrantPayload
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Solifyn::WebhookEntitlementGrantPayload do
21
+ let(:instance) { Solifyn::WebhookEntitlementGrantPayload.new }
22
+
23
+ describe 'test an instance of WebhookEntitlementGrantPayload' do
24
+ it 'should create an instance of WebhookEntitlementGrantPayload' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Solifyn::WebhookEntitlementGrantPayload)
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 "business_id"' 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 "customer_id"' 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 "payment_id"' 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
+ describe 'test attribute "product_id"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "type"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "github_repo"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "github_permission"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ describe 'test attribute "github_username"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ describe 'test attribute "status"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ describe 'test attribute "oauth_url"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
96
+ describe 'test attribute "error_details"' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ describe 'test attribute "created_at"' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
+ end
106
+ end
107
+
108
+ describe 'test attribute "updated_at"' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
111
+ end
112
+ end
113
+
114
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solifyn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solifyn
@@ -628,6 +628,7 @@ files:
628
628
  - spec/models/webhook_delivery_response_dto_spec.rb
629
629
  - spec/models/webhook_dispute_payload_spec.rb
630
630
  - spec/models/webhook_endpoint_response_dto_spec.rb
631
+ - spec/models/webhook_entitlement_grant_payload_spec.rb
631
632
  - spec/models/webhook_license_payload_spec.rb
632
633
  - spec/models/webhook_payment_payload_billing_address_spec.rb
633
634
  - spec/models/webhook_payment_payload_spec.rb
@@ -726,6 +727,7 @@ test_files:
726
727
  - spec/models/withdrawal_spec.rb
727
728
  - spec/models/discounts_list200_response_spec.rb
728
729
  - spec/models/entitlement_grant_response_dto_spec.rb
730
+ - spec/models/webhook_entitlement_grant_payload_spec.rb
729
731
  - spec/models/create_api_key_dto_spec.rb
730
732
  - spec/models/order_billing_update_spec.rb
731
733
  - spec/models/api_key_response_dto_spec.rb