Skip to content

Commit

Permalink
Merge pull request #93 from dubinc/speakeasy-sdk-regen-1741048062
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.74
  • Loading branch information
devkiran authored Mar 4, 2025
2 parents 4f3387c + ce0f2cb commit 33b5abf
Show file tree
Hide file tree
Showing 33 changed files with 528 additions and 86 deletions.
41 changes: 36 additions & 5 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: c0e6d3d254be054e34459f415be9c6fb
docChecksum: 67941bfbb5e02cd5bc33d054673647ac
docVersion: 0.0.1
speakeasyVersion: 1.508.1
generationVersion: 2.536.0
releaseVersion: 0.2.2-alpha.73
configChecksum: 2a49efd1c1478868f7a23517f1a5938e
speakeasyVersion: 1.509.0
generationVersion: 2.539.0
releaseVersion: 0.2.2-alpha.74
configChecksum: 4a8358d13fdd80aa0ae2a000cab4e38a
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
Expand Down Expand Up @@ -171,6 +171,10 @@ generatedFiles:
- docs/models/operations/updatelinkrequest.md
- docs/models/operations/updatelinkrequestbody.md
- docs/models/operations/updatelinkresponse.md
- docs/models/operations/updatepartnersalerequestbody.md
- docs/models/operations/updatepartnersaleresponse.md
- docs/models/operations/updatepartnersaleresponsebody.md
- docs/models/operations/updatepartnersalestatus.md
- docs/models/operations/updatetagcolor.md
- docs/models/operations/updatetagrequest.md
- docs/models/operations/updatetagrequestbody.md
Expand Down Expand Up @@ -407,6 +411,10 @@ generatedFiles:
- lib/open_api_sdk/models/operations/updatelink_request.rb
- lib/open_api_sdk/models/operations/updatelink_requestbody.rb
- lib/open_api_sdk/models/operations/updatelink_response.rb
- lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb
- lib/open_api_sdk/models/operations/updatepartnersale_response.rb
- lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb
- lib/open_api_sdk/models/operations/updatepartnersale_status.rb
- lib/open_api_sdk/models/operations/updatetag_color.rb
- lib/open_api_sdk/models/operations/updatetag_request.rb
- lib/open_api_sdk/models/operations/updatetag_requestbody.rb
Expand Down Expand Up @@ -1536,5 +1544,28 @@ examples:
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
updatePartnerSale:
speakeasy-default-update-partner-sale:
responses:
"200":
application/json: {"id": "<id>", "amount": 1560.34, "earnings": 2256.73, "currency": "Cayman Islands Dollar", "status": "pending", "createdAt": "1729448587751", "updatedAt": "1740967258678"}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
"403":
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
"404":
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
"409":
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
"410":
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
"422":
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
"429":
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
examplesVersion: 1.0.0
generatedTests: {}
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
ruby:
version: 0.2.2-alpha.73
version: 0.2.2-alpha.74
author: Dub
description: Ruby Client SDK Generated by Speakeasy
flattenGlobalSecurity: false
imports:
option: openapi
paths:
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.508.1
speakeasyVersion: 1.509.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:27099fbf341b006a39e6bc82d684e48b5f1907adbdc0db9bc049bf44a09eac58
sourceBlobDigest: sha256:3193a6aec6d02396c3e356e03d5748403f6f0809d7866fc39d969a278c4c1f78
sourceRevisionDigest: sha256:1258645d97256e7059146a881aec490187e3f874dfbffabd3249eadb0c5bf641
sourceBlobDigest: sha256:c73395e1465003dee50ff36dcfa0b11b34b6e363d8c1a67986eab4049ec059e3
tags:
- latest
- speakeasy-sdk-regen-1740961734
- speakeasy-sdk-regen-1741048062
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:27099fbf341b006a39e6bc82d684e48b5f1907adbdc0db9bc049bf44a09eac58
sourceBlobDigest: sha256:3193a6aec6d02396c3e356e03d5748403f6f0809d7866fc39d969a278c4c1f78
sourceRevisionDigest: sha256:1258645d97256e7059146a881aec490187e3f874dfbffabd3249eadb0c5bf641
sourceBlobDigest: sha256:c73395e1465003dee50ff36dcfa0b11b34b6e363d8c1a67986eab4049ec059e3
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:bb6b46ed834b8473a0af07d297bfb1039354c1572b5d19a6fca9188f6b58538b
codeSamplesRevisionDigest: sha256:3af1bcce8dabe9309fe63243e073d0c59d30034ea499f124c71b91b1a3c1932c
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.73)
dub (0.2.2.pre.alpha.74)
faraday
faraday-multipart
rack
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ end
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner
* [upsert_link](docs/sdks/partners/README.md#upsert_link) - Upsert a link for a partner
* [analytics](docs/sdks/partners/README.md#analytics) - Retrieve analytics for a partner
* [update_sale](docs/sdks/partners/README.md#update_sale) - Update a sale for a partner.

### [qr_codes](docs/sdks/qrcodes/README.md)

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

## 2025-03-04 00:27:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.74] .
### Releases
- [Ruby Gems v0.2.2-alpha.74] https://rubygems.org/gems/dub/versions/0.2.2-alpha.74 - .
6 changes: 6 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ actions:
- "lang": "ruby"
"label": "upsertPartnerLink"
"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::UpsertPartnerLinkRequestBody.new(\n program_id: \"<id>\",\n link_props: ::OpenApiSDK::Operations::UpsertPartnerLinkLinkProps.new(\n external_id: \"123456\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n ),\n)\n \nres = s.partners.upsert_link(req)\n\nif ! res.link_schema.nil?\n # handle response\nend"
- target: $["paths"]["/partners/sales"]["patch"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "updatePartnerSale"
"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::UpdatePartnerSaleRequestBody.new(\n program_id: \"<id>\",\n invoice_id: \"<id>\",\n amount: 1560.34,\n)\n \nres = s.partners.update_sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
Expand Down
10 changes: 10 additions & 0 deletions docs/models/operations/updatepartnersalerequestbody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UpdatePartnerSaleRequestBody


## Fields

| Field | Type | Required | Description |
| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- |
| `program_id` | *::String* | :heavy_check_mark: | N/A |
| `invoice_id` | *::String* | :heavy_check_mark: | N/A |
| `amount` | *::Float* | :heavy_check_mark: | The new amount for the sale. |
Loading

0 comments on commit 33b5abf

Please sign in to comment.