orb-billing 0.5.5 → 0.7.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/CHANGELOG.md +26 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +4 -0
- data/lib/orb/internal/type/base_model.rb +2 -2
- data/lib/orb/internal/type/union.rb +6 -6
- data/lib/orb/models/alert.rb +33 -1
- data/lib/orb/models/amount_discount.rb +10 -10
- data/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +17940 -0
- data/lib/orb/models/beta/external_plan_id_fetch_plan_version_params.rb +22 -0
- data/lib/orb/models/beta/external_plan_id_set_default_plan_version_params.rb +24 -0
- data/lib/orb/models/beta_create_plan_version_params.rb +17758 -0
- data/lib/orb/models/beta_fetch_plan_version_params.rb +20 -0
- data/lib/orb/models/beta_set_default_plan_version_params.rb +22 -0
- data/lib/orb/models/credit_note_create_params.rb +9 -9
- data/lib/orb/models/customer_create_params.rb +21 -3
- data/lib/orb/models/customer_update_by_external_id_params.rb +21 -3
- data/lib/orb/models/customer_update_params.rb +21 -3
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_response.rb +9 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +1 -1
- data/lib/orb/models/invoice.rb +626 -9
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +624 -9
- data/lib/orb/models/invoice_line_item_create_response.rb +486 -7
- data/lib/orb/models/item.rb +18 -1
- data/lib/orb/models/item_archive_params.rb +14 -0
- data/lib/orb/models/item_create_params.rb +14 -1
- data/lib/orb/models/item_update_params.rb +16 -1
- data/lib/orb/models/percentage_discount.rb +10 -10
- data/lib/orb/models/plan.rb +618 -9
- data/lib/orb/models/plan_create_params.rb +2066 -30
- data/lib/orb/models/plan_version.rb +735 -0
- data/lib/orb/models/plan_version_phase.rb +70 -0
- data/lib/orb/models/price.rb +4124 -70
- data/lib/orb/models/price_create_params.rb +45 -1
- data/lib/orb/models/price_evaluate_multiple_params.rb +8620 -0
- data/lib/orb/models/price_evaluate_multiple_response.rb +51 -0
- data/lib/orb/models/subscription.rb +730 -54
- data/lib/orb/models/subscription_cancel_response.rb +706 -54
- data/lib/orb/models/subscription_change_apply_response.rb +728 -54
- data/lib/orb/models/subscription_change_cancel_response.rb +728 -54
- data/lib/orb/models/subscription_change_retrieve_response.rb +728 -54
- data/lib/orb/models/subscription_create_params.rb +5992 -1698
- data/lib/orb/models/subscription_create_response.rb +706 -54
- data/lib/orb/models/subscription_fetch_schedule_response.rb +3 -3
- data/lib/orb/models/subscription_price_intervals_params.rb +1392 -76
- data/lib/orb/models/subscription_price_intervals_response.rb +712 -54
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +6005 -1723
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +716 -54
- data/lib/orb/models/subscription_trigger_phase_response.rb +708 -54
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +720 -54
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +728 -54
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +728 -54
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +1 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +720 -54
- data/lib/orb/models/subscription_update_trial_response.rb +706 -54
- data/lib/orb/models/trial_discount.rb +10 -10
- data/lib/orb/models/usage_discount.rb +10 -10
- data/lib/orb/models.rb +16 -0
- data/lib/orb/resources/beta/external_plan_id.rb +113 -0
- data/lib/orb/resources/beta.rb +115 -0
- data/lib/orb/resources/credit_notes.rb +3 -3
- data/lib/orb/resources/customers/balance_transactions.rb +0 -7
- data/lib/orb/resources/customers.rb +4 -7
- data/lib/orb/resources/dimensional_price_groups.rb +1 -1
- data/lib/orb/resources/items.rb +34 -2
- data/lib/orb/resources/plans/external_plan_id.rb +1 -1
- data/lib/orb/resources/plans.rb +2 -2
- data/lib/orb/resources/prices.rb +69 -2
- data/lib/orb/resources/subscriptions.rb +5 -1
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +13 -0
- data/rbi/orb/client.rbi +3 -0
- data/rbi/orb/models/alert.rbi +50 -3
- data/rbi/orb/models/amount_discount.rbi +8 -8
- data/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +32652 -0
- data/rbi/orb/models/beta/external_plan_id_fetch_plan_version_params.rbi +40 -0
- data/rbi/orb/models/beta/external_plan_id_set_default_plan_version_params.rbi +45 -0
- data/rbi/orb/models/beta_create_plan_version_params.rbi +32595 -0
- data/rbi/orb/models/beta_fetch_plan_version_params.rbi +35 -0
- data/rbi/orb/models/beta_set_default_plan_version_params.rbi +40 -0
- data/rbi/orb/models/credit_note_create_params.rbi +8 -8
- data/rbi/orb/models/customer_create_params.rbi +38 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +38 -4
- data/rbi/orb/models/customer_update_params.rbi +38 -4
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +2 -2
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +2 -2
- data/rbi/orb/models/invoice.rbi +1451 -35
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1524 -4
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1184 -2
- data/rbi/orb/models/item.rbi +20 -1
- data/rbi/orb/models/item_archive_params.rbi +25 -0
- data/rbi/orb/models/item_create_params.rbi +18 -1
- data/rbi/orb/models/item_update_params.rbi +17 -1
- data/rbi/orb/models/percentage_discount.rbi +10 -10
- data/rbi/orb/models/plan.rbi +1339 -4
- data/rbi/orb/models/plan_create_params.rbi +3833 -29
- data/rbi/orb/models/plan_version.rbi +1367 -0
- data/rbi/orb/models/plan_version_phase.rbi +99 -0
- data/rbi/orb/models/price.rbi +9447 -441
- data/rbi/orb/models/price_create_params.rbi +80 -0
- data/rbi/orb/models/price_evaluate_multiple_params.rbi +15764 -0
- data/rbi/orb/models/price_evaluate_multiple_response.rbi +96 -0
- data/rbi/orb/models/subscription.rbi +1654 -44
- data/rbi/orb/models/subscription_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_apply_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +1692 -44
- data/rbi/orb/models/subscription_create_params.rbi +10400 -2710
- data/rbi/orb/models/subscription_create_response.rbi +1692 -44
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +13 -4
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2401 -49
- data/rbi/orb/models/subscription_price_intervals_response.rbi +1692 -44
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +10423 -2753
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +1692 -44
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +2 -2
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_trial_response.rbi +1692 -44
- data/rbi/orb/models/trial_discount.rbi +8 -8
- data/rbi/orb/models/usage_discount.rbi +10 -10
- data/rbi/orb/models.rbi +16 -0
- data/rbi/orb/resources/beta/external_plan_id.rbi +118 -0
- data/rbi/orb/resources/beta.rbi +111 -0
- data/rbi/orb/resources/credit_notes.rbi +3 -3
- data/rbi/orb/resources/customers/balance_transactions.rbi +0 -7
- data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -2
- data/rbi/orb/resources/customers.rbi +7 -7
- data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
- data/rbi/orb/resources/items.rbi +20 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +1 -1
- data/rbi/orb/resources/plans.rbi +5 -2
- data/rbi/orb/resources/prices.rbi +73 -1
- data/rbi/orb/resources/subscriptions.rbi +9 -1
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/alert.rbs +20 -3
- data/sig/orb/models/amount_discount.rbs +5 -5
- data/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +12898 -0
- data/sig/orb/models/beta/external_plan_id_fetch_plan_version_params.rbs +25 -0
- data/sig/orb/models/beta/external_plan_id_set_default_plan_version_params.rbs +25 -0
- data/sig/orb/models/beta_create_plan_version_params.rbs +12877 -0
- data/sig/orb/models/beta_fetch_plan_version_params.rbs +20 -0
- data/sig/orb/models/beta_set_default_plan_version_params.rbs +20 -0
- data/sig/orb/models/credit_note_create_params.rbs +6 -6
- data/sig/orb/models/customer_create_params.rbs +13 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +13 -0
- data/sig/orb/models/customer_update_params.rbs +13 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -2
- data/sig/orb/models/invoice.rbs +558 -4
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +558 -4
- data/sig/orb/models/invoice_line_item_create_response.rbs +414 -2
- data/sig/orb/models/item.rbs +5 -0
- data/sig/orb/models/item_archive_params.rbs +14 -0
- data/sig/orb/models/item_create_params.rbs +10 -2
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/percentage_discount.rbs +5 -5
- data/sig/orb/models/plan.rbs +538 -4
- data/sig/orb/models/plan_create_params.rbs +1460 -3
- data/sig/orb/models/plan_version.rbs +583 -0
- data/sig/orb/models/plan_version_phase.rbs +60 -0
- data/sig/orb/models/price.rbs +3512 -96
- data/sig/orb/models/price_create_params.rbs +32 -0
- data/sig/orb/models/price_evaluate_multiple_params.rbs +6230 -0
- data/sig/orb/models/price_evaluate_multiple_response.rbs +50 -0
- data/sig/orb/models/subscription.rbs +609 -29
- data/sig/orb/models/subscription_cancel_response.rbs +609 -29
- data/sig/orb/models/subscription_change_apply_response.rbs +621 -29
- data/sig/orb/models/subscription_change_cancel_response.rbs +621 -29
- data/sig/orb/models/subscription_change_retrieve_response.rbs +621 -29
- data/sig/orb/models/subscription_create_params.rbs +4450 -1466
- data/sig/orb/models/subscription_create_response.rbs +609 -29
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +4 -4
- data/sig/orb/models/subscription_price_intervals_params.rbs +920 -24
- data/sig/orb/models/subscription_price_intervals_response.rbs +609 -29
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +4440 -1466
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +609 -29
- data/sig/orb/models/subscription_trigger_phase_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +609 -29
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +609 -29
- data/sig/orb/models/subscription_update_trial_response.rbs +609 -29
- data/sig/orb/models/trial_discount.rbs +5 -5
- data/sig/orb/models/usage_discount.rbs +5 -5
- data/sig/orb/models.rbs +16 -0
- data/sig/orb/resources/beta/external_plan_id.rbs +34 -0
- data/sig/orb/resources/beta.rbs +34 -0
- data/sig/orb/resources/credit_notes.rbs +1 -1
- data/sig/orb/resources/items.rbs +7 -0
- data/sig/orb/resources/prices.rbs +11 -0
- data/sig/orb/resources/subscriptions.rbs +2 -0
- metadata +40 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class BetaFetchPlanVersionParams < Orb::Internal::Type::BaseModel
|
6
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
7
|
+
include Orb::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Orb::BetaFetchPlanVersionParams, Orb::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
sig { returns(String) }
|
15
|
+
attr_accessor :plan_id
|
16
|
+
|
17
|
+
sig do
|
18
|
+
params(
|
19
|
+
plan_id: String,
|
20
|
+
request_options: Orb::RequestOptions::OrHash
|
21
|
+
).returns(T.attached_class)
|
22
|
+
end
|
23
|
+
def self.new(plan_id:, request_options: {})
|
24
|
+
end
|
25
|
+
|
26
|
+
sig do
|
27
|
+
override.returns(
|
28
|
+
{ plan_id: String, request_options: Orb::RequestOptions }
|
29
|
+
)
|
30
|
+
end
|
31
|
+
def to_hash
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
class BetaSetDefaultPlanVersionParams < Orb::Internal::Type::BaseModel
|
6
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
7
|
+
include Orb::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Orb::BetaSetDefaultPlanVersionParams, Orb::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Plan version to set as the default.
|
15
|
+
sig { returns(Integer) }
|
16
|
+
attr_accessor :version
|
17
|
+
|
18
|
+
sig do
|
19
|
+
params(
|
20
|
+
version: Integer,
|
21
|
+
request_options: Orb::RequestOptions::OrHash
|
22
|
+
).returns(T.attached_class)
|
23
|
+
end
|
24
|
+
def self.new(
|
25
|
+
# Plan version to set as the default.
|
26
|
+
version:,
|
27
|
+
request_options: {}
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
sig do
|
32
|
+
override.returns(
|
33
|
+
{ version: Integer, request_options: Orb::RequestOptions }
|
34
|
+
)
|
35
|
+
end
|
36
|
+
def to_hash
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -14,28 +14,28 @@ module Orb
|
|
14
14
|
sig { returns(T::Array[Orb::CreditNoteCreateParams::LineItem]) }
|
15
15
|
attr_accessor :line_items
|
16
16
|
|
17
|
+
# An optional reason for the credit note.
|
18
|
+
sig { returns(Orb::CreditNoteCreateParams::Reason::OrSymbol) }
|
19
|
+
attr_accessor :reason
|
20
|
+
|
17
21
|
# An optional memo to attach to the credit note.
|
18
22
|
sig { returns(T.nilable(String)) }
|
19
23
|
attr_accessor :memo
|
20
24
|
|
21
|
-
# An optional reason for the credit note.
|
22
|
-
sig { returns(T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol)) }
|
23
|
-
attr_accessor :reason
|
24
|
-
|
25
25
|
sig do
|
26
26
|
params(
|
27
27
|
line_items: T::Array[Orb::CreditNoteCreateParams::LineItem::OrHash],
|
28
|
+
reason: Orb::CreditNoteCreateParams::Reason::OrSymbol,
|
28
29
|
memo: T.nilable(String),
|
29
|
-
reason: T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol),
|
30
30
|
request_options: Orb::RequestOptions::OrHash
|
31
31
|
).returns(T.attached_class)
|
32
32
|
end
|
33
33
|
def self.new(
|
34
34
|
line_items:,
|
35
|
+
# An optional reason for the credit note.
|
36
|
+
reason:,
|
35
37
|
# An optional memo to attach to the credit note.
|
36
38
|
memo: nil,
|
37
|
-
# An optional reason for the credit note.
|
38
|
-
reason: nil,
|
39
39
|
request_options: {}
|
40
40
|
)
|
41
41
|
end
|
@@ -44,8 +44,8 @@ module Orb
|
|
44
44
|
override.returns(
|
45
45
|
{
|
46
46
|
line_items: T::Array[Orb::CreditNoteCreateParams::LineItem],
|
47
|
+
reason: Orb::CreditNoteCreateParams::Reason::OrSymbol,
|
47
48
|
memo: T.nilable(String),
|
48
|
-
reason: T.nilable(Orb::CreditNoteCreateParams::Reason::OrSymbol),
|
49
49
|
request_options: Orb::RequestOptions
|
50
50
|
}
|
51
51
|
)
|
@@ -133,7 +133,8 @@ module Orb
|
|
133
133
|
T.nilable(
|
134
134
|
T.any(
|
135
135
|
Orb::CustomerCreateParams::TaxConfiguration::Avalara,
|
136
|
-
Orb::CustomerCreateParams::TaxConfiguration::Taxjar
|
136
|
+
Orb::CustomerCreateParams::TaxConfiguration::Taxjar,
|
137
|
+
Orb::CustomerCreateParams::TaxConfiguration::Sphere
|
137
138
|
)
|
138
139
|
)
|
139
140
|
)
|
@@ -289,7 +290,8 @@ module Orb
|
|
289
290
|
T.nilable(
|
290
291
|
T.any(
|
291
292
|
Orb::CustomerCreateParams::TaxConfiguration::Avalara::OrHash,
|
292
|
-
Orb::CustomerCreateParams::TaxConfiguration::Taxjar::OrHash
|
293
|
+
Orb::CustomerCreateParams::TaxConfiguration::Taxjar::OrHash,
|
294
|
+
Orb::CustomerCreateParams::TaxConfiguration::Sphere::OrHash
|
293
295
|
)
|
294
296
|
),
|
295
297
|
tax_id: T.nilable(Orb::CustomerCreateParams::TaxID::OrHash),
|
@@ -478,7 +480,8 @@ module Orb
|
|
478
480
|
T.nilable(
|
479
481
|
T.any(
|
480
482
|
Orb::CustomerCreateParams::TaxConfiguration::Avalara,
|
481
|
-
Orb::CustomerCreateParams::TaxConfiguration::Taxjar
|
483
|
+
Orb::CustomerCreateParams::TaxConfiguration::Taxjar,
|
484
|
+
Orb::CustomerCreateParams::TaxConfiguration::Sphere
|
482
485
|
)
|
483
486
|
),
|
484
487
|
tax_id: T.nilable(Orb::CustomerCreateParams::TaxID),
|
@@ -825,7 +828,8 @@ module Orb
|
|
825
828
|
T.type_alias do
|
826
829
|
T.any(
|
827
830
|
Orb::CustomerCreateParams::TaxConfiguration::Avalara,
|
828
|
-
Orb::CustomerCreateParams::TaxConfiguration::Taxjar
|
831
|
+
Orb::CustomerCreateParams::TaxConfiguration::Taxjar,
|
832
|
+
Orb::CustomerCreateParams::TaxConfiguration::Sphere
|
829
833
|
)
|
830
834
|
end
|
831
835
|
|
@@ -904,6 +908,36 @@ module Orb
|
|
904
908
|
end
|
905
909
|
end
|
906
910
|
|
911
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
912
|
+
OrHash =
|
913
|
+
T.type_alias do
|
914
|
+
T.any(
|
915
|
+
Orb::CustomerCreateParams::TaxConfiguration::Sphere,
|
916
|
+
Orb::Internal::AnyHash
|
917
|
+
)
|
918
|
+
end
|
919
|
+
|
920
|
+
sig { returns(T::Boolean) }
|
921
|
+
attr_accessor :tax_exempt
|
922
|
+
|
923
|
+
sig { returns(Symbol) }
|
924
|
+
attr_accessor :tax_provider
|
925
|
+
|
926
|
+
sig do
|
927
|
+
params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(
|
928
|
+
T.attached_class
|
929
|
+
)
|
930
|
+
end
|
931
|
+
def self.new(tax_exempt:, tax_provider: :sphere)
|
932
|
+
end
|
933
|
+
|
934
|
+
sig do
|
935
|
+
override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol })
|
936
|
+
end
|
937
|
+
def to_hash
|
938
|
+
end
|
939
|
+
end
|
940
|
+
|
907
941
|
sig do
|
908
942
|
override.returns(
|
909
943
|
T::Array[Orb::CustomerCreateParams::TaxConfiguration::Variants]
|
@@ -161,7 +161,8 @@ module Orb
|
|
161
161
|
T.nilable(
|
162
162
|
T.any(
|
163
163
|
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara,
|
164
|
-
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar
|
164
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar,
|
165
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere
|
165
166
|
)
|
166
167
|
)
|
167
168
|
)
|
@@ -321,7 +322,8 @@ module Orb
|
|
321
322
|
T.nilable(
|
322
323
|
T.any(
|
323
324
|
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara::OrHash,
|
324
|
-
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar::OrHash
|
325
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar::OrHash,
|
326
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere::OrHash
|
325
327
|
)
|
326
328
|
),
|
327
329
|
tax_id:
|
@@ -514,7 +516,8 @@ module Orb
|
|
514
516
|
T.nilable(
|
515
517
|
T.any(
|
516
518
|
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara,
|
517
|
-
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar
|
519
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar,
|
520
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere
|
518
521
|
)
|
519
522
|
),
|
520
523
|
tax_id: T.nilable(Orb::CustomerUpdateByExternalIDParams::TaxID),
|
@@ -872,7 +875,8 @@ module Orb
|
|
872
875
|
T.type_alias do
|
873
876
|
T.any(
|
874
877
|
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara,
|
875
|
-
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar
|
878
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar,
|
879
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere
|
876
880
|
)
|
877
881
|
end
|
878
882
|
|
@@ -951,6 +955,36 @@ module Orb
|
|
951
955
|
end
|
952
956
|
end
|
953
957
|
|
958
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
959
|
+
OrHash =
|
960
|
+
T.type_alias do
|
961
|
+
T.any(
|
962
|
+
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere,
|
963
|
+
Orb::Internal::AnyHash
|
964
|
+
)
|
965
|
+
end
|
966
|
+
|
967
|
+
sig { returns(T::Boolean) }
|
968
|
+
attr_accessor :tax_exempt
|
969
|
+
|
970
|
+
sig { returns(Symbol) }
|
971
|
+
attr_accessor :tax_provider
|
972
|
+
|
973
|
+
sig do
|
974
|
+
params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(
|
975
|
+
T.attached_class
|
976
|
+
)
|
977
|
+
end
|
978
|
+
def self.new(tax_exempt:, tax_provider: :sphere)
|
979
|
+
end
|
980
|
+
|
981
|
+
sig do
|
982
|
+
override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol })
|
983
|
+
end
|
984
|
+
def to_hash
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
954
988
|
sig do
|
955
989
|
override.returns(
|
956
990
|
T::Array[
|
@@ -134,7 +134,8 @@ module Orb
|
|
134
134
|
T.nilable(
|
135
135
|
T.any(
|
136
136
|
Orb::CustomerUpdateParams::TaxConfiguration::Avalara,
|
137
|
-
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar
|
137
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar,
|
138
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Sphere
|
138
139
|
)
|
139
140
|
)
|
140
141
|
)
|
@@ -284,7 +285,8 @@ module Orb
|
|
284
285
|
T.nilable(
|
285
286
|
T.any(
|
286
287
|
Orb::CustomerUpdateParams::TaxConfiguration::Avalara::OrHash,
|
287
|
-
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar::OrHash
|
288
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar::OrHash,
|
289
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Sphere::OrHash
|
288
290
|
)
|
289
291
|
),
|
290
292
|
tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID::OrHash),
|
@@ -469,7 +471,8 @@ module Orb
|
|
469
471
|
T.nilable(
|
470
472
|
T.any(
|
471
473
|
Orb::CustomerUpdateParams::TaxConfiguration::Avalara,
|
472
|
-
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar
|
474
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar,
|
475
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Sphere
|
473
476
|
)
|
474
477
|
),
|
475
478
|
tax_id: T.nilable(Orb::CustomerUpdateParams::TaxID),
|
@@ -819,7 +822,8 @@ module Orb
|
|
819
822
|
T.type_alias do
|
820
823
|
T.any(
|
821
824
|
Orb::CustomerUpdateParams::TaxConfiguration::Avalara,
|
822
|
-
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar
|
825
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar,
|
826
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Sphere
|
823
827
|
)
|
824
828
|
end
|
825
829
|
|
@@ -898,6 +902,36 @@ module Orb
|
|
898
902
|
end
|
899
903
|
end
|
900
904
|
|
905
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
906
|
+
OrHash =
|
907
|
+
T.type_alias do
|
908
|
+
T.any(
|
909
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Sphere,
|
910
|
+
Orb::Internal::AnyHash
|
911
|
+
)
|
912
|
+
end
|
913
|
+
|
914
|
+
sig { returns(T::Boolean) }
|
915
|
+
attr_accessor :tax_exempt
|
916
|
+
|
917
|
+
sig { returns(Symbol) }
|
918
|
+
attr_accessor :tax_provider
|
919
|
+
|
920
|
+
sig do
|
921
|
+
params(tax_exempt: T::Boolean, tax_provider: Symbol).returns(
|
922
|
+
T.attached_class
|
923
|
+
)
|
924
|
+
end
|
925
|
+
def self.new(tax_exempt:, tax_provider: :sphere)
|
926
|
+
end
|
927
|
+
|
928
|
+
sig do
|
929
|
+
override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol })
|
930
|
+
end
|
931
|
+
def to_hash
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
901
935
|
sig do
|
902
936
|
override.returns(
|
903
937
|
T::Array[Orb::CustomerUpdateParams::TaxConfiguration::Variants]
|
@@ -102,6 +102,10 @@ module Orb
|
|
102
102
|
sig { returns(Float) }
|
103
103
|
attr_accessor :starting_balance
|
104
104
|
|
105
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
106
|
+
sig { returns(T.nilable(T::Array[Orb::Invoice])) }
|
107
|
+
attr_accessor :created_invoices
|
108
|
+
|
105
109
|
sig do
|
106
110
|
params(
|
107
111
|
id: String,
|
@@ -119,6 +123,7 @@ module Orb
|
|
119
123
|
ledger_sequence_number: Integer,
|
120
124
|
metadata: T::Hash[Symbol, String],
|
121
125
|
starting_balance: Float,
|
126
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice::OrHash]),
|
122
127
|
entry_type: Symbol
|
123
128
|
).returns(T.attached_class)
|
124
129
|
end
|
@@ -139,6 +144,8 @@ module Orb
|
|
139
144
|
# `null`.
|
140
145
|
metadata:,
|
141
146
|
starting_balance:,
|
147
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
148
|
+
created_invoices: nil,
|
142
149
|
entry_type: :increment
|
143
150
|
)
|
144
151
|
end
|
@@ -161,7 +168,8 @@ module Orb
|
|
161
168
|
entry_type: Symbol,
|
162
169
|
ledger_sequence_number: Integer,
|
163
170
|
metadata: T::Hash[Symbol, String],
|
164
|
-
starting_balance: Float
|
171
|
+
starting_balance: Float,
|
172
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice])
|
165
173
|
}
|
166
174
|
)
|
167
175
|
end
|
@@ -102,6 +102,10 @@ module Orb
|
|
102
102
|
sig { returns(Float) }
|
103
103
|
attr_accessor :starting_balance
|
104
104
|
|
105
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
106
|
+
sig { returns(T.nilable(T::Array[Orb::Invoice])) }
|
107
|
+
attr_accessor :created_invoices
|
108
|
+
|
105
109
|
sig do
|
106
110
|
params(
|
107
111
|
id: String,
|
@@ -119,6 +123,7 @@ module Orb
|
|
119
123
|
ledger_sequence_number: Integer,
|
120
124
|
metadata: T::Hash[Symbol, String],
|
121
125
|
starting_balance: Float,
|
126
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice::OrHash]),
|
122
127
|
entry_type: Symbol
|
123
128
|
).returns(T.attached_class)
|
124
129
|
end
|
@@ -139,6 +144,8 @@ module Orb
|
|
139
144
|
# `null`.
|
140
145
|
metadata:,
|
141
146
|
starting_balance:,
|
147
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
148
|
+
created_invoices: nil,
|
142
149
|
entry_type: :increment
|
143
150
|
)
|
144
151
|
end
|
@@ -161,7 +168,8 @@ module Orb
|
|
161
168
|
entry_type: Symbol,
|
162
169
|
ledger_sequence_number: Integer,
|
163
170
|
metadata: T::Hash[Symbol, String],
|
164
|
-
starting_balance: Float
|
171
|
+
starting_balance: Float,
|
172
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice])
|
165
173
|
}
|
166
174
|
)
|
167
175
|
end
|
@@ -102,6 +102,10 @@ module Orb
|
|
102
102
|
sig { returns(Float) }
|
103
103
|
attr_accessor :starting_balance
|
104
104
|
|
105
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
106
|
+
sig { returns(T.nilable(T::Array[Orb::Invoice])) }
|
107
|
+
attr_accessor :created_invoices
|
108
|
+
|
105
109
|
sig do
|
106
110
|
params(
|
107
111
|
id: String,
|
@@ -119,6 +123,7 @@ module Orb
|
|
119
123
|
ledger_sequence_number: Integer,
|
120
124
|
metadata: T::Hash[Symbol, String],
|
121
125
|
starting_balance: Float,
|
126
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice::OrHash]),
|
122
127
|
entry_type: Symbol
|
123
128
|
).returns(T.attached_class)
|
124
129
|
end
|
@@ -139,6 +144,8 @@ module Orb
|
|
139
144
|
# `null`.
|
140
145
|
metadata:,
|
141
146
|
starting_balance:,
|
147
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
148
|
+
created_invoices: nil,
|
142
149
|
entry_type: :increment
|
143
150
|
)
|
144
151
|
end
|
@@ -161,7 +168,8 @@ module Orb
|
|
161
168
|
entry_type: Symbol,
|
162
169
|
ledger_sequence_number: Integer,
|
163
170
|
metadata: T::Hash[Symbol, String],
|
164
|
-
starting_balance: Float
|
171
|
+
starting_balance: Float,
|
172
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice])
|
165
173
|
}
|
166
174
|
)
|
167
175
|
end
|
@@ -102,6 +102,10 @@ module Orb
|
|
102
102
|
sig { returns(Float) }
|
103
103
|
attr_accessor :starting_balance
|
104
104
|
|
105
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
106
|
+
sig { returns(T.nilable(T::Array[Orb::Invoice])) }
|
107
|
+
attr_accessor :created_invoices
|
108
|
+
|
105
109
|
sig do
|
106
110
|
params(
|
107
111
|
id: String,
|
@@ -119,6 +123,7 @@ module Orb
|
|
119
123
|
ledger_sequence_number: Integer,
|
120
124
|
metadata: T::Hash[Symbol, String],
|
121
125
|
starting_balance: Float,
|
126
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice::OrHash]),
|
122
127
|
entry_type: Symbol
|
123
128
|
).returns(T.attached_class)
|
124
129
|
end
|
@@ -139,6 +144,8 @@ module Orb
|
|
139
144
|
# `null`.
|
140
145
|
metadata:,
|
141
146
|
starting_balance:,
|
147
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
148
|
+
created_invoices: nil,
|
142
149
|
entry_type: :increment
|
143
150
|
)
|
144
151
|
end
|
@@ -161,7 +168,8 @@ module Orb
|
|
161
168
|
entry_type: Symbol,
|
162
169
|
ledger_sequence_number: Integer,
|
163
170
|
metadata: T::Hash[Symbol, String],
|
164
|
-
starting_balance: Float
|
171
|
+
starting_balance: Float,
|
172
|
+
created_invoices: T.nilable(T::Array[Orb::Invoice])
|
165
173
|
}
|
166
174
|
)
|
167
175
|
end
|
@@ -51,7 +51,7 @@ module Orb
|
|
51
51
|
attr_accessor :threshold
|
52
52
|
|
53
53
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
54
|
-
# immediately.
|
54
|
+
# immediately. This should not be more than 10 days in the past.
|
55
55
|
sig { returns(T.nilable(Time)) }
|
56
56
|
attr_accessor :active_from
|
57
57
|
|
@@ -101,7 +101,7 @@ module Orb
|
|
101
101
|
# threshold, the top-up will be triggered.
|
102
102
|
threshold:,
|
103
103
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
104
|
-
# immediately.
|
104
|
+
# immediately. This should not be more than 10 days in the past.
|
105
105
|
active_from: nil,
|
106
106
|
# The number of days or months after which the top-up expires. If unspecified, it
|
107
107
|
# does not expire.
|
@@ -49,7 +49,7 @@ module Orb
|
|
49
49
|
attr_accessor :threshold
|
50
50
|
|
51
51
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
52
|
-
# immediately.
|
52
|
+
# immediately. This should not be more than 10 days in the past.
|
53
53
|
sig { returns(T.nilable(Time)) }
|
54
54
|
attr_accessor :active_from
|
55
55
|
|
@@ -99,7 +99,7 @@ module Orb
|
|
99
99
|
# threshold, the top-up will be triggered.
|
100
100
|
threshold:,
|
101
101
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
102
|
-
# immediately.
|
102
|
+
# immediately. This should not be more than 10 days in the past.
|
103
103
|
active_from: nil,
|
104
104
|
# The number of days or months after which the top-up expires. If unspecified, it
|
105
105
|
# does not expire.
|