dub 0.2.2.pre.alpha.95 → 0.2.2.pre.alpha.97
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/createcustomer_link.rb +5 -2
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +5 -2
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations/getcustomers_link.rb +5 -2
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_request.rb +14 -2
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +5 -2
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations.rb +2 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c10e76d036a2d60624dcff35dc6809d51ca32336b23cd93db6fc125bca4f2d96
|
4
|
+
data.tar.gz: ed2c58377588a69081fa97e3729ddc6bfbdd20fa9facacd2f758734c895c75c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e69f6f1941efe0ee7aaa54adcccd31dce8e5f3de8332ce4cabdf7343c79e84785c3d502fcae8054ee4f6bf0dff77fb7e0ad5aaf34bf1f19648cfeff69ed662e
|
7
|
+
data.tar.gz: 0db66d5d74aa0105a83d8e63b4d689269bb1d4c92df80b28dad39852f351a6c8370622a5a6d1f7c98adc97f4b3e3ee3f17b5921f58a9d8ea3bdd7ceecf23014b
|
@@ -21,15 +21,18 @@ module OpenApiSDK
|
|
21
21
|
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
22
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
23
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
# The destination URL of the short link.
|
25
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
24
26
|
|
25
27
|
|
26
|
-
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
|
27
|
-
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
|
28
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String, url: ::String).void }
|
29
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil, url: nil)
|
28
30
|
@domain = domain
|
29
31
|
@id = id
|
30
32
|
@key = key
|
31
33
|
@program_id = program_id
|
32
34
|
@short_link = short_link
|
35
|
+
@url = url
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -33,10 +33,14 @@ module OpenApiSDK
|
|
33
33
|
field :partner, T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
34
|
|
35
35
|
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
36
40
|
|
37
41
|
|
38
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::CreateCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), program_id: T.nilable(::String)).void }
|
39
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil)
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::CreateCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
40
44
|
@created_at = created_at
|
41
45
|
@external_id = external_id
|
42
46
|
@id = id
|
@@ -48,6 +52,8 @@ module OpenApiSDK
|
|
48
52
|
@link = link
|
49
53
|
@partner = partner
|
50
54
|
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
@@ -21,15 +21,18 @@ module OpenApiSDK
|
|
21
21
|
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
22
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
23
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
# The destination URL of the short link.
|
25
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
24
26
|
|
25
27
|
|
26
|
-
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
|
27
|
-
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
|
28
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String, url: ::String).void }
|
29
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil, url: nil)
|
28
30
|
@domain = domain
|
29
31
|
@id = id
|
30
32
|
@key = key
|
31
33
|
@program_id = program_id
|
32
34
|
@short_link = short_link
|
35
|
+
@url = url
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -33,10 +33,14 @@ module OpenApiSDK
|
|
33
33
|
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
34
|
|
35
35
|
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
36
40
|
|
37
41
|
|
38
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::GetCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), program_id: T.nilable(::String)).void }
|
39
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil)
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::GetCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
40
44
|
@created_at = created_at
|
41
45
|
@external_id = external_id
|
42
46
|
@id = id
|
@@ -48,6 +52,8 @@ module OpenApiSDK
|
|
48
52
|
@link = link
|
49
53
|
@partner = partner
|
50
54
|
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
@@ -21,15 +21,18 @@ module OpenApiSDK
|
|
21
21
|
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
22
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
23
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
# The destination URL of the short link.
|
25
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
24
26
|
|
25
27
|
|
26
|
-
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
|
27
|
-
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
|
28
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String, url: ::String).void }
|
29
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil, url: nil)
|
28
30
|
@domain = domain
|
29
31
|
@id = id
|
30
32
|
@key = key
|
31
33
|
@program_id = program_id
|
32
34
|
@short_link = short_link
|
35
|
+
@url = url
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# GetCustomersQueryParamSortBy - The field to sort the customers by. The default is `createdAt`.
|
11
|
+
class GetCustomersQueryParamSortBy < T::Enum
|
12
|
+
enums do
|
13
|
+
CREATED_AT = new('createdAt')
|
14
|
+
SALE_AMOUNT = new('saleAmount')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# GetCustomersQueryParamSortOrder - The sort order. The default is `desc`.
|
11
|
+
class GetCustomersQueryParamSortOrder < T::Enum
|
12
|
+
enums do
|
13
|
+
ASC = new('asc')
|
14
|
+
DESC = new('desc')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -11,28 +11,40 @@ module OpenApiSDK
|
|
11
11
|
class GetCustomersRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
+
# A filter on the list based on the customer's `country` field.
|
15
|
+
field :country, T.nilable(::String), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
14
16
|
# A case-sensitive filter on the list based on the customer's `email` field. The value must be a string. Takes precedence over `externalId`.
|
15
17
|
field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email', 'style': 'form', 'explode': true } }
|
16
18
|
# A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string. Takes precedence over `search`.
|
17
19
|
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
18
20
|
# Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
|
19
21
|
field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
|
22
|
+
# A filter on the list based on the customer's `linkId` field (the referral link ID).
|
23
|
+
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
20
24
|
# The page number for pagination.
|
21
25
|
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
22
26
|
# The number of items per page.
|
23
27
|
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
24
28
|
# A search query to filter customers by email, externalId, or name. If `email` or `externalId` is provided, this will be ignored.
|
25
29
|
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
30
|
+
# The field to sort the customers by. The default is `createdAt`.
|
31
|
+
field :sort_by, T.nilable(::OpenApiSDK::Operations::GetCustomersQueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
32
|
+
# The sort order. The default is `desc`.
|
33
|
+
field :sort_order, T.nilable(::OpenApiSDK::Operations::GetCustomersQueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
26
34
|
|
27
35
|
|
28
|
-
sig { params(email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String)).void }
|
29
|
-
def initialize(email: nil, external_id: nil, include_expanded_fields: nil, page: nil, page_size: nil, search: nil)
|
36
|
+
sig { params(country: T.nilable(::String), email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean), link_id: T.nilable(::String), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), sort_by: T.nilable(::OpenApiSDK::Operations::GetCustomersQueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::GetCustomersQueryParamSortOrder)).void }
|
37
|
+
def initialize(country: nil, email: nil, external_id: nil, include_expanded_fields: nil, link_id: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil)
|
38
|
+
@country = country
|
30
39
|
@email = email
|
31
40
|
@external_id = external_id
|
32
41
|
@include_expanded_fields = include_expanded_fields
|
42
|
+
@link_id = link_id
|
33
43
|
@page = page
|
34
44
|
@page_size = page_size
|
35
45
|
@search = search
|
46
|
+
@sort_by = sort_by
|
47
|
+
@sort_order = sort_order
|
36
48
|
end
|
37
49
|
end
|
38
50
|
end
|
@@ -32,9 +32,9 @@ module OpenApiSDK
|
|
32
32
|
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
33
33
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
34
34
|
# The tag IDs to filter the links by.
|
35
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
35
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } }
|
36
36
|
# The unique name of the tags assigned to the short link (case insensitive).
|
37
|
-
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode':
|
37
|
+
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': false } }
|
38
38
|
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
39
39
|
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
40
40
|
# The user ID to filter the links by.
|
@@ -24,9 +24,9 @@ module OpenApiSDK
|
|
24
24
|
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
25
25
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
26
26
|
# The tag IDs to filter the links by.
|
27
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
27
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } }
|
28
28
|
# The unique name of the tags assigned to the short link (case insensitive).
|
29
|
-
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode':
|
29
|
+
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': false } }
|
30
30
|
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
31
31
|
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
32
32
|
# The user ID to filter the links by.
|
@@ -33,10 +33,14 @@ module OpenApiSDK
|
|
33
33
|
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
34
|
|
35
35
|
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
36
40
|
|
37
41
|
|
38
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomersLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), program_id: T.nilable(::String)).void }
|
39
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil)
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomersLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
40
44
|
@created_at = created_at
|
41
45
|
@external_id = external_id
|
42
46
|
@id = id
|
@@ -48,6 +52,8 @@ module OpenApiSDK
|
|
48
52
|
@link = link
|
49
53
|
@partner = partner
|
50
54
|
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
@@ -21,15 +21,18 @@ module OpenApiSDK
|
|
21
21
|
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
22
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
23
|
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
# The destination URL of the short link.
|
25
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
24
26
|
|
25
27
|
|
26
|
-
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
|
27
|
-
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
|
28
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String, url: ::String).void }
|
29
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil, url: nil)
|
28
30
|
@domain = domain
|
29
31
|
@id = id
|
30
32
|
@key = key
|
31
33
|
@program_id = program_id
|
32
34
|
@short_link = short_link
|
35
|
+
@url = url
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -33,10 +33,14 @@ module OpenApiSDK
|
|
33
33
|
field :partner, T.nilable(::OpenApiSDK::Operations::UpdateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
34
|
|
35
35
|
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
36
40
|
|
37
41
|
|
38
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::UpdateCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::UpdateCustomerPartner), program_id: T.nilable(::String)).void }
|
39
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil)
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::UpdateCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::UpdateCustomerPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
40
44
|
@created_at = created_at
|
41
45
|
@external_id = external_id
|
42
46
|
@id = id
|
@@ -48,6 +52,8 @@ module OpenApiSDK
|
|
48
52
|
@link = link
|
49
53
|
@partner = partner
|
50
54
|
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
51
57
|
end
|
52
58
|
end
|
53
59
|
end
|
@@ -99,6 +99,8 @@ module OpenApiSDK
|
|
99
99
|
autoload :Sale, 'open_api_sdk/models/operations/sale.rb'
|
100
100
|
autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb'
|
101
101
|
autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb'
|
102
|
+
autoload :GetCustomersQueryParamSortBy, 'open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb'
|
103
|
+
autoload :GetCustomersQueryParamSortOrder, 'open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb'
|
102
104
|
autoload :GetCustomersRequest, 'open_api_sdk/models/operations/getcustomers_request.rb'
|
103
105
|
autoload :GetCustomersLink, 'open_api_sdk/models/operations/getcustomers_link.rb'
|
104
106
|
autoload :GetCustomersPartner, 'open_api_sdk/models/operations/getcustomers_partner.rb'
|
@@ -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.97'
|
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.97 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.97
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -268,6 +268,8 @@ files:
|
|
268
268
|
- lib/open_api_sdk/models/operations/getcustomer_type.rb
|
269
269
|
- lib/open_api_sdk/models/operations/getcustomers_link.rb
|
270
270
|
- lib/open_api_sdk/models/operations/getcustomers_partner.rb
|
271
|
+
- lib/open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb
|
272
|
+
- lib/open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb
|
271
273
|
- lib/open_api_sdk/models/operations/getcustomers_request.rb
|
272
274
|
- lib/open_api_sdk/models/operations/getcustomers_response.rb
|
273
275
|
- lib/open_api_sdk/models/operations/getcustomers_type.rb
|