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,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
# @see Orb::Resources::Beta#fetch_plan_version
|
6
|
+
class BetaFetchPlanVersionParams < Orb::Internal::Type::BaseModel
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute plan_id
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
required :plan_id, String
|
14
|
+
|
15
|
+
# @!method initialize(plan_id:, request_options: {})
|
16
|
+
# @param plan_id [String]
|
17
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Orb
|
4
|
+
module Models
|
5
|
+
# @see Orb::Resources::Beta#set_default_plan_version
|
6
|
+
class BetaSetDefaultPlanVersionParams < Orb::Internal::Type::BaseModel
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute version
|
11
|
+
# Plan version to set as the default.
|
12
|
+
#
|
13
|
+
# @return [Integer]
|
14
|
+
required :version, Integer
|
15
|
+
|
16
|
+
# @!method initialize(version:, request_options: {})
|
17
|
+
# @param version [Integer] Plan version to set as the default.
|
18
|
+
#
|
19
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -12,24 +12,24 @@ module Orb
|
|
12
12
|
# @return [Array<Orb::Models::CreditNoteCreateParams::LineItem>]
|
13
13
|
required :line_items, -> { Orb::Internal::Type::ArrayOf[Orb::CreditNoteCreateParams::LineItem] }
|
14
14
|
|
15
|
+
# @!attribute reason
|
16
|
+
# An optional reason for the credit note.
|
17
|
+
#
|
18
|
+
# @return [Symbol, Orb::Models::CreditNoteCreateParams::Reason]
|
19
|
+
required :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }
|
20
|
+
|
15
21
|
# @!attribute memo
|
16
22
|
# An optional memo to attach to the credit note.
|
17
23
|
#
|
18
24
|
# @return [String, nil]
|
19
25
|
optional :memo, String, nil?: true
|
20
26
|
|
21
|
-
# @!
|
22
|
-
# An optional reason for the credit note.
|
23
|
-
#
|
24
|
-
# @return [Symbol, Orb::Models::CreditNoteCreateParams::Reason, nil]
|
25
|
-
optional :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }, nil?: true
|
26
|
-
|
27
|
-
# @!method initialize(line_items:, memo: nil, reason: nil, request_options: {})
|
27
|
+
# @!method initialize(line_items:, reason:, memo: nil, request_options: {})
|
28
28
|
# @param line_items [Array<Orb::Models::CreditNoteCreateParams::LineItem>]
|
29
29
|
#
|
30
|
-
# @param
|
30
|
+
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
|
31
31
|
#
|
32
|
-
# @param
|
32
|
+
# @param memo [String, nil] An optional memo to attach to the credit note.
|
33
33
|
#
|
34
34
|
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
35
35
|
|
@@ -109,7 +109,7 @@ module Orb
|
|
109
109
|
|
110
110
|
# @!attribute tax_configuration
|
111
111
|
#
|
112
|
-
# @return [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil]
|
112
|
+
# @return [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerCreateParams::TaxConfiguration::Sphere, nil]
|
113
113
|
optional :tax_configuration, union: -> { Orb::CustomerCreateParams::TaxConfiguration }, nil?: true
|
114
114
|
|
115
115
|
# @!attribute tax_id
|
@@ -264,7 +264,7 @@ module Orb
|
|
264
264
|
#
|
265
265
|
# @param shipping_address [Orb::Models::CustomerCreateParams::ShippingAddress, nil]
|
266
266
|
#
|
267
|
-
# @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, nil]
|
267
|
+
# @param tax_configuration [Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerCreateParams::TaxConfiguration::Sphere, nil]
|
268
268
|
#
|
269
269
|
# @param tax_id [Orb::Models::CustomerCreateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
|
270
270
|
#
|
@@ -449,6 +449,8 @@ module Orb
|
|
449
449
|
|
450
450
|
variant :taxjar, -> { Orb::CustomerCreateParams::TaxConfiguration::Taxjar }
|
451
451
|
|
452
|
+
variant :sphere, -> { Orb::CustomerCreateParams::TaxConfiguration::Sphere }
|
453
|
+
|
452
454
|
class Avalara < Orb::Internal::Type::BaseModel
|
453
455
|
# @!attribute tax_exempt
|
454
456
|
#
|
@@ -487,8 +489,24 @@ module Orb
|
|
487
489
|
# @param tax_provider [Symbol, :taxjar]
|
488
490
|
end
|
489
491
|
|
492
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
493
|
+
# @!attribute tax_exempt
|
494
|
+
#
|
495
|
+
# @return [Boolean]
|
496
|
+
required :tax_exempt, Orb::Internal::Type::Boolean
|
497
|
+
|
498
|
+
# @!attribute tax_provider
|
499
|
+
#
|
500
|
+
# @return [Symbol, :sphere]
|
501
|
+
required :tax_provider, const: :sphere
|
502
|
+
|
503
|
+
# @!method initialize(tax_exempt:, tax_provider: :sphere)
|
504
|
+
# @param tax_exempt [Boolean]
|
505
|
+
# @param tax_provider [Symbol, :sphere]
|
506
|
+
end
|
507
|
+
|
490
508
|
# @!method self.variants
|
491
|
-
# @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar)]
|
509
|
+
# @return [Array(Orb::Models::CustomerCreateParams::TaxConfiguration::Avalara, Orb::Models::CustomerCreateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerCreateParams::TaxConfiguration::Sphere)]
|
492
510
|
end
|
493
511
|
|
494
512
|
class TaxID < Orb::Internal::Type::BaseModel
|
@@ -114,7 +114,7 @@ module Orb
|
|
114
114
|
|
115
115
|
# @!attribute tax_configuration
|
116
116
|
#
|
117
|
-
# @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil]
|
117
|
+
# @return [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere, nil]
|
118
118
|
optional :tax_configuration,
|
119
119
|
union: -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration },
|
120
120
|
nil?: true
|
@@ -263,7 +263,7 @@ module Orb
|
|
263
263
|
#
|
264
264
|
# @param shipping_address [Orb::Models::CustomerUpdateByExternalIDParams::ShippingAddress, nil]
|
265
265
|
#
|
266
|
-
# @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, nil]
|
266
|
+
# @param tax_configuration [Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere, nil]
|
267
267
|
#
|
268
268
|
# @param tax_id [Orb::Models::CustomerUpdateByExternalIDParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
|
269
269
|
#
|
@@ -450,6 +450,8 @@ module Orb
|
|
450
450
|
|
451
451
|
variant :taxjar, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar }
|
452
452
|
|
453
|
+
variant :sphere, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere }
|
454
|
+
|
453
455
|
class Avalara < Orb::Internal::Type::BaseModel
|
454
456
|
# @!attribute tax_exempt
|
455
457
|
#
|
@@ -488,8 +490,24 @@ module Orb
|
|
488
490
|
# @param tax_provider [Symbol, :taxjar]
|
489
491
|
end
|
490
492
|
|
493
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
494
|
+
# @!attribute tax_exempt
|
495
|
+
#
|
496
|
+
# @return [Boolean]
|
497
|
+
required :tax_exempt, Orb::Internal::Type::Boolean
|
498
|
+
|
499
|
+
# @!attribute tax_provider
|
500
|
+
#
|
501
|
+
# @return [Symbol, :sphere]
|
502
|
+
required :tax_provider, const: :sphere
|
503
|
+
|
504
|
+
# @!method initialize(tax_exempt:, tax_provider: :sphere)
|
505
|
+
# @param tax_exempt [Boolean]
|
506
|
+
# @param tax_provider [Symbol, :sphere]
|
507
|
+
end
|
508
|
+
|
491
509
|
# @!method self.variants
|
492
|
-
# @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar)]
|
510
|
+
# @return [Array(Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere)]
|
493
511
|
end
|
494
512
|
|
495
513
|
class TaxID < Orb::Internal::Type::BaseModel
|
@@ -110,7 +110,7 @@ module Orb
|
|
110
110
|
|
111
111
|
# @!attribute tax_configuration
|
112
112
|
#
|
113
|
-
# @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil]
|
113
|
+
# @return [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateParams::TaxConfiguration::Sphere, nil]
|
114
114
|
optional :tax_configuration, union: -> { Orb::CustomerUpdateParams::TaxConfiguration }, nil?: true
|
115
115
|
|
116
116
|
# @!attribute tax_id
|
@@ -257,7 +257,7 @@ module Orb
|
|
257
257
|
#
|
258
258
|
# @param shipping_address [Orb::Models::CustomerUpdateParams::ShippingAddress, nil]
|
259
259
|
#
|
260
|
-
# @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, nil]
|
260
|
+
# @param tax_configuration [Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateParams::TaxConfiguration::Sphere, nil]
|
261
261
|
#
|
262
262
|
# @param tax_id [Orb::Models::CustomerUpdateParams::TaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad
|
263
263
|
#
|
@@ -444,6 +444,8 @@ module Orb
|
|
444
444
|
|
445
445
|
variant :taxjar, -> { Orb::CustomerUpdateParams::TaxConfiguration::Taxjar }
|
446
446
|
|
447
|
+
variant :sphere, -> { Orb::CustomerUpdateParams::TaxConfiguration::Sphere }
|
448
|
+
|
447
449
|
class Avalara < Orb::Internal::Type::BaseModel
|
448
450
|
# @!attribute tax_exempt
|
449
451
|
#
|
@@ -482,8 +484,24 @@ module Orb
|
|
482
484
|
# @param tax_provider [Symbol, :taxjar]
|
483
485
|
end
|
484
486
|
|
487
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
488
|
+
# @!attribute tax_exempt
|
489
|
+
#
|
490
|
+
# @return [Boolean]
|
491
|
+
required :tax_exempt, Orb::Internal::Type::Boolean
|
492
|
+
|
493
|
+
# @!attribute tax_provider
|
494
|
+
#
|
495
|
+
# @return [Symbol, :sphere]
|
496
|
+
required :tax_provider, const: :sphere
|
497
|
+
|
498
|
+
# @!method initialize(tax_exempt:, tax_provider: :sphere)
|
499
|
+
# @param tax_exempt [Boolean]
|
500
|
+
# @param tax_provider [Symbol, :sphere]
|
501
|
+
end
|
502
|
+
|
485
503
|
# @!method self.variants
|
486
|
-
# @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar)]
|
504
|
+
# @return [Array(Orb::Models::CustomerUpdateParams::TaxConfiguration::Avalara, Orb::Models::CustomerUpdateParams::TaxConfiguration::Taxjar, Orb::Models::CustomerUpdateParams::TaxConfiguration::Sphere)]
|
487
505
|
end
|
488
506
|
|
489
507
|
class TaxID < Orb::Internal::Type::BaseModel
|
@@ -106,7 +106,13 @@ module Orb
|
|
106
106
|
# @return [Float]
|
107
107
|
required :starting_balance, Float
|
108
108
|
|
109
|
-
# @!
|
109
|
+
# @!attribute created_invoices
|
110
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
111
|
+
#
|
112
|
+
# @return [Array<Orb::Models::Invoice>, nil]
|
113
|
+
optional :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }, nil?: true
|
114
|
+
|
115
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, created_invoices: nil, entry_type: :increment)
|
110
116
|
# Some parameter documentations has been truncated, see
|
111
117
|
# {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment}
|
112
118
|
# for more details.
|
@@ -135,6 +141,8 @@ module Orb
|
|
135
141
|
#
|
136
142
|
# @param starting_balance [Float]
|
137
143
|
#
|
144
|
+
# @param created_invoices [Array<Orb::Models::Invoice>, nil] If the increment resulted in invoice creation, the list of created invoices
|
145
|
+
#
|
138
146
|
# @param entry_type [Symbol, :increment]
|
139
147
|
|
140
148
|
# @see Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDResponse::Increment#credit_block
|
@@ -101,7 +101,13 @@ module Orb
|
|
101
101
|
# @return [Float]
|
102
102
|
required :starting_balance, Float
|
103
103
|
|
104
|
-
# @!
|
104
|
+
# @!attribute created_invoices
|
105
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
106
|
+
#
|
107
|
+
# @return [Array<Orb::Models::Invoice>, nil]
|
108
|
+
optional :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }, nil?: true
|
109
|
+
|
110
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, created_invoices: nil, entry_type: :increment)
|
105
111
|
# Some parameter documentations has been truncated, see
|
106
112
|
# {Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment} for more
|
107
113
|
# details.
|
@@ -130,6 +136,8 @@ module Orb
|
|
130
136
|
#
|
131
137
|
# @param starting_balance [Float]
|
132
138
|
#
|
139
|
+
# @param created_invoices [Array<Orb::Models::Invoice>, nil] If the increment resulted in invoice creation, the list of created invoices
|
140
|
+
#
|
133
141
|
# @param entry_type [Symbol, :increment]
|
134
142
|
|
135
143
|
# @see Orb::Models::Customers::Credits::LedgerCreateEntryResponse::Increment#credit_block
|
@@ -103,7 +103,13 @@ module Orb
|
|
103
103
|
# @return [Float]
|
104
104
|
required :starting_balance, Float
|
105
105
|
|
106
|
-
# @!
|
106
|
+
# @!attribute created_invoices
|
107
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
108
|
+
#
|
109
|
+
# @return [Array<Orb::Models::Invoice>, nil]
|
110
|
+
optional :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }, nil?: true
|
111
|
+
|
112
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, created_invoices: nil, entry_type: :increment)
|
107
113
|
# Some parameter documentations has been truncated, see
|
108
114
|
# {Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment} for
|
109
115
|
# more details.
|
@@ -132,6 +138,8 @@ module Orb
|
|
132
138
|
#
|
133
139
|
# @param starting_balance [Float]
|
134
140
|
#
|
141
|
+
# @param created_invoices [Array<Orb::Models::Invoice>, nil] If the increment resulted in invoice creation, the list of created invoices
|
142
|
+
#
|
135
143
|
# @param entry_type [Symbol, :increment]
|
136
144
|
|
137
145
|
# @see Orb::Models::Customers::Credits::LedgerListByExternalIDResponse::Increment#credit_block
|
@@ -99,7 +99,13 @@ module Orb
|
|
99
99
|
# @return [Float]
|
100
100
|
required :starting_balance, Float
|
101
101
|
|
102
|
-
# @!
|
102
|
+
# @!attribute created_invoices
|
103
|
+
# If the increment resulted in invoice creation, the list of created invoices
|
104
|
+
#
|
105
|
+
# @return [Array<Orb::Models::Invoice>, nil]
|
106
|
+
optional :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] }, nil?: true
|
107
|
+
|
108
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, created_invoices: nil, entry_type: :increment)
|
103
109
|
# Some parameter documentations has been truncated, see
|
104
110
|
# {Orb::Models::Customers::Credits::LedgerListResponse::Increment} for more
|
105
111
|
# details.
|
@@ -128,6 +134,8 @@ module Orb
|
|
128
134
|
#
|
129
135
|
# @param starting_balance [Float]
|
130
136
|
#
|
137
|
+
# @param created_invoices [Array<Orb::Models::Invoice>, nil] If the increment resulted in invoice creation, the list of created invoices
|
138
|
+
#
|
131
139
|
# @param entry_type [Symbol, :increment]
|
132
140
|
|
133
141
|
# @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#credit_block
|
@@ -46,7 +46,7 @@ module Orb
|
|
46
46
|
|
47
47
|
# @!attribute active_from
|
48
48
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
49
|
-
# immediately.
|
49
|
+
# immediately. This should not be more than 10 days in the past.
|
50
50
|
#
|
51
51
|
# @return [Time, nil]
|
52
52
|
optional :active_from, Time, nil?: true
|
@@ -43,7 +43,7 @@ module Orb
|
|
43
43
|
|
44
44
|
# @!attribute active_from
|
45
45
|
# The date from which the top-up is active. If unspecified, the top-up is active
|
46
|
-
# immediately.
|
46
|
+
# immediately. This should not be more than 10 days in the past.
|
47
47
|
#
|
48
48
|
# @return [Time, nil]
|
49
49
|
optional :active_from, Time, nil?: true
|