dub 0.2.2 → 0.3.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/utils → crystalline}/metadata_fields.rb +33 -20
- data/lib/{open_api_sdk/utils → crystalline}/t.rb +1 -1
- data/lib/crystalline/utils.rb +65 -0
- data/lib/crystalline.rb +12 -0
- data/lib/dub.rb +10 -6
- data/lib/open_api_sdk/analytics.rb +72 -17
- data/lib/open_api_sdk/commissions.rb +298 -0
- data/lib/open_api_sdk/customers.rb +709 -0
- data/lib/open_api_sdk/domains.rb +574 -88
- data/lib/open_api_sdk/dub.rb +57 -46
- data/lib/open_api_sdk/embed_tokens.rb +163 -0
- data/lib/open_api_sdk/events.rb +154 -0
- data/lib/open_api_sdk/folders.rb +570 -0
- data/lib/open_api_sdk/links.rb +799 -188
- data/lib/open_api_sdk/models/operations/accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +7 -7
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +9 -6
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/checkdomainstatus_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/checkdomainstatus_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/click.rb +24 -0
- data/lib/open_api_sdk/models/operations/color.rb +1 -2
- data/lib/open_api_sdk/models/operations/country.rb +266 -0
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/createcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +16 -4
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/createfolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/createlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createpartner_link.rb +48 -0
- data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +45 -0
- data/lib/open_api_sdk/models/operations/{trackcustomer_response.rb → createpartner_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +104 -0
- data/lib/open_api_sdk/models/operations/createpartner_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/createpartner_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +266 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb +30 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/customer.rb +33 -0
- data/lib/open_api_sdk/models/operations/data.rb +59 -12
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletefolder_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletefolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletefolder_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/event.rb +2 -3
- data/lib/open_api_sdk/models/operations/getcustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/getcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/getcustomers_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_request.rb +51 -0
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomers_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomers_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +26 -11
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +14 -8
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +14 -5
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_request.rb +39 -0
- data/lib/open_api_sdk/models/operations/gettags_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/groupby.rb +13 -4
- data/lib/open_api_sdk/models/operations/interval.rb +5 -5
- data/lib/open_api_sdk/models/operations/level.rb +1 -2
- data/lib/open_api_sdk/models/operations/link.rb +48 -0
- data/lib/open_api_sdk/models/operations/linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/listcommissions_request.rb +60 -0
- data/lib/open_api_sdk/models/operations/listcommissions_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/listcommissions_responsebody.rb +51 -0
- data/lib/open_api_sdk/models/operations/listcommissions_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/listcommissions_type.rb +20 -0
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +33 -0
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/listevents_request.rb +138 -0
- data/lib/open_api_sdk/models/operations/listevents_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/listfolders_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/listfolders_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/mode.rb +18 -0
- data/lib/open_api_sdk/models/operations/order.rb +20 -0
- data/lib/open_api_sdk/models/operations/partner.rb +45 -0
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +3 -2
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +19 -0
- data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +19 -0
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/queryparam_sortby.rb +17 -0
- data/lib/open_api_sdk/models/operations/queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/queryparam_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +18 -0
- data/lib/open_api_sdk/models/operations/registerdomain_requestbody.rb +24 -0
- data/lib/open_api_sdk/models/operations/registerdomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/registerdomain_responsebody.rb +30 -0
- data/lib/open_api_sdk/models/operations/requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +60 -15
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/retrievelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +42 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/sale.rb +36 -0
- data/lib/open_api_sdk/models/operations/sort.rb +5 -3
- data/lib/open_api_sdk/models/operations/sortby.rb +20 -0
- data/lib/open_api_sdk/models/operations/sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/status.rb +20 -0
- data/lib/open_api_sdk/models/operations/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +19 -13
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +8 -23
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +36 -0
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +15 -12
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +8 -20
- data/lib/open_api_sdk/models/operations/trigger.rb +18 -0
- data/lib/open_api_sdk/models/operations/type.rb +20 -0
- data/lib/open_api_sdk/models/operations/updatecommission_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatecommission_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecommission_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecommission_responsebody.rb +51 -0
- data/lib/open_api_sdk/models/operations/updatecommission_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/updatecommission_type.rb +20 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +16 -4
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatefolder_accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatefolder_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatefolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +61 -17
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +1 -2
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +13 -4
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations.rb +149 -25
- data/lib/open_api_sdk/models/shared/accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/shared/badrequest.rb +3 -3
- data/lib/open_api_sdk/models/shared/code.rb +1 -2
- data/lib/open_api_sdk/models/shared/color.rb +1 -2
- data/lib/open_api_sdk/models/shared/conflict.rb +3 -3
- data/lib/open_api_sdk/models/shared/conflict_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/conflict_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/continentcode.rb +23 -0
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -3
- data/lib/open_api_sdk/models/shared/domains.rb +7 -4
- data/lib/open_api_sdk/models/shared/domainschema.rb +19 -4
- data/lib/open_api_sdk/models/shared/error.rb +2 -2
- data/lib/open_api_sdk/models/shared/folderschema.rb +39 -0
- data/lib/open_api_sdk/models/shared/forbidden.rb +3 -3
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/geo.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror.rb +3 -3
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +3 -3
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkschema.rb +42 -12
- data/lib/open_api_sdk/models/shared/notfound.rb +3 -3
- data/lib/open_api_sdk/models/shared/notfound_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/notfound_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/plan.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +3 -3
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/registereddomain.rb +30 -0
- data/lib/open_api_sdk/models/shared/role.rb +1 -2
- data/lib/open_api_sdk/models/shared/security.rb +4 -4
- data/lib/open_api_sdk/models/shared/tagschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/shared/type.rb +18 -0
- data/lib/open_api_sdk/models/shared/unauthorized.rb +3 -3
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +3 -3
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/users.rb +7 -4
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +50 -8
- data/lib/open_api_sdk/models/shared.rb +8 -2
- data/lib/open_api_sdk/partners.rb +701 -0
- data/lib/open_api_sdk/qr_codes.rb +71 -17
- data/lib/open_api_sdk/sdk_hooks/hooks.rb +103 -0
- data/lib/open_api_sdk/sdk_hooks/registration.rb +35 -0
- data/lib/open_api_sdk/sdk_hooks/types.rb +152 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +33 -10
- data/lib/open_api_sdk/tags.rb +366 -68
- data/lib/open_api_sdk/track.rb +148 -122
- data/lib/open_api_sdk/utils/retries.rb +95 -0
- data/lib/open_api_sdk/utils/utils.rb +26 -60
- data/lib/open_api_sdk/workspaces.rb +145 -36
- metadata +198 -15
- data/lib/open_api_sdk/metatags.rb +0 -54
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +0 -33
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +0 -30
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +0 -33
@@ -0,0 +1,266 @@
|
|
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
|
+
# Country - The partner's country of residence. Must be passed as a 2-letter ISO 3166-1 country code. Learn more: https://d.to/geo
|
11
|
+
class Country < T::Enum
|
12
|
+
enums do
|
13
|
+
AF = new('AF')
|
14
|
+
AL = new('AL')
|
15
|
+
DZ = new('DZ')
|
16
|
+
AS = new('AS')
|
17
|
+
AD = new('AD')
|
18
|
+
AO = new('AO')
|
19
|
+
AI = new('AI')
|
20
|
+
AQ = new('AQ')
|
21
|
+
AG = new('AG')
|
22
|
+
AR = new('AR')
|
23
|
+
AM = new('AM')
|
24
|
+
AW = new('AW')
|
25
|
+
AU = new('AU')
|
26
|
+
AT = new('AT')
|
27
|
+
AZ = new('AZ')
|
28
|
+
BS = new('BS')
|
29
|
+
BH = new('BH')
|
30
|
+
BD = new('BD')
|
31
|
+
BB = new('BB')
|
32
|
+
BY = new('BY')
|
33
|
+
BE = new('BE')
|
34
|
+
BZ = new('BZ')
|
35
|
+
BJ = new('BJ')
|
36
|
+
BM = new('BM')
|
37
|
+
BT = new('BT')
|
38
|
+
BO = new('BO')
|
39
|
+
BA = new('BA')
|
40
|
+
BW = new('BW')
|
41
|
+
BV = new('BV')
|
42
|
+
BR = new('BR')
|
43
|
+
IO = new('IO')
|
44
|
+
BN = new('BN')
|
45
|
+
BG = new('BG')
|
46
|
+
BF = new('BF')
|
47
|
+
BI = new('BI')
|
48
|
+
KH = new('KH')
|
49
|
+
CM = new('CM')
|
50
|
+
CA = new('CA')
|
51
|
+
CV = new('CV')
|
52
|
+
KY = new('KY')
|
53
|
+
CF = new('CF')
|
54
|
+
TD = new('TD')
|
55
|
+
CL = new('CL')
|
56
|
+
CN = new('CN')
|
57
|
+
CX = new('CX')
|
58
|
+
CC = new('CC')
|
59
|
+
CO = new('CO')
|
60
|
+
KM = new('KM')
|
61
|
+
CG = new('CG')
|
62
|
+
CD = new('CD')
|
63
|
+
CK = new('CK')
|
64
|
+
CR = new('CR')
|
65
|
+
CI = new('CI')
|
66
|
+
HR = new('HR')
|
67
|
+
CU = new('CU')
|
68
|
+
CY = new('CY')
|
69
|
+
CZ = new('CZ')
|
70
|
+
DK = new('DK')
|
71
|
+
DJ = new('DJ')
|
72
|
+
DM = new('DM')
|
73
|
+
DO = new('DO')
|
74
|
+
EC = new('EC')
|
75
|
+
EG = new('EG')
|
76
|
+
SV = new('SV')
|
77
|
+
GQ = new('GQ')
|
78
|
+
ER = new('ER')
|
79
|
+
EE = new('EE')
|
80
|
+
ET = new('ET')
|
81
|
+
FK = new('FK')
|
82
|
+
FO = new('FO')
|
83
|
+
FJ = new('FJ')
|
84
|
+
FI = new('FI')
|
85
|
+
FR = new('FR')
|
86
|
+
GF = new('GF')
|
87
|
+
PF = new('PF')
|
88
|
+
TF = new('TF')
|
89
|
+
GA = new('GA')
|
90
|
+
GM = new('GM')
|
91
|
+
GE = new('GE')
|
92
|
+
DE = new('DE')
|
93
|
+
GH = new('GH')
|
94
|
+
GI = new('GI')
|
95
|
+
GR = new('GR')
|
96
|
+
GL = new('GL')
|
97
|
+
GD = new('GD')
|
98
|
+
GP = new('GP')
|
99
|
+
GU = new('GU')
|
100
|
+
GT = new('GT')
|
101
|
+
GN = new('GN')
|
102
|
+
GW = new('GW')
|
103
|
+
GY = new('GY')
|
104
|
+
HT = new('HT')
|
105
|
+
HM = new('HM')
|
106
|
+
VA = new('VA')
|
107
|
+
HN = new('HN')
|
108
|
+
HK = new('HK')
|
109
|
+
HU = new('HU')
|
110
|
+
IS = new('IS')
|
111
|
+
IN = new('IN')
|
112
|
+
ID = new('ID')
|
113
|
+
IR = new('IR')
|
114
|
+
IQ = new('IQ')
|
115
|
+
IE = new('IE')
|
116
|
+
IL = new('IL')
|
117
|
+
IT = new('IT')
|
118
|
+
JM = new('JM')
|
119
|
+
JP = new('JP')
|
120
|
+
JO = new('JO')
|
121
|
+
KZ = new('KZ')
|
122
|
+
KE = new('KE')
|
123
|
+
KI = new('KI')
|
124
|
+
KP = new('KP')
|
125
|
+
KR = new('KR')
|
126
|
+
KW = new('KW')
|
127
|
+
KG = new('KG')
|
128
|
+
LA = new('LA')
|
129
|
+
LV = new('LV')
|
130
|
+
LB = new('LB')
|
131
|
+
LS = new('LS')
|
132
|
+
LR = new('LR')
|
133
|
+
LY = new('LY')
|
134
|
+
LI = new('LI')
|
135
|
+
LT = new('LT')
|
136
|
+
LU = new('LU')
|
137
|
+
MO = new('MO')
|
138
|
+
MG = new('MG')
|
139
|
+
MW = new('MW')
|
140
|
+
MY = new('MY')
|
141
|
+
MV = new('MV')
|
142
|
+
ML = new('ML')
|
143
|
+
MT = new('MT')
|
144
|
+
MH = new('MH')
|
145
|
+
MQ = new('MQ')
|
146
|
+
MR = new('MR')
|
147
|
+
MU = new('MU')
|
148
|
+
YT = new('YT')
|
149
|
+
MX = new('MX')
|
150
|
+
FM = new('FM')
|
151
|
+
MD = new('MD')
|
152
|
+
MC = new('MC')
|
153
|
+
MN = new('MN')
|
154
|
+
MS = new('MS')
|
155
|
+
MA = new('MA')
|
156
|
+
MZ = new('MZ')
|
157
|
+
MM = new('MM')
|
158
|
+
NA = new('NA')
|
159
|
+
NR = new('NR')
|
160
|
+
NP = new('NP')
|
161
|
+
NL = new('NL')
|
162
|
+
NC = new('NC')
|
163
|
+
NZ = new('NZ')
|
164
|
+
NI = new('NI')
|
165
|
+
NE = new('NE')
|
166
|
+
NG = new('NG')
|
167
|
+
NU = new('NU')
|
168
|
+
NF = new('NF')
|
169
|
+
MK = new('MK')
|
170
|
+
MP = new('MP')
|
171
|
+
NO = new('NO')
|
172
|
+
OM = new('OM')
|
173
|
+
PK = new('PK')
|
174
|
+
PW = new('PW')
|
175
|
+
PS = new('PS')
|
176
|
+
PA = new('PA')
|
177
|
+
PG = new('PG')
|
178
|
+
PY = new('PY')
|
179
|
+
PE = new('PE')
|
180
|
+
PH = new('PH')
|
181
|
+
PN = new('PN')
|
182
|
+
PL = new('PL')
|
183
|
+
PT = new('PT')
|
184
|
+
PR = new('PR')
|
185
|
+
QA = new('QA')
|
186
|
+
RE = new('RE')
|
187
|
+
RO = new('RO')
|
188
|
+
RU = new('RU')
|
189
|
+
RW = new('RW')
|
190
|
+
SH = new('SH')
|
191
|
+
KN = new('KN')
|
192
|
+
LC = new('LC')
|
193
|
+
PM = new('PM')
|
194
|
+
VC = new('VC')
|
195
|
+
WS = new('WS')
|
196
|
+
SM = new('SM')
|
197
|
+
ST = new('ST')
|
198
|
+
SA = new('SA')
|
199
|
+
SN = new('SN')
|
200
|
+
SC = new('SC')
|
201
|
+
SL = new('SL')
|
202
|
+
SG = new('SG')
|
203
|
+
SK = new('SK')
|
204
|
+
SI = new('SI')
|
205
|
+
SB = new('SB')
|
206
|
+
SO = new('SO')
|
207
|
+
ZA = new('ZA')
|
208
|
+
GS = new('GS')
|
209
|
+
ES = new('ES')
|
210
|
+
LK = new('LK')
|
211
|
+
SD = new('SD')
|
212
|
+
SR = new('SR')
|
213
|
+
SJ = new('SJ')
|
214
|
+
SZ = new('SZ')
|
215
|
+
SE = new('SE')
|
216
|
+
CH = new('CH')
|
217
|
+
SY = new('SY')
|
218
|
+
TW = new('TW')
|
219
|
+
TJ = new('TJ')
|
220
|
+
TZ = new('TZ')
|
221
|
+
TH = new('TH')
|
222
|
+
TL = new('TL')
|
223
|
+
TG = new('TG')
|
224
|
+
TK = new('TK')
|
225
|
+
TO = new('TO')
|
226
|
+
TT = new('TT')
|
227
|
+
TN = new('TN')
|
228
|
+
TR = new('TR')
|
229
|
+
TM = new('TM')
|
230
|
+
TC = new('TC')
|
231
|
+
TV = new('TV')
|
232
|
+
UG = new('UG')
|
233
|
+
UA = new('UA')
|
234
|
+
AE = new('AE')
|
235
|
+
GB = new('GB')
|
236
|
+
US = new('US')
|
237
|
+
UM = new('UM')
|
238
|
+
UY = new('UY')
|
239
|
+
UZ = new('UZ')
|
240
|
+
VU = new('VU')
|
241
|
+
VE = new('VE')
|
242
|
+
VN = new('VN')
|
243
|
+
VG = new('VG')
|
244
|
+
VI = new('VI')
|
245
|
+
WF = new('WF')
|
246
|
+
EH = new('EH')
|
247
|
+
YE = new('YE')
|
248
|
+
ZM = new('ZM')
|
249
|
+
ZW = new('ZW')
|
250
|
+
AX = new('AX')
|
251
|
+
BQ = new('BQ')
|
252
|
+
CW = new('CW')
|
253
|
+
GG = new('GG')
|
254
|
+
IM = new('IM')
|
255
|
+
JE = new('JE')
|
256
|
+
ME = new('ME')
|
257
|
+
BL = new('BL')
|
258
|
+
MF = new('MF')
|
259
|
+
RS = new('RS')
|
260
|
+
SX = new('SX')
|
261
|
+
SS = new('SS')
|
262
|
+
XK = new('XK')
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
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 CreateCustomerDiscount < ::Crystalline::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 :default, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('default') } }
|
22
|
+
|
23
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
24
|
+
|
25
|
+
field :max_duration, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('maxDuration') } }
|
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
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
30
|
+
|
31
|
+
field :partners_count, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersCount') } }
|
32
|
+
|
33
|
+
|
34
|
+
sig { params(amount: ::Float, coupon_id: ::String, coupon_test_id: ::String, default: T::Boolean, id: ::String, max_duration: ::Float, type: ::OpenApiSDK::Operations::CreateCustomerType, description: T.nilable(::String), partners_count: T.nilable(::Float)).void }
|
35
|
+
def initialize(amount: nil, coupon_id: nil, coupon_test_id: nil, default: nil, id: nil, max_duration: nil, type: nil, description: nil, partners_count: nil)
|
36
|
+
@amount = amount
|
37
|
+
@coupon_id = coupon_id
|
38
|
+
@coupon_test_id = coupon_test_id
|
39
|
+
@default = default
|
40
|
+
@id = id
|
41
|
+
@max_duration = max_duration
|
42
|
+
@type = type
|
43
|
+
@description = description
|
44
|
+
@partners_count = partners_count
|
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 CreateCustomerLink < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
|
15
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
16
|
+
# The unique ID of the short link.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
19
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
20
|
+
# The ID of the program the short link is associated with.
|
21
|
+
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
22
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
23
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
24
|
+
# The destination URL of the short link.
|
25
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String, url: ::String).void }
|
29
|
+
def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil, url: nil)
|
30
|
+
@domain = domain
|
31
|
+
@id = id
|
32
|
+
@key = key
|
33
|
+
@program_id = program_id
|
34
|
+
@short_link = short_link
|
35
|
+
@url = url
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
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 < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The partner's email address. Should be a unique value across Dub.
|
15
|
+
field :email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
16
|
+
# The partner's unique ID on Dub.
|
17
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
# The partner's avatar image.
|
19
|
+
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
20
|
+
# The partner's full legal name.
|
21
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(email: ::String, id: ::String, image: ::String, name: ::String).void }
|
25
|
+
def initialize(email: nil, id: nil, image: nil, name: nil)
|
26
|
+
@email = email
|
27
|
+
@id = id
|
28
|
+
@image = image
|
29
|
+
@name = name
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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 CreateCustomerRequestBody < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier for the customer in the client's app.
|
15
|
+
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
16
|
+
# Avatar URL of the customer in the client's app.
|
17
|
+
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
18
|
+
# Email of the customer in the client's app.
|
19
|
+
field :email, T.nilable(::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, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(external_id: ::String, avatar: T.nilable(::String), email: T.nilable(::String), name: T.nilable(::String)).void }
|
25
|
+
def initialize(external_id: nil, avatar: nil, email: nil, name: nil)
|
26
|
+
@external_id = external_id
|
27
|
+
@avatar = avatar
|
28
|
+
@email = email
|
29
|
+
@name = name
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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 CreateCustomerResponse < ::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 customer was created.
|
33
|
+
field :object, T.nilable(::OpenApiSDK::Operations::CreateCustomerResponseBody)
|
34
|
+
# The user has sent too many requests in a given amount of time ("rate limiting")
|
35
|
+
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
36
|
+
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
37
|
+
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
|
+
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
|
+
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::CreateCustomerResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@raw_response = raw_response
|
46
|
+
@status_code = status_code
|
47
|
+
@bad_request = bad_request
|
48
|
+
@conflict = conflict
|
49
|
+
@forbidden = forbidden
|
50
|
+
@internal_server_error = internal_server_error
|
51
|
+
@invite_expired = invite_expired
|
52
|
+
@not_found = not_found
|
53
|
+
@object = object
|
54
|
+
@rate_limit_exceeded = rate_limit_exceeded
|
55
|
+
@unauthorized = unauthorized
|
56
|
+
@unprocessable_entity = unprocessable_entity
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -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
|
+
# The customer was created.
|
11
|
+
class CreateCustomerResponseBody < ::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
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::CreateCustomerDiscount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
28
|
+
# Email of the customer.
|
29
|
+
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
30
|
+
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
35
|
+
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::CreateCustomerDiscount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), partner: T.nilable(::OpenApiSDK::Operations::CreateCustomerPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
44
|
+
@created_at = created_at
|
45
|
+
@external_id = external_id
|
46
|
+
@id = id
|
47
|
+
@name = name
|
48
|
+
@avatar = avatar
|
49
|
+
@country = country
|
50
|
+
@discount = discount
|
51
|
+
@email = email
|
52
|
+
@link = link
|
53
|
+
@partner = partner
|
54
|
+
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,24 +8,36 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class CreateDomainRequestBody < ::
|
11
|
+
class CreateDomainRequestBody < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# Name of the domain.
|
15
15
|
field :slug, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
|
16
|
+
# apple-app-site-association configuration file (for deep link support on iOS).
|
17
|
+
field :apple_app_site_association, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('appleAppSiteAssociation') } }
|
16
18
|
# Whether to archive this domain. `false` will unarchive a previously archived domain.
|
17
19
|
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
20
|
+
# assetLinks.json configuration file (for deep link support on Android).
|
21
|
+
field :asset_links, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('assetLinks') } }
|
18
22
|
# Redirect users to a specific URL when any link under this domain has expired.
|
19
23
|
field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
24
|
+
# The logo of the domain.
|
25
|
+
field :logo, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
|
26
|
+
# Redirect users to a specific URL when a link under this domain doesn't exist.
|
27
|
+
field :not_found_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('notFoundUrl') } }
|
20
28
|
# Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
|
21
29
|
field :placeholder, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } }
|
22
30
|
|
23
31
|
|
24
|
-
sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), placeholder: T.nilable(::String)).void }
|
25
|
-
def initialize(slug: nil, archived: nil, expired_url: nil, placeholder: nil)
|
32
|
+
sig { params(slug: ::String, apple_app_site_association: T.nilable(::String), archived: T.nilable(T::Boolean), asset_links: T.nilable(::String), expired_url: T.nilable(::String), logo: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String)).void }
|
33
|
+
def initialize(slug: nil, apple_app_site_association: nil, archived: nil, asset_links: nil, expired_url: nil, logo: nil, not_found_url: nil, placeholder: nil)
|
26
34
|
@slug = slug
|
35
|
+
@apple_app_site_association = apple_app_site_association
|
27
36
|
@archived = archived
|
37
|
+
@asset_links = asset_links
|
28
38
|
@expired_url = expired_url
|
39
|
+
@logo = logo
|
40
|
+
@not_found_url = not_found_url
|
29
41
|
@placeholder = placeholder
|
30
42
|
end
|
31
43
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class CreateDomainResponse < ::
|
11
|
+
class CreateDomainResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -0,0 +1,27 @@
|
|
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 CreateFolderRequestBody < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The name of the folder.
|
15
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
16
|
+
# The access level of the folder within the workspace.
|
17
|
+
field :access_level, T.nilable(::OpenApiSDK::Operations::AccessLevel), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('accessLevel'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::AccessLevel, true) } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(name: ::String, access_level: T.nilable(::OpenApiSDK::Operations::AccessLevel)).void }
|
21
|
+
def initialize(name: nil, access_level: nil)
|
22
|
+
@name = name
|
23
|
+
@access_level = access_level
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|