clerk-sdk-ruby 8.0.0 → 8.0.1
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/clerk/actortokens.rb +1 -1
- data/lib/clerk/billing.rb +336 -0
- data/lib/clerk/directories.rb +1534 -0
- data/lib/clerk/domains.rb +7 -4
- data/lib/clerk/models/components/amount_off.rb +44 -0
- data/lib/clerk/models/components/amount_off.rbi +19 -0
- data/lib/clerk/models/components/applycommercediscountrequest.rb +32 -0
- data/lib/clerk/models/components/applycommercediscountrequest.rbi +13 -0
- data/lib/clerk/models/components/automation_disposition.rb +21 -0
- data/lib/clerk/models/components/automation_disposition.rbi +11 -0
- data/lib/clerk/models/components/billingstatement.rb +1 -1
- data/lib/clerk/models/components/{group.rb → billingstatement_group.rb} +1 -1
- data/lib/clerk/models/components/{group.rbi → billingstatement_group.rbi} +2 -2
- data/lib/clerk/models/components/biometriccredential.rb +72 -0
- data/lib/clerk/models/components/biometriccredential.rbi +33 -0
- data/lib/clerk/models/components/biometriccredential_algorithm.rb +19 -0
- data/lib/clerk/models/components/biometriccredential_algorithm.rbi +11 -0
- data/lib/clerk/models/components/biometriccredential_list.rb +36 -0
- data/lib/clerk/models/components/biometriccredential_list.rbi +15 -0
- data/lib/clerk/models/components/biometriccredential_object.rb +19 -0
- data/lib/clerk/models/components/biometriccredential_object.rbi +11 -0
- data/lib/clerk/models/components/biometriccredential_platform.rb +20 -0
- data/lib/clerk/models/components/biometriccredential_platform.rbi +11 -0
- data/lib/clerk/models/components/biometriccredential_status.rb +20 -0
- data/lib/clerk/models/components/biometriccredential_status.rbi +11 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse.rb +93 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse.rbi +43 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_amount.rb +45 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_amount.rbi +19 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_object.rb +19 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_object.rbi +11 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_status.rb +21 -0
- data/lib/clerk/models/components/commercediscountredemptionresponse_status.rbi +11 -0
- data/lib/clerk/models/components/createbillingpricerequest.rb +2 -2
- data/lib/clerk/models/components/directory.rb +80 -0
- data/lib/clerk/models/components/directory.rbi +37 -0
- data/lib/clerk/models/components/directory_custom_attribute.rb +52 -0
- data/lib/clerk/models/components/directory_custom_attribute.rbi +23 -0
- data/lib/clerk/models/components/directory_group.rb +36 -0
- data/lib/clerk/models/components/directory_group.rbi +15 -0
- data/lib/clerk/models/components/directory_list.rb +36 -0
- data/lib/clerk/models/components/directory_list.rbi +15 -0
- data/lib/clerk/models/components/directory_object.rb +19 -0
- data/lib/clerk/models/components/directory_object.rbi +11 -0
- data/lib/clerk/models/components/directorygrouprolemapping.rb +76 -0
- data/lib/clerk/models/components/directorygrouprolemapping.rbi +35 -0
- data/lib/clerk/models/components/directorygrouprolemapping_deleted.rb +43 -0
- data/lib/clerk/models/components/directorygrouprolemapping_deleted.rbi +17 -0
- data/lib/clerk/models/components/directorygrouprolemapping_deleted_object.rb +19 -0
- data/lib/clerk/models/components/directorygrouprolemapping_deleted_object.rbi +11 -0
- data/lib/clerk/models/components/directorygrouprolemapping_list.rb +36 -0
- data/lib/clerk/models/components/directorygrouprolemapping_list.rbi +15 -0
- data/lib/clerk/models/components/directorygrouprolemapping_object.rb +19 -0
- data/lib/clerk/models/components/directorygrouprolemapping_object.rbi +11 -0
- data/lib/clerk/models/components/dnstarget.rb +49 -0
- data/lib/clerk/models/components/dnstarget.rbi +21 -0
- data/lib/clerk/models/components/domain.rb +7 -2
- data/lib/clerk/models/components/domain.rbi +2 -0
- data/lib/clerk/models/components/effect.rb +20 -0
- data/lib/clerk/models/components/{platform.rbi → effect.rbi} +2 -2
- data/lib/clerk/models/components/enterpriseconnection_custom_attribute.rb +5 -1
- data/lib/clerk/models/components/enterpriseconnection_custom_attribute.rbi +2 -0
- data/lib/clerk/models/components/instance.rb +13 -1
- data/lib/clerk/models/components/instance.rbi +6 -0
- data/lib/clerk/models/components/instanceprotect.rb +10 -2
- data/lib/clerk/models/components/instanceprotect.rbi +4 -0
- data/lib/clerk/models/components/instancesettings.rb +1 -1
- data/lib/clerk/models/components/level.rb +21 -0
- data/lib/clerk/models/components/{algorithm.rbi → level.rbi} +2 -2
- data/lib/clerk/models/components/oauthapplication.rb +7 -2
- data/lib/clerk/models/components/oauthapplication.rbi +2 -0
- data/lib/clerk/models/components/oauthapplicationsettings.rb +11 -2
- data/lib/clerk/models/components/oauthapplicationsettings.rbi +4 -0
- data/lib/clerk/models/components/oauthapplicationwithsecret.rb +7 -2
- data/lib/clerk/models/components/oauthapplicationwithsecret.rbi +2 -0
- data/lib/clerk/models/components/organization.rb +6 -1
- data/lib/clerk/models/components/organization.rbi +2 -0
- data/lib/clerk/models/components/organizationmembership_organization.rb +6 -1
- data/lib/clerk/models/components/organizationmembership_organization.rbi +2 -0
- data/lib/clerk/models/components/organizationwithlogo.rb +6 -1
- data/lib/clerk/models/components/organizationwithlogo.rbi +2 -0
- data/lib/clerk/models/components/record_type.rb +20 -0
- data/lib/clerk/models/components/record_type.rbi +11 -0
- data/lib/clerk/models/components/reverification.rb +74 -0
- data/lib/clerk/models/components/reverification.rbi +31 -0
- data/lib/clerk/models/components/reverification_object.rb +20 -0
- data/lib/clerk/models/components/reverification_object.rbi +11 -0
- data/lib/clerk/models/components/reverification_status.rb +21 -0
- data/lib/clerk/models/components/reverification_status.rbi +11 -0
- data/lib/clerk/models/components/scim_group.rb +36 -0
- data/lib/clerk/models/components/scim_group.rbi +15 -0
- data/lib/clerk/models/components/scimdirectory.rb +8 -8
- data/lib/clerk/models/components/scimdirectory_custom_attribute.rb +5 -1
- data/lib/clerk/models/components/scimdirectory_custom_attribute.rbi +2 -0
- data/lib/clerk/models/components/scimdirectory_list.rb +2 -2
- data/lib/clerk/models/components/scimgrouprolemapping.rb +14 -2
- data/lib/clerk/models/components/scimgrouprolemapping.rbi +6 -0
- data/lib/clerk/models/components/scimusermetadata.rb +64 -0
- data/lib/clerk/models/components/scimusermetadata.rbi +27 -0
- data/lib/clerk/models/components/scimusermetadata_group.rb +36 -0
- data/lib/clerk/models/components/scimusermetadata_group.rbi +15 -0
- data/lib/clerk/models/components/source.rb +21 -0
- data/lib/clerk/models/components/source.rbi +11 -0
- data/lib/clerk/models/components/trusteddevice.rb +2 -2
- data/lib/clerk/models/components/{algorithm.rb → trusteddevice_algorithm.rb} +1 -1
- data/lib/clerk/models/components/trusteddevice_algorithm.rbi +11 -0
- data/lib/clerk/models/components/{platform.rb → trusteddevice_platform.rb} +1 -1
- data/lib/clerk/models/components/trusteddevice_platform.rbi +11 -0
- data/lib/clerk/models/components/user.rb +16 -3
- data/lib/clerk/models/components/user.rbi +4 -0
- data/lib/clerk/models/components/user_directory.rb +65 -0
- data/lib/clerk/models/components/user_directory.rbi +27 -0
- data/lib/clerk/models/components/user_scim.rb +27 -6
- data/lib/clerk/models/components/user_scim.rbi +10 -0
- data/lib/clerk/models/components.rb +38 -3
- data/lib/clerk/models/operations/adddomain_request.rb +3 -6
- data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_request.rb +36 -0
- data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_request.rbi +15 -0
- data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_response.rb +44 -0
- data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_response.rbi +19 -0
- data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rb +5 -1
- data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rbi +2 -0
- data/lib/clerk/models/operations/createdirectory_group_role_mapping.rb +52 -0
- data/lib/clerk/models/operations/createdirectory_group_role_mapping.rbi +23 -0
- data/lib/clerk/models/operations/createdirectory_request.rb +44 -0
- data/lib/clerk/models/operations/createdirectory_request.rbi +19 -0
- data/lib/clerk/models/operations/createdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/createdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_request.rb +36 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_request.rbi +15 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_requestbody.rb +46 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_requestbody.rbi +19 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_response.rb +44 -0
- data/lib/clerk/models/operations/createdirectorygrouprolemapping_response.rbi +19 -0
- data/lib/clerk/models/operations/createenterpriseconnection_custom_attribute.rb +5 -1
- data/lib/clerk/models/operations/createenterpriseconnection_custom_attribute.rbi +2 -0
- data/lib/clerk/models/operations/createoauthapplication_request.rb +6 -2
- data/lib/clerk/models/operations/createoauthapplication_request.rbi +2 -0
- data/lib/clerk/models/operations/{group_role_mapping.rb → createscimdirectory_group_role_mapping.rb} +1 -1
- data/lib/clerk/models/operations/{group_role_mapping.rbi → createscimdirectory_group_role_mapping.rbi} +2 -2
- data/lib/clerk/models/operations/createscimdirectory_request.rb +4 -4
- data/lib/clerk/models/operations/createscimdirectory_response.rb +1 -1
- data/lib/clerk/models/operations/createscimgrouprolemapping_request.rb +1 -1
- data/lib/clerk/models/operations/createuser_request.rb +8 -2
- data/lib/clerk/models/operations/createuser_request.rbi +2 -0
- data/lib/clerk/models/operations/deletedirectory_request.rb +32 -0
- data/lib/clerk/models/operations/deletedirectory_request.rbi +13 -0
- data/lib/clerk/models/operations/deletedirectory_response.rb +44 -0
- data/lib/clerk/models/operations/deletedirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/deletedirectorygrouprolemapping_request.rb +36 -0
- data/lib/clerk/models/operations/deletedirectorygrouprolemapping_request.rbi +15 -0
- data/lib/clerk/models/operations/deletedirectorygrouprolemapping_response.rb +44 -0
- data/lib/clerk/models/operations/deletedirectorygrouprolemapping_response.rbi +19 -0
- data/lib/clerk/models/operations/deletedomain_request.rb +1 -1
- data/lib/clerk/models/operations/deletescimdirectory_request.rb +1 -1
- data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rb +1 -1
- data/lib/clerk/models/operations/getdirectory_request.rb +32 -0
- data/lib/clerk/models/operations/getdirectory_request.rbi +13 -0
- data/lib/clerk/models/operations/getdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/getdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/getreverification_request.rb +36 -0
- data/lib/clerk/models/operations/getreverification_request.rbi +15 -0
- data/lib/clerk/models/operations/getreverification_response.rb +44 -0
- data/lib/clerk/models/operations/getreverification_response.rbi +19 -0
- data/lib/clerk/models/operations/getscimdirectory_request.rb +1 -1
- data/lib/clerk/models/operations/getscimdirectory_response.rb +1 -1
- data/lib/clerk/models/operations/getuserlist_request.rb +13 -1
- data/lib/clerk/models/operations/getuserlist_request.rbi +2 -0
- data/lib/clerk/models/operations/listdirectories_request.rb +39 -0
- data/lib/clerk/models/operations/listdirectories_request.rbi +15 -0
- data/lib/clerk/models/operations/listdirectories_response.rb +44 -0
- data/lib/clerk/models/operations/listdirectories_response.rbi +19 -0
- data/lib/clerk/models/operations/listdirectorygrouprolemappings_request.rb +32 -0
- data/lib/clerk/models/operations/listdirectorygrouprolemappings_request.rbi +13 -0
- data/lib/clerk/models/operations/listdirectorygrouprolemappings_response.rb +44 -0
- data/lib/clerk/models/operations/listdirectorygrouprolemappings_response.rbi +19 -0
- data/lib/clerk/models/operations/listoauthapplications_request.rb +2 -0
- data/lib/clerk/models/operations/listscimdirectories_response.rb +1 -1
- data/lib/clerk/models/operations/listscimgrouprolemappings_request.rb +1 -1
- data/lib/clerk/models/operations/listuserbiometriccredentials_request.rb +32 -0
- data/lib/clerk/models/operations/listuserbiometriccredentials_request.rbi +13 -0
- data/lib/clerk/models/operations/listuserbiometriccredentials_response.rb +44 -0
- data/lib/clerk/models/operations/listuserbiometriccredentials_response.rbi +19 -0
- data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_request.rb +36 -0
- data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_request.rbi +15 -0
- data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_response.rb +44 -0
- data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_response.rbi +19 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_mapping.rb +40 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_mapping.rbi +17 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_request.rb +36 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_request.rbi +15 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_requestbody.rb +32 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_response.rb +44 -0
- data/lib/clerk/models/operations/replacedirectorygrouprolemappings_response.rbi +19 -0
- data/lib/clerk/models/operations/{mapping.rb → replacescimgrouprolemappings_mapping.rb} +1 -1
- data/lib/clerk/models/operations/{mapping.rbi → replacescimgrouprolemappings_mapping.rbi} +2 -2
- data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rb +1 -1
- data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rb +1 -1
- data/lib/clerk/models/operations/revokeuserbiometriccredential_request.rb +36 -0
- data/lib/clerk/models/operations/revokeuserbiometriccredential_request.rbi +15 -0
- data/lib/clerk/models/operations/revokeuserbiometriccredential_response.rb +44 -0
- data/lib/clerk/models/operations/revokeuserbiometriccredential_response.rbi +19 -0
- data/lib/clerk/models/operations/rotatedirectoryapikey_request.rb +32 -0
- data/lib/clerk/models/operations/rotatedirectoryapikey_request.rbi +13 -0
- data/lib/clerk/models/operations/rotatedirectoryapikey_response.rb +44 -0
- data/lib/clerk/models/operations/rotatedirectoryapikey_response.rbi +19 -0
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rb +1 -1
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rb +1 -1
- data/lib/clerk/models/operations/updatedirectory_request.rb +36 -0
- data/lib/clerk/models/operations/updatedirectory_request.rbi +15 -0
- data/lib/clerk/models/operations/updatedirectory_requestbody.rb +49 -0
- data/lib/clerk/models/operations/updatedirectory_requestbody.rbi +21 -0
- data/lib/clerk/models/operations/updatedirectory_response.rb +44 -0
- data/lib/clerk/models/operations/updatedirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_custom_attribute.rb +5 -1
- data/lib/clerk/models/operations/updateenterpriseconnection_custom_attribute.rbi +2 -0
- data/lib/clerk/models/operations/updateinstance_request.rb +15 -5
- data/lib/clerk/models/operations/updateinstance_request.rbi +6 -2
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +11 -2
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +4 -0
- data/lib/clerk/models/operations/updateinstanceprotect_request.rb +1 -1
- data/lib/clerk/models/operations/updateoauthapplication_requestbody.rb +9 -5
- data/lib/clerk/models/operations/updateoauthapplication_requestbody.rbi +4 -2
- data/lib/clerk/models/operations/updateorganization_requestbody.rb +6 -1
- data/lib/clerk/models/operations/updateorganization_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updatescimdirectory_request.rb +1 -1
- data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +4 -4
- data/lib/clerk/models/operations/updatescimdirectory_response.rb +1 -1
- data/lib/clerk/models/operations/updateuser_requestbody.rb +1 -1
- data/lib/clerk/models/operations.rb +37 -2
- data/lib/clerk/openapiclient.rb +2 -1
- data/lib/clerk/phonenumbers.rb +10 -2
- data/lib/clerk/scimdirectories.rb +23 -20
- data/lib/clerk/sdk.rb +21 -1
- data/lib/clerk/sdkconfiguration.rb +3 -3
- data/lib/clerk/sessions.rb +146 -0
- data/lib/clerk/users.rb +329 -1
- data/lib/clerk/utils/utils.rb +6 -2
- data/lib/clerk_sdk_ruby.rb +1 -0
- data/test/clerk/org_permissions_v2_test.rb +130 -0
- metadata +154 -12
data/lib/clerk/domains.rb
CHANGED
|
@@ -168,7 +168,10 @@ module Clerk
|
|
|
168
168
|
# Add a new domain for your instance.
|
|
169
169
|
# Useful in the case of multi-domain instances, allows adding satellite domains to an instance.
|
|
170
170
|
# The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`.
|
|
171
|
-
#
|
|
171
|
+
# Set `is_satellite` to `true` to add a satellite domain.
|
|
172
|
+
# To migrate a production instance from an active provider domain to its first custom primary domain,
|
|
173
|
+
# set `is_satellite` to `false`. The custom domain becomes active and the provider domain stays attached.
|
|
174
|
+
# Additional custom primary domains are not supported.
|
|
172
175
|
# If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly.
|
|
173
176
|
url, params = @sdk_configuration.get_server_details
|
|
174
177
|
base_url = Utils.template_url(url, params)
|
|
@@ -315,9 +318,9 @@ module Clerk
|
|
|
315
318
|
|
|
316
319
|
|
|
317
320
|
def delete(domain_id:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
318
|
-
# delete - Delete a
|
|
319
|
-
# Deletes a
|
|
320
|
-
#
|
|
321
|
+
# delete - Delete a domain
|
|
322
|
+
# Deletes a domain for the instance.
|
|
323
|
+
# The instance's active domain cannot be deleted.
|
|
321
324
|
request = Models::Operations::DeleteDomainRequest.new(
|
|
322
325
|
domain_id: domain_id
|
|
323
326
|
)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# Fixed amount off when the effect is fixed_amount.
|
|
11
|
+
class AmountOff
|
|
12
|
+
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The amount in cents.
|
|
16
|
+
field :amount, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } }
|
|
17
|
+
# The formatted amount as a string (e.g., "$49.99").
|
|
18
|
+
field :amount_formatted, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount_formatted'), required: true } }
|
|
19
|
+
# The currency code (e.g., "USD").
|
|
20
|
+
field :currency, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency'), required: true } }
|
|
21
|
+
# The currency symbol (e.g., "$").
|
|
22
|
+
field :currency_symbol, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency_symbol'), required: true } }
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def initialize(amount:, amount_formatted:, currency:, currency_symbol:)
|
|
26
|
+
@amount = amount
|
|
27
|
+
@amount_formatted = amount_formatted
|
|
28
|
+
@currency = currency
|
|
29
|
+
@currency_symbol = currency_symbol
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def ==(other)
|
|
34
|
+
return false unless other.is_a? self.class
|
|
35
|
+
return false unless @amount == other.amount
|
|
36
|
+
return false unless @amount_formatted == other.amount_formatted
|
|
37
|
+
return false unless @currency == other.currency
|
|
38
|
+
return false unless @currency_symbol == other.currency_symbol
|
|
39
|
+
true
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Clerk::Models::Components::AmountOff
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Clerk::Models::Components::AmountOff
|
|
11
|
+
def amount(); end
|
|
12
|
+
def amount=(str_); end
|
|
13
|
+
def amount_formatted(); end
|
|
14
|
+
def amount_formatted=(str_); end
|
|
15
|
+
def currency(); end
|
|
16
|
+
def currency=(str_); end
|
|
17
|
+
def currency_symbol(); end
|
|
18
|
+
def currency_symbol=(str_); end
|
|
19
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class ApplyCommerceDiscountRequest
|
|
12
|
+
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# The ID of the discount to apply to the subscription item.
|
|
16
|
+
field :discount_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('discount_id'), required: true } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def initialize(discount_id:)
|
|
20
|
+
@discount_id = discount_id
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a? self.class
|
|
26
|
+
return false unless @discount_id == other.discount_id
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Clerk::Models::Components::ApplyCommerceDiscountRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Clerk::Models::Components::ApplyCommerceDiscountRequest
|
|
11
|
+
def discount_id(); end
|
|
12
|
+
def discount_id=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class AutomationDisposition
|
|
12
|
+
include ::Crystalline::Enum
|
|
13
|
+
enums do
|
|
14
|
+
ALREADY_SATISFIED = new('already_satisfied')
|
|
15
|
+
SAFE_TO_CREATE = new('safe_to_create')
|
|
16
|
+
MANUAL_RESOLUTION_REQUIRED = new('manual_resolution_required')
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -27,7 +27,7 @@ module Clerk
|
|
|
27
27
|
# Totals for the statement.
|
|
28
28
|
field :totals, Models::Components::BillingStatementTotals, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('totals'), required: true } }
|
|
29
29
|
# Array of statement groups.
|
|
30
|
-
field :groups, Crystalline::Array.new(Models::Components::
|
|
30
|
+
field :groups, Crystalline::Array.new(Models::Components::BillingStatementGroup), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('groups'), required: true } }
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def initialize(object:, id:, instance_id:, timestamp:, payer:, status:, totals:, groups:)
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class Clerk::Models::Components::
|
|
5
|
+
class Clerk::Models::Components::BillingStatementGroup
|
|
6
6
|
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class Clerk::Models::Components::
|
|
10
|
+
class Clerk::Models::Components::BillingStatementGroup
|
|
11
11
|
def object(); end
|
|
12
12
|
def object=(str_); end
|
|
13
13
|
def timestamp(); end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class BiometricCredential
|
|
12
|
+
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# String representing the object's type.
|
|
16
|
+
field :object, Models::Components::BiometricCredentialObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::BiometricCredentialObject, false) } }
|
|
17
|
+
|
|
18
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } }
|
|
19
|
+
|
|
20
|
+
field :platform, Models::Components::BiometricCredentialPlatform, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('platform'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::BiometricCredentialPlatform, false) } }
|
|
21
|
+
|
|
22
|
+
field :app_identifier, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('app_identifier'), required: true } }
|
|
23
|
+
|
|
24
|
+
field :algorithm, Models::Components::BiometricCredentialAlgorithm, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('algorithm'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::BiometricCredentialAlgorithm, false) } }
|
|
25
|
+
|
|
26
|
+
field :status, Models::Components::BiometricCredentialStatus, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('status'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::BiometricCredentialStatus, false) } }
|
|
27
|
+
# Unix timestamp of creation in milliseconds.
|
|
28
|
+
field :created_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at'), required: true } }
|
|
29
|
+
# Unix timestamp of the last update in milliseconds.
|
|
30
|
+
field :updated_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('updated_at'), required: true } }
|
|
31
|
+
|
|
32
|
+
field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name') } }
|
|
33
|
+
# Unix timestamp of the last use in milliseconds.
|
|
34
|
+
field :last_used_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('last_used_at') } }
|
|
35
|
+
# Unix timestamp of revocation in milliseconds.
|
|
36
|
+
field :revoked_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('revoked_at') } }
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def initialize(object:, id:, platform:, app_identifier:, algorithm:, status:, created_at:, updated_at:, name: nil, last_used_at: nil, revoked_at: nil)
|
|
40
|
+
@object = object
|
|
41
|
+
@id = id
|
|
42
|
+
@platform = platform
|
|
43
|
+
@app_identifier = app_identifier
|
|
44
|
+
@algorithm = algorithm
|
|
45
|
+
@status = status
|
|
46
|
+
@created_at = created_at
|
|
47
|
+
@updated_at = updated_at
|
|
48
|
+
@name = name
|
|
49
|
+
@last_used_at = last_used_at
|
|
50
|
+
@revoked_at = revoked_at
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def ==(other)
|
|
55
|
+
return false unless other.is_a? self.class
|
|
56
|
+
return false unless @object == other.object
|
|
57
|
+
return false unless @id == other.id
|
|
58
|
+
return false unless @platform == other.platform
|
|
59
|
+
return false unless @app_identifier == other.app_identifier
|
|
60
|
+
return false unless @algorithm == other.algorithm
|
|
61
|
+
return false unless @status == other.status
|
|
62
|
+
return false unless @created_at == other.created_at
|
|
63
|
+
return false unless @updated_at == other.updated_at
|
|
64
|
+
return false unless @name == other.name
|
|
65
|
+
return false unless @last_used_at == other.last_used_at
|
|
66
|
+
return false unless @revoked_at == other.revoked_at
|
|
67
|
+
true
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Clerk::Models::Components::BiometricCredential
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Clerk::Models::Components::BiometricCredential
|
|
11
|
+
def object(); end
|
|
12
|
+
def object=(str_); end
|
|
13
|
+
def id(); end
|
|
14
|
+
def id=(str_); end
|
|
15
|
+
def platform(); end
|
|
16
|
+
def platform=(str_); end
|
|
17
|
+
def app_identifier(); end
|
|
18
|
+
def app_identifier=(str_); end
|
|
19
|
+
def algorithm(); end
|
|
20
|
+
def algorithm=(str_); end
|
|
21
|
+
def status(); end
|
|
22
|
+
def status=(str_); end
|
|
23
|
+
def created_at(); end
|
|
24
|
+
def created_at=(str_); end
|
|
25
|
+
def updated_at(); end
|
|
26
|
+
def updated_at=(str_); end
|
|
27
|
+
def name(); end
|
|
28
|
+
def name=(str_); end
|
|
29
|
+
def last_used_at(); end
|
|
30
|
+
def last_used_at=(str_); end
|
|
31
|
+
def revoked_at(); end
|
|
32
|
+
def revoked_at=(str_); end
|
|
33
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class BiometricCredentialAlgorithm
|
|
12
|
+
include ::Crystalline::Enum
|
|
13
|
+
enums do
|
|
14
|
+
ES256 = new('ES256')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# Success
|
|
11
|
+
class BiometricCredentialList
|
|
12
|
+
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :data, Crystalline::Array.new(Models::Components::BiometricCredential), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('data'), required: true } }
|
|
17
|
+
# Total number of biometric credentials
|
|
18
|
+
field :total_count, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('total_count'), required: true } }
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def initialize(data:, total_count:)
|
|
22
|
+
@data = data
|
|
23
|
+
@total_count = total_count
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @data == other.data
|
|
30
|
+
return false unless @total_count == other.total_count
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Clerk::Models::Components::BiometricCredentialList
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Clerk::Models::Components::BiometricCredentialList
|
|
11
|
+
def data(); end
|
|
12
|
+
def data=(str_); end
|
|
13
|
+
def total_count(); end
|
|
14
|
+
def total_count=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# BiometricCredentialObject - String representing the object's type.
|
|
11
|
+
class BiometricCredentialObject
|
|
12
|
+
include ::Crystalline::Enum
|
|
13
|
+
enums do
|
|
14
|
+
TRUSTED_DEVICE = new('trusted_device')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class BiometricCredentialPlatform
|
|
12
|
+
include ::Crystalline::Enum
|
|
13
|
+
enums do
|
|
14
|
+
IOS = new('ios')
|
|
15
|
+
ANDROID = new('android')
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class BiometricCredentialStatus
|
|
12
|
+
include ::Crystalline::Enum
|
|
13
|
+
enums do
|
|
14
|
+
ACTIVE = new('active')
|
|
15
|
+
REVOKED = new('revoked')
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: false
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Clerk
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# A commerce discount redemption.
|
|
11
|
+
class CommerceDiscountRedemptionResponse
|
|
12
|
+
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
16
|
+
field :object, Models::Components::CommerceDiscountRedemptionResponseObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceDiscountRedemptionResponseObject, false) } }
|
|
17
|
+
# Unique identifier for the discount redemption.
|
|
18
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } }
|
|
19
|
+
# Unique identifier for the subscription item the discount was applied to.
|
|
20
|
+
field :subscription_item_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('subscription_item_id'), required: true } }
|
|
21
|
+
# Unique identifier for the discount that was applied.
|
|
22
|
+
field :discount_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('discount_id'), required: true } }
|
|
23
|
+
# How the discount was applied to the subscription item.
|
|
24
|
+
field :source, Models::Components::Source, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('source'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::Source, false) } }
|
|
25
|
+
# Number of billing cycles the discount has already been applied to.
|
|
26
|
+
field :cycles_applied, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('cycles_applied'), required: true } }
|
|
27
|
+
# Unix timestamp (in milliseconds) when the discount was redeemed.
|
|
28
|
+
field :redeemed_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('redeemed_at'), required: true } }
|
|
29
|
+
# The display name of the discount.
|
|
30
|
+
field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name') } }
|
|
31
|
+
# The promo code used to redeem the discount, when applicable.
|
|
32
|
+
field :promo_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('promo_code') } }
|
|
33
|
+
# The snapshotted discount effect.
|
|
34
|
+
field :effect, Crystalline::Nilable.new(Models::Components::Effect), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('effect'), 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::Effect, true) } }
|
|
35
|
+
# Remaining billing cycles the discount applies to. Null means the discount lasts forever.
|
|
36
|
+
field :cycles_remaining, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('cycles_remaining'), required: true } }
|
|
37
|
+
# Current status of the discount redemption.
|
|
38
|
+
field :status, Crystalline::Nilable.new(Models::Components::CommerceDiscountRedemptionResponseStatus), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('status'), 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceDiscountRedemptionResponseStatus, true) } }
|
|
39
|
+
# Identifier of the actor that redeemed the discount, when available.
|
|
40
|
+
field :redeemed_by, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('redeemed_by'), required: true } }
|
|
41
|
+
# Percent off when the effect is percentage.
|
|
42
|
+
field :percent_off, Crystalline::Nilable.new(::Float), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('percent_off') } }
|
|
43
|
+
# Fixed amount off when the effect is fixed_amount.
|
|
44
|
+
field :amount_off, Crystalline::Nilable.new(Models::Components::AmountOff), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount_off') } }
|
|
45
|
+
# How much this discount takes off the subscription item's next renewal charge.
|
|
46
|
+
# Present for either effect when next-payment data is available.
|
|
47
|
+
field :amount, Crystalline::Nilable.new(Models::Components::CommerceDiscountRedemptionResponseAmount), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount') } }
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def initialize(object:, id:, subscription_item_id:, discount_id:, source:, cycles_applied:, redeemed_at:, name: nil, promo_code: nil, effect: nil, cycles_remaining: nil, status: nil, redeemed_by: nil, percent_off: nil, amount_off: nil, amount: nil)
|
|
51
|
+
@object = object
|
|
52
|
+
@id = id
|
|
53
|
+
@subscription_item_id = subscription_item_id
|
|
54
|
+
@discount_id = discount_id
|
|
55
|
+
@source = source
|
|
56
|
+
@cycles_applied = cycles_applied
|
|
57
|
+
@redeemed_at = redeemed_at
|
|
58
|
+
@name = name
|
|
59
|
+
@promo_code = promo_code
|
|
60
|
+
@effect = effect
|
|
61
|
+
@cycles_remaining = cycles_remaining
|
|
62
|
+
@status = status
|
|
63
|
+
@redeemed_by = redeemed_by
|
|
64
|
+
@percent_off = percent_off
|
|
65
|
+
@amount_off = amount_off
|
|
66
|
+
@amount = amount
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def ==(other)
|
|
71
|
+
return false unless other.is_a? self.class
|
|
72
|
+
return false unless @object == other.object
|
|
73
|
+
return false unless @id == other.id
|
|
74
|
+
return false unless @subscription_item_id == other.subscription_item_id
|
|
75
|
+
return false unless @discount_id == other.discount_id
|
|
76
|
+
return false unless @source == other.source
|
|
77
|
+
return false unless @cycles_applied == other.cycles_applied
|
|
78
|
+
return false unless @redeemed_at == other.redeemed_at
|
|
79
|
+
return false unless @name == other.name
|
|
80
|
+
return false unless @promo_code == other.promo_code
|
|
81
|
+
return false unless @effect == other.effect
|
|
82
|
+
return false unless @cycles_remaining == other.cycles_remaining
|
|
83
|
+
return false unless @status == other.status
|
|
84
|
+
return false unless @redeemed_by == other.redeemed_by
|
|
85
|
+
return false unless @percent_off == other.percent_off
|
|
86
|
+
return false unless @amount_off == other.amount_off
|
|
87
|
+
return false unless @amount == other.amount
|
|
88
|
+
true
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: false
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Clerk::Models::Components::CommerceDiscountRedemptionResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Clerk::Models::Components::CommerceDiscountRedemptionResponse
|
|
11
|
+
def object(); end
|
|
12
|
+
def object=(str_); end
|
|
13
|
+
def id(); end
|
|
14
|
+
def id=(str_); end
|
|
15
|
+
def subscription_item_id(); end
|
|
16
|
+
def subscription_item_id=(str_); end
|
|
17
|
+
def discount_id(); end
|
|
18
|
+
def discount_id=(str_); end
|
|
19
|
+
def source(); end
|
|
20
|
+
def source=(str_); end
|
|
21
|
+
def cycles_applied(); end
|
|
22
|
+
def cycles_applied=(str_); end
|
|
23
|
+
def redeemed_at(); end
|
|
24
|
+
def redeemed_at=(str_); end
|
|
25
|
+
def name(); end
|
|
26
|
+
def name=(str_); end
|
|
27
|
+
def promo_code(); end
|
|
28
|
+
def promo_code=(str_); end
|
|
29
|
+
def effect(); end
|
|
30
|
+
def effect=(str_); end
|
|
31
|
+
def cycles_remaining(); end
|
|
32
|
+
def cycles_remaining=(str_); end
|
|
33
|
+
def status(); end
|
|
34
|
+
def status=(str_); end
|
|
35
|
+
def redeemed_by(); end
|
|
36
|
+
def redeemed_by=(str_); end
|
|
37
|
+
def percent_off(); end
|
|
38
|
+
def percent_off=(str_); end
|
|
39
|
+
def amount_off(); end
|
|
40
|
+
def amount_off=(str_); end
|
|
41
|
+
def amount(); end
|
|
42
|
+
def amount=(str_); end
|
|
43
|
+
end
|