dub 0.2.2.pre.alpha.47 → 0.2.2.pre.alpha.49
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_discount.rb +42 -0
- data/lib/open_api_sdk/models/operations/createcustomer_interval.rb +18 -0
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +36 -0
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +14 -2
- data/lib/open_api_sdk/models/operations/createcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/discount.rb +42 -0
- data/lib/open_api_sdk/models/operations/getcustomer_discount.rb +42 -0
- data/lib/open_api_sdk/models/operations/getcustomer_interval.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +36 -0
- data/lib/open_api_sdk/models/operations/getcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +14 -2
- data/lib/open_api_sdk/models/operations/getcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_interval.rb +18 -0
- data/lib/open_api_sdk/models/operations/link.rb +36 -0
- data/lib/open_api_sdk/models/operations/partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/responsebody.rb +14 -2
- data/lib/open_api_sdk/models/operations/type.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +42 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_interval.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +36 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +14 -2
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations.rb +20 -3
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/track.rb +0 -88
- metadata +22 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e028e6ac961515e341616af451cd173243387eb4c1fad4833242df608e2ee0b
|
4
|
+
data.tar.gz: 3920cd4033705f1383b72a90fc125f98188d8de14e773b0dfe8e1eb8a3015097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2bf9f783df6a1cfbe81e84dfd47548af98a892ee41f7c2f7d59ddc18a0414491169a41e40382ad643a1b7585bed7f43571490f96017e58b8c3eefcb86a98a5d
|
7
|
+
data.tar.gz: '08177bdc3d1962a6d6c763493e7a1769ea45e98f23e437c23eaba36dc1d9e2717789a52630b5b600485002f7fcec78e8373a57f851a407495510b55228ad859a'
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
11
|
+
class CreateCustomerDiscount < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
|
+
|
17
|
+
field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }
|
18
|
+
|
19
|
+
field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }
|
20
|
+
|
21
|
+
field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }
|
22
|
+
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
|
25
|
+
field :interval, ::OpenApiSDK::Operations::CreateCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerInterval, false) } }
|
26
|
+
|
27
|
+
field :type, ::OpenApiSDK::Operations::CreateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::CreateCustomerType, false) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::CreateCustomerInterval, type: ::OpenApiSDK::Operations::CreateCustomerType).void }
|
31
|
+
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil)
|
32
|
+
@amount = amount
|
33
|
+
@coupon_id = coupon_id
|
34
|
+
@coupon_test_id = coupon_test_id
|
35
|
+
@duration = duration
|
36
|
+
@id = id
|
37
|
+
@interval = interval
|
38
|
+
@type = type
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
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
|
+
|
11
|
+
class CreateCustomerInterval < T::Enum
|
12
|
+
enums do
|
13
|
+
MONTH = new('month')
|
14
|
+
YEAR = new('year')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
11
|
+
class CreateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
|
25
|
+
|
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
|
+
@domain = domain
|
29
|
+
@id = id
|
30
|
+
@key = key
|
31
|
+
@program_id = program_id
|
32
|
+
@short_link = short_link
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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
|
+
|
11
|
+
class CreateCustomerPartner < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
20
|
+
|
21
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
|
25
|
+
def initialize(email: nil, id: nil, name: nil, image: nil)
|
26
|
+
@email = email
|
27
|
+
@id = id
|
28
|
+
@name = name
|
29
|
+
@image = image
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -21,18 +21,30 @@ module OpenApiSDK
|
|
21
21
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
22
|
# Avatar URL of the customer.
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
+
# Country of the customer.
|
25
|
+
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::CreateCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
24
28
|
# Email of the customer.
|
25
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
26
30
|
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
27
35
|
|
28
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
|
29
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
|
36
|
+
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)).void }
|
37
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
|
30
38
|
@created_at = created_at
|
31
39
|
@external_id = external_id
|
32
40
|
@id = id
|
33
41
|
@name = name
|
34
42
|
@avatar = avatar
|
43
|
+
@country = country
|
44
|
+
@discount = discount
|
35
45
|
@email = email
|
46
|
+
@link = link
|
47
|
+
@partner = partner
|
36
48
|
end
|
37
49
|
end
|
38
50
|
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
|
+
|
11
|
+
class CreateCustomerType < T::Enum
|
12
|
+
enums do
|
13
|
+
PERCENTAGE = new('percentage')
|
14
|
+
FLAT = new('flat')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
11
|
+
class Discount < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
|
+
|
17
|
+
field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }
|
18
|
+
|
19
|
+
field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }
|
20
|
+
|
21
|
+
field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }
|
22
|
+
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
|
25
|
+
field :interval, ::OpenApiSDK::Operations::GetCustomersInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomersInterval, false) } }
|
26
|
+
|
27
|
+
field :type, ::OpenApiSDK::Operations::Type, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Type, false) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::GetCustomersInterval, type: ::OpenApiSDK::Operations::Type).void }
|
31
|
+
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil)
|
32
|
+
@amount = amount
|
33
|
+
@coupon_id = coupon_id
|
34
|
+
@coupon_test_id = coupon_test_id
|
35
|
+
@duration = duration
|
36
|
+
@id = id
|
37
|
+
@interval = interval
|
38
|
+
@type = type
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
11
|
+
class GetCustomerDiscount < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
|
+
|
17
|
+
field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }
|
18
|
+
|
19
|
+
field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }
|
20
|
+
|
21
|
+
field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }
|
22
|
+
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
|
25
|
+
field :interval, ::OpenApiSDK::Operations::GetCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerInterval, false) } }
|
26
|
+
|
27
|
+
field :type, ::OpenApiSDK::Operations::GetCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::GetCustomerType, false) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::GetCustomerInterval, type: ::OpenApiSDK::Operations::GetCustomerType).void }
|
31
|
+
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil)
|
32
|
+
@amount = amount
|
33
|
+
@coupon_id = coupon_id
|
34
|
+
@coupon_test_id = coupon_test_id
|
35
|
+
@duration = duration
|
36
|
+
@id = id
|
37
|
+
@interval = interval
|
38
|
+
@type = type
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
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
|
+
|
11
|
+
class GetCustomerInterval < T::Enum
|
12
|
+
enums do
|
13
|
+
MONTH = new('month')
|
14
|
+
YEAR = new('year')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
11
|
+
class GetCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
|
25
|
+
|
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
|
+
@domain = domain
|
29
|
+
@id = id
|
30
|
+
@key = key
|
31
|
+
@program_id = program_id
|
32
|
+
@short_link = short_link
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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
|
+
|
11
|
+
class GetCustomerPartner < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
20
|
+
|
21
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
|
25
|
+
def initialize(email: nil, id: nil, name: nil, image: nil)
|
26
|
+
@email = email
|
27
|
+
@id = id
|
28
|
+
@name = name
|
29
|
+
@image = image
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -21,18 +21,30 @@ module OpenApiSDK
|
|
21
21
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
22
|
# Avatar URL of the customer.
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
+
# Country of the customer.
|
25
|
+
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::GetCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
24
28
|
# Email of the customer.
|
25
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
26
30
|
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::GetCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
27
35
|
|
28
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
|
29
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
|
36
|
+
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)).void }
|
37
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
|
30
38
|
@created_at = created_at
|
31
39
|
@external_id = external_id
|
32
40
|
@id = id
|
33
41
|
@name = name
|
34
42
|
@avatar = avatar
|
43
|
+
@country = country
|
44
|
+
@discount = discount
|
35
45
|
@email = email
|
46
|
+
@link = link
|
47
|
+
@partner = partner
|
36
48
|
end
|
37
49
|
end
|
38
50
|
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
|
+
|
11
|
+
class GetCustomerType < T::Enum
|
12
|
+
enums do
|
13
|
+
PERCENTAGE = new('percentage')
|
14
|
+
FLAT = new('flat')
|
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
|
+
|
11
|
+
class GetCustomersInterval < T::Enum
|
12
|
+
enums do
|
13
|
+
MONTH = new('month')
|
14
|
+
YEAR = new('year')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
11
|
+
class Link < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
|
25
|
+
|
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
|
+
@domain = domain
|
29
|
+
@id = id
|
30
|
+
@key = key
|
31
|
+
@program_id = program_id
|
32
|
+
@short_link = short_link
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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
|
+
|
11
|
+
class Partner < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
20
|
+
|
21
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
|
25
|
+
def initialize(email: nil, id: nil, name: nil, image: nil)
|
26
|
+
@email = email
|
27
|
+
@id = id
|
28
|
+
@name = name
|
29
|
+
@image = image
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -21,18 +21,30 @@ module OpenApiSDK
|
|
21
21
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
22
|
# Avatar URL of the customer.
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
+
# Country of the customer.
|
25
|
+
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::Discount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
24
28
|
# Email of the customer.
|
25
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
26
30
|
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::Link), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::Partner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
27
35
|
|
28
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
|
29
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
|
36
|
+
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::Link), partner: T.nilable(::OpenApiSDK::Operations::Partner)).void }
|
37
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
|
30
38
|
@created_at = created_at
|
31
39
|
@external_id = external_id
|
32
40
|
@id = id
|
33
41
|
@name = name
|
34
42
|
@avatar = avatar
|
43
|
+
@country = country
|
44
|
+
@discount = discount
|
35
45
|
@email = email
|
46
|
+
@link = link
|
47
|
+
@partner = partner
|
36
48
|
end
|
37
49
|
end
|
38
50
|
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
|
+
|
11
|
+
class Type < T::Enum
|
12
|
+
enums do
|
13
|
+
PERCENTAGE = new('percentage')
|
14
|
+
FLAT = new('flat')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
11
|
+
class UpdateCustomerDiscount < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('amount') } }
|
16
|
+
|
17
|
+
field :coupon_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponId') } }
|
18
|
+
|
19
|
+
field :coupon_test_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('couponTestId') } }
|
20
|
+
|
21
|
+
field :duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('duration') } }
|
22
|
+
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
|
25
|
+
field :interval, ::OpenApiSDK::Operations::UpdateCustomerInterval, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('interval'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCustomerInterval, false) } }
|
26
|
+
|
27
|
+
field :type, ::OpenApiSDK::Operations::UpdateCustomerType, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCustomerType, false) } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, duration: ::Float, id: ::String, interval: ::OpenApiSDK::Operations::UpdateCustomerInterval, type: ::OpenApiSDK::Operations::UpdateCustomerType).void }
|
31
|
+
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, duration: nil, id: nil, interval: nil, type: nil)
|
32
|
+
@amount = amount
|
33
|
+
@coupon_id = coupon_id
|
34
|
+
@coupon_test_id = coupon_test_id
|
35
|
+
@duration = duration
|
36
|
+
@id = id
|
37
|
+
@interval = interval
|
38
|
+
@type = type
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
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
|
+
|
11
|
+
class UpdateCustomerInterval < T::Enum
|
12
|
+
enums do
|
13
|
+
MONTH = new('month')
|
14
|
+
YEAR = new('year')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
11
|
+
class UpdateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
|
25
|
+
|
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
|
+
@domain = domain
|
29
|
+
@id = id
|
30
|
+
@key = key
|
31
|
+
@program_id = program_id
|
32
|
+
@short_link = short_link
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,33 @@
|
|
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
|
+
|
11
|
+
class UpdateCustomerPartner < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
+
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
20
|
+
|
21
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(email: ::String, id: ::String, name: ::String, image: T.nilable(::String)).void }
|
25
|
+
def initialize(email: nil, id: nil, name: nil, image: nil)
|
26
|
+
@email = email
|
27
|
+
@id = id
|
28
|
+
@name = name
|
29
|
+
@image = image
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -21,18 +21,30 @@ module OpenApiSDK
|
|
21
21
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
22
|
# Avatar URL of the customer.
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
+
# Country of the customer.
|
25
|
+
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::UpdateCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
24
28
|
# Email of the customer.
|
25
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
26
30
|
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::UpdateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
27
35
|
|
28
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
|
29
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
|
36
|
+
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)).void }
|
37
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil)
|
30
38
|
@created_at = created_at
|
31
39
|
@external_id = external_id
|
32
40
|
@id = id
|
33
41
|
@name = name
|
34
42
|
@avatar = avatar
|
43
|
+
@country = country
|
44
|
+
@discount = discount
|
35
45
|
@email = email
|
46
|
+
@link = link
|
47
|
+
@partner = partner
|
36
48
|
end
|
37
49
|
end
|
38
50
|
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
|
+
|
11
|
+
class UpdateCustomerType < T::Enum
|
12
|
+
enums do
|
13
|
+
PERCENTAGE = new('percentage')
|
14
|
+
FLAT = new('flat')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -75,19 +75,36 @@ module OpenApiSDK
|
|
75
75
|
autoload :Sale, 'open_api_sdk/models/operations/sale.rb'
|
76
76
|
autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb'
|
77
77
|
autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb'
|
78
|
-
autoload :
|
79
|
-
autoload :
|
80
|
-
autoload :
|
78
|
+
autoload :Link, 'open_api_sdk/models/operations/link.rb'
|
79
|
+
autoload :Partner, 'open_api_sdk/models/operations/partner.rb'
|
80
|
+
autoload :Type, 'open_api_sdk/models/operations/type.rb'
|
81
|
+
autoload :GetCustomersInterval, 'open_api_sdk/models/operations/getcustomers_interval.rb'
|
82
|
+
autoload :Discount, 'open_api_sdk/models/operations/discount.rb'
|
81
83
|
autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb'
|
82
84
|
autoload :GetCustomersResponse, 'open_api_sdk/models/operations/getcustomers_response.rb'
|
83
85
|
autoload :CreateCustomerRequestBody, 'open_api_sdk/models/operations/createcustomer_requestbody.rb'
|
86
|
+
autoload :CreateCustomerLink, 'open_api_sdk/models/operations/createcustomer_link.rb'
|
87
|
+
autoload :CreateCustomerPartner, 'open_api_sdk/models/operations/createcustomer_partner.rb'
|
88
|
+
autoload :CreateCustomerType, 'open_api_sdk/models/operations/createcustomer_type.rb'
|
89
|
+
autoload :CreateCustomerInterval, 'open_api_sdk/models/operations/createcustomer_interval.rb'
|
90
|
+
autoload :CreateCustomerDiscount, 'open_api_sdk/models/operations/createcustomer_discount.rb'
|
84
91
|
autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb'
|
85
92
|
autoload :CreateCustomerResponse, 'open_api_sdk/models/operations/createcustomer_response.rb'
|
86
93
|
autoload :GetCustomerRequest, 'open_api_sdk/models/operations/getcustomer_request.rb'
|
94
|
+
autoload :GetCustomerLink, 'open_api_sdk/models/operations/getcustomer_link.rb'
|
95
|
+
autoload :GetCustomerPartner, 'open_api_sdk/models/operations/getcustomer_partner.rb'
|
96
|
+
autoload :GetCustomerType, 'open_api_sdk/models/operations/getcustomer_type.rb'
|
97
|
+
autoload :GetCustomerInterval, 'open_api_sdk/models/operations/getcustomer_interval.rb'
|
98
|
+
autoload :GetCustomerDiscount, 'open_api_sdk/models/operations/getcustomer_discount.rb'
|
87
99
|
autoload :GetCustomerResponseBody, 'open_api_sdk/models/operations/getcustomer_responsebody.rb'
|
88
100
|
autoload :GetCustomerResponse, 'open_api_sdk/models/operations/getcustomer_response.rb'
|
89
101
|
autoload :UpdateCustomerRequestBody, 'open_api_sdk/models/operations/updatecustomer_requestbody.rb'
|
90
102
|
autoload :UpdateCustomerRequest, 'open_api_sdk/models/operations/updatecustomer_request.rb'
|
103
|
+
autoload :UpdateCustomerLink, 'open_api_sdk/models/operations/updatecustomer_link.rb'
|
104
|
+
autoload :UpdateCustomerPartner, 'open_api_sdk/models/operations/updatecustomer_partner.rb'
|
105
|
+
autoload :UpdateCustomerType, 'open_api_sdk/models/operations/updatecustomer_type.rb'
|
106
|
+
autoload :UpdateCustomerInterval, 'open_api_sdk/models/operations/updatecustomer_interval.rb'
|
107
|
+
autoload :UpdateCustomerDiscount, 'open_api_sdk/models/operations/updatecustomer_discount.rb'
|
91
108
|
autoload :UpdateCustomerResponseBody, 'open_api_sdk/models/operations/updatecustomer_responsebody.rb'
|
92
109
|
autoload :UpdateCustomerResponse, 'open_api_sdk/models/operations/updatecustomer_response.rb'
|
93
110
|
autoload :DeleteCustomerRequest, 'open_api_sdk/models/operations/deletecustomer_request.rb'
|
@@ -38,9 +38,9 @@ module OpenApiSDK
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '0.0.1'
|
41
|
-
@sdk_version = '0.2.2-alpha.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
41
|
+
@sdk_version = '0.2.2-alpha.49'
|
42
|
+
@gen_version = '2.484.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.49 2.484.0 0.0.1 dub'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/track.rb
CHANGED
@@ -189,93 +189,5 @@ module OpenApiSDK
|
|
189
189
|
|
190
190
|
res
|
191
191
|
end
|
192
|
-
|
193
|
-
|
194
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::TrackCustomerRequestBody)).returns(::OpenApiSDK::Operations::TrackCustomerResponse) }
|
195
|
-
def customer(request)
|
196
|
-
# customer - Track a customer
|
197
|
-
# Track a customer for an authenticated workspace.
|
198
|
-
#
|
199
|
-
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
200
|
-
url, params = @sdk_configuration.get_server_details
|
201
|
-
base_url = Utils.template_url(url, params)
|
202
|
-
url = "#{base_url}/track/customer"
|
203
|
-
headers = {}
|
204
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
205
|
-
headers['content-type'] = req_content_type
|
206
|
-
headers['Accept'] = 'application/json'
|
207
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
208
|
-
|
209
|
-
r = @sdk_configuration.client.post(url) do |req|
|
210
|
-
req.headers = headers
|
211
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
212
|
-
if form
|
213
|
-
req.body = Utils.encode_form(form)
|
214
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
215
|
-
req.body = URI.encode_www_form(data)
|
216
|
-
else
|
217
|
-
req.body = data
|
218
|
-
end
|
219
|
-
end
|
220
|
-
|
221
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
222
|
-
|
223
|
-
res = ::OpenApiSDK::Operations::TrackCustomerResponse.new(
|
224
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
225
|
-
)
|
226
|
-
if r.status == 200
|
227
|
-
if Utils.match_content_type(content_type, 'application/json')
|
228
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::TrackCustomerResponseBody)
|
229
|
-
res.object = out
|
230
|
-
end
|
231
|
-
elsif r.status == 400
|
232
|
-
if Utils.match_content_type(content_type, 'application/json')
|
233
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
234
|
-
res.bad_request = out
|
235
|
-
end
|
236
|
-
elsif r.status == 401
|
237
|
-
if Utils.match_content_type(content_type, 'application/json')
|
238
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
239
|
-
res.unauthorized = out
|
240
|
-
end
|
241
|
-
elsif r.status == 403
|
242
|
-
if Utils.match_content_type(content_type, 'application/json')
|
243
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
244
|
-
res.forbidden = out
|
245
|
-
end
|
246
|
-
elsif r.status == 404
|
247
|
-
if Utils.match_content_type(content_type, 'application/json')
|
248
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
249
|
-
res.not_found = out
|
250
|
-
end
|
251
|
-
elsif r.status == 409
|
252
|
-
if Utils.match_content_type(content_type, 'application/json')
|
253
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
254
|
-
res.conflict = out
|
255
|
-
end
|
256
|
-
elsif r.status == 410
|
257
|
-
if Utils.match_content_type(content_type, 'application/json')
|
258
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
259
|
-
res.invite_expired = out
|
260
|
-
end
|
261
|
-
elsif r.status == 422
|
262
|
-
if Utils.match_content_type(content_type, 'application/json')
|
263
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
264
|
-
res.unprocessable_entity = out
|
265
|
-
end
|
266
|
-
elsif r.status == 429
|
267
|
-
if Utils.match_content_type(content_type, 'application/json')
|
268
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
269
|
-
res.rate_limit_exceeded = out
|
270
|
-
end
|
271
|
-
elsif r.status == 500
|
272
|
-
if Utils.match_content_type(content_type, 'application/json')
|
273
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
274
|
-
res.internal_server_error = out
|
275
|
-
end
|
276
|
-
end
|
277
|
-
|
278
|
-
res
|
279
|
-
end
|
280
192
|
end
|
281
193
|
end
|
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.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -160,9 +160,14 @@ files:
|
|
160
160
|
- lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
|
161
161
|
- lib/open_api_sdk/models/operations/click.rb
|
162
162
|
- lib/open_api_sdk/models/operations/color.rb
|
163
|
+
- lib/open_api_sdk/models/operations/createcustomer_discount.rb
|
164
|
+
- lib/open_api_sdk/models/operations/createcustomer_interval.rb
|
165
|
+
- lib/open_api_sdk/models/operations/createcustomer_link.rb
|
166
|
+
- lib/open_api_sdk/models/operations/createcustomer_partner.rb
|
163
167
|
- lib/open_api_sdk/models/operations/createcustomer_requestbody.rb
|
164
168
|
- lib/open_api_sdk/models/operations/createcustomer_response.rb
|
165
169
|
- lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
|
170
|
+
- lib/open_api_sdk/models/operations/createcustomer_type.rb
|
166
171
|
- lib/open_api_sdk/models/operations/createdomain_requestbody.rb
|
167
172
|
- lib/open_api_sdk/models/operations/createdomain_response.rb
|
168
173
|
- lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb
|
@@ -186,10 +191,17 @@ files:
|
|
186
191
|
- lib/open_api_sdk/models/operations/deletetag_request.rb
|
187
192
|
- lib/open_api_sdk/models/operations/deletetag_response.rb
|
188
193
|
- lib/open_api_sdk/models/operations/deletetag_responsebody.rb
|
194
|
+
- lib/open_api_sdk/models/operations/discount.rb
|
189
195
|
- lib/open_api_sdk/models/operations/event.rb
|
196
|
+
- lib/open_api_sdk/models/operations/getcustomer_discount.rb
|
197
|
+
- lib/open_api_sdk/models/operations/getcustomer_interval.rb
|
198
|
+
- lib/open_api_sdk/models/operations/getcustomer_link.rb
|
199
|
+
- lib/open_api_sdk/models/operations/getcustomer_partner.rb
|
190
200
|
- lib/open_api_sdk/models/operations/getcustomer_request.rb
|
191
201
|
- lib/open_api_sdk/models/operations/getcustomer_response.rb
|
192
202
|
- lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
|
203
|
+
- lib/open_api_sdk/models/operations/getcustomer_type.rb
|
204
|
+
- lib/open_api_sdk/models/operations/getcustomers_interval.rb
|
193
205
|
- lib/open_api_sdk/models/operations/getcustomers_response.rb
|
194
206
|
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
195
207
|
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
@@ -208,11 +220,13 @@ files:
|
|
208
220
|
- lib/open_api_sdk/models/operations/groupby.rb
|
209
221
|
- lib/open_api_sdk/models/operations/interval.rb
|
210
222
|
- lib/open_api_sdk/models/operations/level.rb
|
223
|
+
- lib/open_api_sdk/models/operations/link.rb
|
211
224
|
- lib/open_api_sdk/models/operations/listdomains_request.rb
|
212
225
|
- lib/open_api_sdk/models/operations/listdomains_response.rb
|
213
226
|
- lib/open_api_sdk/models/operations/listevents_request.rb
|
214
227
|
- lib/open_api_sdk/models/operations/listevents_response.rb
|
215
228
|
- lib/open_api_sdk/models/operations/order.rb
|
229
|
+
- lib/open_api_sdk/models/operations/partner.rb
|
216
230
|
- lib/open_api_sdk/models/operations/paymentprocessor.rb
|
217
231
|
- lib/open_api_sdk/models/operations/queryparam_event.rb
|
218
232
|
- lib/open_api_sdk/models/operations/queryparam_interval.rb
|
@@ -224,9 +238,6 @@ files:
|
|
224
238
|
- lib/open_api_sdk/models/operations/sale.rb
|
225
239
|
- lib/open_api_sdk/models/operations/sort.rb
|
226
240
|
- lib/open_api_sdk/models/operations/sortby.rb
|
227
|
-
- lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
|
228
|
-
- lib/open_api_sdk/models/operations/trackcustomer_response.rb
|
229
|
-
- lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb
|
230
241
|
- lib/open_api_sdk/models/operations/tracklead_requestbody.rb
|
231
242
|
- lib/open_api_sdk/models/operations/tracklead_response.rb
|
232
243
|
- lib/open_api_sdk/models/operations/tracklead_responsebody.rb
|
@@ -235,10 +246,16 @@ files:
|
|
235
246
|
- lib/open_api_sdk/models/operations/tracksale_response.rb
|
236
247
|
- lib/open_api_sdk/models/operations/tracksale_responsebody.rb
|
237
248
|
- lib/open_api_sdk/models/operations/trigger.rb
|
249
|
+
- lib/open_api_sdk/models/operations/type.rb
|
250
|
+
- lib/open_api_sdk/models/operations/updatecustomer_discount.rb
|
251
|
+
- lib/open_api_sdk/models/operations/updatecustomer_interval.rb
|
252
|
+
- lib/open_api_sdk/models/operations/updatecustomer_link.rb
|
253
|
+
- lib/open_api_sdk/models/operations/updatecustomer_partner.rb
|
238
254
|
- lib/open_api_sdk/models/operations/updatecustomer_request.rb
|
239
255
|
- lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb
|
240
256
|
- lib/open_api_sdk/models/operations/updatecustomer_response.rb
|
241
257
|
- lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb
|
258
|
+
- lib/open_api_sdk/models/operations/updatecustomer_type.rb
|
242
259
|
- lib/open_api_sdk/models/operations/updatedomain_request.rb
|
243
260
|
- lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
|
244
261
|
- lib/open_api_sdk/models/operations/updatedomain_response.rb
|
@@ -1,33 +0,0 @@
|
|
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
|
-
|
11
|
-
class TrackCustomerRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
|
15
|
-
field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }
|
16
|
-
# Avatar of the customer in the client's app.
|
17
|
-
field :customer_avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } }
|
18
|
-
# Email of the customer in the client's app.
|
19
|
-
field :customer_email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } }
|
20
|
-
# Name of the customer in the client's app.
|
21
|
-
field :customer_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } }
|
22
|
-
|
23
|
-
|
24
|
-
sig { params(customer_id: ::String, customer_avatar: T.nilable(::String), customer_email: T.nilable(::String), customer_name: T.nilable(::String)).void }
|
25
|
-
def initialize(customer_id: nil, customer_avatar: nil, customer_email: nil, customer_name: nil)
|
26
|
-
@customer_id = customer_id
|
27
|
-
@customer_avatar = customer_avatar
|
28
|
-
@customer_email = customer_email
|
29
|
-
@customer_name = customer_name
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,60 +0,0 @@
|
|
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
|
-
|
11
|
-
class TrackCustomerResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# HTTP response content type for this operation
|
15
|
-
field :content_type, ::String
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
17
|
-
field :raw_response, ::Faraday::Response
|
18
|
-
# HTTP response status code for this operation
|
19
|
-
field :status_code, ::Integer
|
20
|
-
# 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).
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# 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.
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
-
# The server cannot find the requested resource.
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
-
# A customer was tracked.
|
33
|
-
field :object, T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody)
|
34
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
35
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
36
|
-
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
37
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
|
-
|
41
|
-
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@bad_request = bad_request
|
48
|
-
@conflict = conflict
|
49
|
-
@forbidden = forbidden
|
50
|
-
@internal_server_error = internal_server_error
|
51
|
-
@invite_expired = invite_expired
|
52
|
-
@not_found = not_found
|
53
|
-
@object = object
|
54
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
55
|
-
@unauthorized = unauthorized
|
56
|
-
@unprocessable_entity = unprocessable_entity
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,33 +0,0 @@
|
|
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
|
-
# A customer was tracked.
|
11
|
-
class TrackCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :customer_avatar, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } }
|
16
|
-
|
17
|
-
field :customer_email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } }
|
18
|
-
|
19
|
-
field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }
|
20
|
-
|
21
|
-
field :customer_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } }
|
22
|
-
|
23
|
-
|
24
|
-
sig { params(customer_avatar: ::String, customer_email: ::String, customer_id: ::String, customer_name: ::String).void }
|
25
|
-
def initialize(customer_avatar: nil, customer_email: nil, customer_id: nil, customer_name: nil)
|
26
|
-
@customer_avatar = customer_avatar
|
27
|
-
@customer_email = customer_email
|
28
|
-
@customer_id = customer_id
|
29
|
-
@customer_name = customer_name
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|