From 12e3265eac7b7500b3af50a01234fdb9d20e68bc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Dec 2024 00:28:40 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.0 --- .speakeasy/gen.lock | 16 ++++++++-------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +++++++------- Gemfile.lock | 8 ++++---- RELEASES.md | 12 +++++++++++- docs/models/shared/workspaceschema.md | 7 ++----- dub.gemspec | 2 +- .../models/shared/workspaceschema.rb | 19 +++++-------------- lib/open_api_sdk/sdkconfiguration.rb | 6 +++--- lib/open_api_sdk/utils/utils.rb | 5 ++--- 10 files changed, 44 insertions(+), 47 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a16ab95..d72008e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: 696b11ac8aea0ac84de6ac987269993a + docChecksum: cb382cc4468d569fac201d1bf8058387 docVersion: 0.0.1 - speakeasyVersion: 1.453.10 - generationVersion: 2.474.15 - releaseVersion: 0.2.2-alpha.45 - configChecksum: 4618f89a9a0384516a943aac284eb368 + speakeasyVersion: 1.456.0 + generationVersion: 2.481.0 + releaseVersion: 0.2.2-alpha.46 + configChecksum: 110f8d5546ff85a14374a226ec17c704 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true features: ruby: - core: 3.4.2 + core: 3.4.5 deprecations: 2.81.1 examples: 2.81.3 flattening: 2.81.1 @@ -753,7 +753,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "", "users": [], "domains": [], "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} + application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "paymentFailedAt": "", "stripeConnectId": "", "payoutMethodId": "", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "", "users": [], "domains": []} "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": @@ -779,7 +779,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "", "users": [], "domains": [], "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} + application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "paymentFailedAt": "", "stripeConnectId": "", "payoutMethodId": "", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "", "users": [], "domains": []} "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": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 86f4f28..75a0adb 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.45 + version: 0.2.2-alpha.46 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a775dfc..7397e8b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.453.10 +speakeasyVersion: 1.456.0 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:978c517865917582a98fc2b3862077ad97f642317d2f688e728417f111dc8d9f - sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b + sourceRevisionDigest: sha256:125fb377eb94157f33fddc9e0236e947fadb07a67bd1e77489fb435d6fa21897 + sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c tags: - latest - - speakeasy-sdk-regen-1733876933 + - speakeasy-sdk-regen-1734481661 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:978c517865917582a98fc2b3862077ad97f642317d2f688e728417f111dc8d9f - sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b + sourceRevisionDigest: sha256:125fb377eb94157f33fddc9e0236e947fadb07a67bd1e77489fb435d6fa21897 + sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:29612da3e5f57dffc61fb22a244c0ba54e5a9d0f3e22c69567c9461c933e73f0 + codeSamplesRevisionDigest: sha256:be430496c5ffd6e93aea865088a78f98e5796fd60153f3d2810c5d230e9ebcb6 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 4c49b83..b86945c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.45) + dub (0.2.2.pre.alpha.46) faraday faraday-multipart rack @@ -17,13 +17,13 @@ GEM faraday-net_http (>= 2.0, < 3.5) json logger - faraday-multipart (1.0.4) - multipart-post (~> 2) + faraday-multipart (1.1.0) + multipart-post (~> 2.0) faraday-net_http (3.4.0) net-http (>= 0.5.0) json (2.8.2) language_server-protocol (3.17.0.3) - logger (1.6.2) + logger (1.6.3) minitest (5.25.2) multipart-post (2.4.1) net-http (0.6.0) diff --git a/RELEASES.md b/RELEASES.md index 3631dd6..47e13f1 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -598,4 +598,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.45] . ### Releases -- [Ruby Gems v0.2.2-alpha.45] https://rubygems.org/gems/dub/versions/0.2.2-alpha.45 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.45] https://rubygems.org/gems/dub/versions/0.2.2-alpha.45 - . + +## 2024-12-18 00:27:38 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.46] . +### Releases +- [Ruby Gems v0.2.2-alpha.46] https://rubygems.org/gems/dub/versions/0.2.2-alpha.46 - . \ No newline at end of file diff --git a/docs/models/shared/workspaceschema.md b/docs/models/shared/workspaceschema.md index 42ecca9..7636900 100644 --- a/docs/models/shared/workspaceschema.md +++ b/docs/models/shared/workspaceschema.md @@ -15,6 +15,7 @@ | `billing_cycle_start` | *::Float* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. | | `payment_failed_at` | *::String* | :heavy_check_mark: | The date and time when the payment failed for the workspace. | | `stripe_connect_id` | *::String* | :heavy_check_mark: | [BETA – Dub Conversions]: The Stripe Connect ID of the workspace. | +| `payout_method_id` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The ID of the payment method for partner payouts. | | `usage` | *::Float* | :heavy_check_mark: | The usage of the workspace. | | `usage_limit` | *::Float* | :heavy_check_mark: | The usage limit of the workspace. | | `links_usage` | *::Float* | :heavy_check_mark: | The links usage of the workspace. | @@ -31,8 +32,4 @@ | `created_at` | *::String* | :heavy_check_mark: | The date and time when the workspace was created. | | `users` | T::Array<[::OpenApiSDK::Shared::Users](../../models/shared/users.md)> | :heavy_check_mark: | The role of the authenticated user in the workspace. | | `domains` | T::Array<[::OpenApiSDK::Shared::Domains](../../models/shared/domains.md)> | :heavy_check_mark: | The domains of the workspace. | -| `flags` | T::Hash[Symbol, *T::Boolean*] | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | -| `bank_account_name` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The name of the connected bank account. | -| `partial_account_number` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The partial account number of the bank account. | -| `routing_number` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The routing number of the bank account. | -| `bank_account_verified` | *T::Boolean* | :heavy_check_mark: | [BETA – Dub Partners]: Whether the bank account is verified. | \ No newline at end of file +| `flags` | T::Hash[Symbol, *T::Boolean*] | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | \ No newline at end of file diff --git a/dub.gemspec b/dub.gemspec index 8abcf66..544bcf4 100644 --- a/dub.gemspec +++ b/dub.gemspec @@ -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.45' + s.version = '0.2.2-alpha.46' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/shared/workspaceschema.rb b/lib/open_api_sdk/models/shared/workspaceschema.rb index 147c834..1c771cd 100644 --- a/lib/open_api_sdk/models/shared/workspaceschema.rb +++ b/lib/open_api_sdk/models/shared/workspaceschema.rb @@ -15,10 +15,6 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented field :ai_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiLimit') } } # The AI usage of the workspace. field :ai_usage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiUsage') } } - # [BETA – Dub Partners]: The name of the connected bank account. - field :bank_account_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountName') } } - # [BETA – Dub Partners]: Whether the bank account is verified. - field :bank_account_verified, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountVerified') } } # The date and time when the billing cycle starts for the workspace. field :billing_cycle_start, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('billingCycleStart') } } # Whether the workspace has conversion tracking enabled (d.to/conversions). @@ -43,14 +39,12 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented field :logo, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } } # The name of the workspace. field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } - # [BETA – Dub Partners]: The partial account number of the bank account. - field :partial_account_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partialAccountNumber') } } # The date and time when the payment failed for the workspace. field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } } + # [BETA – Dub Partners]: The ID of the payment method for partner payouts. + field :payout_method_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutMethodId') } } # The plan of the workspace. field :plan, ::OpenApiSDK::Shared::Plan, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('plan'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Plan, false) } } - # [BETA – Dub Partners]: The routing number of the bank account. - field :routing_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('routingNumber') } } # The limit of tracked revenue in the current billing cycle (in cents). field :sales_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesLimit') } } # The dollar amount of tracked revenue in the current billing cycle (in cents). @@ -75,12 +69,10 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented field :flags, T.nilable(T::Hash[Symbol, T::Boolean]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('flags') } } - sig { params(ai_limit: ::Float, ai_usage: ::Float, bank_account_name: ::String, bank_account_verified: T::Boolean, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partial_account_number: ::String, payment_failed_at: ::String, plan: ::OpenApiSDK::Shared::Plan, routing_number: ::String, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void } - def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_account_verified: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partial_account_number: nil, payment_failed_at: nil, plan: nil, routing_number: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil) + sig { params(ai_limit: ::Float, ai_usage: ::Float, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, payment_failed_at: ::String, payout_method_id: ::String, plan: ::OpenApiSDK::Shared::Plan, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void } + def initialize(ai_limit: nil, ai_usage: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, payment_failed_at: nil, payout_method_id: nil, plan: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil) @ai_limit = ai_limit @ai_usage = ai_usage - @bank_account_name = bank_account_name - @bank_account_verified = bank_account_verified @billing_cycle_start = billing_cycle_start @conversion_enabled = conversion_enabled @created_at = created_at @@ -93,10 +85,9 @@ def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_accoun @links_usage = links_usage @logo = logo @name = name - @partial_account_number = partial_account_number @payment_failed_at = payment_failed_at + @payout_method_id = payout_method_id @plan = plan - @routing_number = routing_number @sales_limit = sales_limit @sales_usage = sales_usage @slug = slug diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 2ff1906..af011da 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -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.45' - @gen_version = '2.474.15' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.45 2.474.15 0.0.1 dub' + @sdk_version = '0.2.2-alpha.46' + @gen_version = '2.481.0' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.46 2.481.0 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/open_api_sdk/utils/utils.rb b/lib/open_api_sdk/utils/utils.rb index 5bd479c..384a1c9 100644 --- a/lib/open_api_sdk/utils/utils.rb +++ b/lib/open_api_sdk/utils/utils.rb @@ -593,7 +593,7 @@ def self.serialize_multipart_form(media_type, request) file_fields = val.fields file_name = '' - field_name = '' + field_name = field_metadata[:field_name] content = nil file_fields.each do |file_field| @@ -603,11 +603,10 @@ def self.serialize_multipart_form(media_type, request) if file_metadata[:content] == true content = val.send(file_field.name) else - field_name = file_metadata.fetch(:field_name, file_field.name) file_name = val.send(file_field.name) end end - raise StandardError, 'invalid multipart/form-data file' if field_name == '' || file_name == '' || content == nil? + raise StandardError, 'invalid multipart/form-data file' if file_name == '' || content == nil? form.append([field_name, [file_name, content]]) elsif field_metadata[:json] == true