Skip to content

Commit

Permalink
Merge pull request #86 from dubinc/speakeasy-sdk-regen-1739924816
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.67
  • Loading branch information
devkiran authored Feb 20, 2025
2 parents e68223b + c72a4e1 commit ec317ff
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 5a2dd83e-da98-455b-8ef9-0100a914efdf
management:
docChecksum: 27a110fd093a3c1f50fb10b9b3565413
docChecksum: e3442b7d8a069ceffe7996dbc51acd18
docVersion: 0.0.1
speakeasyVersion: 1.493.2
generationVersion: 2.512.4
releaseVersion: 0.2.2-alpha.66
configChecksum: 2df3872d4facbdc25659b5275beaaddb
speakeasyVersion: 1.497.0
generationVersion: 2.517.3
releaseVersion: 0.2.2-alpha.67
configChecksum: 88f6124c803acc07d0b9c85516119fee
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
Expand Down Expand Up @@ -1069,7 +1069,7 @@ examples:
trackSale:
speakeasy-default-track-sale:
requestBody:
application/json: {"amount": 996500, "paymentProcessor": "paddle", "eventName": "Purchase"}
application/json: {"amount": 996500, "paymentProcessor": "paddle", "eventName": "Purchase", "leadEventName": "Cloned template 1481267"}
responses:
"200":
application/json: {"eventName": "<value>", "customer": {"id": "<id>", "name": "<value>", "email": "[email protected]", "avatar": "https://loremflickr.com/2579/465?lock=3083028689214487", "externalId": "<id>"}, "sale": {"amount": 8968.61, "currency": "Saudi Riyal", "paymentProcessor": "<value>", "invoiceId": "<id>", "metadata": {"key": "<value>", "key1": "<value>"}}}
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ generation:
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
nameResolutionFeb2025: false
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
ruby:
version: 0.2.2-alpha.66
version: 0.2.2-alpha.67
author: Dub
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.493.2
speakeasyVersion: 1.497.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:965146cafd675cdb815fe850b27b7c95783ab5585d933766bd3c13a902f91509
sourceBlobDigest: sha256:a502a4b679d3c5b8c3643e9427ce1cc328fe7307b38d35e7135860a07dbe8d1c
sourceRevisionDigest: sha256:cdf2bd4e127b876f22e058ae945a0cbfaed35132a3eea80d19cb8d94f714341e
sourceBlobDigest: sha256:61e87736388f904908d95b70d0dc38fc3316c2072caa2962ae41aa2ac0512bb8
tags:
- latest
- speakeasy-sdk-regen-1739838394
- speakeasy-sdk-regen-1739924816
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:965146cafd675cdb815fe850b27b7c95783ab5585d933766bd3c13a902f91509
sourceBlobDigest: sha256:a502a4b679d3c5b8c3643e9427ce1cc328fe7307b38d35e7135860a07dbe8d1c
sourceRevisionDigest: sha256:cdf2bd4e127b876f22e058ae945a0cbfaed35132a3eea80d19cb8d94f714341e
sourceBlobDigest: sha256:61e87736388f904908d95b70d0dc38fc3316c2072caa2962ae41aa2ac0512bb8
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:616aca76affe849f0b98644e08c4c315cbe4b0d57552883cfa2f2892c14fb04c
codeSamplesRevisionDigest: sha256:4c9d4ba6145540c2ac56b427c81c601f7f4c724e890f62ab793391b45a96f40f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dub (0.2.2.pre.alpha.66)
dub (0.2.2.pre.alpha.67)
faraday
faraday-multipart
rack
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ end

### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
The default server can be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
```ruby
require 'dub'

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.66] .
### Releases
- [Ruby Gems v0.2.2-alpha.66] https://rubygems.org/gems/dub/versions/0.2.2-alpha.66 - .
- [Ruby Gems v0.2.2-alpha.66] https://rubygems.org/gems/dub/versions/0.2.2-alpha.66 - .

## 2025-02-20 00:26:47
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.497.0 (2.517.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.67] .
### Releases
- [Ruby Gems v0.2.2-alpha.67] https://rubygems.org/gems/dub/versions/0.2.2-alpha.67 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "trackSale"
"source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n)\n \nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
"source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n lead_event_name: \"Cloned template 1481267\",\n)\n \nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
update:
"x-codeSamples":
Expand Down
2 changes: 1 addition & 1 deletion docs/models/operations/tracksalerequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
| `invoice_id` | *T.nilable(::String)* | :heavy_minus_sign: | The invoice ID of the sale. | |
| `currency` | *T.nilable(::String)* | :heavy_minus_sign: | The currency of the sale. Accepts ISO 4217 currency codes. | |
| `metadata` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Additional metadata to be stored with the sale event. | |
| `lead_event_name` | *T.nilable(::String)* | :heavy_minus_sign: | The name of the lead event that occurred before the sale. | |
| `lead_event_name` | *T.nilable(::String)* | :heavy_minus_sign: | The name of the lead event that occurred before the sale (case-sensitive). | Cloned template 1481267 |
1 change: 1 addition & 0 deletions docs/sdks/track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ req = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(
amount: 996500,
payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,
event_name: "Purchase",
lead_event_name: "Cloned template 1481267",
)

res = s.track.sale(req)
Expand Down
2 changes: 1 addition & 1 deletion dub.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'dub'
s.version = '0.2.2-alpha.66'
s.version = '0.2.2-alpha.67'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TrackSaleRequestBody < ::OpenApiSDK::Utils::FieldAugmented
field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
# The invoice ID of the sale.
field :invoice_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
# The name of the lead event that occurred before the sale.
# The name of the lead event that occurred before the sale (case-sensitive).
field :lead_event_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leadEventName') } }
# Additional metadata to be stored with the sale event.
field :metadata, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }
Expand Down
6 changes: 3 additions & 3 deletions lib/open_api_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx)
@security = security
@language = 'ruby'
@openapi_doc_version = '0.0.1'
@sdk_version = '0.2.2-alpha.66'
@gen_version = '2.512.4'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.66 2.512.4 0.0.1 dub'
@sdk_version = '0.2.2-alpha.67'
@gen_version = '2.517.3'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.67 2.517.3 0.0.1 dub'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down

0 comments on commit ec317ff

Please sign in to comment.