kintsugi_sdk 5.5.12 → 5.6.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/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +94 -38
- data/lib/crystalline/module.rb +103 -13
- data/lib/crystalline/types.rb +100 -16
- data/lib/crystalline/utils.rb +13 -0
- data/lib/kintsugi_sdk/addressvalidation.rb +3 -3
- data/lib/kintsugi_sdk/customers.rb +10 -10
- data/lib/kintsugi_sdk/exemptions.rb +7 -7
- data/lib/kintsugi_sdk/models/errors/backend_src_address_validation_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_customers_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_exemptions_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_products_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_tax_estimation_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/backend_src_transactions_responses_validationerrorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/errorresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/errors/httpvalidationerror.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/createtransactionbycustomer_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/estimate_tax_v1_tax_estimate_post_request.rb +2 -3
- data/lib/kintsugi_sdk/models/ops/get_customer_by_external_id_v1_customers_external_external_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_customer_by_id_v1_customers_customer_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_customers_v1_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_exemption_by_id_v1_exemptions_exemption_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb +12 -5
- data/lib/kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rbi +4 -0
- data/lib/kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/getexemptionattachments_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionbyexternalid_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbycustomer_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/gettransactionsbyfiling_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_customer_v1_customers_customer_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_product_v1_products_product_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/update_transaction_v1_transactions_transaction_id_put_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops/uploadexemptioncert_request.rb +0 -1
- data/lib/kintsugi_sdk/models/ops.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addressbase.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/addresses.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/addressresponsedata.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addresssearchresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addressstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/addresssubmittedresponse.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/addresstype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/appliedto.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/attachmentread.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/backend_src_address_validation_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_customers_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_models_exemptionread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_exemptions_serializers_exemptionread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/backend_src_products_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_tax_estimation_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/backend_src_transactions_responses_validationerroritem.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/body_upload_exemption_certificate_v1_exemptions_exemption_id_attachments_post.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/countrycodeenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/currencyenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/customerbase.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerbasebase.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customerbasepublic.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/customercreate.rb +14 -7
- data/lib/kintsugi_sdk/models/shared/customercreate.rbi +4 -0
- data/lib/kintsugi_sdk/models/shared/customerread.rb +14 -7
- data/lib/kintsugi_sdk/models/shared/customerread.rbi +4 -0
- data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rb +52 -0
- data/lib/kintsugi_sdk/models/shared/customertaxregistrationread.rbi +23 -0
- data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rb +25 -0
- data/lib/kintsugi_sdk/models/shared/customertaxtypeenum.rbi +11 -0
- data/lib/kintsugi_sdk/models/shared/customerupdate.rb +10 -7
- data/lib/kintsugi_sdk/models/shared/customerupdate.rbi +2 -0
- data/lib/kintsugi_sdk/models/shared/discountbuilder.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/exemption.rb +5 -6
- data/lib/kintsugi_sdk/models/shared/exemptioncreate.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/exemptionrequired.rb +6 -5
- data/lib/kintsugi_sdk/models/shared/exemptionstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/exemptiontype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/fastapi_pagination_default_page_exemptionread_2.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/file.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rb +56 -0
- data/lib/kintsugi_sdk/models/shared/findthresholdcrossingtransactionstate.rbi +25 -0
- data/lib/kintsugi_sdk/models/shared/jurisdictiontype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rb +41 -26
- data/lib/kintsugi_sdk/models/shared/nexusresponse.rbi +10 -2
- data/lib/kintsugi_sdk/models/shared/nexusstateenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexusstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/nexustypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/page_customerread_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_nexusresponse_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_transactionestimateresponse_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/page_transactionread_.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/periodmodelenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/processingstatusenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/productread.rb +12 -9
- data/lib/kintsugi_sdk/models/shared/productstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/productupdate.rb +10 -7
- data/lib/kintsugi_sdk/models/shared/registration.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/registrationsregimeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/relatedentitytype.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/salesortransactionsenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/security.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/sourceenum.rb +10 -4
- data/lib/kintsugi_sdk/models/shared/statusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/taxexemptionenum.rb +1 -3
- data/lib/kintsugi_sdk/models/shared/taxitembuilder.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/taxitemestimate.rb +1 -2
- data/lib/kintsugi_sdk/models/shared/taxitemread.rb +4 -5
- data/lib/kintsugi_sdk/models/shared/taxitemreturnreasonenum.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/taxitemtypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/taxliabilitysourceenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionaddressbuilder.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionaddresspublic.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/transactionaddressread_output.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rb +23 -19
- data/lib/kintsugi_sdk/models/shared/transactioncreate.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rb +6 -11
- data/lib/kintsugi_sdk/models/shared/transactionestimatepublicrequest.rbi +0 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rb +7 -12
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse.rbi +0 -2
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_addresses.rb +3 -4
- data/lib/kintsugi_sdk/models/shared/transactionestimateresponse_type.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionexemptstatusenum.rb +2 -3
- data/lib/kintsugi_sdk/models/shared/transactionitembuilder.rb +8 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemcreateupdate.rb +8 -7
- data/lib/kintsugi_sdk/models/shared/transactionitemestimatebase.rb +9 -8
- data/lib/kintsugi_sdk/models/shared/transactionitemestimateresponse.rb +10 -9
- data/lib/kintsugi_sdk/models/shared/transactionitemread.rb +7 -6
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rb +21 -17
- data/lib/kintsugi_sdk/models/shared/transactionpublicrequest.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionread.rb +24 -20
- data/lib/kintsugi_sdk/models/shared/transactionread.rbi +2 -2
- data/lib/kintsugi_sdk/models/shared/transactionrefundstatus.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionstatusenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactiontypeenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rb +19 -60
- data/lib/kintsugi_sdk/models/shared/transactionupdate.rbi +2 -24
- data/lib/kintsugi_sdk/models/shared/treatmentenum.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/type.rb +0 -3
- data/lib/kintsugi_sdk/models/shared/validationaddress.rb +0 -1
- data/lib/kintsugi_sdk/models/shared/validationerror.rb +0 -1
- data/lib/kintsugi_sdk/models/shared.rb +3 -7
- data/lib/kintsugi_sdk/nexus.rb +1 -1
- data/lib/kintsugi_sdk/openapisdk.rb +13 -15
- data/lib/kintsugi_sdk/products.rb +6 -414
- data/lib/kintsugi_sdk/sdk_hooks/hooks.rb +0 -1
- data/lib/kintsugi_sdk/sdkconfiguration.rb +5 -10
- data/lib/kintsugi_sdk/taxestimation.rb +4 -4
- data/lib/kintsugi_sdk/transactions.rb +8 -8
- data/lib/kintsugi_sdk/utils/forms.rb +1 -1
- data/lib/kintsugi_sdk/utils/query_params.rb +4 -2
- data/lib/kintsugi_sdk/utils/request_bodies.rb +11 -6
- data/lib/kintsugi_sdk/utils/security.rb +10 -0
- data/lib/kintsugi_sdk/utils/url.rb +11 -5
- data/lib/kintsugi_sdk/utils/utils.rb +45 -3
- metadata +77 -41
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rb +0 -61
- data/lib/kintsugi_sdk/models/ops/get_products_v1_products_get_request.rbi +0 -27
- data/lib/kintsugi_sdk/models/shared/page_productread_.rb +0 -49
- data/lib/kintsugi_sdk/models/shared/page_productread_.rbi +0 -21
- data/lib/kintsugi_sdk/models/shared/productcategories.rb +0 -38
- data/lib/kintsugi_sdk/models/shared/productcategories.rbi +0 -15
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rb +0 -25
- data/lib/kintsugi_sdk/models/shared/productcategoryenum.rbi +0 -11
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rb +0 -82
- data/lib/kintsugi_sdk/models/shared/productcodeenum.rbi +0 -11
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rb +0 -61
- data/lib/kintsugi_sdk/models/shared/productcreatemanual.rbi +0 -27
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rb +0 -46
- data/lib/kintsugi_sdk/models/shared/productsubcategory.rbi +0 -19
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rb +0 -83
- data/lib/kintsugi_sdk/models/shared/productsubcategoryenum.rbi +0 -11
|
@@ -63,7 +63,7 @@ module KintsugiSDK
|
|
|
63
63
|
hook_ctx = SDKHooks::HookContext.new(
|
|
64
64
|
config: @sdk_configuration,
|
|
65
65
|
base_url: base_url,
|
|
66
|
-
oauth2_scopes:
|
|
66
|
+
oauth2_scopes: nil,
|
|
67
67
|
operation_id: 'get_exemptions_v1_exemptions_get',
|
|
68
68
|
security_source: @sdk_configuration.security_source
|
|
69
69
|
)
|
|
@@ -196,7 +196,7 @@ module KintsugiSDK
|
|
|
196
196
|
headers['content-type'] = req_content_type
|
|
197
197
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
198
198
|
|
|
199
|
-
if form
|
|
199
|
+
if form && !form.empty?
|
|
200
200
|
body = Utils.encode_form(form)
|
|
201
201
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
202
202
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -217,7 +217,7 @@ module KintsugiSDK
|
|
|
217
217
|
hook_ctx = SDKHooks::HookContext.new(
|
|
218
218
|
config: @sdk_configuration,
|
|
219
219
|
base_url: base_url,
|
|
220
|
-
oauth2_scopes:
|
|
220
|
+
oauth2_scopes: nil,
|
|
221
221
|
operation_id: 'create_exemption_v1_exemptions_post',
|
|
222
222
|
security_source: @sdk_configuration.security_source
|
|
223
223
|
)
|
|
@@ -366,7 +366,7 @@ module KintsugiSDK
|
|
|
366
366
|
hook_ctx = SDKHooks::HookContext.new(
|
|
367
367
|
config: @sdk_configuration,
|
|
368
368
|
base_url: base_url,
|
|
369
|
-
oauth2_scopes:
|
|
369
|
+
oauth2_scopes: nil,
|
|
370
370
|
operation_id: 'get_exemption_by_id_v1_exemptions__exemption_id__get',
|
|
371
371
|
security_source: @sdk_configuration.security_source
|
|
372
372
|
)
|
|
@@ -504,7 +504,7 @@ module KintsugiSDK
|
|
|
504
504
|
headers['content-type'] = req_content_type
|
|
505
505
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
506
506
|
|
|
507
|
-
if form
|
|
507
|
+
if form && !form.empty?
|
|
508
508
|
body = Utils.encode_form(form)
|
|
509
509
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
510
510
|
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
@@ -525,7 +525,7 @@ module KintsugiSDK
|
|
|
525
525
|
hook_ctx = SDKHooks::HookContext.new(
|
|
526
526
|
config: @sdk_configuration,
|
|
527
527
|
base_url: base_url,
|
|
528
|
-
oauth2_scopes:
|
|
528
|
+
oauth2_scopes: nil,
|
|
529
529
|
operation_id: 'uploadExemptionCert',
|
|
530
530
|
security_source: @sdk_configuration.security_source
|
|
531
531
|
)
|
|
@@ -674,7 +674,7 @@ module KintsugiSDK
|
|
|
674
674
|
hook_ctx = SDKHooks::HookContext.new(
|
|
675
675
|
config: @sdk_configuration,
|
|
676
676
|
base_url: base_url,
|
|
677
|
-
oauth2_scopes:
|
|
677
|
+
oauth2_scopes: nil,
|
|
678
678
|
operation_id: 'getExemptionAttachments',
|
|
679
679
|
security_source: @sdk_configuration.security_source
|
|
680
680
|
)
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Ops
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class EstimateTaxV1TaxEstimatePostRequest
|
|
13
12
|
extend T::Sig
|
|
@@ -16,8 +15,8 @@ module KintsugiSDK
|
|
|
16
15
|
|
|
17
16
|
field :transaction_estimate_public_request, Models::Shared::TransactionEstimatePublicRequest, { 'request': { 'media_type': 'application/json' } }
|
|
18
17
|
# **Deprecated:** Use `simulate_active_registration` in the request body instead.
|
|
19
|
-
#
|
|
20
|
-
# @deprecated
|
|
18
|
+
#
|
|
19
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
21
20
|
field :simulate_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'simulate_nexus_met', 'style': 'form', 'explode': true } }
|
|
22
21
|
|
|
23
22
|
sig { params(transaction_estimate_public_request: Models::Shared::TransactionEstimatePublicRequest, simulate_nexus_met: T.nilable(T::Boolean)).void }
|
|
@@ -7,32 +7,37 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Ops
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class GetNexusForOrgV1NexusGetRequest
|
|
13
12
|
extend T::Sig
|
|
14
13
|
include Crystalline::MetadataFields
|
|
15
14
|
|
|
15
|
+
# Filter nexuses by disregard view: 'exposed' or 'disregarded'
|
|
16
|
+
field :disregard_view, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'disregard_view', 'style': 'form', 'explode': true } }
|
|
16
17
|
|
|
17
18
|
field :state_code, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'state_code', 'style': 'form', 'explode': true } }
|
|
18
19
|
|
|
19
20
|
field :country_code_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'country_code__in', 'style': 'form', 'explode': true } }
|
|
20
21
|
|
|
21
22
|
field :collected_tax_nexus_met, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'collected_tax_nexus_met', 'style': 'form', 'explode': true } }
|
|
23
|
+
# Return all results without pagination
|
|
24
|
+
field :without_pagination, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'query_param': { 'field_name': 'without_pagination', 'style': 'form', 'explode': true } }
|
|
22
25
|
|
|
23
26
|
field :status_in, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'status__in', 'style': 'form', 'explode': true } }
|
|
24
27
|
|
|
25
28
|
field :order_by, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'order_by', 'style': 'form', 'explode': true } }
|
|
26
|
-
|
|
29
|
+
|
|
27
30
|
field :page, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
|
28
|
-
|
|
31
|
+
|
|
29
32
|
field :size, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
|
30
33
|
|
|
31
|
-
sig { params(state_code: T.nilable(::String), country_code_in: T.nilable(::String), collected_tax_nexus_met: T.nilable(T::Boolean), status_in: T.nilable(::String), order_by: T.nilable(::String), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
32
|
-
def initialize(state_code: nil, country_code_in: nil, collected_tax_nexus_met: nil, status_in: 'APPROACHING,NOT_EXPOSED,PENDING_REGISTRATION,EXPOSED,APPROACHING,REGISTERED', order_by: 'state_code,country_code', page: 1, size: 50)
|
|
34
|
+
sig { params(disregard_view: T.nilable(::String), state_code: T.nilable(::String), country_code_in: T.nilable(::String), collected_tax_nexus_met: T.nilable(T::Boolean), without_pagination: T.nilable(T::Boolean), status_in: T.nilable(::String), order_by: T.nilable(::String), page: T.nilable(::Integer), size: T.nilable(::Integer)).void }
|
|
35
|
+
def initialize(disregard_view: nil, state_code: nil, country_code_in: nil, collected_tax_nexus_met: nil, without_pagination: false, status_in: 'APPROACHING,NOT_EXPOSED,PENDING_REGISTRATION,EXPOSED,APPROACHING,REGISTERED', order_by: 'state_code,country_code', page: 1, size: 50)
|
|
36
|
+
@disregard_view = disregard_view
|
|
33
37
|
@state_code = state_code
|
|
34
38
|
@country_code_in = country_code_in
|
|
35
39
|
@collected_tax_nexus_met = collected_tax_nexus_met
|
|
40
|
+
@without_pagination = without_pagination
|
|
36
41
|
@status_in = status_in
|
|
37
42
|
@order_by = order_by
|
|
38
43
|
@page = page
|
|
@@ -42,9 +47,11 @@ module KintsugiSDK
|
|
|
42
47
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
43
48
|
def ==(other)
|
|
44
49
|
return false unless other.is_a? self.class
|
|
50
|
+
return false unless @disregard_view == other.disregard_view
|
|
45
51
|
return false unless @state_code == other.state_code
|
|
46
52
|
return false unless @country_code_in == other.country_code_in
|
|
47
53
|
return false unless @collected_tax_nexus_met == other.collected_tax_nexus_met
|
|
54
|
+
return false unless @without_pagination == other.without_pagination
|
|
48
55
|
return false unless @status_in == other.status_in
|
|
49
56
|
return false unless @order_by == other.order_by
|
|
50
57
|
return false unless @page == other.page
|
|
@@ -8,12 +8,16 @@ end
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class KintsugiSDK::Models::Ops::GetNexusForOrgV1NexusGetRequest
|
|
11
|
+
def disregard_view(); end
|
|
12
|
+
def disregard_view=(str_); end
|
|
11
13
|
def state_code(); end
|
|
12
14
|
def state_code=(str_); end
|
|
13
15
|
def country_code_in(); end
|
|
14
16
|
def country_code_in=(str_); end
|
|
15
17
|
def collected_tax_nexus_met(); end
|
|
16
18
|
def collected_tax_nexus_met=(str_); end
|
|
19
|
+
def without_pagination(); end
|
|
20
|
+
def without_pagination=(str_); end
|
|
17
21
|
def status_in(); end
|
|
18
22
|
def status_in=(str_); end
|
|
19
23
|
def order_by(); end
|
|
@@ -19,7 +19,6 @@ module KintsugiSDK
|
|
|
19
19
|
autoload :GetExemptionsV1ExemptionsGetRequest, 'kintsugi_sdk/models/ops/get_exemptions_v1_exemptions_get_request.rb'
|
|
20
20
|
autoload :GetNexusForOrgV1NexusGetRequest, 'kintsugi_sdk/models/ops/get_nexus_for_org_v1_nexus_get_request.rb'
|
|
21
21
|
autoload :GetProductByIdV1ProductsProductIdGetRequest, 'kintsugi_sdk/models/ops/get_product_by_id_v1_products_product_id_get_request.rb'
|
|
22
|
-
autoload :GetProductsV1ProductsGetRequest, 'kintsugi_sdk/models/ops/get_products_v1_products_get_request.rb'
|
|
23
22
|
autoload :GetTransactionByIdV1TransactionsTransactionIdGetRequest, 'kintsugi_sdk/models/ops/get_transaction_by_id_v1_transactions_transaction_id_get_request.rb'
|
|
24
23
|
autoload :GetTransactionsV1TransactionsGetRequest, 'kintsugi_sdk/models/ops/get_transactions_v1_transactions_get_request.rb'
|
|
25
24
|
autoload :SearchV1AddressValidationSearchPostSecurity, 'kintsugi_sdk/models/ops/search_v1_address_validation_search_post_security.rb'
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class AddressBase
|
|
13
12
|
extend T::Sig
|
|
@@ -28,7 +27,7 @@ module KintsugiSDK
|
|
|
28
27
|
# ZIP or Postal code of the customer.
|
|
29
28
|
field :postal_code, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('postal_code') } }
|
|
30
29
|
|
|
31
|
-
field :country, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country'), 'decoder': Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
30
|
+
field :country, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
32
31
|
# Complete address string of the customer, which can be used as an alternative to individual fields.
|
|
33
32
|
field :full_address, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('full_address') } }
|
|
34
33
|
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class Addresses
|
|
13
12
|
extend T::Sig
|
|
@@ -15,7 +14,7 @@ module KintsugiSDK
|
|
|
15
14
|
|
|
16
15
|
# Type of the address. Must be either
|
|
17
16
|
# SHIP_TO or BILL_TO.
|
|
18
|
-
field :type, Models::Shared::Type, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::Type, false) } }
|
|
17
|
+
field :type, Models::Shared::Type, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('type'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::Type, false) } }
|
|
19
18
|
# State or province of the address.
|
|
20
19
|
field :state, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('state'), required: true } }
|
|
21
20
|
# Postal code of the address.
|
|
@@ -35,8 +34,8 @@ module KintsugiSDK
|
|
|
35
34
|
# Complete address string of the customer, which can be used as an alternative to individual fields.
|
|
36
35
|
field :full_address, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('full_address') } }
|
|
37
36
|
# Status of the address. Deprecated and ignored.
|
|
38
|
-
#
|
|
39
|
-
# @deprecated
|
|
37
|
+
#
|
|
38
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
40
39
|
field :status, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status') } }
|
|
41
40
|
|
|
42
41
|
sig { params(type: Models::Shared::Type, state: ::String, postal_code: ::String, country: ::String, phone: T.nilable(::String), street_1: T.nilable(::String), street_2: T.nilable(::String), city: T.nilable(::String), county: T.nilable(::String), full_address: T.nilable(::String), status: T.nilable(::String)).void }
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class AttachmentRead
|
|
13
12
|
extend T::Sig
|
|
@@ -17,7 +16,7 @@ module KintsugiSDK
|
|
|
17
16
|
# with the attachment.
|
|
18
17
|
field :related_entity_id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_entity_id'), required: true } }
|
|
19
18
|
|
|
20
|
-
field :related_entity_type, Models::Shared::RelatedEntityType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_entity_type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::RelatedEntityType, false) } }
|
|
19
|
+
field :related_entity_type, Models::Shared::RelatedEntityType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('related_entity_type'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::RelatedEntityType, false) } }
|
|
21
20
|
# The unique identifier of the uploaded attachment (attachment ID).
|
|
22
21
|
field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
|
|
23
22
|
|
|
@@ -7,22 +7,21 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class BackendSrcExemptionsModelsExemptionRead
|
|
13
12
|
extend T::Sig
|
|
14
13
|
include Crystalline::MetadataFields
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
field :exemption_type, Models::Shared::ExemptionType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemption_type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::ExemptionType, false) } }
|
|
16
|
+
field :exemption_type, Models::Shared::ExemptionType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemption_type'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ExemptionType, false) } }
|
|
18
17
|
# Start date for the exemption validity period (YYYY-MM-DD format)
|
|
19
|
-
field :start_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('start_date'), required: true, 'decoder': Utils.date_from_iso_format(false) } }
|
|
18
|
+
field :start_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('start_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
|
|
20
19
|
|
|
21
20
|
field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
|
|
22
21
|
# The jurisdiction identifier for the exemption
|
|
23
22
|
field :jurisdiction, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('jurisdiction') } }
|
|
24
23
|
|
|
25
|
-
field :country_code, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country_code'), 'decoder': Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
24
|
+
field :country_code, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country_code'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
26
25
|
# End date for the exemption validity period (YYYY-MM-DD format)
|
|
27
26
|
field :end_date, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('end_date') } }
|
|
28
27
|
# Unique identifier for the customer associated with the exemption
|
|
@@ -36,7 +35,7 @@ module KintsugiSDK
|
|
|
36
35
|
# Sales tax ID for the exemption
|
|
37
36
|
field :sales_tax_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('sales_tax_id') } }
|
|
38
37
|
|
|
39
|
-
field :status, Crystalline::Nilable.new(Models::Shared::ExemptionStatus), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(Models::Shared::ExemptionStatus, true) } }
|
|
38
|
+
field :status, Crystalline::Nilable.new(Models::Shared::ExemptionStatus), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ExemptionStatus, true) } }
|
|
40
39
|
|
|
41
40
|
field :customer_name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('customer_name') } }
|
|
42
41
|
|
|
@@ -7,22 +7,21 @@
|
|
|
7
7
|
module KintsugiSDK
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
|
-
|
|
11
10
|
|
|
12
11
|
class BackendSrcExemptionsSerializersExemptionRead
|
|
13
12
|
extend T::Sig
|
|
14
13
|
include Crystalline::MetadataFields
|
|
15
14
|
|
|
16
15
|
# Start date for the exemption validity period (YYYY-MM-DD format)
|
|
17
|
-
field :start_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('start_date'), required: true, 'decoder': Utils.date_from_iso_format(false) } }
|
|
16
|
+
field :start_date, ::Date, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('start_date'), required: true, 'decoder': ::KintsugiSDK::Utils.date_from_iso_format(false) } }
|
|
18
17
|
# Unique identifier for the exemption
|
|
19
18
|
field :id, ::String, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('id'), required: true } }
|
|
20
19
|
|
|
21
|
-
field :exemption_type, Models::Shared::ExemptionType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemption_type'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::ExemptionType, false) } }
|
|
20
|
+
field :exemption_type, Models::Shared::ExemptionType, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('exemption_type'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ExemptionType, false) } }
|
|
22
21
|
|
|
23
|
-
field :status, Models::Shared::ExemptionStatus, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), required: true, 'decoder': Utils.enum_from_string(Models::Shared::ExemptionStatus, false) } }
|
|
22
|
+
field :status, Models::Shared::ExemptionStatus, { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('status'), required: true, 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::ExemptionStatus, false) } }
|
|
24
23
|
|
|
25
|
-
field :country_code, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country_code'), 'decoder': Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
24
|
+
field :country_code, Crystalline::Nilable.new(Models::Shared::CountryCodeEnum), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('country_code'), 'decoder': ::KintsugiSDK::Utils.enum_from_string(Models::Shared::CountryCodeEnum, true) } }
|
|
26
25
|
# The jurisdiction identifier for the exemption
|
|
27
26
|
field :jurisdiction, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('jurisdiction') } }
|
|
28
27
|
# End date for the exemption validity period (YYYY-MM-DD format)
|