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