dub 0.2.2.pre.alpha.123 → 0.2.2.pre.alpha.127
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/operations/country.rb +1 -1
- data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +11 -14
- data/lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb +2 -5
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +1 -1
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb +2 -5
- data/lib/open_api_sdk/models/operations/listevents_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/partner.rb +11 -11
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +5 -5
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +2 -5
- data/lib/open_api_sdk/models/shared/countrycode.rb +1 -1
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +5 -2
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- 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: 2f539614cf887ac028eb58892b3013d0d575f6eb784a23f9172301c0749a2702
|
4
|
+
data.tar.gz: 582db6856e60b851fe0a7e94f3a6cb3b6edc05b9f7c11ea9d71635f905020343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d02fd02a59f577ad724748af0bd1595260ee847303caded955c8f5a729c41c5c926ad56d8fea7e21d4997f26b4723b816119d33942dea48fefd415bd08706f3b
|
7
|
+
data.tar.gz: d4e8ad1be901b06d9a4274ae3049d57182cdbcb6f16017bc71ce7d425b66814d042fb457244bef341807472e85ada011c94a2647e969abd9a0400d63ca7620ae
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Country -
|
10
|
+
# Country - The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
11
11
|
class Country < T::Enum
|
12
12
|
enums do
|
13
13
|
AF = new('AF')
|
@@ -11,35 +11,32 @@ module OpenApiSDK
|
|
11
11
|
class CreatePartnerRequestBody < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
#
|
14
|
+
# The partner's email address. Partners will be able to claim their profile by signing up at `partners.dub.co` with this email.
|
15
15
|
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
-
#
|
17
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
18
|
-
# The ID of the program to create a partner for.
|
19
|
-
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
20
|
-
# Country where the partner is based.
|
16
|
+
# The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
21
17
|
field :country, T.nilable(::OpenApiSDK::Operations::Country), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Country, true) } }
|
22
|
-
# A brief description of the partner and their background.
|
18
|
+
# A brief description of the partner and their background. Max 5,000 characters.
|
23
19
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
24
|
-
#
|
20
|
+
# The partner's avatar image. If not provided, a default avatar will be used.
|
25
21
|
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
26
22
|
# Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
27
23
|
field :link_props, T.nilable(::OpenApiSDK::Operations::LinkProps), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkProps') } }
|
28
|
-
# The
|
24
|
+
# The partner's full name. If undefined, the partner's email will be used in lieu of their name (e.g. `john@acme.com`)
|
25
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
26
|
+
# The partner's unique ID in your system. Useful for retrieving the partner's links and stats later on. If not provided, the partner will be created as a standalone partner.
|
29
27
|
field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
30
|
-
#
|
28
|
+
# The partner's unique username in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
|
31
29
|
field :username, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('username') } }
|
32
30
|
|
33
31
|
|
34
|
-
sig { params(email: ::String,
|
35
|
-
def initialize(email: nil,
|
32
|
+
sig { params(email: ::String, country: T.nilable(::OpenApiSDK::Operations::Country), description: T.nilable(::String), image: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::LinkProps), name: T.nilable(::String), tenant_id: T.nilable(::String), username: T.nilable(::String)).void }
|
33
|
+
def initialize(email: nil, country: nil, description: nil, image: nil, link_props: nil, name: nil, tenant_id: nil, username: nil)
|
36
34
|
@email = email
|
37
|
-
@name = name
|
38
|
-
@program_id = program_id
|
39
35
|
@country = country
|
40
36
|
@description = description
|
41
37
|
@image = image
|
42
38
|
@link_props = link_props
|
39
|
+
@name = name
|
43
40
|
@tenant_id = tenant_id
|
44
41
|
@username = username
|
45
42
|
end
|
@@ -11,8 +11,6 @@ module OpenApiSDK
|
|
11
11
|
class CreatePartnerLinkRequestBody < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The ID of the program that the partner is enrolled in.
|
15
|
-
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
16
14
|
# The comments for the short link.
|
17
15
|
field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
18
16
|
# The short link slug. If not provided, a random 7-character slug will be generated.
|
@@ -27,9 +25,8 @@ module OpenApiSDK
|
|
27
25
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
28
26
|
|
29
27
|
|
30
|
-
sig { params(
|
31
|
-
def initialize(
|
32
|
-
@program_id = program_id
|
28
|
+
sig { params(comments: T.nilable(::String), key: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::CreatePartnerLinkLinkProps), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), url: T.nilable(::String)).void }
|
29
|
+
def initialize(comments: nil, key: nil, link_props: nil, partner_id: nil, tenant_id: nil, url: nil)
|
33
30
|
@comments = comments
|
34
31
|
@key = key
|
35
32
|
@link_props = link_props
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# CreateReferralsEmbedTokenCountry -
|
10
|
+
# CreateReferralsEmbedTokenCountry - The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
11
11
|
class CreateReferralsEmbedTokenCountry < T::Enum
|
12
12
|
enums do
|
13
13
|
AF = new('AF')
|
@@ -12,8 +12,6 @@ module OpenApiSDK
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
16
|
-
|
17
15
|
field :partner, T.nilable(::OpenApiSDK::Operations::Partner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
18
16
|
|
19
17
|
field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
|
@@ -21,9 +19,8 @@ module OpenApiSDK
|
|
21
19
|
field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
22
20
|
|
23
21
|
|
24
|
-
sig { params(
|
25
|
-
def initialize(
|
26
|
-
@program_id = program_id
|
22
|
+
sig { params(partner: T.nilable(::OpenApiSDK::Operations::Partner), partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
|
23
|
+
def initialize(partner: nil, partner_id: nil, tenant_id: nil)
|
27
24
|
@partner = partner
|
28
25
|
@partner_id = partner_id
|
29
26
|
@tenant_id = tenant_id
|
@@ -17,7 +17,7 @@ module OpenApiSDK
|
|
17
17
|
field :city, T.nilable(::String), { 'query_param': { 'field_name': 'city', 'style': 'form', 'explode': true } }
|
18
18
|
# The continent to retrieve analytics for.
|
19
19
|
field :continent, T.nilable(::OpenApiSDK::Shared::ContinentCode), { 'query_param': { 'field_name': 'continent', 'style': 'form', 'explode': true } }
|
20
|
-
# The country to retrieve analytics for.
|
20
|
+
# The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
21
21
|
field :country, T.nilable(::OpenApiSDK::Shared::CountryCode), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
22
22
|
# The ID of the customer to retrieve analytics for.
|
23
23
|
field :customer_id, T.nilable(::String), { 'query_param': { 'field_name': 'customerId', 'style': 'form', 'explode': true } }
|
@@ -11,32 +11,32 @@ module OpenApiSDK
|
|
11
11
|
class Partner < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
#
|
14
|
+
# The partner's email address. Partners will be able to claim their profile by signing up at `partners.dub.co` with this email.
|
15
15
|
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
-
#
|
17
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
18
|
-
# Country where the partner is based.
|
16
|
+
# The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
19
17
|
field :country, T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry, true) } }
|
20
|
-
# A brief description of the partner and their background.
|
18
|
+
# A brief description of the partner and their background. Max 5,000 characters.
|
21
19
|
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
22
|
-
#
|
20
|
+
# The partner's avatar image. If not provided, a default avatar will be used.
|
23
21
|
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
24
22
|
# Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
|
25
23
|
field :link_props, T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenLinkProps), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkProps') } }
|
26
|
-
# The
|
24
|
+
# The partner's full name. If undefined, the partner's email will be used in lieu of their name (e.g. `john@acme.com`)
|
25
|
+
field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
26
|
+
# The partner's unique ID in your system. Useful for retrieving the partner's links and stats later on. If not provided, the partner will be created as a standalone partner.
|
27
27
|
field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
28
|
-
#
|
28
|
+
# The partner's unique username in your system (max 100 characters). This will be used to create a short link for the partner using your program's default domain. If not provided, Dub will try to generate a username from the partner's name or email.
|
29
29
|
field :username, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('username') } }
|
30
30
|
|
31
31
|
|
32
|
-
sig { params(email: ::String,
|
33
|
-
def initialize(email: nil,
|
32
|
+
sig { params(email: ::String, country: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenCountry), description: T.nilable(::String), image: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::CreateReferralsEmbedTokenLinkProps), name: T.nilable(::String), tenant_id: T.nilable(::String), username: T.nilable(::String)).void }
|
33
|
+
def initialize(email: nil, country: nil, description: nil, image: nil, link_props: nil, name: nil, tenant_id: nil, username: nil)
|
34
34
|
@email = email
|
35
|
-
@name = name
|
36
35
|
@country = country
|
37
36
|
@description = description
|
38
37
|
@image = image
|
39
38
|
@link_props = link_props
|
39
|
+
@name = name
|
40
40
|
@tenant_id = tenant_id
|
41
41
|
@username = username
|
42
42
|
end
|
@@ -17,7 +17,7 @@ module OpenApiSDK
|
|
17
17
|
field :city, T.nilable(::String), { 'query_param': { 'field_name': 'city', 'style': 'form', 'explode': true } }
|
18
18
|
# The continent to retrieve analytics for.
|
19
19
|
field :continent, T.nilable(::OpenApiSDK::Shared::ContinentCode), { 'query_param': { 'field_name': 'continent', 'style': 'form', 'explode': true } }
|
20
|
-
# The country to retrieve analytics for.
|
20
|
+
# The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
21
21
|
field :country, T.nilable(::OpenApiSDK::Shared::CountryCode), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
22
22
|
# The ID of the customer to retrieve analytics for.
|
23
23
|
field :customer_id, T.nilable(::String), { 'query_param': { 'field_name': 'customerId', 'style': 'form', 'explode': true } }
|
@@ -12,16 +12,13 @@ module OpenApiSDK
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :program_id, ::String, { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } }
|
16
|
-
|
17
15
|
field :partner_id, T.nilable(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@program_id = program_id
|
20
|
+
sig { params(partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
|
21
|
+
def initialize(partner_id: nil, tenant_id: nil)
|
25
22
|
@partner_id = partner_id
|
26
23
|
@tenant_id = tenant_id
|
27
24
|
end
|
@@ -11,8 +11,6 @@ module OpenApiSDK
|
|
11
11
|
class RetrievePartnerAnalyticsRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The ID of the program to retrieve analytics for.
|
15
|
-
field :program_id, ::String, { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } }
|
16
14
|
# The end date and time when to retrieve analytics from. If not provided, defaults to the current date. If set along with `start`, takes precedence over `interval`.
|
17
15
|
field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } }
|
18
16
|
# The parameter to group the analytics data points by. Defaults to `count` if undefined.
|
@@ -29,9 +27,8 @@ module OpenApiSDK
|
|
29
27
|
field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } }
|
30
28
|
|
31
29
|
|
32
|
-
sig { params(
|
33
|
-
def initialize(
|
34
|
-
@program_id = program_id
|
30
|
+
sig { params(end_: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::QueryParamGroupBy), interval: T.nilable(::OpenApiSDK::Operations::RetrievePartnerAnalyticsQueryParamInterval), partner_id: T.nilable(::String), start: T.nilable(::String), tenant_id: T.nilable(::String), timezone: T.nilable(::String)).void }
|
31
|
+
def initialize(end_: nil, group_by: nil, interval: nil, partner_id: nil, start: nil, tenant_id: nil, timezone: nil)
|
35
32
|
@end_ = end_
|
36
33
|
@group_by = group_by
|
37
34
|
@interval = interval
|
@@ -11,21 +11,21 @@ module OpenApiSDK
|
|
11
11
|
class TrackSaleRequestBody < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The amount of the sale in cents.
|
14
|
+
# 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
|
15
15
|
field :amount, ::Integer, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
16
|
# The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer.
|
17
17
|
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
18
18
|
# The payment processor via which the sale was made.
|
19
19
|
field :payment_processor, ::OpenApiSDK::Operations::PaymentProcessor, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentProcessor'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::PaymentProcessor, false) } }
|
20
|
-
# The currency of the sale. Accepts ISO 4217 currency codes.
|
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
|
21
21
|
field :currency, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } }
|
22
|
-
# The name of the sale event.
|
22
|
+
# The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`.
|
23
23
|
field :event_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('eventName') } }
|
24
24
|
# 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.
|
25
25
|
field :invoice_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
26
|
-
# 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, which is the default behavior).
|
26
|
+
# 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).
|
27
27
|
field :lead_event_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leadEventName') } }
|
28
|
-
# Additional metadata to be stored with the sale event. Max 10,000 characters.
|
28
|
+
# Additional metadata to be stored with the sale event. Max 10,000 characters when stringified.
|
29
29
|
field :metadata, T.nilable(T::Hash[Symbol, ::Object]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('metadata') } }
|
30
30
|
|
31
31
|
|
@@ -11,8 +11,6 @@ module OpenApiSDK
|
|
11
11
|
class UpsertPartnerLinkRequestBody < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The ID of the program that the partner is enrolled in.
|
15
|
-
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
16
14
|
# The comments for the short link.
|
17
15
|
field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
18
16
|
# The short link slug. If not provided, a random 7-character slug will be generated.
|
@@ -27,9 +25,8 @@ module OpenApiSDK
|
|
27
25
|
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
28
26
|
|
29
27
|
|
30
|
-
sig { params(
|
31
|
-
def initialize(
|
32
|
-
@program_id = program_id
|
28
|
+
sig { params(comments: T.nilable(::String), key: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::UpsertPartnerLinkLinkProps), partner_id: T.nilable(::String), tenant_id: T.nilable(::String), url: T.nilable(::String)).void }
|
29
|
+
def initialize(comments: nil, key: nil, link_props: nil, partner_id: nil, tenant_id: nil, url: nil)
|
33
30
|
@comments = comments
|
34
31
|
@key = key
|
35
32
|
@link_props = link_props
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
# CountryCode - The country to retrieve analytics for.
|
10
|
+
# CountryCode - The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
11
11
|
class CountryCode < T::Enum
|
12
12
|
enums do
|
13
13
|
AF = new('AF')
|
@@ -49,6 +49,8 @@ module OpenApiSDK
|
|
49
49
|
field :partners_enabled, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersEnabled') } }
|
50
50
|
# The date and time when the payment failed for the workspace.
|
51
51
|
field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } }
|
52
|
+
# The processing fee (in decimals) for partner payouts. For card payments, an additional 0.03 is added to the fee. Learn more: https://d.to/payouts
|
53
|
+
field :payout_fee, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutFee') } }
|
52
54
|
# The max dollar amount of partner payouts that can be processed within a billing cycle (in cents).
|
53
55
|
field :payouts_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsLimit') } }
|
54
56
|
# The dollar amount of partner payouts processed in the current billing cycle (in cents).
|
@@ -79,8 +81,8 @@ module OpenApiSDK
|
|
79
81
|
field :flags, T.nilable(T::Hash[Symbol, T::Boolean]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('flags') } }
|
80
82
|
|
81
83
|
|
82
|
-
sig { params(ai_limit: ::Float, ai_usage: ::Float, allowed_hostnames: T::Array[::String], 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, folders_limit: ::Float, folders_usage: ::Float, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partners_enabled: T::Boolean, payment_failed_at: ::String, payouts_limit: ::Float, payouts_usage: ::Float, plan: ::OpenApiSDK::Shared::Plan, slug: ::String, store: T::Hash[Symbol, ::Object], stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, total_links: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void }
|
83
|
-
def initialize(ai_limit: nil, ai_usage: nil, allowed_hostnames: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, folders_limit: nil, folders_usage: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partners_enabled: nil, payment_failed_at: nil, payouts_limit: nil, payouts_usage: nil, plan: nil, slug: nil, store: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, total_links: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil)
|
84
|
+
sig { params(ai_limit: ::Float, ai_usage: ::Float, allowed_hostnames: T::Array[::String], 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, folders_limit: ::Float, folders_usage: ::Float, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partners_enabled: T::Boolean, payment_failed_at: ::String, payout_fee: ::Float, payouts_limit: ::Float, payouts_usage: ::Float, plan: ::OpenApiSDK::Shared::Plan, slug: ::String, store: T::Hash[Symbol, ::Object], stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, total_links: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void }
|
85
|
+
def initialize(ai_limit: nil, ai_usage: nil, allowed_hostnames: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, folders_limit: nil, folders_usage: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partners_enabled: nil, payment_failed_at: nil, payout_fee: nil, payouts_limit: nil, payouts_usage: nil, plan: nil, slug: nil, store: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, total_links: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil)
|
84
86
|
@ai_limit = ai_limit
|
85
87
|
@ai_usage = ai_usage
|
86
88
|
@allowed_hostnames = allowed_hostnames
|
@@ -100,6 +102,7 @@ module OpenApiSDK
|
|
100
102
|
@name = name
|
101
103
|
@partners_enabled = partners_enabled
|
102
104
|
@payment_failed_at = payment_failed_at
|
105
|
+
@payout_fee = payout_fee
|
103
106
|
@payouts_limit = payouts_limit
|
104
107
|
@payouts_usage = payouts_usage
|
105
108
|
@plan = plan
|
@@ -61,9 +61,9 @@ module OpenApiSDK
|
|
61
61
|
end
|
62
62
|
@language = 'ruby'
|
63
63
|
@openapi_doc_version = '0.0.1'
|
64
|
-
@sdk_version = '0.2.2-alpha.
|
64
|
+
@sdk_version = '0.2.2-alpha.127'
|
65
65
|
@gen_version = '2.563.0'
|
66
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
66
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.127 2.563.0 0.0.1 dub'
|
67
67
|
end
|
68
68
|
|
69
69
|
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.2.2.pre.alpha.
|
4
|
+
version: 0.2.2.pre.alpha.127
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|