dub 0.3.0 → 0.9.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/models/operations/bannedreason.rb +22 -0
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/createpartner_link.rb +3 -3
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +75 -29
- data/lib/open_api_sdk/models/operations/data.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/link.rb +3 -3
- data/lib/open_api_sdk/models/operations/listcommissions_customer.rb +48 -0
- data/lib/open_api_sdk/models/operations/listcommissions_partner.rb +39 -0
- data/lib/open_api_sdk/models/operations/listcommissions_responsebody.rb +19 -7
- data/lib/open_api_sdk/models/operations/listevents_request.rb +11 -5
- data/lib/open_api_sdk/models/operations/listpartners_bannedreason.rb +22 -0
- data/lib/open_api_sdk/models/operations/listpartners_link.rb +48 -0
- data/lib/open_api_sdk/models/operations/listpartners_queryparam_sortby.rb +23 -0
- data/lib/open_api_sdk/models/operations/listpartners_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/listpartners_queryparam_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/listpartners_request.rb +48 -0
- data/lib/open_api_sdk/models/operations/listpartners_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/listpartners_responsebody.rb +150 -0
- data/lib/open_api_sdk/models/operations/listpartners_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +1 -0
- data/lib/open_api_sdk/models/operations/queryparam_saletype.rb +18 -0
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +3 -1
- data/lib/open_api_sdk/models/operations/requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +11 -5
- data/lib/open_api_sdk/models/operations/saletype.rb +18 -0
- data/lib/open_api_sdk/models/operations/trigger.rb +3 -1
- data/lib/open_api_sdk/models/operations/updatecommission_customer.rb +48 -0
- data/lib/open_api_sdk/models/operations/updatecommission_partner.rb +39 -0
- data/lib/open_api_sdk/models/operations/updatecommission_responsebody.rb +19 -7
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +16 -0
- data/lib/open_api_sdk/models/shared/linkschema.rb +10 -7
- data/lib/open_api_sdk/models/shared/registereddomain.rb +8 -2
- data/lib/open_api_sdk/partners.rb +130 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +18 -2
@@ -0,0 +1,23 @@
|
|
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
|
+
# ListPartnersQueryParamStatus - A filter on the list based on the partner's `status` field.
|
11
|
+
class ListPartnersQueryParamStatus < T::Enum
|
12
|
+
enums do
|
13
|
+
PENDING = new('pending')
|
14
|
+
APPROVED = new('approved')
|
15
|
+
REJECTED = new('rejected')
|
16
|
+
INVITED = new('invited')
|
17
|
+
DECLINED = new('declined')
|
18
|
+
BANNED = new('banned')
|
19
|
+
ARCHIVED = new('archived')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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 ListPartnersRequest < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# A filter on the list based on the partner's `country` field.
|
15
|
+
field :country, T.nilable(::String), { 'query_param': { 'field_name': 'country', 'style': 'form', 'explode': true } }
|
16
|
+
# Whether to include stats fields on the partner (`clicks`, `leads`, `sales`, `saleAmount`, `commissions`, `netRevenue`). If false, those fields will be returned as 0.
|
17
|
+
field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
|
18
|
+
# The page number for pagination.
|
19
|
+
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
20
|
+
# The number of items per page.
|
21
|
+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
22
|
+
# A search query to filter partners by name, email, or tenantId.
|
23
|
+
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
24
|
+
# The field to sort the partners by. The default is `saleAmount`.
|
25
|
+
field :sort_by, T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
26
|
+
# The sort order. The default is `desc`.
|
27
|
+
field :sort_order, T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
28
|
+
# A filter on the list based on the partner's `status` field.
|
29
|
+
field :status, T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamStatus), { 'query_param': { 'field_name': 'status', 'style': 'form', 'explode': true } }
|
30
|
+
# A case-sensitive filter on the list based on the partner's `tenantId` field. The value must be a string. Takes precedence over `search`.
|
31
|
+
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
32
|
+
|
33
|
+
|
34
|
+
sig { params(country: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), sort_by: T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamSortOrder), status: T.nilable(::OpenApiSDK::Operations::ListPartnersQueryParamStatus), tenant_id: T.nilable(::String)).void }
|
35
|
+
def initialize(country: nil, include_expanded_fields: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil, status: nil, tenant_id: nil)
|
36
|
+
@country = country
|
37
|
+
@include_expanded_fields = include_expanded_fields
|
38
|
+
@page = page
|
39
|
+
@page_size = page_size
|
40
|
+
@search = search
|
41
|
+
@sort_by = sort_by
|
42
|
+
@sort_order = sort_order
|
43
|
+
@status = status
|
44
|
+
@tenant_id = tenant_id
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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 ListPartnersResponse < ::Crystalline::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
|
+
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
+
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
+
# The list of partners.
|
35
|
+
field :response_bodies, T.nilable(T::Array[::OpenApiSDK::Operations::ListPartnersResponseBody])
|
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), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), response_bodies: T.nilable(T::Array[::OpenApiSDK::Operations::ListPartnersResponseBody]), 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, rate_limit_exceeded: nil, response_bodies: 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
|
+
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
+
@response_bodies = response_bodies
|
55
|
+
@unauthorized = unauthorized
|
56
|
+
@unprocessable_entity = unprocessable_entity
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,150 @@
|
|
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 ListPartnersResponseBody < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The total number of clicks on the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
15
|
+
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
16
|
+
# The partner's country (required for tax purposes).
|
17
|
+
field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
18
|
+
|
19
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
20
|
+
# The partner's email address. Should be a unique value across Dub.
|
21
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
22
|
+
# The partner's unique ID on Dub.
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
# The partner's avatar image.
|
25
|
+
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
26
|
+
# The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
27
|
+
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
28
|
+
# The partner's referral links in this program.
|
29
|
+
field :links, T::Array[::OpenApiSDK::Operations::ListPartnersLink], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('links') } }
|
30
|
+
# The partner's full legal name.
|
31
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
32
|
+
# The total net revenue generated by the partner. Defaults to 0 if `includeExpandedFields` is false.
|
33
|
+
field :net_revenue, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('netRevenue') } }
|
34
|
+
# The partner's unique ID on Dub.
|
35
|
+
field :partner_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
|
36
|
+
# The date when the partner enabled payouts.
|
37
|
+
field :payouts_enabled_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt') } }
|
38
|
+
# The partner's PayPal email (for receiving payouts via PayPal).
|
39
|
+
field :paypal_email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paypalEmail') } }
|
40
|
+
# The program's unique ID on Dub.
|
41
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
42
|
+
# The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
43
|
+
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
44
|
+
# The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
45
|
+
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
46
|
+
# The status of the partner's enrollment in the program.
|
47
|
+
field :status, ::OpenApiSDK::Operations::ListPartnersStatus, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::ListPartnersStatus, false) } }
|
48
|
+
# The partner's Stripe Connect ID (for receiving payouts via Stripe).
|
49
|
+
field :stripe_connect_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeConnectId') } }
|
50
|
+
# The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future.
|
51
|
+
field :tenant_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
52
|
+
# The total commissions paid to the partner for their referrals. Defaults to 0 if `includeExpandedFields` is false.
|
53
|
+
field :total_commissions, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('totalCommissions') } }
|
54
|
+
# If the partner submitted an application to join the program, this is the ID of the application.
|
55
|
+
field :application_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('applicationId') } }
|
56
|
+
# If the partner was banned from the program, this is the date of the ban.
|
57
|
+
field :banned_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bannedAt') } }
|
58
|
+
# If the partner was banned from the program, this is the reason for the ban.
|
59
|
+
field :banned_reason, T.nilable(::OpenApiSDK::Operations::ListPartnersBannedReason), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bannedReason'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::ListPartnersBannedReason, true) } }
|
60
|
+
|
61
|
+
field :click_reward_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clickRewardId') } }
|
62
|
+
# A brief description of the partner and their background.
|
63
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
64
|
+
|
65
|
+
field :discount_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discountId') } }
|
66
|
+
# The partner's Instagram username (e.g. `johndoe`).
|
67
|
+
field :instagram, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('instagram') } }
|
68
|
+
|
69
|
+
field :instagram_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('instagramVerifiedAt') } }
|
70
|
+
|
71
|
+
field :lead_reward_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leadRewardId') } }
|
72
|
+
# The partner's LinkedIn username (e.g. `johndoe`).
|
73
|
+
field :linkedin, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkedin') } }
|
74
|
+
|
75
|
+
field :linkedin_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkedinVerifiedAt') } }
|
76
|
+
|
77
|
+
field :sale_reward_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleRewardId') } }
|
78
|
+
# The partner's TikTok username (e.g. `johndoe`).
|
79
|
+
field :tiktok, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tiktok') } }
|
80
|
+
|
81
|
+
field :tiktok_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tiktokVerifiedAt') } }
|
82
|
+
# The partner's Twitter username (e.g. `johndoe`).
|
83
|
+
field :twitter, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('twitter') } }
|
84
|
+
|
85
|
+
field :twitter_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('twitterVerifiedAt') } }
|
86
|
+
# The partner's website URL (including the https protocol).
|
87
|
+
field :website, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('website') } }
|
88
|
+
|
89
|
+
field :website_txt_record, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('websiteTxtRecord') } }
|
90
|
+
|
91
|
+
field :website_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('websiteVerifiedAt') } }
|
92
|
+
# The partner's YouTube channel username (e.g. `johndoe`).
|
93
|
+
field :youtube, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('youtube') } }
|
94
|
+
|
95
|
+
field :youtube_subscriber_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('youtubeSubscriberCount') } }
|
96
|
+
|
97
|
+
field :youtube_verified_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('youtubeVerifiedAt') } }
|
98
|
+
|
99
|
+
field :youtube_view_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('youtubeViewCount') } }
|
100
|
+
|
101
|
+
|
102
|
+
sig { params(clicks: ::Float, country: ::String, created_at: ::String, email: ::String, id: ::String, image: ::String, leads: ::Float, links: T::Array[::OpenApiSDK::Operations::ListPartnersLink], name: ::String, net_revenue: ::Float, partner_id: ::String, payouts_enabled_at: ::String, paypal_email: ::String, program_id: ::String, sale_amount: ::Float, sales: ::Float, status: ::OpenApiSDK::Operations::ListPartnersStatus, stripe_connect_id: ::String, tenant_id: ::String, total_commissions: ::Float, application_id: T.nilable(::String), banned_at: T.nilable(::String), banned_reason: T.nilable(::OpenApiSDK::Operations::ListPartnersBannedReason), click_reward_id: T.nilable(::String), description: T.nilable(::String), discount_id: T.nilable(::String), instagram: T.nilable(::String), instagram_verified_at: T.nilable(::String), lead_reward_id: T.nilable(::String), linkedin: T.nilable(::String), linkedin_verified_at: T.nilable(::String), sale_reward_id: T.nilable(::String), tiktok: T.nilable(::String), tiktok_verified_at: T.nilable(::String), twitter: T.nilable(::String), twitter_verified_at: T.nilable(::String), website: T.nilable(::String), website_txt_record: T.nilable(::String), website_verified_at: T.nilable(::String), youtube: T.nilable(::String), youtube_subscriber_count: T.nilable(::Float), youtube_verified_at: T.nilable(::String), youtube_view_count: T.nilable(::Float)).void }
|
103
|
+
def initialize(clicks: nil, country: nil, created_at: nil, email: nil, id: nil, image: nil, leads: nil, links: nil, name: nil, net_revenue: nil, partner_id: nil, payouts_enabled_at: nil, paypal_email: nil, program_id: nil, sale_amount: nil, sales: nil, status: nil, stripe_connect_id: nil, tenant_id: nil, total_commissions: nil, application_id: nil, banned_at: nil, banned_reason: nil, click_reward_id: nil, description: nil, discount_id: nil, instagram: nil, instagram_verified_at: nil, lead_reward_id: nil, linkedin: nil, linkedin_verified_at: nil, sale_reward_id: nil, tiktok: nil, tiktok_verified_at: nil, twitter: nil, twitter_verified_at: nil, website: nil, website_txt_record: nil, website_verified_at: nil, youtube: nil, youtube_subscriber_count: nil, youtube_verified_at: nil, youtube_view_count: nil)
|
104
|
+
@clicks = clicks
|
105
|
+
@country = country
|
106
|
+
@created_at = created_at
|
107
|
+
@email = email
|
108
|
+
@id = id
|
109
|
+
@image = image
|
110
|
+
@leads = leads
|
111
|
+
@links = links
|
112
|
+
@name = name
|
113
|
+
@net_revenue = net_revenue
|
114
|
+
@partner_id = partner_id
|
115
|
+
@payouts_enabled_at = payouts_enabled_at
|
116
|
+
@paypal_email = paypal_email
|
117
|
+
@program_id = program_id
|
118
|
+
@sale_amount = sale_amount
|
119
|
+
@sales = sales
|
120
|
+
@status = status
|
121
|
+
@stripe_connect_id = stripe_connect_id
|
122
|
+
@tenant_id = tenant_id
|
123
|
+
@total_commissions = total_commissions
|
124
|
+
@application_id = application_id
|
125
|
+
@banned_at = banned_at
|
126
|
+
@banned_reason = banned_reason
|
127
|
+
@click_reward_id = click_reward_id
|
128
|
+
@description = description
|
129
|
+
@discount_id = discount_id
|
130
|
+
@instagram = instagram
|
131
|
+
@instagram_verified_at = instagram_verified_at
|
132
|
+
@lead_reward_id = lead_reward_id
|
133
|
+
@linkedin = linkedin
|
134
|
+
@linkedin_verified_at = linkedin_verified_at
|
135
|
+
@sale_reward_id = sale_reward_id
|
136
|
+
@tiktok = tiktok
|
137
|
+
@tiktok_verified_at = tiktok_verified_at
|
138
|
+
@twitter = twitter
|
139
|
+
@twitter_verified_at = twitter_verified_at
|
140
|
+
@website = website
|
141
|
+
@website_txt_record = website_txt_record
|
142
|
+
@website_verified_at = website_verified_at
|
143
|
+
@youtube = youtube
|
144
|
+
@youtube_subscriber_count = youtube_subscriber_count
|
145
|
+
@youtube_verified_at = youtube_verified_at
|
146
|
+
@youtube_view_count = youtube_view_count
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# ListPartnersStatus - The status of the partner's enrollment in the program.
|
11
|
+
class ListPartnersStatus < T::Enum
|
12
|
+
enums do
|
13
|
+
PENDING = new('pending')
|
14
|
+
APPROVED = new('approved')
|
15
|
+
REJECTED = new('rejected')
|
16
|
+
INVITED = new('invited')
|
17
|
+
DECLINED = new('declined')
|
18
|
+
BANNED = new('banned')
|
19
|
+
ARCHIVED = new('archived')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
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
|
+
# QueryParamSaleType - Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
|
11
|
+
class QueryParamSaleType < T::Enum
|
12
|
+
enums do
|
13
|
+
NEW = new('new')
|
14
|
+
RECURRING = new('recurring')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -7,11 +7,13 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# QueryParamTrigger - The trigger to retrieve analytics for. If undefined,
|
10
|
+
# QueryParamTrigger - The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
11
11
|
class QueryParamTrigger < T::Enum
|
12
12
|
enums do
|
13
13
|
QR = new('qr')
|
14
14
|
LINK = new('link')
|
15
|
+
PAGEVIEW = new('pageview')
|
16
|
+
DEEPLINK = new('deeplink')
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -61,7 +61,7 @@ module OpenApiSDK
|
|
61
61
|
field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
62
62
|
# Whether the short link uses link cloaking. Defaults to `false` if not provided.
|
63
63
|
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
64
|
-
# The unique ID of the tag assigned to the short link.
|
64
|
+
# Deprecated: Use `tagIds` instead. The unique ID of the tag assigned to the short link.
|
65
65
|
#
|
66
66
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
67
67
|
field :tag_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
@@ -47,8 +47,10 @@ module OpenApiSDK
|
|
47
47
|
field :partner_id, T.nilable(::String), { 'query_param': { 'field_name': 'partnerId', 'style': 'form', 'explode': true } }
|
48
48
|
# The ID of the program to retrieve analytics for.
|
49
49
|
field :program_id, T.nilable(::String), { 'query_param': { 'field_name': 'programId', 'style': 'form', 'explode': true } }
|
50
|
-
# Deprecated
|
50
|
+
# Deprecated: Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
51
51
|
field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } }
|
52
|
+
# Search the events by a custom metadata value. Only available for lead and sale events.
|
53
|
+
field :query, T.nilable(::String), { 'query_param': { 'field_name': 'query', 'style': 'form', 'explode': true } }
|
52
54
|
# The referer to retrieve analytics for.
|
53
55
|
field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } }
|
54
56
|
# The full referer URL to retrieve analytics for.
|
@@ -57,9 +59,11 @@ module OpenApiSDK
|
|
57
59
|
field :region, T.nilable(::String), { 'query_param': { 'field_name': 'region', 'style': 'form', 'explode': true } }
|
58
60
|
# Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
59
61
|
field :root, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
|
62
|
+
# Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
|
63
|
+
field :sale_type, T.nilable(::OpenApiSDK::Operations::SaleType), { 'query_param': { 'field_name': 'saleType', 'style': 'form', 'explode': true } }
|
60
64
|
# The start date and time when to retrieve analytics from. If set, takes precedence over `interval`.
|
61
65
|
field :start, T.nilable(::String), { 'query_param': { 'field_name': 'start', 'style': 'form', 'explode': true } }
|
62
|
-
# Deprecated
|
66
|
+
# Deprecated: Use `tagIds` instead. The tag ID to retrieve analytics for.
|
63
67
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
64
68
|
# The tag IDs to retrieve analytics for.
|
65
69
|
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } }
|
@@ -67,7 +71,7 @@ module OpenApiSDK
|
|
67
71
|
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
68
72
|
# The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC.
|
69
73
|
field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } }
|
70
|
-
# The trigger to retrieve analytics for. If undefined,
|
74
|
+
# The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
71
75
|
field :trigger, T.nilable(::OpenApiSDK::Operations::Trigger), { 'query_param': { 'field_name': 'trigger', 'style': 'form', 'explode': true } }
|
72
76
|
# The URL to retrieve analytics for.
|
73
77
|
field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
@@ -83,8 +87,8 @@ module OpenApiSDK
|
|
83
87
|
field :utm_term, T.nilable(::String), { 'query_param': { 'field_name': 'utm_term', 'style': 'form', 'explode': true } }
|
84
88
|
|
85
89
|
|
86
|
-
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), customer_id: T.nilable(::String), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), folder_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), partner_id: T.nilable(::String), program_id: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tenant_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::Trigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void }
|
87
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, customer_id: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, folder_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, partner_id: nil, program_id: nil, qr: nil, referer: nil, referer_url: nil, region: nil, root: nil, start: nil, tag_id: nil, tag_ids: nil, tenant_id: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil)
|
90
|
+
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), customer_id: T.nilable(::String), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), folder_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), partner_id: T.nilable(::String), program_id: T.nilable(::String), qr: T.nilable(T::Boolean), query: T.nilable(::String), referer: T.nilable(::String), referer_url: T.nilable(::String), region: T.nilable(::String), root: T.nilable(T::Boolean), sale_type: T.nilable(::OpenApiSDK::Operations::SaleType), start: T.nilable(::String), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tenant_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::Trigger), url: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String)).void }
|
91
|
+
def initialize(browser: nil, city: nil, continent: nil, country: nil, customer_id: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, folder_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, partner_id: nil, program_id: nil, qr: nil, query: nil, referer: nil, referer_url: nil, region: nil, root: nil, sale_type: nil, start: nil, tag_id: nil, tag_ids: nil, tenant_id: nil, timezone: nil, trigger: nil, url: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil)
|
88
92
|
@browser = browser
|
89
93
|
@city = city
|
90
94
|
@continent = continent
|
@@ -104,10 +108,12 @@ module OpenApiSDK
|
|
104
108
|
@partner_id = partner_id
|
105
109
|
@program_id = program_id
|
106
110
|
@qr = qr
|
111
|
+
@query = query
|
107
112
|
@referer = referer
|
108
113
|
@referer_url = referer_url
|
109
114
|
@region = region
|
110
115
|
@root = root
|
116
|
+
@sale_type = sale_type
|
111
117
|
@start = start
|
112
118
|
@tag_id = tag_id
|
113
119
|
@tag_ids = tag_ids
|
@@ -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
|
+
# SaleType - Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
|
11
|
+
class SaleType < T::Enum
|
12
|
+
enums do
|
13
|
+
NEW = new('new')
|
14
|
+
RECURRING = new('recurring')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -7,11 +7,13 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Trigger - The trigger to retrieve analytics for. If undefined,
|
10
|
+
# Trigger - The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
11
11
|
class Trigger < T::Enum
|
12
12
|
enums do
|
13
13
|
QR = new('qr')
|
14
14
|
LINK = new('link')
|
15
|
+
PAGEVIEW = new('pageview')
|
16
|
+
DEEPLINK = new('deeplink')
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -0,0 +1,48 @@
|
|
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 UpdateCommissionCustomer < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The date the customer was created.
|
15
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
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') } }
|
18
|
+
# 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`).
|
19
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
+
# Name of the customer.
|
21
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
+
# Avatar URL of the customer.
|
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
|
+
# Email of the customer.
|
27
|
+
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
|
+
# Total amount of sales for the customer.
|
29
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
30
|
+
# Total number of sales for the customer.
|
31
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
32
|
+
|
33
|
+
|
34
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
35
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, sale_amount: nil, sales: nil)
|
36
|
+
@created_at = created_at
|
37
|
+
@external_id = external_id
|
38
|
+
@id = id
|
39
|
+
@name = name
|
40
|
+
@avatar = avatar
|
41
|
+
@country = country
|
42
|
+
@email = email
|
43
|
+
@sale_amount = sale_amount
|
44
|
+
@sales = sales
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 UpdateCommissionPartner < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The partner's country (required for tax purposes).
|
15
|
+
field :country, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
16
|
+
# The partner's email address. Should be a unique value across Dub.
|
17
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
18
|
+
# The partner's unique ID on Dub.
|
19
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
+
# The partner's avatar image.
|
21
|
+
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
22
|
+
# The partner's full legal name.
|
23
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
24
|
+
# The date when the partner enabled payouts.
|
25
|
+
field :payouts_enabled_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutsEnabledAt') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(country: ::String, email: ::String, id: ::String, image: ::String, name: ::String, payouts_enabled_at: ::String).void }
|
29
|
+
def initialize(country: nil, email: nil, id: nil, image: nil, name: nil, payouts_enabled_at: nil)
|
30
|
+
@country = country
|
31
|
+
@email = email
|
32
|
+
@id = id
|
33
|
+
@image = image
|
34
|
+
@name = name
|
35
|
+
@payouts_enabled_at = payouts_enabled_at
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -18,33 +18,45 @@ module OpenApiSDK
|
|
18
18
|
|
19
19
|
field :currency, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('currency') } }
|
20
20
|
|
21
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
22
|
+
|
21
23
|
field :earnings, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('earnings') } }
|
22
24
|
# The commission's unique ID on Dub.
|
23
25
|
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
26
|
|
27
|
+
field :invoice_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
28
|
+
|
29
|
+
field :partner, ::OpenApiSDK::Operations::UpdateCommissionPartner, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
30
|
+
|
31
|
+
field :quantity, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('quantity') } }
|
32
|
+
|
25
33
|
field :status, ::OpenApiSDK::Operations::UpdateCommissionStatus, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCommissionStatus, false) } }
|
26
34
|
|
27
35
|
field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
|
28
36
|
|
29
|
-
field :
|
30
|
-
|
31
|
-
field :invoice_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('invoiceId') } }
|
37
|
+
field :customer, T.nilable(::OpenApiSDK::Operations::UpdateCommissionCustomer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customer') } }
|
32
38
|
|
33
39
|
field :type, T.nilable(::OpenApiSDK::Operations::UpdateCommissionType), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateCommissionType, true) } }
|
40
|
+
# The user who created the manual commission.
|
41
|
+
field :user_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('userId') } }
|
34
42
|
|
35
43
|
|
36
|
-
sig { params(amount: ::Float, created_at: ::String, currency: ::String, earnings: ::Float, id: ::String, status: ::OpenApiSDK::Operations::UpdateCommissionStatus, updated_at: ::String,
|
37
|
-
def initialize(amount: nil, created_at: nil, currency: nil, earnings: nil, id: nil, status: nil, updated_at: nil,
|
44
|
+
sig { params(amount: ::Float, created_at: ::String, currency: ::String, description: ::String, earnings: ::Float, id: ::String, invoice_id: ::String, partner: ::OpenApiSDK::Operations::UpdateCommissionPartner, quantity: ::Float, status: ::OpenApiSDK::Operations::UpdateCommissionStatus, updated_at: ::String, customer: T.nilable(::OpenApiSDK::Operations::UpdateCommissionCustomer), type: T.nilable(::OpenApiSDK::Operations::UpdateCommissionType), user_id: T.nilable(::String)).void }
|
45
|
+
def initialize(amount: nil, created_at: nil, currency: nil, description: nil, earnings: nil, id: nil, invoice_id: nil, partner: nil, quantity: nil, status: nil, updated_at: nil, customer: nil, type: nil, user_id: nil)
|
38
46
|
@amount = amount
|
39
47
|
@created_at = created_at
|
40
48
|
@currency = currency
|
49
|
+
@description = description
|
41
50
|
@earnings = earnings
|
42
51
|
@id = id
|
52
|
+
@invoice_id = invoice_id
|
53
|
+
@partner = partner
|
54
|
+
@quantity = quantity
|
43
55
|
@status = status
|
44
56
|
@updated_at = updated_at
|
45
|
-
@
|
46
|
-
@invoice_id = invoice_id
|
57
|
+
@customer = customer
|
47
58
|
@type = type
|
59
|
+
@user_id = user_id
|
48
60
|
end
|
49
61
|
end
|
50
62
|
end
|
@@ -55,7 +55,7 @@ module OpenApiSDK
|
|
55
55
|
field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
56
56
|
# Whether the short link uses link cloaking. Defaults to `false` if not provided.
|
57
57
|
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
58
|
-
# The unique ID of the tag assigned to the short link.
|
58
|
+
# Deprecated: Use `tagIds` instead. The unique ID of the tag assigned to the short link.
|
59
59
|
#
|
60
60
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
61
61
|
field :tag_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
@@ -61,7 +61,7 @@ module OpenApiSDK
|
|
61
61
|
field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
|
62
62
|
# Whether the short link uses link cloaking. Defaults to `false` if not provided.
|
63
63
|
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
64
|
-
# The unique ID of the tag assigned to the short link.
|
64
|
+
# Deprecated: Use `tagIds` instead. The unique ID of the tag assigned to the short link.
|
65
65
|
#
|
66
66
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
67
67
|
field :tag_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|