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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/Brand.md +2 -2
  4. data/docs/CheckoutLinkResponseDto.md +3 -3
  5. data/docs/CollectionDetailResponseDto.md +3 -3
  6. data/docs/CollectionProductDto.md +11 -5
  7. data/docs/CollectionResponseDto.md +3 -3
  8. data/docs/CreateCustomerDto.md +1 -1
  9. data/docs/CreateMeterDto.md +1 -1
  10. data/docs/CreateWebhookEndpointDto.md +1 -1
  11. data/docs/CustomerResponseDto.md +3 -3
  12. data/docs/CustomerSharedInviteResponseDto.md +1 -1
  13. data/docs/DefaultApi.md +1214 -0
  14. data/docs/DeveloperApi.md +1 -1
  15. data/docs/DiscordIntegrationApi.md +135 -0
  16. data/docs/DiscordRolesResponseDto.md +24 -0
  17. data/docs/Dispute.md +3 -3
  18. data/docs/EntitlementGrantResponseDto.md +13 -5
  19. data/docs/Invoice.md +1 -1
  20. data/docs/MeterDetailResponseDto.md +3 -3
  21. data/docs/MeterIngestEventDto.md +1 -1
  22. data/docs/MeterIngestResponseDto.md +1 -1
  23. data/docs/MeterResponseDto.md +3 -3
  24. data/docs/MeterUsageEventDto.md +3 -3
  25. data/docs/OperationalWebhookEndpointHeadersInDto.md +1 -1
  26. data/docs/OperationalWebhookEndpointHeadersResponseDto.md +2 -2
  27. data/docs/OperationalWebhookEndpointInDto.md +2 -2
  28. data/docs/OperationalWebhookEndpointResponseDto.md +2 -2
  29. data/docs/OperationalWebhookEndpointUpdateDto.md +2 -2
  30. data/docs/Order.md +2 -2
  31. data/docs/OrderRefund.md +1 -1
  32. data/docs/Product.md +11 -5
  33. data/docs/ProductCreate.md +8 -2
  34. data/docs/ProductUpdate.md +8 -2
  35. data/docs/Refund.md +5 -5
  36. data/docs/Subscription.md +4 -4
  37. data/docs/UpdateCustomerDto.md +1 -1
  38. data/docs/UpdateMeterDto.md +1 -1
  39. data/docs/UpdateWebhookEndpointDto.md +1 -1
  40. data/docs/WebhookDeliveryResponseDto.md +1 -1
  41. data/docs/WebhookEndpointApi.md +1 -1
  42. data/docs/WebhookEndpointResponseDto.md +1 -1
  43. data/docs/WebhookEntitlementGrantPayload.md +5 -5
  44. data/lib/solifyn/api/default_api.rb +1076 -0
  45. data/lib/solifyn/api/discord_integration_api.rb +137 -0
  46. data/lib/solifyn/models/addon.rb +10 -2
  47. data/lib/solifyn/models/brand.rb +0 -6
  48. data/lib/solifyn/models/brand_create.rb +5 -6
  49. data/lib/solifyn/models/brand_update.rb +5 -6
  50. data/lib/solifyn/models/checkout_link_response_dto.rb +0 -12
  51. data/lib/solifyn/models/checkout_session_details_dto.rb +0 -1
  52. data/lib/solifyn/models/collection_detail_response_dto.rb +0 -2
  53. data/lib/solifyn/models/collection_product_dto.rb +132 -18
  54. data/lib/solifyn/models/collection_response_dto.rb +0 -2
  55. data/lib/solifyn/models/customer_response_dto.rb +0 -6
  56. data/lib/solifyn/models/discord_roles_response_dto.rb +273 -0
  57. data/lib/solifyn/models/discount.rb +10 -2
  58. data/lib/solifyn/models/discount_create.rb +0 -3
  59. data/lib/solifyn/models/discount_update.rb +0 -3
  60. data/lib/solifyn/models/dispute.rb +0 -10
  61. data/lib/solifyn/models/dispute_evidence_dto.rb +0 -4
  62. data/lib/solifyn/models/entitlement_grant_response_dto.rb +41 -1
  63. data/lib/solifyn/models/instance.rb +20 -4
  64. data/lib/solifyn/models/license.rb +40 -8
  65. data/lib/solifyn/models/license_sub_dto.rb +15 -3
  66. data/lib/solifyn/models/meter_detail_response_dto.rb +0 -4
  67. data/lib/solifyn/models/meter_response_dto.rb +0 -4
  68. data/lib/solifyn/models/meter_usage_event_dto.rb +0 -1
  69. data/lib/solifyn/models/product.rb +132 -18
  70. data/lib/solifyn/models/product_create.rb +33 -3
  71. data/lib/solifyn/models/product_sub_dto.rb +5 -1
  72. data/lib/solifyn/models/product_update.rb +33 -3
  73. data/lib/solifyn/models/refund.rb +0 -5
  74. data/lib/solifyn/models/resolved_addon.rb +5 -1
  75. data/lib/solifyn/models/subscription.rb +35 -10
  76. data/lib/solifyn/models/subscription_detail.rb +5 -1
  77. data/lib/solifyn/models/webhook_dispute_payload.rb +0 -5
  78. data/lib/solifyn/models/webhook_entitlement_grant_payload.rb +0 -6
  79. data/lib/solifyn/models/webhook_license_payload.rb +40 -8
  80. data/lib/solifyn/models/webhook_payment_payload.rb +0 -40
  81. data/lib/solifyn/models/webhook_refund_payload.rb +0 -4
  82. data/lib/solifyn/models/webhook_subscription_payload.rb +0 -9
  83. data/lib/solifyn/version.rb +1 -1
  84. data/lib/solifyn.rb +2 -0
  85. data/spec/api/default_api_spec.rb +239 -0
  86. data/spec/api/discord_integration_api_spec.rb +58 -0
  87. data/spec/models/discord_roles_response_dto_spec.rb +54 -0
  88. metadata +145 -133
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b16b3aeec7e5b9a8e0631cdf937014212c3044a935db25a1ef062161aff068a
4
- data.tar.gz: 7ae006f470bdc70b5c7724f3ab19261f2b883e9e294c42b6b6878c8f9b76f521
3
+ metadata.gz: c7870b8c127836aa17122a74ecd6602f7fbdb52143be164a4e15828f3cad8b0b
4
+ data.tar.gz: 2f6156e0e5be91272016efc52d3e4c95e19fca99e3ef9987b85a125cd9121050
5
5
  SHA512:
