Skip to content

Commit

Permalink
Merge pull request #6 from dubinc/speakeasy-sdk-regen-1717809488
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
devkiran authored Jun 10, 2024
2 parents 5e9468b + 7b72897 commit dca733e
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 27 deletions.
6 changes: 3 additions & 3 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: dda943a614373c0afd2760452f6aa501
docChecksum: ba3e83845a082a6c2321d0eeaaf9c23c
docVersion: 0.0.1
speakeasyVersion: 1.300.1
generationVersion: 2.339.1
releaseVersion: 0.0.4
configChecksum: a5c79ce256848ec51eae800a87ad3e3a
releaseVersion: 0.0.5
configChecksum: ca47740c1f9091bad7d5a9ba60dd3cc6
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
ruby:
version: 0.0.4
version: 0.0.5
author: Dub
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.300.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:59224acd7bd7958a7f091a89a90618eb60550de6ce9061b6a1b86f721b4f9285
sourceBlobDigest: sha256:04e519216c5ec83c689352f2c023526718c9795f8d2947ac1d5792d749bb36ad
sourceRevisionDigest: sha256:d2c24b5ce76ba71f892713722c1df612f12f25490d6e3a9505a4d8d5227c56d6
sourceBlobDigest: sha256:b470fd395e2bcc352f9b48b9f32c4a25fbd23cd88adacbc1b94fc84fe09777c0
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:59224acd7bd7958a7f091a89a90618eb60550de6ce9061b6a1b86f721b4f9285
sourceBlobDigest: sha256:04e519216c5ec83c689352f2c023526718c9795f8d2947ac1d5792d749bb36ad
sourceRevisionDigest: sha256:d2c24b5ce76ba71f892713722c1df612f12f25490d6e3a9505a4d8d5227c56d6
sourceBlobDigest: sha256:b470fd395e2bcc352f9b48b9f32c4a25fbd23cd88adacbc1b94fc84fe09777c0
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
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.0.4)
dub (0.0.5)
faraday
faraday-multipart
rack
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@ Based on:
### Generated
- [ruby v0.0.4] .
### Releases
- [Ruby Gems v0.0.4] https://rubygems.org/gems/dub/versions/0.0.4 - .
- [Ruby Gems v0.0.4] https://rubygems.org/gems/dub/versions/0.0.4 - .

## 2024-06-10 01:20:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.300.1 (2.339.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.0.5] .
### Releases
- [Ruby Gems v0.0.5] https://rubygems.org/gems/dub/versions/0.0.5 - .
2 changes: 1 addition & 1 deletion docs/models/operations/trackleadrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `click_id` | *::String* | :heavy_check_mark: | The ID of the click in th Dub. You can read this value from `dclid` cookie. | |
| `event_name` | *::String* | :heavy_check_mark: | The name of the event to track. | Signup |
| `event_name` | *::String* | :heavy_check_mark: | The name of the event to track. | Sign up |
| `customer_id` | *::String* | :heavy_check_mark: | This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | |
| `customer_name` | *T.nilable(::String)* | :heavy_minus_sign: | Name of the customer in the client's app. | |
| `customer_email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer in the client's app. | |
Expand Down
17 changes: 9 additions & 8 deletions docs/models/operations/tracksalerequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `customer_id` | *::String* | :heavy_check_mark: | This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. |
| `amount` | *::Integer* | :heavy_check_mark: | The amount of the sale. Should be passed in cents. |
| `payment_processor` | [::OpenApiSDK::Operations::PaymentProcessor](../../models/operations/paymentprocessor.md) | :heavy_check_mark: | The payment processor via which the sale was made. |
| `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. |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `customer_id` | *::String* | :heavy_check_mark: | This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | |
| `amount` | *::Integer* | :heavy_check_mark: | The amount of the sale. Should be passed in cents. | |
| `payment_processor` | [::OpenApiSDK::Operations::PaymentProcessor](../../models/operations/paymentprocessor.md) | :heavy_check_mark: | The payment processor via which the sale was made. | |
| `event_name` | *T.nilable(::String)* | :heavy_minus_sign: | The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', 'Payment', etc. | Purchase |
| `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. | |
1 change: 1 addition & 0 deletions docs/models/operations/tracksaleresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ A sale was tracked.

| Field | Type | Required | Description |
| --------------------------- | --------------------------- | --------------------------- | --------------------------- |
| `event_name` | *::String* | :heavy_check_mark: | N/A |
| `customer_id` | *::String* | :heavy_check_mark: | N/A |
| `amount` | *::Float* | :heavy_check_mark: | N/A |
| `payment_processor` | *::String* | :heavy_check_mark: | N/A |
Expand Down
3 changes: 2 additions & 1 deletion docs/sdks/track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ s.config_security(

res = s.track.lead(workspace_id="<value>", project_slug="<value>", request_body=::OpenApiSDK::Operations::TrackLeadRequestBody.new(
click_id: "<value>",
event_name: "Signup",
event_name: "Sign up",
customer_id: "<value>",
))

Expand Down Expand Up @@ -77,6 +77,7 @@ res = s.track.sale(workspace_id="<value>", project_slug="<value>", request_body=
customer_id: "<value>",
amount: 996500,
payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::SHOPIFY,
event_name: "Purchase",
))

if ! res.object.nil?
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.0.4'
s.version = '0.0.5'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
Loading

0 comments on commit dca733e

Please sign in to comment.