orb-billing 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ignore +2 -0
- data/CHANGELOG.md +65 -0
- data/README.md +61 -51
- data/lib/orb/client.rb +7 -6
- data/lib/orb/file_part.rb +55 -0
- data/lib/orb/internal/page.rb +37 -39
- data/lib/orb/internal/transport/base_client.rb +21 -11
- data/lib/orb/internal/transport/pooled_net_requester.rb +3 -3
- data/lib/orb/internal/type/array_of.rb +28 -2
- data/lib/orb/internal/type/base_model.rb +83 -21
- data/lib/orb/internal/type/base_page.rb +10 -1
- data/lib/orb/internal/type/boolean.rb +6 -0
- data/lib/orb/internal/type/converter.rb +28 -1
- data/lib/orb/internal/type/enum.rb +28 -8
- data/lib/orb/internal/type/{io_like.rb → file_input.rb} +35 -15
- data/lib/orb/internal/type/hash_of.rb +28 -2
- data/lib/orb/internal/type/request_parameters.rb +1 -2
- data/lib/orb/internal/type/union.rb +27 -4
- data/lib/orb/internal/type/unknown.rb +6 -0
- data/lib/orb/internal/util.rb +105 -70
- data/lib/orb/internal.rb +5 -2
- 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 +24 -29
- 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 +211 -252
- 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 +207 -250
- data/lib/orb/models/customer_update_params.rb +207 -250
- 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 +22 -26
- data/lib/orb/models/customers/cost_list_params.rb +17 -17
- data/lib/orb/models/customers/cost_list_response.rb +22 -26
- 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 +300 -406
- data/lib/orb/models/customers/credits/ledger_create_entry_params.rb +63 -66
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +300 -406
- 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 +300 -406
- data/lib/orb/models/customers/credits/ledger_list_params.rb +32 -48
- data/lib/orb/models/customers/credits/ledger_list_response.rb +300 -406
- 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 +589 -637
- 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 +584 -631
- 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 +247 -269
- 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 +250 -279
- data/lib/orb/models/plan_create_params.rb +1623 -1984
- 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 +2709 -3820
- 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 +343 -382
- data/lib/orb/models/subscription_cancel_params.rb +16 -16
- data/lib/orb/models/subscription_cancel_response.rb +339 -377
- data/lib/orb/models/subscription_change_apply_params.rb +7 -10
- data/lib/orb/models/subscription_change_apply_response.rb +365 -398
- data/lib/orb/models/subscription_change_cancel_params.rb +3 -8
- data/lib/orb/models/subscription_change_cancel_response.rb +365 -398
- data/lib/orb/models/subscription_change_retrieve_params.rb +3 -8
- data/lib/orb/models/subscription_change_retrieve_response.rb +366 -398
- data/lib/orb/models/subscription_create_params.rb +3771 -4402
- data/lib/orb/models/subscription_create_response.rb +339 -377
- data/lib/orb/models/subscription_fetch_costs_params.rb +17 -17
- data/lib/orb/models/subscription_fetch_costs_response.rb +22 -26
- 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 +2018 -2472
- data/lib/orb/models/subscription_price_intervals_response.rb +342 -377
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +3764 -4392
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +342 -377
- data/lib/orb/models/subscription_trigger_phase_params.rb +12 -10
- data/lib/orb/models/subscription_trigger_phase_response.rb +341 -377
- data/lib/orb/models/subscription_unschedule_cancellation_params.rb +3 -8
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +342 -377
- 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 +343 -377
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_params.rb +3 -8
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +343 -377
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +22 -33
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +342 -377
- 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 +341 -377
- 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/request_options.rb +3 -4
- data/lib/orb/resources/alerts.rb +48 -17
- data/lib/orb/resources/coupons/subscriptions.rb +9 -2
- data/lib/orb/resources/coupons.rb +25 -7
- 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 +108 -28
- 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 +135 -36
- 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 +7 -1
- data/lib/orb/resources/prices.rb +97 -22
- 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/client.rbi +7 -6
- data/rbi/lib/orb/file_part.rbi +34 -0
- data/rbi/lib/orb/internal/page.rbi +1 -0
- data/rbi/lib/orb/internal/transport/base_client.rbi +18 -3
- data/rbi/lib/orb/internal/type/array_of.rbi +15 -9
- data/rbi/lib/orb/internal/type/base_model.rbi +22 -0
- data/rbi/lib/orb/internal/type/base_page.rbi +2 -0
- data/rbi/lib/orb/internal/type/boolean.rbi +4 -5
- data/rbi/lib/orb/internal/type/converter.rbi +8 -0
- data/rbi/lib/orb/internal/type/enum.rbi +7 -6
- data/rbi/lib/orb/internal/type/{io_like.rbi → file_input.rbi} +9 -7
- data/rbi/lib/orb/internal/type/hash_of.rbi +15 -9
- data/rbi/lib/orb/internal/type/union.rbi +7 -0
- data/rbi/lib/orb/internal/type/unknown.rbi +4 -5
- data/rbi/lib/orb/internal/util.rbi +39 -19
- data/rbi/lib/orb/internal.rbi +1 -2
- data/rbi/lib/orb/models/alert.rbi +28 -8
- data/rbi/lib/orb/models/alert_create_for_customer_params.rbi +16 -6
- data/rbi/lib/orb/models/alert_create_for_external_customer_params.rbi +16 -6
- data/rbi/lib/orb/models/alert_create_for_subscription_params.rbi +16 -6
- data/rbi/lib/orb/models/alert_disable_params.rbi +5 -2
- data/rbi/lib/orb/models/alert_enable_params.rbi +5 -2
- data/rbi/lib/orb/models/alert_list_params.rbi +6 -0
- data/rbi/lib/orb/models/alert_update_params.rbi +11 -4
- data/rbi/lib/orb/models/amount_discount.rbi +10 -4
- data/rbi/lib/orb/models/billable_metric.rbi +16 -3
- data/rbi/lib/orb/models/billing_cycle_relative_date.rbi +1 -1
- data/rbi/lib/orb/models/coupon.rbi +10 -3
- data/rbi/lib/orb/models/coupon_create_params.rbi +6 -3
- data/rbi/lib/orb/models/coupon_list_params.rbi +13 -3
- data/rbi/lib/orb/models/coupons/subscription_list_params.rbi +8 -2
- data/rbi/lib/orb/models/credit_note.rbi +44 -12
- data/rbi/lib/orb/models/credit_note_create_params.rbi +15 -6
- data/rbi/lib/orb/models/credit_note_list_params.rbi +3 -0
- data/rbi/lib/orb/models/customer.rbi +130 -11
- data/rbi/lib/orb/models/customer_create_params.rbi +142 -8
- data/rbi/lib/orb/models/customer_list_params.rbi +3 -0
- data/rbi/lib/orb/models/customer_update_by_external_id_params.rbi +140 -8
- data/rbi/lib/orb/models/customer_update_params.rbi +140 -8
- data/rbi/lib/orb/models/customers/balance_transaction_create_params.rbi +8 -4
- data/rbi/lib/orb/models/customers/balance_transaction_create_response.rbi +18 -8
- data/rbi/lib/orb/models/customers/balance_transaction_list_params.rbi +3 -0
- data/rbi/lib/orb/models/customers/balance_transaction_list_response.rbi +18 -8
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_params.rbi +9 -5
- data/rbi/lib/orb/models/customers/cost_list_by_external_id_response.rbi +21 -4
- data/rbi/lib/orb/models/customers/cost_list_params.rbi +9 -5
- data/rbi/lib/orb/models/customers/cost_list_response.rbi +21 -4
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_params.rbi +13 -3
- data/rbi/lib/orb/models/customers/credit_list_by_external_id_response.rbi +1 -2
- data/rbi/lib/orb/models/customers/credit_list_params.rbi +13 -3
- data/rbi/lib/orb/models/customers/credit_list_response.rbi +1 -2
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +40 -18
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +35 -56
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_params.rbi +40 -6
- data/rbi/lib/orb/models/customers/credits/ledger_create_entry_response.rbi +35 -56
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rbi +6 -16
- data/rbi/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +35 -56
- data/rbi/lib/orb/models/customers/credits/ledger_list_params.rbi +6 -4
- data/rbi/lib/orb/models/customers/credits/ledger_list_response.rbi +35 -56
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +27 -10
- data/rbi/lib/orb/models/customers/credits/top_up_create_by_external_id_response.rbi +25 -10
- data/rbi/lib/orb/models/customers/credits/top_up_create_params.rbi +27 -4
- data/rbi/lib/orb/models/customers/credits/top_up_create_response.rbi +25 -10
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_params.rbi +8 -2
- data/rbi/lib/orb/models/customers/credits/top_up_list_by_external_id_response.rbi +25 -10
- data/rbi/lib/orb/models/customers/credits/top_up_list_params.rbi +8 -2
- data/rbi/lib/orb/models/customers/credits/top_up_list_response.rbi +25 -4
- data/rbi/lib/orb/models/dimensional_price_group.rbi +11 -3
- data/rbi/lib/orb/models/dimensional_price_group_create_params.rbi +4 -0
- data/rbi/lib/orb/models/dimensional_price_group_list_params.rbi +8 -2
- data/rbi/lib/orb/models/evaluate_price_group.rbi +8 -2
- data/rbi/lib/orb/models/event_deprecate_response.rbi +4 -2
- data/rbi/lib/orb/models/event_ingest_params.rbi +22 -5
- data/rbi/lib/orb/models/event_ingest_response.rbi +15 -4
- data/rbi/lib/orb/models/event_search_params.rbi +14 -2
- data/rbi/lib/orb/models/event_search_response.rbi +14 -3
- data/rbi/lib/orb/models/event_update_params.rbi +10 -3
- data/rbi/lib/orb/models/event_update_response.rbi +4 -2
- data/rbi/lib/orb/models/events/backfill_close_response.rbi +14 -2
- data/rbi/lib/orb/models/events/backfill_create_params.rbi +18 -0
- data/rbi/lib/orb/models/events/backfill_create_response.rbi +14 -2
- data/rbi/lib/orb/models/events/backfill_fetch_response.rbi +14 -2
- data/rbi/lib/orb/models/events/backfill_list_params.rbi +8 -2
- data/rbi/lib/orb/models/events/backfill_list_response.rbi +14 -2
- data/rbi/lib/orb/models/events/backfill_revert_response.rbi +14 -2
- data/rbi/lib/orb/models/events/event_volumes.rbi +6 -2
- data/rbi/lib/orb/models/events/volume_list_params.rbi +18 -2
- data/rbi/lib/orb/models/invoice.rbi +375 -46
- data/rbi/lib/orb/models/invoice_create_params.rbi +38 -6
- data/rbi/lib/orb/models/invoice_fetch_upcoming_response.rbi +375 -66
- data/rbi/lib/orb/models/invoice_issue_params.rbi +9 -2
- data/rbi/lib/orb/models/invoice_line_item_create_params.rbi +16 -2
- data/rbi/lib/orb/models/invoice_line_item_create_response.rbi +141 -20
- data/rbi/lib/orb/models/invoice_list_params.rbi +9 -2
- data/rbi/lib/orb/models/invoice_mark_paid_params.rbi +9 -2
- data/rbi/lib/orb/models/invoice_update_params.rbi +7 -2
- data/rbi/lib/orb/models/item.rbi +1 -2
- data/rbi/lib/orb/models/item_create_params.rbi +5 -2
- data/rbi/lib/orb/models/item_list_params.rbi +8 -2
- data/rbi/lib/orb/models/item_update_params.rbi +1 -8
- data/rbi/lib/orb/models/metric_create_params.rbi +15 -2
- data/rbi/lib/orb/models/metric_list_params.rbi +3 -0
- data/rbi/lib/orb/models/metric_update_params.rbi +7 -2
- data/rbi/lib/orb/models/percentage_discount.rbi +11 -4
- data/rbi/lib/orb/models/plan.rbi +102 -15
- data/rbi/lib/orb/models/plan_create_params.rbi +997 -679
- data/rbi/lib/orb/models/plan_list_params.rbi +5 -1
- data/rbi/lib/orb/models/plan_update_params.rbi +11 -2
- data/rbi/lib/orb/models/plans/external_plan_id_update_params.rbi +11 -2
- data/rbi/lib/orb/models/price.rbi +717 -688
- data/rbi/lib/orb/models/price_create_params.rbi +137 -53
- data/rbi/lib/orb/models/price_evaluate_params.rbi +10 -0
- data/rbi/lib/orb/models/price_list_params.rbi +8 -2
- data/rbi/lib/orb/models/price_update_params.rbi +7 -2
- data/rbi/lib/orb/models/prices/external_price_id_update_params.rbi +7 -2
- data/rbi/lib/orb/models/subscription.rbi +174 -11
- data/rbi/lib/orb/models/subscription_cancel_params.rbi +8 -5
- data/rbi/lib/orb/models/subscription_cancel_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_change_apply_params.rbi +7 -2
- data/rbi/lib/orb/models/subscription_change_apply_response.rbi +199 -18
- data/rbi/lib/orb/models/subscription_change_cancel_response.rbi +199 -18
- data/rbi/lib/orb/models/subscription_change_retrieve_response.rbi +199 -18
- data/rbi/lib/orb/models/subscription_create_params.rbi +2282 -1536
- data/rbi/lib/orb/models/subscription_create_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_fetch_costs_params.rbi +9 -5
- data/rbi/lib/orb/models/subscription_fetch_costs_response.rbi +21 -4
- data/rbi/lib/orb/models/subscription_fetch_schedule_params.rbi +3 -0
- data/rbi/lib/orb/models/subscription_fetch_schedule_response.rbi +8 -2
- data/rbi/lib/orb/models/subscription_fetch_usage_params.rbi +13 -4
- data/rbi/lib/orb/models/subscription_list_params.rbi +4 -2
- data/rbi/lib/orb/models/subscription_price_intervals_params.rbi +1228 -861
- data/rbi/lib/orb/models/subscription_price_intervals_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_schedule_plan_change_params.rbi +2288 -1544
- data/rbi/lib/orb/models/subscription_schedule_plan_change_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_trigger_phase_params.rbi +10 -2
- data/rbi/lib/orb/models/subscription_trigger_phase_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_unschedule_cancellation_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_params.rbi +5 -2
- data/rbi/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +187 -20
- data/rbi/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_params.rbi +11 -2
- data/rbi/lib/orb/models/subscription_update_fixed_fee_quantity_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_update_params.rbi +15 -0
- data/rbi/lib/orb/models/subscription_update_trial_params.rbi +11 -5
- data/rbi/lib/orb/models/subscription_update_trial_response.rbi +187 -14
- data/rbi/lib/orb/models/subscription_usage.rbi +2 -16
- data/rbi/lib/orb/models/trial_discount.rbi +5 -1
- data/rbi/lib/orb/models/usage_discount.rbi +11 -3
- 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 +4 -0
- data/sig/orb/internal/type/base_model.rbs +12 -0
- data/sig/orb/internal/type/converter.rbs +4 -0
- data/sig/orb/internal/type/enum.rbs +4 -2
- data/sig/orb/internal/type/{io_like.rbs → file_input.rbs} +1 -1
- data/sig/orb/internal/type/hash_of.rbs +4 -0
- data/sig/orb/internal/type/union.rbs +4 -0
- data/sig/orb/internal/util.rbs +16 -12
- data/sig/orb/internal.rbs +1 -1
- metadata +9 -5
@@ -269,31 +269,90 @@ module Orb
|
|
269
269
|
end
|
270
270
|
def self.new(
|
271
271
|
id:,
|
272
|
+
# The current plan phase that is active, only if the subscription's plan has
|
273
|
+
# phases.
|
272
274
|
active_plan_phase_order:,
|
275
|
+
# The adjustment intervals for this subscription sorted by the start_date of the
|
276
|
+
# adjustment interval.
|
273
277
|
adjustment_intervals:,
|
278
|
+
# Determines whether issued invoices for this subscription will automatically be
|
279
|
+
# charged with the saved payment method on the due date. This property defaults to
|
280
|
+
# the plan's behavior. If null, defaults to the customer's setting.
|
274
281
|
auto_collection:,
|
275
282
|
billing_cycle_anchor_configuration:,
|
283
|
+
# The day of the month on which the billing cycle is anchored. If the maximum
|
284
|
+
# number of days in a month is greater than this value, the last day of the month
|
285
|
+
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
286
|
+
# period begins on the 30th.
|
276
287
|
billing_cycle_day:,
|
277
288
|
created_at:,
|
289
|
+
# The end of the current billing period. This is an exclusive timestamp, such that
|
290
|
+
# the instant returned is not part of the billing period. Set to null for
|
291
|
+
# subscriptions that are not currently active.
|
278
292
|
current_billing_period_end_date:,
|
293
|
+
# The start date of the current billing period. This is an inclusive timestamp;
|
294
|
+
# the instant returned is exactly the beginning of the billing period. Set to null
|
295
|
+
# if the subscription is not currently active.
|
279
296
|
current_billing_period_start_date:,
|
297
|
+
# A customer is a buyer of your products, and the other party to the billing
|
298
|
+
# relationship.
|
299
|
+
#
|
300
|
+
# In Orb, customers are assigned system generated identifiers automatically, but
|
301
|
+
# it's often desirable to have these match existing identifiers in your system. To
|
302
|
+
# avoid having to denormalize Orb ID information, you can pass in an
|
303
|
+
# `external_customer_id` with your own identifier. See
|
304
|
+
# [Customer ID Aliases](/events-and-metrics/customer-aliases) for further
|
305
|
+
# information about how these aliases work in Orb.
|
306
|
+
#
|
307
|
+
# In addition to having an identifier in your system, a customer may exist in a
|
308
|
+
# payment provider solution like Stripe. Use the `payment_provider_id` and the
|
309
|
+
# `payment_provider` enum field to express this mapping.
|
310
|
+
#
|
311
|
+
# A customer also has a timezone (from the standard
|
312
|
+
# [IANA timezone database](https://www.iana.org/time-zones)), which defaults to
|
313
|
+
# your account's timezone. See [Timezone localization](/essentials/timezones) for
|
314
|
+
# information on what this timezone parameter influences within Orb.
|
280
315
|
customer:,
|
316
|
+
# Determines the default memo on this subscriptions' invoices. Note that if this
|
317
|
+
# is not provided, it is determined by the plan configuration.
|
281
318
|
default_invoice_memo:,
|
319
|
+
# The discount intervals for this subscription sorted by the start_date.
|
282
320
|
discount_intervals:,
|
321
|
+
# The date Orb stops billing for this subscription.
|
283
322
|
end_date:,
|
284
323
|
fixed_fee_quantity_schedule:,
|
285
324
|
invoicing_threshold:,
|
325
|
+
# The maximum intervals for this subscription sorted by the start_date.
|
286
326
|
maximum_intervals:,
|
327
|
+
# User specified key-value pairs for the resource. If not present, this defaults
|
328
|
+
# to an empty dictionary. Individual keys can be removed by setting the value to
|
329
|
+
# `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
330
|
+
# `null`.
|
287
331
|
metadata:,
|
332
|
+
# The minimum intervals for this subscription sorted by the start_date.
|
288
333
|
minimum_intervals:,
|
334
|
+
# Determines the difference between the invoice issue date for subscription
|
335
|
+
# invoices as the date that they are due. A value of `0` here represents that the
|
336
|
+
# invoice is due on issue, whereas a value of `30` represents that the customer
|
337
|
+
# has a month to pay the invoice.
|
289
338
|
net_terms:,
|
339
|
+
# A pending subscription change if one exists on this subscription.
|
290
340
|
pending_subscription_change:,
|
341
|
+
# The [Plan](/core-concepts#plan-and-price) resource represents a plan that can be
|
342
|
+
# subscribed to by a customer. Plans define the billing behavior of the
|
343
|
+
# subscription. You can see more about how to configure prices in the
|
344
|
+
# [Price resource](/reference/price).
|
291
345
|
plan:,
|
346
|
+
# The price intervals for this subscription.
|
292
347
|
price_intervals:,
|
293
348
|
redeemed_coupon:,
|
349
|
+
# The date Orb starts billing for this subscription.
|
294
350
|
start_date:,
|
295
351
|
status:,
|
296
352
|
trial_info:,
|
353
|
+
# The resources that were changed as part of this operation. Only present when
|
354
|
+
# fetched through the subscription changes API or if the
|
355
|
+
# `include_changed_resources` parameter was passed in the request.
|
297
356
|
changed_resources: nil
|
298
357
|
); end
|
299
358
|
sig do
|
@@ -384,8 +443,16 @@ module Orb
|
|
384
443
|
)
|
385
444
|
.returns(T.attached_class)
|
386
445
|
end
|
387
|
-
def self.new(
|
388
|
-
|
446
|
+
def self.new(
|
447
|
+
id:,
|
448
|
+
adjustment:,
|
449
|
+
# The price interval IDs that this adjustment applies to.
|
450
|
+
applies_to_price_interval_ids:,
|
451
|
+
# The end date of the adjustment interval.
|
452
|
+
end_date:,
|
453
|
+
# The start date of the adjustment interval.
|
454
|
+
start_date:
|
455
|
+
); end
|
389
456
|
sig do
|
390
457
|
override
|
391
458
|
.returns(
|
@@ -452,10 +519,17 @@ module Orb
|
|
452
519
|
end
|
453
520
|
def self.new(
|
454
521
|
id:,
|
522
|
+
# The price IDs that this adjustment applies to.
|
455
523
|
applies_to_price_ids:,
|
524
|
+
# True for adjustments that apply to an entire invocice, false for adjustments
|
525
|
+
# that apply to only one price.
|
456
526
|
is_invoice_level:,
|
527
|
+
# The plan phase in which this adjustment is active.
|
457
528
|
plan_phase_order:,
|
529
|
+
# The reason for the adjustment.
|
458
530
|
reason:,
|
531
|
+
# The number of usage units by which to discount the price this adjustment applies
|
532
|
+
# to in a given billing period.
|
459
533
|
usage_discount:,
|
460
534
|
adjustment_type: :usage_discount
|
461
535
|
); end
|
@@ -519,10 +593,17 @@ module Orb
|
|
519
593
|
end
|
520
594
|
def self.new(
|
521
595
|
id:,
|
596
|
+
# The amount by which to discount the prices this adjustment applies to in a given
|
597
|
+
# billing period.
|
522
598
|
amount_discount:,
|
599
|
+
# The price IDs that this adjustment applies to.
|
523
600
|
applies_to_price_ids:,
|
601
|
+
# True for adjustments that apply to an entire invocice, false for adjustments
|
602
|
+
# that apply to only one price.
|
524
603
|
is_invoice_level:,
|
604
|
+
# The plan phase in which this adjustment is active.
|
525
605
|
plan_phase_order:,
|
606
|
+
# The reason for the adjustment.
|
526
607
|
reason:,
|
527
608
|
adjustment_type: :amount_discount
|
528
609
|
); end
|
@@ -586,10 +667,17 @@ module Orb
|
|
586
667
|
end
|
587
668
|
def self.new(
|
588
669
|
id:,
|
670
|
+
# The price IDs that this adjustment applies to.
|
589
671
|
applies_to_price_ids:,
|
672
|
+
# True for adjustments that apply to an entire invocice, false for adjustments
|
673
|
+
# that apply to only one price.
|
590
674
|
is_invoice_level:,
|
675
|
+
# The percentage (as a value between 0 and 1) by which to discount the price
|
676
|
+
# intervals this adjustment applies to in a given billing period.
|
591
677
|
percentage_discount:,
|
678
|
+
# The plan phase in which this adjustment is active.
|
592
679
|
plan_phase_order:,
|
680
|
+
# The reason for the adjustment.
|
593
681
|
reason:,
|
594
682
|
adjustment_type: :percentage_discount
|
595
683
|
); end
|
@@ -658,11 +746,19 @@ module Orb
|
|
658
746
|
end
|
659
747
|
def self.new(
|
660
748
|
id:,
|
749
|
+
# The price IDs that this adjustment applies to.
|
661
750
|
applies_to_price_ids:,
|
751
|
+
# True for adjustments that apply to an entire invocice, false for adjustments
|
752
|
+
# that apply to only one price.
|
662
753
|
is_invoice_level:,
|
754
|
+
# The item ID that revenue from this minimum will be attributed to.
|
663
755
|
item_id:,
|
756
|
+
# The minimum amount to charge in a given billing period for the prices this
|
757
|
+
# adjustment applies to.
|
664
758
|
minimum_amount:,
|
759
|
+
# The plan phase in which this adjustment is active.
|
665
760
|
plan_phase_order:,
|
761
|
+
# The reason for the adjustment.
|
666
762
|
reason:,
|
667
763
|
adjustment_type: :minimum
|
668
764
|
); end
|
@@ -727,10 +823,17 @@ module Orb
|
|
727
823
|
end
|
728
824
|
def self.new(
|
729
825
|
id:,
|
826
|
+
# The price IDs that this adjustment applies to.
|
730
827
|
applies_to_price_ids:,
|
828
|
+
# True for adjustments that apply to an entire invocice, false for adjustments
|
829
|
+
# that apply to only one price.
|
731
830
|
is_invoice_level:,
|
831
|
+
# The maximum amount to charge in a given billing period for the prices this
|
832
|
+
# adjustment applies to.
|
732
833
|
maximum_amount:,
|
834
|
+
# The plan phase in which this adjustment is active.
|
733
835
|
plan_phase_order:,
|
836
|
+
# The reason for the adjustment.
|
734
837
|
reason:,
|
735
838
|
adjustment_type: :maximum
|
736
839
|
); end
|
@@ -783,8 +886,20 @@ module Orb
|
|
783
886
|
sig do
|
784
887
|
params(day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)).returns(T.attached_class)
|
785
888
|
end
|
786
|
-
def self.new(
|
787
|
-
|
889
|
+
def self.new(
|
890
|
+
# The day of the month on which the billing cycle is anchored. If the maximum
|
891
|
+
# number of days in a month is greater than this value, the last day of the month
|
892
|
+
# is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing
|
893
|
+
# period begins on the 30th.
|
894
|
+
day:,
|
895
|
+
# The month on which the billing cycle is anchored (e.g. a quarterly price
|
896
|
+
# anchored in February would have cycles starting February, May, August, and
|
897
|
+
# November).
|
898
|
+
month: nil,
|
899
|
+
# The year on which the billing cycle is anchored (e.g. a 2 year billing cycle
|
900
|
+
# anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).
|
901
|
+
year: nil
|
902
|
+
); end
|
788
903
|
sig { override.returns({day: Integer, month: T.nilable(Integer), year: T.nilable(Integer)}) }
|
789
904
|
def to_hash; end
|
790
905
|
end
|
@@ -828,10 +943,15 @@ module Orb
|
|
828
943
|
.returns(T.attached_class)
|
829
944
|
end
|
830
945
|
def self.new(
|
946
|
+
# Only available if discount_type is `amount`.
|
831
947
|
amount_discount:,
|
948
|
+
# The price ids that this discount interval applies to.
|
832
949
|
applies_to_price_ids:,
|
950
|
+
# The price interval ids that this discount interval applies to.
|
833
951
|
applies_to_price_interval_ids:,
|
952
|
+
# The end date of the discount interval.
|
834
953
|
end_date:,
|
954
|
+
# The start date of the discount interval.
|
835
955
|
start_date:,
|
836
956
|
discount_type: :amount
|
837
957
|
); end
|
@@ -888,10 +1008,16 @@ module Orb
|
|
888
1008
|
.returns(T.attached_class)
|
889
1009
|
end
|
890
1010
|
def self.new(
|
1011
|
+
# The price ids that this discount interval applies to.
|
891
1012
|
applies_to_price_ids:,
|
1013
|
+
# The price interval ids that this discount interval applies to.
|
892
1014
|
applies_to_price_interval_ids:,
|
1015
|
+
# The end date of the discount interval.
|
893
1016
|
end_date:,
|
1017
|
+
# Only available if discount_type is `percentage`.This is a number between 0
|
1018
|
+
# and 1.
|
894
1019
|
percentage_discount:,
|
1020
|
+
# The start date of the discount interval.
|
895
1021
|
start_date:,
|
896
1022
|
discount_type: :percentage
|
897
1023
|
); end
|
@@ -948,10 +1074,16 @@ module Orb
|
|
948
1074
|
.returns(T.attached_class)
|
949
1075
|
end
|
950
1076
|
def self.new(
|
1077
|
+
# The price ids that this discount interval applies to.
|
951
1078
|
applies_to_price_ids:,
|
1079
|
+
# The price interval ids that this discount interval applies to.
|
952
1080
|
applies_to_price_interval_ids:,
|
1081
|
+
# The end date of the discount interval.
|
953
1082
|
end_date:,
|
1083
|
+
# The start date of the discount interval.
|
954
1084
|
start_date:,
|
1085
|
+
# Only available if discount_type is `usage`. Number of usage units that this
|
1086
|
+
# discount is for
|
955
1087
|
usage_discount:,
|
956
1088
|
discount_type: :usage
|
957
1089
|
); end
|
@@ -1038,14 +1170,18 @@ module Orb
|
|
1038
1170
|
.returns(T.attached_class)
|
1039
1171
|
end
|
1040
1172
|
def self.new(
|
1173
|
+
# The price ids that this maximum interval applies to.
|
1041
1174
|
applies_to_price_ids:,
|
1175
|
+
# The price interval ids that this maximum interval applies to.
|
1042
1176
|
applies_to_price_interval_ids:,
|
1177
|
+
# The end date of the maximum interval.
|
1043
1178
|
end_date:,
|
1179
|
+
# The maximum amount to charge in a given billing period for the price intervals
|
1180
|
+
# this transform applies to.
|
1044
1181
|
maximum_amount:,
|
1182
|
+
# The start date of the maximum interval.
|
1045
1183
|
start_date:
|
1046
|
-
)
|
1047
|
-
end
|
1048
|
-
|
1184
|
+
); end
|
1049
1185
|
sig do
|
1050
1186
|
override
|
1051
1187
|
.returns(
|
@@ -1094,14 +1230,18 @@ module Orb
|
|
1094
1230
|
.returns(T.attached_class)
|
1095
1231
|
end
|
1096
1232
|
def self.new(
|
1233
|
+
# The price ids that this minimum interval applies to.
|
1097
1234
|
applies_to_price_ids:,
|
1235
|
+
# The price interval ids that this minimum interval applies to.
|
1098
1236
|
applies_to_price_interval_ids:,
|
1237
|
+
# The end date of the minimum interval.
|
1099
1238
|
end_date:,
|
1239
|
+
# The minimum amount to charge in a given billing period for the price intervals
|
1240
|
+
# this minimum applies to.
|
1100
1241
|
minimum_amount:,
|
1242
|
+
# The start date of the minimum interval.
|
1101
1243
|
start_date:
|
1102
|
-
)
|
1103
|
-
end
|
1104
|
-
|
1244
|
+
); end
|
1105
1245
|
sig do
|
1106
1246
|
override
|
1107
1247
|
.returns(
|
@@ -1282,14 +1422,40 @@ module Orb
|
|
1282
1422
|
end
|
1283
1423
|
def self.new(
|
1284
1424
|
id:,
|
1425
|
+
# The day of the month that Orb bills for this price
|
1285
1426
|
billing_cycle_day:,
|
1427
|
+
# The end of the current billing period. This is an exclusive timestamp, such that
|
1428
|
+
# the instant returned is exactly the end of the billing period. Set to null if
|
1429
|
+
# this price interval is not currently active.
|
1286
1430
|
current_billing_period_end_date:,
|
1431
|
+
# The start date of the current billing period. This is an inclusive timestamp;
|
1432
|
+
# the instant returned is exactly the beginning of the billing period. Set to null
|
1433
|
+
# if this price interval is not currently active.
|
1287
1434
|
current_billing_period_start_date:,
|
1435
|
+
# The end date of the price interval. This is the date that Orb stops billing for
|
1436
|
+
# this price.
|
1288
1437
|
end_date:,
|
1438
|
+
# An additional filter to apply to usage queries.
|
1289
1439
|
filter:,
|
1440
|
+
# The fixed fee quantity transitions for this price interval. This is only
|
1441
|
+
# relevant for fixed fees.
|
1290
1442
|
fixed_fee_quantity_transitions:,
|
1443
|
+
# The Price resource represents a price that can be billed on a subscription,
|
1444
|
+
# resulting in a charge on an invoice in the form of an invoice line item. Prices
|
1445
|
+
# take a quantity and determine an amount to bill.
|
1446
|
+
#
|
1447
|
+
# Orb supports a few different pricing models out of the box. Each of these models
|
1448
|
+
# is serialized differently in a given Price object. The model_type field
|
1449
|
+
# determines the key for the configuration object that is present.
|
1450
|
+
#
|
1451
|
+
# For more on the types of prices, see
|
1452
|
+
# [the core concepts documentation](/core-concepts#plan-and-price)
|
1291
1453
|
price:,
|
1454
|
+
# The start date of the price interval. This is the date that Orb starts billing
|
1455
|
+
# for this price.
|
1292
1456
|
start_date:,
|
1457
|
+
# A list of customer IDs whose usage events will be aggregated and billed under
|
1458
|
+
# this price interval.
|
1293
1459
|
usage_customer_ids:
|
1294
1460
|
); end
|
1295
1461
|
sig do
|
@@ -1384,8 +1550,7 @@ module Orb
|
|
1384
1550
|
|
1385
1551
|
TaggedSymbol =
|
1386
1552
|
T.type_alias { T.all(Symbol, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status) }
|
1387
|
-
OrSymbol =
|
1388
|
-
T.type_alias { T.any(Symbol, String, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol) }
|
1553
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1389
1554
|
|
1390
1555
|
ACTIVE = T.let(:active, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol)
|
1391
1556
|
ENDED = T.let(:ended, Orb::Models::SubscriptionSchedulePlanChangeResponse::Status::TaggedSymbol)
|
@@ -1435,8 +1600,16 @@ module Orb
|
|
1435
1600
|
)
|
1436
1601
|
.returns(T.attached_class)
|
1437
1602
|
end
|
1438
|
-
def self.new(
|
1439
|
-
|
1603
|
+
def self.new(
|
1604
|
+
# The credit notes that were created as part of this operation.
|
1605
|
+
created_credit_notes:,
|
1606
|
+
# The invoices that were created as part of this operation.
|
1607
|
+
created_invoices:,
|
1608
|
+
# The credit notes that were voided as part of this operation.
|
1609
|
+
voided_credit_notes:,
|
1610
|
+
# The invoices that were voided as part of this operation.
|
1611
|
+
voided_invoices:
|
1612
|
+
); end
|
1440
1613
|
sig do
|
1441
1614
|
override
|
1442
1615
|
.returns(
|
@@ -25,8 +25,16 @@ module Orb
|
|
25
25
|
)
|
26
26
|
.returns(T.attached_class)
|
27
27
|
end
|
28
|
-
def self.new(
|
29
|
-
|
28
|
+
def self.new(
|
29
|
+
# If false, this request will fail if it would void an issued invoice or create a
|
30
|
+
# credit note. Consider using this as a safety mechanism if you do not expect
|
31
|
+
# existing invoices to be changed.
|
32
|
+
allow_invoice_credit_or_void: nil,
|
33
|
+
# The date on which the phase change should take effect. If not provided, defaults
|
34
|
+
# to today in the customer's timezone.
|
35
|
+
effective_date: nil,
|
36
|
+
request_options: {}
|
37
|
+
); end
|
30
38
|
sig do
|
31
39
|
override
|
32
40
|
.returns(
|