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
@@ -9,7 +9,28 @@ 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 =
|
27
|
+
T.type_alias do
|
28
|
+
T.any(
|
29
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment,
|
30
|
+
Orb::Internal::AnyHash
|
31
|
+
)
|
32
|
+
end
|
33
|
+
|
13
34
|
sig { returns(String) }
|
14
35
|
attr_accessor :id
|
15
36
|
|
@@ -19,28 +40,36 @@ module Orb
|
|
19
40
|
sig { returns(Time) }
|
20
41
|
attr_accessor :created_at
|
21
42
|
|
22
|
-
sig
|
43
|
+
sig do
|
44
|
+
returns(
|
45
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock
|
46
|
+
)
|
47
|
+
end
|
23
48
|
attr_reader :credit_block
|
24
49
|
|
25
50
|
sig do
|
26
51
|
params(
|
27
|
-
credit_block:
|
28
|
-
|
29
|
-
|
52
|
+
credit_block:
|
53
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash
|
54
|
+
).void
|
30
55
|
end
|
31
56
|
attr_writer :credit_block
|
32
57
|
|
33
58
|
sig { returns(String) }
|
34
59
|
attr_accessor :currency
|
35
60
|
|
36
|
-
sig
|
61
|
+
sig do
|
62
|
+
returns(
|
63
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer
|
64
|
+
)
|
65
|
+
end
|
37
66
|
attr_reader :customer
|
38
67
|
|
39
68
|
sig do
|
40
69
|
params(
|
41
|
-
customer:
|
42
|
-
|
43
|
-
|
70
|
+
customer:
|
71
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash
|
72
|
+
).void
|
44
73
|
end
|
45
74
|
attr_writer :customer
|
46
75
|
|
@@ -50,7 +79,11 @@ module Orb
|
|
50
79
|
sig { returns(Float) }
|
51
80
|
attr_accessor :ending_balance
|
52
81
|
|
53
|
-
sig
|
82
|
+
sig do
|
83
|
+
returns(
|
84
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
85
|
+
)
|
86
|
+
end
|
54
87
|
attr_accessor :entry_status
|
55
88
|
|
56
89
|
sig { returns(Symbol) }
|
@@ -74,18 +107,20 @@ module Orb
|
|
74
107
|
id: String,
|
75
108
|
amount: Float,
|
76
109
|
created_at: Time,
|
77
|
-
credit_block:
|
110
|
+
credit_block:
|
111
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock::OrHash,
|
78
112
|
currency: String,
|
79
|
-
customer:
|
113
|
+
customer:
|
114
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer::OrHash,
|
80
115
|
description: T.nilable(String),
|
81
116
|
ending_balance: Float,
|
82
|
-
entry_status:
|
117
|
+
entry_status:
|
118
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::OrSymbol,
|
83
119
|
ledger_sequence_number: Integer,
|
84
120
|
metadata: T::Hash[Symbol, String],
|
85
121
|
starting_balance: Float,
|
86
122
|
entry_type: Symbol
|
87
|
-
)
|
88
|
-
.returns(T.attached_class)
|
123
|
+
).returns(T.attached_class)
|
89
124
|
end
|
90
125
|
def self.new(
|
91
126
|
id:,
|
@@ -105,30 +140,43 @@ module Orb
|
|
105
140
|
metadata:,
|
106
141
|
starting_balance:,
|
107
142
|
entry_type: :increment
|
108
|
-
)
|
143
|
+
)
|
144
|
+
end
|
145
|
+
|
109
146
|
sig do
|
110
|
-
override
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
147
|
+
override.returns(
|
148
|
+
{
|
149
|
+
id: String,
|
150
|
+
amount: Float,
|
151
|
+
created_at: Time,
|
152
|
+
credit_block:
|
153
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
|
154
|
+
currency: String,
|
155
|
+
customer:
|
156
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
|
157
|
+
description: T.nilable(String),
|
158
|
+
ending_balance: Float,
|
159
|
+
entry_status:
|
160
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol,
|
161
|
+
entry_type: Symbol,
|
162
|
+
ledger_sequence_number: Integer,
|
163
|
+
metadata: T::Hash[Symbol, String],
|
164
|
+
starting_balance: Float
|
165
|
+
}
|
166
|
+
)
|
167
|
+
end
|
168
|
+
def to_hash
|
128
169
|
end
|
129
|
-
def to_hash; end
|
130
170
|
|
131
171
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
172
|
+
OrHash =
|
173
|
+
T.type_alias do
|
174
|
+
T.any(
|
175
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
|
176
|
+
Orb::Internal::AnyHash
|
177
|
+
)
|
178
|
+
end
|
179
|
+
|
132
180
|
sig { returns(String) }
|
133
181
|
attr_accessor :id
|
134
182
|
|
@@ -139,10 +187,14 @@ module Orb
|
|
139
187
|
attr_accessor :per_unit_cost_basis
|
140
188
|
|
141
189
|
sig do
|
142
|
-
params(
|
143
|
-
|
190
|
+
params(
|
191
|
+
id: String,
|
192
|
+
expiry_date: T.nilable(Time),
|
193
|
+
per_unit_cost_basis: T.nilable(String)
|
194
|
+
).returns(T.attached_class)
|
195
|
+
end
|
196
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
144
197
|
end
|
145
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
146
198
|
|
147
199
|
sig do
|
148
200
|
override.returns(
|
@@ -153,28 +205,53 @@ module Orb
|
|
153
205
|
}
|
154
206
|
)
|
155
207
|
end
|
156
|
-
def to_hash
|
208
|
+
def to_hash
|
209
|
+
end
|
157
210
|
end
|
158
211
|
|
159
212
|
class Customer < Orb::Internal::Type::BaseModel
|
213
|
+
OrHash =
|
214
|
+
T.type_alias do
|
215
|
+
T.any(
|
216
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
|
217
|
+
Orb::Internal::AnyHash
|
218
|
+
)
|
219
|
+
end
|
220
|
+
|
160
221
|
sig { returns(String) }
|
161
222
|
attr_accessor :id
|
162
223
|
|
163
224
|
sig { returns(T.nilable(String)) }
|
164
225
|
attr_accessor :external_customer_id
|
165
226
|
|
166
|
-
sig
|
167
|
-
|
227
|
+
sig do
|
228
|
+
params(
|
229
|
+
id: String,
|
230
|
+
external_customer_id: T.nilable(String)
|
231
|
+
).returns(T.attached_class)
|
232
|
+
end
|
233
|
+
def self.new(id:, external_customer_id:)
|
234
|
+
end
|
168
235
|
|
169
|
-
sig
|
170
|
-
|
236
|
+
sig do
|
237
|
+
override.returns(
|
238
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
239
|
+
)
|
240
|
+
end
|
241
|
+
def to_hash
|
242
|
+
end
|
171
243
|
end
|
172
244
|
|
173
245
|
module EntryStatus
|
174
246
|
extend Orb::Internal::Type::Enum
|
175
247
|
|
176
248
|
TaggedSymbol =
|
177
|
-
T.type_alias
|
249
|
+
T.type_alias do
|
250
|
+
T.all(
|
251
|
+
Symbol,
|
252
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus
|
253
|
+
)
|
254
|
+
end
|
178
255
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
179
256
|
|
180
257
|
COMMITTED =
|
@@ -183,19 +260,32 @@ module Orb
|
|
183
260
|
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
184
261
|
)
|
185
262
|
PENDING =
|
186
|
-
T.let(
|
263
|
+
T.let(
|
264
|
+
:pending,
|
265
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
266
|
+
)
|
187
267
|
|
188
268
|
sig do
|
189
|
-
override
|
190
|
-
|
191
|
-
|
192
|
-
|
269
|
+
override.returns(
|
270
|
+
T::Array[
|
271
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus::TaggedSymbol
|
272
|
+
]
|
273
|
+
)
|
274
|
+
end
|
275
|
+
def self.values
|
193
276
|
end
|
194
|
-
def self.values; end
|
195
277
|
end
|
196
278
|
end
|
197
279
|
|
198
280
|
class Decrement < Orb::Internal::Type::BaseModel
|
281
|
+
OrHash =
|
282
|
+
T.type_alias do
|
283
|
+
T.any(
|
284
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement,
|
285
|
+
Orb::Internal::AnyHash
|
286
|
+
)
|
287
|
+
end
|
288
|
+
|
199
289
|
sig { returns(String) }
|
200
290
|
attr_accessor :id
|
201
291
|
|
@@ -205,28 +295,36 @@ module Orb
|
|
205
295
|
sig { returns(Time) }
|
206
296
|
attr_accessor :created_at
|
207
297
|
|
208
|
-
sig
|
298
|
+
sig do
|
299
|
+
returns(
|
300
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock
|
301
|
+
)
|
302
|
+
end
|
209
303
|
attr_reader :credit_block
|
210
304
|
|
211
305
|
sig do
|
212
306
|
params(
|
213
|
-
credit_block:
|
214
|
-
|
215
|
-
|
307
|
+
credit_block:
|
308
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash
|
309
|
+
).void
|
216
310
|
end
|
217
311
|
attr_writer :credit_block
|
218
312
|
|
219
313
|
sig { returns(String) }
|
220
314
|
attr_accessor :currency
|
221
315
|
|
222
|
-
sig
|
316
|
+
sig do
|
317
|
+
returns(
|
318
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer
|
319
|
+
)
|
320
|
+
end
|
223
321
|
attr_reader :customer
|
224
322
|
|
225
323
|
sig do
|
226
324
|
params(
|
227
|
-
customer:
|
228
|
-
|
229
|
-
|
325
|
+
customer:
|
326
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash
|
327
|
+
).void
|
230
328
|
end
|
231
329
|
attr_writer :customer
|
232
330
|
|
@@ -236,7 +334,11 @@ module Orb
|
|
236
334
|
sig { returns(Float) }
|
237
335
|
attr_accessor :ending_balance
|
238
336
|
|
239
|
-
sig
|
337
|
+
sig do
|
338
|
+
returns(
|
339
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
340
|
+
)
|
341
|
+
end
|
240
342
|
attr_accessor :entry_status
|
241
343
|
|
242
344
|
sig { returns(Symbol) }
|
@@ -269,12 +371,15 @@ module Orb
|
|
269
371
|
id: String,
|
270
372
|
amount: Float,
|
271
373
|
created_at: Time,
|
272
|
-
credit_block:
|
374
|
+
credit_block:
|
375
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock::OrHash,
|
273
376
|
currency: String,
|
274
|
-
customer:
|
377
|
+
customer:
|
378
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer::OrHash,
|
275
379
|
description: T.nilable(String),
|
276
380
|
ending_balance: Float,
|
277
|
-
entry_status:
|
381
|
+
entry_status:
|
382
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::OrSymbol,
|
278
383
|
ledger_sequence_number: Integer,
|
279
384
|
metadata: T::Hash[Symbol, String],
|
280
385
|
starting_balance: Float,
|
@@ -282,8 +387,7 @@ module Orb
|
|
282
387
|
invoice_id: T.nilable(String),
|
283
388
|
price_id: T.nilable(String),
|
284
389
|
entry_type: Symbol
|
285
|
-
)
|
286
|
-
.returns(T.attached_class)
|
390
|
+
).returns(T.attached_class)
|
287
391
|
end
|
288
392
|
def self.new(
|
289
393
|
id:,
|
@@ -306,33 +410,46 @@ module Orb
|
|
306
410
|
invoice_id: nil,
|
307
411
|
price_id: nil,
|
308
412
|
entry_type: :decrement
|
309
|
-
)
|
413
|
+
)
|
414
|
+
end
|
415
|
+
|
310
416
|
sig do
|
311
|
-
override
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
417
|
+
override.returns(
|
418
|
+
{
|
419
|
+
id: String,
|
420
|
+
amount: Float,
|
421
|
+
created_at: Time,
|
422
|
+
credit_block:
|
423
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
|
424
|
+
currency: String,
|
425
|
+
customer:
|
426
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
|
427
|
+
description: T.nilable(String),
|
428
|
+
ending_balance: Float,
|
429
|
+
entry_status:
|
430
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol,
|
431
|
+
entry_type: Symbol,
|
432
|
+
ledger_sequence_number: Integer,
|
433
|
+
metadata: T::Hash[Symbol, String],
|
434
|
+
starting_balance: Float,
|
435
|
+
event_id: T.nilable(String),
|
436
|
+
invoice_id: T.nilable(String),
|
437
|
+
price_id: T.nilable(String)
|
438
|
+
}
|
439
|
+
)
|
440
|
+
end
|
441
|
+
def to_hash
|
332
442
|
end
|
333
|
-
def to_hash; end
|
334
443
|
|
335
444
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
445
|
+
OrHash =
|
446
|
+
T.type_alias do
|
447
|
+
T.any(
|
448
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
|
449
|
+
Orb::Internal::AnyHash
|
450
|
+
)
|
451
|
+
end
|
452
|
+
|
336
453
|
sig { returns(String) }
|
337
454
|
attr_accessor :id
|
338
455
|
|
@@ -343,10 +460,14 @@ module Orb
|
|
343
460
|
attr_accessor :per_unit_cost_basis
|
344
461
|
|
345
462
|
sig do
|
346
|
-
params(
|
347
|
-
|
463
|
+
params(
|
464
|
+
id: String,
|
465
|
+
expiry_date: T.nilable(Time),
|
466
|
+
per_unit_cost_basis: T.nilable(String)
|
467
|
+
).returns(T.attached_class)
|
468
|
+
end
|
469
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
348
470
|
end
|
349
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
350
471
|
|
351
472
|
sig do
|
352
473
|
override.returns(
|
@@ -357,28 +478,53 @@ module Orb
|
|
357
478
|
}
|
358
479
|
)
|
359
480
|
end
|
360
|
-
def to_hash
|
481
|
+
def to_hash
|
482
|
+
end
|
361
483
|
end
|
362
484
|
|
363
485
|
class Customer < Orb::Internal::Type::BaseModel
|
486
|
+
OrHash =
|
487
|
+
T.type_alias do
|
488
|
+
T.any(
|
489
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
|
490
|
+
Orb::Internal::AnyHash
|
491
|
+
)
|
492
|
+
end
|
493
|
+
|
364
494
|
sig { returns(String) }
|
365
495
|
attr_accessor :id
|
366
496
|
|
367
497
|
sig { returns(T.nilable(String)) }
|
368
498
|
attr_accessor :external_customer_id
|
369
499
|
|
370
|
-
sig
|
371
|
-
|
500
|
+
sig do
|
501
|
+
params(
|
502
|
+
id: String,
|
503
|
+
external_customer_id: T.nilable(String)
|
504
|
+
).returns(T.attached_class)
|
505
|
+
end
|
506
|
+
def self.new(id:, external_customer_id:)
|
507
|
+
end
|
372
508
|
|
373
|
-
sig
|
374
|
-
|
509
|
+
sig do
|
510
|
+
override.returns(
|
511
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
512
|
+
)
|
513
|
+
end
|
514
|
+
def to_hash
|
515
|
+
end
|
375
516
|
end
|
376
517
|
|
377
518
|
module EntryStatus
|
378
519
|
extend Orb::Internal::Type::Enum
|
379
520
|
|
380
521
|
TaggedSymbol =
|
381
|
-
T.type_alias
|
522
|
+
T.type_alias do
|
523
|
+
T.all(
|
524
|
+
Symbol,
|
525
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus
|
526
|
+
)
|
527
|
+
end
|
382
528
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
383
529
|
|
384
530
|
COMMITTED =
|
@@ -387,19 +533,32 @@ module Orb
|
|
387
533
|
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
388
534
|
)
|
389
535
|
PENDING =
|
390
|
-
T.let(
|
536
|
+
T.let(
|
537
|
+
:pending,
|
538
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
539
|
+
)
|
391
540
|
|
392
541
|
sig do
|
393
|
-
override
|
394
|
-
|
395
|
-
|
396
|
-
|
542
|
+
override.returns(
|
543
|
+
T::Array[
|
544
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus::TaggedSymbol
|
545
|
+
]
|
546
|
+
)
|
547
|
+
end
|
548
|
+
def self.values
|
397
549
|
end
|
398
|
-
def self.values; end
|
399
550
|
end
|
400
551
|
end
|
401
552
|
|
402
553
|
class ExpirationChange < Orb::Internal::Type::BaseModel
|
554
|
+
OrHash =
|
555
|
+
T.type_alias do
|
556
|
+
T.any(
|
557
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange,
|
558
|
+
Orb::Internal::AnyHash
|
559
|
+
)
|
560
|
+
end
|
561
|
+
|
403
562
|
sig { returns(String) }
|
404
563
|
attr_accessor :id
|
405
564
|
|
@@ -409,34 +568,36 @@ module Orb
|
|
409
568
|
sig { returns(Time) }
|
410
569
|
attr_accessor :created_at
|
411
570
|
|
412
|
-
sig
|
571
|
+
sig do
|
572
|
+
returns(
|
573
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock
|
574
|
+
)
|
575
|
+
end
|
413
576
|
attr_reader :credit_block
|
414
577
|
|
415
578
|
sig do
|
416
579
|
params(
|
417
|
-
credit_block:
|
418
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock
|
419
|
-
|
420
|
-
)
|
421
|
-
)
|
422
|
-
.void
|
580
|
+
credit_block:
|
581
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash
|
582
|
+
).void
|
423
583
|
end
|
424
584
|
attr_writer :credit_block
|
425
585
|
|
426
586
|
sig { returns(String) }
|
427
587
|
attr_accessor :currency
|
428
588
|
|
429
|
-
sig
|
589
|
+
sig do
|
590
|
+
returns(
|
591
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer
|
592
|
+
)
|
593
|
+
end
|
430
594
|
attr_reader :customer
|
431
595
|
|
432
596
|
sig do
|
433
597
|
params(
|
434
|
-
customer:
|
435
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer
|
436
|
-
|
437
|
-
)
|
438
|
-
)
|
439
|
-
.void
|
598
|
+
customer:
|
599
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash
|
600
|
+
).void
|
440
601
|
end
|
441
602
|
attr_writer :customer
|
442
603
|
|
@@ -446,7 +607,11 @@ module Orb
|
|
446
607
|
sig { returns(Float) }
|
447
608
|
attr_accessor :ending_balance
|
448
609
|
|
449
|
-
sig
|
610
|
+
sig do
|
611
|
+
returns(
|
612
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
|
613
|
+
)
|
614
|
+
end
|
450
615
|
attr_accessor :entry_status
|
451
616
|
|
452
617
|
sig { returns(Symbol) }
|
@@ -473,25 +638,21 @@ module Orb
|
|
473
638
|
id: String,
|
474
639
|
amount: Float,
|
475
640
|
created_at: Time,
|
476
|
-
credit_block:
|
477
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
478
|
-
Orb::Internal::AnyHash
|
479
|
-
),
|
641
|
+
credit_block:
|
642
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock::OrHash,
|
480
643
|
currency: String,
|
481
|
-
customer:
|
482
|
-
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
483
|
-
Orb::Internal::AnyHash
|
484
|
-
),
|
644
|
+
customer:
|
645
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer::OrHash,
|
485
646
|
description: T.nilable(String),
|
486
647
|
ending_balance: Float,
|
487
|
-
entry_status:
|
648
|
+
entry_status:
|
649
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::OrSymbol,
|
488
650
|
ledger_sequence_number: Integer,
|
489
651
|
metadata: T::Hash[Symbol, String],
|
490
652
|
new_block_expiry_date: T.nilable(Time),
|
491
653
|
starting_balance: Float,
|
492
654
|
entry_type: Symbol
|
493
|
-
)
|
494
|
-
.returns(T.attached_class)
|
655
|
+
).returns(T.attached_class)
|
495
656
|
end
|
496
657
|
def self.new(
|
497
658
|
id:,
|
@@ -512,31 +673,44 @@ module Orb
|
|
512
673
|
new_block_expiry_date:,
|
513
674
|
starting_balance:,
|
514
675
|
entry_type: :expiration_change
|
515
|
-
)
|
676
|
+
)
|
677
|
+
end
|
678
|
+
|
516
679
|
sig do
|
517
|
-
override
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
680
|
+
override.returns(
|
681
|
+
{
|
682
|
+
id: String,
|
683
|
+
amount: Float,
|
684
|
+
created_at: Time,
|
685
|
+
credit_block:
|
686
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
687
|
+
currency: String,
|
688
|
+
customer:
|
689
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
690
|
+
description: T.nilable(String),
|
691
|
+
ending_balance: Float,
|
692
|
+
entry_status:
|
693
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol,
|
694
|
+
entry_type: Symbol,
|
695
|
+
ledger_sequence_number: Integer,
|
696
|
+
metadata: T::Hash[Symbol, String],
|
697
|
+
new_block_expiry_date: T.nilable(Time),
|
698
|
+
starting_balance: Float
|
699
|
+
}
|
700
|
+
)
|
701
|
+
end
|
702
|
+
def to_hash
|
536
703
|
end
|
537
|
-
def to_hash; end
|
538
704
|
|
539
705
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
706
|
+
OrHash =
|
707
|
+
T.type_alias do
|
708
|
+
T.any(
|
709
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
710
|
+
Orb::Internal::AnyHash
|
711
|
+
)
|
712
|
+
end
|
713
|
+
|
540
714
|
sig { returns(String) }
|
541
715
|
attr_accessor :id
|
542
716
|
|
@@ -547,10 +721,14 @@ module Orb
|
|
547
721
|
attr_accessor :per_unit_cost_basis
|
548
722
|
|
549
723
|
sig do
|
550
|
-
params(
|
551
|
-
|
724
|
+
params(
|
725
|
+
id: String,
|
726
|
+
expiry_date: T.nilable(Time),
|
727
|
+
per_unit_cost_basis: T.nilable(String)
|
728
|
+
).returns(T.attached_class)
|
729
|
+
end
|
730
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
552
731
|
end
|
553
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
554
732
|
|
555
733
|
sig do
|
556
734
|
override.returns(
|
@@ -561,28 +739,53 @@ module Orb
|
|
561
739
|
}
|
562
740
|
)
|
563
741
|
end
|
564
|
-
def to_hash
|
742
|
+
def to_hash
|
743
|
+
end
|
565
744
|
end
|
566
745
|
|
567
746
|
class Customer < Orb::Internal::Type::BaseModel
|
747
|
+
OrHash =
|
748
|
+
T.type_alias do
|
749
|
+
T.any(
|
750
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
751
|
+
Orb::Internal::AnyHash
|
752
|
+
)
|
753
|
+
end
|
754
|
+
|
568
755
|
sig { returns(String) }
|
569
756
|
attr_accessor :id
|
570
757
|
|
571
758
|
sig { returns(T.nilable(String)) }
|
572
759
|
attr_accessor :external_customer_id
|
573
760
|
|
574
|
-
sig
|
575
|
-
|
761
|
+
sig do
|
762
|
+
params(
|
763
|
+
id: String,
|
764
|
+
external_customer_id: T.nilable(String)
|
765
|
+
).returns(T.attached_class)
|
766
|
+
end
|
767
|
+
def self.new(id:, external_customer_id:)
|
768
|
+
end
|
576
769
|
|
577
|
-
sig
|
578
|
-
|
770
|
+
sig do
|
771
|
+
override.returns(
|
772
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
773
|
+
)
|
774
|
+
end
|
775
|
+
def to_hash
|
776
|
+
end
|
579
777
|
end
|
580
778
|
|
581
779
|
module EntryStatus
|
582
780
|
extend Orb::Internal::Type::Enum
|
583
781
|
|
584
782
|
TaggedSymbol =
|
585
|
-
T.type_alias
|
783
|
+
T.type_alias do
|
784
|
+
T.all(
|
785
|
+
Symbol,
|
786
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus
|
787
|
+
)
|
788
|
+
end
|
586
789
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
587
790
|
|
588
791
|
COMMITTED =
|
@@ -597,16 +800,26 @@ module Orb
|
|
597
800
|
)
|
598
801
|
|
599
802
|
sig do
|
600
|
-
override
|
601
|
-
|
602
|
-
|
603
|
-
|
803
|
+
override.returns(
|
804
|
+
T::Array[
|
805
|
+
Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus::TaggedSymbol
|
806
|
+
]
|
807
|
+
)
|
808
|
+
end
|
809
|
+
def self.values
|
604
810
|
end
|
605
|
-
def self.values; end
|
606
811
|
end
|
607
812
|
end
|
608
813
|
|
609
814
|
class CreditBlockExpiry < Orb::Internal::Type::BaseModel
|
815
|
+
OrHash =
|
816
|
+
T.type_alias do
|
817
|
+
T.any(
|
818
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry,
|
819
|
+
Orb::Internal::AnyHash
|
820
|
+
)
|
821
|
+
end
|
822
|
+
|
610
823
|
sig { returns(String) }
|
611
824
|
attr_accessor :id
|
612
825
|
|
@@ -616,34 +829,36 @@ module Orb
|
|
616
829
|
sig { returns(Time) }
|
617
830
|
attr_accessor :created_at
|
618
831
|
|
619
|
-
sig
|
832
|
+
sig do
|
833
|
+
returns(
|
834
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock
|
835
|
+
)
|
836
|
+
end
|
620
837
|
attr_reader :credit_block
|
621
838
|
|
622
839
|
sig do
|
623
840
|
params(
|
624
|
-
credit_block:
|
625
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock
|
626
|
-
|
627
|
-
)
|
628
|
-
)
|
629
|
-
.void
|
841
|
+
credit_block:
|
842
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash
|
843
|
+
).void
|
630
844
|
end
|
631
845
|
attr_writer :credit_block
|
632
846
|
|
633
847
|
sig { returns(String) }
|
634
848
|
attr_accessor :currency
|
635
849
|
|
636
|
-
sig
|
850
|
+
sig do
|
851
|
+
returns(
|
852
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer
|
853
|
+
)
|
854
|
+
end
|
637
855
|
attr_reader :customer
|
638
856
|
|
639
857
|
sig do
|
640
858
|
params(
|
641
|
-
customer:
|
642
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer
|
643
|
-
|
644
|
-
)
|
645
|
-
)
|
646
|
-
.void
|
859
|
+
customer:
|
860
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash
|
861
|
+
).void
|
647
862
|
end
|
648
863
|
attr_writer :customer
|
649
864
|
|
@@ -653,7 +868,11 @@ module Orb
|
|
653
868
|
sig { returns(Float) }
|
654
869
|
attr_accessor :ending_balance
|
655
870
|
|
656
|
-
sig
|
871
|
+
sig do
|
872
|
+
returns(
|
873
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
|
874
|
+
)
|
875
|
+
end
|
657
876
|
attr_accessor :entry_status
|
658
877
|
|
659
878
|
sig { returns(Symbol) }
|
@@ -677,24 +896,20 @@ module Orb
|
|
677
896
|
id: String,
|
678
897
|
amount: Float,
|
679
898
|
created_at: Time,
|
680
|
-
credit_block:
|
681
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
682
|
-
Orb::Internal::AnyHash
|
683
|
-
),
|
899
|
+
credit_block:
|
900
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock::OrHash,
|
684
901
|
currency: String,
|
685
|
-
customer:
|
686
|
-
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
687
|
-
Orb::Internal::AnyHash
|
688
|
-
),
|
902
|
+
customer:
|
903
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer::OrHash,
|
689
904
|
description: T.nilable(String),
|
690
905
|
ending_balance: Float,
|
691
|
-
entry_status:
|
906
|
+
entry_status:
|
907
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::OrSymbol,
|
692
908
|
ledger_sequence_number: Integer,
|
693
909
|
metadata: T::Hash[Symbol, String],
|
694
910
|
starting_balance: Float,
|
695
911
|
entry_type: Symbol
|
696
|
-
)
|
697
|
-
.returns(T.attached_class)
|
912
|
+
).returns(T.attached_class)
|
698
913
|
end
|
699
914
|
def self.new(
|
700
915
|
id:,
|
@@ -714,30 +929,43 @@ module Orb
|
|
714
929
|
metadata:,
|
715
930
|
starting_balance:,
|
716
931
|
entry_type: :credit_block_expiry
|
717
|
-
)
|
932
|
+
)
|
933
|
+
end
|
934
|
+
|
718
935
|
sig do
|
719
|
-
override
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
936
|
+
override.returns(
|
937
|
+
{
|
938
|
+
id: String,
|
939
|
+
amount: Float,
|
940
|
+
created_at: Time,
|
941
|
+
credit_block:
|
942
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
943
|
+
currency: String,
|
944
|
+
customer:
|
945
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
946
|
+
description: T.nilable(String),
|
947
|
+
ending_balance: Float,
|
948
|
+
entry_status:
|
949
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol,
|
950
|
+
entry_type: Symbol,
|
951
|
+
ledger_sequence_number: Integer,
|
952
|
+
metadata: T::Hash[Symbol, String],
|
953
|
+
starting_balance: Float
|
954
|
+
}
|
955
|
+
)
|
956
|
+
end
|
957
|
+
def to_hash
|
737
958
|
end
|
738
|
-
def to_hash; end
|
739
959
|
|
740
960
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
961
|
+
OrHash =
|
962
|
+
T.type_alias do
|
963
|
+
T.any(
|
964
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
965
|
+
Orb::Internal::AnyHash
|
966
|
+
)
|
967
|
+
end
|
968
|
+
|
741
969
|
sig { returns(String) }
|
742
970
|
attr_accessor :id
|
743
971
|
|
@@ -748,10 +976,14 @@ module Orb
|
|
748
976
|
attr_accessor :per_unit_cost_basis
|
749
977
|
|
750
978
|
sig do
|
751
|
-
params(
|
752
|
-
|
979
|
+
params(
|
980
|
+
id: String,
|
981
|
+
expiry_date: T.nilable(Time),
|
982
|
+
per_unit_cost_basis: T.nilable(String)
|
983
|
+
).returns(T.attached_class)
|
984
|
+
end
|
985
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
753
986
|
end
|
754
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
755
987
|
|
756
988
|
sig do
|
757
989
|
override.returns(
|
@@ -762,28 +994,53 @@ module Orb
|
|
762
994
|
}
|
763
995
|
)
|
764
996
|
end
|
765
|
-
def to_hash
|
997
|
+
def to_hash
|
998
|
+
end
|
766
999
|
end
|
767
1000
|
|
768
1001
|
class Customer < Orb::Internal::Type::BaseModel
|
1002
|
+
OrHash =
|
1003
|
+
T.type_alias do
|
1004
|
+
T.any(
|
1005
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
1006
|
+
Orb::Internal::AnyHash
|
1007
|
+
)
|
1008
|
+
end
|
1009
|
+
|
769
1010
|
sig { returns(String) }
|
770
1011
|
attr_accessor :id
|
771
1012
|
|
772
1013
|
sig { returns(T.nilable(String)) }
|
773
1014
|
attr_accessor :external_customer_id
|
774
1015
|
|
775
|
-
sig
|
776
|
-
|
1016
|
+
sig do
|
1017
|
+
params(
|
1018
|
+
id: String,
|
1019
|
+
external_customer_id: T.nilable(String)
|
1020
|
+
).returns(T.attached_class)
|
1021
|
+
end
|
1022
|
+
def self.new(id:, external_customer_id:)
|
1023
|
+
end
|
777
1024
|
|
778
|
-
sig
|
779
|
-
|
1025
|
+
sig do
|
1026
|
+
override.returns(
|
1027
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1028
|
+
)
|
1029
|
+
end
|
1030
|
+
def to_hash
|
1031
|
+
end
|
780
1032
|
end
|
781
1033
|
|
782
1034
|
module EntryStatus
|
783
1035
|
extend Orb::Internal::Type::Enum
|
784
1036
|
|
785
1037
|
TaggedSymbol =
|
786
|
-
T.type_alias
|
1038
|
+
T.type_alias do
|
1039
|
+
T.all(
|
1040
|
+
Symbol,
|
1041
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus
|
1042
|
+
)
|
1043
|
+
end
|
787
1044
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
788
1045
|
|
789
1046
|
COMMITTED =
|
@@ -798,16 +1055,26 @@ module Orb
|
|
798
1055
|
)
|
799
1056
|
|
800
1057
|
sig do
|
801
|
-
override
|
802
|
-
|
803
|
-
|
804
|
-
|
1058
|
+
override.returns(
|
1059
|
+
T::Array[
|
1060
|
+
Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus::TaggedSymbol
|
1061
|
+
]
|
1062
|
+
)
|
1063
|
+
end
|
1064
|
+
def self.values
|
805
1065
|
end
|
806
|
-
def self.values; end
|
807
1066
|
end
|
808
1067
|
end
|
809
1068
|
|
810
1069
|
class Void < Orb::Internal::Type::BaseModel
|
1070
|
+
OrHash =
|
1071
|
+
T.type_alias do
|
1072
|
+
T.any(
|
1073
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void,
|
1074
|
+
Orb::Internal::AnyHash
|
1075
|
+
)
|
1076
|
+
end
|
1077
|
+
|
811
1078
|
sig { returns(String) }
|
812
1079
|
attr_accessor :id
|
813
1080
|
|
@@ -817,28 +1084,36 @@ module Orb
|
|
817
1084
|
sig { returns(Time) }
|
818
1085
|
attr_accessor :created_at
|
819
1086
|
|
820
|
-
sig
|
1087
|
+
sig do
|
1088
|
+
returns(
|
1089
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock
|
1090
|
+
)
|
1091
|
+
end
|
821
1092
|
attr_reader :credit_block
|
822
1093
|
|
823
1094
|
sig do
|
824
1095
|
params(
|
825
|
-
credit_block:
|
826
|
-
|
827
|
-
|
1096
|
+
credit_block:
|
1097
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash
|
1098
|
+
).void
|
828
1099
|
end
|
829
1100
|
attr_writer :credit_block
|
830
1101
|
|
831
1102
|
sig { returns(String) }
|
832
1103
|
attr_accessor :currency
|
833
1104
|
|
834
|
-
sig
|
1105
|
+
sig do
|
1106
|
+
returns(
|
1107
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer
|
1108
|
+
)
|
1109
|
+
end
|
835
1110
|
attr_reader :customer
|
836
1111
|
|
837
1112
|
sig do
|
838
1113
|
params(
|
839
|
-
customer:
|
840
|
-
|
841
|
-
|
1114
|
+
customer:
|
1115
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash
|
1116
|
+
).void
|
842
1117
|
end
|
843
1118
|
attr_writer :customer
|
844
1119
|
|
@@ -848,7 +1123,11 @@ module Orb
|
|
848
1123
|
sig { returns(Float) }
|
849
1124
|
attr_accessor :ending_balance
|
850
1125
|
|
851
|
-
sig
|
1126
|
+
sig do
|
1127
|
+
returns(
|
1128
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1129
|
+
)
|
1130
|
+
end
|
852
1131
|
attr_accessor :entry_status
|
853
1132
|
|
854
1133
|
sig { returns(Symbol) }
|
@@ -878,20 +1157,22 @@ module Orb
|
|
878
1157
|
id: String,
|
879
1158
|
amount: Float,
|
880
1159
|
created_at: Time,
|
881
|
-
credit_block:
|
1160
|
+
credit_block:
|
1161
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock::OrHash,
|
882
1162
|
currency: String,
|
883
|
-
customer:
|
1163
|
+
customer:
|
1164
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer::OrHash,
|
884
1165
|
description: T.nilable(String),
|
885
1166
|
ending_balance: Float,
|
886
|
-
entry_status:
|
1167
|
+
entry_status:
|
1168
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::OrSymbol,
|
887
1169
|
ledger_sequence_number: Integer,
|
888
1170
|
metadata: T::Hash[Symbol, String],
|
889
1171
|
starting_balance: Float,
|
890
1172
|
void_amount: Float,
|
891
1173
|
void_reason: T.nilable(String),
|
892
1174
|
entry_type: Symbol
|
893
|
-
)
|
894
|
-
.returns(T.attached_class)
|
1175
|
+
).returns(T.attached_class)
|
895
1176
|
end
|
896
1177
|
def self.new(
|
897
1178
|
id:,
|
@@ -913,32 +1194,45 @@ module Orb
|
|
913
1194
|
void_amount:,
|
914
1195
|
void_reason:,
|
915
1196
|
entry_type: :void
|
916
|
-
)
|
1197
|
+
)
|
1198
|
+
end
|
1199
|
+
|
917
1200
|
sig do
|
918
|
-
override
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
1201
|
+
override.returns(
|
1202
|
+
{
|
1203
|
+
id: String,
|
1204
|
+
amount: Float,
|
1205
|
+
created_at: Time,
|
1206
|
+
credit_block:
|
1207
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
|
1208
|
+
currency: String,
|
1209
|
+
customer:
|
1210
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
|
1211
|
+
description: T.nilable(String),
|
1212
|
+
ending_balance: Float,
|
1213
|
+
entry_status:
|
1214
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol,
|
1215
|
+
entry_type: Symbol,
|
1216
|
+
ledger_sequence_number: Integer,
|
1217
|
+
metadata: T::Hash[Symbol, String],
|
1218
|
+
starting_balance: Float,
|
1219
|
+
void_amount: Float,
|
1220
|
+
void_reason: T.nilable(String)
|
1221
|
+
}
|
1222
|
+
)
|
1223
|
+
end
|
1224
|
+
def to_hash
|
938
1225
|
end
|
939
|
-
def to_hash; end
|
940
1226
|
|
941
1227
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1228
|
+
OrHash =
|
1229
|
+
T.type_alias do
|
1230
|
+
T.any(
|
1231
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
|
1232
|
+
Orb::Internal::AnyHash
|
1233
|
+
)
|
1234
|
+
end
|
1235
|
+
|
942
1236
|
sig { returns(String) }
|
943
1237
|
attr_accessor :id
|
944
1238
|
|
@@ -949,10 +1243,14 @@ module Orb
|
|
949
1243
|
attr_accessor :per_unit_cost_basis
|
950
1244
|
|
951
1245
|
sig do
|
952
|
-
params(
|
953
|
-
|
1246
|
+
params(
|
1247
|
+
id: String,
|
1248
|
+
expiry_date: T.nilable(Time),
|
1249
|
+
per_unit_cost_basis: T.nilable(String)
|
1250
|
+
).returns(T.attached_class)
|
1251
|
+
end
|
1252
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
954
1253
|
end
|
955
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
956
1254
|
|
957
1255
|
sig do
|
958
1256
|
override.returns(
|
@@ -963,44 +1261,87 @@ module Orb
|
|
963
1261
|
}
|
964
1262
|
)
|
965
1263
|
end
|
966
|
-
def to_hash
|
1264
|
+
def to_hash
|
1265
|
+
end
|
967
1266
|
end
|
968
1267
|
|
969
1268
|
class Customer < Orb::Internal::Type::BaseModel
|
1269
|
+
OrHash =
|
1270
|
+
T.type_alias do
|
1271
|
+
T.any(
|
1272
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
|
1273
|
+
Orb::Internal::AnyHash
|
1274
|
+
)
|
1275
|
+
end
|
1276
|
+
|
970
1277
|
sig { returns(String) }
|
971
1278
|
attr_accessor :id
|
972
1279
|
|
973
1280
|
sig { returns(T.nilable(String)) }
|
974
1281
|
attr_accessor :external_customer_id
|
975
1282
|
|
976
|
-
sig
|
977
|
-
|
1283
|
+
sig do
|
1284
|
+
params(
|
1285
|
+
id: String,
|
1286
|
+
external_customer_id: T.nilable(String)
|
1287
|
+
).returns(T.attached_class)
|
1288
|
+
end
|
1289
|
+
def self.new(id:, external_customer_id:)
|
1290
|
+
end
|
978
1291
|
|
979
|
-
sig
|
980
|
-
|
1292
|
+
sig do
|
1293
|
+
override.returns(
|
1294
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1295
|
+
)
|
1296
|
+
end
|
1297
|
+
def to_hash
|
1298
|
+
end
|
981
1299
|
end
|
982
1300
|
|
983
1301
|
module EntryStatus
|
984
1302
|
extend Orb::Internal::Type::Enum
|
985
1303
|
|
986
1304
|
TaggedSymbol =
|
987
|
-
T.type_alias
|
1305
|
+
T.type_alias do
|
1306
|
+
T.all(
|
1307
|
+
Symbol,
|
1308
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus
|
1309
|
+
)
|
1310
|
+
end
|
988
1311
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
989
1312
|
|
990
1313
|
COMMITTED =
|
991
|
-
T.let(
|
1314
|
+
T.let(
|
1315
|
+
:committed,
|
1316
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1317
|
+
)
|
992
1318
|
PENDING =
|
993
|
-
T.let(
|
1319
|
+
T.let(
|
1320
|
+
:pending,
|
1321
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1322
|
+
)
|
994
1323
|
|
995
1324
|
sig do
|
996
|
-
override
|
997
|
-
|
1325
|
+
override.returns(
|
1326
|
+
T::Array[
|
1327
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus::TaggedSymbol
|
1328
|
+
]
|
1329
|
+
)
|
1330
|
+
end
|
1331
|
+
def self.values
|
998
1332
|
end
|
999
|
-
def self.values; end
|
1000
1333
|
end
|
1001
1334
|
end
|
1002
1335
|
|
1003
1336
|
class VoidInitiated < Orb::Internal::Type::BaseModel
|
1337
|
+
OrHash =
|
1338
|
+
T.type_alias do
|
1339
|
+
T.any(
|
1340
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated,
|
1341
|
+
Orb::Internal::AnyHash
|
1342
|
+
)
|
1343
|
+
end
|
1344
|
+
|
1004
1345
|
sig { returns(String) }
|
1005
1346
|
attr_accessor :id
|
1006
1347
|
|
@@ -1010,34 +1351,36 @@ module Orb
|
|
1010
1351
|
sig { returns(Time) }
|
1011
1352
|
attr_accessor :created_at
|
1012
1353
|
|
1013
|
-
sig
|
1354
|
+
sig do
|
1355
|
+
returns(
|
1356
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock
|
1357
|
+
)
|
1358
|
+
end
|
1014
1359
|
attr_reader :credit_block
|
1015
1360
|
|
1016
1361
|
sig do
|
1017
1362
|
params(
|
1018
|
-
credit_block:
|
1019
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock
|
1020
|
-
|
1021
|
-
)
|
1022
|
-
)
|
1023
|
-
.void
|
1363
|
+
credit_block:
|
1364
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash
|
1365
|
+
).void
|
1024
1366
|
end
|
1025
1367
|
attr_writer :credit_block
|
1026
1368
|
|
1027
1369
|
sig { returns(String) }
|
1028
1370
|
attr_accessor :currency
|
1029
1371
|
|
1030
|
-
sig
|
1372
|
+
sig do
|
1373
|
+
returns(
|
1374
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer
|
1375
|
+
)
|
1376
|
+
end
|
1031
1377
|
attr_reader :customer
|
1032
1378
|
|
1033
1379
|
sig do
|
1034
1380
|
params(
|
1035
|
-
customer:
|
1036
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer
|
1037
|
-
|
1038
|
-
)
|
1039
|
-
)
|
1040
|
-
.void
|
1381
|
+
customer:
|
1382
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash
|
1383
|
+
).void
|
1041
1384
|
end
|
1042
1385
|
attr_writer :customer
|
1043
1386
|
|
@@ -1047,7 +1390,11 @@ module Orb
|
|
1047
1390
|
sig { returns(Float) }
|
1048
1391
|
attr_accessor :ending_balance
|
1049
1392
|
|
1050
|
-
sig
|
1393
|
+
sig do
|
1394
|
+
returns(
|
1395
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
|
1396
|
+
)
|
1397
|
+
end
|
1051
1398
|
attr_accessor :entry_status
|
1052
1399
|
|
1053
1400
|
sig { returns(Symbol) }
|
@@ -1080,18 +1427,15 @@ module Orb
|
|
1080
1427
|
id: String,
|
1081
1428
|
amount: Float,
|
1082
1429
|
created_at: Time,
|
1083
|
-
credit_block:
|
1084
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
1085
|
-
Orb::Internal::AnyHash
|
1086
|
-
),
|
1430
|
+
credit_block:
|
1431
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock::OrHash,
|
1087
1432
|
currency: String,
|
1088
|
-
customer:
|
1089
|
-
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
1090
|
-
Orb::Internal::AnyHash
|
1091
|
-
),
|
1433
|
+
customer:
|
1434
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer::OrHash,
|
1092
1435
|
description: T.nilable(String),
|
1093
1436
|
ending_balance: Float,
|
1094
|
-
entry_status:
|
1437
|
+
entry_status:
|
1438
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::OrSymbol,
|
1095
1439
|
ledger_sequence_number: Integer,
|
1096
1440
|
metadata: T::Hash[Symbol, String],
|
1097
1441
|
new_block_expiry_date: Time,
|
@@ -1099,8 +1443,7 @@ module Orb
|
|
1099
1443
|
void_amount: Float,
|
1100
1444
|
void_reason: T.nilable(String),
|
1101
1445
|
entry_type: Symbol
|
1102
|
-
)
|
1103
|
-
.returns(T.attached_class)
|
1446
|
+
).returns(T.attached_class)
|
1104
1447
|
end
|
1105
1448
|
def self.new(
|
1106
1449
|
id:,
|
@@ -1123,33 +1466,46 @@ module Orb
|
|
1123
1466
|
void_amount:,
|
1124
1467
|
void_reason:,
|
1125
1468
|
entry_type: :void_initiated
|
1126
|
-
)
|
1469
|
+
)
|
1470
|
+
end
|
1471
|
+
|
1127
1472
|
sig do
|
1128
|
-
override
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1473
|
+
override.returns(
|
1474
|
+
{
|
1475
|
+
id: String,
|
1476
|
+
amount: Float,
|
1477
|
+
created_at: Time,
|
1478
|
+
credit_block:
|
1479
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
1480
|
+
currency: String,
|
1481
|
+
customer:
|
1482
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
1483
|
+
description: T.nilable(String),
|
1484
|
+
ending_balance: Float,
|
1485
|
+
entry_status:
|
1486
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol,
|
1487
|
+
entry_type: Symbol,
|
1488
|
+
ledger_sequence_number: Integer,
|
1489
|
+
metadata: T::Hash[Symbol, String],
|
1490
|
+
new_block_expiry_date: Time,
|
1491
|
+
starting_balance: Float,
|
1492
|
+
void_amount: Float,
|
1493
|
+
void_reason: T.nilable(String)
|
1494
|
+
}
|
1495
|
+
)
|
1496
|
+
end
|
1497
|
+
def to_hash
|
1149
1498
|
end
|
1150
|
-
def to_hash; end
|
1151
1499
|
|
1152
1500
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1501
|
+
OrHash =
|
1502
|
+
T.type_alias do
|
1503
|
+
T.any(
|
1504
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
1505
|
+
Orb::Internal::AnyHash
|
1506
|
+
)
|
1507
|
+
end
|
1508
|
+
|
1153
1509
|
sig { returns(String) }
|
1154
1510
|
attr_accessor :id
|
1155
1511
|
|
@@ -1160,10 +1516,14 @@ module Orb
|
|
1160
1516
|
attr_accessor :per_unit_cost_basis
|
1161
1517
|
|
1162
1518
|
sig do
|
1163
|
-
params(
|
1164
|
-
|
1519
|
+
params(
|
1520
|
+
id: String,
|
1521
|
+
expiry_date: T.nilable(Time),
|
1522
|
+
per_unit_cost_basis: T.nilable(String)
|
1523
|
+
).returns(T.attached_class)
|
1524
|
+
end
|
1525
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
1165
1526
|
end
|
1166
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
1167
1527
|
|
1168
1528
|
sig do
|
1169
1529
|
override.returns(
|
@@ -1174,28 +1534,53 @@ module Orb
|
|
1174
1534
|
}
|
1175
1535
|
)
|
1176
1536
|
end
|
1177
|
-
def to_hash
|
1537
|
+
def to_hash
|
1538
|
+
end
|
1178
1539
|
end
|
1179
1540
|
|
1180
1541
|
class Customer < Orb::Internal::Type::BaseModel
|
1542
|
+
OrHash =
|
1543
|
+
T.type_alias do
|
1544
|
+
T.any(
|
1545
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
1546
|
+
Orb::Internal::AnyHash
|
1547
|
+
)
|
1548
|
+
end
|
1549
|
+
|
1181
1550
|
sig { returns(String) }
|
1182
1551
|
attr_accessor :id
|
1183
1552
|
|
1184
1553
|
sig { returns(T.nilable(String)) }
|
1185
1554
|
attr_accessor :external_customer_id
|
1186
1555
|
|
1187
|
-
sig
|
1188
|
-
|
1556
|
+
sig do
|
1557
|
+
params(
|
1558
|
+
id: String,
|
1559
|
+
external_customer_id: T.nilable(String)
|
1560
|
+
).returns(T.attached_class)
|
1561
|
+
end
|
1562
|
+
def self.new(id:, external_customer_id:)
|
1563
|
+
end
|
1189
1564
|
|
1190
|
-
sig
|
1191
|
-
|
1565
|
+
sig do
|
1566
|
+
override.returns(
|
1567
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1568
|
+
)
|
1569
|
+
end
|
1570
|
+
def to_hash
|
1571
|
+
end
|
1192
1572
|
end
|
1193
1573
|
|
1194
1574
|
module EntryStatus
|
1195
1575
|
extend Orb::Internal::Type::Enum
|
1196
1576
|
|
1197
1577
|
TaggedSymbol =
|
1198
|
-
T.type_alias
|
1578
|
+
T.type_alias do
|
1579
|
+
T.all(
|
1580
|
+
Symbol,
|
1581
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus
|
1582
|
+
)
|
1583
|
+
end
|
1199
1584
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1200
1585
|
|
1201
1586
|
COMMITTED =
|
@@ -1210,16 +1595,26 @@ module Orb
|
|
1210
1595
|
)
|
1211
1596
|
|
1212
1597
|
sig do
|
1213
|
-
override
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1598
|
+
override.returns(
|
1599
|
+
T::Array[
|
1600
|
+
Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus::TaggedSymbol
|
1601
|
+
]
|
1602
|
+
)
|
1603
|
+
end
|
1604
|
+
def self.values
|
1217
1605
|
end
|
1218
|
-
def self.values; end
|
1219
1606
|
end
|
1220
1607
|
end
|
1221
1608
|
|
1222
1609
|
class Amendment < Orb::Internal::Type::BaseModel
|
1610
|
+
OrHash =
|
1611
|
+
T.type_alias do
|
1612
|
+
T.any(
|
1613
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment,
|
1614
|
+
Orb::Internal::AnyHash
|
1615
|
+
)
|
1616
|
+
end
|
1617
|
+
|
1223
1618
|
sig { returns(String) }
|
1224
1619
|
attr_accessor :id
|
1225
1620
|
|
@@ -1229,28 +1624,36 @@ module Orb
|
|
1229
1624
|
sig { returns(Time) }
|
1230
1625
|
attr_accessor :created_at
|
1231
1626
|
|
1232
|
-
sig
|
1627
|
+
sig do
|
1628
|
+
returns(
|
1629
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock
|
1630
|
+
)
|
1631
|
+
end
|
1233
1632
|
attr_reader :credit_block
|
1234
1633
|
|
1235
1634
|
sig do
|
1236
1635
|
params(
|
1237
|
-
credit_block:
|
1238
|
-
|
1239
|
-
|
1636
|
+
credit_block:
|
1637
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash
|
1638
|
+
).void
|
1240
1639
|
end
|
1241
1640
|
attr_writer :credit_block
|
1242
1641
|
|
1243
1642
|
sig { returns(String) }
|
1244
1643
|
attr_accessor :currency
|
1245
1644
|
|
1246
|
-
sig
|
1645
|
+
sig do
|
1646
|
+
returns(
|
1647
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer
|
1648
|
+
)
|
1649
|
+
end
|
1247
1650
|
attr_reader :customer
|
1248
1651
|
|
1249
1652
|
sig do
|
1250
1653
|
params(
|
1251
|
-
customer:
|
1252
|
-
|
1253
|
-
|
1654
|
+
customer:
|
1655
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash
|
1656
|
+
).void
|
1254
1657
|
end
|
1255
1658
|
attr_writer :customer
|
1256
1659
|
|
@@ -1260,7 +1663,11 @@ module Orb
|
|
1260
1663
|
sig { returns(Float) }
|
1261
1664
|
attr_accessor :ending_balance
|
1262
1665
|
|
1263
|
-
sig
|
1666
|
+
sig do
|
1667
|
+
returns(
|
1668
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1669
|
+
)
|
1670
|
+
end
|
1264
1671
|
attr_accessor :entry_status
|
1265
1672
|
|
1266
1673
|
sig { returns(Symbol) }
|
@@ -1284,18 +1691,20 @@ module Orb
|
|
1284
1691
|
id: String,
|
1285
1692
|
amount: Float,
|
1286
1693
|
created_at: Time,
|
1287
|
-
credit_block:
|
1694
|
+
credit_block:
|
1695
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock::OrHash,
|
1288
1696
|
currency: String,
|
1289
|
-
customer:
|
1697
|
+
customer:
|
1698
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer::OrHash,
|
1290
1699
|
description: T.nilable(String),
|
1291
1700
|
ending_balance: Float,
|
1292
|
-
entry_status:
|
1701
|
+
entry_status:
|
1702
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::OrSymbol,
|
1293
1703
|
ledger_sequence_number: Integer,
|
1294
1704
|
metadata: T::Hash[Symbol, String],
|
1295
1705
|
starting_balance: Float,
|
1296
1706
|
entry_type: Symbol
|
1297
|
-
)
|
1298
|
-
.returns(T.attached_class)
|
1707
|
+
).returns(T.attached_class)
|
1299
1708
|
end
|
1300
1709
|
def self.new(
|
1301
1710
|
id:,
|
@@ -1315,30 +1724,43 @@ module Orb
|
|
1315
1724
|
metadata:,
|
1316
1725
|
starting_balance:,
|
1317
1726
|
entry_type: :amendment
|
1318
|
-
)
|
1727
|
+
)
|
1728
|
+
end
|
1729
|
+
|
1319
1730
|
sig do
|
1320
|
-
override
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1731
|
+
override.returns(
|
1732
|
+
{
|
1733
|
+
id: String,
|
1734
|
+
amount: Float,
|
1735
|
+
created_at: Time,
|
1736
|
+
credit_block:
|
1737
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
|
1738
|
+
currency: String,
|
1739
|
+
customer:
|
1740
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
|
1741
|
+
description: T.nilable(String),
|
1742
|
+
ending_balance: Float,
|
1743
|
+
entry_status:
|
1744
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol,
|
1745
|
+
entry_type: Symbol,
|
1746
|
+
ledger_sequence_number: Integer,
|
1747
|
+
metadata: T::Hash[Symbol, String],
|
1748
|
+
starting_balance: Float
|
1749
|
+
}
|
1750
|
+
)
|
1751
|
+
end
|
1752
|
+
def to_hash
|
1338
1753
|
end
|
1339
|
-
def to_hash; end
|
1340
1754
|
|
1341
1755
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1756
|
+
OrHash =
|
1757
|
+
T.type_alias do
|
1758
|
+
T.any(
|
1759
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
|
1760
|
+
Orb::Internal::AnyHash
|
1761
|
+
)
|
1762
|
+
end
|
1763
|
+
|
1342
1764
|
sig { returns(String) }
|
1343
1765
|
attr_accessor :id
|
1344
1766
|
|
@@ -1349,10 +1771,14 @@ module Orb
|
|
1349
1771
|
attr_accessor :per_unit_cost_basis
|
1350
1772
|
|
1351
1773
|
sig do
|
1352
|
-
params(
|
1353
|
-
|
1774
|
+
params(
|
1775
|
+
id: String,
|
1776
|
+
expiry_date: T.nilable(Time),
|
1777
|
+
per_unit_cost_basis: T.nilable(String)
|
1778
|
+
).returns(T.attached_class)
|
1779
|
+
end
|
1780
|
+
def self.new(id:, expiry_date:, per_unit_cost_basis:)
|
1354
1781
|
end
|
1355
|
-
def self.new(id:, expiry_date:, per_unit_cost_basis:); end
|
1356
1782
|
|
1357
1783
|
sig do
|
1358
1784
|
override.returns(
|
@@ -1363,28 +1789,53 @@ module Orb
|
|
1363
1789
|
}
|
1364
1790
|
)
|
1365
1791
|
end
|
1366
|
-
def to_hash
|
1792
|
+
def to_hash
|
1793
|
+
end
|
1367
1794
|
end
|
1368
1795
|
|
1369
1796
|
class Customer < Orb::Internal::Type::BaseModel
|
1797
|
+
OrHash =
|
1798
|
+
T.type_alias do
|
1799
|
+
T.any(
|
1800
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
|
1801
|
+
Orb::Internal::AnyHash
|
1802
|
+
)
|
1803
|
+
end
|
1804
|
+
|
1370
1805
|
sig { returns(String) }
|
1371
1806
|
attr_accessor :id
|
1372
1807
|
|
1373
1808
|
sig { returns(T.nilable(String)) }
|
1374
1809
|
attr_accessor :external_customer_id
|
1375
1810
|
|
1376
|
-
sig
|
1377
|
-
|
1811
|
+
sig do
|
1812
|
+
params(
|
1813
|
+
id: String,
|
1814
|
+
external_customer_id: T.nilable(String)
|
1815
|
+
).returns(T.attached_class)
|
1816
|
+
end
|
1817
|
+
def self.new(id:, external_customer_id:)
|
1818
|
+
end
|
1378
1819
|
|
1379
|
-
sig
|
1380
|
-
|
1820
|
+
sig do
|
1821
|
+
override.returns(
|
1822
|
+
{ id: String, external_customer_id: T.nilable(String) }
|
1823
|
+
)
|
1824
|
+
end
|
1825
|
+
def to_hash
|
1826
|
+
end
|
1381
1827
|
end
|
1382
1828
|
|
1383
1829
|
module EntryStatus
|
1384
1830
|
extend Orb::Internal::Type::Enum
|
1385
1831
|
|
1386
1832
|
TaggedSymbol =
|
1387
|
-
T.type_alias
|
1833
|
+
T.type_alias do
|
1834
|
+
T.all(
|
1835
|
+
Symbol,
|
1836
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus
|
1837
|
+
)
|
1838
|
+
end
|
1388
1839
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1389
1840
|
|
1390
1841
|
COMMITTED =
|
@@ -1393,25 +1844,32 @@ module Orb
|
|
1393
1844
|
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1394
1845
|
)
|
1395
1846
|
PENDING =
|
1396
|
-
T.let(
|
1847
|
+
T.let(
|
1848
|
+
:pending,
|
1849
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1850
|
+
)
|
1397
1851
|
|
1398
1852
|
sig do
|
1399
|
-
override
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1853
|
+
override.returns(
|
1854
|
+
T::Array[
|
1855
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus::TaggedSymbol
|
1856
|
+
]
|
1857
|
+
)
|
1858
|
+
end
|
1859
|
+
def self.values
|
1403
1860
|
end
|
1404
|
-
def self.values; end
|
1405
1861
|
end
|
1406
1862
|
end
|
1407
1863
|
|
1408
1864
|
sig do
|
1409
|
-
override
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1865
|
+
override.returns(
|
1866
|
+
T::Array[
|
1867
|
+
Orb::Models::Customers::Credits::LedgerListResponse::Variants
|
1868
|
+
]
|
1869
|
+
)
|
1870
|
+
end
|
1871
|
+
def self.variants
|
1413
1872
|
end
|
1414
|
-
def self.variants; end
|
1415
1873
|
end
|
1416
1874
|
end
|
1417
1875
|
end
|