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