orb-billing 0.5.1 → 0.5.3
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 +26 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/orb/internal/type/array_of.rb +8 -0
- data/lib/orb/internal/type/base_model.rb +7 -0
- data/lib/orb/internal/type/boolean.rb +8 -0
- data/lib/orb/internal/type/enum.rb +12 -0
- data/lib/orb/internal/type/file_input.rb +7 -0
- data/lib/orb/internal/type/hash_of.rb +8 -0
- data/lib/orb/internal/type/union.rb +12 -0
- data/lib/orb/internal/type/unknown.rb +8 -0
- data/lib/orb/internal/util.rb +45 -0
- data/lib/orb/internal.rb +3 -0
- data/lib/orb/models/alert.rb +23 -23
- data/lib/orb/models/alert_create_for_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_external_customer_params.rb +5 -5
- data/lib/orb/models/alert_create_for_subscription_params.rb +5 -5
- data/lib/orb/models/alert_update_params.rb +3 -3
- data/lib/orb/models/amount_discount.rb +5 -5
- data/lib/orb/models/billable_metric.rb +7 -7
- data/lib/orb/models/coupon.rb +6 -10
- data/lib/orb/models/coupon_create_params.rb +3 -9
- data/lib/orb/models/credit_note.rb +33 -33
- data/lib/orb/models/credit_note_create_params.rb +4 -4
- data/lib/orb/models/customer.rb +39 -39
- data/lib/orb/models/customer_create_params.rb +26 -35
- data/lib/orb/models/customer_update_by_external_id_params.rb +26 -35
- data/lib/orb/models/customer_update_params.rb +26 -35
- data/lib/orb/models/customers/balance_transaction_create_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_by_external_id_response.rb +2 -2
- data/lib/orb/models/customers/cost_list_params.rb +2 -2
- data/lib/orb/models/customers/cost_list_response.rb +2 -2
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +7 -7
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +8 -8
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +0 -14
- data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_response.rb +0 -14
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +6 -6
- data/lib/orb/models/customers/credits/top_up_create_params.rb +6 -5
- data/lib/orb/models/dimensional_price_group.rb +1 -1
- data/lib/orb/models/dimensional_price_groups.rb +4 -4
- data/lib/orb/models/discount.rb +1 -7
- data/lib/orb/models/evaluate_price_group.rb +0 -4
- data/lib/orb/models/event_ingest_params.rb +3 -3
- data/lib/orb/models/events/event_volumes.rb +2 -2
- data/lib/orb/models/invoice.rb +114 -135
- data/lib/orb/models/invoice_create_params.rb +10 -10
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -28
- data/lib/orb/models/invoice_level_discount.rb +1 -5
- data/lib/orb/models/invoice_line_item_create_response.rb +4 -26
- data/lib/orb/models/invoice_list_params.rb +4 -4
- data/lib/orb/models/item.rb +5 -5
- data/lib/orb/models/item_update_params.rb +5 -5
- data/lib/orb/models/percentage_discount.rb +5 -5
- data/lib/orb/models/plan.rb +58 -70
- data/lib/orb/models/plan_create_params.rb +448 -476
- data/lib/orb/models/plan_list_params.rb +2 -2
- data/lib/orb/models/price.rb +1204 -1239
- data/lib/orb/models/price_create_params.rb +50 -50
- data/lib/orb/models/price_evaluate_response.rb +2 -2
- data/lib/orb/models/subscription.rb +58 -78
- data/lib/orb/models/subscription_cancel_params.rb +2 -2
- data/lib/orb/models/subscription_cancel_response.rb +14 -36
- data/lib/orb/models/subscription_change_apply_response.rb +14 -36
- data/lib/orb/models/subscription_change_cancel_response.rb +14 -36
- data/lib/orb/models/subscription_change_retrieve_response.rb +14 -36
- data/lib/orb/models/subscription_create_params.rb +1002 -1075
- data/lib/orb/models/subscription_create_response.rb +14 -36
- data/lib/orb/models/subscription_fetch_costs_params.rb +2 -2
- data/lib/orb/models/subscription_fetch_costs_response.rb +2 -2
- data/lib/orb/models/subscription_fetch_usage_params.rb +4 -4
- data/lib/orb/models/subscription_list_params.rb +2 -2
- data/lib/orb/models/subscription_price_intervals_params.rb +596 -674
- data/lib/orb/models/subscription_price_intervals_response.rb +14 -36
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -1059
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -36
- data/lib/orb/models/subscription_trigger_phase_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -36
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -36
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +2 -2
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +14 -36
- data/lib/orb/models/subscription_update_trial_params.rb +3 -3
- data/lib/orb/models/subscription_update_trial_response.rb +14 -36
- data/lib/orb/models/subscription_usage.rb +26 -35
- data/lib/orb/models/subscriptions.rb +4 -4
- data/lib/orb/models/trial_discount.rb +5 -5
- data/lib/orb/models/usage_discount.rb +5 -5
- data/lib/orb/models.rb +30 -16
- data/lib/orb/resources/alerts.rb +15 -15
- data/lib/orb/resources/coupons/subscriptions.rb +1 -1
- data/lib/orb/resources/coupons.rb +5 -5
- data/lib/orb/resources/credit_notes.rb +5 -5
- data/lib/orb/resources/customers/balance_transactions.rb +1 -1
- data/lib/orb/resources/customers/costs.rb +2 -2
- data/lib/orb/resources/customers/credits/ledger.rb +10 -10
- data/lib/orb/resources/customers/credits/top_ups.rb +4 -4
- data/lib/orb/resources/customers.rb +30 -30
- data/lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb +1 -1
- data/lib/orb/resources/dimensional_price_groups.rb +3 -3
- data/lib/orb/resources/events/volume.rb +1 -1
- data/lib/orb/resources/events.rb +1 -1
- data/lib/orb/resources/invoices.rb +12 -12
- data/lib/orb/resources/items.rb +5 -5
- data/lib/orb/resources/metrics.rb +4 -4
- data/lib/orb/resources/plans/external_plan_id.rb +2 -2
- data/lib/orb/resources/plans.rb +7 -7
- data/lib/orb/resources/prices/external_price_id.rb +2 -2
- data/lib/orb/resources/prices.rb +17 -17
- data/lib/orb/resources/subscriptions.rb +32 -32
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/internal/type/array_of.rbi +6 -0
- data/rbi/orb/internal/type/base_model.rbi +5 -0
- data/rbi/orb/internal/type/boolean.rbi +6 -0
- data/rbi/orb/internal/type/enum.rbi +5 -0
- data/rbi/orb/internal/type/file_input.rbi +5 -0
- data/rbi/orb/internal/type/hash_of.rbi +6 -0
- data/rbi/orb/internal/type/union.rbi +5 -0
- data/rbi/orb/internal/type/unknown.rbi +6 -0
- data/rbi/orb/internal/util.rbi +30 -0
- data/rbi/orb/internal.rbi +3 -0
- data/rbi/orb/models/coupon.rbi +2 -2
- data/rbi/orb/models/customers/cost_list_by_external_id_response.rbi +2 -65
- data/rbi/orb/models/customers/cost_list_response.rbi +2 -65
- data/rbi/orb/models/evaluate_price_group.rbi +7 -3
- data/rbi/orb/models/invoice.rbi +10 -149
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +10 -133
- data/rbi/orb/models/invoice_line_item_create_response.rbi +8 -114
- data/rbi/orb/models/plan.rbi +8 -134
- data/rbi/orb/models/price.rbi +56 -588
- data/rbi/orb/models/subscription.rbi +6 -99
- data/rbi/orb/models/subscription_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_apply_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_cancel_response.rbi +6 -89
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +6 -89
- data/rbi/orb/models/subscription_create_response.rbi +6 -89
- data/rbi/orb/models/subscription_fetch_costs_response.rbi +2 -65
- data/rbi/orb/models/subscription_price_intervals_response.rbi +6 -89
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +6 -89
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +6 -89
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +6 -89
- data/rbi/orb/models/subscription_update_trial_response.rbi +6 -89
- data/rbi/orb/resources/customers/credits/ledger.rbi +4 -36
- data/rbi/orb/resources/prices/external_price_id.rbi +2 -64
- data/rbi/orb/resources/prices.rbi +4 -130
- data/rbi/orb/resources/subscriptions.rbi +1 -6
- data/sig/orb/internal/page.rbs +2 -0
- data/sig/orb/internal/type/array_of.rbs +3 -0
- data/sig/orb/internal/type/base_model.rbs +2 -0
- data/sig/orb/internal/type/boolean.rbs +3 -0
- data/sig/orb/internal/type/enum.rbs +2 -0
- data/sig/orb/internal/type/file_input.rbs +2 -0
- data/sig/orb/internal/type/hash_of.rbs +3 -0
- data/sig/orb/internal/type/union.rbs +2 -0
- data/sig/orb/internal/type/unknown.rbs +3 -0
- data/sig/orb/internal/util.rbs +12 -0
- data/sig/orb/internal.rbs +2 -0
- data/sig/orb/models/alert.rbs +32 -4
- data/sig/orb/models/alert_create_for_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_external_customer_params.rbs +9 -0
- data/sig/orb/models/alert_create_for_subscription_params.rbs +9 -0
- data/sig/orb/models/alert_disable_params.rbs +5 -0
- data/sig/orb/models/alert_enable_params.rbs +5 -0
- data/sig/orb/models/alert_list_params.rbs +13 -0
- data/sig/orb/models/alert_retrieve_params.rbs +2 -0
- data/sig/orb/models/alert_update_params.rbs +7 -0
- data/sig/orb/models/amount_discount.rbs +11 -4
- data/sig/orb/models/billable_metric.rbs +13 -4
- data/sig/orb/models/coupon.rbs +14 -4
- data/sig/orb/models/coupon_archive_params.rbs +2 -0
- data/sig/orb/models/coupon_create_params.rbs +15 -0
- data/sig/orb/models/coupon_fetch_params.rbs +2 -0
- data/sig/orb/models/coupon_list_params.rbs +8 -0
- data/sig/orb/models/coupons/subscription_list_params.rbs +6 -0
- data/sig/orb/models/credit_note.rbs +88 -20
- data/sig/orb/models/credit_note_create_params.rbs +9 -0
- data/sig/orb/models/credit_note_fetch_params.rbs +2 -0
- data/sig/orb/models/credit_note_list_params.rbs +10 -0
- data/sig/orb/models/customer.rbs +86 -16
- data/sig/orb/models/customer_create_params.rbs +79 -8
- data/sig/orb/models/customer_delete_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_by_external_id_params.rbs +2 -0
- data/sig/orb/models/customer_fetch_params.rbs +2 -0
- data/sig/orb/models/customer_list_params.rbs +10 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_by_external_customer_id_params.rbs +2 -0
- data/sig/orb/models/customer_sync_payment_methods_from_gateway_params.rbs +2 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +78 -8
- data/sig/orb/models/customer_update_params.rbs +78 -8
- data/sig/orb/models/customers/balance_transaction_create_params.rbs +7 -0
- data/sig/orb/models/customers/balance_transaction_create_response.rbs +17 -0
- data/sig/orb/models/customers/balance_transaction_list_params.rbs +10 -0
- data/sig/orb/models/customers/balance_transaction_list_response.rbs +17 -0
- data/sig/orb/models/customers/cost_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_by_external_id_response.rbs +20 -0
- data/sig/orb/models/customers/cost_list_params.rbs +8 -0
- data/sig/orb/models/customers/cost_list_response.rbs +20 -0
- data/sig/orb/models/customers/credit_list_by_external_id_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_by_external_id_response.rbs +10 -0
- data/sig/orb/models/customers/credit_list_params.rbs +8 -0
- data/sig/orb/models/customers/credit_list_response.rbs +10 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +23 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +177 -0
- data/sig/orb/models/customers/credits/ledger_list_params.rbs +14 -0
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +177 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_create_params.rbs +19 -0
- data/sig/orb/models/customers/credits/top_up_create_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_delete_by_external_id_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_delete_params.rbs +5 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_by_external_id_response.rbs +18 -0
- data/sig/orb/models/customers/credits/top_up_list_params.rbs +6 -0
- data/sig/orb/models/customers/credits/top_up_list_response.rbs +18 -0
- data/sig/orb/models/dimensional_price_group.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_create_params.rbs +9 -0
- data/sig/orb/models/dimensional_price_group_list_params.rbs +6 -0
- data/sig/orb/models/dimensional_price_group_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups/external_dimensional_price_group_id_retrieve_params.rbs +2 -0
- data/sig/orb/models/dimensional_price_groups.rbs +5 -0
- data/sig/orb/models/evaluate_price_group.rbs +10 -4
- data/sig/orb/models/event_deprecate_params.rbs +2 -0
- data/sig/orb/models/event_deprecate_response.rbs +2 -0
- data/sig/orb/models/event_ingest_params.rbs +16 -0
- data/sig/orb/models/event_ingest_response.rbs +15 -0
- data/sig/orb/models/event_search_params.rbs +7 -0
- data/sig/orb/models/event_search_response.rbs +12 -0
- data/sig/orb/models/event_update_params.rbs +9 -0
- data/sig/orb/models/event_update_response.rbs +2 -0
- data/sig/orb/models/events/backfill_close_params.rbs +2 -0
- data/sig/orb/models/events/backfill_close_response.rbs +14 -0
- data/sig/orb/models/events/backfill_create_params.rbs +11 -0
- data/sig/orb/models/events/backfill_create_response.rbs +14 -0
- data/sig/orb/models/events/backfill_fetch_params.rbs +2 -0
- data/sig/orb/models/events/backfill_fetch_response.rbs +14 -0
- data/sig/orb/models/events/backfill_list_params.rbs +6 -0
- data/sig/orb/models/events/backfill_list_response.rbs +14 -0
- data/sig/orb/models/events/backfill_revert_params.rbs +2 -0
- data/sig/orb/models/events/backfill_revert_response.rbs +14 -0
- data/sig/orb/models/events/event_volumes.rbs +8 -0
- data/sig/orb/models/events/volume_list_params.rbs +8 -0
- data/sig/orb/models/invoice.rbs +293 -36
- data/sig/orb/models/invoice_create_params.rbs +30 -4
- data/sig/orb/models/invoice_fetch_params.rbs +2 -0
- data/sig/orb/models/invoice_fetch_upcoming_params.rbs +5 -0
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +257 -0
- data/sig/orb/models/invoice_issue_params.rbs +5 -0
- data/sig/orb/models/invoice_line_item_create_params.rbs +10 -0
- data/sig/orb/models/invoice_line_item_create_response.rbs +132 -0
- data/sig/orb/models/invoice_list_params.rbs +27 -4
- data/sig/orb/models/invoice_mark_paid_params.rbs +7 -0
- data/sig/orb/models/invoice_pay_params.rbs +2 -0
- data/sig/orb/models/invoice_update_params.rbs +5 -0
- data/sig/orb/models/invoice_void_params.rbs +2 -0
- data/sig/orb/models/item.rbs +16 -4
- data/sig/orb/models/item_create_params.rbs +2 -0
- data/sig/orb/models/item_fetch_params.rbs +2 -0
- data/sig/orb/models/item_list_params.rbs +6 -0
- data/sig/orb/models/item_update_params.rbs +15 -4
- data/sig/orb/models/metric_create_params.rbs +9 -0
- data/sig/orb/models/metric_fetch_params.rbs +2 -0
- data/sig/orb/models/metric_list_params.rbs +10 -0
- data/sig/orb/models/metric_update_params.rbs +5 -0
- data/sig/orb/models/pagination_metadata.rbs +2 -0
- data/sig/orb/models/percentage_discount.rbs +11 -4
- data/sig/orb/models/plan.rbs +141 -16
- data/sig/orb/models/plan_create_params.rbs +1070 -304
- data/sig/orb/models/plan_fetch_params.rbs +2 -0
- data/sig/orb/models/plan_list_params.rbs +11 -0
- data/sig/orb/models/plan_update_params.rbs +6 -0
- data/sig/orb/models/plans/external_plan_id_fetch_params.rbs +2 -0
- data/sig/orb/models/plans/external_plan_id_update_params.rbs +6 -0
- data/sig/orb/models/price.rbs +2148 -460
- data/sig/orb/models/price_create_params.rbs +130 -8
- data/sig/orb/models/price_evaluate_params.rbs +10 -0
- data/sig/orb/models/price_evaluate_response.rbs +2 -0
- data/sig/orb/models/price_fetch_params.rbs +2 -0
- data/sig/orb/models/price_list_params.rbs +6 -0
- data/sig/orb/models/price_update_params.rbs +5 -0
- data/sig/orb/models/prices/external_price_id_fetch_params.rbs +2 -0
- data/sig/orb/models/prices/external_price_id_update_params.rbs +5 -0
- data/sig/orb/models/subscription.rbs +177 -12
- data/sig/orb/models/subscription_cancel_params.rbs +7 -0
- data/sig/orb/models/subscription_cancel_response.rbs +173 -0
- data/sig/orb/models/subscription_change_apply_params.rbs +6 -0
- data/sig/orb/models/subscription_change_apply_response.rbs +186 -0
- data/sig/orb/models/subscription_change_cancel_params.rbs +2 -0
- data/sig/orb/models/subscription_change_cancel_response.rbs +186 -0
- data/sig/orb/models/subscription_change_retrieve_params.rbs +2 -0
- data/sig/orb/models/subscription_change_retrieve_response.rbs +186 -0
- data/sig/orb/models/subscription_create_params.rbs +2368 -632
- data/sig/orb/models/subscription_create_response.rbs +173 -0
- data/sig/orb/models/subscription_fetch_costs_params.rbs +8 -0
- data/sig/orb/models/subscription_fetch_costs_response.rbs +20 -0
- data/sig/orb/models/subscription_fetch_params.rbs +2 -0
- data/sig/orb/models/subscription_fetch_schedule_params.rbs +10 -0
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +13 -0
- data/sig/orb/models/subscription_fetch_usage_params.rbs +14 -0
- data/sig/orb/models/subscription_list_params.rbs +13 -0
- data/sig/orb/models/subscription_price_intervals_params.rbs +1348 -396
- data/sig/orb/models/subscription_price_intervals_response.rbs +173 -0
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +2363 -632
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +173 -0
- data/sig/orb/models/subscription_trigger_phase_params.rbs +6 -0
- data/sig/orb/models/subscription_trigger_phase_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_cancellation_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +173 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_params.rbs +2 -0
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +173 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_params.rbs +9 -0
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +173 -0
- data/sig/orb/models/subscription_update_params.rbs +9 -0
- data/sig/orb/models/subscription_update_trial_params.rbs +6 -0
- data/sig/orb/models/subscription_update_trial_response.rbs +173 -0
- data/sig/orb/models/subscription_usage.rbs +48 -8
- data/sig/orb/models/subscriptions.rbs +5 -0
- data/sig/orb/models/top_level_ping_params.rbs +2 -0
- data/sig/orb/models/top_level_ping_response.rbs +2 -0
- data/sig/orb/models/trial_discount.rbs +12 -4
- data/sig/orb/models/usage_discount.rbs +11 -4
- data/sig/orb/resources/invoices.rbs +1 -1
- data/sig/orb/resources/plans.rbs +1 -1
- metadata +2 -2
@@ -74,6 +74,22 @@ module Orb
|
|
74
74
|
?entry_type: :increment
|
75
75
|
) -> void
|
76
76
|
|
77
|
+
def to_hash: -> {
|
78
|
+
id: String,
|
79
|
+
amount: Float,
|
80
|
+
created_at: Time,
|
81
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Increment::CreditBlock,
|
82
|
+
currency: String,
|
83
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::Increment::Customer,
|
84
|
+
description: String?,
|
85
|
+
ending_balance: Float,
|
86
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Increment::entry_status,
|
87
|
+
entry_type: :increment,
|
88
|
+
ledger_sequence_number: Integer,
|
89
|
+
metadata: ::Hash[Symbol, String],
|
90
|
+
starting_balance: Float
|
91
|
+
}
|
92
|
+
|
77
93
|
type credit_block =
|
78
94
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
79
95
|
|
@@ -89,6 +105,12 @@ module Orb
|
|
89
105
|
expiry_date: Time?,
|
90
106
|
per_unit_cost_basis: String?
|
91
107
|
) -> void
|
108
|
+
|
109
|
+
def to_hash: -> {
|
110
|
+
id: String,
|
111
|
+
expiry_date: Time?,
|
112
|
+
per_unit_cost_basis: String?
|
113
|
+
}
|
92
114
|
end
|
93
115
|
|
94
116
|
type customer = { id: String, external_customer_id: String? }
|
@@ -102,6 +124,8 @@ module Orb
|
|
102
124
|
id: String,
|
103
125
|
external_customer_id: String?
|
104
126
|
) -> void
|
127
|
+
|
128
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
105
129
|
end
|
106
130
|
|
107
131
|
type entry_status = :committed | :pending
|
@@ -188,6 +212,25 @@ module Orb
|
|
188
212
|
?entry_type: :decrement
|
189
213
|
) -> void
|
190
214
|
|
215
|
+
def to_hash: -> {
|
216
|
+
id: String,
|
217
|
+
amount: Float,
|
218
|
+
created_at: Time,
|
219
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::CreditBlock,
|
220
|
+
currency: String,
|
221
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::Customer,
|
222
|
+
description: String?,
|
223
|
+
ending_balance: Float,
|
224
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Decrement::entry_status,
|
225
|
+
entry_type: :decrement,
|
226
|
+
ledger_sequence_number: Integer,
|
227
|
+
metadata: ::Hash[Symbol, String],
|
228
|
+
starting_balance: Float,
|
229
|
+
event_id: String?,
|
230
|
+
invoice_id: String?,
|
231
|
+
price_id: String?
|
232
|
+
}
|
233
|
+
|
191
234
|
type credit_block =
|
192
235
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
193
236
|
|
@@ -203,6 +246,12 @@ module Orb
|
|
203
246
|
expiry_date: Time?,
|
204
247
|
per_unit_cost_basis: String?
|
205
248
|
) -> void
|
249
|
+
|
250
|
+
def to_hash: -> {
|
251
|
+
id: String,
|
252
|
+
expiry_date: Time?,
|
253
|
+
per_unit_cost_basis: String?
|
254
|
+
}
|
206
255
|
end
|
207
256
|
|
208
257
|
type customer = { id: String, external_customer_id: String? }
|
@@ -216,6 +265,8 @@ module Orb
|
|
216
265
|
id: String,
|
217
266
|
external_customer_id: String?
|
218
267
|
) -> void
|
268
|
+
|
269
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
219
270
|
end
|
220
271
|
|
221
272
|
type entry_status = :committed | :pending
|
@@ -294,6 +345,23 @@ module Orb
|
|
294
345
|
?entry_type: :expiration_change
|
295
346
|
) -> void
|
296
347
|
|
348
|
+
def to_hash: -> {
|
349
|
+
id: String,
|
350
|
+
amount: Float,
|
351
|
+
created_at: Time,
|
352
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::CreditBlock,
|
353
|
+
currency: String,
|
354
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::Customer,
|
355
|
+
description: String?,
|
356
|
+
ending_balance: Float,
|
357
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::ExpirationChange::entry_status,
|
358
|
+
entry_type: :expiration_change,
|
359
|
+
ledger_sequence_number: Integer,
|
360
|
+
metadata: ::Hash[Symbol, String],
|
361
|
+
new_block_expiry_date: Time?,
|
362
|
+
starting_balance: Float
|
363
|
+
}
|
364
|
+
|
297
365
|
type credit_block =
|
298
366
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
299
367
|
|
@@ -309,6 +377,12 @@ module Orb
|
|
309
377
|
expiry_date: Time?,
|
310
378
|
per_unit_cost_basis: String?
|
311
379
|
) -> void
|
380
|
+
|
381
|
+
def to_hash: -> {
|
382
|
+
id: String,
|
383
|
+
expiry_date: Time?,
|
384
|
+
per_unit_cost_basis: String?
|
385
|
+
}
|
312
386
|
end
|
313
387
|
|
314
388
|
type customer = { id: String, external_customer_id: String? }
|
@@ -322,6 +396,8 @@ module Orb
|
|
322
396
|
id: String,
|
323
397
|
external_customer_id: String?
|
324
398
|
) -> void
|
399
|
+
|
400
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
325
401
|
end
|
326
402
|
|
327
403
|
type entry_status = :committed | :pending
|
@@ -396,6 +472,22 @@ module Orb
|
|
396
472
|
?entry_type: :credit_block_expiry
|
397
473
|
) -> void
|
398
474
|
|
475
|
+
def to_hash: -> {
|
476
|
+
id: String,
|
477
|
+
amount: Float,
|
478
|
+
created_at: Time,
|
479
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::CreditBlock,
|
480
|
+
currency: String,
|
481
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::Customer,
|
482
|
+
description: String?,
|
483
|
+
ending_balance: Float,
|
484
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::CreditBlockExpiry::entry_status,
|
485
|
+
entry_type: :credit_block_expiry,
|
486
|
+
ledger_sequence_number: Integer,
|
487
|
+
metadata: ::Hash[Symbol, String],
|
488
|
+
starting_balance: Float
|
489
|
+
}
|
490
|
+
|
399
491
|
type credit_block =
|
400
492
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
401
493
|
|
@@ -411,6 +503,12 @@ module Orb
|
|
411
503
|
expiry_date: Time?,
|
412
504
|
per_unit_cost_basis: String?
|
413
505
|
) -> void
|
506
|
+
|
507
|
+
def to_hash: -> {
|
508
|
+
id: String,
|
509
|
+
expiry_date: Time?,
|
510
|
+
per_unit_cost_basis: String?
|
511
|
+
}
|
414
512
|
end
|
415
513
|
|
416
514
|
type customer = { id: String, external_customer_id: String? }
|
@@ -424,6 +522,8 @@ module Orb
|
|
424
522
|
id: String,
|
425
523
|
external_customer_id: String?
|
426
524
|
) -> void
|
525
|
+
|
526
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
427
527
|
end
|
428
528
|
|
429
529
|
type entry_status = :committed | :pending
|
@@ -506,6 +606,24 @@ module Orb
|
|
506
606
|
?entry_type: :void
|
507
607
|
) -> void
|
508
608
|
|
609
|
+
def to_hash: -> {
|
610
|
+
id: String,
|
611
|
+
amount: Float,
|
612
|
+
created_at: Time,
|
613
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Void::CreditBlock,
|
614
|
+
currency: String,
|
615
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::Void::Customer,
|
616
|
+
description: String?,
|
617
|
+
ending_balance: Float,
|
618
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Void::entry_status,
|
619
|
+
entry_type: :void,
|
620
|
+
ledger_sequence_number: Integer,
|
621
|
+
metadata: ::Hash[Symbol, String],
|
622
|
+
starting_balance: Float,
|
623
|
+
void_amount: Float,
|
624
|
+
void_reason: String?
|
625
|
+
}
|
626
|
+
|
509
627
|
type credit_block =
|
510
628
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
511
629
|
|
@@ -521,6 +639,12 @@ module Orb
|
|
521
639
|
expiry_date: Time?,
|
522
640
|
per_unit_cost_basis: String?
|
523
641
|
) -> void
|
642
|
+
|
643
|
+
def to_hash: -> {
|
644
|
+
id: String,
|
645
|
+
expiry_date: Time?,
|
646
|
+
per_unit_cost_basis: String?
|
647
|
+
}
|
524
648
|
end
|
525
649
|
|
526
650
|
type customer = { id: String, external_customer_id: String? }
|
@@ -534,6 +658,8 @@ module Orb
|
|
534
658
|
id: String,
|
535
659
|
external_customer_id: String?
|
536
660
|
) -> void
|
661
|
+
|
662
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
537
663
|
end
|
538
664
|
|
539
665
|
type entry_status = :committed | :pending
|
@@ -620,6 +746,25 @@ module Orb
|
|
620
746
|
?entry_type: :void_initiated
|
621
747
|
) -> void
|
622
748
|
|
749
|
+
def to_hash: -> {
|
750
|
+
id: String,
|
751
|
+
amount: Float,
|
752
|
+
created_at: Time,
|
753
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::CreditBlock,
|
754
|
+
currency: String,
|
755
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::Customer,
|
756
|
+
description: String?,
|
757
|
+
ending_balance: Float,
|
758
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::VoidInitiated::entry_status,
|
759
|
+
entry_type: :void_initiated,
|
760
|
+
ledger_sequence_number: Integer,
|
761
|
+
metadata: ::Hash[Symbol, String],
|
762
|
+
new_block_expiry_date: Time,
|
763
|
+
starting_balance: Float,
|
764
|
+
void_amount: Float,
|
765
|
+
void_reason: String?
|
766
|
+
}
|
767
|
+
|
623
768
|
type credit_block =
|
624
769
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
625
770
|
|
@@ -635,6 +780,12 @@ module Orb
|
|
635
780
|
expiry_date: Time?,
|
636
781
|
per_unit_cost_basis: String?
|
637
782
|
) -> void
|
783
|
+
|
784
|
+
def to_hash: -> {
|
785
|
+
id: String,
|
786
|
+
expiry_date: Time?,
|
787
|
+
per_unit_cost_basis: String?
|
788
|
+
}
|
638
789
|
end
|
639
790
|
|
640
791
|
type customer = { id: String, external_customer_id: String? }
|
@@ -648,6 +799,8 @@ module Orb
|
|
648
799
|
id: String,
|
649
800
|
external_customer_id: String?
|
650
801
|
) -> void
|
802
|
+
|
803
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
651
804
|
end
|
652
805
|
|
653
806
|
type entry_status = :committed | :pending
|
@@ -722,6 +875,22 @@ module Orb
|
|
722
875
|
?entry_type: :amendment
|
723
876
|
) -> void
|
724
877
|
|
878
|
+
def to_hash: -> {
|
879
|
+
id: String,
|
880
|
+
amount: Float,
|
881
|
+
created_at: Time,
|
882
|
+
credit_block: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::CreditBlock,
|
883
|
+
currency: String,
|
884
|
+
customer: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::Customer,
|
885
|
+
description: String?,
|
886
|
+
ending_balance: Float,
|
887
|
+
entry_status: Orb::Models::Customers::Credits::LedgerListResponse::Amendment::entry_status,
|
888
|
+
entry_type: :amendment,
|
889
|
+
ledger_sequence_number: Integer,
|
890
|
+
metadata: ::Hash[Symbol, String],
|
891
|
+
starting_balance: Float
|
892
|
+
}
|
893
|
+
|
725
894
|
type credit_block =
|
726
895
|
{ id: String, expiry_date: Time?, per_unit_cost_basis: String? }
|
727
896
|
|
@@ -737,6 +906,12 @@ module Orb
|
|
737
906
|
expiry_date: Time?,
|
738
907
|
per_unit_cost_basis: String?
|
739
908
|
) -> void
|
909
|
+
|
910
|
+
def to_hash: -> {
|
911
|
+
id: String,
|
912
|
+
expiry_date: Time?,
|
913
|
+
per_unit_cost_basis: String?
|
914
|
+
}
|
740
915
|
end
|
741
916
|
|
742
917
|
type customer = { id: String, external_customer_id: String? }
|
@@ -750,6 +925,8 @@ module Orb
|
|
750
925
|
id: String,
|
751
926
|
external_customer_id: String?
|
752
927
|
) -> void
|
928
|
+
|
929
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
753
930
|
end
|
754
931
|
|
755
932
|
type entry_status = :committed | :pending
|
@@ -47,6 +47,18 @@ module Orb
|
|
47
47
|
?request_options: Orb::request_opts
|
48
48
|
) -> void
|
49
49
|
|
50
|
+
def to_hash: -> {
|
51
|
+
amount: String,
|
52
|
+
currency: String,
|
53
|
+
invoice_settings: Orb::Customers::Credits::TopUpCreateByExternalIDParams::InvoiceSettings,
|
54
|
+
per_unit_cost_basis: String,
|
55
|
+
threshold: String,
|
56
|
+
active_from: Time?,
|
57
|
+
expires_after: Integer?,
|
58
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDParams::expires_after_unit?,
|
59
|
+
request_options: Orb::RequestOptions
|
60
|
+
}
|
61
|
+
|
50
62
|
type invoice_settings =
|
51
63
|
{
|
52
64
|
auto_collection: bool,
|
@@ -72,6 +84,13 @@ module Orb
|
|
72
84
|
?memo: String?,
|
73
85
|
?require_successful_payment: bool
|
74
86
|
) -> void
|
87
|
+
|
88
|
+
def to_hash: -> {
|
89
|
+
auto_collection: bool,
|
90
|
+
net_terms: Integer,
|
91
|
+
memo: String?,
|
92
|
+
require_successful_payment: bool
|
93
|
+
}
|
75
94
|
end
|
76
95
|
|
77
96
|
type expires_after_unit = :day | :month
|
@@ -42,6 +42,17 @@ module Orb
|
|
42
42
|
?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit?
|
43
43
|
) -> void
|
44
44
|
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
amount: String,
|
48
|
+
currency: String,
|
49
|
+
invoice_settings: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::InvoiceSettings,
|
50
|
+
per_unit_cost_basis: String,
|
51
|
+
threshold: String,
|
52
|
+
expires_after: Integer?,
|
53
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateByExternalIDResponse::expires_after_unit?
|
54
|
+
}
|
55
|
+
|
45
56
|
type invoice_settings =
|
46
57
|
{
|
47
58
|
auto_collection: bool,
|
@@ -67,6 +78,13 @@ module Orb
|
|
67
78
|
?memo: String?,
|
68
79
|
?require_successful_payment: bool
|
69
80
|
) -> void
|
81
|
+
|
82
|
+
def to_hash: -> {
|
83
|
+
auto_collection: bool,
|
84
|
+
net_terms: Integer,
|
85
|
+
memo: String?,
|
86
|
+
require_successful_payment: bool
|
87
|
+
}
|
70
88
|
end
|
71
89
|
|
72
90
|
type expires_after_unit = :day | :month
|
@@ -47,6 +47,18 @@ module Orb
|
|
47
47
|
?request_options: Orb::request_opts
|
48
48
|
) -> void
|
49
49
|
|
50
|
+
def to_hash: -> {
|
51
|
+
amount: String,
|
52
|
+
currency: String,
|
53
|
+
invoice_settings: Orb::Customers::Credits::TopUpCreateParams::InvoiceSettings,
|
54
|
+
per_unit_cost_basis: String,
|
55
|
+
threshold: String,
|
56
|
+
active_from: Time?,
|
57
|
+
expires_after: Integer?,
|
58
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateParams::expires_after_unit?,
|
59
|
+
request_options: Orb::RequestOptions
|
60
|
+
}
|
61
|
+
|
50
62
|
type invoice_settings =
|
51
63
|
{
|
52
64
|
auto_collection: bool,
|
@@ -72,6 +84,13 @@ module Orb
|
|
72
84
|
?memo: String?,
|
73
85
|
?require_successful_payment: bool
|
74
86
|
) -> void
|
87
|
+
|
88
|
+
def to_hash: -> {
|
89
|
+
auto_collection: bool,
|
90
|
+
net_terms: Integer,
|
91
|
+
memo: String?,
|
92
|
+
require_successful_payment: bool
|
93
|
+
}
|
75
94
|
end
|
76
95
|
|
77
96
|
type expires_after_unit = :day | :month
|
@@ -42,6 +42,17 @@ module Orb
|
|
42
42
|
?expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit?
|
43
43
|
) -> void
|
44
44
|
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
amount: String,
|
48
|
+
currency: String,
|
49
|
+
invoice_settings: Orb::Models::Customers::Credits::TopUpCreateResponse::InvoiceSettings,
|
50
|
+
per_unit_cost_basis: String,
|
51
|
+
threshold: String,
|
52
|
+
expires_after: Integer?,
|
53
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpCreateResponse::expires_after_unit?
|
54
|
+
}
|
55
|
+
|
45
56
|
type invoice_settings =
|
46
57
|
{
|
47
58
|
auto_collection: bool,
|
@@ -67,6 +78,13 @@ module Orb
|
|
67
78
|
?memo: String?,
|
68
79
|
?require_successful_payment: bool
|
69
80
|
) -> void
|
81
|
+
|
82
|
+
def to_hash: -> {
|
83
|
+
auto_collection: bool,
|
84
|
+
net_terms: Integer,
|
85
|
+
memo: String?,
|
86
|
+
require_successful_payment: bool
|
87
|
+
}
|
70
88
|
end
|
71
89
|
|
72
90
|
type expires_after_unit = :day | :month
|
@@ -42,6 +42,17 @@ module Orb
|
|
42
42
|
?expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit?
|
43
43
|
) -> void
|
44
44
|
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
amount: String,
|
48
|
+
currency: String,
|
49
|
+
invoice_settings: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::InvoiceSettings,
|
50
|
+
per_unit_cost_basis: String,
|
51
|
+
threshold: String,
|
52
|
+
expires_after: Integer?,
|
53
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpListByExternalIDResponse::expires_after_unit?
|
54
|
+
}
|
55
|
+
|
45
56
|
type invoice_settings =
|
46
57
|
{
|
47
58
|
auto_collection: bool,
|
@@ -67,6 +78,13 @@ module Orb
|
|
67
78
|
?memo: String?,
|
68
79
|
?require_successful_payment: bool
|
69
80
|
) -> void
|
81
|
+
|
82
|
+
def to_hash: -> {
|
83
|
+
auto_collection: bool,
|
84
|
+
net_terms: Integer,
|
85
|
+
memo: String?,
|
86
|
+
require_successful_payment: bool
|
87
|
+
}
|
70
88
|
end
|
71
89
|
|
72
90
|
type expires_after_unit = :day | :month
|
@@ -42,6 +42,17 @@ module Orb
|
|
42
42
|
?expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit?
|
43
43
|
) -> void
|
44
44
|
|
45
|
+
def to_hash: -> {
|
46
|
+
id: String,
|
47
|
+
amount: String,
|
48
|
+
currency: String,
|
49
|
+
invoice_settings: Orb::Models::Customers::Credits::TopUpListResponse::InvoiceSettings,
|
50
|
+
per_unit_cost_basis: String,
|
51
|
+
threshold: String,
|
52
|
+
expires_after: Integer?,
|
53
|
+
expires_after_unit: Orb::Models::Customers::Credits::TopUpListResponse::expires_after_unit?
|
54
|
+
}
|
55
|
+
|
45
56
|
type invoice_settings =
|
46
57
|
{
|
47
58
|
auto_collection: bool,
|
@@ -67,6 +78,13 @@ module Orb
|
|
67
78
|
?memo: String?,
|
68
79
|
?require_successful_payment: bool
|
69
80
|
) -> void
|
81
|
+
|
82
|
+
def to_hash: -> {
|
83
|
+
auto_collection: bool,
|
84
|
+
net_terms: Integer,
|
85
|
+
memo: String?,
|
86
|
+
require_successful_payment: bool
|
87
|
+
}
|
70
88
|
end
|
71
89
|
|
72
90
|
type expires_after_unit = :day | :month
|
@@ -31,6 +31,15 @@ module Orb
|
|
31
31
|
metadata: ::Hash[Symbol, String],
|
32
32
|
name: String
|
33
33
|
) -> void
|
34
|
+
|
35
|
+
def to_hash: -> {
|
36
|
+
id: String,
|
37
|
+
billable_metric_id: String,
|
38
|
+
dimensions: ::Array[String],
|
39
|
+
external_dimensional_price_group_id: String?,
|
40
|
+
metadata: ::Hash[Symbol, String],
|
41
|
+
name: String
|
42
|
+
}
|
34
43
|
end
|
35
44
|
end
|
36
45
|
end
|
@@ -32,6 +32,15 @@ module Orb
|
|
32
32
|
?metadata: ::Hash[Symbol, String?]?,
|
33
33
|
?request_options: Orb::request_opts
|
34
34
|
) -> void
|
35
|
+
|
36
|
+
def to_hash: -> {
|
37
|
+
billable_metric_id: String,
|
38
|
+
dimensions: ::Array[String],
|
39
|
+
name: String,
|
40
|
+
external_dimensional_price_group_id: String?,
|
41
|
+
metadata: ::Hash[Symbol, String?]?,
|
42
|
+
request_options: Orb::RequestOptions
|
43
|
+
}
|
35
44
|
end
|
36
45
|
end
|
37
46
|
end
|
@@ -15,6 +15,11 @@ module Orb
|
|
15
15
|
data: ::Array[Orb::DimensionalPriceGroup],
|
16
16
|
pagination_metadata: Orb::PaginationMetadata
|
17
17
|
) -> void
|
18
|
+
|
19
|
+
def to_hash: -> {
|
20
|
+
data: ::Array[Orb::DimensionalPriceGroup],
|
21
|
+
pagination_metadata: Orb::PaginationMetadata
|
22
|
+
}
|
18
23
|
end
|
19
24
|
end
|
20
25
|
end
|
@@ -3,29 +3,35 @@ module Orb
|
|
3
3
|
type evaluate_price_group =
|
4
4
|
{
|
5
5
|
amount: String,
|
6
|
-
grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value],
|
6
|
+
grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value],
|
7
7
|
quantity: Float
|
8
8
|
}
|
9
9
|
|
10
10
|
class EvaluatePriceGroup < Orb::Internal::Type::BaseModel
|
11
11
|
attr_accessor amount: String
|
12
12
|
|
13
|
-
attr_accessor grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value]
|
13
|
+
attr_accessor grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value]
|
14
14
|
|
15
15
|
attr_accessor quantity: Float
|
16
16
|
|
17
17
|
def initialize: (
|
18
18
|
amount: String,
|
19
|
-
grouping_values: ::Array[Orb::EvaluatePriceGroup::grouping_value],
|
19
|
+
grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value],
|
20
20
|
quantity: Float
|
21
21
|
) -> void
|
22
22
|
|
23
|
+
def to_hash: -> {
|
24
|
+
amount: String,
|
25
|
+
grouping_values: ::Array[Orb::Models::EvaluatePriceGroup::grouping_value],
|
26
|
+
quantity: Float
|
27
|
+
}
|
28
|
+
|
23
29
|
type grouping_value = String | Float | bool
|
24
30
|
|
25
31
|
module GroupingValue
|
26
32
|
extend Orb::Internal::Type::Union
|
27
33
|
|
28
|
-
def self?.variants: -> ::Array[Orb::EvaluatePriceGroup::grouping_value]
|
34
|
+
def self?.variants: -> ::Array[Orb::Models::EvaluatePriceGroup::grouping_value]
|
29
35
|
end
|
30
36
|
end
|
31
37
|
end
|