orb-billing 0.3.0 → 0.3.2
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 +47 -0
- data/README.md +7 -7
- data/lib/orb/errors.rb +9 -9
- data/lib/orb/file_part.rb +2 -2
- data/lib/orb/internal/page.rb +3 -3
- data/lib/orb/internal/transport/base_client.rb +3 -3
- data/lib/orb/internal/type/base_model.rb +1 -9
- data/lib/orb/internal/type/boolean.rb +10 -11
- data/lib/orb/internal/type/enum.rb +13 -14
- data/lib/orb/internal/type/request_parameters.rb +6 -12
- data/lib/orb/internal/type/union.rb +4 -4
- data/lib/orb/internal/type/unknown.rb +10 -11
- data/lib/orb/internal/util.rb +21 -5
- data/lib/orb/models/alert.rb +29 -32
- data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
- data/lib/orb/models/alert_list_params.rb +0 -1
- data/lib/orb/models/alert_update_params.rb +4 -5
- data/lib/orb/models/amount_discount.rb +6 -7
- data/lib/orb/models/billable_metric.rb +9 -11
- data/lib/orb/models/coupon.rb +9 -12
- data/lib/orb/models/coupon_create_params.rb +8 -10
- data/lib/orb/models/coupon_list_params.rb +0 -2
- data/lib/orb/models/coupons/subscription_list_params.rb +0 -1
- data/lib/orb/models/credit_note.rb +48 -46
- data/lib/orb/models/credit_note_create_params.rb +6 -6
- data/lib/orb/models/credit_note_list_params.rb +0 -1
- data/lib/orb/models/customer.rb +54 -61
- data/lib/orb/models/customer_create_params.rb +43 -55
- data/lib/orb/models/customer_list_params.rb +0 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +43 -57
- data/lib/orb/models/customer_update_params.rb +43 -53
- data/lib/orb/models/customers/balance_transaction_create_params.rb +3 -3
- data/lib/orb/models/customers/balance_transaction_create_response.rb +0 -2
- data/lib/orb/models/customers/balance_transaction_list_params.rb +0 -1
- data/lib/orb/models/customers/balance_transaction_list_response.rb +0 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +3 -4
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +3 -3
- data/lib/orb/models/customers/cost_list_params.rb +3 -4
- data/lib/orb/models/customers/cost_list_response.rb +3 -3
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +0 -2
- data/lib/orb/models/customers/credit_list_params.rb +0 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +12 -21
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +106 -114
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +11 -22
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +111 -126
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +6 -7
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +110 -121
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
- data/lib/orb/models/customers/credits/ledger_list_response.rb +112 -131
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +10 -15
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_create_params.rb +7 -15
- data/lib/orb/models/customers/credits/top_up_create_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +0 -1
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +0 -6
- data/lib/orb/models/customers/credits/top_up_list_params.rb +0 -1
- data/lib/orb/models/customers/credits/top_up_list_response.rb +0 -6
- data/lib/orb/models/dimensional_price_group.rb +1 -3
- data/lib/orb/models/dimensional_price_group_create_params.rb +0 -1
- data/lib/orb/models/dimensional_price_group_list_params.rb +0 -1
- data/lib/orb/models/dimensional_price_groups.rb +6 -6
- data/lib/orb/models/discount.rb +5 -5
- data/lib/orb/models/evaluate_price_group.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +4 -9
- data/lib/orb/models/event_ingest_response.rb +0 -3
- data/lib/orb/models/event_search_params.rb +0 -3
- data/lib/orb/models/event_search_response.rb +0 -4
- data/lib/orb/models/event_update_params.rb +0 -3
- data/lib/orb/models/events/backfill_close_response.rb +0 -4
- data/lib/orb/models/events/backfill_create_params.rb +0 -7
- data/lib/orb/models/events/backfill_create_response.rb +0 -4
- data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
- data/lib/orb/models/events/backfill_list_params.rb +0 -1
- data/lib/orb/models/events/backfill_list_response.rb +0 -4
- data/lib/orb/models/events/backfill_revert_response.rb +0 -4
- data/lib/orb/models/events/event_volumes.rb +3 -3
- data/lib/orb/models/events/volume_list_params.rb +0 -3
- data/lib/orb/models/invoice.rb +165 -224
- data/lib/orb/models/invoice_create_params.rb +14 -21
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +58 -107
- data/lib/orb/models/invoice_issue_params.rb +0 -1
- data/lib/orb/models/invoice_level_discount.rb +4 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +58 -81
- data/lib/orb/models/invoice_list_params.rb +6 -10
- data/lib/orb/models/invoice_update_params.rb +0 -1
- data/lib/orb/models/item.rb +7 -8
- data/lib/orb/models/item_list_params.rb +0 -1
- data/lib/orb/models/item_update_params.rb +7 -7
- data/lib/orb/models/metric_create_params.rb +0 -1
- data/lib/orb/models/metric_list_params.rb +0 -1
- data/lib/orb/models/metric_update_params.rb +0 -1
- data/lib/orb/models/percentage_discount.rb +6 -8
- data/lib/orb/models/plan.rb +83 -111
- data/lib/orb/models/plan_create_params.rb +753 -861
- data/lib/orb/models/plan_list_params.rb +3 -4
- data/lib/orb/models/plan_update_params.rb +0 -2
- data/lib/orb/models/plans/external_plan_id_update_params.rb +0 -2
- data/lib/orb/models/price.rb +1699 -1804
- data/lib/orb/models/price_create_params.rb +75 -84
- data/lib/orb/models/price_evaluate_params.rb +0 -2
- data/lib/orb/models/price_evaluate_response.rb +3 -3
- data/lib/orb/models/price_list_params.rb +0 -1
- data/lib/orb/models/price_update_params.rb +0 -1
- data/lib/orb/models/prices/external_price_id_update_params.rb +0 -1
- data/lib/orb/models/subscription.rb +94 -136
- data/lib/orb/models/subscription_cancel_params.rb +3 -5
- data/lib/orb/models/subscription_cancel_response.rb +52 -91
- data/lib/orb/models/subscription_change_apply_response.rb +50 -88
- data/lib/orb/models/subscription_change_cancel_response.rb +50 -87
- data/lib/orb/models/subscription_change_retrieve_response.rb +50 -87
- data/lib/orb/models/subscription_create_params.rb +1927 -1928
- data/lib/orb/models/subscription_create_response.rb +52 -91
- data/lib/orb/models/subscription_fetch_costs_params.rb +3 -4
- data/lib/orb/models/subscription_fetch_costs_response.rb +3 -3
- data/lib/orb/models/subscription_fetch_schedule_params.rb +0 -1
- data/lib/orb/models/subscription_fetch_schedule_response.rb +0 -1
- data/lib/orb/models/subscription_fetch_usage_params.rb +6 -8
- data/lib/orb/models/subscription_list_params.rb +3 -4
- data/lib/orb/models/subscription_price_intervals_params.rb +1141 -1079
- data/lib/orb/models/subscription_price_intervals_response.rb +51 -90
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1966 -1906
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +50 -88
- data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
- data/lib/orb/models/subscription_trigger_phase_response.rb +51 -90
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +50 -88
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +50 -86
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +50 -86
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +3 -6
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +50 -88
- data/lib/orb/models/subscription_update_params.rb +0 -5
- data/lib/orb/models/subscription_update_trial_params.rb +4 -6
- data/lib/orb/models/subscription_update_trial_response.rb +52 -91
- data/lib/orb/models/subscription_usage.rb +46 -39
- data/lib/orb/models/subscriptions.rb +6 -6
- data/lib/orb/models/trial_discount.rb +6 -7
- data/lib/orb/models/usage_discount.rb +6 -8
- data/lib/orb/models.rb +220 -0
- data/lib/orb/request_options.rb +4 -5
- data/lib/orb/resources/alerts.rb +30 -31
- data/lib/orb/resources/coupons/subscriptions.rb +3 -4
- data/lib/orb/resources/coupons.rb +11 -21
- data/lib/orb/resources/credit_notes.rb +10 -11
- data/lib/orb/resources/customers/balance_transactions.rb +3 -4
- data/lib/orb/resources/customers/costs.rb +4 -6
- data/lib/orb/resources/customers/credits/ledger.rb +18 -37
- data/lib/orb/resources/customers/credits/top_ups.rb +10 -20
- data/lib/orb/resources/customers/credits.rb +2 -6
- data/lib/orb/resources/customers.rb +40 -67
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +2 -2
- data/lib/orb/resources/dimensional_price_groups.rb +8 -10
- data/lib/orb/resources/events/backfills.rb +2 -10
- data/lib/orb/resources/events/volume.rb +3 -6
- data/lib/orb/resources/events.rb +4 -12
- data/lib/orb/resources/invoice_line_items.rb +1 -2
- data/lib/orb/resources/invoices.rb +26 -43
- data/lib/orb/resources/items.rb +12 -13
- data/lib/orb/resources/metrics.rb +11 -14
- data/lib/orb/resources/plans/external_plan_id.rb +5 -7
- data/lib/orb/resources/plans.rb +14 -23
- data/lib/orb/resources/prices/external_price_id.rb +5 -6
- data/lib/orb/resources/prices.rb +25 -35
- data/lib/orb/resources/subscription_changes.rb +1 -1
- data/lib/orb/resources/subscriptions.rb +49 -107
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +1 -0
- data/rbi/{lib/orb → orb}/client.rbi +5 -4
- data/rbi/{lib/orb → orb}/errors.rbi +58 -27
- data/rbi/{lib/orb → orb}/file_part.rbi +9 -6
- data/rbi/{lib/orb → orb}/internal/page.rbi +19 -6
- data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +131 -73
- data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +25 -12
- data/rbi/orb/internal/type/array_of.rbi +98 -0
- data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +124 -65
- data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +11 -7
- data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +16 -10
- data/rbi/{lib/orb → orb}/internal/type/converter.rbi +66 -31
- data/rbi/{lib/orb → orb}/internal/type/enum.rbi +27 -15
- data/rbi/{lib/orb → orb}/internal/type/file_input.rbi +12 -10
- data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +34 -24
- data/rbi/orb/internal/type/request_parameters.rbi +29 -0
- data/rbi/orb/internal/type/union.rbi +110 -0
- data/rbi/orb/internal/type/unknown.rbi +50 -0
- data/rbi/orb/internal/util.rbi +424 -0
- data/rbi/{lib/orb → orb}/models/alert.rbi +107 -70
- data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +60 -27
- data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +68 -29
- data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +53 -26
- data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +17 -6
- data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +17 -6
- data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +23 -20
- data/rbi/orb/models/alert_retrieve_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +25 -14
- data/rbi/{lib/orb → orb}/models/amount_discount.rbi +28 -19
- data/rbi/{lib/orb → orb}/models/billable_metric.rbi +33 -26
- data/rbi/orb/models/billing_cycle_relative_date.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/coupon.rbi +28 -20
- data/rbi/orb/models/coupon_archive_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +74 -40
- data/rbi/orb/models/coupon_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +18 -15
- data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/credit_note.rbi +293 -158
- data/rbi/orb/models/credit_note_create_params.rbi +117 -0
- data/rbi/orb/models/credit_note_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +20 -17
- data/rbi/{lib/orb → orb}/models/customer.rbi +430 -329
- data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +664 -327
- data/rbi/orb/models/customer_delete_params.rbi +24 -0
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +24 -0
- data/rbi/orb/models/customer_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +20 -17
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +24 -0
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +1138 -338
- data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +663 -326
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +94 -0
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +301 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +20 -17
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +301 -0
- data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +56 -22
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +263 -0
- data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +45 -22
- data/rbi/orb/models/customers/cost_list_response.rbi +254 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +110 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +18 -15
- data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +44 -21
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_params.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi} +118 -60
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +685 -468
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi → orb/models/customers/credits/ledger_create_entry_params.rbi} +107 -69
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +643 -470
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +224 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_response.rbi +658 -469
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +224 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_response.rbi +708 -459
- data/rbi/{lib/orb/models/customers/credits/top_up_create_params.rbi → orb/models/customers/credits/top_up_create_by_external_id_params.rbi} +87 -46
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
- data/rbi/{lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi → orb/models/customers/credits/top_up_create_params.rbi} +73 -54
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +83 -43
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +36 -0
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +9 -5
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +84 -43
- data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +18 -15
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +19 -16
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +16 -6
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +24 -0
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +26 -0
- data/rbi/orb/models/dimensional_price_groups.rbi +38 -0
- data/rbi/orb/models/discount.rbi +23 -0
- data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +28 -12
- data/rbi/orb/models/event_deprecate_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +8 -3
- data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +37 -31
- data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +63 -23
- data/rbi/{lib/orb → orb}/models/event_search_params.rbi +17 -14
- data/rbi/{lib/orb → orb}/models/event_search_response.rbi +33 -21
- data/rbi/{lib/orb → orb}/models/event_update_params.rbi +19 -16
- data/rbi/{lib/orb → orb}/models/event_update_response.rbi +8 -3
- data/rbi/orb/models/events/backfill_close_params.rbi +26 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +64 -29
- data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +21 -18
- data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +63 -29
- data/rbi/orb/models/events/backfill_fetch_params.rbi +26 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +64 -29
- data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +62 -28
- data/rbi/orb/models/events/backfill_revert_params.rbi +26 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +63 -29
- data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +34 -12
- data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +18 -15
- data/rbi/{lib/orb → orb}/models/invoice.rbi +1294 -831
- data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +97 -69
- data/rbi/orb/models/invoice_fetch_params.rbi +24 -0
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +32 -0
- data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +2003 -885
- data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +16 -5
- data/rbi/orb/models/invoice_level_discount.rbi +22 -0
- data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +20 -17
- data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +594 -421
- data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +67 -47
- data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +17 -14
- data/rbi/orb/models/invoice_pay_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +15 -10
- data/rbi/orb/models/invoice_void_params.rbi +24 -0
- data/rbi/orb/models/item.rbi +143 -0
- data/rbi/{lib/orb → orb}/models/item_create_params.rbi +14 -5
- data/rbi/orb/models/item_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/item_list_params.rbi +16 -6
- data/rbi/orb/models/item_update_params.rbi +141 -0
- data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +19 -16
- data/rbi/orb/models/metric_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +20 -17
- data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +15 -10
- data/rbi/orb/models/pagination_metadata.rbi +31 -0
- data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +32 -19
- data/rbi/{lib/orb → orb}/models/plan.rbi +501 -370
- data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +4243 -3094
- data/rbi/orb/models/plan_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +34 -27
- data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +16 -13
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +26 -0
- data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +16 -13
- data/rbi/orb/models/price.rbi +19414 -0
- data/rbi/{lib/orb → orb}/models/price_create_params.rbi +501 -245
- data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +20 -17
- data/rbi/orb/models/price_evaluate_response.rbi +24 -0
- data/rbi/orb/models/price_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/price_list_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/price_update_params.rbi +15 -10
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +26 -0
- data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +15 -10
- data/rbi/{lib/orb → orb}/models/subscription.rbi +586 -428
- data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +44 -22
- data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +724 -462
- data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +16 -13
- data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +808 -528
- data/rbi/orb/models/subscription_change_cancel_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +807 -538
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +806 -548
- data/rbi/{lib/orb/models/subscription_schedule_plan_change_params.rbi → orb/models/subscription_create_params.rbi} +8466 -7080
- data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +724 -462
- data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +47 -22
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +252 -0
- data/rbi/orb/models/subscription_fetch_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +20 -17
- data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +33 -19
- data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +81 -34
- data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +39 -28
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +4973 -3944
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +744 -477
- data/rbi/{lib/orb/models/subscription_create_params.rbi → orb/models/subscription_schedule_plan_change_params.rbi} +8649 -7019
- data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +742 -491
- data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +16 -13
- data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +736 -472
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +743 -491
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +717 -526
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +732 -521
- data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
- data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +743 -491
- data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +19 -16
- data/rbi/orb/models/subscription_update_trial_params.rbi +104 -0
- data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +736 -471
- data/rbi/orb/models/subscription_usage.rbi +446 -0
- data/rbi/orb/models/subscriptions.rbi +38 -0
- data/rbi/orb/models/top_level_ping_params.rbi +24 -0
- data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +7 -3
- data/rbi/{lib/orb → orb}/models/trial_discount.rbi +29 -20
- data/rbi/{lib/orb → orb}/models/usage_discount.rbi +28 -19
- data/rbi/orb/models.rbi +231 -0
- data/rbi/{lib/orb → orb}/request_options.rbi +12 -4
- data/rbi/{lib/orb → orb}/resources/alerts.rbi +57 -42
- data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +7 -5
- data/rbi/{lib/orb → orb}/resources/coupons.rbi +25 -22
- data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +18 -15
- data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +17 -9
- data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +18 -11
- data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +98 -74
- data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +53 -29
- data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +16 -7
- data/rbi/{lib/orb → orb}/resources/customers.rbi +117 -82
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +6 -5
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +21 -14
- data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +25 -20
- data/rbi/{lib/orb → orb}/resources/events/volume.rbi +7 -5
- data/rbi/{lib/orb → orb}/resources/events.rbi +22 -18
- data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +7 -5
- data/rbi/{lib/orb → orb}/resources/invoices.rbi +55 -49
- data/rbi/{lib/orb → orb}/resources/items.rbi +31 -17
- data/rbi/{lib/orb → orb}/resources/metrics.rbi +21 -17
- data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +11 -9
- data/rbi/{lib/orb → orb}/resources/plans.rbi +53 -49
- data/rbi/orb/resources/prices/external_price_id.rbi +108 -0
- data/rbi/{lib/orb → orb}/resources/prices.rbi +170 -157
- data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +15 -13
- data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +188 -118
- data/rbi/{lib/orb → orb}/resources/top_level.rbi +7 -4
- data/sig/orb/internal/page.rbs +0 -2
- data/sig/orb/internal/type/request_parameters.rbs +3 -1
- data/sig/orb/internal/util.rbs +2 -0
- data/sig/orb/models/alert.rbs +19 -31
- data/sig/orb/models/alert_create_for_customer_params.rbs +3 -7
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +3 -7
- data/sig/orb/models/alert_create_for_subscription_params.rbs +3 -7
- data/sig/orb/models/alert_disable_params.rbs +0 -2
- data/sig/orb/models/alert_enable_params.rbs +0 -2
- data/sig/orb/models/alert_list_params.rbs +0 -2
- data/sig/orb/models/alert_retrieve_params.rbs +0 -2
- data/sig/orb/models/alert_update_params.rbs +3 -7
- data/sig/orb/models/amount_discount.rbs +4 -6
- data/sig/orb/models/billable_metric.rbs +7 -9
- data/sig/orb/models/coupon.rbs +5 -8
- data/sig/orb/models/coupon_archive_params.rbs +0 -2
- data/sig/orb/models/coupon_create_params.rbs +7 -14
- data/sig/orb/models/coupon_fetch_params.rbs +0 -2
- data/sig/orb/models/coupon_list_params.rbs +0 -2
- data/sig/orb/models/coupons/subscription_list_params.rbs +0 -2
- data/sig/orb/models/credit_note.rbs +48 -66
- data/sig/orb/models/credit_note_create_params.rbs +3 -7
- data/sig/orb/models/credit_note_fetch_params.rbs +0 -2
- data/sig/orb/models/credit_note_list_params.rbs +0 -2
- data/sig/orb/models/customer.rbs +43 -63
- data/sig/orb/models/customer_create_params.rbs +36 -57
- data/sig/orb/models/customer_delete_params.rbs +0 -2
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customer_fetch_params.rbs +0 -2
- data/sig/orb/models/customer_list_params.rbs +0 -2
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +0 -2
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +0 -2
- data/sig/orb/models/customer_update_by_external_id_params.rbs +36 -57
- data/sig/orb/models/customer_update_params.rbs +36 -57
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +0 -2
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +0 -6
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +0 -2
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +0 -6
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +0 -6
- data/sig/orb/models/customers/cost_list_params.rbs +0 -2
- data/sig/orb/models/customers/cost_list_response.rbs +0 -6
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +0 -2
- data/sig/orb/models/customers/credit_list_params.rbs +0 -2
- data/sig/orb/models/customers/credit_list_response.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +3 -7
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +92 -134
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +3 -7
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +92 -134
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +92 -134
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +0 -2
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +92 -134
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +3 -7
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +3 -7
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +0 -4
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +0 -2
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +0 -4
- data/sig/orb/models/dimensional_price_group.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_create_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_list_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +0 -2
- data/sig/orb/models/dimensional_price_groups.rbs +6 -8
- data/sig/orb/models/discount.rbs +5 -5
- data/sig/orb/models/evaluate_price_group.rbs +4 -6
- data/sig/orb/models/event_deprecate_params.rbs +0 -2
- data/sig/orb/models/event_deprecate_response.rbs +0 -2
- data/sig/orb/models/event_ingest_params.rbs +3 -7
- data/sig/orb/models/event_ingest_response.rbs +0 -6
- data/sig/orb/models/event_search_params.rbs +0 -2
- data/sig/orb/models/event_search_response.rbs +0 -4
- data/sig/orb/models/event_update_params.rbs +0 -2
- data/sig/orb/models/event_update_response.rbs +0 -2
- data/sig/orb/models/events/backfill_close_params.rbs +0 -2
- data/sig/orb/models/events/backfill_close_response.rbs +0 -2
- data/sig/orb/models/events/backfill_create_params.rbs +0 -2
- data/sig/orb/models/events/backfill_create_response.rbs +0 -2
- data/sig/orb/models/events/backfill_fetch_params.rbs +0 -2
- data/sig/orb/models/events/backfill_fetch_response.rbs +0 -2
- data/sig/orb/models/events/backfill_list_params.rbs +0 -2
- data/sig/orb/models/events/backfill_list_response.rbs +0 -2
- data/sig/orb/models/events/backfill_revert_params.rbs +0 -2
- data/sig/orb/models/events/backfill_revert_response.rbs +0 -2
- data/sig/orb/models/events/event_volumes.rbs +3 -10
- data/sig/orb/models/events/volume_list_params.rbs +0 -2
- data/sig/orb/models/invoice.rbs +126 -188
- data/sig/orb/models/invoice_create_params.rbs +10 -16
- data/sig/orb/models/invoice_fetch_params.rbs +0 -2
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +0 -2
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +41 -103
- data/sig/orb/models/invoice_issue_params.rbs +0 -2
- data/sig/orb/models/invoice_level_discount.rbs +2 -4
- data/sig/orb/models/invoice_line_item_create_params.rbs +0 -2
- data/sig/orb/models/invoice_line_item_create_response.rbs +41 -75
- data/sig/orb/models/invoice_list_params.rbs +4 -6
- data/sig/orb/models/invoice_mark_paid_params.rbs +0 -2
- data/sig/orb/models/invoice_pay_params.rbs +0 -2
- data/sig/orb/models/invoice_update_params.rbs +0 -2
- data/sig/orb/models/invoice_void_params.rbs +0 -2
- data/sig/orb/models/item.rbs +7 -11
- data/sig/orb/models/item_create_params.rbs +0 -2
- data/sig/orb/models/item_fetch_params.rbs +0 -2
- data/sig/orb/models/item_list_params.rbs +0 -2
- data/sig/orb/models/item_update_params.rbs +7 -11
- data/sig/orb/models/metric_create_params.rbs +0 -2
- data/sig/orb/models/metric_fetch_params.rbs +0 -2
- data/sig/orb/models/metric_list_params.rbs +0 -2
- data/sig/orb/models/metric_update_params.rbs +0 -2
- data/sig/orb/models/pagination_metadata.rbs +0 -2
- data/sig/orb/models/percentage_discount.rbs +4 -6
- data/sig/orb/models/plan.rbs +55 -83
- data/sig/orb/models/plan_create_params.rbs +568 -746
- data/sig/orb/models/plan_fetch_params.rbs +0 -2
- data/sig/orb/models/plan_list_params.rbs +0 -2
- data/sig/orb/models/plan_update_params.rbs +0 -2
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +0 -2
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +0 -2
- data/sig/orb/models/price.rbs +1250 -1790
- data/sig/orb/models/price_create_params.rbs +59 -97
- data/sig/orb/models/price_evaluate_params.rbs +0 -2
- data/sig/orb/models/price_evaluate_response.rbs +3 -6
- data/sig/orb/models/price_fetch_params.rbs +0 -2
- data/sig/orb/models/price_list_params.rbs +0 -2
- data/sig/orb/models/price_update_params.rbs +0 -2
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +0 -2
- data/sig/orb/models/prices/external_price_id_update_params.rbs +0 -2
- data/sig/orb/models/subscription.rbs +72 -110
- data/sig/orb/models/subscription_cancel_params.rbs +0 -2
- data/sig/orb/models/subscription_cancel_response.rbs +44 -84
- data/sig/orb/models/subscription_change_apply_params.rbs +0 -2
- data/sig/orb/models/subscription_change_apply_response.rbs +44 -86
- data/sig/orb/models/subscription_change_cancel_params.rbs +0 -2
- data/sig/orb/models/subscription_change_cancel_response.rbs +44 -86
- data/sig/orb/models/subscription_change_retrieve_params.rbs +0 -2
- data/sig/orb/models/subscription_change_retrieve_response.rbs +44 -86
- data/sig/orb/models/subscription_create_params.rbs +1223 -1619
- data/sig/orb/models/subscription_create_response.rbs +44 -84
- data/sig/orb/models/subscription_fetch_costs_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_costs_response.rbs +0 -6
- data/sig/orb/models/subscription_fetch_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +0 -2
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +0 -4
- data/sig/orb/models/subscription_fetch_usage_params.rbs +0 -2
- data/sig/orb/models/subscription_list_params.rbs +0 -2
- data/sig/orb/models/subscription_price_intervals_params.rbs +738 -970
- data/sig/orb/models/subscription_price_intervals_response.rbs +44 -84
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1223 -1619
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +44 -84
- data/sig/orb/models/subscription_trigger_phase_params.rbs +0 -2
- data/sig/orb/models/subscription_trigger_phase_response.rbs +44 -84
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +44 -84
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +44 -84
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +0 -2
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +44 -84
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +0 -2
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +44 -84
- data/sig/orb/models/subscription_update_params.rbs +0 -2
- data/sig/orb/models/subscription_update_trial_params.rbs +1 -3
- data/sig/orb/models/subscription_update_trial_response.rbs +44 -84
- data/sig/orb/models/subscription_usage.rbs +35 -53
- data/sig/orb/models/subscriptions.rbs +6 -8
- data/sig/orb/models/top_level_ping_params.rbs +0 -2
- data/sig/orb/models/top_level_ping_response.rbs +0 -2
- data/sig/orb/models/trial_discount.rbs +4 -6
- data/sig/orb/models/usage_discount.rbs +4 -6
- data/sig/orb/models.rbs +215 -0
- data/sig/orb/request_options.rbs +1 -1
- data/sig/orb/resources/alerts.rbs +12 -12
- data/sig/orb/resources/coupons/subscriptions.rbs +1 -1
- data/sig/orb/resources/coupons.rbs +4 -4
- data/sig/orb/resources/credit_notes.rbs +4 -4
- data/sig/orb/resources/customers/credits/ledger.rbs +2 -2
- data/sig/orb/resources/customers/credits/top_ups.rbs +2 -2
- data/sig/orb/resources/customers.rbs +24 -24
- data/sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs +1 -1
- data/sig/orb/resources/dimensional_price_groups.rbs +3 -3
- data/sig/orb/resources/events/volume.rbs +1 -1
- data/sig/orb/resources/events.rbs +1 -1
- data/sig/orb/resources/invoices.rbs +10 -10
- data/sig/orb/resources/items.rbs +5 -5
- data/sig/orb/resources/metrics.rbs +4 -4
- data/sig/orb/resources/plans/external_plan_id.rbs +2 -2
- data/sig/orb/resources/plans.rbs +5 -5
- data/sig/orb/resources/prices.rbs +11 -11
- data/sig/orb/resources/subscriptions.rbs +21 -21
- metadata +226 -223
- data/rbi/lib/orb/internal/type/array_of.rbi +0 -90
- data/rbi/lib/orb/internal/type/request_parameters.rbi +0 -21
- data/rbi/lib/orb/internal/type/union.rbi +0 -75
- data/rbi/lib/orb/internal/type/unknown.rbi +0 -42
- data/rbi/lib/orb/internal/util.rbi +0 -299
- data/rbi/lib/orb/models/alert_retrieve_params.rbi +0 -18
- data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +0 -18
- data/rbi/lib/orb/models/coupon_archive_params.rbi +0 -18
- data/rbi/lib/orb/models/coupon_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/credit_note_create_params.rbi +0 -88
- data/rbi/lib/orb/models/credit_note_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/customer_delete_params.rbi +0 -18
- data/rbi/lib/orb/models/customer_fetch_by_external_id_params.rbi +0 -18
- data/rbi/lib/orb/models/customer_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -18
- data/rbi/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -18
- data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +0 -65
- data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +0 -208
- data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +0 -196
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +0 -225
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +0 -223
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +0 -84
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +0 -166
- data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +0 -141
- data/rbi/lib/orb/models/customers/credits/top_up_delete_params.rbi +0 -26
- data/rbi/lib/orb/models/dimensional_price_group_retrieve_params.rbi +0 -18
- data/rbi/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -25
- data/rbi/lib/orb/models/dimensional_price_groups.rbi +0 -33
- data/rbi/lib/orb/models/discount.rbi +0 -17
- data/rbi/lib/orb/models/event_deprecate_params.rbi +0 -18
- data/rbi/lib/orb/models/events/backfill_close_params.rbi +0 -25
- data/rbi/lib/orb/models/events/backfill_fetch_params.rbi +0 -25
- data/rbi/lib/orb/models/events/backfill_revert_params.rbi +0 -25
- data/rbi/lib/orb/models/invoice_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/invoice_fetch_upcoming_params.rbi +0 -22
- data/rbi/lib/orb/models/invoice_level_discount.rbi +0 -15
- data/rbi/lib/orb/models/invoice_pay_params.rbi +0 -18
- data/rbi/lib/orb/models/invoice_void_params.rbi +0 -18
- data/rbi/lib/orb/models/item.rbi +0 -95
- data/rbi/lib/orb/models/item_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/item_update_params.rbi +0 -101
- data/rbi/lib/orb/models/metric_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/pagination_metadata.rbi +0 -19
- data/rbi/lib/orb/models/plan_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/plans/external_plan_id_fetch_params.rbi +0 -25
- data/rbi/lib/orb/models/price.rbi +0 -14861
- data/rbi/lib/orb/models/price_evaluate_response.rbi +0 -19
- data/rbi/lib/orb/models/price_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/prices/external_price_id_fetch_params.rbi +0 -25
- data/rbi/lib/orb/models/subscription_change_cancel_params.rbi +0 -18
- data/rbi/lib/orb/models/subscription_change_retrieve_params.rbi +0 -18
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +0 -221
- data/rbi/lib/orb/models/subscription_fetch_params.rbi +0 -18
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_params.rbi +0 -18
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -18
- data/rbi/lib/orb/models/subscription_update_trial_params.rbi +0 -66
- data/rbi/lib/orb/models/subscription_usage.rbi +0 -296
- data/rbi/lib/orb/models/subscriptions.rbi +0 -31
- data/rbi/lib/orb/models/top_level_ping_params.rbi +0 -18
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
- /data/rbi/{lib/orb → orb}/internal.rbi +0 -0
- /data/rbi/{lib/orb → orb}/version.rbi +0 -0
@@ -3,6 +3,8 @@
|
|
3
3
|
module Orb
|
4
4
|
module Models
|
5
5
|
class InvoiceFetchUpcomingResponse < Orb::Internal::Type::BaseModel
|
6
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
7
|
+
|
6
8
|
sig { returns(String) }
|
7
9
|
attr_accessor :id
|
8
10
|
|
@@ -16,20 +18,26 @@ module Orb
|
|
16
18
|
|
17
19
|
sig do
|
18
20
|
params(
|
19
|
-
auto_collection:
|
20
|
-
|
21
|
-
|
21
|
+
auto_collection:
|
22
|
+
Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::OrHash
|
23
|
+
).void
|
22
24
|
end
|
23
25
|
attr_writer :auto_collection
|
24
26
|
|
25
|
-
sig
|
27
|
+
sig do
|
28
|
+
returns(
|
29
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress)
|
30
|
+
)
|
31
|
+
end
|
26
32
|
attr_reader :billing_address
|
27
33
|
|
28
34
|
sig do
|
29
35
|
params(
|
30
|
-
billing_address:
|
31
|
-
|
32
|
-
|
36
|
+
billing_address:
|
37
|
+
T.nilable(
|
38
|
+
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash
|
39
|
+
)
|
40
|
+
).void
|
33
41
|
end
|
34
42
|
attr_writer :billing_address
|
35
43
|
|
@@ -38,7 +46,9 @@ module Orb
|
|
38
46
|
attr_accessor :created_at
|
39
47
|
|
40
48
|
# A list of credit notes associated with the invoice
|
41
|
-
sig
|
49
|
+
sig do
|
50
|
+
returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote])
|
51
|
+
end
|
42
52
|
attr_accessor :credit_notes
|
43
53
|
|
44
54
|
# An ISO 4217 currency string or `credits`
|
@@ -48,10 +58,20 @@ module Orb
|
|
48
58
|
sig { returns(Orb::Models::InvoiceFetchUpcomingResponse::Customer) }
|
49
59
|
attr_reader :customer
|
50
60
|
|
51
|
-
sig
|
61
|
+
sig do
|
62
|
+
params(
|
63
|
+
customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer::OrHash
|
64
|
+
).void
|
65
|
+
end
|
52
66
|
attr_writer :customer
|
53
67
|
|
54
|
-
sig
|
68
|
+
sig do
|
69
|
+
returns(
|
70
|
+
T::Array[
|
71
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction
|
72
|
+
]
|
73
|
+
)
|
74
|
+
end
|
55
75
|
attr_accessor :customer_balance_transactions
|
56
76
|
|
57
77
|
# Tax IDs are commonly required to be displayed on customer invoices, which are
|
@@ -159,14 +179,20 @@ module Orb
|
|
159
179
|
# | Uruguay | `uy_ruc` | Uruguayan RUC Number |
|
160
180
|
# | Venezuela | `ve_rif` | Venezuelan RIF Number |
|
161
181
|
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
162
|
-
sig
|
182
|
+
sig do
|
183
|
+
returns(
|
184
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID)
|
185
|
+
)
|
186
|
+
end
|
163
187
|
attr_reader :customer_tax_id
|
164
188
|
|
165
189
|
sig do
|
166
190
|
params(
|
167
|
-
customer_tax_id:
|
168
|
-
|
169
|
-
|
191
|
+
customer_tax_id:
|
192
|
+
T.nilable(
|
193
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash
|
194
|
+
)
|
195
|
+
).void
|
170
196
|
end
|
171
197
|
attr_writer :customer_tax_id
|
172
198
|
|
@@ -178,7 +204,13 @@ module Orb
|
|
178
204
|
|
179
205
|
sig do
|
180
206
|
returns(
|
181
|
-
T::Array[
|
207
|
+
T::Array[
|
208
|
+
T.any(
|
209
|
+
Orb::PercentageDiscount,
|
210
|
+
Orb::AmountDiscount,
|
211
|
+
Orb::TrialDiscount
|
212
|
+
)
|
213
|
+
]
|
182
214
|
)
|
183
215
|
end
|
184
216
|
attr_accessor :discounts
|
@@ -209,7 +241,11 @@ module Orb
|
|
209
241
|
sig { returns(T.nilable(String)) }
|
210
242
|
attr_accessor :invoice_pdf
|
211
243
|
|
212
|
-
sig
|
244
|
+
sig do
|
245
|
+
returns(
|
246
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
247
|
+
)
|
248
|
+
end
|
213
249
|
attr_accessor :invoice_source
|
214
250
|
|
215
251
|
# If the invoice failed to issue, this will be the last time it failed to issue
|
@@ -223,17 +259,23 @@ module Orb
|
|
223
259
|
attr_accessor :issued_at
|
224
260
|
|
225
261
|
# The breakdown of prices in this invoice.
|
226
|
-
sig
|
262
|
+
sig do
|
263
|
+
returns(T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem])
|
264
|
+
end
|
227
265
|
attr_accessor :line_items
|
228
266
|
|
229
|
-
sig
|
267
|
+
sig do
|
268
|
+
returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum))
|
269
|
+
end
|
230
270
|
attr_reader :maximum
|
231
271
|
|
232
272
|
sig do
|
233
273
|
params(
|
234
|
-
maximum:
|
235
|
-
|
236
|
-
|
274
|
+
maximum:
|
275
|
+
T.nilable(
|
276
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash
|
277
|
+
)
|
278
|
+
).void
|
237
279
|
end
|
238
280
|
attr_writer :maximum
|
239
281
|
|
@@ -251,14 +293,18 @@ module Orb
|
|
251
293
|
sig { returns(T::Hash[Symbol, String]) }
|
252
294
|
attr_accessor :metadata
|
253
295
|
|
254
|
-
sig
|
296
|
+
sig do
|
297
|
+
returns(T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum))
|
298
|
+
end
|
255
299
|
attr_reader :minimum
|
256
300
|
|
257
301
|
sig do
|
258
302
|
params(
|
259
|
-
minimum:
|
260
|
-
|
261
|
-
|
303
|
+
minimum:
|
304
|
+
T.nilable(
|
305
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash
|
306
|
+
)
|
307
|
+
).void
|
262
308
|
end
|
263
309
|
attr_writer :minimum
|
264
310
|
|
@@ -271,7 +317,11 @@ module Orb
|
|
271
317
|
attr_accessor :paid_at
|
272
318
|
|
273
319
|
# A list of payment attempts associated with the invoice
|
274
|
-
sig
|
320
|
+
sig do
|
321
|
+
returns(
|
322
|
+
T::Array[Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt]
|
323
|
+
)
|
324
|
+
end
|
275
325
|
attr_accessor :payment_attempts
|
276
326
|
|
277
327
|
# If payment was attempted on this invoice but failed, this will be the time of
|
@@ -290,28 +340,42 @@ module Orb
|
|
290
340
|
sig { returns(T.nilable(Time)) }
|
291
341
|
attr_accessor :scheduled_issue_at
|
292
342
|
|
293
|
-
sig
|
343
|
+
sig do
|
344
|
+
returns(
|
345
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress)
|
346
|
+
)
|
347
|
+
end
|
294
348
|
attr_reader :shipping_address
|
295
349
|
|
296
350
|
sig do
|
297
351
|
params(
|
298
|
-
shipping_address:
|
299
|
-
|
300
|
-
|
352
|
+
shipping_address:
|
353
|
+
T.nilable(
|
354
|
+
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash
|
355
|
+
)
|
356
|
+
).void
|
301
357
|
end
|
302
358
|
attr_writer :shipping_address
|
303
359
|
|
304
|
-
sig
|
360
|
+
sig do
|
361
|
+
returns(Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol)
|
362
|
+
end
|
305
363
|
attr_accessor :status
|
306
364
|
|
307
|
-
sig
|
365
|
+
sig do
|
366
|
+
returns(
|
367
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Subscription)
|
368
|
+
)
|
369
|
+
end
|
308
370
|
attr_reader :subscription
|
309
371
|
|
310
372
|
sig do
|
311
373
|
params(
|
312
|
-
subscription:
|
313
|
-
|
314
|
-
|
374
|
+
subscription:
|
375
|
+
T.nilable(
|
376
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash
|
377
|
+
)
|
378
|
+
).void
|
315
379
|
end
|
316
380
|
attr_writer :subscription
|
317
381
|
|
@@ -347,54 +411,85 @@ module Orb
|
|
347
411
|
params(
|
348
412
|
id: String,
|
349
413
|
amount_due: String,
|
350
|
-
auto_collection:
|
351
|
-
|
414
|
+
auto_collection:
|
415
|
+
Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection::OrHash,
|
416
|
+
billing_address:
|
417
|
+
T.nilable(
|
418
|
+
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress::OrHash
|
419
|
+
),
|
352
420
|
created_at: Time,
|
353
|
-
credit_notes:
|
421
|
+
credit_notes:
|
422
|
+
T::Array[
|
423
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CreditNote::OrHash
|
424
|
+
],
|
354
425
|
currency: String,
|
355
|
-
customer:
|
356
|
-
customer_balance_transactions:
|
357
|
-
|
426
|
+
customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer::OrHash,
|
427
|
+
customer_balance_transactions:
|
428
|
+
T::Array[
|
429
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::OrHash
|
430
|
+
],
|
431
|
+
customer_tax_id:
|
432
|
+
T.nilable(
|
433
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::OrHash
|
434
|
+
),
|
358
435
|
discount: T.anything,
|
359
|
-
discounts:
|
360
|
-
T
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
436
|
+
discounts:
|
437
|
+
T::Array[
|
438
|
+
T.any(
|
439
|
+
Orb::PercentageDiscount::OrHash,
|
440
|
+
Orb::AmountDiscount::OrHash,
|
441
|
+
Orb::TrialDiscount::OrHash
|
442
|
+
)
|
443
|
+
],
|
367
444
|
due_date: T.nilable(Time),
|
368
445
|
eligible_to_issue_at: T.nilable(Time),
|
369
446
|
hosted_invoice_url: T.nilable(String),
|
370
447
|
invoice_number: String,
|
371
448
|
invoice_pdf: T.nilable(String),
|
372
|
-
invoice_source:
|
449
|
+
invoice_source:
|
450
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::OrSymbol,
|
373
451
|
issue_failed_at: T.nilable(Time),
|
374
452
|
issued_at: T.nilable(Time),
|
375
|
-
line_items:
|
376
|
-
|
453
|
+
line_items:
|
454
|
+
T::Array[
|
455
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::OrHash
|
456
|
+
],
|
457
|
+
maximum:
|
458
|
+
T.nilable(
|
459
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Maximum::OrHash
|
460
|
+
),
|
377
461
|
maximum_amount: T.nilable(String),
|
378
462
|
memo: T.nilable(String),
|
379
463
|
metadata: T::Hash[Symbol, String],
|
380
|
-
minimum:
|
464
|
+
minimum:
|
465
|
+
T.nilable(
|
466
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Minimum::OrHash
|
467
|
+
),
|
381
468
|
minimum_amount: T.nilable(String),
|
382
469
|
paid_at: T.nilable(Time),
|
383
|
-
payment_attempts:
|
470
|
+
payment_attempts:
|
471
|
+
T::Array[
|
472
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::OrHash
|
473
|
+
],
|
384
474
|
payment_failed_at: T.nilable(Time),
|
385
475
|
payment_started_at: T.nilable(Time),
|
386
476
|
scheduled_issue_at: T.nilable(Time),
|
387
|
-
shipping_address:
|
477
|
+
shipping_address:
|
478
|
+
T.nilable(
|
479
|
+
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress::OrHash
|
480
|
+
),
|
388
481
|
status: Orb::Models::InvoiceFetchUpcomingResponse::Status::OrSymbol,
|
389
|
-
subscription:
|
482
|
+
subscription:
|
483
|
+
T.nilable(
|
484
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Subscription::OrHash
|
485
|
+
),
|
390
486
|
subtotal: String,
|
391
487
|
sync_failed_at: T.nilable(Time),
|
392
488
|
target_date: Time,
|
393
489
|
total: String,
|
394
490
|
voided_at: T.nilable(Time),
|
395
491
|
will_auto_issue: T::Boolean
|
396
|
-
)
|
397
|
-
.returns(T.attached_class)
|
492
|
+
).returns(T.attached_class)
|
398
493
|
end
|
399
494
|
def self.new(
|
400
495
|
id:,
|
@@ -592,58 +687,94 @@ module Orb
|
|
592
687
|
# This is true if the invoice will be automatically issued in the future, and
|
593
688
|
# false otherwise.
|
594
689
|
will_auto_issue:
|
595
|
-
)
|
690
|
+
)
|
691
|
+
end
|
692
|
+
|
596
693
|
sig do
|
597
|
-
override
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
694
|
+
override.returns(
|
695
|
+
{
|
696
|
+
id: String,
|
697
|
+
amount_due: String,
|
698
|
+
auto_collection:
|
699
|
+
Orb::Models::InvoiceFetchUpcomingResponse::AutoCollection,
|
700
|
+
billing_address:
|
701
|
+
T.nilable(
|
702
|
+
Orb::Models::InvoiceFetchUpcomingResponse::BillingAddress
|
703
|
+
),
|
704
|
+
created_at: Time,
|
705
|
+
credit_notes:
|
706
|
+
T::Array[Orb::Models::InvoiceFetchUpcomingResponse::CreditNote],
|
707
|
+
currency: String,
|
708
|
+
customer: Orb::Models::InvoiceFetchUpcomingResponse::Customer,
|
709
|
+
customer_balance_transactions:
|
710
|
+
T::Array[
|
711
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction
|
712
|
+
],
|
713
|
+
customer_tax_id:
|
714
|
+
T.nilable(
|
715
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID
|
716
|
+
),
|
717
|
+
discount: T.anything,
|
718
|
+
discounts:
|
719
|
+
T::Array[
|
720
|
+
T.any(
|
721
|
+
Orb::PercentageDiscount,
|
722
|
+
Orb::AmountDiscount,
|
723
|
+
Orb::TrialDiscount
|
724
|
+
)
|
725
|
+
],
|
726
|
+
due_date: T.nilable(Time),
|
727
|
+
eligible_to_issue_at: T.nilable(Time),
|
728
|
+
hosted_invoice_url: T.nilable(String),
|
729
|
+
invoice_number: String,
|
730
|
+
invoice_pdf: T.nilable(String),
|
731
|
+
invoice_source:
|
732
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol,
|
733
|
+
issue_failed_at: T.nilable(Time),
|
734
|
+
issued_at: T.nilable(Time),
|
735
|
+
line_items:
|
736
|
+
T::Array[Orb::Models::InvoiceFetchUpcomingResponse::LineItem],
|
737
|
+
maximum:
|
738
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Maximum),
|
739
|
+
maximum_amount: T.nilable(String),
|
740
|
+
memo: T.nilable(String),
|
741
|
+
metadata: T::Hash[Symbol, String],
|
742
|
+
minimum:
|
743
|
+
T.nilable(Orb::Models::InvoiceFetchUpcomingResponse::Minimum),
|
744
|
+
minimum_amount: T.nilable(String),
|
745
|
+
paid_at: T.nilable(Time),
|
746
|
+
payment_attempts:
|
747
|
+
T::Array[
|
748
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt
|
749
|
+
],
|
750
|
+
payment_failed_at: T.nilable(Time),
|
751
|
+
payment_started_at: T.nilable(Time),
|
752
|
+
scheduled_issue_at: T.nilable(Time),
|
753
|
+
shipping_address:
|
754
|
+
T.nilable(
|
755
|
+
Orb::Models::InvoiceFetchUpcomingResponse::ShippingAddress
|
756
|
+
),
|
757
|
+
status:
|
758
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol,
|
759
|
+
subscription:
|
760
|
+
T.nilable(
|
761
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Subscription
|
762
|
+
),
|
763
|
+
subtotal: String,
|
764
|
+
sync_failed_at: T.nilable(Time),
|
765
|
+
target_date: Time,
|
766
|
+
total: String,
|
767
|
+
voided_at: T.nilable(Time),
|
768
|
+
will_auto_issue: T::Boolean
|
769
|
+
}
|
770
|
+
)
|
771
|
+
end
|
772
|
+
def to_hash
|
643
773
|
end
|
644
|
-
def to_hash; end
|
645
774
|
|
646
775
|
class AutoCollection < Orb::Internal::Type::BaseModel
|
776
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
777
|
+
|
647
778
|
# True only if auto-collection is enabled for this invoice.
|
648
779
|
sig { returns(T.nilable(T::Boolean)) }
|
649
780
|
attr_accessor :enabled
|
@@ -673,8 +804,7 @@ module Orb
|
|
673
804
|
next_attempt_at: T.nilable(Time),
|
674
805
|
num_attempts: T.nilable(Integer),
|
675
806
|
previously_attempted_at: T.nilable(Time)
|
676
|
-
)
|
677
|
-
.returns(T.attached_class)
|
807
|
+
).returns(T.attached_class)
|
678
808
|
end
|
679
809
|
def self.new(
|
680
810
|
# True only if auto-collection is enabled for this invoice.
|
@@ -692,22 +822,26 @@ module Orb
|
|
692
822
|
# if dunning has been exhausted (`previously_attempted_at` is non-null, but
|
693
823
|
# `next_attempt_time` is null).
|
694
824
|
previously_attempted_at:
|
695
|
-
)
|
825
|
+
)
|
826
|
+
end
|
827
|
+
|
696
828
|
sig do
|
697
|
-
override
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
829
|
+
override.returns(
|
830
|
+
{
|
831
|
+
enabled: T.nilable(T::Boolean),
|
832
|
+
next_attempt_at: T.nilable(Time),
|
833
|
+
num_attempts: T.nilable(Integer),
|
834
|
+
previously_attempted_at: T.nilable(Time)
|
835
|
+
}
|
836
|
+
)
|
837
|
+
end
|
838
|
+
def to_hash
|
706
839
|
end
|
707
|
-
def to_hash; end
|
708
840
|
end
|
709
841
|
|
710
842
|
class BillingAddress < Orb::Internal::Type::BaseModel
|
843
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
844
|
+
|
711
845
|
sig { returns(T.nilable(String)) }
|
712
846
|
attr_accessor :city
|
713
847
|
|
@@ -734,28 +868,30 @@ module Orb
|
|
734
868
|
line2: T.nilable(String),
|
735
869
|
postal_code: T.nilable(String),
|
736
870
|
state: T.nilable(String)
|
737
|
-
)
|
738
|
-
|
871
|
+
).returns(T.attached_class)
|
872
|
+
end
|
873
|
+
def self.new(city:, country:, line1:, line2:, postal_code:, state:)
|
739
874
|
end
|
740
|
-
def self.new(city:, country:, line1:, line2:, postal_code:, state:); end
|
741
875
|
|
742
876
|
sig do
|
743
|
-
override
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
877
|
+
override.returns(
|
878
|
+
{
|
879
|
+
city: T.nilable(String),
|
880
|
+
country: T.nilable(String),
|
881
|
+
line1: T.nilable(String),
|
882
|
+
line2: T.nilable(String),
|
883
|
+
postal_code: T.nilable(String),
|
884
|
+
state: T.nilable(String)
|
885
|
+
}
|
886
|
+
)
|
887
|
+
end
|
888
|
+
def to_hash
|
754
889
|
end
|
755
|
-
def to_hash; end
|
756
890
|
end
|
757
891
|
|
758
892
|
class CreditNote < Orb::Internal::Type::BaseModel
|
893
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
894
|
+
|
759
895
|
sig { returns(String) }
|
760
896
|
attr_accessor :id
|
761
897
|
|
@@ -789,8 +925,7 @@ module Orb
|
|
789
925
|
total: String,
|
790
926
|
type: String,
|
791
927
|
voided_at: T.nilable(Time)
|
792
|
-
)
|
793
|
-
.returns(T.attached_class)
|
928
|
+
).returns(T.attached_class)
|
794
929
|
end
|
795
930
|
def self.new(
|
796
931
|
id:,
|
@@ -803,44 +938,64 @@ module Orb
|
|
803
938
|
# If the credit note has a status of `void`, this gives a timestamp when the
|
804
939
|
# credit note was voided.
|
805
940
|
voided_at:
|
806
|
-
)
|
941
|
+
)
|
942
|
+
end
|
943
|
+
|
807
944
|
sig do
|
808
|
-
override
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
945
|
+
override.returns(
|
946
|
+
{
|
947
|
+
id: String,
|
948
|
+
credit_note_number: String,
|
949
|
+
memo: T.nilable(String),
|
950
|
+
reason: String,
|
951
|
+
total: String,
|
952
|
+
type: String,
|
953
|
+
voided_at: T.nilable(Time)
|
954
|
+
}
|
955
|
+
)
|
956
|
+
end
|
957
|
+
def to_hash
|
820
958
|
end
|
821
|
-
def to_hash; end
|
822
959
|
end
|
823
960
|
|
824
961
|
class Customer < Orb::Internal::Type::BaseModel
|
962
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
963
|
+
|
825
964
|
sig { returns(String) }
|
826
965
|
attr_accessor :id
|
827
966
|
|
828
967
|
sig { returns(T.nilable(String)) }
|
829
968
|
attr_accessor :external_customer_id
|
830
969
|
|
831
|
-
sig
|
832
|
-
|
970
|
+
sig do
|
971
|
+
params(id: String, external_customer_id: T.nilable(String)).returns(
|
972
|
+
T.attached_class
|
973
|
+
)
|
974
|
+
end
|
975
|
+
def self.new(id:, external_customer_id:)
|
976
|
+
end
|
833
977
|
|
834
|
-
sig
|
835
|
-
|
978
|
+
sig do
|
979
|
+
override.returns(
|
980
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
981
|
+
)
|
982
|
+
end
|
983
|
+
def to_hash
|
984
|
+
end
|
836
985
|
end
|
837
986
|
|
838
987
|
class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel
|
988
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
989
|
+
|
839
990
|
# A unique id for this transaction.
|
840
991
|
sig { returns(String) }
|
841
992
|
attr_accessor :id
|
842
993
|
|
843
|
-
sig
|
994
|
+
sig do
|
995
|
+
returns(
|
996
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol
|
997
|
+
)
|
998
|
+
end
|
844
999
|
attr_accessor :action
|
845
1000
|
|
846
1001
|
# The value of the amount changed in the transaction.
|
@@ -851,19 +1006,22 @@ module Orb
|
|
851
1006
|
sig { returns(Time) }
|
852
1007
|
attr_accessor :created_at
|
853
1008
|
|
854
|
-
sig
|
1009
|
+
sig do
|
1010
|
+
returns(
|
1011
|
+
T.nilable(
|
1012
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
1013
|
+
)
|
1014
|
+
)
|
1015
|
+
end
|
855
1016
|
attr_reader :credit_note
|
856
1017
|
|
857
1018
|
sig do
|
858
1019
|
params(
|
859
|
-
credit_note:
|
860
|
-
T.
|
861
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
862
|
-
Orb::Internal::AnyHash
|
1020
|
+
credit_note:
|
1021
|
+
T.nilable(
|
1022
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash
|
863
1023
|
)
|
864
|
-
|
865
|
-
)
|
866
|
-
.void
|
1024
|
+
).void
|
867
1025
|
end
|
868
1026
|
attr_writer :credit_note
|
869
1027
|
|
@@ -876,19 +1034,22 @@ module Orb
|
|
876
1034
|
sig { returns(String) }
|
877
1035
|
attr_accessor :ending_balance
|
878
1036
|
|
879
|
-
sig
|
1037
|
+
sig do
|
1038
|
+
returns(
|
1039
|
+
T.nilable(
|
1040
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
1041
|
+
)
|
1042
|
+
)
|
1043
|
+
end
|
880
1044
|
attr_reader :invoice
|
881
1045
|
|
882
1046
|
sig do
|
883
1047
|
params(
|
884
|
-
invoice:
|
885
|
-
T.
|
886
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
887
|
-
Orb::Internal::AnyHash
|
1048
|
+
invoice:
|
1049
|
+
T.nilable(
|
1050
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash
|
888
1051
|
)
|
889
|
-
|
890
|
-
)
|
891
|
-
.void
|
1052
|
+
).void
|
892
1053
|
end
|
893
1054
|
attr_writer :invoice
|
894
1055
|
|
@@ -897,33 +1058,34 @@ module Orb
|
|
897
1058
|
sig { returns(String) }
|
898
1059
|
attr_accessor :starting_balance
|
899
1060
|
|
900
|
-
sig
|
1061
|
+
sig do
|
1062
|
+
returns(
|
1063
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol
|
1064
|
+
)
|
1065
|
+
end
|
901
1066
|
attr_accessor :type
|
902
1067
|
|
903
1068
|
sig do
|
904
1069
|
params(
|
905
1070
|
id: String,
|
906
|
-
action:
|
1071
|
+
action:
|
1072
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::OrSymbol,
|
907
1073
|
amount: String,
|
908
1074
|
created_at: Time,
|
909
|
-
credit_note:
|
910
|
-
T.
|
911
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
912
|
-
|
913
|
-
)
|
914
|
-
),
|
1075
|
+
credit_note:
|
1076
|
+
T.nilable(
|
1077
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote::OrHash
|
1078
|
+
),
|
915
1079
|
description: T.nilable(String),
|
916
1080
|
ending_balance: String,
|
917
|
-
invoice:
|
918
|
-
T.
|
919
|
-
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
920
|
-
|
921
|
-
)
|
922
|
-
),
|
1081
|
+
invoice:
|
1082
|
+
T.nilable(
|
1083
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice::OrHash
|
1084
|
+
),
|
923
1085
|
starting_balance: String,
|
924
|
-
type:
|
925
|
-
|
926
|
-
|
1086
|
+
type:
|
1087
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::OrSymbol
|
1088
|
+
).returns(T.attached_class)
|
927
1089
|
end
|
928
1090
|
def self.new(
|
929
1091
|
# A unique id for this transaction.
|
@@ -944,31 +1106,46 @@ module Orb
|
|
944
1106
|
# customer's currency.
|
945
1107
|
starting_balance:,
|
946
1108
|
type:
|
947
|
-
)
|
1109
|
+
)
|
1110
|
+
end
|
1111
|
+
|
948
1112
|
sig do
|
949
|
-
override
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
1113
|
+
override.returns(
|
1114
|
+
{
|
1115
|
+
id: String,
|
1116
|
+
action:
|
1117
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol,
|
1118
|
+
amount: String,
|
1119
|
+
created_at: Time,
|
1120
|
+
credit_note:
|
1121
|
+
T.nilable(
|
1122
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::CreditNote
|
1123
|
+
),
|
1124
|
+
description: T.nilable(String),
|
1125
|
+
ending_balance: String,
|
1126
|
+
invoice:
|
1127
|
+
T.nilable(
|
1128
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Invoice
|
1129
|
+
),
|
1130
|
+
starting_balance: String,
|
1131
|
+
type:
|
1132
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol
|
1133
|
+
}
|
1134
|
+
)
|
1135
|
+
end
|
1136
|
+
def to_hash
|
964
1137
|
end
|
965
|
-
def to_hash; end
|
966
1138
|
|
967
1139
|
module Action
|
968
1140
|
extend Orb::Internal::Type::Enum
|
969
1141
|
|
970
1142
|
TaggedSymbol =
|
971
|
-
T.type_alias
|
1143
|
+
T.type_alias do
|
1144
|
+
T.all(
|
1145
|
+
Symbol,
|
1146
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action
|
1147
|
+
)
|
1148
|
+
end
|
972
1149
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
973
1150
|
|
974
1151
|
APPLIED_TO_INVOICE =
|
@@ -1018,15 +1195,19 @@ module Orb
|
|
1018
1195
|
)
|
1019
1196
|
|
1020
1197
|
sig do
|
1021
|
-
override
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1198
|
+
override.returns(
|
1199
|
+
T::Array[
|
1200
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol
|
1201
|
+
]
|
1202
|
+
)
|
1203
|
+
end
|
1204
|
+
def self.values
|
1025
1205
|
end
|
1026
|
-
def self.values; end
|
1027
1206
|
end
|
1028
1207
|
|
1029
1208
|
class CreditNote < Orb::Internal::Type::BaseModel
|
1209
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1210
|
+
|
1030
1211
|
# The id of the Credit note
|
1031
1212
|
sig { returns(String) }
|
1032
1213
|
attr_accessor :id
|
@@ -1035,12 +1216,17 @@ module Orb
|
|
1035
1216
|
def self.new(
|
1036
1217
|
# The id of the Credit note
|
1037
1218
|
id:
|
1038
|
-
)
|
1039
|
-
|
1040
|
-
|
1219
|
+
)
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
sig { override.returns({ id: String }) }
|
1223
|
+
def to_hash
|
1224
|
+
end
|
1041
1225
|
end
|
1042
1226
|
|
1043
1227
|
class Invoice < Orb::Internal::Type::BaseModel
|
1228
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1229
|
+
|
1044
1230
|
# The Invoice id
|
1045
1231
|
sig { returns(String) }
|
1046
1232
|
attr_accessor :id
|
@@ -1049,16 +1235,24 @@ module Orb
|
|
1049
1235
|
def self.new(
|
1050
1236
|
# The Invoice id
|
1051
1237
|
id:
|
1052
|
-
)
|
1053
|
-
|
1054
|
-
|
1238
|
+
)
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
sig { override.returns({ id: String }) }
|
1242
|
+
def to_hash
|
1243
|
+
end
|
1055
1244
|
end
|
1056
1245
|
|
1057
1246
|
module Type
|
1058
1247
|
extend Orb::Internal::Type::Enum
|
1059
1248
|
|
1060
1249
|
TaggedSymbol =
|
1061
|
-
T.type_alias
|
1250
|
+
T.type_alias do
|
1251
|
+
T.all(
|
1252
|
+
Symbol,
|
1253
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type
|
1254
|
+
)
|
1255
|
+
end
|
1062
1256
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1063
1257
|
|
1064
1258
|
INCREMENT =
|
@@ -1073,20 +1267,32 @@ module Orb
|
|
1073
1267
|
)
|
1074
1268
|
|
1075
1269
|
sig do
|
1076
|
-
override
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1270
|
+
override.returns(
|
1271
|
+
T::Array[
|
1272
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Type::TaggedSymbol
|
1273
|
+
]
|
1274
|
+
)
|
1275
|
+
end
|
1276
|
+
def self.values
|
1080
1277
|
end
|
1081
|
-
def self.values; end
|
1082
1278
|
end
|
1083
1279
|
end
|
1084
1280
|
|
1085
1281
|
class CustomerTaxID < Orb::Internal::Type::BaseModel
|
1086
|
-
|
1282
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1283
|
+
|
1284
|
+
sig do
|
1285
|
+
returns(
|
1286
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1287
|
+
)
|
1288
|
+
end
|
1087
1289
|
attr_accessor :country
|
1088
1290
|
|
1089
|
-
sig
|
1291
|
+
sig do
|
1292
|
+
returns(
|
1293
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1294
|
+
)
|
1295
|
+
end
|
1090
1296
|
attr_accessor :type
|
1091
1297
|
|
1092
1298
|
sig { returns(String) }
|
@@ -1199,223 +1405,866 @@ module Orb
|
|
1199
1405
|
# | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
|
1200
1406
|
sig do
|
1201
1407
|
params(
|
1202
|
-
country:
|
1203
|
-
|
1408
|
+
country:
|
1409
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::OrSymbol,
|
1410
|
+
type:
|
1411
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::OrSymbol,
|
1204
1412
|
value: String
|
1205
|
-
)
|
1206
|
-
|
1413
|
+
).returns(T.attached_class)
|
1414
|
+
end
|
1415
|
+
def self.new(country:, type:, value:)
|
1207
1416
|
end
|
1208
|
-
def self.new(country:, type:, value:); end
|
1209
1417
|
|
1210
1418
|
sig do
|
1211
|
-
override
|
1212
|
-
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1419
|
+
override.returns(
|
1420
|
+
{
|
1421
|
+
country:
|
1422
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol,
|
1423
|
+
type:
|
1424
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol,
|
1425
|
+
value: String
|
1426
|
+
}
|
1427
|
+
)
|
1428
|
+
end
|
1429
|
+
def to_hash
|
1219
1430
|
end
|
1220
|
-
def to_hash; end
|
1221
1431
|
|
1222
1432
|
module Country
|
1223
1433
|
extend Orb::Internal::Type::Enum
|
1224
1434
|
|
1225
1435
|
TaggedSymbol =
|
1226
|
-
T.type_alias
|
1436
|
+
T.type_alias do
|
1437
|
+
T.all(
|
1438
|
+
Symbol,
|
1439
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country
|
1440
|
+
)
|
1441
|
+
end
|
1227
1442
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1228
1443
|
|
1229
|
-
AD =
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1444
|
+
AD =
|
1445
|
+
T.let(
|
1446
|
+
:AD,
|
1447
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1448
|
+
)
|
1449
|
+
AE =
|
1450
|
+
T.let(
|
1451
|
+
:AE,
|
1452
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1453
|
+
)
|
1454
|
+
AR =
|
1455
|
+
T.let(
|
1456
|
+
:AR,
|
1457
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1458
|
+
)
|
1459
|
+
AT =
|
1460
|
+
T.let(
|
1461
|
+
:AT,
|
1462
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1463
|
+
)
|
1464
|
+
AU =
|
1465
|
+
T.let(
|
1466
|
+
:AU,
|
1467
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1468
|
+
)
|
1469
|
+
BE =
|
1470
|
+
T.let(
|
1471
|
+
:BE,
|
1472
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1473
|
+
)
|
1474
|
+
BG =
|
1475
|
+
T.let(
|
1476
|
+
:BG,
|
1477
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1478
|
+
)
|
1479
|
+
BH =
|
1480
|
+
T.let(
|
1481
|
+
:BH,
|
1482
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1483
|
+
)
|
1484
|
+
BO =
|
1485
|
+
T.let(
|
1486
|
+
:BO,
|
1487
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1488
|
+
)
|
1489
|
+
BR =
|
1490
|
+
T.let(
|
1491
|
+
:BR,
|
1492
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1493
|
+
)
|
1494
|
+
CA =
|
1495
|
+
T.let(
|
1496
|
+
:CA,
|
1497
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1498
|
+
)
|
1499
|
+
CH =
|
1500
|
+
T.let(
|
1501
|
+
:CH,
|
1502
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1503
|
+
)
|
1504
|
+
CL =
|
1505
|
+
T.let(
|
1506
|
+
:CL,
|
1507
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1508
|
+
)
|
1509
|
+
CN =
|
1510
|
+
T.let(
|
1511
|
+
:CN,
|
1512
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1513
|
+
)
|
1514
|
+
CO =
|
1515
|
+
T.let(
|
1516
|
+
:CO,
|
1517
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1518
|
+
)
|
1519
|
+
CR =
|
1520
|
+
T.let(
|
1521
|
+
:CR,
|
1522
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1523
|
+
)
|
1524
|
+
CY =
|
1525
|
+
T.let(
|
1526
|
+
:CY,
|
1527
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1528
|
+
)
|
1529
|
+
CZ =
|
1530
|
+
T.let(
|
1531
|
+
:CZ,
|
1532
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1533
|
+
)
|
1534
|
+
DE =
|
1535
|
+
T.let(
|
1536
|
+
:DE,
|
1537
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1538
|
+
)
|
1539
|
+
DK =
|
1540
|
+
T.let(
|
1541
|
+
:DK,
|
1542
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1543
|
+
)
|
1544
|
+
EE =
|
1545
|
+
T.let(
|
1546
|
+
:EE,
|
1547
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1548
|
+
)
|
1549
|
+
DO =
|
1550
|
+
T.let(
|
1551
|
+
:DO,
|
1552
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1553
|
+
)
|
1554
|
+
EC =
|
1555
|
+
T.let(
|
1556
|
+
:EC,
|
1557
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1558
|
+
)
|
1559
|
+
EG =
|
1560
|
+
T.let(
|
1561
|
+
:EG,
|
1562
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1563
|
+
)
|
1564
|
+
ES =
|
1565
|
+
T.let(
|
1566
|
+
:ES,
|
1567
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1568
|
+
)
|
1569
|
+
EU =
|
1570
|
+
T.let(
|
1571
|
+
:EU,
|
1572
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1573
|
+
)
|
1574
|
+
FI =
|
1575
|
+
T.let(
|
1576
|
+
:FI,
|
1577
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1578
|
+
)
|
1579
|
+
FR =
|
1580
|
+
T.let(
|
1581
|
+
:FR,
|
1582
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1583
|
+
)
|
1584
|
+
GB =
|
1585
|
+
T.let(
|
1586
|
+
:GB,
|
1587
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1588
|
+
)
|
1589
|
+
GE =
|
1590
|
+
T.let(
|
1591
|
+
:GE,
|
1592
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1593
|
+
)
|
1594
|
+
GR =
|
1595
|
+
T.let(
|
1596
|
+
:GR,
|
1597
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1598
|
+
)
|
1599
|
+
HK =
|
1600
|
+
T.let(
|
1601
|
+
:HK,
|
1602
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1603
|
+
)
|
1604
|
+
HR =
|
1605
|
+
T.let(
|
1606
|
+
:HR,
|
1607
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1608
|
+
)
|
1609
|
+
HU =
|
1610
|
+
T.let(
|
1611
|
+
:HU,
|
1612
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1613
|
+
)
|
1614
|
+
ID =
|
1615
|
+
T.let(
|
1616
|
+
:ID,
|
1617
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1618
|
+
)
|
1619
|
+
IE =
|
1620
|
+
T.let(
|
1621
|
+
:IE,
|
1622
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1623
|
+
)
|
1624
|
+
IL =
|
1625
|
+
T.let(
|
1626
|
+
:IL,
|
1627
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1628
|
+
)
|
1629
|
+
IN =
|
1630
|
+
T.let(
|
1631
|
+
:IN,
|
1632
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1633
|
+
)
|
1634
|
+
IS =
|
1635
|
+
T.let(
|
1636
|
+
:IS,
|
1637
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1638
|
+
)
|
1639
|
+
IT =
|
1640
|
+
T.let(
|
1641
|
+
:IT,
|
1642
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1643
|
+
)
|
1644
|
+
JP =
|
1645
|
+
T.let(
|
1646
|
+
:JP,
|
1647
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1648
|
+
)
|
1649
|
+
KE =
|
1650
|
+
T.let(
|
1651
|
+
:KE,
|
1652
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1653
|
+
)
|
1654
|
+
KR =
|
1655
|
+
T.let(
|
1656
|
+
:KR,
|
1657
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1658
|
+
)
|
1659
|
+
KZ =
|
1660
|
+
T.let(
|
1661
|
+
:KZ,
|
1662
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1663
|
+
)
|
1664
|
+
LI =
|
1665
|
+
T.let(
|
1666
|
+
:LI,
|
1667
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1668
|
+
)
|
1669
|
+
LT =
|
1670
|
+
T.let(
|
1671
|
+
:LT,
|
1672
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1673
|
+
)
|
1674
|
+
LU =
|
1675
|
+
T.let(
|
1676
|
+
:LU,
|
1677
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1678
|
+
)
|
1679
|
+
LV =
|
1680
|
+
T.let(
|
1681
|
+
:LV,
|
1682
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1683
|
+
)
|
1684
|
+
MT =
|
1685
|
+
T.let(
|
1686
|
+
:MT,
|
1687
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1688
|
+
)
|
1689
|
+
MX =
|
1690
|
+
T.let(
|
1691
|
+
:MX,
|
1692
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1693
|
+
)
|
1694
|
+
MY =
|
1695
|
+
T.let(
|
1696
|
+
:MY,
|
1697
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1698
|
+
)
|
1699
|
+
NG =
|
1700
|
+
T.let(
|
1701
|
+
:NG,
|
1702
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1703
|
+
)
|
1704
|
+
NL =
|
1705
|
+
T.let(
|
1706
|
+
:NL,
|
1707
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1708
|
+
)
|
1709
|
+
NO =
|
1710
|
+
T.let(
|
1711
|
+
:NO,
|
1712
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1713
|
+
)
|
1714
|
+
NZ =
|
1715
|
+
T.let(
|
1716
|
+
:NZ,
|
1717
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1718
|
+
)
|
1719
|
+
OM =
|
1720
|
+
T.let(
|
1721
|
+
:OM,
|
1722
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1723
|
+
)
|
1724
|
+
PE =
|
1725
|
+
T.let(
|
1726
|
+
:PE,
|
1727
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1728
|
+
)
|
1729
|
+
PH =
|
1730
|
+
T.let(
|
1731
|
+
:PH,
|
1732
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1733
|
+
)
|
1734
|
+
PL =
|
1735
|
+
T.let(
|
1736
|
+
:PL,
|
1737
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1738
|
+
)
|
1739
|
+
PT =
|
1740
|
+
T.let(
|
1741
|
+
:PT,
|
1742
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1743
|
+
)
|
1744
|
+
RO =
|
1745
|
+
T.let(
|
1746
|
+
:RO,
|
1747
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1748
|
+
)
|
1749
|
+
RS =
|
1750
|
+
T.let(
|
1751
|
+
:RS,
|
1752
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1753
|
+
)
|
1754
|
+
RU =
|
1755
|
+
T.let(
|
1756
|
+
:RU,
|
1757
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1758
|
+
)
|
1759
|
+
SA =
|
1760
|
+
T.let(
|
1761
|
+
:SA,
|
1762
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1763
|
+
)
|
1764
|
+
SE =
|
1765
|
+
T.let(
|
1766
|
+
:SE,
|
1767
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1768
|
+
)
|
1769
|
+
SG =
|
1770
|
+
T.let(
|
1771
|
+
:SG,
|
1772
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1773
|
+
)
|
1774
|
+
SI =
|
1775
|
+
T.let(
|
1776
|
+
:SI,
|
1777
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1778
|
+
)
|
1779
|
+
SK =
|
1780
|
+
T.let(
|
1781
|
+
:SK,
|
1782
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1783
|
+
)
|
1784
|
+
SV =
|
1785
|
+
T.let(
|
1786
|
+
:SV,
|
1787
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1788
|
+
)
|
1789
|
+
TH =
|
1790
|
+
T.let(
|
1791
|
+
:TH,
|
1792
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1793
|
+
)
|
1794
|
+
TR =
|
1795
|
+
T.let(
|
1796
|
+
:TR,
|
1797
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1798
|
+
)
|
1799
|
+
TW =
|
1800
|
+
T.let(
|
1801
|
+
:TW,
|
1802
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1803
|
+
)
|
1804
|
+
UA =
|
1805
|
+
T.let(
|
1806
|
+
:UA,
|
1807
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1808
|
+
)
|
1809
|
+
US =
|
1810
|
+
T.let(
|
1811
|
+
:US,
|
1812
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1813
|
+
)
|
1814
|
+
UY =
|
1815
|
+
T.let(
|
1816
|
+
:UY,
|
1817
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1818
|
+
)
|
1819
|
+
VE =
|
1820
|
+
T.let(
|
1821
|
+
:VE,
|
1822
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1823
|
+
)
|
1824
|
+
VN =
|
1825
|
+
T.let(
|
1826
|
+
:VN,
|
1827
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1828
|
+
)
|
1829
|
+
ZA =
|
1830
|
+
T.let(
|
1831
|
+
:ZA,
|
1832
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1833
|
+
)
|
1834
|
+
|
1835
|
+
sig do
|
1836
|
+
override.returns(
|
1837
|
+
T::Array[
|
1838
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Country::TaggedSymbol
|
1839
|
+
]
|
1840
|
+
)
|
1841
|
+
end
|
1842
|
+
def self.values
|
1843
|
+
end
|
1844
|
+
end
|
1845
|
+
|
1314
1846
|
module Type
|
1315
1847
|
extend Orb::Internal::Type::Enum
|
1316
1848
|
|
1317
1849
|
TaggedSymbol =
|
1318
|
-
T.type_alias
|
1850
|
+
T.type_alias do
|
1851
|
+
T.all(
|
1852
|
+
Symbol,
|
1853
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type
|
1854
|
+
)
|
1855
|
+
end
|
1319
1856
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1320
1857
|
|
1321
|
-
AD_NRT =
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1858
|
+
AD_NRT =
|
1859
|
+
T.let(
|
1860
|
+
:ad_nrt,
|
1861
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1862
|
+
)
|
1863
|
+
AE_TRN =
|
1864
|
+
T.let(
|
1865
|
+
:ae_trn,
|
1866
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1867
|
+
)
|
1868
|
+
AR_CUIT =
|
1869
|
+
T.let(
|
1870
|
+
:ar_cuit,
|
1871
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1872
|
+
)
|
1873
|
+
EU_VAT =
|
1874
|
+
T.let(
|
1875
|
+
:eu_vat,
|
1876
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1877
|
+
)
|
1878
|
+
AU_ABN =
|
1879
|
+
T.let(
|
1880
|
+
:au_abn,
|
1881
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1882
|
+
)
|
1883
|
+
AU_ARN =
|
1884
|
+
T.let(
|
1885
|
+
:au_arn,
|
1886
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1887
|
+
)
|
1888
|
+
BG_UIC =
|
1889
|
+
T.let(
|
1890
|
+
:bg_uic,
|
1891
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1892
|
+
)
|
1893
|
+
BH_VAT =
|
1894
|
+
T.let(
|
1895
|
+
:bh_vat,
|
1896
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1897
|
+
)
|
1898
|
+
BO_TIN =
|
1899
|
+
T.let(
|
1900
|
+
:bo_tin,
|
1901
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1902
|
+
)
|
1903
|
+
BR_CNPJ =
|
1904
|
+
T.let(
|
1905
|
+
:br_cnpj,
|
1906
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1907
|
+
)
|
1908
|
+
BR_CPF =
|
1909
|
+
T.let(
|
1910
|
+
:br_cpf,
|
1911
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1912
|
+
)
|
1913
|
+
CA_BN =
|
1914
|
+
T.let(
|
1915
|
+
:ca_bn,
|
1916
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1917
|
+
)
|
1333
1918
|
CA_GST_HST =
|
1334
|
-
T.let(
|
1919
|
+
T.let(
|
1920
|
+
:ca_gst_hst,
|
1921
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1922
|
+
)
|
1335
1923
|
CA_PST_BC =
|
1336
|
-
T.let(
|
1924
|
+
T.let(
|
1925
|
+
:ca_pst_bc,
|
1926
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1927
|
+
)
|
1337
1928
|
CA_PST_MB =
|
1338
|
-
T.let(
|
1929
|
+
T.let(
|
1930
|
+
:ca_pst_mb,
|
1931
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1932
|
+
)
|
1339
1933
|
CA_PST_SK =
|
1340
|
-
T.let(
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1934
|
+
T.let(
|
1935
|
+
:ca_pst_sk,
|
1936
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1937
|
+
)
|
1938
|
+
CA_QST =
|
1939
|
+
T.let(
|
1940
|
+
:ca_qst,
|
1941
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1942
|
+
)
|
1943
|
+
CH_VAT =
|
1944
|
+
T.let(
|
1945
|
+
:ch_vat,
|
1946
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1947
|
+
)
|
1948
|
+
CL_TIN =
|
1949
|
+
T.let(
|
1950
|
+
:cl_tin,
|
1951
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1952
|
+
)
|
1953
|
+
CN_TIN =
|
1954
|
+
T.let(
|
1955
|
+
:cn_tin,
|
1956
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1957
|
+
)
|
1958
|
+
CO_NIT =
|
1959
|
+
T.let(
|
1960
|
+
:co_nit,
|
1961
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1962
|
+
)
|
1963
|
+
CR_TIN =
|
1964
|
+
T.let(
|
1965
|
+
:cr_tin,
|
1966
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1967
|
+
)
|
1968
|
+
DO_RCN =
|
1969
|
+
T.let(
|
1970
|
+
:do_rcn,
|
1971
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1972
|
+
)
|
1973
|
+
EC_RUC =
|
1974
|
+
T.let(
|
1975
|
+
:ec_ruc,
|
1976
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1977
|
+
)
|
1978
|
+
EG_TIN =
|
1979
|
+
T.let(
|
1980
|
+
:eg_tin,
|
1981
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1982
|
+
)
|
1983
|
+
ES_CIF =
|
1984
|
+
T.let(
|
1985
|
+
:es_cif,
|
1986
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1987
|
+
)
|
1351
1988
|
EU_OSS_VAT =
|
1352
|
-
T.let(
|
1353
|
-
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1989
|
+
T.let(
|
1990
|
+
:eu_oss_vat,
|
1991
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1992
|
+
)
|
1993
|
+
GB_VAT =
|
1994
|
+
T.let(
|
1995
|
+
:gb_vat,
|
1996
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
1997
|
+
)
|
1998
|
+
GE_VAT =
|
1999
|
+
T.let(
|
2000
|
+
:ge_vat,
|
2001
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2002
|
+
)
|
2003
|
+
HK_BR =
|
2004
|
+
T.let(
|
2005
|
+
:hk_br,
|
2006
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2007
|
+
)
|
2008
|
+
HU_TIN =
|
2009
|
+
T.let(
|
2010
|
+
:hu_tin,
|
2011
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2012
|
+
)
|
2013
|
+
ID_NPWP =
|
2014
|
+
T.let(
|
2015
|
+
:id_npwp,
|
2016
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2017
|
+
)
|
2018
|
+
IL_VAT =
|
2019
|
+
T.let(
|
2020
|
+
:il_vat,
|
2021
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2022
|
+
)
|
2023
|
+
IN_GST =
|
2024
|
+
T.let(
|
2025
|
+
:in_gst,
|
2026
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2027
|
+
)
|
2028
|
+
IS_VAT =
|
2029
|
+
T.let(
|
2030
|
+
:is_vat,
|
2031
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2032
|
+
)
|
2033
|
+
JP_CN =
|
2034
|
+
T.let(
|
2035
|
+
:jp_cn,
|
2036
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2037
|
+
)
|
2038
|
+
JP_RN =
|
2039
|
+
T.let(
|
2040
|
+
:jp_rn,
|
2041
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2042
|
+
)
|
2043
|
+
JP_TRN =
|
2044
|
+
T.let(
|
2045
|
+
:jp_trn,
|
2046
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2047
|
+
)
|
2048
|
+
KE_PIN =
|
2049
|
+
T.let(
|
2050
|
+
:ke_pin,
|
2051
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2052
|
+
)
|
2053
|
+
KR_BRN =
|
2054
|
+
T.let(
|
2055
|
+
:kr_brn,
|
2056
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2057
|
+
)
|
2058
|
+
KZ_BIN =
|
2059
|
+
T.let(
|
2060
|
+
:kz_bin,
|
2061
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2062
|
+
)
|
2063
|
+
LI_UID =
|
2064
|
+
T.let(
|
2065
|
+
:li_uid,
|
2066
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2067
|
+
)
|
2068
|
+
MX_RFC =
|
2069
|
+
T.let(
|
2070
|
+
:mx_rfc,
|
2071
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2072
|
+
)
|
2073
|
+
MY_FRP =
|
2074
|
+
T.let(
|
2075
|
+
:my_frp,
|
2076
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2077
|
+
)
|
2078
|
+
MY_ITN =
|
2079
|
+
T.let(
|
2080
|
+
:my_itn,
|
2081
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2082
|
+
)
|
2083
|
+
MY_SST =
|
2084
|
+
T.let(
|
2085
|
+
:my_sst,
|
2086
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2087
|
+
)
|
2088
|
+
NG_TIN =
|
2089
|
+
T.let(
|
2090
|
+
:ng_tin,
|
2091
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2092
|
+
)
|
2093
|
+
NO_VAT =
|
2094
|
+
T.let(
|
2095
|
+
:no_vat,
|
2096
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2097
|
+
)
|
2098
|
+
NO_VOEC =
|
2099
|
+
T.let(
|
2100
|
+
:no_voec,
|
2101
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2102
|
+
)
|
2103
|
+
NZ_GST =
|
2104
|
+
T.let(
|
2105
|
+
:nz_gst,
|
2106
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2107
|
+
)
|
2108
|
+
OM_VAT =
|
2109
|
+
T.let(
|
2110
|
+
:om_vat,
|
2111
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2112
|
+
)
|
2113
|
+
PE_RUC =
|
2114
|
+
T.let(
|
2115
|
+
:pe_ruc,
|
2116
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2117
|
+
)
|
2118
|
+
PH_TIN =
|
2119
|
+
T.let(
|
2120
|
+
:ph_tin,
|
2121
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2122
|
+
)
|
2123
|
+
RO_TIN =
|
2124
|
+
T.let(
|
2125
|
+
:ro_tin,
|
2126
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2127
|
+
)
|
2128
|
+
RS_PIB =
|
2129
|
+
T.let(
|
2130
|
+
:rs_pib,
|
2131
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2132
|
+
)
|
2133
|
+
RU_INN =
|
2134
|
+
T.let(
|
2135
|
+
:ru_inn,
|
2136
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2137
|
+
)
|
2138
|
+
RU_KPP =
|
2139
|
+
T.let(
|
2140
|
+
:ru_kpp,
|
2141
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2142
|
+
)
|
2143
|
+
SA_VAT =
|
2144
|
+
T.let(
|
2145
|
+
:sa_vat,
|
2146
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2147
|
+
)
|
2148
|
+
SG_GST =
|
2149
|
+
T.let(
|
2150
|
+
:sg_gst,
|
2151
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2152
|
+
)
|
2153
|
+
SG_UEN =
|
2154
|
+
T.let(
|
2155
|
+
:sg_uen,
|
2156
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2157
|
+
)
|
2158
|
+
SI_TIN =
|
2159
|
+
T.let(
|
2160
|
+
:si_tin,
|
2161
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2162
|
+
)
|
2163
|
+
SV_NIT =
|
2164
|
+
T.let(
|
2165
|
+
:sv_nit,
|
2166
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2167
|
+
)
|
2168
|
+
TH_VAT =
|
2169
|
+
T.let(
|
2170
|
+
:th_vat,
|
2171
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2172
|
+
)
|
2173
|
+
TR_TIN =
|
2174
|
+
T.let(
|
2175
|
+
:tr_tin,
|
2176
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2177
|
+
)
|
2178
|
+
TW_VAT =
|
2179
|
+
T.let(
|
2180
|
+
:tw_vat,
|
2181
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2182
|
+
)
|
2183
|
+
UA_VAT =
|
2184
|
+
T.let(
|
2185
|
+
:ua_vat,
|
2186
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2187
|
+
)
|
2188
|
+
US_EIN =
|
2189
|
+
T.let(
|
2190
|
+
:us_ein,
|
2191
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2192
|
+
)
|
2193
|
+
UY_RUC =
|
2194
|
+
T.let(
|
2195
|
+
:uy_ruc,
|
2196
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2197
|
+
)
|
2198
|
+
VE_RIF =
|
2199
|
+
T.let(
|
2200
|
+
:ve_rif,
|
2201
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2202
|
+
)
|
2203
|
+
VN_TIN =
|
2204
|
+
T.let(
|
2205
|
+
:vn_tin,
|
2206
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2207
|
+
)
|
2208
|
+
ZA_VAT =
|
2209
|
+
T.let(
|
2210
|
+
:za_vat,
|
2211
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2212
|
+
)
|
2213
|
+
|
2214
|
+
sig do
|
2215
|
+
override.returns(
|
2216
|
+
T::Array[
|
2217
|
+
Orb::Models::InvoiceFetchUpcomingResponse::CustomerTaxID::Type::TaggedSymbol
|
2218
|
+
]
|
2219
|
+
)
|
2220
|
+
end
|
2221
|
+
def self.values
|
2222
|
+
end
|
1400
2223
|
end
|
1401
2224
|
end
|
1402
2225
|
|
1403
2226
|
module InvoiceSource
|
1404
2227
|
extend Orb::Internal::Type::Enum
|
1405
2228
|
|
1406
|
-
TaggedSymbol =
|
2229
|
+
TaggedSymbol =
|
2230
|
+
T.type_alias do
|
2231
|
+
T.all(
|
2232
|
+
Symbol,
|
2233
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource
|
2234
|
+
)
|
2235
|
+
end
|
1407
2236
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1408
2237
|
|
1409
2238
|
SUBSCRIPTION =
|
1410
|
-
T.let(
|
1411
|
-
|
1412
|
-
|
2239
|
+
T.let(
|
2240
|
+
:subscription,
|
2241
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2242
|
+
)
|
2243
|
+
PARTIAL =
|
2244
|
+
T.let(
|
2245
|
+
:partial,
|
2246
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2247
|
+
)
|
2248
|
+
ONE_OFF =
|
2249
|
+
T.let(
|
2250
|
+
:one_off,
|
2251
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2252
|
+
)
|
1413
2253
|
|
1414
|
-
sig
|
1415
|
-
|
2254
|
+
sig do
|
2255
|
+
override.returns(
|
2256
|
+
T::Array[
|
2257
|
+
Orb::Models::InvoiceFetchUpcomingResponse::InvoiceSource::TaggedSymbol
|
2258
|
+
]
|
2259
|
+
)
|
2260
|
+
end
|
2261
|
+
def self.values
|
2262
|
+
end
|
1416
2263
|
end
|
1417
2264
|
|
1418
2265
|
class LineItem < Orb::Internal::Type::BaseModel
|
2266
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
2267
|
+
|
1419
2268
|
# A unique ID for this line item.
|
1420
2269
|
sig { returns(String) }
|
1421
2270
|
attr_accessor :id
|
@@ -1432,11 +2281,11 @@ module Orb
|
|
1432
2281
|
returns(
|
1433
2282
|
T::Array[
|
1434
2283
|
T.any(
|
1435
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1436
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1437
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1438
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1439
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
2284
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount,
|
2285
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount,
|
2286
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount,
|
2287
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum,
|
2288
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum
|
1440
2289
|
)
|
1441
2290
|
]
|
1442
2291
|
)
|
@@ -1456,10 +2305,10 @@ module Orb
|
|
1456
2305
|
returns(
|
1457
2306
|
T.nilable(
|
1458
2307
|
T.any(
|
1459
|
-
Orb::
|
1460
|
-
Orb::
|
1461
|
-
Orb::
|
1462
|
-
Orb::
|
2308
|
+
Orb::PercentageDiscount,
|
2309
|
+
Orb::TrialDiscount,
|
2310
|
+
Orb::UsageDiscount,
|
2311
|
+
Orb::AmountDiscount
|
1463
2312
|
)
|
1464
2313
|
)
|
1465
2314
|
)
|
@@ -1481,14 +2330,22 @@ module Orb
|
|
1481
2330
|
attr_accessor :grouping
|
1482
2331
|
|
1483
2332
|
# This field is deprecated in favor of `adjustments`.
|
1484
|
-
sig
|
2333
|
+
sig do
|
2334
|
+
returns(
|
2335
|
+
T.nilable(
|
2336
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum
|
2337
|
+
)
|
2338
|
+
)
|
2339
|
+
end
|
1485
2340
|
attr_reader :maximum
|
1486
2341
|
|
1487
2342
|
sig do
|
1488
2343
|
params(
|
1489
|
-
maximum:
|
1490
|
-
|
1491
|
-
|
2344
|
+
maximum:
|
2345
|
+
T.nilable(
|
2346
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash
|
2347
|
+
)
|
2348
|
+
).void
|
1492
2349
|
end
|
1493
2350
|
attr_writer :maximum
|
1494
2351
|
|
@@ -1497,14 +2354,22 @@ module Orb
|
|
1497
2354
|
attr_accessor :maximum_amount
|
1498
2355
|
|
1499
2356
|
# This field is deprecated in favor of `adjustments`.
|
1500
|
-
sig
|
2357
|
+
sig do
|
2358
|
+
returns(
|
2359
|
+
T.nilable(
|
2360
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum
|
2361
|
+
)
|
2362
|
+
)
|
2363
|
+
end
|
1501
2364
|
attr_reader :minimum
|
1502
2365
|
|
1503
2366
|
sig do
|
1504
2367
|
params(
|
1505
|
-
minimum:
|
1506
|
-
|
1507
|
-
|
2368
|
+
minimum:
|
2369
|
+
T.nilable(
|
2370
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash
|
2371
|
+
)
|
2372
|
+
).void
|
1508
2373
|
end
|
1509
2374
|
attr_writer :minimum
|
1510
2375
|
|
@@ -1534,34 +2399,34 @@ module Orb
|
|
1534
2399
|
returns(
|
1535
2400
|
T.nilable(
|
1536
2401
|
T.any(
|
1537
|
-
Orb::
|
1538
|
-
Orb::
|
1539
|
-
Orb::
|
1540
|
-
Orb::
|
1541
|
-
Orb::
|
1542
|
-
Orb::
|
1543
|
-
Orb::
|
1544
|
-
Orb::
|
1545
|
-
Orb::
|
1546
|
-
Orb::
|
1547
|
-
Orb::
|
1548
|
-
Orb::
|
1549
|
-
Orb::
|
1550
|
-
Orb::
|
1551
|
-
Orb::
|
1552
|
-
Orb::
|
1553
|
-
Orb::
|
1554
|
-
Orb::
|
1555
|
-
Orb::
|
1556
|
-
Orb::
|
1557
|
-
Orb::
|
1558
|
-
Orb::
|
1559
|
-
Orb::
|
1560
|
-
Orb::
|
1561
|
-
Orb::
|
1562
|
-
Orb::
|
1563
|
-
Orb::
|
1564
|
-
Orb::
|
2402
|
+
Orb::Price::Unit,
|
2403
|
+
Orb::Price::Package,
|
2404
|
+
Orb::Price::Matrix,
|
2405
|
+
Orb::Price::Tiered,
|
2406
|
+
Orb::Price::TieredBps,
|
2407
|
+
Orb::Price::Bps,
|
2408
|
+
Orb::Price::BulkBps,
|
2409
|
+
Orb::Price::Bulk,
|
2410
|
+
Orb::Price::ThresholdTotalAmount,
|
2411
|
+
Orb::Price::TieredPackage,
|
2412
|
+
Orb::Price::GroupedTiered,
|
2413
|
+
Orb::Price::TieredWithMinimum,
|
2414
|
+
Orb::Price::TieredPackageWithMinimum,
|
2415
|
+
Orb::Price::PackageWithAllocation,
|
2416
|
+
Orb::Price::UnitWithPercent,
|
2417
|
+
Orb::Price::MatrixWithAllocation,
|
2418
|
+
Orb::Price::TieredWithProration,
|
2419
|
+
Orb::Price::UnitWithProration,
|
2420
|
+
Orb::Price::GroupedAllocation,
|
2421
|
+
Orb::Price::GroupedWithProratedMinimum,
|
2422
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
2423
|
+
Orb::Price::MatrixWithDisplayName,
|
2424
|
+
Orb::Price::BulkWithProration,
|
2425
|
+
Orb::Price::GroupedTieredPackage,
|
2426
|
+
Orb::Price::MaxGroupTieredPackage,
|
2427
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
2428
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
2429
|
+
Orb::Price::CumulativeGroupedBulk
|
1565
2430
|
)
|
1566
2431
|
)
|
1567
2432
|
)
|
@@ -1582,9 +2447,9 @@ module Orb
|
|
1582
2447
|
returns(
|
1583
2448
|
T::Array[
|
1584
2449
|
T.any(
|
1585
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
1586
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
1587
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2450
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix,
|
2451
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier,
|
2452
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null
|
1588
2453
|
)
|
1589
2454
|
]
|
1590
2455
|
)
|
@@ -1597,7 +2462,13 @@ module Orb
|
|
1597
2462
|
|
1598
2463
|
# An array of tax rates and their incurred tax amounts. Empty if no tax
|
1599
2464
|
# integration is configured.
|
1600
|
-
sig
|
2465
|
+
sig do
|
2466
|
+
returns(
|
2467
|
+
T::Array[
|
2468
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount
|
2469
|
+
]
|
2470
|
+
)
|
2471
|
+
end
|
1601
2472
|
attr_accessor :tax_amounts
|
1602
2473
|
|
1603
2474
|
# A list of customer ids that were used to calculate the usage for this line item.
|
@@ -1608,84 +2479,92 @@ module Orb
|
|
1608
2479
|
params(
|
1609
2480
|
id: String,
|
1610
2481
|
adjusted_subtotal: String,
|
1611
|
-
adjustments:
|
1612
|
-
T
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
2482
|
+
adjustments:
|
2483
|
+
T::Array[
|
2484
|
+
T.any(
|
2485
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount::OrHash,
|
2486
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount::OrHash,
|
2487
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount::OrHash,
|
2488
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum::OrHash,
|
2489
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum::OrHash
|
2490
|
+
)
|
2491
|
+
],
|
1621
2492
|
amount: String,
|
1622
2493
|
credits_applied: String,
|
1623
|
-
discount:
|
1624
|
-
T.
|
1625
|
-
|
1626
|
-
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1630
|
-
|
1631
|
-
|
2494
|
+
discount:
|
2495
|
+
T.nilable(
|
2496
|
+
T.any(
|
2497
|
+
Orb::PercentageDiscount::OrHash,
|
2498
|
+
Orb::TrialDiscount::OrHash,
|
2499
|
+
Orb::UsageDiscount::OrHash,
|
2500
|
+
Orb::AmountDiscount::OrHash
|
2501
|
+
)
|
2502
|
+
),
|
1632
2503
|
end_date: Time,
|
1633
2504
|
filter: T.nilable(String),
|
1634
2505
|
grouping: T.nilable(String),
|
1635
|
-
maximum:
|
2506
|
+
maximum:
|
2507
|
+
T.nilable(
|
2508
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum::OrHash
|
2509
|
+
),
|
1636
2510
|
maximum_amount: T.nilable(String),
|
1637
|
-
minimum:
|
2511
|
+
minimum:
|
2512
|
+
T.nilable(
|
2513
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum::OrHash
|
2514
|
+
),
|
1638
2515
|
minimum_amount: T.nilable(String),
|
1639
2516
|
name: String,
|
1640
2517
|
partially_invoiced_amount: String,
|
1641
|
-
price:
|
1642
|
-
T.
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1650
|
-
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1663
|
-
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
2518
|
+
price:
|
2519
|
+
T.nilable(
|
2520
|
+
T.any(
|
2521
|
+
Orb::Price::Unit::OrHash,
|
2522
|
+
Orb::Price::Package::OrHash,
|
2523
|
+
Orb::Price::Matrix::OrHash,
|
2524
|
+
Orb::Price::Tiered::OrHash,
|
2525
|
+
Orb::Price::TieredBps::OrHash,
|
2526
|
+
Orb::Price::Bps::OrHash,
|
2527
|
+
Orb::Price::BulkBps::OrHash,
|
2528
|
+
Orb::Price::Bulk::OrHash,
|
2529
|
+
Orb::Price::ThresholdTotalAmount::OrHash,
|
2530
|
+
Orb::Price::TieredPackage::OrHash,
|
2531
|
+
Orb::Price::GroupedTiered::OrHash,
|
2532
|
+
Orb::Price::TieredWithMinimum::OrHash,
|
2533
|
+
Orb::Price::TieredPackageWithMinimum::OrHash,
|
2534
|
+
Orb::Price::PackageWithAllocation::OrHash,
|
2535
|
+
Orb::Price::UnitWithPercent::OrHash,
|
2536
|
+
Orb::Price::MatrixWithAllocation::OrHash,
|
2537
|
+
Orb::Price::TieredWithProration::OrHash,
|
2538
|
+
Orb::Price::UnitWithProration::OrHash,
|
2539
|
+
Orb::Price::GroupedAllocation::OrHash,
|
2540
|
+
Orb::Price::GroupedWithProratedMinimum::OrHash,
|
2541
|
+
Orb::Price::GroupedWithMeteredMinimum::OrHash,
|
2542
|
+
Orb::Price::MatrixWithDisplayName::OrHash,
|
2543
|
+
Orb::Price::BulkWithProration::OrHash,
|
2544
|
+
Orb::Price::GroupedTieredPackage::OrHash,
|
2545
|
+
Orb::Price::MaxGroupTieredPackage::OrHash,
|
2546
|
+
Orb::Price::ScalableMatrixWithUnitPricing::OrHash,
|
2547
|
+
Orb::Price::ScalableMatrixWithTieredPricing::OrHash,
|
2548
|
+
Orb::Price::CumulativeGroupedBulk::OrHash
|
2549
|
+
)
|
2550
|
+
),
|
1674
2551
|
quantity: Float,
|
1675
2552
|
start_date: Time,
|
1676
|
-
sub_line_items:
|
1677
|
-
T
|
1678
|
-
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1682
|
-
|
1683
|
-
|
2553
|
+
sub_line_items:
|
2554
|
+
T::Array[
|
2555
|
+
T.any(
|
2556
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::OrHash,
|
2557
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::OrHash,
|
2558
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::OrHash
|
2559
|
+
)
|
2560
|
+
],
|
1684
2561
|
subtotal: String,
|
1685
|
-
tax_amounts:
|
2562
|
+
tax_amounts:
|
2563
|
+
T::Array[
|
2564
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount::OrHash
|
2565
|
+
],
|
1686
2566
|
usage_customer_ids: T.nilable(T::Array[String])
|
1687
|
-
)
|
1688
|
-
.returns(T.attached_class)
|
2567
|
+
).returns(T.attached_class)
|
1689
2568
|
end
|
1690
2569
|
def self.new(
|
1691
2570
|
# A unique ID for this line item.
|
@@ -1748,94 +2627,122 @@ module Orb
|
|
1748
2627
|
tax_amounts:,
|
1749
2628
|
# A list of customer ids that were used to calculate the usage for this line item.
|
1750
2629
|
usage_customer_ids:
|
1751
|
-
)
|
2630
|
+
)
|
2631
|
+
end
|
2632
|
+
|
1752
2633
|
sig do
|
1753
|
-
override
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
2634
|
+
override.returns(
|
2635
|
+
{
|
2636
|
+
id: String,
|
2637
|
+
adjusted_subtotal: String,
|
2638
|
+
adjustments:
|
2639
|
+
T::Array[
|
1759
2640
|
T.any(
|
1760
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1761
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1762
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1763
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
1764
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::
|
2641
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount,
|
2642
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount,
|
2643
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount,
|
2644
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum,
|
2645
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum
|
1765
2646
|
)
|
1766
2647
|
],
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
2648
|
+
amount: String,
|
2649
|
+
credits_applied: String,
|
2650
|
+
discount:
|
2651
|
+
T.nilable(
|
1770
2652
|
T.any(
|
1771
|
-
Orb::
|
1772
|
-
Orb::
|
1773
|
-
Orb::
|
1774
|
-
Orb::
|
2653
|
+
Orb::PercentageDiscount,
|
2654
|
+
Orb::TrialDiscount,
|
2655
|
+
Orb::UsageDiscount,
|
2656
|
+
Orb::AmountDiscount
|
1775
2657
|
)
|
1776
2658
|
),
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
2659
|
+
end_date: Time,
|
2660
|
+
filter: T.nilable(String),
|
2661
|
+
grouping: T.nilable(String),
|
2662
|
+
maximum:
|
2663
|
+
T.nilable(
|
2664
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Maximum
|
2665
|
+
),
|
2666
|
+
maximum_amount: T.nilable(String),
|
2667
|
+
minimum:
|
2668
|
+
T.nilable(
|
2669
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Minimum
|
2670
|
+
),
|
2671
|
+
minimum_amount: T.nilable(String),
|
2672
|
+
name: String,
|
2673
|
+
partially_invoiced_amount: String,
|
2674
|
+
price:
|
2675
|
+
T.nilable(
|
1787
2676
|
T.any(
|
1788
|
-
Orb::
|
1789
|
-
Orb::
|
1790
|
-
Orb::
|
1791
|
-
Orb::
|
1792
|
-
Orb::
|
1793
|
-
Orb::
|
1794
|
-
Orb::
|
1795
|
-
Orb::
|
1796
|
-
Orb::
|
1797
|
-
Orb::
|
1798
|
-
Orb::
|
1799
|
-
Orb::
|
1800
|
-
Orb::
|
1801
|
-
Orb::
|
1802
|
-
Orb::
|
1803
|
-
Orb::
|
1804
|
-
Orb::
|
1805
|
-
Orb::
|
1806
|
-
Orb::
|
1807
|
-
Orb::
|
1808
|
-
Orb::
|
1809
|
-
Orb::
|
1810
|
-
Orb::
|
1811
|
-
Orb::
|
1812
|
-
Orb::
|
1813
|
-
Orb::
|
1814
|
-
Orb::
|
1815
|
-
Orb::
|
2677
|
+
Orb::Price::Unit,
|
2678
|
+
Orb::Price::Package,
|
2679
|
+
Orb::Price::Matrix,
|
2680
|
+
Orb::Price::Tiered,
|
2681
|
+
Orb::Price::TieredBps,
|
2682
|
+
Orb::Price::Bps,
|
2683
|
+
Orb::Price::BulkBps,
|
2684
|
+
Orb::Price::Bulk,
|
2685
|
+
Orb::Price::ThresholdTotalAmount,
|
2686
|
+
Orb::Price::TieredPackage,
|
2687
|
+
Orb::Price::GroupedTiered,
|
2688
|
+
Orb::Price::TieredWithMinimum,
|
2689
|
+
Orb::Price::TieredPackageWithMinimum,
|
2690
|
+
Orb::Price::PackageWithAllocation,
|
2691
|
+
Orb::Price::UnitWithPercent,
|
2692
|
+
Orb::Price::MatrixWithAllocation,
|
2693
|
+
Orb::Price::TieredWithProration,
|
2694
|
+
Orb::Price::UnitWithProration,
|
2695
|
+
Orb::Price::GroupedAllocation,
|
2696
|
+
Orb::Price::GroupedWithProratedMinimum,
|
2697
|
+
Orb::Price::GroupedWithMeteredMinimum,
|
2698
|
+
Orb::Price::MatrixWithDisplayName,
|
2699
|
+
Orb::Price::BulkWithProration,
|
2700
|
+
Orb::Price::GroupedTieredPackage,
|
2701
|
+
Orb::Price::MaxGroupTieredPackage,
|
2702
|
+
Orb::Price::ScalableMatrixWithUnitPricing,
|
2703
|
+
Orb::Price::ScalableMatrixWithTieredPricing,
|
2704
|
+
Orb::Price::CumulativeGroupedBulk
|
1816
2705
|
)
|
1817
2706
|
),
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
2707
|
+
quantity: Float,
|
2708
|
+
start_date: Time,
|
2709
|
+
sub_line_items:
|
2710
|
+
T::Array[
|
1821
2711
|
T.any(
|
1822
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
1823
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
1824
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2712
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix,
|
2713
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier,
|
2714
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null
|
1825
2715
|
)
|
1826
2716
|
],
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
2717
|
+
subtotal: String,
|
2718
|
+
tax_amounts:
|
2719
|
+
T::Array[
|
2720
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::TaxAmount
|
2721
|
+
],
|
2722
|
+
usage_customer_ids: T.nilable(T::Array[String])
|
2723
|
+
}
|
2724
|
+
)
|
2725
|
+
end
|
2726
|
+
def to_hash
|
1832
2727
|
end
|
1833
|
-
def to_hash; end
|
1834
2728
|
|
1835
2729
|
module Adjustment
|
1836
2730
|
extend Orb::Internal::Type::Union
|
1837
2731
|
|
1838
|
-
|
2732
|
+
Variants =
|
2733
|
+
T.type_alias do
|
2734
|
+
T.any(
|
2735
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::UsageDiscount,
|
2736
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::AmountDiscount,
|
2737
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::PercentageDiscount,
|
2738
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Minimum,
|
2739
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Maximum
|
2740
|
+
)
|
2741
|
+
end
|
2742
|
+
|
2743
|
+
class UsageDiscount < Orb::Internal::Type::BaseModel
|
2744
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
2745
|
+
|
1839
2746
|
sig { returns(String) }
|
1840
2747
|
attr_accessor :id
|
1841
2748
|
|
@@ -1873,8 +2780,7 @@ module Orb
|
|
1873
2780
|
reason: T.nilable(String),
|
1874
2781
|
usage_discount: Float,
|
1875
2782
|
adjustment_type: Symbol
|
1876
|
-
)
|
1877
|
-
.returns(T.attached_class)
|
2783
|
+
).returns(T.attached_class)
|
1878
2784
|
end
|
1879
2785
|
def self.new(
|
1880
2786
|
id:,
|
@@ -1891,25 +2797,29 @@ module Orb
|
|
1891
2797
|
# to in a given billing period.
|
1892
2798
|
usage_discount:,
|
1893
2799
|
adjustment_type: :usage_discount
|
1894
|
-
)
|
2800
|
+
)
|
2801
|
+
end
|
2802
|
+
|
1895
2803
|
sig do
|
1896
|
-
override
|
1897
|
-
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1903
|
-
|
1904
|
-
|
1905
|
-
|
1906
|
-
|
1907
|
-
|
2804
|
+
override.returns(
|
2805
|
+
{
|
2806
|
+
id: String,
|
2807
|
+
adjustment_type: Symbol,
|
2808
|
+
amount: String,
|
2809
|
+
applies_to_price_ids: T::Array[String],
|
2810
|
+
is_invoice_level: T::Boolean,
|
2811
|
+
reason: T.nilable(String),
|
2812
|
+
usage_discount: Float
|
2813
|
+
}
|
2814
|
+
)
|
2815
|
+
end
|
2816
|
+
def to_hash
|
1908
2817
|
end
|
1909
|
-
def to_hash; end
|
1910
2818
|
end
|
1911
2819
|
|
1912
|
-
class
|
2820
|
+
class AmountDiscount < Orb::Internal::Type::BaseModel
|
2821
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
2822
|
+
|
1913
2823
|
sig { returns(String) }
|
1914
2824
|
attr_accessor :id
|
1915
2825
|
|
@@ -1947,8 +2857,7 @@ module Orb
|
|
1947
2857
|
is_invoice_level: T::Boolean,
|
1948
2858
|
reason: T.nilable(String),
|
1949
2859
|
adjustment_type: Symbol
|
1950
|
-
)
|
1951
|
-
.returns(T.attached_class)
|
2860
|
+
).returns(T.attached_class)
|
1952
2861
|
end
|
1953
2862
|
def self.new(
|
1954
2863
|
id:,
|
@@ -1965,25 +2874,29 @@ module Orb
|
|
1965
2874
|
# The reason for the adjustment.
|
1966
2875
|
reason:,
|
1967
2876
|
adjustment_type: :amount_discount
|
1968
|
-
)
|
2877
|
+
)
|
2878
|
+
end
|
2879
|
+
|
1969
2880
|
sig do
|
1970
|
-
override
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
2881
|
+
override.returns(
|
2882
|
+
{
|
2883
|
+
id: String,
|
2884
|
+
adjustment_type: Symbol,
|
2885
|
+
amount: String,
|
2886
|
+
amount_discount: String,
|
2887
|
+
applies_to_price_ids: T::Array[String],
|
2888
|
+
is_invoice_level: T::Boolean,
|
2889
|
+
reason: T.nilable(String)
|
2890
|
+
}
|
2891
|
+
)
|
2892
|
+
end
|
2893
|
+
def to_hash
|
1982
2894
|
end
|
1983
|
-
def to_hash; end
|
1984
2895
|
end
|
1985
2896
|
|
1986
|
-
class
|
2897
|
+
class PercentageDiscount < Orb::Internal::Type::BaseModel
|
2898
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
2899
|
+
|
1987
2900
|
sig { returns(String) }
|
1988
2901
|
attr_accessor :id
|
1989
2902
|
|
@@ -2021,8 +2934,7 @@ module Orb
|
|
2021
2934
|
percentage_discount: Float,
|
2022
2935
|
reason: T.nilable(String),
|
2023
2936
|
adjustment_type: Symbol
|
2024
|
-
)
|
2025
|
-
.returns(T.attached_class)
|
2937
|
+
).returns(T.attached_class)
|
2026
2938
|
end
|
2027
2939
|
def self.new(
|
2028
2940
|
id:,
|
@@ -2039,25 +2951,29 @@ module Orb
|
|
2039
2951
|
# The reason for the adjustment.
|
2040
2952
|
reason:,
|
2041
2953
|
adjustment_type: :percentage_discount
|
2042
|
-
)
|
2954
|
+
)
|
2955
|
+
end
|
2956
|
+
|
2043
2957
|
sig do
|
2044
|
-
override
|
2045
|
-
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2049
|
-
|
2050
|
-
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2054
|
-
|
2055
|
-
|
2958
|
+
override.returns(
|
2959
|
+
{
|
2960
|
+
id: String,
|
2961
|
+
adjustment_type: Symbol,
|
2962
|
+
amount: String,
|
2963
|
+
applies_to_price_ids: T::Array[String],
|
2964
|
+
is_invoice_level: T::Boolean,
|
2965
|
+
percentage_discount: Float,
|
2966
|
+
reason: T.nilable(String)
|
2967
|
+
}
|
2968
|
+
)
|
2969
|
+
end
|
2970
|
+
def to_hash
|
2056
2971
|
end
|
2057
|
-
def to_hash; end
|
2058
2972
|
end
|
2059
2973
|
|
2060
|
-
class
|
2974
|
+
class Minimum < Orb::Internal::Type::BaseModel
|
2975
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
2976
|
+
|
2061
2977
|
sig { returns(String) }
|
2062
2978
|
attr_accessor :id
|
2063
2979
|
|
@@ -2100,8 +3016,7 @@ module Orb
|
|
2100
3016
|
minimum_amount: String,
|
2101
3017
|
reason: T.nilable(String),
|
2102
3018
|
adjustment_type: Symbol
|
2103
|
-
)
|
2104
|
-
.returns(T.attached_class)
|
3019
|
+
).returns(T.attached_class)
|
2105
3020
|
end
|
2106
3021
|
def self.new(
|
2107
3022
|
id:,
|
@@ -2120,26 +3035,30 @@ module Orb
|
|
2120
3035
|
# The reason for the adjustment.
|
2121
3036
|
reason:,
|
2122
3037
|
adjustment_type: :minimum
|
2123
|
-
)
|
3038
|
+
)
|
3039
|
+
end
|
3040
|
+
|
2124
3041
|
sig do
|
2125
|
-
override
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
3042
|
+
override.returns(
|
3043
|
+
{
|
3044
|
+
id: String,
|
3045
|
+
adjustment_type: Symbol,
|
3046
|
+
amount: String,
|
3047
|
+
applies_to_price_ids: T::Array[String],
|
3048
|
+
is_invoice_level: T::Boolean,
|
3049
|
+
item_id: String,
|
3050
|
+
minimum_amount: String,
|
3051
|
+
reason: T.nilable(String)
|
3052
|
+
}
|
3053
|
+
)
|
3054
|
+
end
|
3055
|
+
def to_hash
|
2138
3056
|
end
|
2139
|
-
def to_hash; end
|
2140
3057
|
end
|
2141
3058
|
|
2142
|
-
class
|
3059
|
+
class Maximum < Orb::Internal::Type::BaseModel
|
3060
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3061
|
+
|
2143
3062
|
sig { returns(String) }
|
2144
3063
|
attr_accessor :id
|
2145
3064
|
|
@@ -2177,8 +3096,7 @@ module Orb
|
|
2177
3096
|
maximum_amount: String,
|
2178
3097
|
reason: T.nilable(String),
|
2179
3098
|
adjustment_type: Symbol
|
2180
|
-
)
|
2181
|
-
.returns(T.attached_class)
|
3099
|
+
).returns(T.attached_class)
|
2182
3100
|
end
|
2183
3101
|
def self.new(
|
2184
3102
|
id:,
|
@@ -2195,34 +3113,40 @@ module Orb
|
|
2195
3113
|
# The reason for the adjustment.
|
2196
3114
|
reason:,
|
2197
3115
|
adjustment_type: :maximum
|
2198
|
-
)
|
3116
|
+
)
|
3117
|
+
end
|
3118
|
+
|
2199
3119
|
sig do
|
2200
|
-
override
|
2201
|
-
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
3120
|
+
override.returns(
|
3121
|
+
{
|
3122
|
+
id: String,
|
3123
|
+
adjustment_type: Symbol,
|
3124
|
+
amount: String,
|
3125
|
+
applies_to_price_ids: T::Array[String],
|
3126
|
+
is_invoice_level: T::Boolean,
|
3127
|
+
maximum_amount: String,
|
3128
|
+
reason: T.nilable(String)
|
3129
|
+
}
|
3130
|
+
)
|
3131
|
+
end
|
3132
|
+
def to_hash
|
2212
3133
|
end
|
2213
|
-
def to_hash; end
|
2214
3134
|
end
|
2215
3135
|
|
2216
3136
|
sig do
|
2217
|
-
override
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
3137
|
+
override.returns(
|
3138
|
+
T::Array[
|
3139
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::Adjustment::Variants
|
3140
|
+
]
|
3141
|
+
)
|
3142
|
+
end
|
3143
|
+
def self.variants
|
2221
3144
|
end
|
2222
|
-
def self.variants; end
|
2223
3145
|
end
|
2224
3146
|
|
2225
3147
|
class Maximum < Orb::Internal::Type::BaseModel
|
3148
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3149
|
+
|
2226
3150
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
2227
3151
|
# maximums, this can be a subset of prices.
|
2228
3152
|
sig { returns(T::Array[String]) }
|
@@ -2234,7 +3158,10 @@ module Orb
|
|
2234
3158
|
|
2235
3159
|
# This field is deprecated in favor of `adjustments`.
|
2236
3160
|
sig do
|
2237
|
-
params(
|
3161
|
+
params(
|
3162
|
+
applies_to_price_ids: T::Array[String],
|
3163
|
+
maximum_amount: String
|
3164
|
+
).returns(T.attached_class)
|
2238
3165
|
end
|
2239
3166
|
def self.new(
|
2240
3167
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
@@ -2242,12 +3169,21 @@ module Orb
|
|
2242
3169
|
applies_to_price_ids:,
|
2243
3170
|
# Maximum amount applied
|
2244
3171
|
maximum_amount:
|
2245
|
-
)
|
2246
|
-
|
2247
|
-
|
3172
|
+
)
|
3173
|
+
end
|
3174
|
+
|
3175
|
+
sig do
|
3176
|
+
override.returns(
|
3177
|
+
{ applies_to_price_ids: T::Array[String], maximum_amount: String }
|
3178
|
+
)
|
3179
|
+
end
|
3180
|
+
def to_hash
|
3181
|
+
end
|
2248
3182
|
end
|
2249
3183
|
|
2250
3184
|
class Minimum < Orb::Internal::Type::BaseModel
|
3185
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3186
|
+
|
2251
3187
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
2252
3188
|
# minimums, this can be a subset of prices.
|
2253
3189
|
sig { returns(T::Array[String]) }
|
@@ -2259,7 +3195,10 @@ module Orb
|
|
2259
3195
|
|
2260
3196
|
# This field is deprecated in favor of `adjustments`.
|
2261
3197
|
sig do
|
2262
|
-
params(
|
3198
|
+
params(
|
3199
|
+
applies_to_price_ids: T::Array[String],
|
3200
|
+
minimum_amount: String
|
3201
|
+
).returns(T.attached_class)
|
2263
3202
|
end
|
2264
3203
|
def self.new(
|
2265
3204
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
@@ -2267,50 +3206,68 @@ module Orb
|
|
2267
3206
|
applies_to_price_ids:,
|
2268
3207
|
# Minimum amount applied
|
2269
3208
|
minimum_amount:
|
2270
|
-
)
|
2271
|
-
|
2272
|
-
|
3209
|
+
)
|
3210
|
+
end
|
3211
|
+
|
3212
|
+
sig do
|
3213
|
+
override.returns(
|
3214
|
+
{ applies_to_price_ids: T::Array[String], minimum_amount: String }
|
3215
|
+
)
|
3216
|
+
end
|
3217
|
+
def to_hash
|
3218
|
+
end
|
2273
3219
|
end
|
2274
3220
|
|
2275
3221
|
module SubLineItem
|
2276
3222
|
extend Orb::Internal::Type::Union
|
2277
3223
|
|
2278
|
-
|
3224
|
+
Variants =
|
3225
|
+
T.type_alias do
|
3226
|
+
T.any(
|
3227
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix,
|
3228
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier,
|
3229
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null
|
3230
|
+
)
|
3231
|
+
end
|
3232
|
+
|
3233
|
+
class Matrix < Orb::Internal::Type::BaseModel
|
3234
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3235
|
+
|
2279
3236
|
# The total amount for this sub line item.
|
2280
3237
|
sig { returns(String) }
|
2281
3238
|
attr_accessor :amount
|
2282
3239
|
|
2283
3240
|
sig do
|
2284
3241
|
returns(
|
2285
|
-
T.nilable(
|
3242
|
+
T.nilable(
|
3243
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping
|
3244
|
+
)
|
2286
3245
|
)
|
2287
3246
|
end
|
2288
3247
|
attr_reader :grouping
|
2289
3248
|
|
2290
3249
|
sig do
|
2291
3250
|
params(
|
2292
|
-
grouping:
|
2293
|
-
T.
|
2294
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2295
|
-
Orb::Internal::AnyHash
|
3251
|
+
grouping:
|
3252
|
+
T.nilable(
|
3253
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash
|
2296
3254
|
)
|
2297
|
-
|
2298
|
-
)
|
2299
|
-
.void
|
3255
|
+
).void
|
2300
3256
|
end
|
2301
3257
|
attr_writer :grouping
|
2302
3258
|
|
2303
|
-
sig
|
3259
|
+
sig do
|
3260
|
+
returns(
|
3261
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig
|
3262
|
+
)
|
3263
|
+
end
|
2304
3264
|
attr_reader :matrix_config
|
2305
3265
|
|
2306
3266
|
sig do
|
2307
3267
|
params(
|
2308
|
-
matrix_config:
|
2309
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2310
|
-
|
2311
|
-
)
|
2312
|
-
)
|
2313
|
-
.void
|
3268
|
+
matrix_config:
|
3269
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash
|
3270
|
+
).void
|
2314
3271
|
end
|
2315
3272
|
attr_writer :matrix_config
|
2316
3273
|
|
@@ -2326,21 +3283,16 @@ module Orb
|
|
2326
3283
|
sig do
|
2327
3284
|
params(
|
2328
3285
|
amount: String,
|
2329
|
-
grouping:
|
2330
|
-
T.
|
2331
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2332
|
-
|
2333
|
-
|
2334
|
-
|
2335
|
-
matrix_config: T.any(
|
2336
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::MatrixSubLineItem::MatrixConfig,
|
2337
|
-
Orb::Internal::AnyHash
|
2338
|
-
),
|
3286
|
+
grouping:
|
3287
|
+
T.nilable(
|
3288
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping::OrHash
|
3289
|
+
),
|
3290
|
+
matrix_config:
|
3291
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig::OrHash,
|
2339
3292
|
name: String,
|
2340
3293
|
quantity: Float,
|
2341
3294
|
type: Symbol
|
2342
|
-
)
|
2343
|
-
.returns(T.attached_class)
|
3295
|
+
).returns(T.attached_class)
|
2344
3296
|
end
|
2345
3297
|
def self.new(
|
2346
3298
|
# The total amount for this sub line item.
|
@@ -2350,23 +3302,32 @@ module Orb
|
|
2350
3302
|
name:,
|
2351
3303
|
quantity:,
|
2352
3304
|
type: :matrix
|
2353
|
-
)
|
3305
|
+
)
|
3306
|
+
end
|
3307
|
+
|
2354
3308
|
sig do
|
2355
|
-
override
|
2356
|
-
|
2357
|
-
|
2358
|
-
|
2359
|
-
|
2360
|
-
|
2361
|
-
|
2362
|
-
|
2363
|
-
|
2364
|
-
|
2365
|
-
|
3309
|
+
override.returns(
|
3310
|
+
{
|
3311
|
+
amount: String,
|
3312
|
+
grouping:
|
3313
|
+
T.nilable(
|
3314
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::Grouping
|
3315
|
+
),
|
3316
|
+
matrix_config:
|
3317
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Matrix::MatrixConfig,
|
3318
|
+
name: String,
|
3319
|
+
quantity: Float,
|
3320
|
+
type: Symbol
|
3321
|
+
}
|
3322
|
+
)
|
3323
|
+
end
|
3324
|
+
def to_hash
|
2366
3325
|
end
|
2367
|
-
def to_hash; end
|
2368
3326
|
|
2369
3327
|
class Grouping < Orb::Internal::Type::BaseModel
|
3328
|
+
OrHash =
|
3329
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3330
|
+
|
2370
3331
|
sig { returns(String) }
|
2371
3332
|
attr_accessor :key
|
2372
3333
|
|
@@ -2374,53 +3335,77 @@ module Orb
|
|
2374
3335
|
sig { returns(T.nilable(String)) }
|
2375
3336
|
attr_accessor :value
|
2376
3337
|
|
2377
|
-
sig
|
3338
|
+
sig do
|
3339
|
+
params(key: String, value: T.nilable(String)).returns(
|
3340
|
+
T.attached_class
|
3341
|
+
)
|
3342
|
+
end
|
2378
3343
|
def self.new(
|
2379
3344
|
key:,
|
2380
3345
|
# No value indicates the default group
|
2381
3346
|
value:
|
2382
|
-
)
|
2383
|
-
|
2384
|
-
|
3347
|
+
)
|
3348
|
+
end
|
3349
|
+
|
3350
|
+
sig do
|
3351
|
+
override.returns({ key: String, value: T.nilable(String) })
|
3352
|
+
end
|
3353
|
+
def to_hash
|
3354
|
+
end
|
2385
3355
|
end
|
2386
3356
|
|
2387
3357
|
class MatrixConfig < Orb::Internal::Type::BaseModel
|
3358
|
+
OrHash =
|
3359
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3360
|
+
|
2388
3361
|
# The ordered dimension values for this line item.
|
2389
3362
|
sig { returns(T::Array[T.nilable(String)]) }
|
2390
3363
|
attr_accessor :dimension_values
|
2391
3364
|
|
2392
|
-
sig
|
3365
|
+
sig do
|
3366
|
+
params(dimension_values: T::Array[T.nilable(String)]).returns(
|
3367
|
+
T.attached_class
|
3368
|
+
)
|
3369
|
+
end
|
2393
3370
|
def self.new(
|
2394
3371
|
# The ordered dimension values for this line item.
|
2395
3372
|
dimension_values:
|
2396
|
-
)
|
2397
|
-
|
2398
|
-
|
3373
|
+
)
|
3374
|
+
end
|
3375
|
+
|
3376
|
+
sig do
|
3377
|
+
override.returns(
|
3378
|
+
{ dimension_values: T::Array[T.nilable(String)] }
|
3379
|
+
)
|
3380
|
+
end
|
3381
|
+
def to_hash
|
3382
|
+
end
|
2399
3383
|
end
|
2400
3384
|
end
|
2401
3385
|
|
2402
|
-
class
|
3386
|
+
class Tier < Orb::Internal::Type::BaseModel
|
3387
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3388
|
+
|
2403
3389
|
# The total amount for this sub line item.
|
2404
3390
|
sig { returns(String) }
|
2405
3391
|
attr_accessor :amount
|
2406
3392
|
|
2407
3393
|
sig do
|
2408
3394
|
returns(
|
2409
|
-
T.nilable(
|
3395
|
+
T.nilable(
|
3396
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping
|
3397
|
+
)
|
2410
3398
|
)
|
2411
3399
|
end
|
2412
3400
|
attr_reader :grouping
|
2413
3401
|
|
2414
3402
|
sig do
|
2415
3403
|
params(
|
2416
|
-
grouping:
|
2417
|
-
T.
|
2418
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2419
|
-
Orb::Internal::AnyHash
|
3404
|
+
grouping:
|
3405
|
+
T.nilable(
|
3406
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash
|
2420
3407
|
)
|
2421
|
-
|
2422
|
-
)
|
2423
|
-
.void
|
3408
|
+
).void
|
2424
3409
|
end
|
2425
3410
|
attr_writer :grouping
|
2426
3411
|
|
@@ -2430,17 +3415,18 @@ module Orb
|
|
2430
3415
|
sig { returns(Float) }
|
2431
3416
|
attr_accessor :quantity
|
2432
3417
|
|
2433
|
-
sig
|
3418
|
+
sig do
|
3419
|
+
returns(
|
3420
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig
|
3421
|
+
)
|
3422
|
+
end
|
2434
3423
|
attr_reader :tier_config
|
2435
3424
|
|
2436
3425
|
sig do
|
2437
3426
|
params(
|
2438
|
-
tier_config:
|
2439
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2440
|
-
|
2441
|
-
)
|
2442
|
-
)
|
2443
|
-
.void
|
3427
|
+
tier_config:
|
3428
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash
|
3429
|
+
).void
|
2444
3430
|
end
|
2445
3431
|
attr_writer :tier_config
|
2446
3432
|
|
@@ -2450,21 +3436,16 @@ module Orb
|
|
2450
3436
|
sig do
|
2451
3437
|
params(
|
2452
3438
|
amount: String,
|
2453
|
-
grouping:
|
2454
|
-
T.
|
2455
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2456
|
-
|
2457
|
-
)
|
2458
|
-
),
|
3439
|
+
grouping:
|
3440
|
+
T.nilable(
|
3441
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping::OrHash
|
3442
|
+
),
|
2459
3443
|
name: String,
|
2460
3444
|
quantity: Float,
|
2461
|
-
tier_config:
|
2462
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2463
|
-
Orb::Internal::AnyHash
|
2464
|
-
),
|
3445
|
+
tier_config:
|
3446
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig::OrHash,
|
2465
3447
|
type: Symbol
|
2466
|
-
)
|
2467
|
-
.returns(T.attached_class)
|
3448
|
+
).returns(T.attached_class)
|
2468
3449
|
end
|
2469
3450
|
def self.new(
|
2470
3451
|
# The total amount for this sub line item.
|
@@ -2474,23 +3455,32 @@ module Orb
|
|
2474
3455
|
quantity:,
|
2475
3456
|
tier_config:,
|
2476
3457
|
type: :tier
|
2477
|
-
)
|
3458
|
+
)
|
3459
|
+
end
|
3460
|
+
|
2478
3461
|
sig do
|
2479
|
-
override
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
|
2489
|
-
|
3462
|
+
override.returns(
|
3463
|
+
{
|
3464
|
+
amount: String,
|
3465
|
+
grouping:
|
3466
|
+
T.nilable(
|
3467
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::Grouping
|
3468
|
+
),
|
3469
|
+
name: String,
|
3470
|
+
quantity: Float,
|
3471
|
+
tier_config:
|
3472
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Tier::TierConfig,
|
3473
|
+
type: Symbol
|
3474
|
+
}
|
3475
|
+
)
|
3476
|
+
end
|
3477
|
+
def to_hash
|
2490
3478
|
end
|
2491
|
-
def to_hash; end
|
2492
3479
|
|
2493
3480
|
class Grouping < Orb::Internal::Type::BaseModel
|
3481
|
+
OrHash =
|
3482
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3483
|
+
|
2494
3484
|
sig { returns(String) }
|
2495
3485
|
attr_accessor :key
|
2496
3486
|
|
@@ -2498,17 +3488,29 @@ module Orb
|
|
2498
3488
|
sig { returns(T.nilable(String)) }
|
2499
3489
|
attr_accessor :value
|
2500
3490
|
|
2501
|
-
sig
|
3491
|
+
sig do
|
3492
|
+
params(key: String, value: T.nilable(String)).returns(
|
3493
|
+
T.attached_class
|
3494
|
+
)
|
3495
|
+
end
|
2502
3496
|
def self.new(
|
2503
3497
|
key:,
|
2504
3498
|
# No value indicates the default group
|
2505
3499
|
value:
|
2506
|
-
)
|
2507
|
-
|
2508
|
-
|
3500
|
+
)
|
3501
|
+
end
|
3502
|
+
|
3503
|
+
sig do
|
3504
|
+
override.returns({ key: String, value: T.nilable(String) })
|
3505
|
+
end
|
3506
|
+
def to_hash
|
3507
|
+
end
|
2509
3508
|
end
|
2510
3509
|
|
2511
3510
|
class TierConfig < Orb::Internal::Type::BaseModel
|
3511
|
+
OrHash =
|
3512
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3513
|
+
|
2512
3514
|
sig { returns(Float) }
|
2513
3515
|
attr_accessor :first_unit
|
2514
3516
|
|
@@ -2525,35 +3527,46 @@ module Orb
|
|
2525
3527
|
unit_amount: String
|
2526
3528
|
).returns(T.attached_class)
|
2527
3529
|
end
|
2528
|
-
def self.new(first_unit:, last_unit:, unit_amount:)
|
3530
|
+
def self.new(first_unit:, last_unit:, unit_amount:)
|
3531
|
+
end
|
2529
3532
|
|
2530
|
-
sig
|
2531
|
-
|
3533
|
+
sig do
|
3534
|
+
override.returns(
|
3535
|
+
{
|
3536
|
+
first_unit: Float,
|
3537
|
+
last_unit: T.nilable(Float),
|
3538
|
+
unit_amount: String
|
3539
|
+
}
|
3540
|
+
)
|
3541
|
+
end
|
3542
|
+
def to_hash
|
3543
|
+
end
|
2532
3544
|
end
|
2533
3545
|
end
|
2534
3546
|
|
2535
|
-
class
|
3547
|
+
class Null < Orb::Internal::Type::BaseModel
|
3548
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3549
|
+
|
2536
3550
|
# The total amount for this sub line item.
|
2537
3551
|
sig { returns(String) }
|
2538
3552
|
attr_accessor :amount
|
2539
3553
|
|
2540
3554
|
sig do
|
2541
3555
|
returns(
|
2542
|
-
T.nilable(
|
3556
|
+
T.nilable(
|
3557
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping
|
3558
|
+
)
|
2543
3559
|
)
|
2544
3560
|
end
|
2545
3561
|
attr_reader :grouping
|
2546
3562
|
|
2547
3563
|
sig do
|
2548
3564
|
params(
|
2549
|
-
grouping:
|
2550
|
-
T.
|
2551
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2552
|
-
Orb::Internal::AnyHash
|
3565
|
+
grouping:
|
3566
|
+
T.nilable(
|
3567
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash
|
2553
3568
|
)
|
2554
|
-
|
2555
|
-
)
|
2556
|
-
.void
|
3569
|
+
).void
|
2557
3570
|
end
|
2558
3571
|
attr_writer :grouping
|
2559
3572
|
|
@@ -2569,17 +3582,14 @@ module Orb
|
|
2569
3582
|
sig do
|
2570
3583
|
params(
|
2571
3584
|
amount: String,
|
2572
|
-
grouping:
|
2573
|
-
T.
|
2574
|
-
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::
|
2575
|
-
|
2576
|
-
)
|
2577
|
-
),
|
3585
|
+
grouping:
|
3586
|
+
T.nilable(
|
3587
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping::OrHash
|
3588
|
+
),
|
2578
3589
|
name: String,
|
2579
3590
|
quantity: Float,
|
2580
3591
|
type: Symbol
|
2581
|
-
)
|
2582
|
-
.returns(T.attached_class)
|
3592
|
+
).returns(T.attached_class)
|
2583
3593
|
end
|
2584
3594
|
def self.new(
|
2585
3595
|
# The total amount for this sub line item.
|
@@ -2588,22 +3598,30 @@ module Orb
|
|
2588
3598
|
name:,
|
2589
3599
|
quantity:,
|
2590
3600
|
type: :"'null'"
|
2591
|
-
)
|
3601
|
+
)
|
3602
|
+
end
|
3603
|
+
|
2592
3604
|
sig do
|
2593
|
-
override
|
2594
|
-
|
2595
|
-
|
2596
|
-
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
3605
|
+
override.returns(
|
3606
|
+
{
|
3607
|
+
amount: String,
|
3608
|
+
grouping:
|
3609
|
+
T.nilable(
|
3610
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Null::Grouping
|
3611
|
+
),
|
3612
|
+
name: String,
|
3613
|
+
quantity: Float,
|
3614
|
+
type: Symbol
|
3615
|
+
}
|
3616
|
+
)
|
3617
|
+
end
|
3618
|
+
def to_hash
|
2603
3619
|
end
|
2604
|
-
def to_hash; end
|
2605
3620
|
|
2606
3621
|
class Grouping < Orb::Internal::Type::BaseModel
|
3622
|
+
OrHash =
|
3623
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3624
|
+
|
2607
3625
|
sig { returns(String) }
|
2608
3626
|
attr_accessor :key
|
2609
3627
|
|
@@ -2611,27 +3629,40 @@ module Orb
|
|
2611
3629
|
sig { returns(T.nilable(String)) }
|
2612
3630
|
attr_accessor :value
|
2613
3631
|
|
2614
|
-
sig
|
3632
|
+
sig do
|
3633
|
+
params(key: String, value: T.nilable(String)).returns(
|
3634
|
+
T.attached_class
|
3635
|
+
)
|
3636
|
+
end
|
2615
3637
|
def self.new(
|
2616
3638
|
key:,
|
2617
3639
|
# No value indicates the default group
|
2618
3640
|
value:
|
2619
|
-
)
|
2620
|
-
|
2621
|
-
|
3641
|
+
)
|
3642
|
+
end
|
3643
|
+
|
3644
|
+
sig do
|
3645
|
+
override.returns({ key: String, value: T.nilable(String) })
|
3646
|
+
end
|
3647
|
+
def to_hash
|
3648
|
+
end
|
2622
3649
|
end
|
2623
3650
|
end
|
2624
3651
|
|
2625
3652
|
sig do
|
2626
|
-
override
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
3653
|
+
override.returns(
|
3654
|
+
T::Array[
|
3655
|
+
Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem::Variants
|
3656
|
+
]
|
3657
|
+
)
|
3658
|
+
end
|
3659
|
+
def self.variants
|
2630
3660
|
end
|
2631
|
-
def self.variants; end
|
2632
3661
|
end
|
2633
3662
|
|
2634
3663
|
class TaxAmount < Orb::Internal::Type::BaseModel
|
3664
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3665
|
+
|
2635
3666
|
# The amount of additional tax incurred by this tax rate.
|
2636
3667
|
sig { returns(String) }
|
2637
3668
|
attr_accessor :amount
|
@@ -2645,8 +3676,11 @@ module Orb
|
|
2645
3676
|
attr_accessor :tax_rate_percentage
|
2646
3677
|
|
2647
3678
|
sig do
|
2648
|
-
params(
|
2649
|
-
|
3679
|
+
params(
|
3680
|
+
amount: String,
|
3681
|
+
tax_rate_description: String,
|
3682
|
+
tax_rate_percentage: T.nilable(String)
|
3683
|
+
).returns(T.attached_class)
|
2650
3684
|
end
|
2651
3685
|
def self.new(
|
2652
3686
|
# The amount of additional tax incurred by this tax rate.
|
@@ -2655,7 +3689,9 @@ module Orb
|
|
2655
3689
|
tax_rate_description:,
|
2656
3690
|
# The tax rate percentage, out of 100.
|
2657
3691
|
tax_rate_percentage:
|
2658
|
-
)
|
3692
|
+
)
|
3693
|
+
end
|
3694
|
+
|
2659
3695
|
sig do
|
2660
3696
|
override.returns(
|
2661
3697
|
{
|
@@ -2665,11 +3701,14 @@ module Orb
|
|
2665
3701
|
}
|
2666
3702
|
)
|
2667
3703
|
end
|
2668
|
-
def to_hash
|
3704
|
+
def to_hash
|
3705
|
+
end
|
2669
3706
|
end
|
2670
3707
|
end
|
2671
3708
|
|
2672
3709
|
class Maximum < Orb::Internal::Type::BaseModel
|
3710
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3711
|
+
|
2673
3712
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
2674
3713
|
# maximums, this can be a subset of prices.
|
2675
3714
|
sig { returns(T::Array[String]) }
|
@@ -2680,7 +3719,10 @@ module Orb
|
|
2680
3719
|
attr_accessor :maximum_amount
|
2681
3720
|
|
2682
3721
|
sig do
|
2683
|
-
params(
|
3722
|
+
params(
|
3723
|
+
applies_to_price_ids: T::Array[String],
|
3724
|
+
maximum_amount: String
|
3725
|
+
).returns(T.attached_class)
|
2684
3726
|
end
|
2685
3727
|
def self.new(
|
2686
3728
|
# List of price_ids that this maximum amount applies to. For plan/plan phase
|
@@ -2688,12 +3730,21 @@ module Orb
|
|
2688
3730
|
applies_to_price_ids:,
|
2689
3731
|
# Maximum amount applied
|
2690
3732
|
maximum_amount:
|
2691
|
-
)
|
2692
|
-
|
2693
|
-
|
3733
|
+
)
|
3734
|
+
end
|
3735
|
+
|
3736
|
+
sig do
|
3737
|
+
override.returns(
|
3738
|
+
{ applies_to_price_ids: T::Array[String], maximum_amount: String }
|
3739
|
+
)
|
3740
|
+
end
|
3741
|
+
def to_hash
|
3742
|
+
end
|
2694
3743
|
end
|
2695
3744
|
|
2696
3745
|
class Minimum < Orb::Internal::Type::BaseModel
|
3746
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3747
|
+
|
2697
3748
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
2698
3749
|
# minimums, this can be a subset of prices.
|
2699
3750
|
sig { returns(T::Array[String]) }
|
@@ -2704,7 +3755,10 @@ module Orb
|
|
2704
3755
|
attr_accessor :minimum_amount
|
2705
3756
|
|
2706
3757
|
sig do
|
2707
|
-
params(
|
3758
|
+
params(
|
3759
|
+
applies_to_price_ids: T::Array[String],
|
3760
|
+
minimum_amount: String
|
3761
|
+
).returns(T.attached_class)
|
2708
3762
|
end
|
2709
3763
|
def self.new(
|
2710
3764
|
# List of price_ids that this minimum amount applies to. For plan/plan phase
|
@@ -2712,12 +3766,21 @@ module Orb
|
|
2712
3766
|
applies_to_price_ids:,
|
2713
3767
|
# Minimum amount applied
|
2714
3768
|
minimum_amount:
|
2715
|
-
)
|
2716
|
-
|
2717
|
-
|
3769
|
+
)
|
3770
|
+
end
|
3771
|
+
|
3772
|
+
sig do
|
3773
|
+
override.returns(
|
3774
|
+
{ applies_to_price_ids: T::Array[String], minimum_amount: String }
|
3775
|
+
)
|
3776
|
+
end
|
3777
|
+
def to_hash
|
3778
|
+
end
|
2718
3779
|
end
|
2719
3780
|
|
2720
3781
|
class PaymentAttempt < Orb::Internal::Type::BaseModel
|
3782
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3783
|
+
|
2721
3784
|
# The ID of the payment attempt.
|
2722
3785
|
sig { returns(String) }
|
2723
3786
|
attr_accessor :id
|
@@ -2733,7 +3796,9 @@ module Orb
|
|
2733
3796
|
# The payment provider that attempted to collect the payment.
|
2734
3797
|
sig do
|
2735
3798
|
returns(
|
2736
|
-
T.nilable(
|
3799
|
+
T.nilable(
|
3800
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol
|
3801
|
+
)
|
2737
3802
|
)
|
2738
3803
|
end
|
2739
3804
|
attr_accessor :payment_provider
|
@@ -2751,11 +3816,13 @@ module Orb
|
|
2751
3816
|
id: String,
|
2752
3817
|
amount: String,
|
2753
3818
|
created_at: Time,
|
2754
|
-
payment_provider:
|
3819
|
+
payment_provider:
|
3820
|
+
T.nilable(
|
3821
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol
|
3822
|
+
),
|
2755
3823
|
payment_provider_id: T.nilable(String),
|
2756
3824
|
succeeded: T::Boolean
|
2757
|
-
)
|
2758
|
-
.returns(T.attached_class)
|
3825
|
+
).returns(T.attached_class)
|
2759
3826
|
end
|
2760
3827
|
def self.new(
|
2761
3828
|
# The ID of the payment attempt.
|
@@ -2770,44 +3837,61 @@ module Orb
|
|
2770
3837
|
payment_provider_id:,
|
2771
3838
|
# Whether the payment attempt succeeded.
|
2772
3839
|
succeeded:
|
2773
|
-
)
|
3840
|
+
)
|
3841
|
+
end
|
3842
|
+
|
2774
3843
|
sig do
|
2775
|
-
override
|
2776
|
-
|
2777
|
-
|
2778
|
-
|
2779
|
-
|
2780
|
-
|
2781
|
-
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
|
3844
|
+
override.returns(
|
3845
|
+
{
|
3846
|
+
id: String,
|
3847
|
+
amount: String,
|
3848
|
+
created_at: Time,
|
3849
|
+
payment_provider:
|
3850
|
+
T.nilable(
|
3851
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol
|
3852
|
+
),
|
3853
|
+
payment_provider_id: T.nilable(String),
|
3854
|
+
succeeded: T::Boolean
|
3855
|
+
}
|
3856
|
+
)
|
3857
|
+
end
|
3858
|
+
def to_hash
|
2786
3859
|
end
|
2787
|
-
def to_hash; end
|
2788
3860
|
|
2789
3861
|
# The payment provider that attempted to collect the payment.
|
2790
3862
|
module PaymentProvider
|
2791
3863
|
extend Orb::Internal::Type::Enum
|
2792
3864
|
|
2793
3865
|
TaggedSymbol =
|
2794
|
-
T.type_alias
|
3866
|
+
T.type_alias do
|
3867
|
+
T.all(
|
3868
|
+
Symbol,
|
3869
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider
|
3870
|
+
)
|
3871
|
+
end
|
2795
3872
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2796
3873
|
|
2797
3874
|
STRIPE =
|
2798
|
-
T.let(
|
3875
|
+
T.let(
|
3876
|
+
:stripe,
|
3877
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol
|
3878
|
+
)
|
2799
3879
|
|
2800
3880
|
sig do
|
2801
|
-
override
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
3881
|
+
override.returns(
|
3882
|
+
T::Array[
|
3883
|
+
Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol
|
3884
|
+
]
|
3885
|
+
)
|
3886
|
+
end
|
3887
|
+
def self.values
|
2805
3888
|
end
|
2806
|
-
def self.values; end
|
2807
3889
|
end
|
2808
3890
|
end
|
2809
3891
|
|
2810
3892
|
class ShippingAddress < Orb::Internal::Type::BaseModel
|
3893
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3894
|
+
|
2811
3895
|
sig { returns(T.nilable(String)) }
|
2812
3896
|
attr_accessor :city
|
2813
3897
|
|
@@ -2834,52 +3918,86 @@ module Orb
|
|
2834
3918
|
line2: T.nilable(String),
|
2835
3919
|
postal_code: T.nilable(String),
|
2836
3920
|
state: T.nilable(String)
|
2837
|
-
)
|
2838
|
-
|
3921
|
+
).returns(T.attached_class)
|
3922
|
+
end
|
3923
|
+
def self.new(city:, country:, line1:, line2:, postal_code:, state:)
|
2839
3924
|
end
|
2840
|
-
def self.new(city:, country:, line1:, line2:, postal_code:, state:); end
|
2841
3925
|
|
2842
3926
|
sig do
|
2843
|
-
override
|
2844
|
-
|
2845
|
-
|
2846
|
-
|
2847
|
-
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
|
3927
|
+
override.returns(
|
3928
|
+
{
|
3929
|
+
city: T.nilable(String),
|
3930
|
+
country: T.nilable(String),
|
3931
|
+
line1: T.nilable(String),
|
3932
|
+
line2: T.nilable(String),
|
3933
|
+
postal_code: T.nilable(String),
|
3934
|
+
state: T.nilable(String)
|
3935
|
+
}
|
3936
|
+
)
|
3937
|
+
end
|
3938
|
+
def to_hash
|
2854
3939
|
end
|
2855
|
-
def to_hash; end
|
2856
3940
|
end
|
2857
3941
|
|
2858
3942
|
module Status
|
2859
3943
|
extend Orb::Internal::Type::Enum
|
2860
3944
|
|
2861
|
-
TaggedSymbol =
|
3945
|
+
TaggedSymbol =
|
3946
|
+
T.type_alias do
|
3947
|
+
T.all(Symbol, Orb::Models::InvoiceFetchUpcomingResponse::Status)
|
3948
|
+
end
|
2862
3949
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2863
3950
|
|
2864
|
-
ISSUED =
|
2865
|
-
|
2866
|
-
|
2867
|
-
|
2868
|
-
|
3951
|
+
ISSUED =
|
3952
|
+
T.let(
|
3953
|
+
:issued,
|
3954
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3955
|
+
)
|
3956
|
+
PAID =
|
3957
|
+
T.let(
|
3958
|
+
:paid,
|
3959
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3960
|
+
)
|
3961
|
+
SYNCED =
|
3962
|
+
T.let(
|
3963
|
+
:synced,
|
3964
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3965
|
+
)
|
3966
|
+
VOID =
|
3967
|
+
T.let(
|
3968
|
+
:void,
|
3969
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3970
|
+
)
|
3971
|
+
DRAFT =
|
3972
|
+
T.let(
|
3973
|
+
:draft,
|
3974
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3975
|
+
)
|
2869
3976
|
|
2870
|
-
sig
|
2871
|
-
|
3977
|
+
sig do
|
3978
|
+
override.returns(
|
3979
|
+
T::Array[
|
3980
|
+
Orb::Models::InvoiceFetchUpcomingResponse::Status::TaggedSymbol
|
3981
|
+
]
|
3982
|
+
)
|
3983
|
+
end
|
3984
|
+
def self.values
|
3985
|
+
end
|
2872
3986
|
end
|
2873
3987
|
|
2874
3988
|
class Subscription < Orb::Internal::Type::BaseModel
|
3989
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
3990
|
+
|
2875
3991
|
sig { returns(String) }
|
2876
3992
|
attr_accessor :id
|
2877
3993
|
|
2878
3994
|
sig { params(id: String).returns(T.attached_class) }
|
2879
|
-
def self.new(id:)
|
3995
|
+
def self.new(id:)
|
3996
|
+
end
|
2880
3997
|
|
2881
|
-
sig { override.returns({id: String}) }
|
2882
|
-
def to_hash
|
3998
|
+
sig { override.returns({ id: String }) }
|
3999
|
+
def to_hash
|
4000
|
+
end
|
2883
4001
|
end
|
2884
4002
|
end
|
2885
4003
|
end
|