dub 0.11.0 → 0.12.0
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/customers.rb +0 -237
- data/lib/open_api_sdk/models/operations/banpartner_requestbody.rb +41 -0
- data/lib/open_api_sdk/models/operations/banpartner_requestbody.rbi +17 -0
- data/lib/open_api_sdk/models/operations/banpartner_responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/banpartner_responsebody.rbi +13 -0
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +32 -4
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rbi +14 -0
- data/lib/open_api_sdk/models/operations/listcommissions_partner.rb +6 -2
- data/lib/open_api_sdk/models/operations/listcommissions_partner.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listcommissions_request.rb +6 -2
- data/lib/open_api_sdk/models/operations/listcommissions_request.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listevents_request.rb +6 -2
- data/lib/open_api_sdk/models/operations/listevents_request.rbi +2 -0
- data/lib/open_api_sdk/models/operations/listpartners_queryparam_sortby.rb +7 -0
- data/lib/open_api_sdk/models/operations/listpartners_responsebody.rb +32 -4
- data/lib/open_api_sdk/models/operations/listpartners_responsebody.rbi +14 -0
- data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +2 -0
- data/lib/open_api_sdk/models/operations/reason.rb +26 -0
- data/lib/open_api_sdk/models/operations/reason.rbi +11 -0
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +6 -2
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rbi +2 -0
- data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +10 -10
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rbi +4 -4
- data/lib/open_api_sdk/models/operations/updatecommission_partner.rb +6 -2
- data/lib/open_api_sdk/models/operations/updatecommission_partner.rbi +2 -0
- data/lib/open_api_sdk/models/operations.rb +3 -6
- data/lib/open_api_sdk/models/shared/analyticstopurls.rb +1 -1
- data/lib/open_api_sdk/models/shared/applicationformdata.rb +37 -0
- data/lib/open_api_sdk/models/shared/applicationformdata.rbi +15 -0
- data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/leadcreatedevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/leadevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/leadevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/link.rb +14 -10
- data/lib/open_api_sdk/models/shared/link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/linkclickedevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/linkclickedevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/linkschema.rb +6 -2
- data/lib/open_api_sdk/models/shared/linkschema.rbi +2 -0
- data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/linkwebhookevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rb +45 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent.rbi +19 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rb +45 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_data.rbi +19 -0
- data/lib/open_api_sdk/models/{operations/createcustomer_type.rb → shared/partnerapplicationsubmittedevent_event.rb} +3 -4
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_event.rbi +11 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rb +89 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_partner.rbi +41 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rb +28 -0
- data/lib/open_api_sdk/models/shared/partnerapplicationsubmittedevent_status.rbi +11 -0
- data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rb +32 -4
- data/lib/open_api_sdk/models/shared/partnerenrolledevent_data.rbi +14 -0
- data/lib/open_api_sdk/models/shared/salecreatedevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/salecreatedevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/saleevent_link.rb +14 -10
- data/lib/open_api_sdk/models/shared/saleevent_link.rbi +6 -4
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +6 -2
- data/lib/open_api_sdk/models/shared/workspaceschema.rbi +2 -0
- data/lib/open_api_sdk/models/shared.rb +6 -0
- data/lib/open_api_sdk/partners.rb +235 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- metadata +20 -14
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +0 -61
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rbi +0 -27
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +0 -53
- data/lib/open_api_sdk/models/operations/createcustomer_link.rbi +0 -23
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +0 -45
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rbi +0 -19
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -49
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rbi +0 -21
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -81
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rbi +0 -37
- data/lib/open_api_sdk/models/operations/createcustomer_type.rbi +0 -11
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class OpenApiSDK::Models::Operations::CreateCustomerPartner
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class OpenApiSDK::Models::Operations::CreateCustomerPartner
|
|
11
|
-
def id(); end
|
|
12
|
-
def id=(str_); end
|
|
13
|
-
def name(); end
|
|
14
|
-
def name=(str_); end
|
|
15
|
-
def email(); end
|
|
16
|
-
def email=(str_); end
|
|
17
|
-
def image(); end
|
|
18
|
-
def image=(str_); end
|
|
19
|
-
end
|
|
@@ -1,49 +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 Models
|
|
9
|
-
module Operations
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateCustomerRequestBody
|
|
13
|
-
extend T::Sig
|
|
14
|
-
include Crystalline::MetadataFields
|
|
15
|
-
|
|
16
|
-
# Unique identifier for the customer in the client's app.
|
|
17
|
-
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId'), required: true } }
|
|
18
|
-
# Email of the customer in the client's app.
|
|
19
|
-
field :email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
|
20
|
-
# Name of the customer in the client's app. If not provided, a random name will be generated.
|
|
21
|
-
field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
|
22
|
-
# Avatar URL of the customer in the client's app.
|
|
23
|
-
field :avatar, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
|
24
|
-
# The customer's Stripe customer ID. Useful for attribution recurring sale events to the partner who referred the customer.
|
|
25
|
-
field :stripe_customer_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeCustomerId') } }
|
|
26
|
-
|
|
27
|
-
sig { params(external_id: ::String, email: T.nilable(::String), name: T.nilable(::String), avatar: T.nilable(::String), stripe_customer_id: T.nilable(::String)).void }
|
|
28
|
-
def initialize(external_id:, email: nil, name: nil, avatar: nil, stripe_customer_id: nil)
|
|
29
|
-
@external_id = external_id
|
|
30
|
-
@email = email
|
|
31
|
-
@name = name
|
|
32
|
-
@avatar = avatar
|
|
33
|
-
@stripe_customer_id = stripe_customer_id
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
-
def ==(other)
|
|
38
|
-
return false unless other.is_a? self.class
|
|
39
|
-
return false unless @external_id == other.external_id
|
|
40
|
-
return false unless @email == other.email
|
|
41
|
-
return false unless @name == other.name
|
|
42
|
-
return false unless @avatar == other.avatar
|
|
43
|
-
return false unless @stripe_customer_id == other.stripe_customer_id
|
|
44
|
-
true
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class OpenApiSDK::Models::Operations::CreateCustomerRequestBody
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class OpenApiSDK::Models::Operations::CreateCustomerRequestBody
|
|
11
|
-
def external_id(); end
|
|
12
|
-
def external_id=(str_); end
|
|
13
|
-
def email(); end
|
|
14
|
-
def email=(str_); end
|
|
15
|
-
def name(); end
|
|
16
|
-
def name=(str_); end
|
|
17
|
-
def avatar(); end
|
|
18
|
-
def avatar=(str_); end
|
|
19
|
-
def stripe_customer_id(); end
|
|
20
|
-
def stripe_customer_id=(str_); end
|
|
21
|
-
end
|
|
@@ -1,81 +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 Models
|
|
9
|
-
module Operations
|
|
10
|
-
|
|
11
|
-
# The customer was created.
|
|
12
|
-
class CreateCustomerResponseBody
|
|
13
|
-
extend T::Sig
|
|
14
|
-
include Crystalline::MetadataFields
|
|
15
|
-
|
|
16
|
-
# The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
|
17
|
-
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id'), required: true } }
|
|
18
|
-
# Unique identifier for the customer in the client's app.
|
|
19
|
-
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId'), required: true } }
|
|
20
|
-
# Name of the customer.
|
|
21
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name'), required: true } }
|
|
22
|
-
# The date the customer was created.
|
|
23
|
-
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt'), required: true } }
|
|
24
|
-
# Email of the customer.
|
|
25
|
-
field :email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
|
26
|
-
# Avatar URL of the customer.
|
|
27
|
-
field :avatar, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
|
28
|
-
# Country of the customer.
|
|
29
|
-
field :country, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
|
30
|
-
# Total number of sales for the customer.
|
|
31
|
-
field :sales, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
|
32
|
-
# Total amount of sales for the customer.
|
|
33
|
-
field :sale_amount, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
|
34
|
-
|
|
35
|
-
field :link, Crystalline::Nilable.new(Models::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
|
36
|
-
|
|
37
|
-
field :program_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
|
38
|
-
|
|
39
|
-
field :partner, Crystalline::Nilable.new(Models::Operations::CreateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
|
40
|
-
|
|
41
|
-
field :discount, Crystalline::Nilable.new(Models::Operations::CreateCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
|
42
|
-
|
|
43
|
-
sig { params(id: ::String, external_id: ::String, name: ::String, created_at: ::String, email: T.nilable(::String), avatar: T.nilable(::String), country: T.nilable(::String), sales: T.nilable(::Float), sale_amount: T.nilable(::Float), link: T.nilable(Models::Operations::CreateCustomerLink), program_id: T.nilable(::String), partner: T.nilable(Models::Operations::CreateCustomerPartner), discount: T.nilable(Models::Operations::CreateCustomerDiscount)).void }
|
|
44
|
-
def initialize(id:, external_id:, name:, created_at:, email: nil, avatar: nil, country: nil, sales: nil, sale_amount: nil, link: nil, program_id: nil, partner: nil, discount: nil)
|
|
45
|
-
@id = id
|
|
46
|
-
@external_id = external_id
|
|
47
|
-
@name = name
|
|
48
|
-
@created_at = created_at
|
|
49
|
-
@email = email
|
|
50
|
-
@avatar = avatar
|
|
51
|
-
@country = country
|
|
52
|
-
@sales = sales
|
|
53
|
-
@sale_amount = sale_amount
|
|
54
|
-
@link = link
|
|
55
|
-
@program_id = program_id
|
|
56
|
-
@partner = partner
|
|
57
|
-
@discount = discount
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
61
|
-
def ==(other)
|
|
62
|
-
return false unless other.is_a? self.class
|
|
63
|
-
return false unless @id == other.id
|
|
64
|
-
return false unless @external_id == other.external_id
|
|
65
|
-
return false unless @name == other.name
|
|
66
|
-
return false unless @created_at == other.created_at
|
|
67
|
-
return false unless @email == other.email
|
|
68
|
-
return false unless @avatar == other.avatar
|
|
69
|
-
return false unless @country == other.country
|
|
70
|
-
return false unless @sales == other.sales
|
|
71
|
-
return false unless @sale_amount == other.sale_amount
|
|
72
|
-
return false unless @link == other.link
|
|
73
|
-
return false unless @program_id == other.program_id
|
|
74
|
-
return false unless @partner == other.partner
|
|
75
|
-
return false unless @discount == other.discount
|
|
76
|
-
true
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
end
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class OpenApiSDK::Models::Operations::CreateCustomerResponseBody
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class OpenApiSDK::Models::Operations::CreateCustomerResponseBody
|
|
11
|
-
def id(); end
|
|
12
|
-
def id=(str_); end
|
|
13
|
-
def external_id(); end
|
|
14
|
-
def external_id=(str_); end
|
|
15
|
-
def name(); end
|
|
16
|
-
def name=(str_); end
|
|
17
|
-
def created_at(); end
|
|
18
|
-
def created_at=(str_); end
|
|
19
|
-
def email(); end
|
|
20
|
-
def email=(str_); end
|
|
21
|
-
def avatar(); end
|
|
22
|
-
def avatar=(str_); end
|
|
23
|
-
def country(); end
|
|
24
|
-
def country=(str_); end
|
|
25
|
-
def sales(); end
|
|
26
|
-
def sales=(str_); end
|
|
27
|
-
def sale_amount(); end
|
|
28
|
-
def sale_amount=(str_); end
|
|
29
|
-
def link(); end
|
|
30
|
-
def link=(str_); end
|
|
31
|
-
def program_id(); end
|
|
32
|
-
def program_id=(str_); end
|
|
33
|
-
def partner(); end
|
|
34
|
-
def partner=(str_); end
|
|
35
|
-
def discount(); end
|
|
36
|
-
def discount=(str_); end
|
|
37
|
-
end
|