orb-billing 0.3.2 → 0.4.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 +21 -0
- data/README.md +1 -1
- data/lib/orb/errors.rb +1 -1
- data/lib/orb/internal/transport/base_client.rb +74 -5
- data/lib/orb/internal/transport/pooled_net_requester.rb +14 -0
- data/lib/orb/internal/type/array_of.rb +1 -1
- data/lib/orb/internal/type/base_model.rb +62 -30
- data/lib/orb/internal/type/converter.rb +18 -0
- data/lib/orb/internal/type/enum.rb +1 -0
- data/lib/orb/internal/type/hash_of.rb +1 -1
- data/lib/orb/internal/type/union.rb +1 -0
- data/lib/orb/internal/util.rb +56 -0
- data/lib/orb/internal.rb +6 -0
- data/lib/orb/models/coupon.rb +4 -0
- data/lib/orb/models/coupon_create_params.rb +6 -0
- data/lib/orb/models/customer_create_params.rb +9 -0
- data/lib/orb/models/customer_update_by_external_id_params.rb +9 -0
- data/lib/orb/models/customer_update_params.rb +9 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +14 -0
- data/lib/orb/models/customers/credits/ledger_list_response.rb +14 -0
- data/lib/orb/models/discount.rb +6 -0
- data/lib/orb/models/evaluate_price_group.rb +4 -0
- data/lib/orb/models/invoice.rb +22 -0
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +22 -0
- data/lib/orb/models/invoice_level_discount.rb +4 -0
- data/lib/orb/models/invoice_line_item_create_response.rb +22 -0
- data/lib/orb/models/plan.rb +12 -0
- data/lib/orb/models/plan_create_params.rb +32 -0
- data/lib/orb/models/price.rb +35 -0
- data/lib/orb/models/subscription.rb +22 -0
- data/lib/orb/models/subscription_cancel_response.rb +22 -0
- data/lib/orb/models/subscription_change_apply_response.rb +22 -0
- data/lib/orb/models/subscription_change_cancel_response.rb +22 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +22 -0
- data/lib/orb/models/subscription_create_params.rb +88 -0
- data/lib/orb/models/subscription_create_response.rb +22 -0
- data/lib/orb/models/subscription_price_intervals_params.rb +89 -0
- data/lib/orb/models/subscription_price_intervals_response.rb +22 -0
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +88 -0
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +22 -0
- data/lib/orb/models/subscription_trigger_phase_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +22 -0
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +22 -0
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +22 -0
- data/lib/orb/models/subscription_update_trial_params.rb +4 -0
- data/lib/orb/models/subscription_update_trial_response.rb +22 -0
- data/lib/orb/models/subscription_usage.rb +9 -0
- data/lib/orb/models.rb +24 -0
- data/lib/orb/request_options.rb +4 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +2 -0
- data/rbi/orb/internal/page.rbi +2 -1
- data/rbi/orb/internal/transport/base_client.rbi +31 -8
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +5 -4
- data/rbi/orb/internal/type/base_model.rbi +31 -15
- data/rbi/orb/internal/type/base_page.rbi +1 -1
- data/rbi/orb/internal/type/converter.rbi +2 -0
- data/rbi/orb/internal/type/enum.rbi +1 -0
- data/rbi/orb/internal/type/union.rbi +1 -0
- data/rbi/orb/internal/util.rbi +28 -7
- data/rbi/orb/internal.rbi +2 -0
- data/rbi/orb/models/alert.rbi +13 -6
- data/rbi/orb/models/alert_create_for_customer_params.rbi +11 -2
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +14 -2
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +11 -2
- data/rbi/orb/models/alert_disable_params.rbi +2 -1
- data/rbi/orb/models/alert_enable_params.rbi +2 -1
- data/rbi/orb/models/alert_list_params.rbi +2 -1
- data/rbi/orb/models/alert_retrieve_params.rbi +2 -1
- data/rbi/orb/models/alert_update_params.rbi +6 -2
- data/rbi/orb/models/amount_discount.rbi +2 -1
- data/rbi/orb/models/billable_metric.rbi +2 -1
- data/rbi/orb/models/coupon.rbi +1 -1
- data/rbi/orb/models/coupon_archive_params.rbi +2 -1
- data/rbi/orb/models/coupon_create_params.rbi +16 -3
- data/rbi/orb/models/coupon_fetch_params.rbi +2 -1
- data/rbi/orb/models/coupon_list_params.rbi +2 -1
- data/rbi/orb/models/coupons/subscription_list_params.rbi +4 -1
- data/rbi/orb/models/credit_note.rbi +45 -9
- data/rbi/orb/models/credit_note_create_params.rbi +8 -2
- data/rbi/orb/models/credit_note_fetch_params.rbi +4 -1
- data/rbi/orb/models/credit_note_list_params.rbi +4 -1
- data/rbi/orb/models/customer.rbi +41 -10
- data/rbi/orb/models/customer_create_params.rbi +61 -10
- data/rbi/orb/models/customer_delete_params.rbi +4 -1
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +4 -1
- data/rbi/orb/models/customer_fetch_params.rbi +2 -1
- data/rbi/orb/models/customer_list_params.rbi +2 -1
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +7 -1
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +7 -1
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +67 -10
- data/rbi/orb/models/customer_update_params.rbi +61 -10
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +7 -1
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +21 -3
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +7 -1
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +21 -3
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +21 -3
- data/rbi/orb/models/customers/cost_list_params.rbi +4 -1
- data/rbi/orb/models/customers/cost_list_response.rbi +21 -3
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +7 -1
- data/rbi/orb/models/customers/credit_list_params.rbi +4 -1
- data/rbi/orb/models/customers/credit_list_response.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +133 -21
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +14 -2
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +7 -1
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +14 -2
- data/rbi/orb/models/dimensional_price_group.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +4 -1
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +7 -1
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +7 -1
- data/rbi/orb/models/dimensional_price_groups.rbi +4 -1
- data/rbi/orb/models/evaluate_price_group.rbi +2 -1
- data/rbi/orb/models/event_deprecate_params.rbi +4 -1
- data/rbi/orb/models/event_deprecate_response.rbi +4 -1
- data/rbi/orb/models/event_ingest_params.rbi +6 -2
- data/rbi/orb/models/event_ingest_response.rbi +18 -3
- data/rbi/orb/models/event_search_params.rbi +2 -1
- data/rbi/orb/models/event_search_response.rbi +11 -2
- data/rbi/orb/models/event_update_params.rbi +2 -1
- data/rbi/orb/models/event_update_response.rbi +4 -1
- data/rbi/orb/models/events/backfill_close_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_close_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_create_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_create_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_fetch_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_fetch_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_list_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_list_response.rbi +7 -1
- data/rbi/orb/models/events/backfill_revert_params.rbi +4 -1
- data/rbi/orb/models/events/backfill_revert_response.rbi +7 -1
- data/rbi/orb/models/events/event_volumes.rbi +8 -2
- data/rbi/orb/models/events/volume_list_params.rbi +4 -1
- data/rbi/orb/models/invoice.rbi +156 -31
- data/rbi/orb/models/invoice_create_params.rbi +13 -3
- data/rbi/orb/models/invoice_fetch_params.rbi +2 -1
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +4 -1
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +212 -31
- data/rbi/orb/models/invoice_issue_params.rbi +2 -1
- data/rbi/orb/models/invoice_line_item_create_params.rbi +4 -1
- data/rbi/orb/models/invoice_line_item_create_response.rbi +119 -17
- data/rbi/orb/models/invoice_list_params.rbi +2 -1
- data/rbi/orb/models/invoice_mark_paid_params.rbi +4 -1
- data/rbi/orb/models/invoice_pay_params.rbi +2 -1
- data/rbi/orb/models/invoice_update_params.rbi +2 -1
- data/rbi/orb/models/invoice_void_params.rbi +2 -1
- data/rbi/orb/models/item.rbi +5 -2
- data/rbi/orb/models/item_create_params.rbi +2 -1
- data/rbi/orb/models/item_fetch_params.rbi +2 -1
- data/rbi/orb/models/item_list_params.rbi +2 -1
- data/rbi/orb/models/item_update_params.rbi +9 -2
- data/rbi/orb/models/metric_create_params.rbi +2 -1
- data/rbi/orb/models/metric_fetch_params.rbi +2 -1
- data/rbi/orb/models/metric_list_params.rbi +2 -1
- data/rbi/orb/models/metric_update_params.rbi +2 -1
- data/rbi/orb/models/pagination_metadata.rbi +2 -1
- data/rbi/orb/models/percentage_discount.rbi +2 -1
- data/rbi/orb/models/plan.rbi +50 -14
- data/rbi/orb/models/plan_create_params.rbi +604 -89
- data/rbi/orb/models/plan_fetch_params.rbi +2 -1
- data/rbi/orb/models/plan_list_params.rbi +2 -1
- data/rbi/orb/models/plan_update_params.rbi +2 -1
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +4 -1
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +7 -1
- data/rbi/orb/models/price.rbi +1624 -270
- data/rbi/orb/models/price_create_params.rbi +100 -18
- data/rbi/orb/models/price_evaluate_params.rbi +2 -1
- data/rbi/orb/models/price_evaluate_response.rbi +4 -1
- data/rbi/orb/models/price_fetch_params.rbi +2 -1
- data/rbi/orb/models/price_list_params.rbi +2 -1
- data/rbi/orb/models/price_update_params.rbi +2 -1
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +7 -1
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +7 -1
- data/rbi/orb/models/subscription.rbi +109 -19
- data/rbi/orb/models/subscription_cancel_params.rbi +4 -1
- data/rbi/orb/models/subscription_cancel_response.rbi +137 -20
- data/rbi/orb/models/subscription_change_apply_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_apply_response.rbi +142 -21
- data/rbi/orb/models/subscription_change_cancel_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_cancel_response.rbi +142 -21
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +4 -1
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +142 -21
- data/rbi/orb/models/subscription_create_params.rbi +1257 -198
- data/rbi/orb/models/subscription_create_response.rbi +137 -20
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +21 -3
- data/rbi/orb/models/subscription_fetch_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +4 -1
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +14 -2
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +4 -1
- data/rbi/orb/models/subscription_list_params.rbi +4 -1
- data/rbi/orb/models/subscription_price_intervals_params.rbi +731 -115
- data/rbi/orb/models/subscription_price_intervals_response.rbi +140 -20
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +1260 -198
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +140 -20
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +4 -1
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +140 -20
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +7 -1
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +140 -20
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +7 -1
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +140 -20
- data/rbi/orb/models/subscription_update_params.rbi +4 -1
- data/rbi/orb/models/subscription_update_trial_params.rbi +4 -1
- data/rbi/orb/models/subscription_update_trial_response.rbi +140 -20
- data/rbi/orb/models/subscription_usage.rbi +63 -9
- data/rbi/orb/models/subscriptions.rbi +2 -1
- data/rbi/orb/models/top_level_ping_params.rbi +2 -1
- data/rbi/orb/models/top_level_ping_response.rbi +4 -1
- data/rbi/orb/models/trial_discount.rbi +2 -1
- data/rbi/orb/models/usage_discount.rbi +2 -1
- data/rbi/orb/request_options.rbi +1 -1
- data/sig/orb/internal/transport/base_client.rbs +16 -1
- data/sig/orb/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/orb/internal/type/base_model.rbs +11 -5
- data/sig/orb/internal/type/base_page.rbs +1 -1
- data/sig/orb/internal/type/converter.rbs +2 -0
- data/sig/orb/internal/type/enum.rbs +1 -0
- data/sig/orb/internal/type/union.rbs +1 -0
- data/sig/orb/internal/util.rbs +13 -0
- data/sig/orb/internal.rbs +2 -0
- metadata +2 -2
@@ -6,7 +6,10 @@ module Orb
|
|
6
6
|
extend Orb::Internal::Type::RequestParameters::Converter
|
7
7
|
include Orb::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Orb::CustomerUpdateParams, Orb::Internal::AnyHash)
|
12
|
+
end
|
10
13
|
|
11
14
|
sig do
|
12
15
|
returns(
|
@@ -478,7 +481,13 @@ module Orb
|
|
478
481
|
end
|
479
482
|
|
480
483
|
class AccountingSyncConfiguration < Orb::Internal::Type::BaseModel
|
481
|
-
OrHash =
|
484
|
+
OrHash =
|
485
|
+
T.type_alias do
|
486
|
+
T.any(
|
487
|
+
Orb::CustomerUpdateParams::AccountingSyncConfiguration,
|
488
|
+
Orb::Internal::AnyHash
|
489
|
+
)
|
490
|
+
end
|
482
491
|
|
483
492
|
sig do
|
484
493
|
returns(
|
@@ -525,7 +534,13 @@ module Orb
|
|
525
534
|
end
|
526
535
|
|
527
536
|
class AccountingProvider < Orb::Internal::Type::BaseModel
|
528
|
-
OrHash =
|
537
|
+
OrHash =
|
538
|
+
T.type_alias do
|
539
|
+
T.any(
|
540
|
+
Orb::CustomerUpdateParams::AccountingSyncConfiguration::AccountingProvider,
|
541
|
+
Orb::Internal::AnyHash
|
542
|
+
)
|
543
|
+
end
|
529
544
|
|
530
545
|
sig { returns(String) }
|
531
546
|
attr_accessor :external_provider_id
|
@@ -552,7 +567,13 @@ module Orb
|
|
552
567
|
end
|
553
568
|
|
554
569
|
class BillingAddress < Orb::Internal::Type::BaseModel
|
555
|
-
OrHash =
|
570
|
+
OrHash =
|
571
|
+
T.type_alias do
|
572
|
+
T.any(
|
573
|
+
Orb::CustomerUpdateParams::BillingAddress,
|
574
|
+
Orb::Internal::AnyHash
|
575
|
+
)
|
576
|
+
end
|
556
577
|
|
557
578
|
sig { returns(T.nilable(String)) }
|
558
579
|
attr_accessor :city
|
@@ -609,7 +630,10 @@ module Orb
|
|
609
630
|
end
|
610
631
|
|
611
632
|
class Hierarchy < Orb::Internal::Type::BaseModel
|
612
|
-
OrHash =
|
633
|
+
OrHash =
|
634
|
+
T.type_alias do
|
635
|
+
T.any(Orb::CustomerUpdateParams::Hierarchy, Orb::Internal::AnyHash)
|
636
|
+
end
|
613
637
|
|
614
638
|
# A list of child customer IDs to add to the hierarchy. The desired child
|
615
639
|
# customers must not already be part of another hierarchy.
|
@@ -705,7 +729,13 @@ module Orb
|
|
705
729
|
end
|
706
730
|
|
707
731
|
class ReportingConfiguration < Orb::Internal::Type::BaseModel
|
708
|
-
OrHash =
|
732
|
+
OrHash =
|
733
|
+
T.type_alias do
|
734
|
+
T.any(
|
735
|
+
Orb::CustomerUpdateParams::ReportingConfiguration,
|
736
|
+
Orb::Internal::AnyHash
|
737
|
+
)
|
738
|
+
end
|
709
739
|
|
710
740
|
sig { returns(T::Boolean) }
|
711
741
|
attr_accessor :exempt
|
@@ -720,7 +750,13 @@ module Orb
|
|
720
750
|
end
|
721
751
|
|
722
752
|
class ShippingAddress < Orb::Internal::Type::BaseModel
|
723
|
-
OrHash =
|
753
|
+
OrHash =
|
754
|
+
T.type_alias do
|
755
|
+
T.any(
|
756
|
+
Orb::CustomerUpdateParams::ShippingAddress,
|
757
|
+
Orb::Internal::AnyHash
|
758
|
+
)
|
759
|
+
end
|
724
760
|
|
725
761
|
sig { returns(T.nilable(String)) }
|
726
762
|
attr_accessor :city
|
@@ -788,7 +824,13 @@ module Orb
|
|
788
824
|
end
|
789
825
|
|
790
826
|
class Avalara < Orb::Internal::Type::BaseModel
|
791
|
-
OrHash =
|
827
|
+
OrHash =
|
828
|
+
T.type_alias do
|
829
|
+
T.any(
|
830
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Avalara,
|
831
|
+
Orb::Internal::AnyHash
|
832
|
+
)
|
833
|
+
end
|
792
834
|
|
793
835
|
sig { returns(T::Boolean) }
|
794
836
|
attr_accessor :tax_exempt
|
@@ -827,7 +869,13 @@ module Orb
|
|
827
869
|
end
|
828
870
|
|
829
871
|
class Taxjar < Orb::Internal::Type::BaseModel
|
830
|
-
OrHash =
|
872
|
+
OrHash =
|
873
|
+
T.type_alias do
|
874
|
+
T.any(
|
875
|
+
Orb::CustomerUpdateParams::TaxConfiguration::Taxjar,
|
876
|
+
Orb::Internal::AnyHash
|
877
|
+
)
|
878
|
+
end
|
831
879
|
|
832
880
|
sig { returns(T::Boolean) }
|
833
881
|
attr_accessor :tax_exempt
|
@@ -860,7 +908,10 @@ module Orb
|
|
860
908
|
end
|
861
909
|
|
862
910
|
class TaxID < Orb::Internal::Type::BaseModel
|
863
|
-
OrHash =
|
911
|
+
OrHash =
|
912
|
+
T.type_alias do
|
913
|
+
T.any(Orb::CustomerUpdateParams::TaxID, Orb::Internal::AnyHash)
|
914
|
+
end
|
864
915
|
|
865
916
|
sig { returns(Orb::CustomerUpdateParams::TaxID::Country::OrSymbol) }
|
866
917
|
attr_accessor :country
|
@@ -7,7 +7,13 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(
|
13
|
+
Orb::Customers::BalanceTransactionCreateParams,
|
14
|
+
Orb::Internal::AnyHash
|
15
|
+
)
|
16
|
+
end
|
11
17
|
|
12
18
|
sig { returns(String) }
|
13
19
|
attr_accessor :amount
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class BalanceTransactionCreateResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::BalanceTransactionCreateResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
# A unique id for this transaction.
|
10
16
|
sig { returns(String) }
|
@@ -225,7 +231,13 @@ module Orb
|
|
225
231
|
end
|
226
232
|
|
227
233
|
class CreditNote < Orb::Internal::Type::BaseModel
|
228
|
-
OrHash =
|
234
|
+
OrHash =
|
235
|
+
T.type_alias do
|
236
|
+
T.any(
|
237
|
+
Orb::Models::Customers::BalanceTransactionCreateResponse::CreditNote,
|
238
|
+
Orb::Internal::AnyHash
|
239
|
+
)
|
240
|
+
end
|
229
241
|
|
230
242
|
# The id of the Credit note
|
231
243
|
sig { returns(String) }
|
@@ -244,7 +256,13 @@ module Orb
|
|
244
256
|
end
|
245
257
|
|
246
258
|
class Invoice < Orb::Internal::Type::BaseModel
|
247
|
-
OrHash =
|
259
|
+
OrHash =
|
260
|
+
T.type_alias do
|
261
|
+
T.any(
|
262
|
+
Orb::Models::Customers::BalanceTransactionCreateResponse::Invoice,
|
263
|
+
Orb::Internal::AnyHash
|
264
|
+
)
|
265
|
+
end
|
248
266
|
|
249
267
|
# The Invoice id
|
250
268
|
sig { returns(String) }
|
@@ -7,7 +7,13 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(
|
13
|
+
Orb::Customers::BalanceTransactionListParams,
|
14
|
+
Orb::Internal::AnyHash
|
15
|
+
)
|
16
|
+
end
|
11
17
|
|
12
18
|
# Cursor for pagination. This can be populated by the `next_cursor` value returned
|
13
19
|
# from the initial request.
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class BalanceTransactionListResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::BalanceTransactionListResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
# A unique id for this transaction.
|
10
16
|
sig { returns(String) }
|
@@ -225,7 +231,13 @@ module Orb
|
|
225
231
|
end
|
226
232
|
|
227
233
|
class CreditNote < Orb::Internal::Type::BaseModel
|
228
|
-
OrHash =
|
234
|
+
OrHash =
|
235
|
+
T.type_alias do
|
236
|
+
T.any(
|
237
|
+
Orb::Models::Customers::BalanceTransactionListResponse::CreditNote,
|
238
|
+
Orb::Internal::AnyHash
|
239
|
+
)
|
240
|
+
end
|
229
241
|
|
230
242
|
# The id of the Credit note
|
231
243
|
sig { returns(String) }
|
@@ -244,7 +256,13 @@ module Orb
|
|
244
256
|
end
|
245
257
|
|
246
258
|
class Invoice < Orb::Internal::Type::BaseModel
|
247
|
-
OrHash =
|
259
|
+
OrHash =
|
260
|
+
T.type_alias do
|
261
|
+
T.any(
|
262
|
+
Orb::Models::Customers::BalanceTransactionListResponse::Invoice,
|
263
|
+
Orb::Internal::AnyHash
|
264
|
+
)
|
265
|
+
end
|
248
266
|
|
249
267
|
# The Invoice id
|
250
268
|
sig { returns(String) }
|
@@ -7,7 +7,13 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(
|
13
|
+
Orb::Customers::CostListByExternalIDParams,
|
14
|
+
Orb::Internal::AnyHash
|
15
|
+
)
|
16
|
+
end
|
11
17
|
|
12
18
|
# The currency or custom pricing unit to use.
|
13
19
|
sig { returns(T.nilable(String)) }
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class CostListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::CostListByExternalIDResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig do
|
10
16
|
returns(
|
@@ -38,7 +44,13 @@ module Orb
|
|
38
44
|
end
|
39
45
|
|
40
46
|
class Data < Orb::Internal::Type::BaseModel
|
41
|
-
OrHash =
|
47
|
+
OrHash =
|
48
|
+
T.type_alias do
|
49
|
+
T.any(
|
50
|
+
Orb::Models::Customers::CostListByExternalIDResponse::Data,
|
51
|
+
Orb::Internal::AnyHash
|
52
|
+
)
|
53
|
+
end
|
42
54
|
|
43
55
|
sig do
|
44
56
|
returns(
|
@@ -104,7 +116,13 @@ module Orb
|
|
104
116
|
end
|
105
117
|
|
106
118
|
class PerPriceCost < Orb::Internal::Type::BaseModel
|
107
|
-
OrHash =
|
119
|
+
OrHash =
|
120
|
+
T.type_alias do
|
121
|
+
T.any(
|
122
|
+
Orb::Models::Customers::CostListByExternalIDResponse::Data::PerPriceCost,
|
123
|
+
Orb::Internal::AnyHash
|
124
|
+
)
|
125
|
+
end
|
108
126
|
|
109
127
|
# The price object
|
110
128
|
sig do
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Customers::CostListParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
# The currency or custom pricing unit to use.
|
13
16
|
sig { returns(T.nilable(String)) }
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class CostListResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::CostListResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig do
|
10
16
|
returns(T::Array[Orb::Models::Customers::CostListResponse::Data])
|
@@ -29,7 +35,13 @@ module Orb
|
|
29
35
|
end
|
30
36
|
|
31
37
|
class Data < Orb::Internal::Type::BaseModel
|
32
|
-
OrHash =
|
38
|
+
OrHash =
|
39
|
+
T.type_alias do
|
40
|
+
T.any(
|
41
|
+
Orb::Models::Customers::CostListResponse::Data,
|
42
|
+
Orb::Internal::AnyHash
|
43
|
+
)
|
44
|
+
end
|
33
45
|
|
34
46
|
sig do
|
35
47
|
returns(
|
@@ -95,7 +107,13 @@ module Orb
|
|
95
107
|
end
|
96
108
|
|
97
109
|
class PerPriceCost < Orb::Internal::Type::BaseModel
|
98
|
-
OrHash =
|
110
|
+
OrHash =
|
111
|
+
T.type_alias do
|
112
|
+
T.any(
|
113
|
+
Orb::Models::Customers::CostListResponse::Data::PerPriceCost,
|
114
|
+
Orb::Internal::AnyHash
|
115
|
+
)
|
116
|
+
end
|
99
117
|
|
100
118
|
# The price object
|
101
119
|
sig do
|
@@ -7,7 +7,13 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(
|
13
|
+
Orb::Customers::CreditListByExternalIDParams,
|
14
|
+
Orb::Internal::AnyHash
|
15
|
+
)
|
16
|
+
end
|
11
17
|
|
12
18
|
# The ledger currency or custom pricing unit to use.
|
13
19
|
sig { returns(T.nilable(String)) }
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class CreditListByExternalIDResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::CreditListByExternalIDResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -7,7 +7,10 @@ module Orb
|
|
7
7
|
extend Orb::Internal::Type::RequestParameters::Converter
|
8
8
|
include Orb::Internal::Type::RequestParameters
|
9
9
|
|
10
|
-
OrHash =
|
10
|
+
OrHash =
|
11
|
+
T.type_alias do
|
12
|
+
T.any(Orb::Customers::CreditListParams, Orb::Internal::AnyHash)
|
13
|
+
end
|
11
14
|
|
12
15
|
# The ledger currency or custom pricing unit to use.
|
13
16
|
sig { returns(T.nilable(String)) }
|
@@ -4,7 +4,13 @@ module Orb
|
|
4
4
|
module Models
|
5
5
|
module Customers
|
6
6
|
class CreditListResponse < Orb::Internal::Type::BaseModel
|
7
|
-
OrHash =
|
7
|
+
OrHash =
|
8
|
+
T.type_alias do
|
9
|
+
T.any(
|
10
|
+
Orb::Models::Customers::CreditListResponse,
|
11
|
+
Orb::Internal::AnyHash
|
12
|
+
)
|
13
|
+
end
|
8
14
|
|
9
15
|
sig { returns(String) }
|
10
16
|
attr_accessor :id
|
@@ -8,7 +8,13 @@ module Orb
|
|
8
8
|
extend Orb::Internal::Type::RequestParameters::Converter
|
9
9
|
include Orb::Internal::Type::RequestParameters
|
10
10
|
|
11
|
-
OrHash =
|
11
|
+
OrHash =
|
12
|
+
T.type_alias do
|
13
|
+
T.any(
|
14
|
+
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams,
|
15
|
+
Orb::Internal::AnyHash
|
16
|
+
)
|
17
|
+
end
|
12
18
|
|
13
19
|
# The number of credits to effect. Note that this is required for increment,
|
14
20
|
# decrement or void operations.
|
@@ -220,7 +226,13 @@ module Orb
|
|
220
226
|
end
|
221
227
|
|
222
228
|
class InvoiceSettings < Orb::Internal::Type::BaseModel
|
223
|
-
OrHash =
|
229
|
+
OrHash =
|
230
|
+
T.type_alias do
|
231
|
+
T.any(
|
232
|
+
Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings,
|
233
|
+
Orb::Internal::AnyHash
|
234
|
+
)
|
235
|
+
end
|
224
236
|
|
225
237
|
# Whether the credits purchase invoice should auto collect with the customer's
|
226
238
|
# saved payment method.
|