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