dub 0.2.2.pre.alpha.48 → 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_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +8 -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_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +8 -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/partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/responsebody.rb +8 -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_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +8 -2
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations.rb +16 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- metadata +18 -2
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,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
|
@@ -23,22 +23,28 @@ module OpenApiSDK
|
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
24
|
# Country of the customer.
|
25
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') } }
|
26
28
|
# Email of the customer.
|
27
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
30
|
|
29
31
|
field :link, T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
30
32
|
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
31
35
|
|
32
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::CreateCustomerLink)).void }
|
33
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: 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)
|
34
38
|
@created_at = created_at
|
35
39
|
@external_id = external_id
|
36
40
|
@id = id
|
37
41
|
@name = name
|
38
42
|
@avatar = avatar
|
39
43
|
@country = country
|
44
|
+
@discount = discount
|
40
45
|
@email = email
|
41
46
|
@link = link
|
47
|
+
@partner = partner
|
42
48
|
end
|
43
49
|
end
|
44
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,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
|
@@ -23,22 +23,28 @@ module OpenApiSDK
|
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
24
|
# Country of the customer.
|
25
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') } }
|
26
28
|
# Email of the customer.
|
27
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
30
|
|
29
31
|
field :link, T.nilable(::OpenApiSDK::Operations::GetCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
30
32
|
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
31
35
|
|
32
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomerLink)).void }
|
33
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: 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)
|
34
38
|
@created_at = created_at
|
35
39
|
@external_id = external_id
|
36
40
|
@id = id
|
37
41
|
@name = name
|
38
42
|
@avatar = avatar
|
39
43
|
@country = country
|
44
|
+
@discount = discount
|
40
45
|
@email = email
|
41
46
|
@link = link
|
47
|
+
@partner = partner
|
42
48
|
end
|
43
49
|
end
|
44
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,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
|
@@ -23,22 +23,28 @@ module OpenApiSDK
|
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
24
|
# Country of the customer.
|
25
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') } }
|
26
28
|
# Email of the customer.
|
27
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
30
|
|
29
31
|
field :link, T.nilable(::OpenApiSDK::Operations::Link), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
30
32
|
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::Partner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
31
35
|
|
32
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::Link)).void }
|
33
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: 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)
|
34
38
|
@created_at = created_at
|
35
39
|
@external_id = external_id
|
36
40
|
@id = id
|
37
41
|
@name = name
|
38
42
|
@avatar = avatar
|
39
43
|
@country = country
|
44
|
+
@discount = discount
|
40
45
|
@email = email
|
41
46
|
@link = link
|
47
|
+
@partner = partner
|
42
48
|
end
|
43
49
|
end
|
44
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,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
|
@@ -23,22 +23,28 @@ module OpenApiSDK
|
|
23
23
|
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
24
|
# Country of the customer.
|
25
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') } }
|
26
28
|
# Email of the customer.
|
27
29
|
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
30
|
|
29
31
|
field :link, T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
30
32
|
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::UpdateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
31
35
|
|
32
|
-
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink)).void }
|
33
|
-
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: 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)
|
34
38
|
@created_at = created_at
|
35
39
|
@external_id = external_id
|
36
40
|
@id = id
|
37
41
|
@name = name
|
38
42
|
@avatar = avatar
|
39
43
|
@country = country
|
44
|
+
@discount = discount
|
40
45
|
@email = email
|
41
46
|
@link = link
|
47
|
+
@partner = partner
|
42
48
|
end
|
43
49
|
end
|
44
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
|
@@ -76,19 +76,35 @@ module OpenApiSDK
|
|
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
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'
|
79
83
|
autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb'
|
80
84
|
autoload :GetCustomersResponse, 'open_api_sdk/models/operations/getcustomers_response.rb'
|
81
85
|
autoload :CreateCustomerRequestBody, 'open_api_sdk/models/operations/createcustomer_requestbody.rb'
|
82
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'
|
83
91
|
autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb'
|
84
92
|
autoload :CreateCustomerResponse, 'open_api_sdk/models/operations/createcustomer_response.rb'
|
85
93
|
autoload :GetCustomerRequest, 'open_api_sdk/models/operations/getcustomer_request.rb'
|
86
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'
|
91
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'
|
92
108
|
autoload :UpdateCustomerResponseBody, 'open_api_sdk/models/operations/updatecustomer_responsebody.rb'
|
93
109
|
autoload :UpdateCustomerResponse, 'open_api_sdk/models/operations/updatecustomer_response.rb'
|
94
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]]) }
|
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,10 +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
|
163
165
|
- lib/open_api_sdk/models/operations/createcustomer_link.rb
|
166
|
+
- lib/open_api_sdk/models/operations/createcustomer_partner.rb
|
164
167
|
- lib/open_api_sdk/models/operations/createcustomer_requestbody.rb
|
165
168
|
- lib/open_api_sdk/models/operations/createcustomer_response.rb
|
166
169
|
- lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
|
170
|
+
- lib/open_api_sdk/models/operations/createcustomer_type.rb
|
167
171
|
- lib/open_api_sdk/models/operations/createdomain_requestbody.rb
|
168
172
|
- lib/open_api_sdk/models/operations/createdomain_response.rb
|
169
173
|
- lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb
|
@@ -187,11 +191,17 @@ files:
|
|
187
191
|
- lib/open_api_sdk/models/operations/deletetag_request.rb
|
188
192
|
- lib/open_api_sdk/models/operations/deletetag_response.rb
|
189
193
|
- lib/open_api_sdk/models/operations/deletetag_responsebody.rb
|
194
|
+
- lib/open_api_sdk/models/operations/discount.rb
|
190
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
|
191
198
|
- lib/open_api_sdk/models/operations/getcustomer_link.rb
|
199
|
+
- lib/open_api_sdk/models/operations/getcustomer_partner.rb
|
192
200
|
- lib/open_api_sdk/models/operations/getcustomer_request.rb
|
193
201
|
- lib/open_api_sdk/models/operations/getcustomer_response.rb
|
194
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
|
195
205
|
- lib/open_api_sdk/models/operations/getcustomers_response.rb
|
196
206
|
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
197
207
|
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
@@ -216,6 +226,7 @@ files:
|
|
216
226
|
- lib/open_api_sdk/models/operations/listevents_request.rb
|
217
227
|
- lib/open_api_sdk/models/operations/listevents_response.rb
|
218
228
|
- lib/open_api_sdk/models/operations/order.rb
|
229
|
+
- lib/open_api_sdk/models/operations/partner.rb
|
219
230
|
- lib/open_api_sdk/models/operations/paymentprocessor.rb
|
220
231
|
- lib/open_api_sdk/models/operations/queryparam_event.rb
|
221
232
|
- lib/open_api_sdk/models/operations/queryparam_interval.rb
|
@@ -235,11 +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
|
238
252
|
- lib/open_api_sdk/models/operations/updatecustomer_link.rb
|
253
|
+
- lib/open_api_sdk/models/operations/updatecustomer_partner.rb
|
239
254
|
- lib/open_api_sdk/models/operations/updatecustomer_request.rb
|
240
255
|
- lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb
|
241
256
|
- lib/open_api_sdk/models/operations/updatecustomer_response.rb
|
242
257
|
- lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb
|
258
|
+
- lib/open_api_sdk/models/operations/updatecustomer_type.rb
|
243
259
|
- lib/open_api_sdk/models/operations/updatedomain_request.rb
|
244
260
|
- lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
|
245
261
|
- lib/open_api_sdk/models/operations/updatedomain_response.rb
|