orb-billing 0.1.0.pre.alpha.38 → 0.1.1
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/README.md +10 -2
- data/lib/orb/client.rb +4 -0
- data/lib/orb/internal/transport/base_client.rb +2 -2
- data/lib/orb/internal/transport/pooled_net_requester.rb +15 -6
- data/lib/orb/internal/type/array_of.rb +12 -2
- data/lib/orb/internal/type/base_model.rb +23 -22
- data/lib/orb/internal/type/boolean.rb +5 -1
- data/lib/orb/internal/type/converter.rb +62 -39
- data/lib/orb/internal/type/enum.rb +13 -9
- data/lib/orb/internal/type/hash_of.rb +6 -2
- data/lib/orb/internal/type/io_like.rb +75 -0
- data/lib/orb/internal/type/request_parameters.rb +11 -2
- data/lib/orb/internal/type/union.rb +7 -3
- data/lib/orb/internal/type/unknown.rb +5 -1
- data/lib/orb/internal/util.rb +81 -26
- data/lib/orb/models/alert.rb +9 -9
- data/lib/orb/models/alert_create_for_customer_params.rb +3 -3
- data/lib/orb/models/alert_create_for_external_customer_params.rb +3 -3
- data/lib/orb/models/alert_create_for_subscription_params.rb +3 -3
- data/lib/orb/models/alert_list_params.rb +5 -5
- data/lib/orb/models/alert_update_params.rb +3 -3
- data/lib/orb/models/amount_discount.rb +1 -1
- data/lib/orb/models/billable_metric.rb +7 -7
- data/lib/orb/models/coupon.rb +7 -7
- data/lib/orb/models/coupon_create_params.rb +2 -2
- data/lib/orb/models/coupon_list_params.rb +2 -2
- data/lib/orb/models/coupons/subscription_list_params.rb +1 -1
- data/lib/orb/models/credit_note.rb +1 -1
- data/lib/orb/models/credit_note_list_params.rb +5 -5
- data/lib/orb/models/customer.rb +232 -232
- data/lib/orb/models/customer_create_params.rb +223 -223
- data/lib/orb/models/customer_list_params.rb +5 -5
- data/lib/orb/models/customer_update_by_external_id_params.rb +224 -224
- data/lib/orb/models/customer_update_params.rb +224 -224
- data/lib/orb/models/customers/balance_transaction_create_response.rb +2 -2
- data/lib/orb/models/customers/balance_transaction_list_params.rb +5 -5
- data/lib/orb/models/customers/balance_transaction_list_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +6 -6
- data/lib/orb/models/customers/cost_list_params.rb +6 -6
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +2 -2
- data/lib/orb/models/customers/credit_list_params.rb +2 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +20 -20
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +20 -20
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +5 -5
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +22 -22
- data/lib/orb/models/customers/credits/ledger_list_params.rb +5 -5
- data/lib/orb/models/customers/credits/ledger_list_response.rb +22 -22
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +8 -8
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +7 -7
- data/lib/orb/models/customers/credits/top_up_create_params.rb +8 -8
- data/lib/orb/models/customers/credits/top_up_create_response.rb +7 -7
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +7 -7
- data/lib/orb/models/customers/credits/top_up_list_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_list_response.rb +7 -7
- data/lib/orb/models/dimensional_price_group.rb +7 -7
- data/lib/orb/models/dimensional_price_group_create_params.rb +2 -2
- data/lib/orb/models/dimensional_price_group_list_params.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +7 -7
- data/lib/orb/models/event_ingest_response.rb +4 -4
- data/lib/orb/models/event_search_params.rb +5 -5
- data/lib/orb/models/event_search_response.rb +8 -8
- data/lib/orb/models/event_update_params.rb +4 -4
- data/lib/orb/models/events/backfill_close_response.rb +7 -7
- data/lib/orb/models/events/backfill_create_params.rb +11 -11
- data/lib/orb/models/events/backfill_create_response.rb +7 -7
- data/lib/orb/models/events/backfill_fetch_response.rb +7 -7
- data/lib/orb/models/events/backfill_list_params.rb +1 -1
- data/lib/orb/models/events/backfill_list_response.rb +7 -7
- data/lib/orb/models/events/backfill_revert_response.rb +7 -7
- data/lib/orb/models/events/event_volumes.rb +1 -1
- data/lib/orb/models/events/volume_list_params.rb +7 -7
- data/lib/orb/models/invoice.rb +270 -270
- data/lib/orb/models/invoice_create_params.rb +12 -11
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +266 -266
- data/lib/orb/models/invoice_issue_params.rb +4 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +1 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +27 -27
- data/lib/orb/models/invoice_list_params.rb +12 -12
- data/lib/orb/models/invoice_update_params.rb +2 -2
- data/lib/orb/models/item.rb +2 -2
- data/lib/orb/models/item_list_params.rb +1 -1
- data/lib/orb/models/metric_create_params.rb +2 -2
- data/lib/orb/models/metric_list_params.rb +5 -5
- data/lib/orb/models/metric_update_params.rb +2 -2
- data/lib/orb/models/percentage_discount.rb +2 -2
- data/lib/orb/models/plan.rb +35 -35
- data/lib/orb/models/plan_create_params.rb +267 -267
- data/lib/orb/models/plan_list_params.rb +5 -5
- data/lib/orb/models/plan_update_params.rb +4 -4
- data/lib/orb/models/plans/external_plan_id_update_params.rb +4 -4
- data/lib/orb/models/price.rb +158 -158
- data/lib/orb/models/price_create_params.rb +20 -20
- data/lib/orb/models/price_evaluate_params.rb +4 -4
- data/lib/orb/models/price_list_params.rb +1 -1
- data/lib/orb/models/price_update_params.rb +2 -2
- data/lib/orb/models/prices/external_price_id_update_params.rb +2 -2
- data/lib/orb/models/subscription.rb +114 -87
- data/lib/orb/models/subscription_cancel_params.rb +3 -3
- data/lib/orb/models/subscription_cancel_response.rb +150 -72
- data/lib/orb/models/subscription_change_apply_params.rb +33 -0
- data/lib/orb/models/subscription_change_apply_response.rb +1372 -0
- data/lib/orb/models/subscription_change_cancel_params.rb +19 -0
- data/lib/orb/models/subscription_change_cancel_response.rb +1372 -0
- data/lib/orb/models/subscription_change_retrieve_params.rb +19 -0
- data/lib/orb/models/subscription_change_retrieve_response.rb +1372 -0
- data/lib/orb/models/subscription_create_params.rb +641 -641
- data/lib/orb/models/subscription_create_response.rb +150 -72
- data/lib/orb/models/subscription_fetch_costs_params.rb +6 -6
- data/lib/orb/models/subscription_fetch_schedule_params.rb +5 -5
- data/lib/orb/models/subscription_fetch_schedule_response.rb +2 -2
- data/lib/orb/models/subscription_fetch_usage_params.rb +8 -8
- data/lib/orb/models/subscription_list_params.rb +5 -5
- data/lib/orb/models/subscription_price_intervals_params.rb +323 -323
- data/lib/orb/models/subscription_price_intervals_response.rb +152 -72
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +651 -651
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +152 -72
- data/lib/orb/models/subscription_trigger_phase_params.rb +3 -3
- data/lib/orb/models/subscription_trigger_phase_response.rb +152 -72
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +152 -72
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +153 -73
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +152 -72
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +8 -8
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +152 -72
- data/lib/orb/models/subscription_update_params.rb +10 -10
- data/lib/orb/models/subscription_update_trial_params.rb +3 -3
- data/lib/orb/models/subscription_update_trial_response.rb +152 -72
- data/lib/orb/models/trial_discount.rb +1 -1
- data/lib/orb/models/usage_discount.rb +2 -2
- data/lib/orb/request_options.rb +7 -7
- data/lib/orb/resources/alerts.rb +38 -38
- data/lib/orb/resources/coupons/subscriptions.rb +3 -3
- data/lib/orb/resources/coupons.rb +9 -9
- data/lib/orb/resources/credit_notes.rb +8 -8
- data/lib/orb/resources/customers/balance_transactions.rb +26 -26
- data/lib/orb/resources/customers/costs.rb +232 -232
- data/lib/orb/resources/customers/credits/ledger.rb +344 -344
- data/lib/orb/resources/customers/credits/top_ups.rb +12 -12
- data/lib/orb/resources/customers/credits.rb +8 -8
- data/lib/orb/resources/customers.rb +59 -59
- data/lib/orb/resources/dimensional_price_groups.rb +6 -6
- data/lib/orb/resources/events/backfills.rb +49 -49
- data/lib/orb/resources/events/volume.rb +10 -10
- data/lib/orb/resources/events.rb +295 -295
- data/lib/orb/resources/invoice_line_items.rb +1 -1
- data/lib/orb/resources/invoices.rb +38 -38
- data/lib/orb/resources/items.rb +1 -1
- data/lib/orb/resources/metrics.rb +11 -11
- data/lib/orb/resources/plans/external_plan_id.rb +14 -14
- data/lib/orb/resources/plans.rb +22 -22
- data/lib/orb/resources/prices/external_price_id.rb +4 -4
- data/lib/orb/resources/prices.rb +30 -30
- data/lib/orb/resources/subscription_changes.rb +87 -0
- data/lib/orb/resources/subscriptions.rb +813 -813
- data/lib/orb/resources/top_level.rb +4 -4
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +8 -0
- data/rbi/lib/orb/client.rbi +5 -4
- data/rbi/lib/orb/errors.rbi +3 -6
- data/rbi/lib/orb/internal/page.rbi +3 -6
- data/rbi/lib/orb/internal/transport/base_client.rbi +13 -27
- data/rbi/lib/orb/internal/transport/pooled_net_requester.rbi +8 -14
- data/rbi/lib/orb/internal/type/array_of.rbi +14 -18
- data/rbi/lib/orb/internal/type/base_model.rbi +51 -66
- data/rbi/lib/orb/internal/type/base_page.rbi +5 -10
- data/rbi/lib/orb/internal/type/boolean.rbi +12 -10
- data/rbi/lib/orb/internal/type/converter.rbi +44 -37
- data/rbi/lib/orb/internal/type/enum.rbi +24 -21
- data/rbi/lib/orb/internal/type/hash_of.rbi +13 -18
- data/rbi/lib/orb/internal/type/io_like.rbi +49 -0
- data/rbi/lib/orb/internal/type/request_parameters.rbi +1 -2
- data/rbi/lib/orb/internal/type/union.rbi +19 -21
- data/rbi/lib/orb/internal/type/unknown.rbi +10 -9
- data/rbi/lib/orb/internal/util.rbi +67 -70
- data/rbi/lib/orb/internal.rbi +1 -1
- data/rbi/lib/orb/models/alert.rbi +21 -33
- data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +8 -13
- data/rbi/lib/orb/models/alert_disable_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_enable_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_list_params.rbi +3 -6
- data/rbi/lib/orb/models/alert_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/alert_update_params.rbi +7 -11
- data/rbi/lib/orb/models/amount_discount.rbi +4 -7
- data/rbi/lib/orb/models/billable_metric.rbi +10 -13
- data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +1 -2
- data/rbi/lib/orb/models/coupon.rbi +9 -11
- data/rbi/lib/orb/models/coupon_archive_params.rbi +2 -4
- data/rbi/lib/orb/models/coupon_create_params.rbi +8 -14
- data/rbi/lib/orb/models/coupon_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/coupon_list_params.rbi +3 -4
- data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +3 -5
- data/rbi/lib/orb/models/credit_note.rbi +22 -45
- data/rbi/lib/orb/models/credit_note_create_params.rbi +5 -10
- data/rbi/lib/orb/models/credit_note_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/credit_note_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customer.rbi +256 -281
- data/rbi/lib/orb/models/customer_create_params.rbi +251 -276
- data/rbi/lib/orb/models/customer_delete_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +2 -4
- data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +252 -277
- data/rbi/lib/orb/models/customer_update_params.rbi +252 -277
- data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +3 -6
- data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +10 -19
- data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +3 -6
- data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +10 -19
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +8 -10
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +6 -12
- data/rbi/lib/orb/models/customers/cost_list_params.rbi +8 -10
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +6 -12
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +3 -4
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +2 -4
- data/rbi/lib/orb/models/customers/credit_list_params.rbi +3 -4
- data/rbi/lib/orb/models/customers/credit_list_response.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +26 -33
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +79 -136
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +26 -33
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +78 -135
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +5 -10
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +79 -136
- data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +5 -10
- data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +74 -131
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +13 -19
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +13 -19
- data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +2 -4
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +3 -5
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +12 -18
- data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +3 -5
- data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +12 -18
- data/rbi/lib/orb/models/dimensional_price_group.rbi +8 -9
- data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +4 -7
- data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +3 -5
- data/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +2 -4
- data/rbi/lib/orb/models/dimensional_price_groups.rbi +2 -4
- data/rbi/lib/orb/models/discount.rbi +1 -2
- data/rbi/lib/orb/models/evaluate_price_group.rbi +3 -6
- data/rbi/lib/orb/models/event_deprecate_params.rbi +2 -4
- data/rbi/lib/orb/models/event_deprecate_response.rbi +2 -4
- data/rbi/lib/orb/models/event_ingest_params.rbi +10 -13
- data/rbi/lib/orb/models/event_ingest_response.rbi +10 -16
- data/rbi/lib/orb/models/event_search_params.rbi +7 -9
- data/rbi/lib/orb/models/event_search_response.rbi +11 -14
- data/rbi/lib/orb/models/event_update_params.rbi +5 -6
- data/rbi/lib/orb/models/event_update_response.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_close_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_close_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_create_params.rbi +13 -16
- data/rbi/lib/orb/models/events/backfill_create_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_list_params.rbi +3 -5
- data/rbi/lib/orb/models/events/backfill_list_response.rbi +10 -14
- data/rbi/lib/orb/models/events/backfill_revert_params.rbi +2 -4
- data/rbi/lib/orb/models/events/backfill_revert_response.rbi +10 -14
- data/rbi/lib/orb/models/events/event_volumes.rbi +5 -9
- data/rbi/lib/orb/models/events/volume_list_params.rbi +9 -11
- data/rbi/lib/orb/models/invoice.rbi +388 -465
- data/rbi/lib/orb/models/invoice_create_params.rbi +19 -26
- data/rbi/lib/orb/models/invoice_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +381 -460
- data/rbi/lib/orb/models/invoice_issue_params.rbi +6 -8
- data/rbi/lib/orb/models/invoice_level_discount.rbi +1 -2
- data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +3 -5
- data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +101 -143
- data/rbi/lib/orb/models/invoice_list_params.rbi +8 -13
- data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_pay_params.rbi +2 -4
- data/rbi/lib/orb/models/invoice_update_params.rbi +4 -6
- data/rbi/lib/orb/models/invoice_void_params.rbi +2 -4
- data/rbi/lib/orb/models/item.rbi +7 -12
- data/rbi/lib/orb/models/item_create_params.rbi +2 -4
- data/rbi/lib/orb/models/item_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/item_list_params.rbi +3 -5
- data/rbi/lib/orb/models/item_update_params.rbi +5 -10
- data/rbi/lib/orb/models/metric_create_params.rbi +4 -6
- data/rbi/lib/orb/models/metric_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/metric_list_params.rbi +3 -6
- data/rbi/lib/orb/models/metric_update_params.rbi +4 -6
- data/rbi/lib/orb/models/pagination_metadata.rbi +2 -4
- data/rbi/lib/orb/models/percentage_discount.rbi +5 -8
- data/rbi/lib/orb/models/plan.rbi +180 -219
- data/rbi/lib/orb/models/plan_create_params.rbi +670 -951
- data/rbi/lib/orb/models/plan_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/plan_list_params.rbi +4 -8
- data/rbi/lib/orb/models/plan_update_params.rbi +6 -8
- data/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +6 -8
- data/rbi/lib/orb/models/price.rbi +827 -1494
- data/rbi/lib/orb/models/price_create_params.rbi +60 -101
- data/rbi/lib/orb/models/price_evaluate_params.rbi +6 -9
- data/rbi/lib/orb/models/price_evaluate_response.rbi +2 -4
- data/rbi/lib/orb/models/price_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/price_list_params.rbi +3 -5
- data/rbi/lib/orb/models/price_update_params.rbi +4 -6
- data/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +4 -6
- data/rbi/lib/orb/models/subscription.rbi +167 -187
- data/rbi/lib/orb/models/subscription_cancel_params.rbi +5 -7
- data/rbi/lib/orb/models/subscription_cancel_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_change_apply_params.rbi +40 -0
- data/rbi/lib/orb/models/subscription_change_apply_response.rbi +1554 -0
- data/rbi/lib/orb/models/subscription_change_cancel_params.rbi +18 -0
- data/rbi/lib/orb/models/subscription_change_cancel_response.rbi +1565 -0
- data/rbi/lib/orb/models/subscription_change_retrieve_params.rbi +18 -0
- data/rbi/lib/orb/models/subscription_change_retrieve_response.rbi +1581 -0
- data/rbi/lib/orb/models/subscription_create_params.rbi +1372 -1968
- data/rbi/lib/orb/models/subscription_create_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +8 -10
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +6 -12
- data/rbi/lib/orb/models/subscription_fetch_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +3 -6
- data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +6 -10
- data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +12 -17
- data/rbi/lib/orb/models/subscription_list_params.rbi +4 -8
- data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +772 -1124
- data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +228 -178
- data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +1396 -1993
- data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +5 -7
- data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +265 -199
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +2 -4
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +264 -198
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +11 -15
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +238 -182
- data/rbi/lib/orb/models/subscription_update_params.rbi +12 -15
- data/rbi/lib/orb/models/subscription_update_trial_params.rbi +6 -9
- data/rbi/lib/orb/models/subscription_update_trial_response.rbi +224 -178
- data/rbi/lib/orb/models/subscription_usage.rbi +24 -43
- data/rbi/lib/orb/models/subscriptions.rbi +2 -4
- data/rbi/lib/orb/models/top_level_ping_params.rbi +2 -4
- data/rbi/lib/orb/models/top_level_ping_response.rbi +2 -4
- data/rbi/lib/orb/models/trial_discount.rbi +4 -8
- data/rbi/lib/orb/models/usage_discount.rbi +5 -8
- data/rbi/lib/orb/request_options.rbi +9 -11
- data/rbi/lib/orb/resources/alerts.rbi +44 -60
- data/rbi/lib/orb/resources/coupons/subscriptions.rbi +6 -9
- data/rbi/lib/orb/resources/coupons.rbi +18 -25
- data/rbi/lib/orb/resources/credit_notes.rbi +9 -15
- data/rbi/lib/orb/resources/customers/balance_transactions.rbi +26 -31
- data/rbi/lib/orb/resources/customers/costs.rbi +241 -246
- data/rbi/lib/orb/resources/customers/credits/ledger.rbi +387 -396
- data/rbi/lib/orb/resources/customers/credits/top_ups.rbi +29 -40
- data/rbi/lib/orb/resources/customers/credits.rbi +15 -20
- data/rbi/lib/orb/resources/customers.rbi +407 -417
- data/rbi/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +2 -4
- data/rbi/lib/orb/resources/dimensional_price_groups.rbi +13 -19
- data/rbi/lib/orb/resources/events/backfills.rbi +61 -69
- data/rbi/lib/orb/resources/events/volume.rbi +19 -22
- data/rbi/lib/orb/resources/events.rbi +311 -319
- data/rbi/lib/orb/resources/invoice_line_items.rbi +4 -7
- data/rbi/lib/orb/resources/invoices.rbi +62 -76
- data/rbi/lib/orb/resources/items.rbi +7 -14
- data/rbi/lib/orb/resources/metrics.rbi +17 -25
- data/rbi/lib/orb/resources/plans/external_plan_id.rbi +21 -25
- data/rbi/lib/orb/resources/plans.rbi +63 -71
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +9 -13
- data/rbi/lib/orb/resources/prices.rbi +77 -87
- data/rbi/lib/orb/resources/subscription_changes.rbi +61 -0
- data/rbi/lib/orb/resources/subscriptions.rbi +933 -963
- data/rbi/lib/orb/resources/top_level.rbi +6 -8
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/internal/transport/pooled_net_requester.rbs +1 -1
- data/sig/orb/internal/type/array_of.rbs +5 -2
- data/sig/orb/internal/type/base_model.rbs +5 -2
- data/sig/orb/internal/type/boolean.rbs +5 -2
- data/sig/orb/internal/type/converter.rbs +11 -5
- data/sig/orb/internal/type/enum.rbs +5 -2
- data/sig/orb/internal/type/hash_of.rbs +5 -2
- data/sig/orb/internal/type/io_like.rbs +23 -0
- data/sig/orb/internal/type/union.rbs +5 -2
- data/sig/orb/internal/type/unknown.rbs +5 -2
- data/sig/orb/internal/util.rbs +17 -2
- data/sig/orb/models/subscription.rbs +14 -0
- data/sig/orb/models/subscription_cancel_response.rbs +47 -2
- data/sig/orb/models/subscription_change_apply_params.rbs +24 -0
- data/sig/orb/models/subscription_change_apply_response.rbs +784 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +15 -0
- data/sig/orb/models/subscription_change_cancel_response.rbs +784 -0
- data/sig/orb/models/subscription_change_retrieve_params.rbs +15 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +784 -0
- data/sig/orb/models/subscription_create_response.rbs +47 -2
- data/sig/orb/models/subscription_price_intervals_response.rbs +47 -2
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +47 -2
- data/sig/orb/models/subscription_trigger_phase_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +47 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +47 -2
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +47 -2
- data/sig/orb/models/subscription_update_trial_response.rbs +47 -2
- data/sig/orb/resources/customers.rbs +2 -2
- data/sig/orb/resources/subscription_changes.rbs +24 -0
- metadata +28 -4
@@ -11,7 +11,7 @@ module Orb
|
|
11
11
|
|
12
12
|
# @!attribute amount_due
|
13
13
|
# This is the final amount required to be charged to the customer and reflects the
|
14
|
-
#
|
14
|
+
# application of the customer balance to the `total` of the invoice.
|
15
15
|
#
|
16
16
|
# @return [String]
|
17
17
|
required :amount_due, String
|
@@ -58,118 +58,118 @@ module Orb
|
|
58
58
|
|
59
59
|
# @!attribute customer_tax_id
|
60
60
|
# Tax IDs are commonly required to be displayed on customer invoices, which are
|
61
|
-
#
|
61
|
+
# added to the headers of invoices.
|
62
62
|
#
|
63
|
-
#
|
63
|
+
# ### Supported Tax ID Countries and Types
|
64
64
|
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
164
|
-
#
|
65
|
+
# | Country | Type | Description |
|
66
|
+
# | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
|
67
|
+
# | Andorra | `ad_nrt` | Andorran NRT Number |
|
68
|
+
# | Argentina | `ar_cuit` | Argentinian Tax ID Number |
|
69
|
+
# | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
70
|
+
# | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
71
|
+
# | Austria | `eu_vat` | European VAT Number |
|
72
|
+
# | Bahrain | `bh_vat` | Bahraini VAT Number |
|
73
|
+
# | Belgium | `eu_vat` | European VAT Number |
|
74
|
+
# | Bolivia | `bo_tin` | Bolivian Tax ID |
|
75
|
+
# | Brazil | `br_cnpj` | Brazilian CNPJ Number |
|
76
|
+
# | Brazil | `br_cpf` | Brazilian CPF Number |
|
77
|
+
# | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
78
|
+
# | Bulgaria | `eu_vat` | European VAT Number |
|
79
|
+
# | Canada | `ca_bn` | Canadian BN |
|
80
|
+
# | Canada | `ca_gst_hst` | Canadian GST/HST Number |
|
81
|
+
# | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
|
82
|
+
# | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
|
83
|
+
# | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
|
84
|
+
# | Canada | `ca_qst` | Canadian QST Number (Québec) |
|
85
|
+
# | Chile | `cl_tin` | Chilean TIN |
|
86
|
+
# | China | `cn_tin` | Chinese Tax ID |
|
87
|
+
# | Colombia | `co_nit` | Colombian NIT Number |
|
88
|
+
# | Costa Rica | `cr_tin` | Costa Rican Tax ID |
|
89
|
+
# | Croatia | `eu_vat` | European VAT Number |
|
90
|
+
# | Cyprus | `eu_vat` | European VAT Number |
|
91
|
+
# | Czech Republic | `eu_vat` | European VAT Number |
|
92
|
+
# | Denmark | `eu_vat` | European VAT Number |
|
93
|
+
# | Dominican Republic | `do_rcn` | Dominican RCN Number |
|
94
|
+
# | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
|
95
|
+
# | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
96
|
+
# | El Salvador | `sv_nit` | El Salvadorian NIT Number |
|
97
|
+
# | Estonia | `eu_vat` | European VAT Number |
|
98
|
+
# | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
|
99
|
+
# | Finland | `eu_vat` | European VAT Number |
|
100
|
+
# | France | `eu_vat` | European VAT Number |
|
101
|
+
# | Georgia | `ge_vat` | Georgian VAT |
|
102
|
+
# | Germany | `eu_vat` | European VAT Number |
|
103
|
+
# | Greece | `eu_vat` | European VAT Number |
|
104
|
+
# | Hong Kong | `hk_br` | Hong Kong BR Number |
|
105
|
+
# | Hungary | `eu_vat` | European VAT Number |
|
106
|
+
# | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
|
107
|
+
# | Iceland | `is_vat` | Icelandic VAT |
|
108
|
+
# | India | `in_gst` | Indian GST Number |
|
109
|
+
# | Indonesia | `id_npwp` | Indonesian NPWP Number |
|
110
|
+
# | Ireland | `eu_vat` | European VAT Number |
|
111
|
+
# | Israel | `il_vat` | Israel VAT |
|
112
|
+
# | Italy | `eu_vat` | European VAT Number |
|
113
|
+
# | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
|
114
|
+
# | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
|
115
|
+
# | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
|
116
|
+
# | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
|
117
|
+
# | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
118
|
+
# | Latvia | `eu_vat` | European VAT Number |
|
119
|
+
# | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
|
120
|
+
# | Lithuania | `eu_vat` | European VAT Number |
|
121
|
+
# | Luxembourg | `eu_vat` | European VAT Number |
|
122
|
+
# | Malaysia | `my_frp` | Malaysian FRP Number |
|
123
|
+
# | Malaysia | `my_itn` | Malaysian ITN |
|
124
|
+
# | Malaysia | `my_sst` | Malaysian SST Number |
|
125
|
+
# | Malta | `eu_vat ` | European VAT Number |
|
126
|
+
# | Mexico | `mx_rfc` | Mexican RFC Number |
|
127
|
+
# | Netherlands | `eu_vat` | European VAT Number |
|
128
|
+
# | New Zealand | `nz_gst` | New Zealand GST Number |
|
129
|
+
# | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
|
130
|
+
# | Norway | `no_vat` | Norwegian VAT Number |
|
131
|
+
# | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
|
132
|
+
# | Oman | `om_vat` | Omani VAT Number |
|
133
|
+
# | Peru | `pe_ruc` | Peruvian RUC Number |
|
134
|
+
# | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
135
|
+
# | Poland | `eu_vat` | European VAT Number |
|
136
|
+
# | Portugal | `eu_vat` | European VAT Number |
|
137
|
+
# | Romania | `eu_vat` | European VAT Number |
|
138
|
+
# | Romania | `ro_tin` | Romanian Tax ID Number |
|
139
|
+
# | Russia | `ru_inn` | Russian INN |
|
140
|
+
# | Russia | `ru_kpp` | Russian KPP |
|
141
|
+
# | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
|
142
|
+
# | Serbia | `rs_pib` | Serbian PIB Number |
|
143
|
+
# | Singapore | `sg_gst` | Singaporean GST |
|
144
|
+
# | Singapore | `sg_uen` | Singaporean UEN |
|
145
|
+
# | Slovakia | `eu_vat` | European VAT Number |
|
146
|
+
# | Slovenia | `eu_vat` | European VAT Number |
|
147
|
+
# | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
|
148
|
+
# | South Africa | `za_vat` | South African VAT Number |
|
149
|
+
# | South Korea | `kr_brn` | Korean BRN |
|
150
|
+
# | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
|
151
|
+
# | Spain | `eu_vat` | European VAT Number |
|
152
|
+
# | Sweden | `eu_vat` | European VAT Number |
|
153
|
+
# | Switzerland | `ch_vat` | Switzerland VAT Number |
|
154
|
+
# | Taiwan | `tw_vat` | Taiwanese VAT |
|
155
|
+
# | Thailand | `th_vat` | Thai VAT |
|
156
|
+
# | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
157
|
+
# | Ukraine | `ua_vat` | Ukrainian VAT |
|
158
|
+
# | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
159
|
+
# | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
|
160
|
+
# | United Kingdom | `gb_vat` | United Kingdom VAT Number |
|
161
|
+
# | United States | `us_ein` | United States EIN |
|
162
|
+
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
163
|
+
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
164
|
+
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
165
165
|
#
|
166
166
|
# @return [Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID, nil]
|
167
167
|
required :customer_tax_id, -> { Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID }, nil?: true
|
168
168
|
|
169
169
|
# @!attribute discount
|
170
170
|
# This field is deprecated in favor of `discounts`. If a `discounts` list is
|
171
|
-
#
|
172
|
-
#
|
171
|
+
# provided, the first discount in the list will be returned. If the list is empty,
|
172
|
+
# `None` will be returned.
|
173
173
|
#
|
174
174
|
# @return [Object]
|
175
175
|
required :discount, Orb::Internal::Type::Unknown
|
@@ -181,30 +181,30 @@ module Orb
|
|
181
181
|
|
182
182
|
# @!attribute due_date
|
183
183
|
# When the invoice payment is due. The due date is null if the invoice is not yet
|
184
|
-
#
|
184
|
+
# finalized.
|
185
185
|
#
|
186
186
|
# @return [Time, nil]
|
187
187
|
required :due_date, Time, nil?: true
|
188
188
|
|
189
189
|
# @!attribute eligible_to_issue_at
|
190
190
|
# If the invoice has a status of `draft`, this will be the time that the invoice
|
191
|
-
#
|
192
|
-
#
|
191
|
+
# will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is
|
192
|
+
# true, the invoice will automatically begin issuing at this time.
|
193
193
|
#
|
194
194
|
# @return [Time, nil]
|
195
195
|
required :eligible_to_issue_at, Time, nil?: true
|
196
196
|
|
197
197
|
# @!attribute hosted_invoice_url
|
198
198
|
# A URL for the customer-facing invoice portal. This URL expires 30 days after the
|
199
|
-
#
|
199
|
+
# invoice's due date, or 60 days after being re-generated through the UI.
|
200
200
|
#
|
201
201
|
# @return [String, nil]
|
202
202
|
required :hosted_invoice_url, String, nil?: true
|
203
203
|
|
204
204
|
# @!attribute invoice_number
|
205
205
|
# Automatically generated invoice number to help track and reconcile invoices.
|
206
|
-
#
|
207
|
-
#
|
206
|
+
# Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per
|
207
|
+
# account or customer.
|
208
208
|
#
|
209
209
|
# @return [String]
|
210
210
|
required :invoice_number, String
|
@@ -222,14 +222,14 @@ module Orb
|
|
222
222
|
|
223
223
|
# @!attribute issue_failed_at
|
224
224
|
# If the invoice failed to issue, this will be the last time it failed to issue
|
225
|
-
#
|
225
|
+
# (even if it is now in a different state.)
|
226
226
|
#
|
227
227
|
# @return [Time, nil]
|
228
228
|
required :issue_failed_at, Time, nil?: true
|
229
229
|
|
230
230
|
# @!attribute issued_at
|
231
231
|
# If the invoice has been issued, this will be the time it transitioned to
|
232
|
-
#
|
232
|
+
# `issued` (even if it is now in a different state.)
|
233
233
|
#
|
234
234
|
# @return [Time, nil]
|
235
235
|
required :issued_at, Time, nil?: true
|
@@ -259,9 +259,9 @@ module Orb
|
|
259
259
|
|
260
260
|
# @!attribute metadata
|
261
261
|
# User specified key-value pairs for the resource. If not present, this defaults
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
262
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
263
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
264
|
+
# `null`.
|
265
265
|
#
|
266
266
|
# @return [Hash{Symbol=>String}]
|
267
267
|
required :metadata, Orb::Internal::Type::HashOf[String]
|
@@ -278,7 +278,7 @@ module Orb
|
|
278
278
|
|
279
279
|
# @!attribute paid_at
|
280
280
|
# If the invoice has a status of `paid`, this gives a timestamp when the invoice
|
281
|
-
#
|
281
|
+
# was paid.
|
282
282
|
#
|
283
283
|
# @return [Time, nil]
|
284
284
|
required :paid_at, Time, nil?: true
|
@@ -292,22 +292,22 @@ module Orb
|
|
292
292
|
|
293
293
|
# @!attribute payment_failed_at
|
294
294
|
# If payment was attempted on this invoice but failed, this will be the time of
|
295
|
-
#
|
295
|
+
# the most recent attempt.
|
296
296
|
#
|
297
297
|
# @return [Time, nil]
|
298
298
|
required :payment_failed_at, Time, nil?: true
|
299
299
|
|
300
300
|
# @!attribute payment_started_at
|
301
301
|
# If payment was attempted on this invoice, this will be the start time of the
|
302
|
-
#
|
303
|
-
#
|
302
|
+
# most recent attempt. This field is especially useful for delayed-notification
|
303
|
+
# payment mechanisms (like bank transfers), where payment can take 3 days or more.
|
304
304
|
#
|
305
305
|
# @return [Time, nil]
|
306
306
|
required :payment_started_at, Time, nil?: true
|
307
307
|
|
308
308
|
# @!attribute scheduled_issue_at
|
309
309
|
# If the invoice is in draft, this timestamp will reflect when the invoice is
|
310
|
-
#
|
310
|
+
# scheduled to be issued.
|
311
311
|
#
|
312
312
|
# @return [Time, nil]
|
313
313
|
required :scheduled_issue_at, Time, nil?: true
|
@@ -335,8 +335,8 @@ module Orb
|
|
335
335
|
|
336
336
|
# @!attribute sync_failed_at
|
337
337
|
# If the invoice failed to sync, this will be the last time an external invoicing
|
338
|
-
#
|
339
|
-
#
|
338
|
+
# provider sync was attempted. This field will always be `null` for invoices using
|
339
|
+
# Orb Invoicing.
|
340
340
|
#
|
341
341
|
# @return [Time, nil]
|
342
342
|
required :sync_failed_at, Time, nil?: true
|
@@ -355,14 +355,14 @@ module Orb
|
|
355
355
|
|
356
356
|
# @!attribute voided_at
|
357
357
|
# If the invoice has a status of `void`, this gives a timestamp when the invoice
|
358
|
-
#
|
358
|
+
# was voided.
|
359
359
|
#
|
360
360
|
# @return [Time, nil]
|
361
361
|
required :voided_at, Time, nil?: true
|
362
362
|
|
363
363
|
# @!attribute will_auto_issue
|
364
364
|
# This is true if the invoice will be automatically issued in the future, and
|
365
|
-
#
|
365
|
+
# false otherwise.
|
366
366
|
#
|
367
367
|
# @return [Boolean]
|
368
368
|
required :will_auto_issue, Orb::Internal::Type::Boolean
|
@@ -469,8 +469,8 @@ module Orb
|
|
469
469
|
|
470
470
|
# @!attribute next_attempt_at
|
471
471
|
# If the invoice is scheduled for auto-collection, this field will reflect when
|
472
|
-
#
|
473
|
-
#
|
472
|
+
# the next attempt will occur. If dunning has been exhausted, or auto-collection
|
473
|
+
# is not enabled for this invoice, this field will be `null`.
|
474
474
|
#
|
475
475
|
# @return [Time, nil]
|
476
476
|
required :next_attempt_at, Time, nil?: true
|
@@ -483,11 +483,11 @@ module Orb
|
|
483
483
|
|
484
484
|
# @!attribute previously_attempted_at
|
485
485
|
# If Orb has ever attempted payment auto-collection for this invoice, this field
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
486
|
+
# will reflect when that attempt occurred. In conjunction with `next_attempt_at`,
|
487
|
+
# this can be used to tell whether the invoice is currently in dunning (that is,
|
488
|
+
# `previously_attempted_at` is non-null, and `next_attempt_time` is non-null), or
|
489
|
+
# if dunning has been exhausted (`previously_attempted_at` is non-null, but
|
490
|
+
# `next_attempt_time` is null).
|
491
491
|
#
|
492
492
|
# @return [Time, nil]
|
493
493
|
required :previously_attempted_at, Time, nil?: true
|
@@ -582,7 +582,7 @@ module Orb
|
|
582
582
|
|
583
583
|
# @!attribute voided_at
|
584
584
|
# If the credit note has a status of `void`, this gives a timestamp when the
|
585
|
-
#
|
585
|
+
# credit note was voided.
|
586
586
|
#
|
587
587
|
# @return [Time, nil]
|
588
588
|
required :voided_at, Time, nil?: true
|
@@ -662,7 +662,7 @@ module Orb
|
|
662
662
|
|
663
663
|
# @!attribute ending_balance
|
664
664
|
# The new value of the customer's balance prior to the transaction, in the
|
665
|
-
#
|
665
|
+
# customer's currency.
|
666
666
|
#
|
667
667
|
# @return [String]
|
668
668
|
required :ending_balance, String
|
@@ -676,7 +676,7 @@ module Orb
|
|
676
676
|
|
677
677
|
# @!attribute starting_balance
|
678
678
|
# The original value of the customer's balance prior to the transaction, in the
|
679
|
-
#
|
679
|
+
# customer's currency.
|
680
680
|
#
|
681
681
|
# @return [String]
|
682
682
|
required :starting_balance, String
|
@@ -803,110 +803,110 @@ module Orb
|
|
803
803
|
|
804
804
|
# @!parse
|
805
805
|
# # Tax IDs are commonly required to be displayed on customer invoices, which are
|
806
|
-
# #
|
806
|
+
# # added to the headers of invoices.
|
807
807
|
# #
|
808
|
-
# #
|
808
|
+
# # ### Supported Tax ID Countries and Types
|
809
809
|
# #
|
810
|
-
# #
|
811
|
-
# #
|
812
|
-
# #
|
813
|
-
# #
|
814
|
-
# #
|
815
|
-
# #
|
816
|
-
# #
|
817
|
-
# #
|
818
|
-
# #
|
819
|
-
# #
|
820
|
-
# #
|
821
|
-
# #
|
822
|
-
# #
|
823
|
-
# #
|
824
|
-
# #
|
825
|
-
# #
|
826
|
-
# #
|
827
|
-
# #
|
828
|
-
# #
|
829
|
-
# #
|
830
|
-
# #
|
831
|
-
# #
|
832
|
-
# #
|
833
|
-
# #
|
834
|
-
# #
|
835
|
-
# #
|
836
|
-
# #
|
837
|
-
# #
|
838
|
-
# #
|
839
|
-
# #
|
840
|
-
# #
|
841
|
-
# #
|
842
|
-
# #
|
843
|
-
# #
|
844
|
-
# #
|
845
|
-
# #
|
846
|
-
# #
|
847
|
-
# #
|
848
|
-
# #
|
849
|
-
# #
|
850
|
-
# #
|
851
|
-
# #
|
852
|
-
# #
|
853
|
-
# #
|
854
|
-
# #
|
855
|
-
# #
|
856
|
-
# #
|
857
|
-
# #
|
858
|
-
# #
|
859
|
-
# #
|
860
|
-
# #
|
861
|
-
# #
|
862
|
-
# #
|
863
|
-
# #
|
864
|
-
# #
|
865
|
-
# #
|
866
|
-
# #
|
867
|
-
# #
|
868
|
-
# #
|
869
|
-
# #
|
870
|
-
# #
|
871
|
-
# #
|
872
|
-
# #
|
873
|
-
# #
|
874
|
-
# #
|
875
|
-
# #
|
876
|
-
# #
|
877
|
-
# #
|
878
|
-
# #
|
879
|
-
# #
|
880
|
-
# #
|
881
|
-
# #
|
882
|
-
# #
|
883
|
-
# #
|
884
|
-
# #
|
885
|
-
# #
|
886
|
-
# #
|
887
|
-
# #
|
888
|
-
# #
|
889
|
-
# #
|
890
|
-
# #
|
891
|
-
# #
|
892
|
-
# #
|
893
|
-
# #
|
894
|
-
# #
|
895
|
-
# #
|
896
|
-
# #
|
897
|
-
# #
|
898
|
-
# #
|
899
|
-
# #
|
900
|
-
# #
|
901
|
-
# #
|
902
|
-
# #
|
903
|
-
# #
|
904
|
-
# #
|
905
|
-
# #
|
906
|
-
# #
|
907
|
-
# #
|
908
|
-
# #
|
909
|
-
# #
|
810
|
+
# # | Country | Type | Description |
|
811
|
+
# # | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
|
812
|
+
# # | Andorra | `ad_nrt` | Andorran NRT Number |
|
813
|
+
# # | Argentina | `ar_cuit` | Argentinian Tax ID Number |
|
814
|
+
# # | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
815
|
+
# # | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
816
|
+
# # | Austria | `eu_vat` | European VAT Number |
|
817
|
+
# # | Bahrain | `bh_vat` | Bahraini VAT Number |
|
818
|
+
# # | Belgium | `eu_vat` | European VAT Number |
|
819
|
+
# # | Bolivia | `bo_tin` | Bolivian Tax ID |
|
820
|
+
# # | Brazil | `br_cnpj` | Brazilian CNPJ Number |
|
821
|
+
# # | Brazil | `br_cpf` | Brazilian CPF Number |
|
822
|
+
# # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
823
|
+
# # | Bulgaria | `eu_vat` | European VAT Number |
|
824
|
+
# # | Canada | `ca_bn` | Canadian BN |
|
825
|
+
# # | Canada | `ca_gst_hst` | Canadian GST/HST Number |
|
826
|
+
# # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
|
827
|
+
# # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
|
828
|
+
# # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
|
829
|
+
# # | Canada | `ca_qst` | Canadian QST Number (Québec) |
|
830
|
+
# # | Chile | `cl_tin` | Chilean TIN |
|
831
|
+
# # | China | `cn_tin` | Chinese Tax ID |
|
832
|
+
# # | Colombia | `co_nit` | Colombian NIT Number |
|
833
|
+
# # | Costa Rica | `cr_tin` | Costa Rican Tax ID |
|
834
|
+
# # | Croatia | `eu_vat` | European VAT Number |
|
835
|
+
# # | Cyprus | `eu_vat` | European VAT Number |
|
836
|
+
# # | Czech Republic | `eu_vat` | European VAT Number |
|
837
|
+
# # | Denmark | `eu_vat` | European VAT Number |
|
838
|
+
# # | Dominican Republic | `do_rcn` | Dominican RCN Number |
|
839
|
+
# # | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
|
840
|
+
# # | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
841
|
+
# # | El Salvador | `sv_nit` | El Salvadorian NIT Number |
|
842
|
+
# # | Estonia | `eu_vat` | European VAT Number |
|
843
|
+
# # | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
|
844
|
+
# # | Finland | `eu_vat` | European VAT Number |
|
845
|
+
# # | France | `eu_vat` | European VAT Number |
|
846
|
+
# # | Georgia | `ge_vat` | Georgian VAT |
|
847
|
+
# # | Germany | `eu_vat` | European VAT Number |
|
848
|
+
# # | Greece | `eu_vat` | European VAT Number |
|
849
|
+
# # | Hong Kong | `hk_br` | Hong Kong BR Number |
|
850
|
+
# # | Hungary | `eu_vat` | European VAT Number |
|
851
|
+
# # | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
|
852
|
+
# # | Iceland | `is_vat` | Icelandic VAT |
|
853
|
+
# # | India | `in_gst` | Indian GST Number |
|
854
|
+
# # | Indonesia | `id_npwp` | Indonesian NPWP Number |
|
855
|
+
# # | Ireland | `eu_vat` | European VAT Number |
|
856
|
+
# # | Israel | `il_vat` | Israel VAT |
|
857
|
+
# # | Italy | `eu_vat` | European VAT Number |
|
858
|
+
# # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
|
859
|
+
# # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
|
860
|
+
# # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
|
861
|
+
# # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
|
862
|
+
# # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
863
|
+
# # | Latvia | `eu_vat` | European VAT Number |
|
864
|
+
# # | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
|
865
|
+
# # | Lithuania | `eu_vat` | European VAT Number |
|
866
|
+
# # | Luxembourg | `eu_vat` | European VAT Number |
|
867
|
+
# # | Malaysia | `my_frp` | Malaysian FRP Number |
|
868
|
+
# # | Malaysia | `my_itn` | Malaysian ITN |
|
869
|
+
# # | Malaysia | `my_sst` | Malaysian SST Number |
|
870
|
+
# # | Malta | `eu_vat ` | European VAT Number |
|
871
|
+
# # | Mexico | `mx_rfc` | Mexican RFC Number |
|
872
|
+
# # | Netherlands | `eu_vat` | European VAT Number |
|
873
|
+
# # | New Zealand | `nz_gst` | New Zealand GST Number |
|
874
|
+
# # | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
|
875
|
+
# # | Norway | `no_vat` | Norwegian VAT Number |
|
876
|
+
# # | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
|
877
|
+
# # | Oman | `om_vat` | Omani VAT Number |
|
878
|
+
# # | Peru | `pe_ruc` | Peruvian RUC Number |
|
879
|
+
# # | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
880
|
+
# # | Poland | `eu_vat` | European VAT Number |
|
881
|
+
# # | Portugal | `eu_vat` | European VAT Number |
|
882
|
+
# # | Romania | `eu_vat` | European VAT Number |
|
883
|
+
# # | Romania | `ro_tin` | Romanian Tax ID Number |
|
884
|
+
# # | Russia | `ru_inn` | Russian INN |
|
885
|
+
# # | Russia | `ru_kpp` | Russian KPP |
|
886
|
+
# # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
|
887
|
+
# # | Serbia | `rs_pib` | Serbian PIB Number |
|
888
|
+
# # | Singapore | `sg_gst` | Singaporean GST |
|
889
|
+
# # | Singapore | `sg_uen` | Singaporean UEN |
|
890
|
+
# # | Slovakia | `eu_vat` | European VAT Number |
|
891
|
+
# # | Slovenia | `eu_vat` | European VAT Number |
|
892
|
+
# # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
|
893
|
+
# # | South Africa | `za_vat` | South African VAT Number |
|
894
|
+
# # | South Korea | `kr_brn` | Korean BRN |
|
895
|
+
# # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
|
896
|
+
# # | Spain | `eu_vat` | European VAT Number |
|
897
|
+
# # | Sweden | `eu_vat` | European VAT Number |
|
898
|
+
# # | Switzerland | `ch_vat` | Switzerland VAT Number |
|
899
|
+
# # | Taiwan | `tw_vat` | Taiwanese VAT |
|
900
|
+
# # | Thailand | `th_vat` | Thai VAT |
|
901
|
+
# # | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
902
|
+
# # | Ukraine | `ua_vat` | Ukrainian VAT |
|
903
|
+
# # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
904
|
+
# # | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
|
905
|
+
# # | United Kingdom | `gb_vat` | United Kingdom VAT Number |
|
906
|
+
# # | United States | `us_ein` | United States EIN |
|
907
|
+
# # | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
908
|
+
# # | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
909
|
+
# # | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
910
910
|
# #
|
911
911
|
# # @param country [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country]
|
912
912
|
# # @param type [Symbol, Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type]
|
@@ -1114,15 +1114,15 @@ module Orb
|
|
1114
1114
|
|
1115
1115
|
# @!attribute adjusted_subtotal
|
1116
1116
|
# The line amount after any adjustments and before overage conversion, credits and
|
1117
|
-
#
|
1117
|
+
# partial invoicing.
|
1118
1118
|
#
|
1119
1119
|
# @return [String]
|
1120
1120
|
required :adjusted_subtotal, String
|
1121
1121
|
|
1122
1122
|
# @!attribute adjustments
|
1123
1123
|
# All adjustments applied to the line item in the order they were applied based on
|
1124
|
-
#
|
1125
|
-
#
|
1124
|
+
# invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
1125
|
+
# discounts -> minimums -> maximums).
|
1126
1126
|
#
|
1127
1127
|
# @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryUsageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryAmountDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryPercentageDiscountAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMinimumAdjustment, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::MonetaryMaximumAdjustment>]
|
1128
1128
|
required :adjustments,
|
@@ -1130,7 +1130,7 @@ module Orb
|
|
1130
1130
|
|
1131
1131
|
# @!attribute amount
|
1132
1132
|
# The final amount for a line item after all adjustments and pre paid credits have
|
1133
|
-
#
|
1133
|
+
# been applied.
|
1134
1134
|
#
|
1135
1135
|
# @return [String]
|
1136
1136
|
required :amount, String
|
@@ -1160,8 +1160,8 @@ module Orb
|
|
1160
1160
|
|
1161
1161
|
# @!attribute grouping
|
1162
1162
|
# [DEPRECATED] For configured prices that are split by a grouping key, this will
|
1163
|
-
#
|
1164
|
-
#
|
1163
|
+
# be populated with the key and a value. The `amount` and `subtotal` will be the
|
1164
|
+
# values for this particular grouping.
|
1165
1165
|
#
|
1166
1166
|
# @return [String, nil]
|
1167
1167
|
required :grouping, String, nil?: true
|
@@ -1204,15 +1204,15 @@ module Orb
|
|
1204
1204
|
|
1205
1205
|
# @!attribute price
|
1206
1206
|
# The Price resource represents a price that can be billed on a subscription,
|
1207
|
-
#
|
1208
|
-
#
|
1207
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
1208
|
+
# take a quantity and determine an amount to bill.
|
1209
1209
|
#
|
1210
|
-
#
|
1211
|
-
#
|
1212
|
-
#
|
1210
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
1211
|
+
# is serialized differently in a given Price object. The model_type field
|
1212
|
+
# determines the key for the configuration object that is present.
|
1213
1213
|
#
|
1214
|
-
#
|
1215
|
-
#
|
1214
|
+
# For more on the types of prices, see
|
1215
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1216
1216
|
#
|
1217
1217
|
# @return [Orb::Models::Price::UnitPrice, Orb::Models::Price::PackagePrice, Orb::Models::Price::MatrixPrice, Orb::Models::Price::TieredPrice, Orb::Models::Price::TieredBpsPrice, Orb::Models::Price::BpsPrice, Orb::Models::Price::BulkBpsPrice, Orb::Models::Price::BulkPrice, Orb::Models::Price::ThresholdTotalAmountPrice, Orb::Models::Price::TieredPackagePrice, Orb::Models::Price::GroupedTieredPrice, Orb::Models::Price::TieredWithMinimumPrice, Orb::Models::Price::TieredPackageWithMinimumPrice, Orb::Models::Price::PackageWithAllocationPrice, Orb::Models::Price::UnitWithPercentPrice, Orb::Models::Price::MatrixWithAllocationPrice, Orb::Models::Price::TieredWithProrationPrice, Orb::Models::Price::UnitWithProrationPrice, Orb::Models::Price::GroupedAllocationPrice, Orb::Models::Price::GroupedWithProratedMinimumPrice, Orb::Models::Price::GroupedWithMeteredMinimumPrice, Orb::Models::Price::MatrixWithDisplayNamePrice, Orb::Models::Price::BulkWithProrationPrice, Orb::Models::Price::GroupedTieredPackagePrice, Orb::Models::Price::MaxGroupTieredPackagePrice, Orb::Models::Price::ScalableMatrixWithUnitPricingPrice, Orb::Models::Price::ScalableMatrixWithTieredPricingPrice, Orb::Models::Price::CumulativeGroupedBulkPrice, nil]
|
1218
1218
|
required :price, union: -> { Orb::Models::Price }, nil?: true
|
@@ -1231,7 +1231,7 @@ module Orb
|
|
1231
1231
|
|
1232
1232
|
# @!attribute sub_line_items
|
1233
1233
|
# For complex pricing structures, the line item can be broken down further in
|
1234
|
-
#
|
1234
|
+
# `sub_line_items`.
|
1235
1235
|
#
|
1236
1236
|
# @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::TierSubLineItem, Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::OtherSubLineItem>]
|
1237
1237
|
required :sub_line_items,
|
@@ -1245,7 +1245,7 @@ module Orb
|
|
1245
1245
|
|
1246
1246
|
# @!attribute tax_amounts
|
1247
1247
|
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
1248
|
-
#
|
1248
|
+
# integration is configured.
|
1249
1249
|
#
|
1250
1250
|
# @return [Array<Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount>]
|
1251
1251
|
required :tax_amounts,
|
@@ -1356,7 +1356,7 @@ module Orb
|
|
1356
1356
|
|
1357
1357
|
# @!attribute is_invoice_level
|
1358
1358
|
# True for adjustments that apply to an entire invocice, false for adjustments
|
1359
|
-
#
|
1359
|
+
# that apply to only one price.
|
1360
1360
|
#
|
1361
1361
|
# @return [Boolean]
|
1362
1362
|
required :is_invoice_level, Orb::Internal::Type::Boolean
|
@@ -1369,7 +1369,7 @@ module Orb
|
|
1369
1369
|
|
1370
1370
|
# @!attribute usage_discount
|
1371
1371
|
# The number of usage units by which to discount the price this adjustment applies
|
1372
|
-
#
|
1372
|
+
# to in a given billing period.
|
1373
1373
|
#
|
1374
1374
|
# @return [Float]
|
1375
1375
|
required :usage_discount, Float
|
@@ -1418,7 +1418,7 @@ module Orb
|
|
1418
1418
|
|
1419
1419
|
# @!attribute amount_discount
|
1420
1420
|
# The amount by which to discount the prices this adjustment applies to in a given
|
1421
|
-
#
|
1421
|
+
# billing period.
|
1422
1422
|
#
|
1423
1423
|
# @return [String]
|
1424
1424
|
required :amount_discount, String
|
@@ -1431,7 +1431,7 @@ module Orb
|
|
1431
1431
|
|
1432
1432
|
# @!attribute is_invoice_level
|
1433
1433
|
# True for adjustments that apply to an entire invocice, false for adjustments
|
1434
|
-
#
|
1434
|
+
# that apply to only one price.
|
1435
1435
|
#
|
1436
1436
|
# @return [Boolean]
|
1437
1437
|
required :is_invoice_level, Orb::Internal::Type::Boolean
|
@@ -1492,14 +1492,14 @@ module Orb
|
|
1492
1492
|
|
1493
1493
|
# @!attribute is_invoice_level
|
1494
1494
|
# True for adjustments that apply to an entire invocice, false for adjustments
|
1495
|
-
#
|
1495
|
+
# that apply to only one price.
|
1496
1496
|
#
|
1497
1497
|
# @return [Boolean]
|
1498
1498
|
required :is_invoice_level, Orb::Internal::Type::Boolean
|
1499
1499
|
|
1500
1500
|
# @!attribute percentage_discount
|
1501
1501
|
# The percentage (as a value between 0 and 1) by which to discount the price
|
1502
|
-
#
|
1502
|
+
# intervals this adjustment applies to in a given billing period.
|
1503
1503
|
#
|
1504
1504
|
# @return [Float]
|
1505
1505
|
required :percentage_discount, Float
|
@@ -1560,7 +1560,7 @@ module Orb
|
|
1560
1560
|
|
1561
1561
|
# @!attribute is_invoice_level
|
1562
1562
|
# True for adjustments that apply to an entire invocice, false for adjustments
|
1563
|
-
#
|
1563
|
+
# that apply to only one price.
|
1564
1564
|
#
|
1565
1565
|
# @return [Boolean]
|
1566
1566
|
required :is_invoice_level, Orb::Internal::Type::Boolean
|
@@ -1573,7 +1573,7 @@ module Orb
|
|
1573
1573
|
|
1574
1574
|
# @!attribute minimum_amount
|
1575
1575
|
# The minimum amount to charge in a given billing period for the prices this
|
1576
|
-
#
|
1576
|
+
# adjustment applies to.
|
1577
1577
|
#
|
1578
1578
|
# @return [String]
|
1579
1579
|
required :minimum_amount, String
|
@@ -1636,14 +1636,14 @@ module Orb
|
|
1636
1636
|
|
1637
1637
|
# @!attribute is_invoice_level
|
1638
1638
|
# True for adjustments that apply to an entire invocice, false for adjustments
|
1639
|
-
#
|
1639
|
+
# that apply to only one price.
|
1640
1640
|
#
|
1641
1641
|
# @return [Boolean]
|
1642
1642
|
required :is_invoice_level, Orb::Internal::Type::Boolean
|
1643
1643
|
|
1644
1644
|
# @!attribute maximum_amount
|
1645
1645
|
# The maximum amount to charge in a given billing period for the prices this
|
1646
|
-
#
|
1646
|
+
# adjustment applies to.
|
1647
1647
|
#
|
1648
1648
|
# @return [String]
|
1649
1649
|
required :maximum_amount, String
|
@@ -1690,7 +1690,7 @@ module Orb
|
|
1690
1690
|
class Maximum < Orb::Internal::Type::BaseModel
|
1691
1691
|
# @!attribute applies_to_price_ids
|
1692
1692
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
1693
|
-
#
|
1693
|
+
# maximums, this can be a subset of prices.
|
1694
1694
|
#
|
1695
1695
|
# @return [Array<String>]
|
1696
1696
|
required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String]
|
@@ -1718,7 +1718,7 @@ module Orb
|
|
1718
1718
|
class Minimum < Orb::Internal::Type::BaseModel
|
1719
1719
|
# @!attribute applies_to_price_ids
|
1720
1720
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
1721
|
-
#
|
1721
|
+
# minimums, this can be a subset of prices.
|
1722
1722
|
#
|
1723
1723
|
# @return [Array<String>]
|
1724
1724
|
required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String]
|
@@ -2038,7 +2038,7 @@ module Orb
|
|
2038
2038
|
class Maximum < Orb::Internal::Type::BaseModel
|
2039
2039
|
# @!attribute applies_to_price_ids
|
2040
2040
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
2041
|
-
#
|
2041
|
+
# maximums, this can be a subset of prices.
|
2042
2042
|
#
|
2043
2043
|
# @return [Array<String>]
|
2044
2044
|
required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String]
|
@@ -2062,7 +2062,7 @@ module Orb
|
|
2062
2062
|
class Minimum < Orb::Internal::Type::BaseModel
|
2063
2063
|
# @!attribute applies_to_price_ids
|
2064
2064
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
2065
|
-
#
|
2065
|
+
# minimums, this can be a subset of prices.
|
2066
2066
|
#
|
2067
2067
|
# @return [Array<String>]
|
2068
2068
|
required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String]
|