kintsugi_sdk 5.5.2 → 5.5.9
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5245282e15666b97b3bfad722198420ca415e2d5c24270191359fafec20e27f
|
4
|
+
data.tar.gz: e287ae5d9edbaf46dd209afc806965a9f087896c618b2b93f87e8c831dc3894e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5252cd3f55fa9ff30d2bb106cdc74105eeb61f50fde7a2ad68231c96c785d99aa10da97255655d0614a9d22efd7492710245a8352e9783fe7ae67ab87c8bc0b7
|
7
|
+
data.tar.gz: ed1b849b1b89b21e7d5fe4a3b3ecfb9b268063b08a025962d745f92616cfa5ce750f4ed81d1ad8c444edb8043a0e36ab8225b9be717aa2bdc261307170a309fd
|
@@ -129,7 +129,7 @@ module KintsugiSDK
|
|
129
129
|
field :vda_eligible, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::KintsugiSDK::Utils.field_name('vda_eligible') } }
|
130
130
|
|
131
131
|
sig { params(country_code: Models::Shared::CountryCodeEnum, state_code: ::String, state_name: ::String, treatment_of_exempt_transactions: Models::Shared::TreatmentEnum, trigger: ::String, sales_or_transactions: Models::Shared::SalesOrTransactionsEnum, threshold_sales: ::Integer, threshold_transactions: ::Integer, start_date: ::Date, period_model: Models::Shared::PeriodModelEnum, period_start_date: ::Date, period_end_date: ::Date, previous_period_start_date: ::String, previous_period_end_date: ::String, id: ::String, created_at: ::DateTime, updated_at: ::DateTime, organization_id: ::String, is_vda_eligible: T::Boolean, nexus_type: Models::Shared::NexusTypeEnum, total_transactions: ::Integer, total_transactions_included: ::Integer, total_transactions_exempted: ::Integer, total_transactions_marketplace: ::Integer, marketplace_included: T::Boolean, processing_status: T.nilable(Models::Shared::NexusStatusEnum), status: T.nilable(Models::Shared::NexusStateEnum), nexus_met_date: T.nilable(::String), economic_nexus_met_date: T.nilable(::String), physical_nexus_met_date: T.nilable(::String), collected_tax_nexus_met_date: T.nilable(::String), earliest_transaction_date: T.nilable(::String), most_recent_transaction_date: T.nilable(::String), predicted_month_from_today: T.nilable(::Integer), confidence_level: T.nilable(::Float), last_processed_at: T.nilable(::String), last_tax_liability_processed_at: T.nilable(::String), periods: T.nilable(T::Array[T::Hash[Symbol, ::Object]]), currency: T.nilable(Models::Shared::CurrencyEnum), registration: T.nilable(Models::Shared::Registration), registration_regime: T.nilable(Models::Shared::RegistrationsRegimeEnum), transaction_count: T.nilable(::Integer), transactions_amount: T.nilable(::String), previous_transaction_count: T.nilable(::Integer), previous_transactions_amount: T.nilable(::String), calculated_tax_liability: T.nilable(::String), imported_tax_liability: T.nilable(::String), tax_liability: T.nilable(::String), nexus_met: T.nilable(T::Boolean), economic_nexus_met: T.nilable(T::Boolean), physical_nexus_met: T.nilable(T::Boolean), collected_tax_nexus_met: T.nilable(T::Boolean), collected_tax_enabled: T.nilable(T::Boolean), earliest_collected_date: T.nilable(::DateTime), vda_eligible: T.nilable(T::Boolean)).void }
|
132
|
-
def initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, threshold_sales:, threshold_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, previous_period_start_date:, previous_period_end_date:, id:, created_at:, updated_at:, organization_id:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, marketplace_included:, processing_status: nil, status: nil, nexus_met_date: nil, economic_nexus_met_date: nil, physical_nexus_met_date: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, predicted_month_from_today: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, periods: nil, currency: nil, registration: nil, registration_regime: nil, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: '0.00', imported_tax_liability: '0.00', tax_liability: '0.00', nexus_met: false, economic_nexus_met: false, physical_nexus_met: false, collected_tax_nexus_met: false, collected_tax_enabled:
|
132
|
+
def initialize(country_code:, state_code:, state_name:, treatment_of_exempt_transactions:, trigger:, sales_or_transactions:, threshold_sales:, threshold_transactions:, start_date:, period_model:, period_start_date:, period_end_date:, previous_period_start_date:, previous_period_end_date:, id:, created_at:, updated_at:, organization_id:, is_vda_eligible:, nexus_type:, total_transactions:, total_transactions_included:, total_transactions_exempted:, total_transactions_marketplace:, marketplace_included:, processing_status: nil, status: nil, nexus_met_date: nil, economic_nexus_met_date: nil, physical_nexus_met_date: nil, collected_tax_nexus_met_date: nil, earliest_transaction_date: nil, most_recent_transaction_date: nil, predicted_month_from_today: nil, confidence_level: nil, last_processed_at: nil, last_tax_liability_processed_at: nil, periods: nil, currency: nil, registration: nil, registration_regime: nil, transaction_count: 0, transactions_amount: '0.00', previous_transaction_count: 0, previous_transactions_amount: '0.00', calculated_tax_liability: '0.00', imported_tax_liability: '0.00', tax_liability: '0.00', nexus_met: false, economic_nexus_met: false, physical_nexus_met: false, collected_tax_nexus_met: false, collected_tax_enabled: true, earliest_collected_date: DateTime.iso8601('2018-01-01T00:00:00'), vda_eligible: false)
|
133
133
|
@country_code = country_code
|
134
134
|
@state_code = state_code
|
135
135
|
@state_name = state_name
|
@@ -27,10 +27,11 @@ module KintsugiSDK
|
|
27
27
|
security_source: T.nilable(T.proc.returns(Models::Shared::Security)),
|
28
28
|
server_idx: T.nilable(Integer),
|
29
29
|
server_url: T.nilable(String),
|
30
|
-
url_params: T.nilable(T::Hash[Symbol, String])
|
30
|
+
url_params: T.nilable(T::Hash[Symbol, String]),
|
31
|
+
debug_logging: T.nilable(T::Boolean)
|
31
32
|
).void
|
32
33
|
end
|
33
|
-
def initialize(client: nil, retry_config: nil, timeout_ms: nil, security: nil, security_source: nil, server_idx: nil, server_url: nil, url_params: nil)
|
34
|
+
def initialize(client: nil, retry_config: nil, timeout_ms: nil, security: nil, security_source: nil, server_idx: nil, server_url: nil, url_params: nil, debug_logging: nil)
|
34
35
|
## Instantiates the SDK configuring it with the provided parameters.
|
35
36
|
# @param [T.nilable(Faraday::Connection)] client The faraday HTTP client to use for all operations
|
36
37
|
# @param [T.nilable(::KintsugiSDK::Utils::RetryConfig)] retry_config The retry configuration to use for all operations
|
@@ -48,9 +49,11 @@ module KintsugiSDK
|
|
48
49
|
}
|
49
50
|
connection_options[:request][:timeout] = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
50
51
|
|
52
|
+
debug_enabled = debug_logging == true || ENV['KINTSUGI_DEBUG'] == 'true'
|
53
|
+
|
51
54
|
client ||= Faraday.new(**connection_options) do |f|
|
52
55
|
f.request :multipart, {}
|
53
|
-
|
56
|
+
f.response :logger, $stdout, { headers: true, bodies: true, errors: true } if debug_enabled
|
54
57
|
end
|
55
58
|
|
56
59
|
if !server_url.nil?
|
@@ -34,6 +34,9 @@ module KintsugiSDK
|
|
34
34
|
sig { returns(T.nilable(Float)) }
|
35
35
|
attr_accessor :timeout
|
36
36
|
|
37
|
+
sig { returns(T.nilable(T::Boolean)) }
|
38
|
+
attr_accessor :debug_logging
|
39
|
+
|
37
40
|
|
38
41
|
sig { returns(T.nilable(T.proc.returns(T.nilable(Models::Shared::Security)))) }
|
39
42
|
attr_accessor :security_source
|
@@ -71,10 +74,11 @@ module KintsugiSDK
|
|
71
74
|
security: T.nilable(Models::Shared::Security),
|
72
75
|
security_source: T.nilable(T.proc.returns(Models::Shared::Security)),
|
73
76
|
server_url: T.nilable(String),
|
74
|
-
server_idx: T.nilable(Integer)
|
77
|
+
server_idx: T.nilable(Integer),
|
78
|
+
debug_logging: T.nilable(T::Boolean)
|
75
79
|
).void
|
76
80
|
end
|
77
|
-
def initialize(client, hooks, retry_config, timeout_ms, security, security_source, server_url, server_idx)
|
81
|
+
def initialize(client, hooks, retry_config, timeout_ms, security, security_source, server_url, server_idx, debug_logging = nil)
|
78
82
|
@client = client
|
79
83
|
@hooks = hooks
|
80
84
|
@retry_config = retry_config
|
@@ -89,9 +93,10 @@ module KintsugiSDK
|
|
89
93
|
end
|
90
94
|
@language = 'ruby'
|
91
95
|
@openapi_doc_version = '1.0.0'
|
92
|
-
@sdk_version = '5.5.
|
93
|
-
@gen_version = '2.
|
94
|
-
@user_agent = 'speakeasy-sdk/ruby 5.5.
|
96
|
+
@sdk_version = '5.5.9'
|
97
|
+
@gen_version = '2.686.7'
|
98
|
+
@user_agent = 'speakeasy-sdk/ruby 5.5.9 2.686.7 1.0.0 kintsugi_sdk'
|
99
|
+
@debug_logging = debug_logging.nil? ? (ENV['KINTSUGI_DEBUG'] == 'true') : debug_logging
|
95
100
|
end
|
96
101
|
|
97
102
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kintsugi_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kintsugi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|