dub 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/models/errors/badrequest.rb +1 -1
- data/lib/open_api_sdk/models/errors/conflict.rb +1 -1
- data/lib/open_api_sdk/models/errors/forbidden.rb +1 -1
- data/lib/open_api_sdk/models/errors/internalservererror.rb +1 -1
- data/lib/open_api_sdk/models/errors/inviteexpired.rb +1 -1
- data/lib/open_api_sdk/models/errors/notfound.rb +1 -1
- data/lib/open_api_sdk/models/errors/ratelimitexceeded.rb +1 -1
- data/lib/open_api_sdk/models/errors/unauthorized.rb +1 -1
- data/lib/open_api_sdk/models/errors/unprocessableentity.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +6 -6
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rbi +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +2 -6
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rbi +0 -2
- data/lib/open_api_sdk/models/shared/sale.rb +3 -3
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e00c709c56a771100baa349a7e99ef991c1e6b1e90f3211edf3acf98a900675b
|
4
|
+
data.tar.gz: 8db579a7055599565f267b330b1aa0631e175e80a4c768c6e8ef21b309136c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3168bf22e639ce8bcedd76fbb22128c48e415160df8eb07eaadce064bad1c3a91a4aa28f3124fb13a5870fb8184e70f957ffaf3be66e5332d3967bcf514a50e0
|
7
|
+
data.tar.gz: 921441987bf659883d3437d3392aaa21af5f4f7e05c634231e6fb66a86a9ebc7e8173bb8ac6fb10b7c4b330343333ce50b909bfa1396cbb858731bc9fb5bce0e
|
@@ -9,7 +9,7 @@ module OpenApiSDK
|
|
9
9
|
module Errors
|
10
10
|
|
11
11
|
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
12
|
-
class BadRequest
|
12
|
+
class BadRequest < StandardError
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -9,7 +9,7 @@ module OpenApiSDK
|
|
9
9
|
module Errors
|
10
10
|
|
11
11
|
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
12
|
-
class Forbidden
|
12
|
+
class Forbidden < StandardError
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -9,7 +9,7 @@ module OpenApiSDK
|
|
9
9
|
module Errors
|
10
10
|
|
11
11
|
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
12
|
-
class InviteExpired
|
12
|
+
class InviteExpired < StandardError
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -9,7 +9,7 @@ module OpenApiSDK
|
|
9
9
|
module Errors
|
10
10
|
|
11
11
|
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
12
|
-
class Unauthorized
|
12
|
+
class Unauthorized < StandardError
|
13
13
|
extend T::Sig
|
14
14
|
include Crystalline::MetadataFields
|
15
15
|
|
@@ -17,12 +17,12 @@ module OpenApiSDK
|
|
17
17
|
field :customer_external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerExternalId'), required: true } }
|
18
18
|
# The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency
|
19
19
|
field :amount, ::Integer, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount'), required: true } }
|
20
|
-
# The payment processor via which the sale was made.
|
21
|
-
field :payment_processor, Models::Operations::PaymentProcessor, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'), required: true, 'decoder': Utils.enum_from_string(Models::Operations::PaymentProcessor, false) } }
|
22
20
|
# The currency of the sale. Accepts ISO 4217 currency codes. Sales will be automatically converted and stored as USD at the latest exchange rates. Learn more: https://d.to/currency
|
23
21
|
field :currency, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } }
|
24
22
|
# The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`.
|
25
23
|
field :event_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('eventName') } }
|
24
|
+
# The payment processor via which the sale was made.
|
25
|
+
field :payment_processor, Crystalline::Nilable.new(Models::Operations::PaymentProcessor), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'), 'decoder': Utils.enum_from_string(Models::Operations::PaymentProcessor, true) } }
|
26
26
|
# Additional metadata to be stored with the sale event. Max 10,000 characters when stringified.
|
27
27
|
field :metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }
|
28
28
|
# The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID.
|
@@ -30,13 +30,13 @@ module OpenApiSDK
|
|
30
30
|
# The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior).
|
31
31
|
field :lead_event_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leadEventName') } }
|
32
32
|
|
33
|
-
sig { params(customer_external_id: ::String, amount: ::Integer,
|
34
|
-
def initialize(customer_external_id:, amount:,
|
33
|
+
sig { params(customer_external_id: ::String, amount: ::Integer, currency: T.nilable(::String), event_name: T.nilable(::String), payment_processor: T.nilable(Models::Operations::PaymentProcessor), metadata: T.nilable(T::Hash[Symbol, ::Object]), invoice_id: T.nilable(::String), lead_event_name: T.nilable(::String)).void }
|
34
|
+
def initialize(customer_external_id:, amount:, currency: 'usd', event_name: 'Purchase', payment_processor: Models::Operations::PaymentProcessor::CUSTOM, metadata: nil, invoice_id: nil, lead_event_name: nil)
|
35
35
|
@customer_external_id = customer_external_id
|
36
36
|
@amount = amount
|
37
|
-
@payment_processor = payment_processor
|
38
37
|
@currency = currency
|
39
38
|
@event_name = event_name
|
39
|
+
@payment_processor = payment_processor
|
40
40
|
@metadata = metadata
|
41
41
|
@invoice_id = invoice_id
|
42
42
|
@lead_event_name = lead_event_name
|
@@ -47,9 +47,9 @@ module OpenApiSDK
|
|
47
47
|
return false unless other.is_a? self.class
|
48
48
|
return false unless @customer_external_id == other.customer_external_id
|
49
49
|
return false unless @amount == other.amount
|
50
|
-
return false unless @payment_processor == other.payment_processor
|
51
50
|
return false unless @currency == other.currency
|
52
51
|
return false unless @event_name == other.event_name
|
52
|
+
return false unless @payment_processor == other.payment_processor
|
53
53
|
return false unless @metadata == other.metadata
|
54
54
|
return false unless @invoice_id == other.invoice_id
|
55
55
|
return false unless @lead_event_name == other.lead_event_name
|
@@ -12,12 +12,12 @@ class OpenApiSDK::Models::Operations::TrackSaleRequestBody
|
|
12
12
|
def customer_external_id=(str_); end
|
13
13
|
def amount(); end
|
14
14
|
def amount=(str_); end
|
15
|
-
def payment_processor(); end
|
16
|
-
def payment_processor=(str_); end
|
17
15
|
def currency(); end
|
18
16
|
def currency=(str_); end
|
19
17
|
def event_name(); end
|
20
18
|
def event_name=(str_); end
|
19
|
+
def payment_processor(); end
|
20
|
+
def payment_processor=(str_); end
|
21
21
|
def metadata(); end
|
22
22
|
def metadata=(str_); end
|
23
23
|
def invoice_id(); end
|
@@ -20,16 +20,13 @@ module OpenApiSDK
|
|
20
20
|
|
21
21
|
field :conversion_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('conversionEnabled') } }
|
22
22
|
|
23
|
-
field :allowed_hostnames, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('allowedHostnames') } }
|
24
|
-
|
25
23
|
field :logo, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
|
26
24
|
|
27
|
-
sig { params(name: T.nilable(::String), slug: T.nilable(::String), conversion_enabled: T.nilable(T::Boolean),
|
28
|
-
def initialize(name: nil, slug: nil, conversion_enabled: nil,
|
25
|
+
sig { params(name: T.nilable(::String), slug: T.nilable(::String), conversion_enabled: T.nilable(T::Boolean), logo: T.nilable(::String)).void }
|
26
|
+
def initialize(name: nil, slug: nil, conversion_enabled: nil, logo: nil)
|
29
27
|
@name = name
|
30
28
|
@slug = slug
|
31
29
|
@conversion_enabled = conversion_enabled
|
32
|
-
@allowed_hostnames = allowed_hostnames
|
33
30
|
@logo = logo
|
34
31
|
end
|
35
32
|
|
@@ -39,7 +36,6 @@ module OpenApiSDK
|
|
39
36
|
return false unless @name == other.name
|
40
37
|
return false unless @slug == other.slug
|
41
38
|
return false unless @conversion_enabled == other.conversion_enabled
|
42
|
-
return false unless @allowed_hostnames == other.allowed_hostnames
|
43
39
|
return false unless @logo == other.logo
|
44
40
|
true
|
45
41
|
end
|
@@ -14,8 +14,6 @@ class OpenApiSDK::Models::Operations::UpdateWorkspaceRequestBody
|
|
14
14
|
def slug=(str_); end
|
15
15
|
def conversion_enabled(); end
|
16
16
|
def conversion_enabled=(str_); end
|
17
|
-
def allowed_hostnames(); end
|
18
|
-
def allowed_hostnames=(str_); end
|
19
17
|
def logo(); end
|
20
18
|
def logo=(str_); end
|
21
19
|
end
|
@@ -16,12 +16,12 @@ module OpenApiSDK
|
|
16
16
|
# The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency
|
17
17
|
field :amount, ::Integer, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount'), required: true } }
|
18
18
|
# The payment processor via which the sale was made.
|
19
|
-
field :payment_processor, Models::Shared::PaymentProcessor, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'),
|
19
|
+
field :payment_processor, Crystalline::Nilable.new(Models::Shared::PaymentProcessor), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'), 'decoder': Utils.enum_from_string(Models::Shared::PaymentProcessor, true) } }
|
20
20
|
# The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID.
|
21
21
|
field :invoice_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
22
22
|
|
23
|
-
sig { params(amount: ::Integer, payment_processor: Models::Shared::PaymentProcessor, invoice_id: T.nilable(::String)).void }
|
24
|
-
def initialize(amount:, payment_processor
|
23
|
+
sig { params(amount: ::Integer, payment_processor: T.nilable(Models::Shared::PaymentProcessor), invoice_id: T.nilable(::String)).void }
|
24
|
+
def initialize(amount:, payment_processor: Models::Shared::PaymentProcessor::CUSTOM, invoice_id: nil)
|
25
25
|
@amount = amount
|
26
26
|
@payment_processor = payment_processor
|
27
27
|
@invoice_id = invoice_id
|
@@ -89,9 +89,9 @@ module OpenApiSDK
|
|
89
89
|
end
|
90
90
|
@language = 'ruby'
|
91
91
|
@openapi_doc_version = '0.0.1'
|
92
|
-
@sdk_version = '0.10.
|
93
|
-
@gen_version = '2.
|
94
|
-
@user_agent = 'speakeasy-sdk/ruby 0.10.
|
92
|
+
@sdk_version = '0.10.1'
|
93
|
+
@gen_version = '2.687.1'
|
94
|
+
@user_agent = 'speakeasy-sdk/ruby 0.10.1 2.687.1 0.0.1 dub'
|
95
95
|
end
|
96
96
|
|
97
97
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|