From b0b14b6b4d681618a5b7f7d602de586bd8d86315 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 9 Mar 2025 00:26:11 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.513.4 --- .speakeasy/gen.lock | 18 +++++------------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +++++++------- Gemfile.lock | 2 +- RELEASES.md | 12 +++++++++++- .../operations/createcustomerdiscount.md | 18 +++++++++--------- .../operations/createcustomerinterval.md | 9 --------- docs/models/operations/discount.md | 18 +++++++++--------- docs/models/operations/getcustomerdiscount.md | 18 +++++++++--------- docs/models/operations/getcustomerinterval.md | 9 --------- docs/models/operations/getcustomersinterval.md | 9 --------- .../operations/updatecustomerdiscount.md | 18 +++++++++--------- .../operations/updatecustomerinterval.md | 9 --------- .../operations/updatepartnersalerequestbody.md | 3 ++- dub.gemspec | 2 +- lib/open_api_sdk/models/operations.rb | 4 ---- .../operations/createcustomer_discount.rb | 14 +++++++------- .../operations/createcustomer_interval.rb | 18 ------------------ lib/open_api_sdk/models/operations/discount.rb | 14 +++++++------- .../models/operations/getcustomer_discount.rb | 14 +++++++------- .../models/operations/getcustomer_interval.rb | 18 ------------------ .../models/operations/getcustomers_interval.rb | 18 ------------------ .../operations/updatecustomer_discount.rb | 14 +++++++------- .../operations/updatecustomer_interval.rb | 18 ------------------ .../updatepartnersale_requestbody.rb | 7 +++++-- lib/open_api_sdk/sdkconfiguration.rb | 6 +++--- 26 files changed, 100 insertions(+), 206 deletions(-) delete mode 100644 docs/models/operations/createcustomerinterval.md delete mode 100644 docs/models/operations/getcustomerinterval.md delete mode 100644 docs/models/operations/getcustomersinterval.md delete mode 100644 docs/models/operations/updatecustomerinterval.md delete mode 100644 lib/open_api_sdk/models/operations/createcustomer_interval.rb delete mode 100644 lib/open_api_sdk/models/operations/getcustomer_interval.rb delete mode 100644 lib/open_api_sdk/models/operations/getcustomers_interval.rb delete mode 100644 lib/open_api_sdk/models/operations/updatecustomer_interval.rb diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 65a7bff..781276d 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: 2ce50b8b514248f8824b7ba29f83b819 + docChecksum: 7aad15da8319febd3db27eda4154f3f4 docVersion: 0.0.1 - speakeasyVersion: 1.513.2 - generationVersion: 2.545.2 - releaseVersion: 0.2.2-alpha.76 - configChecksum: 724cda658f823b26bbbb1ec8e6dc6e98 + speakeasyVersion: 1.513.4 + generationVersion: 2.545.4 + releaseVersion: 0.2.2-alpha.77 + configChecksum: 300f748e64ba4f3406b8608820a994e8 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true @@ -38,7 +38,6 @@ generatedFiles: - docs/models/operations/color.md - docs/models/operations/country.md - docs/models/operations/createcustomerdiscount.md - - docs/models/operations/createcustomerinterval.md - docs/models/operations/createcustomerlink.md - docs/models/operations/createcustomerpartner.md - docs/models/operations/createcustomerrequestbody.md @@ -84,13 +83,11 @@ generatedFiles: - docs/models/operations/discount.md - docs/models/operations/event.md - docs/models/operations/getcustomerdiscount.md - - docs/models/operations/getcustomerinterval.md - docs/models/operations/getcustomerlink.md - docs/models/operations/getcustomerpartner.md - docs/models/operations/getcustomerrequest.md - docs/models/operations/getcustomerresponse.md - docs/models/operations/getcustomerresponsebody.md - - docs/models/operations/getcustomersinterval.md - docs/models/operations/getcustomerspartner.md - docs/models/operations/getcustomersrequest.md - docs/models/operations/getcustomersresponse.md @@ -156,7 +153,6 @@ generatedFiles: - docs/models/operations/trigger.md - docs/models/operations/type.md - docs/models/operations/updatecustomerdiscount.md - - docs/models/operations/updatecustomerinterval.md - docs/models/operations/updatecustomerlink.md - docs/models/operations/updatecustomerpartner.md - docs/models/operations/updatecustomerrequest.md @@ -281,7 +277,6 @@ generatedFiles: - lib/open_api_sdk/models/operations/color.rb - lib/open_api_sdk/models/operations/country.rb - lib/open_api_sdk/models/operations/createcustomer_discount.rb - - lib/open_api_sdk/models/operations/createcustomer_interval.rb - lib/open_api_sdk/models/operations/createcustomer_link.rb - lib/open_api_sdk/models/operations/createcustomer_partner.rb - lib/open_api_sdk/models/operations/createcustomer_requestbody.rb @@ -327,14 +322,12 @@ generatedFiles: - lib/open_api_sdk/models/operations/discount.rb - lib/open_api_sdk/models/operations/event.rb - lib/open_api_sdk/models/operations/getcustomer_discount.rb - - lib/open_api_sdk/models/operations/getcustomer_interval.rb - lib/open_api_sdk/models/operations/getcustomer_link.rb - lib/open_api_sdk/models/operations/getcustomer_partner.rb - lib/open_api_sdk/models/operations/getcustomer_request.rb - lib/open_api_sdk/models/operations/getcustomer_response.rb - lib/open_api_sdk/models/operations/getcustomer_responsebody.rb - lib/open_api_sdk/models/operations/getcustomer_type.rb - - lib/open_api_sdk/models/operations/getcustomers_interval.rb - lib/open_api_sdk/models/operations/getcustomers_partner.rb - lib/open_api_sdk/models/operations/getcustomers_request.rb - lib/open_api_sdk/models/operations/getcustomers_response.rb @@ -399,7 +392,6 @@ generatedFiles: - lib/open_api_sdk/models/operations/trigger.rb - lib/open_api_sdk/models/operations/type.rb - lib/open_api_sdk/models/operations/updatecustomer_discount.rb - - lib/open_api_sdk/models/operations/updatecustomer_interval.rb - lib/open_api_sdk/models/operations/updatecustomer_link.rb - lib/open_api_sdk/models/operations/updatecustomer_partner.rb - lib/open_api_sdk/models/operations/updatecustomer_request.rb diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 9fe9d82..c632a20 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.76 + version: 0.2.2-alpha.77 author: Dub description: Ruby Client SDK Generated by Speakeasy flattenGlobalSecurity: false diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8ff0ae3..68c80bb 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.513.2 +speakeasyVersion: 1.513.4 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:ebb12473a1d5f535d42cb7892bdf1dc420d33272645008cfae0621bcd0fd1a87 - sourceBlobDigest: sha256:cce96dc2031a049b65d585a5824a37f06966c682d18c32895ae912e0343ebcb0 + sourceRevisionDigest: sha256:8fccb8fbccd16ccf78981c8ef137c5606148ffe53126cd0835cce6df5aa4524d + sourceBlobDigest: sha256:d104bb72b3055e082471994cf943071f4379d674b14d6c05a10e7fb5d30b1a56 tags: - latest - - speakeasy-sdk-regen-1741220880 + - speakeasy-sdk-regen-1741393344 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:ebb12473a1d5f535d42cb7892bdf1dc420d33272645008cfae0621bcd0fd1a87 - sourceBlobDigest: sha256:cce96dc2031a049b65d585a5824a37f06966c682d18c32895ae912e0343ebcb0 + sourceRevisionDigest: sha256:8fccb8fbccd16ccf78981c8ef137c5606148ffe53126cd0835cce6df5aa4524d + sourceBlobDigest: sha256:d104bb72b3055e082471994cf943071f4379d674b14d6c05a10e7fb5d30b1a56 codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:919d1661d14f40ebc3a6a02d2ae17967e0176356300fd3b9a9e44d02bbaf35df + codeSamplesRevisionDigest: sha256:4b4723248313865b7135eebd79d62b3fc1a12e757dc21f086b6e1818d8641a23 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 999351d..d07a4af 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.76) + dub (0.2.2.pre.alpha.77) faraday faraday-multipart rack diff --git a/RELEASES.md b/RELEASES.md index d2756f3..d81fdc2 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -908,4 +908,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.76] . ### Releases -- [Ruby Gems v0.2.2-alpha.76] https://rubygems.org/gems/dub/versions/0.2.2-alpha.76 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.76] https://rubygems.org/gems/dub/versions/0.2.2-alpha.76 - . + +## 2025-03-09 00:24:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.513.4 (2.545.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.77] . +### Releases +- [Ruby Gems v0.2.2-alpha.77] https://rubygems.org/gems/dub/versions/0.2.2-alpha.77 - . \ No newline at end of file diff --git a/docs/models/operations/createcustomerdiscount.md b/docs/models/operations/createcustomerdiscount.md index bd449db..498c1c6 100644 --- a/docs/models/operations/createcustomerdiscount.md +++ b/docs/models/operations/createcustomerdiscount.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | -| `amount` | *::Float* | :heavy_check_mark: | N/A | -| `type` | [::OpenApiSDK::Operations::CreateCustomerType](../../models/operations/createcustomertype.md) | :heavy_check_mark: | N/A | -| `duration` | *::Float* | :heavy_check_mark: | N/A | -| `interval` | [::OpenApiSDK::Operations::CreateCustomerInterval](../../models/operations/createcustomerinterval.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `amount` | *::Float* | :heavy_check_mark: | N/A | +| `type` | [::OpenApiSDK::Operations::CreateCustomerType](../../models/operations/createcustomertype.md) | :heavy_check_mark: | N/A | +| `max_duration` | *::Float* | :heavy_check_mark: | N/A | +| `coupon_id` | *::String* | :heavy_check_mark: | N/A | +| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | +| `partners_count` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createcustomerinterval.md b/docs/models/operations/createcustomerinterval.md deleted file mode 100644 index 3d5755c..0000000 --- a/docs/models/operations/createcustomerinterval.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreateCustomerInterval - - -## Values - -| Name | Value | -| ------- | ------- | -| `MONTH` | month | -| `YEAR` | year | \ No newline at end of file diff --git a/docs/models/operations/discount.md b/docs/models/operations/discount.md index 498f458..f03c59b 100644 --- a/docs/models/operations/discount.md +++ b/docs/models/operations/discount.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | -| `amount` | *::Float* | :heavy_check_mark: | N/A | -| `type` | [::OpenApiSDK::Operations::Type](../../models/operations/type.md) | :heavy_check_mark: | N/A | -| `duration` | *::Float* | :heavy_check_mark: | N/A | -| `interval` | [::OpenApiSDK::Operations::GetCustomersInterval](../../models/operations/getcustomersinterval.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `amount` | *::Float* | :heavy_check_mark: | N/A | +| `type` | [::OpenApiSDK::Operations::Type](../../models/operations/type.md) | :heavy_check_mark: | N/A | +| `max_duration` | *::Float* | :heavy_check_mark: | N/A | +| `coupon_id` | *::String* | :heavy_check_mark: | N/A | +| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | +| `partners_count` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcustomerdiscount.md b/docs/models/operations/getcustomerdiscount.md index f20b776..0e22be6 100644 --- a/docs/models/operations/getcustomerdiscount.md +++ b/docs/models/operations/getcustomerdiscount.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | -| `amount` | *::Float* | :heavy_check_mark: | N/A | -| `type` | [::OpenApiSDK::Operations::GetCustomerType](../../models/operations/getcustomertype.md) | :heavy_check_mark: | N/A | -| `duration` | *::Float* | :heavy_check_mark: | N/A | -| `interval` | [::OpenApiSDK::Operations::GetCustomerInterval](../../models/operations/getcustomerinterval.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `amount` | *::Float* | :heavy_check_mark: | N/A | +| `type` | [::OpenApiSDK::Operations::GetCustomerType](../../models/operations/getcustomertype.md) | :heavy_check_mark: | N/A | +| `max_duration` | *::Float* | :heavy_check_mark: | N/A | +| `coupon_id` | *::String* | :heavy_check_mark: | N/A | +| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | +| `partners_count` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcustomerinterval.md b/docs/models/operations/getcustomerinterval.md deleted file mode 100644 index ae51c8e..0000000 --- a/docs/models/operations/getcustomerinterval.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetCustomerInterval - - -## Values - -| Name | Value | -| ------- | ------- | -| `MONTH` | month | -| `YEAR` | year | \ No newline at end of file diff --git a/docs/models/operations/getcustomersinterval.md b/docs/models/operations/getcustomersinterval.md deleted file mode 100644 index 45c04ed..0000000 --- a/docs/models/operations/getcustomersinterval.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetCustomersInterval - - -## Values - -| Name | Value | -| ------- | ------- | -| `MONTH` | month | -| `YEAR` | year | \ No newline at end of file diff --git a/docs/models/operations/updatecustomerdiscount.md b/docs/models/operations/updatecustomerdiscount.md index 0e26e87..814524b 100644 --- a/docs/models/operations/updatecustomerdiscount.md +++ b/docs/models/operations/updatecustomerdiscount.md @@ -3,12 +3,12 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_id` | *::String* | :heavy_check_mark: | N/A | -| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | -| `amount` | *::Float* | :heavy_check_mark: | N/A | -| `type` | [::OpenApiSDK::Operations::UpdateCustomerType](../../models/operations/updatecustomertype.md) | :heavy_check_mark: | N/A | -| `duration` | *::Float* | :heavy_check_mark: | N/A | -| `interval` | [::OpenApiSDK::Operations::UpdateCustomerInterval](../../models/operations/updatecustomerinterval.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `amount` | *::Float* | :heavy_check_mark: | N/A | +| `type` | [::OpenApiSDK::Operations::UpdateCustomerType](../../models/operations/updatecustomertype.md) | :heavy_check_mark: | N/A | +| `max_duration` | *::Float* | :heavy_check_mark: | N/A | +| `coupon_id` | *::String* | :heavy_check_mark: | N/A | +| `coupon_test_id` | *::String* | :heavy_check_mark: | N/A | +| `partners_count` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatecustomerinterval.md b/docs/models/operations/updatecustomerinterval.md deleted file mode 100644 index 170345f..0000000 --- a/docs/models/operations/updatecustomerinterval.md +++ /dev/null @@ -1,9 +0,0 @@ -# UpdateCustomerInterval - - -## Values - -| Name | Value | -| ------- | ------- | -| `MONTH` | month | -| `YEAR` | year | \ No newline at end of file diff --git a/docs/models/operations/updatepartnersalerequestbody.md b/docs/models/operations/updatepartnersalerequestbody.md index 3467519..246c4c8 100644 --- a/docs/models/operations/updatepartnersalerequestbody.md +++ b/docs/models/operations/updatepartnersalerequestbody.md @@ -8,4 +8,5 @@ | `program_id` | *::String* | :heavy_check_mark: | N/A | | `invoice_id` | *::String* | :heavy_check_mark: | N/A | | `amount` | *T.nilable(::Float)* | :heavy_minus_sign: | The new absolute amount for the sale. | -| `modify_amount` | *T.nilable(::Float)* | :heavy_minus_sign: | Modify the current sale amount: use positive values to increase the amount, negative values to decrease it. | \ No newline at end of file +| `modify_amount` | *T.nilable(::Float)* | :heavy_minus_sign: | Modify the current sale amount: use positive values to increase the amount, negative values to decrease it. | +| `currency` | *T.nilable(::String)* | :heavy_minus_sign: | The currency of the sale amount to update. Accepts ISO 4217 currency codes. | \ No newline at end of file diff --git a/dub.gemspec b/dub.gemspec index ee27be9..6f329ff 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.76' + s.version = '0.2.2-alpha.77' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations.rb b/lib/open_api_sdk/models/operations.rb index cff0794..0e0e56b 100644 --- a/lib/open_api_sdk/models/operations.rb +++ b/lib/open_api_sdk/models/operations.rb @@ -98,7 +98,6 @@ module Operations autoload :Link, 'open_api_sdk/models/operations/link.rb' autoload :GetCustomersPartner, 'open_api_sdk/models/operations/getcustomers_partner.rb' autoload :Type, 'open_api_sdk/models/operations/type.rb' - autoload :GetCustomersInterval, 'open_api_sdk/models/operations/getcustomers_interval.rb' autoload :Discount, 'open_api_sdk/models/operations/discount.rb' autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb' autoload :GetCustomersResponse, 'open_api_sdk/models/operations/getcustomers_response.rb' @@ -106,7 +105,6 @@ module Operations autoload :CreateCustomerLink, 'open_api_sdk/models/operations/createcustomer_link.rb' autoload :CreateCustomerPartner, 'open_api_sdk/models/operations/createcustomer_partner.rb' autoload :CreateCustomerType, 'open_api_sdk/models/operations/createcustomer_type.rb' - autoload :CreateCustomerInterval, 'open_api_sdk/models/operations/createcustomer_interval.rb' autoload :CreateCustomerDiscount, 'open_api_sdk/models/operations/createcustomer_discount.rb' autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb' autoload :CreateCustomerResponse, 'open_api_sdk/models/operations/createcustomer_response.rb' @@ -114,7 +112,6 @@ module Operations autoload :GetCustomerLink, 'open_api_sdk/models/operations/getcustomer_link.rb' autoload :GetCustomerPartner, 'open_api_sdk/models/operations/getcustomer_partner.rb' autoload :GetCustomerType, 'open_api_sdk/models/operations/getcustomer_type.rb' - autoload :GetCustomerInterval, 'open_api_sdk/models/operations/getcustomer_interval.rb' autoload :GetCustomerDiscount, 'open_api_sdk/models/operations/getcustomer_discount.rb' autoload :GetCustomerResponseBody, 'open_api_sdk/models/operations/getcustomer_responsebody.rb' autoload :GetCustomerResponse, 'open_api_sdk/models/operations/getcustomer_response.rb' @@ -123,7 +120,6 @@ module Operations autoload :UpdateCustomerLink, 'open_api_sdk/models/operations/updatecustomer_link.rb' autoload :UpdateCustomerPartner, 'open_api_sdk/models/operations/updatecustomer_partner.rb' autoload :UpdateCustomerType, 'open_api_sdk/models/operations/updatecustomer_type.rb' - autoload :UpdateCustomerInterval, 'open_api_sdk/models/operations/updatecustomer_interval.rb' autoload :UpdateCustomerDiscount, 'open_api_sdk/models/operations/updatecustomer_discount.rb' autoload :UpdateCustomerResponseBody, 'open_api_sdk/models/operations/updatecustomer_responsebody.rb' autoload :UpdateCustomerResponse, 'open_api_sdk/models/operations/updatecustomer_response.rb' diff --git a/lib/open_api_sdk/models/operations/createcustomer_discount.rb b/lib/open_api_sdk/models/operations/createcustomer_discount.rb index 236a1e2..010b0e9 100644 --- a/lib/open_api_sdk/models/operations/createcustomer_discount.rb +++ b/lib/open_api_sdk/models/operations/createcustomer_discount.rb @@ -18,24 +18,24 @@ class CreateCustomerDiscount < ::Crystalline::FieldAugmented field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } } - field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } } - field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } - field :interval, ::OpenApiSDK::Operations::CreateCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerInterval, false) } } + field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } } field :type, ::OpenApiSDK::Operations::CreateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerType, false) } } + field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } } + - sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::CreateCustomerInterval, type: ::OpenApiSDK::Operations::CreateCustomerType).void } - def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil) + sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::CreateCustomerType, partners_count: T.nilable(::Float)).void } + def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, id: nil, max_duration: nil, type: nil, partners_count: nil) @amount = amount @coupon_id = coupon_id @coupon_test_id = coupon_test_id - @duration = duration @id = id - @interval = interval + @max_duration = max_duration @type = type + @partners_count = partners_count end end end diff --git a/lib/open_api_sdk/models/operations/createcustomer_interval.rb b/lib/open_api_sdk/models/operations/createcustomer_interval.rb deleted file mode 100644 index 13647f4..0000000 --- a/lib/open_api_sdk/models/operations/createcustomer_interval.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class CreateCustomerInterval < T::Enum - enums do - MONTH = new('month') - YEAR = new('year') - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/discount.rb b/lib/open_api_sdk/models/operations/discount.rb index 451b77a..736e377 100644 --- a/lib/open_api_sdk/models/operations/discount.rb +++ b/lib/open_api_sdk/models/operations/discount.rb @@ -18,24 +18,24 @@ class Discount < ::Crystalline::FieldAugmented field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } } - field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } } - field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } - field :interval, ::OpenApiSDK::Operations::GetCustomersInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomersInterval, false) } } + field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } } field :type, ::OpenApiSDK::Operations::Type, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Type, false) } } + field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } } + - sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::GetCustomersInterval, type: ::OpenApiSDK::Operations::Type).void } - def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil) + sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::Type, partners_count: T.nilable(::Float)).void } + def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, id: nil, max_duration: nil, type: nil, partners_count: nil) @amount = amount @coupon_id = coupon_id @coupon_test_id = coupon_test_id - @duration = duration @id = id - @interval = interval + @max_duration = max_duration @type = type + @partners_count = partners_count end end end diff --git a/lib/open_api_sdk/models/operations/getcustomer_discount.rb b/lib/open_api_sdk/models/operations/getcustomer_discount.rb index 38fae49..d4ef26e 100644 --- a/lib/open_api_sdk/models/operations/getcustomer_discount.rb +++ b/lib/open_api_sdk/models/operations/getcustomer_discount.rb @@ -18,24 +18,24 @@ class GetCustomerDiscount < ::Crystalline::FieldAugmented field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } } - field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } } - field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } - field :interval, ::OpenApiSDK::Operations::GetCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerInterval, false) } } + field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } } field :type, ::OpenApiSDK::Operations::GetCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerType, false) } } + field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } } + - sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::GetCustomerInterval, type: ::OpenApiSDK::Operations::GetCustomerType).void } - def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil) + sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::GetCustomerType, partners_count: T.nilable(::Float)).void } + def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, id: nil, max_duration: nil, type: nil, partners_count: nil) @amount = amount @coupon_id = coupon_id @coupon_test_id = coupon_test_id - @duration = duration @id = id - @interval = interval + @max_duration = max_duration @type = type + @partners_count = partners_count end end end diff --git a/lib/open_api_sdk/models/operations/getcustomer_interval.rb b/lib/open_api_sdk/models/operations/getcustomer_interval.rb deleted file mode 100644 index 2d213cf..0000000 --- a/lib/open_api_sdk/models/operations/getcustomer_interval.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class GetCustomerInterval < T::Enum - enums do - MONTH = new('month') - YEAR = new('year') - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/getcustomers_interval.rb b/lib/open_api_sdk/models/operations/getcustomers_interval.rb deleted file mode 100644 index 841b26e..0000000 --- a/lib/open_api_sdk/models/operations/getcustomers_interval.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class GetCustomersInterval < T::Enum - enums do - MONTH = new('month') - YEAR = new('year') - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/updatecustomer_discount.rb b/lib/open_api_sdk/models/operations/updatecustomer_discount.rb index 3f983b3..77612d7 100644 --- a/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +++ b/lib/open_api_sdk/models/operations/updatecustomer_discount.rb @@ -18,24 +18,24 @@ class UpdateCustomerDiscount < ::Crystalline::FieldAugmented field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } } - field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } } - field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } - field :interval, ::OpenApiSDK::Operations::UpdateCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCustomerInterval, false) } } + field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } } field :type, ::OpenApiSDK::Operations::UpdateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCustomerType, false) } } + field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } } + - sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::UpdateCustomerInterval, type: ::OpenApiSDK::Operations::UpdateCustomerType).void } - def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil) + sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::UpdateCustomerType, partners_count: T.nilable(::Float)).void } + def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, id: nil, max_duration: nil, type: nil, partners_count: nil) @amount = amount @coupon_id = coupon_id @coupon_test_id = coupon_test_id - @duration = duration @id = id - @interval = interval + @max_duration = max_duration @type = type + @partners_count = partners_count end end end diff --git a/lib/open_api_sdk/models/operations/updatecustomer_interval.rb b/lib/open_api_sdk/models/operations/updatecustomer_interval.rb deleted file mode 100644 index 5016674..0000000 --- a/lib/open_api_sdk/models/operations/updatecustomer_interval.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class UpdateCustomerInterval < T::Enum - enums do - MONTH = new('month') - YEAR = new('year') - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb b/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb index 3419e23..8777706 100644 --- a/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb +++ b/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb @@ -17,15 +17,18 @@ class UpdatePartnerSaleRequestBody < ::Crystalline::FieldAugmented field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } # The new absolute amount for the sale. field :amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } } + # The currency of the sale amount to update. Accepts ISO 4217 currency codes. + field :currency, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } } # Modify the current sale amount: use positive values to increase the amount, negative values to decrease it. field :modify_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('modifyAmount') } } - sig { params(invoice_id: ::String, program_id: ::String, amount: T.nilable(::Float), modify_amount: T.nilable(::Float)).void } - def initialize(invoice_id: nil, program_id: nil, amount: nil, modify_amount: nil) + sig { params(invoice_id: ::String, program_id: ::String, amount: T.nilable(::Float), currency: T.nilable(::String), modify_amount: T.nilable(::Float)).void } + def initialize(invoice_id: nil, program_id: nil, amount: nil, currency: nil, modify_amount: nil) @invoice_id = invoice_id @program_id = program_id @amount = amount + @currency = currency @modify_amount = modify_amount end end diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 49bb85d..402e6af 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -43,9 +43,9 @@ def initialize(client, security, security_source, server_url, server_idx) end @language = 'ruby' @openapi_doc_version = '0.0.1' - @sdk_version = '0.2.2-alpha.76' - @gen_version = '2.545.2' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.76 2.545.2 0.0.1 dub' + @sdk_version = '0.2.2-alpha.77' + @gen_version = '2.545.4' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.77 2.545.4 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) }