6
- metadata.gz: 875935da3644e3b6d4b5b896637281968d127877f87ca9f711afeff4cfcd446435d9e78b33b40b3241bd6c8d321db15f621e23724504a97ba2912950961a640d
7
- data.tar.gz: 687d7da3f3a1f327932cfae08d1df7686ecd1777f821c7f74e3fef9e7b29a19c7adb95d642918e0a5ce60611d1c69fe504e3d73adc60d0125a374db3f91ed4d1
6
+ metadata.gz: 5598ceb0e69213b8c5a8a3556e0c46537b1f85d34694a3986386ebf090bd209d55ca8cad97611a11c6f74c5c9228c0d935d24c532d7f65a7deaefc0869e527ef
7
+ data.tar.gz: a0a5a944159ab3543a203b0c7c669327bc1a105ecda621dc33a8e4d6809a3753d87946e4d774359cd9a5a805a5e48d567ceb4228739f3eeecf4e2d4578c6278b
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.3
10
+ - Package version: 1.1.4
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.3.gem
27
+ gem install ./solifyn-1.1.4.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./solifyn-1.1.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./solifyn-1.1.4.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.3'
36
+ gem 'solifyn', '~> 1.1.4'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -115,6 +115,8 @@ Class | Method | HTTP request | Description
115
115
  *Solifyn::DigitalFileApi* | [**digital_file_controller_create**](docs/DigitalFileApi.md#digital_file_controller_create) | **POST** /v1/digital-files |
116
116
  *Solifyn::DigitalFileApi* | [**digital_file_controller_find_all**](docs/DigitalFileApi.md#digital_file_controller_find_all) | **GET** /v1/digital-files |
117
117
  *Solifyn::DigitalFileApi* | [**digital_file_controller_remove**](docs/DigitalFileApi.md#digital_file_controller_remove) | **DELETE** /v1/digital-files/{id} |
118
+ *Solifyn::DiscordIntegrationApi* | [**discord_get_install_url**](docs/DiscordIntegrationApi.md#discord_get_install_url) | **GET** /v1/discord/install | Get Discord Bot Installation URL
119
+ *Solifyn::DiscordIntegrationApi* | [**discord_list_roles**](docs/DiscordIntegrationApi.md#discord_list_roles) | **GET** /v1/discord/roles | List Guild Discord Roles
118
120
  *Solifyn::DiscountsApi* | [**discounts_create**](docs/DiscountsApi.md#discounts_create) | **POST** /v1/discounts | Create Discount
119
121
  *Solifyn::DiscountsApi* | [**discounts_delete**](docs/DiscountsApi.md#discounts_delete) | **DELETE** /v1/discounts/{id} | Delete Discount
120
122
  *Solifyn::DiscountsApi* | [**discounts_get**](docs/DiscountsApi.md#discounts_get) | **GET** /v1/discounts/{id} | Retrieve Discount
@@ -244,6 +246,7 @@ Class | Method | HTTP request | Description
244
246
  - [Solifyn::CustomerResponseDto](docs/CustomerResponseDto.md)
245
247
  - [Solifyn::CustomerSharedInviteResponseDto](docs/CustomerSharedInviteResponseDto.md)
246
248
  - [Solifyn::DashboardStatsDto](docs/DashboardStatsDto.md)
249
+ - [Solifyn::DiscordRolesResponseDto](docs/DiscordRolesResponseDto.md)
247
250
  - [Solifyn::Discount](docs/Discount.md)
248
251
  - [Solifyn::DiscountCreate](docs/DiscountCreate.md)
249
252
  - [Solifyn::DiscountUpdate](docs/DiscountUpdate.md)
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:00Z,
37
- updated_at: 2025-01-01T12:00Z
36
+ created_at: 2025-01-01T12:00:00Z,
37
+ updated_at: 2025-01-01T12:00: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: null,
31
+ id: chk_123,
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:00Z,
47
- updated_at: 2025-01-01T12:00Z
46
+ created_at: 2025-01-01T12:00:00Z,
47
+ updated_at: 2025-01-01T12:00: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: null,
24
+ id: col_123,
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:00Z,
32
- updated_at: 2025-01-01T12:00Z,
31
+ created_at: 2025-01-01T12:00:00Z,
32
+ updated_at: 2025-01-01T12:00:00Z,
33
33
  products: null
34
34
  )
35
35
  ```
@@ -19,6 +19,9 @@
19
19
  | **has_github_access** | **Boolean** | Whether the product includes GitHub repository access. | |
20
20
  | **github_repo** | **String** | GitHub repository to grant access to (format: owner/repo). | |
21
21
  | **github_permission** | **String** | GitHub collaborator permission level. | |
22
+ | **has_discord_access** | **Boolean** | Whether the product includes Discord role access. | |
23
+ | **discord_guild_id** | **String** | Discord Guild (Server) ID to grant access to. | |
24
+ | **discord_role_id** | **String** | Discord Role ID to assign to the user. | |
22
25
  | **is_tax_inclusive** | **Boolean** | Whether the product price already includes applicable sales taxes. | |
23
26
  | **billing_period** | **Integer** | The subscription billing cycle interval in days (for subscription products). | |
24
27
  | **trial_period_days** | **Integer** | Trial duration in days for subscription products. | |
@@ -48,7 +51,7 @@
48
51
  require 'solifyn'
49
52
 
50
53
  instance = Solifyn::CollectionProductDto.new(
51
- id: null,
54
+ id: prod_9z8x7c6v5b4n,
52
55
  name: Enterprise SaaS Plan,
53
56
  price: 99,
54
57
  currency: USD,
@@ -63,20 +66,23 @@ instance = Solifyn::CollectionProductDto.new(
63
66
  has_github_access: false,
64
67
  github_repo: solifyn/premium-app,
65
68
  github_permission: pull,
69
+ has_discord_access: false,
70
+ discord_guild_id: 123456789012345678,
71
+ discord_role_id: 876543210987654321,
66
72
  is_tax_inclusive: false,
67
73
  billing_period: null,
68
74
  trial_period_days: null,
69
75
  expiration_days: null,
70
76
  statement_descriptor: SOLIFYN*SAAS,
71
77
  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)"}],
78
+ metadata: {tier=enterprise, department=engineering},
79
+ 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
80
  stock: null,
75
81
  activation_limit: 5,
76
82
  is_listed: true,
77
83
  is_free: false,
78
- created_at: 2026-05-18T12:00Z,
79
- updated_at: 2026-05-18T12:00Z,
84
+ created_at: 2026-05-18T12:00:00.000Z,
85
+ updated_at: 2026-05-18T12:00:00.000Z,
80
86
  is_permanently_deleted: false,
81
87
  brand_id: brd_4e29285b8sdf34ff51e07d4,
82
88
  digital_link: null,
@@ -21,15 +21,15 @@
21
21
  require 'solifyn'
22
22
 
23
23
  instance = Solifyn::CollectionResponseDto.new(
24
- id: null,
24
+ id: col_123,
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:00Z,
32
- updated_at: 2025-01-01T12:00Z,
31
+ created_at: 2025-01-01T12:00:00Z,
32
+ updated_at: 2025-01-01T12:00:00Z,
33
33
  products: null
34
34
  )
35
35
  ```
@@ -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,9 +29,9 @@ instance = Solifyn::CustomerResponseDto.new(
29
29
  username: johndoe,
30
30
  phone: +1234567890,
31
31
  phone_number: +1234567890,
32
- metadata: {"key":"value"},
33
- created_at: 2025-01-01T12:00Z,
34
- updated_at: 2025-01-01T12:00Z,
32
+ metadata: {key=value},
33
+ created_at: 2025-01-01T12:00:00Z,
34
+ updated_at: 2025-01-01T12:00:00Z,
35
35
  business_id: 537825c3-14d6-4173-b072-33f921416efc
36
36
  )
37
37
  ```
@@ -15,7 +15,7 @@ require 'solifyn'
15
15
 
16
16
  instance = Solifyn::CustomerSharedInviteResponseDto.new(
17
17
  token: 2jb5bp8bq0jfucv7rtt9a8,
18
- expires_at: 2025-01-02T12:00Z,
18
+ expires_at: 2025-01-02T12:00:00Z,
19
19
  url: http://localhost:3000/shared/2jb5bp8bq0jfucv7rtt9a8
20
20
  )
21
21
  ```