orb-billing 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +3 -3
- data/lib/orb/file_part.rb +2 -2
- data/lib/orb/internal/type/enum.rb +3 -3
- data/lib/orb/internal/type/request_parameters.rb +4 -4
- data/lib/orb/internal/type/union.rb +4 -4
- data/lib/orb/internal/util.rb +1 -1
- data/lib/orb/models/alert.rb +29 -32
- data/lib/orb/models/alert_create_for_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_external_customer_params.rb +7 -8
- data/lib/orb/models/alert_create_for_subscription_params.rb +7 -8
- data/lib/orb/models/alert_list_params.rb +0 -1
- data/lib/orb/models/alert_update_params.rb +4 -5
- data/lib/orb/models/amount_discount.rb +6 -7
- data/lib/orb/models/billable_metric.rb +9 -11
- data/lib/orb/models/coupon.rb +9 -12
- data/lib/orb/models/coupon_create_params.rb +6 -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 +41 -53
- data/lib/orb/models/customer_list_params.rb +0 -1
- data/lib/orb/models/customer_update_by_external_id_params.rb +41 -53
- data/lib/orb/models/customer_update_params.rb +41 -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 +0 -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 +0 -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 +0 -7
- data/lib/orb/models/customers/credits/ledger_list_params.rb +8 -9
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -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 +5 -5
- data/lib/orb/models/evaluate_price_group.rb +1 -1
- data/lib/orb/models/event_ingest_params.rb +4 -9
- data/lib/orb/models/event_ingest_response.rb +0 -3
- data/lib/orb/models/event_search_params.rb +0 -3
- data/lib/orb/models/event_search_response.rb +0 -4
- data/lib/orb/models/event_update_params.rb +0 -3
- data/lib/orb/models/events/backfill_close_response.rb +0 -4
- data/lib/orb/models/events/backfill_create_params.rb +0 -7
- data/lib/orb/models/events/backfill_create_response.rb +0 -4
- data/lib/orb/models/events/backfill_fetch_response.rb +0 -4
- data/lib/orb/models/events/backfill_list_params.rb +0 -1
- data/lib/orb/models/events/backfill_list_response.rb +0 -4
- data/lib/orb/models/events/backfill_revert_response.rb +0 -4
- data/lib/orb/models/events/event_volumes.rb +3 -3
- data/lib/orb/models/events/volume_list_params.rb +0 -3
- data/lib/orb/models/invoice.rb +157 -202
- data/lib/orb/models/invoice_create_params.rb +14 -21
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +9 -54
- data/lib/orb/models/invoice_issue_params.rb +0 -1
- data/lib/orb/models/invoice_level_discount.rb +4 -4
- data/lib/orb/models/invoice_line_item_create_params.rb +0 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +6 -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 +78 -103
- data/lib/orb/models/plan_create_params.rb +727 -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 +1671 -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 +86 -122
- data/lib/orb/models/subscription_cancel_params.rb +3 -5
- data/lib/orb/models/subscription_cancel_response.rb +21 -57
- data/lib/orb/models/subscription_change_apply_response.rb +21 -58
- data/lib/orb/models/subscription_change_cancel_response.rb +21 -58
- data/lib/orb/models/subscription_change_retrieve_response.rb +21 -58
- data/lib/orb/models/subscription_create_params.rb +1865 -1815
- data/lib/orb/models/subscription_create_response.rb +21 -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 +1105 -1017
- data/lib/orb/models/subscription_price_intervals_response.rb +21 -57
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +1906 -1791
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +21 -57
- data/lib/orb/models/subscription_trigger_phase_params.rb +0 -2
- data/lib/orb/models/subscription_trigger_phase_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +21 -57
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +21 -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 +21 -57
- data/lib/orb/models/subscription_update_params.rb +0 -5
- data/lib/orb/models/subscription_update_trial_params.rb +4 -6
- data/lib/orb/models/subscription_update_trial_response.rb +21 -57
- data/lib/orb/models/subscription_usage.rb +46 -39
- data/lib/orb/models/subscriptions.rb +6 -6
- data/lib/orb/models/trial_discount.rb +6 -7
- data/lib/orb/models/usage_discount.rb +6 -8
- data/lib/orb/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 +1 -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 +19 -6
- data/rbi/orb/internal/transport/base_client.rbi +131 -73
- data/rbi/orb/internal/transport/pooled_net_requester.rbi +25 -12
- data/rbi/orb/internal/type/array_of.rbi +42 -34
- data/rbi/orb/internal/type/base_model.rbi +124 -65
- data/rbi/orb/internal/type/base_page.rbi +11 -7
- data/rbi/orb/internal/type/boolean.rbi +16 -10
- data/rbi/orb/internal/type/converter.rbi +66 -31
- data/rbi/orb/internal/type/enum.rbi +27 -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 +60 -25
- data/rbi/orb/internal/type/unknown.rbi +20 -12
- data/rbi/orb/internal/util.rbi +210 -89
- data/rbi/orb/models/alert.rbi +107 -70
- data/rbi/orb/models/alert_create_for_customer_params.rbi +60 -27
- data/rbi/orb/models/alert_create_for_external_customer_params.rbi +68 -29
- data/rbi/orb/models/alert_create_for_subscription_params.rbi +53 -26
- data/rbi/orb/models/alert_disable_params.rbi +17 -6
- data/rbi/orb/models/alert_enable_params.rbi +17 -6
- data/rbi/orb/models/alert_list_params.rbi +23 -20
- data/rbi/orb/models/alert_retrieve_params.rbi +10 -4
- data/rbi/orb/models/alert_update_params.rbi +25 -14
- data/rbi/orb/models/amount_discount.rbi +28 -19
- data/rbi/orb/models/billable_metric.rbi +33 -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 +10 -4
- data/rbi/orb/models/coupon_create_params.rbi +72 -38
- data/rbi/orb/models/coupon_fetch_params.rbi +10 -4
- data/rbi/orb/models/coupon_list_params.rbi +18 -15
- data/rbi/orb/models/coupons/subscription_list_params.rbi +16 -6
- data/rbi/orb/models/credit_note.rbi +293 -158
- data/rbi/orb/models/credit_note_create_params.rbi +58 -29
- data/rbi/orb/models/credit_note_fetch_params.rbi +10 -4
- data/rbi/orb/models/credit_note_list_params.rbi +20 -17
- data/rbi/orb/models/customer.rbi +430 -329
- data/rbi/orb/models/customer_create_params.rbi +662 -325
- data/rbi/orb/models/customer_delete_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_by_external_id_params.rbi +10 -4
- data/rbi/orb/models/customer_fetch_params.rbi +10 -4
- data/rbi/orb/models/customer_list_params.rbi +20 -17
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +10 -4
- data/rbi/orb/models/customer_sync_payment_methods_from_gateway_params.rbi +10 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +1136 -336
- data/rbi/orb/models/customer_update_params.rbi +661 -324
- data/rbi/orb/models/customers/balance_transaction_create_params.rbi +50 -21
- data/rbi/orb/models/customers/balance_transaction_create_response.rbi +154 -61
- data/rbi/orb/models/customers/balance_transaction_list_params.rbi +20 -17
- data/rbi/orb/models/customers/balance_transaction_list_response.rbi +164 -59
- data/rbi/orb/models/customers/cost_list_by_external_id_params.rbi +56 -22
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +162 -124
- data/rbi/orb/models/customers/cost_list_params.rbi +45 -22
- data/rbi/orb/models/customers/cost_list_response.rbi +154 -123
- data/rbi/orb/models/customers/credit_list_by_external_id_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_by_external_id_response.rbi +48 -22
- data/rbi/orb/models/customers/credit_list_params.rbi +18 -15
- data/rbi/orb/models/customers/credit_list_response.rbi +44 -21
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +106 -68
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +643 -434
- data/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +117 -59
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +700 -425
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +102 -44
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +681 -432
- data/rbi/orb/models/customers/credits/ledger_list_params.rbi +123 -40
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +735 -389
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +74 -53
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +65 -48
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +84 -45
- data/rbi/orb/models/customers/credits/top_up_create_response.rbi +83 -43
- data/rbi/orb/models/customers/credits/top_up_delete_by_external_id_params.rbi +16 -6
- data/rbi/orb/models/customers/credits/top_up_delete_params.rbi +15 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +70 -49
- data/rbi/orb/models/customers/credits/top_up_list_params.rbi +9 -5
- data/rbi/orb/models/customers/credits/top_up_list_response.rbi +84 -43
- data/rbi/orb/models/dimensional_price_group.rbi +18 -15
- data/rbi/orb/models/dimensional_price_group_create_params.rbi +19 -16
- data/rbi/orb/models/dimensional_price_group_list_params.rbi +16 -6
- data/rbi/orb/models/dimensional_price_group_retrieve_params.rbi +10 -4
- data/rbi/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +10 -9
- data/rbi/orb/models/dimensional_price_groups.rbi +18 -13
- data/rbi/orb/models/discount.rbi +11 -5
- data/rbi/orb/models/evaluate_price_group.rbi +28 -12
- data/rbi/orb/models/event_deprecate_params.rbi +10 -4
- data/rbi/orb/models/event_deprecate_response.rbi +8 -3
- data/rbi/orb/models/event_ingest_params.rbi +37 -31
- data/rbi/orb/models/event_ingest_response.rbi +63 -23
- data/rbi/orb/models/event_search_params.rbi +17 -14
- data/rbi/orb/models/event_search_response.rbi +33 -21
- data/rbi/orb/models/event_update_params.rbi +19 -16
- data/rbi/orb/models/event_update_response.rbi +8 -3
- data/rbi/orb/models/events/backfill_close_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_close_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_create_params.rbi +21 -18
- data/rbi/orb/models/events/backfill_create_response.rbi +63 -29
- data/rbi/orb/models/events/backfill_fetch_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_fetch_response.rbi +64 -29
- data/rbi/orb/models/events/backfill_list_params.rbi +16 -6
- data/rbi/orb/models/events/backfill_list_response.rbi +62 -28
- data/rbi/orb/models/events/backfill_revert_params.rbi +10 -9
- data/rbi/orb/models/events/backfill_revert_response.rbi +63 -29
- data/rbi/orb/models/events/event_volumes.rbi +32 -10
- data/rbi/orb/models/events/volume_list_params.rbi +18 -15
- data/rbi/orb/models/invoice.rbi +1286 -805
- data/rbi/orb/models/invoice_create_params.rbi +97 -69
- data/rbi/orb/models/invoice_fetch_params.rbi +10 -4
- data/rbi/orb/models/invoice_fetch_upcoming_params.rbi +15 -5
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1991 -861
- data/rbi/orb/models/invoice_issue_params.rbi +16 -5
- data/rbi/orb/models/invoice_level_discount.rbi +11 -4
- data/rbi/orb/models/invoice_line_item_create_params.rbi +20 -17
- data/rbi/orb/models/invoice_line_item_create_response.rbi +573 -376
- data/rbi/orb/models/invoice_list_params.rbi +67 -47
- data/rbi/orb/models/invoice_mark_paid_params.rbi +17 -14
- data/rbi/orb/models/invoice_pay_params.rbi +10 -4
- data/rbi/orb/models/invoice_update_params.rbi +15 -10
- data/rbi/orb/models/invoice_void_params.rbi +10 -4
- data/rbi/orb/models/item.rbi +87 -39
- data/rbi/orb/models/item_create_params.rbi +14 -5
- data/rbi/orb/models/item_fetch_params.rbi +10 -4
- data/rbi/orb/models/item_list_params.rbi +16 -6
- data/rbi/orb/models/item_update_params.rbi +79 -39
- data/rbi/orb/models/metric_create_params.rbi +19 -16
- data/rbi/orb/models/metric_fetch_params.rbi +10 -4
- data/rbi/orb/models/metric_list_params.rbi +20 -17
- data/rbi/orb/models/metric_update_params.rbi +15 -10
- data/rbi/orb/models/pagination_metadata.rbi +16 -4
- data/rbi/orb/models/percentage_discount.rbi +32 -19
- data/rbi/orb/models/plan.rbi +496 -365
- data/rbi/orb/models/plan_create_params.rbi +4785 -2875
- data/rbi/orb/models/plan_fetch_params.rbi +10 -4
- data/rbi/orb/models/plan_list_params.rbi +34 -27
- data/rbi/orb/models/plan_update_params.rbi +16 -13
- data/rbi/orb/models/plans/external_plan_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/plans/external_plan_id_update_params.rbi +16 -13
- data/rbi/orb/models/price.rbi +9969 -5024
- data/rbi/orb/models/price_create_params.rbi +501 -245
- data/rbi/orb/models/price_evaluate_params.rbi +20 -17
- data/rbi/orb/models/price_evaluate_response.rbi +11 -6
- data/rbi/orb/models/price_fetch_params.rbi +10 -4
- data/rbi/orb/models/price_list_params.rbi +16 -6
- data/rbi/orb/models/price_update_params.rbi +15 -10
- data/rbi/orb/models/prices/external_price_id_fetch_params.rbi +10 -9
- data/rbi/orb/models/prices/external_price_id_update_params.rbi +15 -10
- data/rbi/orb/models/subscription.rbi +578 -420
- data/rbi/orb/models/subscription_cancel_params.rbi +44 -22
- data/rbi/orb/models/subscription_cancel_response.rbi +700 -438
- data/rbi/orb/models/subscription_change_apply_params.rbi +16 -13
- data/rbi/orb/models/subscription_change_apply_response.rbi +784 -504
- data/rbi/orb/models/subscription_change_cancel_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_cancel_response.rbi +783 -514
- data/rbi/orb/models/subscription_change_retrieve_params.rbi +10 -4
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +782 -524
- data/rbi/orb/models/subscription_create_params.rbi +9021 -6730
- data/rbi/orb/models/subscription_create_response.rbi +700 -438
- data/rbi/orb/models/subscription_fetch_costs_params.rbi +47 -22
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +154 -123
- data/rbi/orb/models/subscription_fetch_params.rbi +10 -4
- data/rbi/orb/models/subscription_fetch_schedule_params.rbi +20 -17
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +33 -19
- data/rbi/orb/models/subscription_fetch_usage_params.rbi +81 -34
- data/rbi/orb/models/subscription_list_params.rbi +39 -28
- data/rbi/orb/models/subscription_price_intervals_params.rbi +5181 -3822
- data/rbi/orb/models/subscription_price_intervals_response.rbi +720 -453
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +8602 -6910
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +718 -467
- data/rbi/orb/models/subscription_trigger_phase_params.rbi +16 -13
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +712 -448
- data/rbi/orb/models/subscription_unschedule_cancellation_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +719 -467
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +16 -5
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +693 -502
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_params.rbi +10 -4
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +708 -497
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +57 -26
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +719 -467
- data/rbi/orb/models/subscription_update_params.rbi +19 -16
- data/rbi/orb/models/subscription_update_trial_params.rbi +57 -19
- data/rbi/orb/models/subscription_update_trial_response.rbi +712 -447
- data/rbi/orb/models/subscription_usage.rbi +271 -121
- data/rbi/orb/models/subscriptions.rbi +18 -11
- data/rbi/orb/models/top_level_ping_params.rbi +10 -4
- data/rbi/orb/models/top_level_ping_response.rbi +7 -3
- data/rbi/orb/models/trial_discount.rbi +29 -20
- data/rbi/orb/models/usage_discount.rbi +28 -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/type/request_parameters.rbs +3 -1
- 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
@@ -9,7 +9,22 @@ module Orb
|
|
9
9
|
module LedgerListResponse
|
10
10
|
extend Orb::Internal::Type::Union
|
11
11
|
|
12
|
+
Variants =
|
13
|
+
T.type_alias do
|
14
|
+
T.any(
|
15
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment,
|
16
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
|
17
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
|
18
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
|
19
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void,
|
20
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
|
21
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment
|
22
|
+
)
|
23
|
+
end
|
24
|
+
|
12
25
|
class Increment < Orb::Internal::Type::BaseModel
|
26
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
27
|
+
|
13
28
|
sig { returns(String) }
|
14
29
|
attr_accessor :id
|
15
30
|
|
@@ -19,28 +34,36 @@ module Orb
|
|
19
34
|
sig { returns(Time) }
|
20
35
|
attr_accessor :created_at
|
21
36
|
|
22
|
-
sig
|
37
|
+
sig do
|
38
|
+
returns(
|
39
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock
|
40
|
+
)
|
41
|
+
end
|
23
42
|
attr_reader :credit_block
|
24
43
|
|
25
44
|
sig do
|
26
45
|
params(
|
27
|
-
credit_block:
|
28
|
-
|
29
|
-
|
46
|
+
credit_block:
|
47
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash
|
48
|
+
).void
|
30
49
|
end
|
31
50
|
attr_writer :credit_block
|
32
51
|
|
33
52
|
sig { returns(String) }
|
34
53
|
attr_accessor :currency
|
35
54
|
|
36
|
-
sig
|
55
|
+
sig do
|
56
|
+
returns(
|
57
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer
|
58
|
+
)
|
59
|
+
end
|
37
60
|
attr_reader :customer
|
38
61
|
|
39
62
|
sig do
|
40
63
|
params(
|
41
|
-
customer:
|
42
|
-
|
43
|
-
|
64
|
+
customer:
|
65
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash
|
66
|
+
).void
|
44
67
|
end
|
45
68
|
attr_writer :customer
|
46
69
|
|
@@ -50,7 +73,11 @@ module Orb
|
|
50
73
|
sig { returns(Float) }
|
51
74
|
attr_accessor :ending_balance
|
52
75
|
|
53
|
-
sig
|
76
|
+
sig do
|
77
|
+
returns(
|
78
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
79
|
+
)
|
80
|
+
end
|
54
81
|
attr_accessor :entry_status
|
55
82
|
|
56
83
|
sig { returns(Symbol) }
|
@@ -74,18 +101,20 @@ module Orb
|
|
74
101
|
id: String,
|
75
102
|
amount: Float,
|
76
103
|
created_at: Time,
|
77
|
-
credit_block:
|
104
|
+
credit_block:
|
105
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash,
|
78
106
|
currency: String,
|
79
|
-
customer:
|
107
|
+
customer:
|
108
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash,
|
80
109
|
description: T.nilable(String),
|
81
110
|
ending_balance: Float,
|
82
|
-
entry_status:
|
111
|
+
entry_status:
|
112
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol,
|
83
113
|
ledger_sequence_number: Integer,
|
84
114
|
metadata: T::Hash[Symbol, String],
|
85
115
|
starting_balance: Float,
|
86
116
|
entry_type: Symbol
|
87
|
-
)
|
88
|
-
.returns(T.attached_class)
|
117
|
+
).returns(T.attached_class)
|
89
118
|
end
|
90
119
|
def self.new(
|
91
120
|
id:,
|
@@ -105,30 +134,38 @@ module Orb
|
|
105
134
|
metadata:,
|
106
135
|
starting_balance:,
|
107
136
|
entry_type: :increment
|
108
|
-
)
|
137
|
+
)
|
138
|
+
end
|
139
|
+
|
109
140
|
sig do
|
110
|
-
override
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
141
|
+
override.returns(
|
142
|
+
{
|
143
|
+
id: String,
|
144
|
+
amount: Float,
|
145
|
+
created_at: Time,
|
146
|
+
credit_block:
|
147
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
|
148
|
+
currency: String,
|
149
|
+
customer:
|
150
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
|
151
|
+
description: T.nilable(String),
|
152
|
+
ending_balance: Float,
|
153
|
+
entry_status:
|
154
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol,
|
155
|
+
entry_type: Symbol,
|
156
|
+
ledger_sequence_number: Integer,
|
157
|
+
metadata: T::Hash[Symbol, String],
|
158
|
+
starting_balance: Float
|
159
|
+
}
|
160
|
+
)
|
161
|
+
end
|
162
|
+
def to_hash
|
128
163
|
end
|
129
|
-
def to_hash; end
|
130
164
|
|
131
165
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
166
|
+
OrHash =
|
167
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
168
|
+
|
132
169
|
sig { returns(String) }
|
133
170
|
attr_accessor :id
|
134
171
|
|
@@ -139,10 +176,14 @@ module Orb
|
|
139
176
|
attr_accessor :per_unit_cost_basis
|
140
177
|
|
141
178
|
sig do
|
142
|
-
params(
|
143
|
-
|
179
|
+
params(
|
180
|
+
id: String,
|
181
|
+
expiry_date: T.nilable(Time),
|
182
|
+
per_unit_cost_basis: T.nilable(String)
|
183
|
+
).returns(T.attached_class)
|
184
|
+
end
|
185
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
144
186
|
end
|
145
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
146
187
|
|
147
188
|
sig do
|
148
189
|
override.returns(
|
@@ -153,28 +194,48 @@ module Orb
|
|
153
194
|
}
|
154
195
|
)
|
155
196
|
end
|
156
|
-
def to_hash
|
197
|
+
def to_hash
|
198
|
+
end
|
157
199
|
end
|
158
200
|
|
159
201
|
class Customer < Orb::Internal::Type::BaseModel
|
202
|
+
OrHash =
|
203
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
204
|
+
|
160
205
|
sig { returns(String) }
|
161
206
|
attr_accessor :id
|
162
207
|
|
163
208
|
sig { returns(T.nilable(String)) }
|
164
209
|
attr_accessor :external_customer_id
|
165
210
|
|
166
|
-
sig
|
167
|
-
|
211
|
+
sig do
|
212
|
+
params(
|
213
|
+
id: String,
|
214
|
+
external_customer_id: T.nilable(String)
|
215
|
+
).returns(T.attached_class)
|
216
|
+
end
|
217
|
+
def self.new(id:, external_customer_id:)
|
218
|
+
end
|
168
219
|
|
169
|
-
sig
|
170
|
-
|
220
|
+
sig do
|
221
|
+
override.returns(
|
222
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
223
|
+
)
|
224
|
+
end
|
225
|
+
def to_hash
|
226
|
+
end
|
171
227
|
end
|
172
228
|
|
173
229
|
module EntryStatus
|
174
230
|
extend Orb::Internal::Type::Enum
|
175
231
|
|
176
232
|
TaggedSymbol =
|
177
|
-
T.type_alias
|
233
|
+
T.type_alias do
|
234
|
+
T.all(
|
235
|
+
Symbol,
|
236
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus
|
237
|
+
)
|
238
|
+
end
|
178
239
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
179
240
|
|
180
241
|
COMMITTED =
|
@@ -183,19 +244,26 @@ module Orb
|
|
183
244
|
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
184
245
|
)
|
185
246
|
PENDING =
|
186
|
-
T.let(
|
247
|
+
T.let(
|
248
|
+
:pending,
|
249
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
250
|
+
)
|
187
251
|
|
188
252
|
sig do
|
189
|
-
override
|
190
|
-
|
191
|
-
|
192
|
-
|
253
|
+
override.returns(
|
254
|
+
T::Array[
|
255
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
256
|
+
]
|
257
|
+
)
|
258
|
+
end
|
259
|
+
def self.values
|
193
260
|
end
|
194
|
-
def self.values; end
|
195
261
|
end
|
196
262
|
end
|
197
263
|
|
198
264
|
class Decrement < Orb::Internal::Type::BaseModel
|
265
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
266
|
+
|
199
267
|
sig { returns(String) }
|
200
268
|
attr_accessor :id
|
201
269
|
|
@@ -205,28 +273,36 @@ module Orb
|
|
205
273
|
sig { returns(Time) }
|
206
274
|
attr_accessor :created_at
|
207
275
|
|
208
|
-
sig
|
276
|
+
sig do
|
277
|
+
returns(
|
278
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock
|
279
|
+
)
|
280
|
+
end
|
209
281
|
attr_reader :credit_block
|
210
282
|
|
211
283
|
sig do
|
212
284
|
params(
|
213
|
-
credit_block:
|
214
|
-
|
215
|
-
|
285
|
+
credit_block:
|
286
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash
|
287
|
+
).void
|
216
288
|
end
|
217
289
|
attr_writer :credit_block
|
218
290
|
|
219
291
|
sig { returns(String) }
|
220
292
|
attr_accessor :currency
|
221
293
|
|
222
|
-
sig
|
294
|
+
sig do
|
295
|
+
returns(
|
296
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer
|
297
|
+
)
|
298
|
+
end
|
223
299
|
attr_reader :customer
|
224
300
|
|
225
301
|
sig do
|
226
302
|
params(
|
227
|
-
customer:
|
228
|
-
|
229
|
-
|
303
|
+
customer:
|
304
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash
|
305
|
+
).void
|
230
306
|
end
|
231
307
|
attr_writer :customer
|
232
308
|
|
@@ -236,7 +312,11 @@ module Orb
|
|
236
312
|
sig { returns(Float) }
|
237
313
|
attr_accessor :ending_balance
|
238
314
|
|
239
|
-
sig
|
315
|
+
sig do
|
316
|
+
returns(
|
317
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
318
|
+
)
|
319
|
+
end
|
240
320
|
attr_accessor :entry_status
|
241
321
|
|
242
322
|
sig { returns(Symbol) }
|
@@ -269,12 +349,15 @@ module Orb
|
|
269
349
|
id: String,
|
270
350
|
amount: Float,
|
271
351
|
created_at: Time,
|
272
|
-
credit_block:
|
352
|
+
credit_block:
|
353
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash,
|
273
354
|
currency: String,
|
274
|
-
customer:
|
355
|
+
customer:
|
356
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash,
|
275
357
|
description: T.nilable(String),
|
276
358
|
ending_balance: Float,
|
277
|
-
entry_status:
|
359
|
+
entry_status:
|
360
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol,
|
278
361
|
ledger_sequence_number: Integer,
|
279
362
|
metadata: T::Hash[Symbol, String],
|
280
363
|
starting_balance: Float,
|
@@ -282,8 +365,7 @@ module Orb
|
|
282
365
|
invoice_id: T.nilable(String),
|
283
366
|
price_id: T.nilable(String),
|
284
367
|
entry_type: Symbol
|
285
|
-
)
|
286
|
-
.returns(T.attached_class)
|
368
|
+
).returns(T.attached_class)
|
287
369
|
end
|
288
370
|
def self.new(
|
289
371
|
id:,
|
@@ -306,33 +388,41 @@ module Orb
|
|
306
388
|
invoice_id: nil,
|
307
389
|
price_id: nil,
|
308
390
|
entry_type: :decrement
|
309
|
-
)
|
391
|
+
)
|
392
|
+
end
|
393
|
+
|
310
394
|
sig do
|
311
|
-
override
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
395
|
+
override.returns(
|
396
|
+
{
|
397
|
+
id: String,
|
398
|
+
amount: Float,
|
399
|
+
created_at: Time,
|
400
|
+
credit_block:
|
401
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
|
402
|
+
currency: String,
|
403
|
+
customer:
|
404
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
|
405
|
+
description: T.nilable(String),
|
406
|
+
ending_balance: Float,
|
407
|
+
entry_status:
|
408
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol,
|
409
|
+
entry_type: Symbol,
|
410
|
+
ledger_sequence_number: Integer,
|
411
|
+
metadata: T::Hash[Symbol, String],
|
412
|
+
starting_balance: Float,
|
413
|
+
event_id: T.nilable(String),
|
414
|
+
invoice_id: T.nilable(String),
|
415
|
+
price_id: T.nilable(String)
|
416
|
+
}
|
417
|
+
)
|
418
|
+
end
|
419
|
+
def to_hash
|
332
420
|
end
|
333
|
-
def to_hash; end
|
334
421
|
|
335
422
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
423
|
+
OrHash =
|
424
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
425
|
+
|
336
426
|
sig { returns(String) }
|
337
427
|
attr_accessor :id
|
338
428
|
|
@@ -343,10 +433,14 @@ module Orb
|
|
343
433
|
attr_accessor :per_unit_cost_basis
|
344
434
|
|
345
435
|
sig do
|
346
|
-
params(
|
347
|
-
|
436
|
+
params(
|
437
|
+
id: String,
|
438
|
+
expiry_date: T.nilable(Time),
|
439
|
+
per_unit_cost_basis: T.nilable(String)
|
440
|
+
).returns(T.attached_class)
|
441
|
+
end
|
442
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
348
443
|
end
|
349
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
350
444
|
|
351
445
|
sig do
|
352
446
|
override.returns(
|
@@ -357,28 +451,48 @@ module Orb
|
|
357
451
|
}
|
358
452
|
)
|
359
453
|
end
|
360
|
-
def to_hash
|
454
|
+
def to_hash
|
455
|
+
end
|
361
456
|
end
|
362
457
|
|
363
458
|
class Customer < Orb::Internal::Type::BaseModel
|
459
|
+
OrHash =
|
460
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
461
|
+
|
364
462
|
sig { returns(String) }
|
365
463
|
attr_accessor :id
|
366
464
|
|
367
465
|
sig { returns(T.nilable(String)) }
|
368
466
|
attr_accessor :external_customer_id
|
369
467
|
|
370
|
-
sig
|
371
|
-
|
468
|
+
sig do
|
469
|
+
params(
|
470
|
+
id: String,
|
471
|
+
external_customer_id: T.nilable(String)
|
472
|
+
).returns(T.attached_class)
|
473
|
+
end
|
474
|
+
def self.new(id:, external_customer_id:)
|
475
|
+
end
|
372
476
|
|
373
|
-
sig
|
374
|
-
|
477
|
+
sig do
|
478
|
+
override.returns(
|
479
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
480
|
+
)
|
481
|
+
end
|
482
|
+
def to_hash
|
483
|
+
end
|
375
484
|
end
|
376
485
|
|
377
486
|
module EntryStatus
|
378
487
|
extend Orb::Internal::Type::Enum
|
379
488
|
|
380
489
|
TaggedSymbol =
|
381
|
-
T.type_alias
|
490
|
+
T.type_alias do
|
491
|
+
T.all(
|
492
|
+
Symbol,
|
493
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus
|
494
|
+
)
|
495
|
+
end
|
382
496
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
383
497
|
|
384
498
|
COMMITTED =
|
@@ -387,19 +501,26 @@ module Orb
|
|
387
501
|
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
388
502
|
)
|
389
503
|
PENDING =
|
390
|
-
T.let(
|
504
|
+
T.let(
|
505
|
+
:pending,
|
506
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
507
|
+
)
|
391
508
|
|
392
509
|
sig do
|
393
|
-
override
|
394
|
-
|
395
|
-
|
396
|
-
|
510
|
+
override.returns(
|
511
|
+
T::Array[
|
512
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
513
|
+
]
|
514
|
+
)
|
515
|
+
end
|
516
|
+
def self.values
|
397
517
|
end
|
398
|
-
def self.values; end
|
399
518
|
end
|
400
519
|
end
|
401
520
|
|
402
521
|
class ExpirationChange < Orb::Internal::Type::BaseModel
|
522
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
523
|
+
|
403
524
|
sig { returns(String) }
|
404
525
|
attr_accessor :id
|
405
526
|
|
@@ -409,34 +530,36 @@ module Orb
|
|
409
530
|
sig { returns(Time) }
|
410
531
|
attr_accessor :created_at
|
411
532
|
|
412
|
-
sig
|
533
|
+
sig do
|
534
|
+
returns(
|
535
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock
|
536
|
+
)
|
537
|
+
end
|
413
538
|
attr_reader :credit_block
|
414
539
|
|
415
540
|
sig do
|
416
541
|
params(
|
417
|
-
credit_block:
|
418
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock
|
419
|
-
|
420
|
-
)
|
421
|
-
)
|
422
|
-
.void
|
542
|
+
credit_block:
|
543
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash
|
544
|
+
).void
|
423
545
|
end
|
424
546
|
attr_writer :credit_block
|
425
547
|
|
426
548
|
sig { returns(String) }
|
427
549
|
attr_accessor :currency
|
428
550
|
|
429
|
-
sig
|
551
|
+
sig do
|
552
|
+
returns(
|
553
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer
|
554
|
+
)
|
555
|
+
end
|
430
556
|
attr_reader :customer
|
431
557
|
|
432
558
|
sig do
|
433
559
|
params(
|
434
|
-
customer:
|
435
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer
|
436
|
-
|
437
|
-
)
|
438
|
-
)
|
439
|
-
.void
|
560
|
+
customer:
|
561
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash
|
562
|
+
).void
|
440
563
|
end
|
441
564
|
attr_writer :customer
|
442
565
|
|
@@ -446,7 +569,11 @@ module Orb
|
|
446
569
|
sig { returns(Float) }
|
447
570
|
attr_accessor :ending_balance
|
448
571
|
|
449
|
-
sig
|
572
|
+
sig do
|
573
|
+
returns(
|
574
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
|
575
|
+
)
|
576
|
+
end
|
450
577
|
attr_accessor :entry_status
|
451
578
|
|
452
579
|
sig { returns(Symbol) }
|
@@ -473,25 +600,21 @@ module Orb
|
|
473
600
|
id: String,
|
474
601
|
amount: Float,
|
475
602
|
created_at: Time,
|
476
|
-
credit_block:
|
477
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
478
|
-
Orb::Internal::AnyHash
|
479
|
-
),
|
603
|
+
credit_block:
|
604
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash,
|
480
605
|
currency: String,
|
481
|
-
customer:
|
482
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
483
|
-
Orb::Internal::AnyHash
|
484
|
-
),
|
606
|
+
customer:
|
607
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash,
|
485
608
|
description: T.nilable(String),
|
486
609
|
ending_balance: Float,
|
487
|
-
entry_status:
|
610
|
+
entry_status:
|
611
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol,
|
488
612
|
ledger_sequence_number: Integer,
|
489
613
|
metadata: T::Hash[Symbol, String],
|
490
614
|
new_block_expiry_date: T.nilable(Time),
|
491
615
|
starting_balance: Float,
|
492
616
|
entry_type: Symbol
|
493
|
-
)
|
494
|
-
.returns(T.attached_class)
|
617
|
+
).returns(T.attached_class)
|
495
618
|
end
|
496
619
|
def self.new(
|
497
620
|
id:,
|
@@ -512,31 +635,39 @@ module Orb
|
|
512
635
|
new_block_expiry_date:,
|
513
636
|
starting_balance:,
|
514
637
|
entry_type: :expiration_change
|
515
|
-
)
|
638
|
+
)
|
639
|
+
end
|
640
|
+
|
516
641
|
sig do
|
517
|
-
override
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
642
|
+
override.returns(
|
643
|
+
{
|
644
|
+
id: String,
|
645
|
+
amount: Float,
|
646
|
+
created_at: Time,
|
647
|
+
credit_block:
|
648
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
649
|
+
currency: String,
|
650
|
+
customer:
|
651
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
652
|
+
description: T.nilable(String),
|
653
|
+
ending_balance: Float,
|
654
|
+
entry_status:
|
655
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol,
|
656
|
+
entry_type: Symbol,
|
657
|
+
ledger_sequence_number: Integer,
|
658
|
+
metadata: T::Hash[Symbol, String],
|
659
|
+
new_block_expiry_date: T.nilable(Time),
|
660
|
+
starting_balance: Float
|
661
|
+
}
|
662
|
+
)
|
663
|
+
end
|
664
|
+
def to_hash
|
536
665
|
end
|
537
|
-
def to_hash; end
|
538
666
|
|
539
667
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
668
|
+
OrHash =
|
669
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
670
|
+
|
540
671
|
sig { returns(String) }
|
541
672
|
attr_accessor :id
|
542
673
|
|
@@ -547,10 +678,14 @@ module Orb
|
|
547
678
|
attr_accessor :per_unit_cost_basis
|
548
679
|
|
549
680
|
sig do
|
550
|
-
params(
|
551
|
-
|
681
|
+
params(
|
682
|
+
id: String,
|
683
|
+
expiry_date: T.nilable(Time),
|
684
|
+
per_unit_cost_basis: T.nilable(String)
|
685
|
+
).returns(T.attached_class)
|
686
|
+
end
|
687
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
552
688
|
end
|
553
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
554
689
|
|
555
690
|
sig do
|
556
691
|
override.returns(
|
@@ -561,28 +696,48 @@ module Orb
|
|
561
696
|
}
|
562
697
|
)
|
563
698
|
end
|
564
|
-
def to_hash
|
699
|
+
def to_hash
|
700
|
+
end
|
565
701
|
end
|
566
702
|
|
567
703
|
class Customer < Orb::Internal::Type::BaseModel
|
704
|
+
OrHash =
|
705
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
706
|
+
|
568
707
|
sig { returns(String) }
|
569
708
|
attr_accessor :id
|
570
709
|
|
571
710
|
sig { returns(T.nilable(String)) }
|
572
711
|
attr_accessor :external_customer_id
|
573
712
|
|
574
|
-
sig
|
575
|
-
|
713
|
+
sig do
|
714
|
+
params(
|
715
|
+
id: String,
|
716
|
+
external_customer_id: T.nilable(String)
|
717
|
+
).returns(T.attached_class)
|
718
|
+
end
|
719
|
+
def self.new(id:, external_customer_id:)
|
720
|
+
end
|
576
721
|
|
577
|
-
sig
|
578
|
-
|
722
|
+
sig do
|
723
|
+
override.returns(
|
724
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
725
|
+
)
|
726
|
+
end
|
727
|
+
def to_hash
|
728
|
+
end
|
579
729
|
end
|
580
730
|
|
581
731
|
module EntryStatus
|
582
732
|
extend Orb::Internal::Type::Enum
|
583
733
|
|
584
734
|
TaggedSymbol =
|
585
|
-
T.type_alias
|
735
|
+
T.type_alias do
|
736
|
+
T.all(
|
737
|
+
Symbol,
|
738
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus
|
739
|
+
)
|
740
|
+
end
|
586
741
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
587
742
|
|
588
743
|
COMMITTED =
|
@@ -597,16 +752,20 @@ module Orb
|
|
597
752
|
)
|
598
753
|
|
599
754
|
sig do
|
600
|
-
override
|
601
|
-
|
602
|
-
|
603
|
-
|
755
|
+
override.returns(
|
756
|
+
T::Array[
|
757
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
|
758
|
+
]
|
759
|
+
)
|
760
|
+
end
|
761
|
+
def self.values
|
604
762
|
end
|
605
|
-
def self.values; end
|
606
763
|
end
|
607
764
|
end
|
608
765
|
|
609
766
|
class CreditBlockExpiry < Orb::Internal::Type::BaseModel
|
767
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
768
|
+
|
610
769
|
sig { returns(String) }
|
611
770
|
attr_accessor :id
|
612
771
|
|
@@ -616,34 +775,36 @@ module Orb
|
|
616
775
|
sig { returns(Time) }
|
617
776
|
attr_accessor :created_at
|
618
777
|
|
619
|
-
sig
|
778
|
+
sig do
|
779
|
+
returns(
|
780
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock
|
781
|
+
)
|
782
|
+
end
|
620
783
|
attr_reader :credit_block
|
621
784
|
|
622
785
|
sig do
|
623
786
|
params(
|
624
|
-
credit_block:
|
625
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock
|
626
|
-
|
627
|
-
)
|
628
|
-
)
|
629
|
-
.void
|
787
|
+
credit_block:
|
788
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash
|
789
|
+
).void
|
630
790
|
end
|
631
791
|
attr_writer :credit_block
|
632
792
|
|
633
793
|
sig { returns(String) }
|
634
794
|
attr_accessor :currency
|
635
795
|
|
636
|
-
sig
|
796
|
+
sig do
|
797
|
+
returns(
|
798
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer
|
799
|
+
)
|
800
|
+
end
|
637
801
|
attr_reader :customer
|
638
802
|
|
639
803
|
sig do
|
640
804
|
params(
|
641
|
-
customer:
|
642
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer
|
643
|
-
|
644
|
-
)
|
645
|
-
)
|
646
|
-
.void
|
805
|
+
customer:
|
806
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash
|
807
|
+
).void
|
647
808
|
end
|
648
809
|
attr_writer :customer
|
649
810
|
|
@@ -653,7 +814,11 @@ module Orb
|
|
653
814
|
sig { returns(Float) }
|
654
815
|
attr_accessor :ending_balance
|
655
816
|
|
656
|
-
sig
|
817
|
+
sig do
|
818
|
+
returns(
|
819
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
|
820
|
+
)
|
821
|
+
end
|
657
822
|
attr_accessor :entry_status
|
658
823
|
|
659
824
|
sig { returns(Symbol) }
|
@@ -677,24 +842,20 @@ module Orb
|
|
677
842
|
id: String,
|
678
843
|
amount: Float,
|
679
844
|
created_at: Time,
|
680
|
-
credit_block:
|
681
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
682
|
-
Orb::Internal::AnyHash
|
683
|
-
),
|
845
|
+
credit_block:
|
846
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash,
|
684
847
|
currency: String,
|
685
|
-
customer:
|
686
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
687
|
-
Orb::Internal::AnyHash
|
688
|
-
),
|
848
|
+
customer:
|
849
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash,
|
689
850
|
description: T.nilable(String),
|
690
851
|
ending_balance: Float,
|
691
|
-
entry_status:
|
852
|
+
entry_status:
|
853
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
|
692
854
|
ledger_sequence_number: Integer,
|
693
855
|
metadata: T::Hash[Symbol, String],
|
694
856
|
starting_balance: Float,
|
695
857
|
entry_type: Symbol
|
696
|
-
)
|
697
|
-
.returns(T.attached_class)
|
858
|
+
).returns(T.attached_class)
|
698
859
|
end
|
699
860
|
def self.new(
|
700
861
|
id:,
|
@@ -714,30 +875,38 @@ module Orb
|
|
714
875
|
metadata:,
|
715
876
|
starting_balance:,
|
716
877
|
entry_type: :credit_block_expiry
|
717
|
-
)
|
878
|
+
)
|
879
|
+
end
|
880
|
+
|
718
881
|
sig do
|
719
|
-
override
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
882
|
+
override.returns(
|
883
|
+
{
|
884
|
+
id: String,
|
885
|
+
amount: Float,
|
886
|
+
created_at: Time,
|
887
|
+
credit_block:
|
888
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
889
|
+
currency: String,
|
890
|
+
customer:
|
891
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
892
|
+
description: T.nilable(String),
|
893
|
+
ending_balance: Float,
|
894
|
+
entry_status:
|
895
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
|
896
|
+
entry_type: Symbol,
|
897
|
+
ledger_sequence_number: Integer,
|
898
|
+
metadata: T::Hash[Symbol, String],
|
899
|
+
starting_balance: Float
|
900
|
+
}
|
901
|
+
)
|
902
|
+
end
|
903
|
+
def to_hash
|
737
904
|
end
|
738
|
-
def to_hash; end
|
739
905
|
|
740
906
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
907
|
+
OrHash =
|
908
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
909
|
+
|
741
910
|
sig { returns(String) }
|
742
911
|
attr_accessor :id
|
743
912
|
|
@@ -748,10 +917,14 @@ module Orb
|
|
748
917
|
attr_accessor :per_unit_cost_basis
|
749
918
|
|
750
919
|
sig do
|
751
|
-
params(
|
752
|
-
|
920
|
+
params(
|
921
|
+
id: String,
|
922
|
+
expiry_date: T.nilable(Time),
|
923
|
+
per_unit_cost_basis: T.nilable(String)
|
924
|
+
).returns(T.attached_class)
|
925
|
+
end
|
926
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
753
927
|
end
|
754
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
755
928
|
|
756
929
|
sig do
|
757
930
|
override.returns(
|
@@ -762,28 +935,48 @@ module Orb
|
|
762
935
|
}
|
763
936
|
)
|
764
937
|
end
|
765
|
-
def to_hash
|
938
|
+
def to_hash
|
939
|
+
end
|
766
940
|
end
|
767
941
|
|
768
942
|
class Customer < Orb::Internal::Type::BaseModel
|
943
|
+
OrHash =
|
944
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
945
|
+
|
769
946
|
sig { returns(String) }
|
770
947
|
attr_accessor :id
|
771
948
|
|
772
949
|
sig { returns(T.nilable(String)) }
|
773
950
|
attr_accessor :external_customer_id
|
774
951
|
|
775
|
-
sig
|
776
|
-
|
952
|
+
sig do
|
953
|
+
params(
|
954
|
+
id: String,
|
955
|
+
external_customer_id: T.nilable(String)
|
956
|
+
).returns(T.attached_class)
|
957
|
+
end
|
958
|
+
def self.new(id:, external_customer_id:)
|
959
|
+
end
|
777
960
|
|
778
|
-
sig
|
779
|
-
|
961
|
+
sig do
|
962
|
+
override.returns(
|
963
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
964
|
+
)
|
965
|
+
end
|
966
|
+
def to_hash
|
967
|
+
end
|
780
968
|
end
|
781
969
|
|
782
970
|
module EntryStatus
|
783
971
|
extend Orb::Internal::Type::Enum
|
784
972
|
|
785
973
|
TaggedSymbol =
|
786
|
-
T.type_alias
|
974
|
+
T.type_alias do
|
975
|
+
T.all(
|
976
|
+
Symbol,
|
977
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus
|
978
|
+
)
|
979
|
+
end
|
787
980
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
788
981
|
|
789
982
|
COMMITTED =
|
@@ -798,16 +991,20 @@ module Orb
|
|
798
991
|
)
|
799
992
|
|
800
993
|
sig do
|
801
|
-
override
|
802
|
-
|
803
|
-
|
804
|
-
|
994
|
+
override.returns(
|
995
|
+
T::Array[
|
996
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
|
997
|
+
]
|
998
|
+
)
|
999
|
+
end
|
1000
|
+
def self.values
|
805
1001
|
end
|
806
|
-
def self.values; end
|
807
1002
|
end
|
808
1003
|
end
|
809
1004
|
|
810
1005
|
class Void < Orb::Internal::Type::BaseModel
|
1006
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1007
|
+
|
811
1008
|
sig { returns(String) }
|
812
1009
|
attr_accessor :id
|
813
1010
|
|
@@ -817,28 +1014,36 @@ module Orb
|
|
817
1014
|
sig { returns(Time) }
|
818
1015
|
attr_accessor :created_at
|
819
1016
|
|
820
|
-
sig
|
1017
|
+
sig do
|
1018
|
+
returns(
|
1019
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock
|
1020
|
+
)
|
1021
|
+
end
|
821
1022
|
attr_reader :credit_block
|
822
1023
|
|
823
1024
|
sig do
|
824
1025
|
params(
|
825
|
-
credit_block:
|
826
|
-
|
827
|
-
|
1026
|
+
credit_block:
|
1027
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash
|
1028
|
+
).void
|
828
1029
|
end
|
829
1030
|
attr_writer :credit_block
|
830
1031
|
|
831
1032
|
sig { returns(String) }
|
832
1033
|
attr_accessor :currency
|
833
1034
|
|
834
|
-
sig
|
1035
|
+
sig do
|
1036
|
+
returns(
|
1037
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer
|
1038
|
+
)
|
1039
|
+
end
|
835
1040
|
attr_reader :customer
|
836
1041
|
|
837
1042
|
sig do
|
838
1043
|
params(
|
839
|
-
customer:
|
840
|
-
|
841
|
-
|
1044
|
+
customer:
|
1045
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash
|
1046
|
+
).void
|
842
1047
|
end
|
843
1048
|
attr_writer :customer
|
844
1049
|
|
@@ -848,7 +1053,11 @@ module Orb
|
|
848
1053
|
sig { returns(Float) }
|
849
1054
|
attr_accessor :ending_balance
|
850
1055
|
|
851
|
-
sig
|
1056
|
+
sig do
|
1057
|
+
returns(
|
1058
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1059
|
+
)
|
1060
|
+
end
|
852
1061
|
attr_accessor :entry_status
|
853
1062
|
|
854
1063
|
sig { returns(Symbol) }
|
@@ -878,20 +1087,22 @@ module Orb
|
|
878
1087
|
id: String,
|
879
1088
|
amount: Float,
|
880
1089
|
created_at: Time,
|
881
|
-
credit_block:
|
1090
|
+
credit_block:
|
1091
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash,
|
882
1092
|
currency: String,
|
883
|
-
customer:
|
1093
|
+
customer:
|
1094
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash,
|
884
1095
|
description: T.nilable(String),
|
885
1096
|
ending_balance: Float,
|
886
|
-
entry_status:
|
1097
|
+
entry_status:
|
1098
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol,
|
887
1099
|
ledger_sequence_number: Integer,
|
888
1100
|
metadata: T::Hash[Symbol, String],
|
889
1101
|
starting_balance: Float,
|
890
1102
|
void_amount: Float,
|
891
1103
|
void_reason: T.nilable(String),
|
892
1104
|
entry_type: Symbol
|
893
|
-
)
|
894
|
-
.returns(T.attached_class)
|
1105
|
+
).returns(T.attached_class)
|
895
1106
|
end
|
896
1107
|
def self.new(
|
897
1108
|
id:,
|
@@ -913,32 +1124,40 @@ module Orb
|
|
913
1124
|
void_amount:,
|
914
1125
|
void_reason:,
|
915
1126
|
entry_type: :void
|
916
|
-
)
|
1127
|
+
)
|
1128
|
+
end
|
1129
|
+
|
917
1130
|
sig do
|
918
|
-
override
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
1131
|
+
override.returns(
|
1132
|
+
{
|
1133
|
+
id: String,
|
1134
|
+
amount: Float,
|
1135
|
+
created_at: Time,
|
1136
|
+
credit_block:
|
1137
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
|
1138
|
+
currency: String,
|
1139
|
+
customer:
|
1140
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
|
1141
|
+
description: T.nilable(String),
|
1142
|
+
ending_balance: Float,
|
1143
|
+
entry_status:
|
1144
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol,
|
1145
|
+
entry_type: Symbol,
|
1146
|
+
ledger_sequence_number: Integer,
|
1147
|
+
metadata: T::Hash[Symbol, String],
|
1148
|
+
starting_balance: Float,
|
1149
|
+
void_amount: Float,
|
1150
|
+
void_reason: T.nilable(String)
|
1151
|
+
}
|
1152
|
+
)
|
1153
|
+
end
|
1154
|
+
def to_hash
|
938
1155
|
end
|
939
|
-
def to_hash; end
|
940
1156
|
|
941
1157
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1158
|
+
OrHash =
|
1159
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1160
|
+
|
942
1161
|
sig { returns(String) }
|
943
1162
|
attr_accessor :id
|
944
1163
|
|
@@ -949,10 +1168,14 @@ module Orb
|
|
949
1168
|
attr_accessor :per_unit_cost_basis
|
950
1169
|
|
951
1170
|
sig do
|
952
|
-
params(
|
953
|
-
|
1171
|
+
params(
|
1172
|
+
id: String,
|
1173
|
+
expiry_date: T.nilable(Time),
|
1174
|
+
per_unit_cost_basis: T.nilable(String)
|
1175
|
+
).returns(T.attached_class)
|
1176
|
+
end
|
1177
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
954
1178
|
end
|
955
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
956
1179
|
|
957
1180
|
sig do
|
958
1181
|
override.returns(
|
@@ -963,44 +1186,76 @@ module Orb
|
|
963
1186
|
}
|
964
1187
|
)
|
965
1188
|
end
|
966
|
-
def to_hash
|
1189
|
+
def to_hash
|
1190
|
+
end
|
967
1191
|
end
|
968
1192
|
|
969
1193
|
class Customer < Orb::Internal::Type::BaseModel
|
1194
|
+
OrHash =
|
1195
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1196
|
+
|
970
1197
|
sig { returns(String) }
|
971
1198
|
attr_accessor :id
|
972
1199
|
|
973
1200
|
sig { returns(T.nilable(String)) }
|
974
1201
|
attr_accessor :external_customer_id
|
975
1202
|
|
976
|
-
sig
|
977
|
-
|
1203
|
+
sig do
|
1204
|
+
params(
|
1205
|
+
id: String,
|
1206
|
+
external_customer_id: T.nilable(String)
|
1207
|
+
).returns(T.attached_class)
|
1208
|
+
end
|
1209
|
+
def self.new(id:, external_customer_id:)
|
1210
|
+
end
|
978
1211
|
|
979
|
-
sig
|
980
|
-
|
1212
|
+
sig do
|
1213
|
+
override.returns(
|
1214
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1215
|
+
)
|
1216
|
+
end
|
1217
|
+
def to_hash
|
1218
|
+
end
|
981
1219
|
end
|
982
1220
|
|
983
1221
|
module EntryStatus
|
984
1222
|
extend Orb::Internal::Type::Enum
|
985
1223
|
|
986
1224
|
TaggedSymbol =
|
987
|
-
T.type_alias
|
1225
|
+
T.type_alias do
|
1226
|
+
T.all(
|
1227
|
+
Symbol,
|
1228
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus
|
1229
|
+
)
|
1230
|
+
end
|
988
1231
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
989
1232
|
|
990
1233
|
COMMITTED =
|
991
|
-
T.let(
|
1234
|
+
T.let(
|
1235
|
+
:committed,
|
1236
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1237
|
+
)
|
992
1238
|
PENDING =
|
993
|
-
T.let(
|
1239
|
+
T.let(
|
1240
|
+
:pending,
|
1241
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1242
|
+
)
|
994
1243
|
|
995
1244
|
sig do
|
996
|
-
override
|
997
|
-
|
1245
|
+
override.returns(
|
1246
|
+
T::Array[
|
1247
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1248
|
+
]
|
1249
|
+
)
|
1250
|
+
end
|
1251
|
+
def self.values
|
998
1252
|
end
|
999
|
-
def self.values; end
|
1000
1253
|
end
|
1001
1254
|
end
|
1002
1255
|
|
1003
1256
|
class VoidInitiated < Orb::Internal::Type::BaseModel
|
1257
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1258
|
+
|
1004
1259
|
sig { returns(String) }
|
1005
1260
|
attr_accessor :id
|
1006
1261
|
|
@@ -1010,34 +1265,36 @@ module Orb
|
|
1010
1265
|
sig { returns(Time) }
|
1011
1266
|
attr_accessor :created_at
|
1012
1267
|
|
1013
|
-
sig
|
1268
|
+
sig do
|
1269
|
+
returns(
|
1270
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock
|
1271
|
+
)
|
1272
|
+
end
|
1014
1273
|
attr_reader :credit_block
|
1015
1274
|
|
1016
1275
|
sig do
|
1017
1276
|
params(
|
1018
|
-
credit_block:
|
1019
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock
|
1020
|
-
|
1021
|
-
)
|
1022
|
-
)
|
1023
|
-
.void
|
1277
|
+
credit_block:
|
1278
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash
|
1279
|
+
).void
|
1024
1280
|
end
|
1025
1281
|
attr_writer :credit_block
|
1026
1282
|
|
1027
1283
|
sig { returns(String) }
|
1028
1284
|
attr_accessor :currency
|
1029
1285
|
|
1030
|
-
sig
|
1286
|
+
sig do
|
1287
|
+
returns(
|
1288
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer
|
1289
|
+
)
|
1290
|
+
end
|
1031
1291
|
attr_reader :customer
|
1032
1292
|
|
1033
1293
|
sig do
|
1034
1294
|
params(
|
1035
|
-
customer:
|
1036
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer
|
1037
|
-
|
1038
|
-
)
|
1039
|
-
)
|
1040
|
-
.void
|
1295
|
+
customer:
|
1296
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash
|
1297
|
+
).void
|
1041
1298
|
end
|
1042
1299
|
attr_writer :customer
|
1043
1300
|
|
@@ -1047,7 +1304,11 @@ module Orb
|
|
1047
1304
|
sig { returns(Float) }
|
1048
1305
|
attr_accessor :ending_balance
|
1049
1306
|
|
1050
|
-
sig
|
1307
|
+
sig do
|
1308
|
+
returns(
|
1309
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
|
1310
|
+
)
|
1311
|
+
end
|
1051
1312
|
attr_accessor :entry_status
|
1052
1313
|
|
1053
1314
|
sig { returns(Symbol) }
|
@@ -1080,18 +1341,15 @@ module Orb
|
|
1080
1341
|
id: String,
|
1081
1342
|
amount: Float,
|
1082
1343
|
created_at: Time,
|
1083
|
-
credit_block:
|
1084
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
1085
|
-
Orb::Internal::AnyHash
|
1086
|
-
),
|
1344
|
+
credit_block:
|
1345
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash,
|
1087
1346
|
currency: String,
|
1088
|
-
customer:
|
1089
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
1090
|
-
Orb::Internal::AnyHash
|
1091
|
-
),
|
1347
|
+
customer:
|
1348
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash,
|
1092
1349
|
description: T.nilable(String),
|
1093
1350
|
ending_balance: Float,
|
1094
|
-
entry_status:
|
1351
|
+
entry_status:
|
1352
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol,
|
1095
1353
|
ledger_sequence_number: Integer,
|
1096
1354
|
metadata: T::Hash[Symbol, String],
|
1097
1355
|
new_block_expiry_date: Time,
|
@@ -1099,8 +1357,7 @@ module Orb
|
|
1099
1357
|
void_amount: Float,
|
1100
1358
|
void_reason: T.nilable(String),
|
1101
1359
|
entry_type: Symbol
|
1102
|
-
)
|
1103
|
-
.returns(T.attached_class)
|
1360
|
+
).returns(T.attached_class)
|
1104
1361
|
end
|
1105
1362
|
def self.new(
|
1106
1363
|
id:,
|
@@ -1123,33 +1380,41 @@ module Orb
|
|
1123
1380
|
void_amount:,
|
1124
1381
|
void_reason:,
|
1125
1382
|
entry_type: :void_initiated
|
1126
|
-
)
|
1383
|
+
)
|
1384
|
+
end
|
1385
|
+
|
1127
1386
|
sig do
|
1128
|
-
override
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1387
|
+
override.returns(
|
1388
|
+
{
|
1389
|
+
id: String,
|
1390
|
+
amount: Float,
|
1391
|
+
created_at: Time,
|
1392
|
+
credit_block:
|
1393
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
1394
|
+
currency: String,
|
1395
|
+
customer:
|
1396
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
1397
|
+
description: T.nilable(String),
|
1398
|
+
ending_balance: Float,
|
1399
|
+
entry_status:
|
1400
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol,
|
1401
|
+
entry_type: Symbol,
|
1402
|
+
ledger_sequence_number: Integer,
|
1403
|
+
metadata: T::Hash[Symbol, String],
|
1404
|
+
new_block_expiry_date: Time,
|
1405
|
+
starting_balance: Float,
|
1406
|
+
void_amount: Float,
|
1407
|
+
void_reason: T.nilable(String)
|
1408
|
+
}
|
1409
|
+
)
|
1410
|
+
end
|
1411
|
+
def to_hash
|
1149
1412
|
end
|
1150
|
-
def to_hash; end
|
1151
1413
|
|
1152
1414
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1415
|
+
OrHash =
|
1416
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1417
|
+
|
1153
1418
|
sig { returns(String) }
|
1154
1419
|
attr_accessor :id
|
1155
1420
|
|
@@ -1160,10 +1425,14 @@ module Orb
|
|
1160
1425
|
attr_accessor :per_unit_cost_basis
|
1161
1426
|
|
1162
1427
|
sig do
|
1163
|
-
params(
|
1164
|
-
|
1428
|
+
params(
|
1429
|
+
id: String,
|
1430
|
+
expiry_date: T.nilable(Time),
|
1431
|
+
per_unit_cost_basis: T.nilable(String)
|
1432
|
+
).returns(T.attached_class)
|
1433
|
+
end
|
1434
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
1165
1435
|
end
|
1166
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
1167
1436
|
|
1168
1437
|
sig do
|
1169
1438
|
override.returns(
|
@@ -1174,28 +1443,48 @@ module Orb
|
|
1174
1443
|
}
|
1175
1444
|
)
|
1176
1445
|
end
|
1177
|
-
def to_hash
|
1446
|
+
def to_hash
|
1447
|
+
end
|
1178
1448
|
end
|
1179
1449
|
|
1180
1450
|
class Customer < Orb::Internal::Type::BaseModel
|
1451
|
+
OrHash =
|
1452
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1453
|
+
|
1181
1454
|
sig { returns(String) }
|
1182
1455
|
attr_accessor :id
|
1183
1456
|
|
1184
1457
|
sig { returns(T.nilable(String)) }
|
1185
1458
|
attr_accessor :external_customer_id
|
1186
1459
|
|
1187
|
-
sig
|
1188
|
-
|
1460
|
+
sig do
|
1461
|
+
params(
|
1462
|
+
id: String,
|
1463
|
+
external_customer_id: T.nilable(String)
|
1464
|
+
).returns(T.attached_class)
|
1465
|
+
end
|
1466
|
+
def self.new(id:, external_customer_id:)
|
1467
|
+
end
|
1189
1468
|
|
1190
|
-
sig
|
1191
|
-
|
1469
|
+
sig do
|
1470
|
+
override.returns(
|
1471
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1472
|
+
)
|
1473
|
+
end
|
1474
|
+
def to_hash
|
1475
|
+
end
|
1192
1476
|
end
|
1193
1477
|
|
1194
1478
|
module EntryStatus
|
1195
1479
|
extend Orb::Internal::Type::Enum
|
1196
1480
|
|
1197
1481
|
TaggedSymbol =
|
1198
|
-
T.type_alias
|
1482
|
+
T.type_alias do
|
1483
|
+
T.all(
|
1484
|
+
Symbol,
|
1485
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus
|
1486
|
+
)
|
1487
|
+
end
|
1199
1488
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1200
1489
|
|
1201
1490
|
COMMITTED =
|
@@ -1210,16 +1499,20 @@ module Orb
|
|
1210
1499
|
)
|
1211
1500
|
|
1212
1501
|
sig do
|
1213
|
-
override
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1502
|
+
override.returns(
|
1503
|
+
T::Array[
|
1504
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
|
1505
|
+
]
|
1506
|
+
)
|
1507
|
+
end
|
1508
|
+
def self.values
|
1217
1509
|
end
|
1218
|
-
def self.values; end
|
1219
1510
|
end
|
1220
1511
|
end
|
1221
1512
|
|
1222
1513
|
class Amendment < Orb::Internal::Type::BaseModel
|
1514
|
+
OrHash = T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1515
|
+
|
1223
1516
|
sig { returns(String) }
|
1224
1517
|
attr_accessor :id
|
1225
1518
|
|
@@ -1229,28 +1522,36 @@ module Orb
|
|
1229
1522
|
sig { returns(Time) }
|
1230
1523
|
attr_accessor :created_at
|
1231
1524
|
|
1232
|
-
sig
|
1525
|
+
sig do
|
1526
|
+
returns(
|
1527
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock
|
1528
|
+
)
|
1529
|
+
end
|
1233
1530
|
attr_reader :credit_block
|
1234
1531
|
|
1235
1532
|
sig do
|
1236
1533
|
params(
|
1237
|
-
credit_block:
|
1238
|
-
|
1239
|
-
|
1534
|
+
credit_block:
|
1535
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash
|
1536
|
+
).void
|
1240
1537
|
end
|
1241
1538
|
attr_writer :credit_block
|
1242
1539
|
|
1243
1540
|
sig { returns(String) }
|
1244
1541
|
attr_accessor :currency
|
1245
1542
|
|
1246
|
-
sig
|
1543
|
+
sig do
|
1544
|
+
returns(
|
1545
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer
|
1546
|
+
)
|
1547
|
+
end
|
1247
1548
|
attr_reader :customer
|
1248
1549
|
|
1249
1550
|
sig do
|
1250
1551
|
params(
|
1251
|
-
customer:
|
1252
|
-
|
1253
|
-
|
1552
|
+
customer:
|
1553
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash
|
1554
|
+
).void
|
1254
1555
|
end
|
1255
1556
|
attr_writer :customer
|
1256
1557
|
|
@@ -1260,7 +1561,11 @@ module Orb
|
|
1260
1561
|
sig { returns(Float) }
|
1261
1562
|
attr_accessor :ending_balance
|
1262
1563
|
|
1263
|
-
sig
|
1564
|
+
sig do
|
1565
|
+
returns(
|
1566
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1567
|
+
)
|
1568
|
+
end
|
1264
1569
|
attr_accessor :entry_status
|
1265
1570
|
|
1266
1571
|
sig { returns(Symbol) }
|
@@ -1284,18 +1589,20 @@ module Orb
|
|
1284
1589
|
id: String,
|
1285
1590
|
amount: Float,
|
1286
1591
|
created_at: Time,
|
1287
|
-
credit_block:
|
1592
|
+
credit_block:
|
1593
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash,
|
1288
1594
|
currency: String,
|
1289
|
-
customer:
|
1595
|
+
customer:
|
1596
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash,
|
1290
1597
|
description: T.nilable(String),
|
1291
1598
|
ending_balance: Float,
|
1292
|
-
entry_status:
|
1599
|
+
entry_status:
|
1600
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol,
|
1293
1601
|
ledger_sequence_number: Integer,
|
1294
1602
|
metadata: T::Hash[Symbol, String],
|
1295
1603
|
starting_balance: Float,
|
1296
1604
|
entry_type: Symbol
|
1297
|
-
)
|
1298
|
-
.returns(T.attached_class)
|
1605
|
+
).returns(T.attached_class)
|
1299
1606
|
end
|
1300
1607
|
def self.new(
|
1301
1608
|
id:,
|
@@ -1315,30 +1622,38 @@ module Orb
|
|
1315
1622
|
metadata:,
|
1316
1623
|
starting_balance:,
|
1317
1624
|
entry_type: :amendment
|
1318
|
-
)
|
1625
|
+
)
|
1626
|
+
end
|
1627
|
+
|
1319
1628
|
sig do
|
1320
|
-
override
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1629
|
+
override.returns(
|
1630
|
+
{
|
1631
|
+
id: String,
|
1632
|
+
amount: Float,
|
1633
|
+
created_at: Time,
|
1634
|
+
credit_block:
|
1635
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
|
1636
|
+
currency: String,
|
1637
|
+
customer:
|
1638
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
|
1639
|
+
description: T.nilable(String),
|
1640
|
+
ending_balance: Float,
|
1641
|
+
entry_status:
|
1642
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol,
|
1643
|
+
entry_type: Symbol,
|
1644
|
+
ledger_sequence_number: Integer,
|
1645
|
+
metadata: T::Hash[Symbol, String],
|
1646
|
+
starting_balance: Float
|
1647
|
+
}
|
1648
|
+
)
|
1649
|
+
end
|
1650
|
+
def to_hash
|
1338
1651
|
end
|
1339
|
-
def to_hash; end
|
1340
1652
|
|
1341
1653
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1654
|
+
OrHash =
|
1655
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1656
|
+
|
1342
1657
|
sig { returns(String) }
|
1343
1658
|
attr_accessor :id
|
1344
1659
|
|
@@ -1349,10 +1664,14 @@ module Orb
|
|
1349
1664
|
attr_accessor :per_unit_cost_basis
|
1350
1665
|
|
1351
1666
|
sig do
|
1352
|
-
params(
|
1353
|
-
|
1667
|
+
params(
|
1668
|
+
id: String,
|
1669
|
+
expiry_date: T.nilable(Time),
|
1670
|
+
per_unit_cost_basis: T.nilable(String)
|
1671
|
+
).returns(T.attached_class)
|
1672
|
+
end
|
1673
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
1354
1674
|
end
|
1355
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
1356
1675
|
|
1357
1676
|
sig do
|
1358
1677
|
override.returns(
|
@@ -1363,28 +1682,48 @@ module Orb
|
|
1363
1682
|
}
|
1364
1683
|
)
|
1365
1684
|
end
|
1366
|
-
def to_hash
|
1685
|
+
def to_hash
|
1686
|
+
end
|
1367
1687
|
end
|
1368
1688
|
|
1369
1689
|
class Customer < Orb::Internal::Type::BaseModel
|
1690
|
+
OrHash =
|
1691
|
+
T.type_alias { T.any(T.self_type, Orb::Internal::AnyHash) }
|
1692
|
+
|
1370
1693
|
sig { returns(String) }
|
1371
1694
|
attr_accessor :id
|
1372
1695
|
|
1373
1696
|
sig { returns(T.nilable(String)) }
|
1374
1697
|
attr_accessor :external_customer_id
|
1375
1698
|
|
1376
|
-
sig
|
1377
|
-
|
1699
|
+
sig do
|
1700
|
+
params(
|
1701
|
+
id: String,
|
1702
|
+
external_customer_id: T.nilable(String)
|
1703
|
+
).returns(T.attached_class)
|
1704
|
+
end
|
1705
|
+
def self.new(id:, external_customer_id:)
|
1706
|
+
end
|
1378
1707
|
|
1379
|
-
sig
|
1380
|
-
|
1708
|
+
sig do
|
1709
|
+
override.returns(
|
1710
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1711
|
+
)
|
1712
|
+
end
|
1713
|
+
def to_hash
|
1714
|
+
end
|
1381
1715
|
end
|
1382
1716
|
|
1383
1717
|
module EntryStatus
|
1384
1718
|
extend Orb::Internal::Type::Enum
|
1385
1719
|
|
1386
1720
|
TaggedSymbol =
|
1387
|
-
T.type_alias
|
1721
|
+
T.type_alias do
|
1722
|
+
T.all(
|
1723
|
+
Symbol,
|
1724
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus
|
1725
|
+
)
|
1726
|
+
end
|
1388
1727
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1389
1728
|
|
1390
1729
|
COMMITTED =
|
@@ -1393,25 +1732,32 @@ module Orb
|
|
1393
1732
|
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1394
1733
|
)
|
1395
1734
|
PENDING =
|
1396
|
-
T.let(
|
1735
|
+
T.let(
|
1736
|
+
:pending,
|
1737
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1738
|
+
)
|
1397
1739
|
|
1398
1740
|
sig do
|
1399
|
-
override
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1741
|
+
override.returns(
|
1742
|
+
T::Array[
|
1743
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1744
|
+
]
|
1745
|
+
)
|
1746
|
+
end
|
1747
|
+
def self.values
|
1403
1748
|
end
|
1404
|
-
def self.values; end
|
1405
1749
|
end
|
1406
1750
|
end
|
1407
1751
|
|
1408
1752
|
sig do
|
1409
|
-
override
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1753
|
+
override.returns(
|
1754
|
+
T::Array[
|
1755
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Variants
|
1756
|
+
]
|
1757
|
+
)
|
1758
|
+
end
|
1759
|
+
def self.variants
|
1413
1760
|
end
|
1414
|
-
def self.variants; end
|
1415
1761
|
end
|
1416
1762
|
end
|
1417
1763
|
end
|