orb-billing 0.2.0 → 0.3.1
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 +67 -0
- data/README.md +63 -53
- data/lib/orb/client.rb +4 -4
- data/lib/orb/errors.rb +9 -9
- data/lib/orb/file_part.rb +55 -0
- data/lib/orb/internal/page.rb +7 -11
- data/lib/orb/internal/transport/base_client.rb +10 -10
- data/lib/orb/internal/transport/pooled_net_requester.rb +2 -2
- data/lib/orb/internal/type/array_of.rb +11 -0
- data/lib/orb/internal/type/base_model.rb +33 -23
- data/lib/orb/internal/type/base_page.rb +9 -1
- data/lib/orb/internal/type/boolean.rb +14 -11
- data/lib/orb/internal/type/converter.rb +4 -1
- data/lib/orb/internal/type/enum.rb +19 -16
- data/lib/orb/internal/type/{io_like.rb → file_input.rb} +33 -15
- data/lib/orb/internal/type/hash_of.rb +11 -0
- data/lib/orb/internal/type/request_parameters.rb +3 -10
- data/lib/orb/internal/type/union.rb +10 -1
- data/lib/orb/internal/type/unknown.rb +14 -11
- data/lib/orb/internal/util.rb +88 -64
- data/lib/orb/internal.rb +0 -1
- data/lib/orb/models/alert.rb +68 -71
- data/lib/orb/models/alert_create_for_customer_params.rb +20 -25
- data/lib/orb/models/alert_create_for_external_customer_params.rb +20 -25
- data/lib/orb/models/alert_create_for_subscription_params.rb +20 -25
- data/lib/orb/models/alert_disable_params.rb +5 -9
- data/lib/orb/models/alert_enable_params.rb +5 -9
- data/lib/orb/models/alert_list_params.rb +26 -36
- data/lib/orb/models/alert_retrieve_params.rb +3 -8
- data/lib/orb/models/alert_update_params.rb +14 -18
- data/lib/orb/models/amount_discount.rb +14 -14
- data/lib/orb/models/billable_metric.rb +23 -20
- data/lib/orb/models/billing_cycle_relative_date.rb +2 -5
- data/lib/orb/models/coupon.rb +28 -21
- data/lib/orb/models/coupon_archive_params.rb +3 -8
- data/lib/orb/models/coupon_create_params.rb +29 -34
- data/lib/orb/models/coupon_fetch_params.rb +3 -8
- data/lib/orb/models/coupon_list_params.rb +17 -17
- data/lib/orb/models/coupons/subscription_list_params.rb +12 -15
- data/lib/orb/models/credit_note.rb +100 -166
- data/lib/orb/models/credit_note_create_params.rb +15 -23
- data/lib/orb/models/credit_note_fetch_params.rb +3 -8
- data/lib/orb/models/credit_note_list_params.rb +20 -30
- data/lib/orb/models/customer.rb +224 -271
- data/lib/orb/models/customer_create_params.rb +216 -257
- data/lib/orb/models/customer_delete_params.rb +3 -8
- data/lib/orb/models/customer_fetch_by_external_id_params.rb +3 -8
- data/lib/orb/models/customer_fetch_params.rb +3 -8
- data/lib/orb/models/customer_list_params.rb +20 -30
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rb +3 -8
- data/lib/orb/models/customer_sync_payment_methods_from_gateway_params.rb +3 -8
- data/lib/orb/models/customer_update_by_external_id_params.rb +212 -257
- data/lib/orb/models/customer_update_params.rb +212 -255
- data/lib/orb/models/customers/balance_transaction_create_params.rb +11 -16
- data/lib/orb/models/customers/balance_transaction_create_response.rb +33 -51
- data/lib/orb/models/customers/balance_transaction_list_params.rb +20 -30
- data/lib/orb/models/customers/balance_transaction_list_response.rb +33 -51
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +17 -17
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +23 -27
- data/lib/orb/models/customers/cost_list_params.rb +17 -17
- data/lib/orb/models/customers/cost_list_response.rb +23 -27
- data/lib/orb/models/customers/credit_list_by_external_id_params.rb +18 -22
- data/lib/orb/models/customers/credit_list_by_external_id_response.rb +10 -17
- data/lib/orb/models/customers/credit_list_params.rb +18 -22
- data/lib/orb/models/customers/credit_list_response.rb +10 -17
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +64 -66
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +384 -491
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +63 -66
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +384 -498
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +33 -48
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +384 -494
- data/lib/orb/models/customers/credits/ledger_list_params.rb +32 -48
- data/lib/orb/models/customers/credits/ledger_list_response.rb +383 -501
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +47 -50
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rb +43 -46
- data/lib/orb/models/customers/credits/top_up_create_params.rb +46 -50
- data/lib/orb/models/customers/credits/top_up_create_response.rb +42 -46
- data/lib/orb/models/customers/credits/top_up_delete_by_external_id_params.rb +4 -9
- data/lib/orb/models/customers/credits/top_up_delete_params.rb +4 -9
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rb +12 -15
- data/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rb +43 -46
- data/lib/orb/models/customers/credits/top_up_list_params.rb +12 -15
- data/lib/orb/models/customers/credits/top_up_list_response.rb +42 -46
- data/lib/orb/models/dimensional_price_group.rb +21 -15
- data/lib/orb/models/dimensional_price_group_create_params.rb +17 -23
- data/lib/orb/models/dimensional_price_group_list_params.rb +12 -15
- data/lib/orb/models/dimensional_price_group_retrieve_params.rb +3 -8
- data/lib/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rb +3 -8
- data/lib/orb/models/dimensional_price_groups.rb +3 -7
- data/lib/orb/models/discount.rb +2 -3
- data/lib/orb/models/evaluate_price_group.rb +8 -11
- data/lib/orb/models/event_deprecate_params.rb +3 -8
- data/lib/orb/models/event_deprecate_response.rb +2 -6
- data/lib/orb/models/event_ingest_params.rb +33 -27
- data/lib/orb/models/event_ingest_response.rb +23 -24
- data/lib/orb/models/event_search_params.rb +15 -11
- data/lib/orb/models/event_search_response.rb +27 -22
- data/lib/orb/models/event_update_params.rb +19 -13
- data/lib/orb/models/event_update_response.rb +2 -6
- data/lib/orb/models/events/backfill_close_params.rb +3 -8
- data/lib/orb/models/events/backfill_close_response.rb +34 -39
- data/lib/orb/models/events/backfill_create_params.rb +28 -32
- data/lib/orb/models/events/backfill_create_response.rb +34 -39
- data/lib/orb/models/events/backfill_fetch_params.rb +3 -8
- data/lib/orb/models/events/backfill_fetch_response.rb +34 -39
- data/lib/orb/models/events/backfill_list_params.rb +12 -15
- data/lib/orb/models/events/backfill_list_response.rb +34 -39
- data/lib/orb/models/events/backfill_revert_params.rb +3 -8
- data/lib/orb/models/events/backfill_revert_response.rb +34 -39
- data/lib/orb/models/events/event_volumes.rb +11 -17
- data/lib/orb/models/events/volume_list_params.rb +19 -22
- data/lib/orb/models/invoice.rb +619 -681
- data/lib/orb/models/invoice_create_params.rb +52 -61
- data/lib/orb/models/invoice_fetch_params.rb +3 -8
- data/lib/orb/models/invoice_fetch_upcoming_params.rb +4 -9
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +618 -669
- data/lib/orb/models/invoice_issue_params.rb +10 -14
- data/lib/orb/models/invoice_level_discount.rb +2 -3
- data/lib/orb/models/invoice_line_item_create_params.rb +19 -14
- data/lib/orb/models/invoice_line_item_create_response.rb +281 -306
- data/lib/orb/models/invoice_list_params.rb +51 -66
- data/lib/orb/models/invoice_mark_paid_params.rb +9 -11
- data/lib/orb/models/invoice_pay_params.rb +3 -8
- data/lib/orb/models/invoice_update_params.rb +9 -9
- data/lib/orb/models/invoice_void_params.rb +3 -8
- data/lib/orb/models/item.rb +14 -25
- data/lib/orb/models/item_create_params.rb +5 -9
- data/lib/orb/models/item_fetch_params.rb +3 -8
- data/lib/orb/models/item_list_params.rb +12 -15
- data/lib/orb/models/item_update_params.rb +10 -22
- data/lib/orb/models/metric_create_params.rb +17 -13
- data/lib/orb/models/metric_fetch_params.rb +3 -8
- data/lib/orb/models/metric_list_params.rb +20 -30
- data/lib/orb/models/metric_update_params.rb +9 -9
- data/lib/orb/models/pagination_metadata.rb +3 -7
- data/lib/orb/models/percentage_discount.rb +15 -14
- data/lib/orb/models/plan.rb +259 -291
- data/lib/orb/models/plan_create_params.rb +2070 -2466
- data/lib/orb/models/plan_fetch_params.rb +3 -8
- data/lib/orb/models/plan_list_params.rb +25 -42
- data/lib/orb/models/plan_update_params.rb +12 -10
- data/lib/orb/models/plans/external_plan_id_fetch_params.rb +3 -8
- data/lib/orb/models/plans/external_plan_id_update_params.rb +12 -10
- data/lib/orb/models/price.rb +3842 -5005
- data/lib/orb/models/price_create_params.rb +203 -244
- data/lib/orb/models/price_evaluate_params.rb +21 -30
- data/lib/orb/models/price_evaluate_response.rb +2 -6
- data/lib/orb/models/price_fetch_params.rb +3 -8
- data/lib/orb/models/price_list_params.rb +12 -15
- data/lib/orb/models/price_update_params.rb +9 -9
- data/lib/orb/models/prices/external_price_id_fetch_params.rb +3 -8
- data/lib/orb/models/prices/external_price_id_update_params.rb +9 -9
- data/lib/orb/models/subscription.rb +360 -405
- data/lib/orb/models/subscription_cancel_params.rb +16 -16
- data/lib/orb/models/subscription_cancel_response.rb +358 -399
- data/lib/orb/models/subscription_change_apply_params.rb +7 -10
- data/lib/orb/models/subscription_change_apply_response.rb +384 -418
- data/lib/orb/models/subscription_change_cancel_params.rb +3 -8
- data/lib/orb/models/subscription_change_cancel_response.rb +384 -417
- data/lib/orb/models/subscription_change_retrieve_params.rb +3 -8
- data/lib/orb/models/subscription_change_retrieve_response.rb +385 -417
- data/lib/orb/models/subscription_create_params.rb +4735 -5417
- data/lib/orb/models/subscription_create_response.rb +358 -399
- data/lib/orb/models/subscription_fetch_costs_params.rb +17 -17
- data/lib/orb/models/subscription_fetch_costs_response.rb +23 -27
- data/lib/orb/models/subscription_fetch_params.rb +3 -8
- data/lib/orb/models/subscription_fetch_schedule_params.rb +20 -30
- data/lib/orb/models/subscription_fetch_schedule_response.rb +15 -17
- data/lib/orb/models/subscription_fetch_usage_params.rb +32 -43
- data/lib/orb/models/subscription_list_params.rb +28 -41
- data/lib/orb/models/subscription_price_intervals_params.rb +2560 -3040
- data/lib/orb/models/subscription_price_intervals_response.rb +361 -399
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +4728 -5411
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +361 -398
- data/lib/orb/models/subscription_trigger_phase_params.rb +12 -10
- data/lib/orb/models/subscription_trigger_phase_response.rb +360 -399
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +3 -8
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +361 -398
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rb +5 -9
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +362 -396
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +3 -8
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +362 -396
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +22 -33
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +361 -398
- data/lib/orb/models/subscription_update_params.rb +21 -23
- data/lib/orb/models/subscription_update_trial_params.rb +15 -18
- data/lib/orb/models/subscription_update_trial_response.rb +360 -399
- data/lib/orb/models/subscription_usage.rb +37 -80
- data/lib/orb/models/subscriptions.rb +3 -7
- data/lib/orb/models/top_level_ping_params.rb +3 -8
- data/lib/orb/models/top_level_ping_response.rb +2 -6
- data/lib/orb/models/trial_discount.rb +16 -24
- data/lib/orb/models/usage_discount.rb +15 -14
- data/lib/orb/models.rb +220 -0
- data/lib/orb/request_options.rb +4 -6
- data/lib/orb/resources/alerts.rb +48 -17
- data/lib/orb/resources/coupons/subscriptions.rb +9 -2
- data/lib/orb/resources/coupons.rb +26 -8
- data/lib/orb/resources/credit_notes.rb +17 -4
- data/lib/orb/resources/customers/balance_transactions.rb +18 -3
- data/lib/orb/resources/customers/costs.rb +26 -8
- data/lib/orb/resources/customers/credits/ledger.rb +112 -32
- data/lib/orb/resources/customers/credits/top_ups.rb +67 -20
- data/lib/orb/resources/customers/credits.rb +28 -8
- data/lib/orb/resources/customers.rb +138 -39
- data/lib/orb/resources/dimensional_price_groups.rb +19 -4
- data/lib/orb/resources/events/backfills.rb +32 -9
- data/lib/orb/resources/events/volume.rb +14 -4
- data/lib/orb/resources/events.rb +40 -11
- data/lib/orb/resources/invoice_line_items.rb +16 -6
- data/lib/orb/resources/invoices.rb +77 -17
- data/lib/orb/resources/items.rb +10 -3
- data/lib/orb/resources/metrics.rb +33 -8
- data/lib/orb/resources/plans/external_plan_id.rb +10 -2
- data/lib/orb/resources/plans.rb +47 -11
- data/lib/orb/resources/prices/external_price_id.rb +9 -3
- data/lib/orb/resources/prices.rb +101 -26
- data/lib/orb/resources/subscription_changes.rb +5 -2
- data/lib/orb/resources/subscriptions.rb +292 -78
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +2 -10
- data/rbi/{lib/orb → orb}/client.rbi +4 -4
- data/rbi/{lib/orb → orb}/errors.rbi +1 -1
- data/rbi/orb/file_part.rbi +34 -0
- data/rbi/{lib/orb → orb}/internal/transport/base_client.rbi +19 -5
- data/rbi/{lib/orb → orb}/internal/type/array_of.rbi +3 -0
- data/rbi/{lib/orb → orb}/internal/type/base_model.rbi +7 -1
- data/rbi/{lib/orb → orb}/internal/type/base_page.rbi +2 -0
- data/rbi/{lib/orb → orb}/internal/type/enum.rbi +3 -6
- data/rbi/{lib/orb/internal/type/io_like.rbi → orb/internal/type/file_input.rbi} +5 -2
- data/rbi/{lib/orb → orb}/internal/type/hash_of.rbi +3 -0
- data/rbi/{lib/orb → orb}/internal/type/request_parameters.rbi +1 -1
- data/rbi/{lib/orb → orb}/internal/type/union.rbi +3 -0
- data/rbi/{lib/orb → orb}/internal/util.rbi +28 -19
- data/rbi/{lib/orb → orb}/internal.rbi +0 -1
- data/rbi/{lib/orb → orb}/models/alert.rbi +28 -8
- data/rbi/{lib/orb → orb}/models/alert_create_for_customer_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/alert_create_for_external_customer_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/alert_create_for_subscription_params.rbi +16 -6
- data/rbi/{lib/orb → orb}/models/alert_disable_params.rbi +5 -2
- data/rbi/{lib/orb → orb}/models/alert_enable_params.rbi +5 -2
- data/rbi/{lib/orb → orb}/models/alert_list_params.rbi +6 -0
- data/rbi/{lib/orb → orb}/models/alert_update_params.rbi +11 -4
- data/rbi/{lib/orb → orb}/models/amount_discount.rbi +10 -4
- data/rbi/{lib/orb → orb}/models/billable_metric.rbi +16 -3
- data/rbi/{lib/orb → orb}/models/billing_cycle_relative_date.rbi +1 -1
- data/rbi/{lib/orb → orb}/models/coupon.rbi +10 -3
- data/rbi/{lib/orb → orb}/models/coupon_create_params.rbi +15 -12
- data/rbi/{lib/orb → orb}/models/coupon_list_params.rbi +13 -3
- data/rbi/{lib/orb → orb}/models/coupons/subscription_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/credit_note.rbi +44 -12
- data/rbi/{lib/orb → orb}/models/credit_note_create_params.rbi +15 -6
- data/rbi/{lib/orb → orb}/models/credit_note_list_params.rbi +3 -0
- data/rbi/{lib/orb → orb}/models/customer.rbi +130 -11
- data/rbi/{lib/orb → orb}/models/customer_create_params.rbi +151 -17
- data/rbi/{lib/orb → orb}/models/customer_list_params.rbi +3 -0
- data/rbi/{lib/orb → orb}/models/customer_update_by_external_id_params.rbi +149 -17
- data/rbi/{lib/orb → orb}/models/customer_update_params.rbi +149 -17
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_params.rbi +8 -4
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_create_response.rbi +18 -8
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_params.rbi +3 -0
- data/rbi/{lib/orb → orb}/models/customers/balance_transaction_list_response.rbi +18 -8
- data/rbi/{lib/orb → orb}/models/customers/cost_list_by_external_id_params.rbi +9 -5
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +225 -0
- data/rbi/{lib/orb → orb}/models/customers/cost_list_params.rbi +9 -5
- data/rbi/orb/models/customers/cost_list_response.rbi +223 -0
- data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_params.rbi +13 -3
- data/rbi/{lib/orb → orb}/models/customers/credit_list_by_external_id_response.rbi +1 -2
- data/rbi/{lib/orb → orb}/models/customers/credit_list_params.rbi +13 -3
- data/rbi/{lib/orb → orb}/models/customers/credit_list_response.rbi +1 -2
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +40 -18
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_response.rbi → orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi} +157 -170
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_create_entry_params.rbi +40 -6
- data/rbi/{lib/orb/models/customers/credits/ledger_list_response.rbi → orb/models/customers/credits/ledger_create_entry_response.rbi} +149 -196
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -16
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_by_external_id_response.rbi +148 -229
- data/rbi/{lib/orb → orb}/models/customers/credits/ledger_list_params.rbi +6 -4
- data/rbi/{lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi → orb/models/customers/credits/ledger_list_response.rbi} +149 -343
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_params.rbi +27 -10
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_by_external_id_response.rbi +25 -10
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_params.rbi +27 -4
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_create_response.rbi +25 -10
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_by_external_id_response.rbi +25 -10
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/customers/credits/top_up_list_response.rbi +25 -4
- data/rbi/{lib/orb → orb}/models/dimensional_price_group.rbi +11 -3
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_create_params.rbi +4 -0
- data/rbi/{lib/orb → orb}/models/dimensional_price_group_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/evaluate_price_group.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/event_deprecate_response.rbi +4 -2
- data/rbi/{lib/orb → orb}/models/event_ingest_params.rbi +22 -5
- data/rbi/{lib/orb → orb}/models/event_ingest_response.rbi +15 -4
- data/rbi/{lib/orb → orb}/models/event_search_params.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/event_search_response.rbi +14 -3
- data/rbi/{lib/orb → orb}/models/event_update_params.rbi +10 -3
- data/rbi/{lib/orb → orb}/models/event_update_response.rbi +4 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_close_response.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_create_params.rbi +18 -0
- data/rbi/{lib/orb → orb}/models/events/backfill_create_response.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_fetch_response.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_list_response.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/events/backfill_revert_response.rbi +14 -2
- data/rbi/{lib/orb → orb}/models/events/event_volumes.rbi +8 -4
- data/rbi/{lib/orb → orb}/models/events/volume_list_params.rbi +18 -2
- data/rbi/{lib/orb → orb}/models/invoice.rbi +513 -202
- data/rbi/{lib/orb → orb}/models/invoice_create_params.rbi +38 -6
- data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_response.rbi +513 -216
- data/rbi/{lib/orb → orb}/models/invoice_issue_params.rbi +9 -2
- data/rbi/{lib/orb → orb}/models/invoice_line_item_create_params.rbi +16 -2
- data/rbi/{lib/orb → orb}/models/invoice_line_item_create_response.rbi +279 -182
- data/rbi/{lib/orb → orb}/models/invoice_list_params.rbi +9 -2
- data/rbi/{lib/orb → orb}/models/invoice_mark_paid_params.rbi +9 -2
- data/rbi/{lib/orb → orb}/models/invoice_update_params.rbi +7 -2
- data/rbi/{lib/orb → orb}/models/item.rbi +1 -2
- data/rbi/{lib/orb → orb}/models/item_create_params.rbi +5 -2
- data/rbi/{lib/orb → orb}/models/item_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/item_update_params.rbi +1 -8
- data/rbi/{lib/orb → orb}/models/metric_create_params.rbi +15 -2
- data/rbi/{lib/orb → orb}/models/metric_list_params.rbi +3 -0
- data/rbi/{lib/orb → orb}/models/metric_update_params.rbi +7 -2
- data/rbi/{lib/orb → orb}/models/percentage_discount.rbi +11 -4
- data/rbi/{lib/orb → orb}/models/plan.rbi +207 -120
- data/rbi/{lib/orb → orb}/models/plan_create_params.rbi +1971 -2414
- data/rbi/{lib/orb → orb}/models/plan_list_params.rbi +5 -1
- data/rbi/{lib/orb → orb}/models/plan_update_params.rbi +11 -2
- data/rbi/{lib/orb → orb}/models/plans/external_plan_id_update_params.rbi +11 -2
- data/rbi/{lib/orb → orb}/models/price.rbi +2594 -2957
- data/rbi/{lib/orb → orb}/models/price_create_params.rbi +137 -53
- data/rbi/{lib/orb → orb}/models/price_evaluate_params.rbi +10 -0
- data/rbi/{lib/orb → orb}/models/price_list_params.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/price_update_params.rbi +7 -2
- data/rbi/{lib/orb → orb}/models/prices/external_price_id_update_params.rbi +7 -2
- data/rbi/{lib/orb → orb}/models/subscription.rbi +292 -129
- data/rbi/{lib/orb → orb}/models/subscription_cancel_params.rbi +8 -5
- data/rbi/{lib/orb → orb}/models/subscription_cancel_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_change_apply_params.rbi +7 -2
- data/rbi/{lib/orb → orb}/models/subscription_change_apply_response.rbi +317 -136
- data/rbi/{lib/orb → orb}/models/subscription_change_cancel_response.rbi +317 -136
- data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_response.rbi +317 -136
- data/rbi/{lib/orb → orb}/models/subscription_create_params.rbi +4271 -4270
- data/rbi/{lib/orb → orb}/models/subscription_create_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_fetch_costs_params.rbi +9 -5
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +221 -0
- data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_params.rbi +3 -0
- data/rbi/{lib/orb → orb}/models/subscription_fetch_schedule_response.rbi +8 -2
- data/rbi/{lib/orb → orb}/models/subscription_fetch_usage_params.rbi +13 -4
- data/rbi/{lib/orb → orb}/models/subscription_list_params.rbi +4 -2
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_params.rbi +2354 -2317
- data/rbi/{lib/orb → orb}/models/subscription_price_intervals_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_params.rbi +4280 -3758
- data/rbi/{lib/orb → orb}/models/subscription_schedule_plan_change_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_params.rbi +10 -2
- data/rbi/{lib/orb → orb}/models/subscription_trigger_phase_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +5 -2
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +305 -138
- data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_params.rbi +11 -2
- data/rbi/{lib/orb → orb}/models/subscription_update_fixed_fee_quantity_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_update_params.rbi +15 -0
- data/rbi/{lib/orb → orb}/models/subscription_update_trial_params.rbi +11 -5
- data/rbi/{lib/orb → orb}/models/subscription_update_trial_response.rbi +305 -132
- data/rbi/{lib/orb → orb}/models/subscription_usage.rbi +2 -16
- data/rbi/{lib/orb → orb}/models/trial_discount.rbi +5 -1
- data/rbi/{lib/orb → orb}/models/usage_discount.rbi +11 -3
- data/rbi/orb/models.rbi +220 -0
- data/rbi/{lib/orb → orb}/request_options.rbi +2 -0
- data/rbi/{lib/orb → orb}/resources/alerts.rbi +8 -14
- data/rbi/{lib/orb → orb}/resources/coupons/subscriptions.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/coupons.rbi +6 -18
- data/rbi/{lib/orb → orb}/resources/credit_notes.rbi +3 -9
- data/rbi/{lib/orb → orb}/resources/customers/balance_transactions.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers/costs.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers/credits/ledger.rbi +32 -32
- data/rbi/{lib/orb → orb}/resources/customers/credits/top_ups.rbi +6 -18
- data/rbi/{lib/orb → orb}/resources/customers/credits.rbi +2 -2
- data/rbi/{lib/orb → orb}/resources/customers.rbi +15 -45
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi +1 -4
- data/rbi/{lib/orb → orb}/resources/dimensional_price_groups.rbi +3 -10
- data/rbi/{lib/orb → orb}/resources/events/backfills.rbi +5 -18
- data/rbi/{lib/orb → orb}/resources/events/volume.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/events.rbi +4 -10
- data/rbi/{lib/orb → orb}/resources/invoice_line_items.rbi +1 -1
- data/rbi/{lib/orb → orb}/resources/invoices.rbi +9 -34
- data/rbi/{lib/orb → orb}/resources/items.rbi +4 -17
- data/rbi/{lib/orb → orb}/resources/metrics.rbi +4 -10
- data/rbi/{lib/orb → orb}/resources/plans/external_plan_id.rbi +2 -8
- data/rbi/{lib/orb → orb}/resources/plans.rbi +29 -35
- data/rbi/orb/resources/prices/external_price_id.rbi +103 -0
- data/rbi/{lib/orb → orb}/resources/prices.rbi +117 -124
- data/rbi/{lib/orb → orb}/resources/subscription_changes.rbi +3 -9
- data/rbi/{lib/orb → orb}/resources/subscriptions.rbi +16 -32
- data/rbi/{lib/orb → orb}/resources/top_level.rbi +1 -4
- data/sig/orb/file_part.rbs +21 -0
- data/sig/orb/internal/transport/base_client.rbs +9 -3
- data/sig/orb/internal/type/array_of.rbs +2 -0
- data/sig/orb/internal/type/base_model.rbs +4 -0
- data/sig/orb/internal/type/enum.rbs +2 -2
- data/sig/orb/internal/type/{io_like.rbs → file_input.rbs} +1 -1
- data/sig/orb/internal/type/hash_of.rbs +2 -0
- data/sig/orb/internal/type/union.rbs +2 -0
- data/sig/orb/internal/util.rbs +16 -12
- data/sig/orb/models/coupon_create_params.rbs +9 -10
- data/sig/orb/models/customer_create_params.rbs +9 -10
- data/sig/orb/models/customer_update_by_external_id_params.rbs +9 -10
- data/sig/orb/models/customer_update_params.rbs +9 -10
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +113 -113
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +113 -113
- data/sig/orb/models/invoice.rbs +54 -54
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +54 -54
- data/sig/orb/models/invoice_line_item_create_response.rbs +54 -54
- data/sig/orb/models/plan.rbs +21 -21
- data/sig/orb/models/plan_create_params.rbs +653 -653
- data/sig/orb/models/price.rbs +1517 -1521
- data/sig/orb/models/subscription.rbs +34 -34
- data/sig/orb/models/subscription_cancel_response.rbs +34 -34
- data/sig/orb/models/subscription_change_apply_response.rbs +34 -34
- data/sig/orb/models/subscription_change_cancel_response.rbs +34 -34
- data/sig/orb/models/subscription_change_retrieve_response.rbs +34 -34
- data/sig/orb/models/subscription_create_params.rbs +1348 -1348
- data/sig/orb/models/subscription_create_response.rbs +34 -34
- data/sig/orb/models/subscription_price_intervals_params.rbs +767 -769
- data/sig/orb/models/subscription_price_intervals_response.rbs +34 -34
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +1348 -1348
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +34 -34
- data/sig/orb/models/subscription_trigger_phase_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +34 -34
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +34 -34
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +34 -34
- data/sig/orb/models/subscription_update_trial_response.rbs +34 -34
- data/sig/orb/models.rbs +215 -0
- metadata +230 -224
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +0 -208
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +0 -206
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +0 -204
- data/rbi/lib/orb/resources/prices/external_price_id.rbi +0 -106
- /data/rbi/{lib/orb → orb}/internal/page.rbi +0 -0
- /data/rbi/{lib/orb → orb}/internal/transport/pooled_net_requester.rbi +0 -0
- /data/rbi/{lib/orb → orb}/internal/type/boolean.rbi +0 -0
- /data/rbi/{lib/orb → orb}/internal/type/converter.rbi +0 -0
- /data/rbi/{lib/orb → orb}/internal/type/unknown.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/alert_retrieve_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/coupon_archive_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/coupon_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/credit_note_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customer_delete_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customer_fetch_by_external_id_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customer_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customer_sync_payment_methods_from_gateway_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_by_external_id_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/customers/credits/top_up_delete_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/dimensional_price_group_retrieve_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/dimensional_price_groups.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/event_deprecate_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/events/backfill_close_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/events/backfill_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/events/backfill_revert_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_fetch_upcoming_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_level_discount.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_pay_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/invoice_void_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/item_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/metric_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/pagination_metadata.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plan_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/plans/external_plan_id_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_evaluate_response.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/price_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/prices/external_price_id_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_change_cancel_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_change_retrieve_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_fetch_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_unschedule_cancellation_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscription_unschedule_pending_plan_changes_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/subscriptions.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/top_level_ping_params.rbi +0 -0
- /data/rbi/{lib/orb → orb}/models/top_level_ping_response.rbi +0 -0
- /data/rbi/{lib/orb → orb}/version.rbi +0 -0
@@ -13,24 +13,22 @@ module Orb
|
|
13
13
|
|
14
14
|
discriminator :entry_type
|
15
15
|
|
16
|
-
variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
16
|
+
variant :increment, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment }
|
17
17
|
|
18
|
-
variant :decrement, -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
18
|
+
variant :decrement, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement }
|
19
19
|
|
20
|
-
variant :expiration_change,
|
21
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry }
|
20
|
+
variant :expiration_change, -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange }
|
22
21
|
|
23
22
|
variant :credit_block_expiry,
|
24
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::
|
23
|
+
-> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry }
|
25
24
|
|
26
|
-
variant :void, -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
25
|
+
variant :void, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void }
|
27
26
|
|
28
|
-
variant :void_initiated,
|
29
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry }
|
27
|
+
variant :void_initiated, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated }
|
30
28
|
|
31
|
-
variant :amendment, -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
29
|
+
variant :amendment, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment }
|
32
30
|
|
33
|
-
class
|
31
|
+
class Increment < Orb::Internal::Type::BaseModel
|
34
32
|
# @!attribute id
|
35
33
|
#
|
36
34
|
# @return [String]
|
@@ -48,9 +46,8 @@ module Orb
|
|
48
46
|
|
49
47
|
# @!attribute credit_block
|
50
48
|
#
|
51
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
52
|
-
required :credit_block,
|
53
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::CreditBlock }
|
49
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock]
|
50
|
+
required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock }
|
54
51
|
|
55
52
|
# @!attribute currency
|
56
53
|
#
|
@@ -59,9 +56,8 @@ module Orb
|
|
59
56
|
|
60
57
|
# @!attribute customer
|
61
58
|
#
|
62
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
63
|
-
required :customer,
|
64
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry::Customer }
|
59
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer]
|
60
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer }
|
65
61
|
|
66
62
|
# @!attribute description
|
67
63
|
#
|
@@ -75,9 +71,9 @@ module Orb
|
|
75
71
|
|
76
72
|
# @!attribute entry_status
|
77
73
|
#
|
78
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
74
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus]
|
79
75
|
required :entry_status,
|
80
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
76
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus }
|
81
77
|
|
82
78
|
# @!attribute entry_type
|
83
79
|
#
|
@@ -103,43 +99,39 @@ module Orb
|
|
103
99
|
# @return [Float]
|
104
100
|
required :starting_balance, Float
|
105
101
|
|
106
|
-
# @!
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
|
138
|
-
#
|
139
|
-
|
140
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
141
|
-
|
142
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::IncrementLedgerEntry#credit_block
|
102
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :increment)
|
103
|
+
# Some parameter documentations has been truncated, see
|
104
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::Increment} for more
|
105
|
+
# details.
|
106
|
+
#
|
107
|
+
# @param id [String]
|
108
|
+
#
|
109
|
+
# @param amount [Float]
|
110
|
+
#
|
111
|
+
# @param created_at [Time]
|
112
|
+
#
|
113
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock]
|
114
|
+
#
|
115
|
+
# @param currency [String]
|
116
|
+
#
|
117
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer]
|
118
|
+
#
|
119
|
+
# @param description [String, nil]
|
120
|
+
#
|
121
|
+
# @param ending_balance [Float]
|
122
|
+
#
|
123
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Increment::EntryStatus]
|
124
|
+
#
|
125
|
+
# @param ledger_sequence_number [Integer]
|
126
|
+
#
|
127
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
128
|
+
# ...
|
129
|
+
#
|
130
|
+
# @param starting_balance [Float]
|
131
|
+
#
|
132
|
+
# @param entry_type [Symbol, :increment]
|
133
|
+
|
134
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#credit_block
|
143
135
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
144
136
|
# @!attribute id
|
145
137
|
#
|
@@ -156,17 +148,13 @@ module Orb
|
|
156
148
|
# @return [String, nil]
|
157
149
|
required :per_unit_cost_basis, String, nil?: true
|
158
150
|
|
159
|
-
# @!
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
# #
|
164
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
165
|
-
|
166
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
151
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
152
|
+
# @param id [String]
|
153
|
+
# @param expiry_date [Time, nil]
|
154
|
+
# @param per_unit_cost_basis [String, nil]
|
167
155
|
end
|
168
156
|
|
169
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
157
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#customer
|
170
158
|
class Customer < Orb::Internal::Type::BaseModel
|
171
159
|
# @!attribute id
|
172
160
|
#
|
@@ -178,31 +166,24 @@ module Orb
|
|
178
166
|
# @return [String, nil]
|
179
167
|
required :external_customer_id, String, nil?: true
|
180
168
|
|
181
|
-
# @!
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# #
|
185
|
-
# def initialize(id:, external_customer_id:, **) = super
|
186
|
-
|
187
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
169
|
+
# @!method initialize(id:, external_customer_id:)
|
170
|
+
# @param id [String]
|
171
|
+
# @param external_customer_id [String, nil]
|
188
172
|
end
|
189
173
|
|
190
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
174
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Increment#entry_status
|
191
175
|
module EntryStatus
|
192
176
|
extend Orb::Internal::Type::Enum
|
193
177
|
|
194
178
|
COMMITTED = :committed
|
195
179
|
PENDING = :pending
|
196
180
|
|
197
|
-
|
198
|
-
|
199
|
-
# @!parse
|
200
|
-
# # @return [Array<Symbol>]
|
201
|
-
# def self.values; end
|
181
|
+
# @!method self.values
|
182
|
+
# @return [Array<Symbol>]
|
202
183
|
end
|
203
184
|
end
|
204
185
|
|
205
|
-
class
|
186
|
+
class Decrement < Orb::Internal::Type::BaseModel
|
206
187
|
# @!attribute id
|
207
188
|
#
|
208
189
|
# @return [String]
|
@@ -220,9 +201,8 @@ module Orb
|
|
220
201
|
|
221
202
|
# @!attribute credit_block
|
222
203
|
#
|
223
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
224
|
-
required :credit_block,
|
225
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::CreditBlock }
|
204
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock]
|
205
|
+
required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock }
|
226
206
|
|
227
207
|
# @!attribute currency
|
228
208
|
#
|
@@ -231,9 +211,8 @@ module Orb
|
|
231
211
|
|
232
212
|
# @!attribute customer
|
233
213
|
#
|
234
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
235
|
-
required :customer,
|
236
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry::Customer }
|
214
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer]
|
215
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer }
|
237
216
|
|
238
217
|
# @!attribute description
|
239
218
|
#
|
@@ -247,9 +226,9 @@ module Orb
|
|
247
226
|
|
248
227
|
# @!attribute entry_status
|
249
228
|
#
|
250
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
229
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
|
251
230
|
required :entry_status,
|
252
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
231
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus }
|
253
232
|
|
254
233
|
# @!attribute entry_type
|
255
234
|
#
|
@@ -290,49 +269,45 @@ module Orb
|
|
290
269
|
# @return [String, nil]
|
291
270
|
optional :price_id, String, nil?: true
|
292
271
|
|
293
|
-
# @!
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
#
|
299
|
-
#
|
300
|
-
#
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
|
331
|
-
#
|
332
|
-
|
333
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
334
|
-
|
335
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::DecrementLedgerEntry#credit_block
|
272
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, event_id: nil, invoice_id: nil, price_id: nil, entry_type: :decrement)
|
273
|
+
# Some parameter documentations has been truncated, see
|
274
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::Decrement} for more
|
275
|
+
# details.
|
276
|
+
#
|
277
|
+
# @param id [String]
|
278
|
+
#
|
279
|
+
# @param amount [Float]
|
280
|
+
#
|
281
|
+
# @param created_at [Time]
|
282
|
+
#
|
283
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock]
|
284
|
+
#
|
285
|
+
# @param currency [String]
|
286
|
+
#
|
287
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer]
|
288
|
+
#
|
289
|
+
# @param description [String, nil]
|
290
|
+
#
|
291
|
+
# @param ending_balance [Float]
|
292
|
+
#
|
293
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Decrement::EntryStatus]
|
294
|
+
#
|
295
|
+
# @param ledger_sequence_number [Integer]
|
296
|
+
#
|
297
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
298
|
+
# ...
|
299
|
+
#
|
300
|
+
# @param starting_balance [Float]
|
301
|
+
#
|
302
|
+
# @param event_id [String, nil]
|
303
|
+
#
|
304
|
+
# @param invoice_id [String, nil]
|
305
|
+
#
|
306
|
+
# @param price_id [String, nil]
|
307
|
+
#
|
308
|
+
# @param entry_type [Symbol, :decrement]
|
309
|
+
|
310
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#credit_block
|
336
311
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
337
312
|
# @!attribute id
|
338
313
|
#
|
@@ -349,17 +324,13 @@ module Orb
|
|
349
324
|
# @return [String, nil]
|
350
325
|
required :per_unit_cost_basis, String, nil?: true
|
351
326
|
|
352
|
-
# @!
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
# #
|
357
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
358
|
-
|
359
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
327
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
328
|
+
# @param id [String]
|
329
|
+
# @param expiry_date [Time, nil]
|
330
|
+
# @param per_unit_cost_basis [String, nil]
|
360
331
|
end
|
361
332
|
|
362
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
333
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#customer
|
363
334
|
class Customer < Orb::Internal::Type::BaseModel
|
364
335
|
# @!attribute id
|
365
336
|
#
|
@@ -371,31 +342,24 @@ module Orb
|
|
371
342
|
# @return [String, nil]
|
372
343
|
required :external_customer_id, String, nil?: true
|
373
344
|
|
374
|
-
# @!
|
375
|
-
#
|
376
|
-
#
|
377
|
-
# #
|
378
|
-
# def initialize(id:, external_customer_id:, **) = super
|
379
|
-
|
380
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
345
|
+
# @!method initialize(id:, external_customer_id:)
|
346
|
+
# @param id [String]
|
347
|
+
# @param external_customer_id [String, nil]
|
381
348
|
end
|
382
349
|
|
383
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
350
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Decrement#entry_status
|
384
351
|
module EntryStatus
|
385
352
|
extend Orb::Internal::Type::Enum
|
386
353
|
|
387
354
|
COMMITTED = :committed
|
388
355
|
PENDING = :pending
|
389
356
|
|
390
|
-
|
391
|
-
|
392
|
-
# @!parse
|
393
|
-
# # @return [Array<Symbol>]
|
394
|
-
# def self.values; end
|
357
|
+
# @!method self.values
|
358
|
+
# @return [Array<Symbol>]
|
395
359
|
end
|
396
360
|
end
|
397
361
|
|
398
|
-
class
|
362
|
+
class ExpirationChange < Orb::Internal::Type::BaseModel
|
399
363
|
# @!attribute id
|
400
364
|
#
|
401
365
|
# @return [String]
|
@@ -413,9 +377,9 @@ module Orb
|
|
413
377
|
|
414
378
|
# @!attribute credit_block
|
415
379
|
#
|
416
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
380
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
|
417
381
|
required :credit_block,
|
418
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::
|
382
|
+
-> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock }
|
419
383
|
|
420
384
|
# @!attribute currency
|
421
385
|
#
|
@@ -424,9 +388,8 @@ module Orb
|
|
424
388
|
|
425
389
|
# @!attribute customer
|
426
390
|
#
|
427
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
428
|
-
required :customer,
|
429
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry::Customer }
|
391
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer]
|
392
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer }
|
430
393
|
|
431
394
|
# @!attribute description
|
432
395
|
#
|
@@ -440,9 +403,9 @@ module Orb
|
|
440
403
|
|
441
404
|
# @!attribute entry_status
|
442
405
|
#
|
443
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
406
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
|
444
407
|
required :entry_status,
|
445
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
408
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus }
|
446
409
|
|
447
410
|
# @!attribute entry_type
|
448
411
|
#
|
@@ -473,45 +436,41 @@ module Orb
|
|
473
436
|
# @return [Float]
|
474
437
|
required :starting_balance, Float
|
475
438
|
|
476
|
-
# @!
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
508
|
-
#
|
509
|
-
|
510
|
-
#
|
511
|
-
|
512
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
513
|
-
|
514
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChangeLedgerEntry#credit_block
|
439
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, new_block_expiry_date:, starting_balance:, entry_type: :expiration_change)
|
440
|
+
# Some parameter documentations has been truncated, see
|
441
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange} for more
|
442
|
+
# details.
|
443
|
+
#
|
444
|
+
# @param id [String]
|
445
|
+
#
|
446
|
+
# @param amount [Float]
|
447
|
+
#
|
448
|
+
# @param created_at [Time]
|
449
|
+
#
|
450
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock]
|
451
|
+
#
|
452
|
+
# @param currency [String]
|
453
|
+
#
|
454
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer]
|
455
|
+
#
|
456
|
+
# @param description [String, nil]
|
457
|
+
#
|
458
|
+
# @param ending_balance [Float]
|
459
|
+
#
|
460
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::EntryStatus]
|
461
|
+
#
|
462
|
+
# @param ledger_sequence_number [Integer]
|
463
|
+
#
|
464
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
465
|
+
# ...
|
466
|
+
#
|
467
|
+
# @param new_block_expiry_date [Time, nil]
|
468
|
+
#
|
469
|
+
# @param starting_balance [Float]
|
470
|
+
#
|
471
|
+
# @param entry_type [Symbol, :expiration_change]
|
472
|
+
|
473
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#credit_block
|
515
474
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
516
475
|
# @!attribute id
|
517
476
|
#
|
@@ -528,17 +487,13 @@ module Orb
|
|
528
487
|
# @return [String, nil]
|
529
488
|
required :per_unit_cost_basis, String, nil?: true
|
530
489
|
|
531
|
-
# @!
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
# #
|
536
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
537
|
-
|
538
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
490
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
491
|
+
# @param id [String]
|
492
|
+
# @param expiry_date [Time, nil]
|
493
|
+
# @param per_unit_cost_basis [String, nil]
|
539
494
|
end
|
540
495
|
|
541
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
496
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#customer
|
542
497
|
class Customer < Orb::Internal::Type::BaseModel
|
543
498
|
# @!attribute id
|
544
499
|
#
|
@@ -550,31 +505,24 @@ module Orb
|
|
550
505
|
# @return [String, nil]
|
551
506
|
required :external_customer_id, String, nil?: true
|
552
507
|
|
553
|
-
# @!
|
554
|
-
#
|
555
|
-
#
|
556
|
-
# #
|
557
|
-
# def initialize(id:, external_customer_id:, **) = super
|
558
|
-
|
559
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
508
|
+
# @!method initialize(id:, external_customer_id:)
|
509
|
+
# @param id [String]
|
510
|
+
# @param external_customer_id [String, nil]
|
560
511
|
end
|
561
512
|
|
562
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
513
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange#entry_status
|
563
514
|
module EntryStatus
|
564
515
|
extend Orb::Internal::Type::Enum
|
565
516
|
|
566
517
|
COMMITTED = :committed
|
567
518
|
PENDING = :pending
|
568
519
|
|
569
|
-
|
570
|
-
|
571
|
-
# @!parse
|
572
|
-
# # @return [Array<Symbol>]
|
573
|
-
# def self.values; end
|
520
|
+
# @!method self.values
|
521
|
+
# @return [Array<Symbol>]
|
574
522
|
end
|
575
523
|
end
|
576
524
|
|
577
|
-
class
|
525
|
+
class CreditBlockExpiry < Orb::Internal::Type::BaseModel
|
578
526
|
# @!attribute id
|
579
527
|
#
|
580
528
|
# @return [String]
|
@@ -592,9 +540,9 @@ module Orb
|
|
592
540
|
|
593
541
|
# @!attribute credit_block
|
594
542
|
#
|
595
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
543
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
|
596
544
|
required :credit_block,
|
597
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::
|
545
|
+
-> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock }
|
598
546
|
|
599
547
|
# @!attribute currency
|
600
548
|
#
|
@@ -603,9 +551,9 @@ module Orb
|
|
603
551
|
|
604
552
|
# @!attribute customer
|
605
553
|
#
|
606
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
554
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
|
607
555
|
required :customer,
|
608
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::
|
556
|
+
-> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer }
|
609
557
|
|
610
558
|
# @!attribute description
|
611
559
|
#
|
@@ -619,9 +567,9 @@ module Orb
|
|
619
567
|
|
620
568
|
# @!attribute entry_status
|
621
569
|
#
|
622
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
570
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
|
623
571
|
required :entry_status,
|
624
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
572
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus }
|
625
573
|
|
626
574
|
# @!attribute entry_type
|
627
575
|
#
|
@@ -647,43 +595,39 @@ module Orb
|
|
647
595
|
# @return [Float]
|
648
596
|
required :starting_balance, Float
|
649
597
|
|
650
|
-
# @!
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
#
|
655
|
-
#
|
656
|
-
#
|
657
|
-
#
|
658
|
-
#
|
659
|
-
#
|
660
|
-
#
|
661
|
-
#
|
662
|
-
#
|
663
|
-
#
|
664
|
-
#
|
665
|
-
#
|
666
|
-
#
|
667
|
-
#
|
668
|
-
#
|
669
|
-
#
|
670
|
-
#
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
|
682
|
-
#
|
683
|
-
|
684
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
685
|
-
|
686
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiryLedgerEntry#credit_block
|
598
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :credit_block_expiry)
|
599
|
+
# Some parameter documentations has been truncated, see
|
600
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry} for
|
601
|
+
# more details.
|
602
|
+
#
|
603
|
+
# @param id [String]
|
604
|
+
#
|
605
|
+
# @param amount [Float]
|
606
|
+
#
|
607
|
+
# @param created_at [Time]
|
608
|
+
#
|
609
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock]
|
610
|
+
#
|
611
|
+
# @param currency [String]
|
612
|
+
#
|
613
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer]
|
614
|
+
#
|
615
|
+
# @param description [String, nil]
|
616
|
+
#
|
617
|
+
# @param ending_balance [Float]
|
618
|
+
#
|
619
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::EntryStatus]
|
620
|
+
#
|
621
|
+
# @param ledger_sequence_number [Integer]
|
622
|
+
#
|
623
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
624
|
+
# ...
|
625
|
+
#
|
626
|
+
# @param starting_balance [Float]
|
627
|
+
#
|
628
|
+
# @param entry_type [Symbol, :credit_block_expiry]
|
629
|
+
|
630
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#credit_block
|
687
631
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
688
632
|
# @!attribute id
|
689
633
|
#
|
@@ -700,17 +644,13 @@ module Orb
|
|
700
644
|
# @return [String, nil]
|
701
645
|
required :per_unit_cost_basis, String, nil?: true
|
702
646
|
|
703
|
-
# @!
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
# #
|
708
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
709
|
-
|
710
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
647
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
648
|
+
# @param id [String]
|
649
|
+
# @param expiry_date [Time, nil]
|
650
|
+
# @param per_unit_cost_basis [String, nil]
|
711
651
|
end
|
712
652
|
|
713
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
653
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#customer
|
714
654
|
class Customer < Orb::Internal::Type::BaseModel
|
715
655
|
# @!attribute id
|
716
656
|
#
|
@@ -722,31 +662,24 @@ module Orb
|
|
722
662
|
# @return [String, nil]
|
723
663
|
required :external_customer_id, String, nil?: true
|
724
664
|
|
725
|
-
# @!
|
726
|
-
#
|
727
|
-
#
|
728
|
-
# #
|
729
|
-
# def initialize(id:, external_customer_id:, **) = super
|
730
|
-
|
731
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
665
|
+
# @!method initialize(id:, external_customer_id:)
|
666
|
+
# @param id [String]
|
667
|
+
# @param external_customer_id [String, nil]
|
732
668
|
end
|
733
669
|
|
734
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
670
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry#entry_status
|
735
671
|
module EntryStatus
|
736
672
|
extend Orb::Internal::Type::Enum
|
737
673
|
|
738
674
|
COMMITTED = :committed
|
739
675
|
PENDING = :pending
|
740
676
|
|
741
|
-
|
742
|
-
|
743
|
-
# @!parse
|
744
|
-
# # @return [Array<Symbol>]
|
745
|
-
# def self.values; end
|
677
|
+
# @!method self.values
|
678
|
+
# @return [Array<Symbol>]
|
746
679
|
end
|
747
680
|
end
|
748
681
|
|
749
|
-
class
|
682
|
+
class Void < Orb::Internal::Type::BaseModel
|
750
683
|
# @!attribute id
|
751
684
|
#
|
752
685
|
# @return [String]
|
@@ -764,9 +697,8 @@ module Orb
|
|
764
697
|
|
765
698
|
# @!attribute credit_block
|
766
699
|
#
|
767
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
768
|
-
required :credit_block,
|
769
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry::CreditBlock }
|
700
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock]
|
701
|
+
required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock }
|
770
702
|
|
771
703
|
# @!attribute currency
|
772
704
|
#
|
@@ -775,8 +707,8 @@ module Orb
|
|
775
707
|
|
776
708
|
# @!attribute customer
|
777
709
|
#
|
778
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
779
|
-
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
710
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer]
|
711
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer }
|
780
712
|
|
781
713
|
# @!attribute description
|
782
714
|
#
|
@@ -790,9 +722,9 @@ module Orb
|
|
790
722
|
|
791
723
|
# @!attribute entry_status
|
792
724
|
#
|
793
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
725
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
|
794
726
|
required :entry_status,
|
795
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
727
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus }
|
796
728
|
|
797
729
|
# @!attribute entry_type
|
798
730
|
#
|
@@ -828,47 +760,42 @@ module Orb
|
|
828
760
|
# @return [String, nil]
|
829
761
|
required :void_reason, String, nil?: true
|
830
762
|
|
831
|
-
# @!
|
832
|
-
#
|
833
|
-
#
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
838
|
-
#
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
#
|
850
|
-
#
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
856
|
-
#
|
857
|
-
#
|
858
|
-
#
|
859
|
-
#
|
860
|
-
#
|
861
|
-
#
|
862
|
-
#
|
863
|
-
#
|
864
|
-
#
|
865
|
-
|
866
|
-
#
|
867
|
-
# end
|
868
|
-
|
869
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
870
|
-
|
871
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::VoidLedgerEntry#credit_block
|
763
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, void_amount:, void_reason:, entry_type: :void)
|
764
|
+
# Some parameter documentations has been truncated, see
|
765
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::Void} for more details.
|
766
|
+
#
|
767
|
+
# @param id [String]
|
768
|
+
#
|
769
|
+
# @param amount [Float]
|
770
|
+
#
|
771
|
+
# @param created_at [Time]
|
772
|
+
#
|
773
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock]
|
774
|
+
#
|
775
|
+
# @param currency [String]
|
776
|
+
#
|
777
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer]
|
778
|
+
#
|
779
|
+
# @param description [String, nil]
|
780
|
+
#
|
781
|
+
# @param ending_balance [Float]
|
782
|
+
#
|
783
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Void::EntryStatus]
|
784
|
+
#
|
785
|
+
# @param ledger_sequence_number [Integer]
|
786
|
+
#
|
787
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
788
|
+
# ...
|
789
|
+
#
|
790
|
+
# @param starting_balance [Float]
|
791
|
+
#
|
792
|
+
# @param void_amount [Float]
|
793
|
+
#
|
794
|
+
# @param void_reason [String, nil]
|
795
|
+
#
|
796
|
+
# @param entry_type [Symbol, :void]
|
797
|
+
|
798
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Void#credit_block
|
872
799
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
873
800
|
# @!attribute id
|
874
801
|
#
|
@@ -885,17 +812,13 @@ module Orb
|
|
885
812
|
# @return [String, nil]
|
886
813
|
required :per_unit_cost_basis, String, nil?: true
|
887
814
|
|
888
|
-
# @!
|
889
|
-
#
|
890
|
-
#
|
891
|
-
#
|
892
|
-
# #
|
893
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
894
|
-
|
895
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
815
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
816
|
+
# @param id [String]
|
817
|
+
# @param expiry_date [Time, nil]
|
818
|
+
# @param per_unit_cost_basis [String, nil]
|
896
819
|
end
|
897
820
|
|
898
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
821
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Void#customer
|
899
822
|
class Customer < Orb::Internal::Type::BaseModel
|
900
823
|
# @!attribute id
|
901
824
|
#
|
@@ -907,31 +830,24 @@ module Orb
|
|
907
830
|
# @return [String, nil]
|
908
831
|
required :external_customer_id, String, nil?: true
|
909
832
|
|
910
|
-
# @!
|
911
|
-
#
|
912
|
-
#
|
913
|
-
# #
|
914
|
-
# def initialize(id:, external_customer_id:, **) = super
|
915
|
-
|
916
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
833
|
+
# @!method initialize(id:, external_customer_id:)
|
834
|
+
# @param id [String]
|
835
|
+
# @param external_customer_id [String, nil]
|
917
836
|
end
|
918
837
|
|
919
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
838
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Void#entry_status
|
920
839
|
module EntryStatus
|
921
840
|
extend Orb::Internal::Type::Enum
|
922
841
|
|
923
842
|
COMMITTED = :committed
|
924
843
|
PENDING = :pending
|
925
844
|
|
926
|
-
|
927
|
-
|
928
|
-
# @!parse
|
929
|
-
# # @return [Array<Symbol>]
|
930
|
-
# def self.values; end
|
845
|
+
# @!method self.values
|
846
|
+
# @return [Array<Symbol>]
|
931
847
|
end
|
932
848
|
end
|
933
849
|
|
934
|
-
class
|
850
|
+
class VoidInitiated < Orb::Internal::Type::BaseModel
|
935
851
|
# @!attribute id
|
936
852
|
#
|
937
853
|
# @return [String]
|
@@ -949,9 +865,9 @@ module Orb
|
|
949
865
|
|
950
866
|
# @!attribute credit_block
|
951
867
|
#
|
952
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
868
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
|
953
869
|
required :credit_block,
|
954
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::
|
870
|
+
-> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock }
|
955
871
|
|
956
872
|
# @!attribute currency
|
957
873
|
#
|
@@ -960,9 +876,8 @@ module Orb
|
|
960
876
|
|
961
877
|
# @!attribute customer
|
962
878
|
#
|
963
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
964
|
-
required :customer,
|
965
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry::Customer }
|
879
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer]
|
880
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer }
|
966
881
|
|
967
882
|
# @!attribute description
|
968
883
|
#
|
@@ -976,9 +891,9 @@ module Orb
|
|
976
891
|
|
977
892
|
# @!attribute entry_status
|
978
893
|
#
|
979
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
894
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
|
980
895
|
required :entry_status,
|
981
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
896
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus }
|
982
897
|
|
983
898
|
# @!attribute entry_type
|
984
899
|
#
|
@@ -1019,49 +934,45 @@ module Orb
|
|
1019
934
|
# @return [String, nil]
|
1020
935
|
required :void_reason, String, nil?: true
|
1021
936
|
|
1022
|
-
# @!
|
1023
|
-
#
|
1024
|
-
#
|
1025
|
-
#
|
1026
|
-
#
|
1027
|
-
#
|
1028
|
-
#
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
#
|
1032
|
-
#
|
1033
|
-
#
|
1034
|
-
#
|
1035
|
-
#
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
#
|
1039
|
-
#
|
1040
|
-
#
|
1041
|
-
#
|
1042
|
-
#
|
1043
|
-
#
|
1044
|
-
#
|
1045
|
-
#
|
1046
|
-
#
|
1047
|
-
#
|
1048
|
-
#
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
#
|
1059
|
-
|
1060
|
-
#
|
1061
|
-
|
1062
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
1063
|
-
|
1064
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiatedLedgerEntry#credit_block
|
937
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, new_block_expiry_date:, starting_balance:, void_amount:, void_reason:, entry_type: :void_initiated)
|
938
|
+
# Some parameter documentations has been truncated, see
|
939
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated} for more
|
940
|
+
# details.
|
941
|
+
#
|
942
|
+
# @param id [String]
|
943
|
+
#
|
944
|
+
# @param amount [Float]
|
945
|
+
#
|
946
|
+
# @param created_at [Time]
|
947
|
+
#
|
948
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock]
|
949
|
+
#
|
950
|
+
# @param currency [String]
|
951
|
+
#
|
952
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer]
|
953
|
+
#
|
954
|
+
# @param description [String, nil]
|
955
|
+
#
|
956
|
+
# @param ending_balance [Float]
|
957
|
+
#
|
958
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::EntryStatus]
|
959
|
+
#
|
960
|
+
# @param ledger_sequence_number [Integer]
|
961
|
+
#
|
962
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
963
|
+
# ...
|
964
|
+
#
|
965
|
+
# @param new_block_expiry_date [Time]
|
966
|
+
#
|
967
|
+
# @param starting_balance [Float]
|
968
|
+
#
|
969
|
+
# @param void_amount [Float]
|
970
|
+
#
|
971
|
+
# @param void_reason [String, nil]
|
972
|
+
#
|
973
|
+
# @param entry_type [Symbol, :void_initiated]
|
974
|
+
|
975
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#credit_block
|
1065
976
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1066
977
|
# @!attribute id
|
1067
978
|
#
|
@@ -1078,17 +989,13 @@ module Orb
|
|
1078
989
|
# @return [String, nil]
|
1079
990
|
required :per_unit_cost_basis, String, nil?: true
|
1080
991
|
|
1081
|
-
# @!
|
1082
|
-
#
|
1083
|
-
#
|
1084
|
-
#
|
1085
|
-
# #
|
1086
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
1087
|
-
|
1088
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
992
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
993
|
+
# @param id [String]
|
994
|
+
# @param expiry_date [Time, nil]
|
995
|
+
# @param per_unit_cost_basis [String, nil]
|
1089
996
|
end
|
1090
997
|
|
1091
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
998
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#customer
|
1092
999
|
class Customer < Orb::Internal::Type::BaseModel
|
1093
1000
|
# @!attribute id
|
1094
1001
|
#
|
@@ -1100,31 +1007,24 @@ module Orb
|
|
1100
1007
|
# @return [String, nil]
|
1101
1008
|
required :external_customer_id, String, nil?: true
|
1102
1009
|
|
1103
|
-
# @!
|
1104
|
-
#
|
1105
|
-
#
|
1106
|
-
# #
|
1107
|
-
# def initialize(id:, external_customer_id:, **) = super
|
1108
|
-
|
1109
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
1010
|
+
# @!method initialize(id:, external_customer_id:)
|
1011
|
+
# @param id [String]
|
1012
|
+
# @param external_customer_id [String, nil]
|
1110
1013
|
end
|
1111
1014
|
|
1112
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
1015
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated#entry_status
|
1113
1016
|
module EntryStatus
|
1114
1017
|
extend Orb::Internal::Type::Enum
|
1115
1018
|
|
1116
1019
|
COMMITTED = :committed
|
1117
1020
|
PENDING = :pending
|
1118
1021
|
|
1119
|
-
|
1120
|
-
|
1121
|
-
# @!parse
|
1122
|
-
# # @return [Array<Symbol>]
|
1123
|
-
# def self.values; end
|
1022
|
+
# @!method self.values
|
1023
|
+
# @return [Array<Symbol>]
|
1124
1024
|
end
|
1125
1025
|
end
|
1126
1026
|
|
1127
|
-
class
|
1027
|
+
class Amendment < Orb::Internal::Type::BaseModel
|
1128
1028
|
# @!attribute id
|
1129
1029
|
#
|
1130
1030
|
# @return [String]
|
@@ -1142,9 +1042,8 @@ module Orb
|
|
1142
1042
|
|
1143
1043
|
# @!attribute credit_block
|
1144
1044
|
#
|
1145
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
1146
|
-
required :credit_block,
|
1147
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::CreditBlock }
|
1045
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock]
|
1046
|
+
required :credit_block, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock }
|
1148
1047
|
|
1149
1048
|
# @!attribute currency
|
1150
1049
|
#
|
@@ -1153,9 +1052,8 @@ module Orb
|
|
1153
1052
|
|
1154
1053
|
# @!attribute customer
|
1155
1054
|
#
|
1156
|
-
# @return [Orb::Models::Customers::Credits::LedgerListResponse::
|
1157
|
-
required :customer,
|
1158
|
-
-> { Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry::Customer }
|
1055
|
+
# @return [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer]
|
1056
|
+
required :customer, -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer }
|
1159
1057
|
|
1160
1058
|
# @!attribute description
|
1161
1059
|
#
|
@@ -1169,9 +1067,9 @@ module Orb
|
|
1169
1067
|
|
1170
1068
|
# @!attribute entry_status
|
1171
1069
|
#
|
1172
|
-
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::
|
1070
|
+
# @return [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
|
1173
1071
|
required :entry_status,
|
1174
|
-
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::
|
1072
|
+
enum: -> { Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus }
|
1175
1073
|
|
1176
1074
|
# @!attribute entry_type
|
1177
1075
|
#
|
@@ -1197,43 +1095,39 @@ module Orb
|
|
1197
1095
|
# @return [Float]
|
1198
1096
|
required :starting_balance, Float
|
1199
1097
|
|
1200
|
-
# @!
|
1201
|
-
#
|
1202
|
-
#
|
1203
|
-
#
|
1204
|
-
#
|
1205
|
-
#
|
1206
|
-
#
|
1207
|
-
#
|
1208
|
-
#
|
1209
|
-
#
|
1210
|
-
#
|
1211
|
-
#
|
1212
|
-
#
|
1213
|
-
#
|
1214
|
-
#
|
1215
|
-
#
|
1216
|
-
#
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1222
|
-
#
|
1223
|
-
#
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
#
|
1227
|
-
#
|
1228
|
-
#
|
1229
|
-
#
|
1230
|
-
#
|
1231
|
-
|
1232
|
-
#
|
1233
|
-
|
1234
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
1235
|
-
|
1236
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::AmendmentLedgerEntry#credit_block
|
1098
|
+
# @!method initialize(id:, amount:, created_at:, credit_block:, currency:, customer:, description:, ending_balance:, entry_status:, ledger_sequence_number:, metadata:, starting_balance:, entry_type: :amendment)
|
1099
|
+
# Some parameter documentations has been truncated, see
|
1100
|
+
# {Orb::Models::Customers::Credits::LedgerListResponse::Amendment} for more
|
1101
|
+
# details.
|
1102
|
+
#
|
1103
|
+
# @param id [String]
|
1104
|
+
#
|
1105
|
+
# @param amount [Float]
|
1106
|
+
#
|
1107
|
+
# @param created_at [Time]
|
1108
|
+
#
|
1109
|
+
# @param credit_block [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock]
|
1110
|
+
#
|
1111
|
+
# @param currency [String]
|
1112
|
+
#
|
1113
|
+
# @param customer [Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer]
|
1114
|
+
#
|
1115
|
+
# @param description [String, nil]
|
1116
|
+
#
|
1117
|
+
# @param ending_balance [Float]
|
1118
|
+
#
|
1119
|
+
# @param entry_status [Symbol, Orb::Models::Customers::Credits::LedgerListResponse::Amendment::EntryStatus]
|
1120
|
+
#
|
1121
|
+
# @param ledger_sequence_number [Integer]
|
1122
|
+
#
|
1123
|
+
# @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t
|
1124
|
+
# ...
|
1125
|
+
#
|
1126
|
+
# @param starting_balance [Float]
|
1127
|
+
#
|
1128
|
+
# @param entry_type [Symbol, :amendment]
|
1129
|
+
|
1130
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#credit_block
|
1237
1131
|
class CreditBlock < Orb::Internal::Type::BaseModel
|
1238
1132
|
# @!attribute id
|
1239
1133
|
#
|
@@ -1250,17 +1144,13 @@ module Orb
|
|
1250
1144
|
# @return [String, nil]
|
1251
1145
|
required :per_unit_cost_basis, String, nil?: true
|
1252
1146
|
|
1253
|
-
# @!
|
1254
|
-
#
|
1255
|
-
#
|
1256
|
-
#
|
1257
|
-
# #
|
1258
|
-
# def initialize(id:, expiry_date:, per_unit_cost_basis:, **) = super
|
1259
|
-
|
1260
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
1147
|
+
# @!method initialize(id:, expiry_date:, per_unit_cost_basis:)
|
1148
|
+
# @param id [String]
|
1149
|
+
# @param expiry_date [Time, nil]
|
1150
|
+
# @param per_unit_cost_basis [String, nil]
|
1261
1151
|
end
|
1262
1152
|
|
1263
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
1153
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#customer
|
1264
1154
|
class Customer < Orb::Internal::Type::BaseModel
|
1265
1155
|
# @!attribute id
|
1266
1156
|
#
|
@@ -1272,33 +1162,25 @@ module Orb
|
|
1272
1162
|
# @return [String, nil]
|
1273
1163
|
required :external_customer_id, String, nil?: true
|
1274
1164
|
|
1275
|
-
# @!
|
1276
|
-
#
|
1277
|
-
#
|
1278
|
-
# #
|
1279
|
-
# def initialize(id:, external_customer_id:, **) = super
|
1280
|
-
|
1281
|
-
# def initialize: (Hash | Orb::Internal::Type::BaseModel) -> void
|
1165
|
+
# @!method initialize(id:, external_customer_id:)
|
1166
|
+
# @param id [String]
|
1167
|
+
# @param external_customer_id [String, nil]
|
1282
1168
|
end
|
1283
1169
|
|
1284
|
-
# @see Orb::Models::Customers::Credits::LedgerListResponse::
|
1170
|
+
# @see Orb::Models::Customers::Credits::LedgerListResponse::Amendment#entry_status
|
1285
1171
|
module EntryStatus
|
1286
1172
|
extend Orb::Internal::Type::Enum
|
1287
1173
|
|
1288
1174
|
COMMITTED = :committed
|
1289
1175
|
PENDING = :pending
|
1290
1176
|
|
1291
|
-
|
1292
|
-
|
1293
|
-
# @!parse
|
1294
|
-
# # @return [Array<Symbol>]
|
1295
|
-
# def self.values; end
|
1177
|
+
# @!method self.values
|
1178
|
+
# @return [Array<Symbol>]
|
1296
1179
|
end
|
1297
1180
|
end
|
1298
1181
|
|
1299
|
-
# @!
|
1300
|
-
#
|
1301
|
-
# def self.variants; end
|
1182
|
+
# @!method self.variants
|
1183
|
+
# @return [Array(Orb::Models::Customers::Credits::LedgerListResponse::Increment, Orb::Models::Customers::Credits::LedgerListResponse::Decrement, Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange, Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry, Orb::Models::Customers::Credits::LedgerListResponse::Void, Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated, Orb::Models::Customers::Credits::LedgerListResponse::Amendment)]
|
1302
1184
|
end
|
1303
1185
|
end
|
1304
1186
|
end
|