orb-billing 0.5.2 → 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 +12 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- 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 -6
- data/lib/orb/models/coupon_create_params.rb +3 -3
- 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 -26
- data/lib/orb/models/customer_update_by_external_id_params.rb +26 -26
- data/lib/orb/models/customer_update_params.rb +26 -26
- 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_params.rb +8 -8
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_params.rb +4 -4
- data/lib/orb/models/customers/credits/ledger_list_params.rb +4 -4
- 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 -1
- 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 -113
- data/lib/orb/models/invoice_create_params.rb +10 -10
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +6 -6
- data/lib/orb/models/invoice_level_discount.rb +1 -1
- data/lib/orb/models/invoice_line_item_create_response.rb +4 -4
- 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 -58
- data/lib/orb/models/plan_create_params.rb +448 -444
- data/lib/orb/models/plan_list_params.rb +2 -2
- data/lib/orb/models/price.rb +1204 -1204
- 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 -56
- data/lib/orb/models/subscription_cancel_params.rb +2 -2
- data/lib/orb/models/subscription_cancel_response.rb +14 -14
- data/lib/orb/models/subscription_change_apply_response.rb +14 -14
- data/lib/orb/models/subscription_change_cancel_response.rb +14 -14
- data/lib/orb/models/subscription_change_retrieve_response.rb +14 -14
- data/lib/orb/models/subscription_create_params.rb +1002 -987
- data/lib/orb/models/subscription_create_response.rb +14 -14
- 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 -585
- data/lib/orb/models/subscription_price_intervals_response.rb +14 -14
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +973 -971
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +14 -14
- data/lib/orb/models/subscription_trigger_phase_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +14 -14
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +14 -14
- 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 -14
- data/lib/orb/models/subscription_update_trial_params.rb +3 -3
- data/lib/orb/models/subscription_update_trial_response.rb +14 -14
- data/lib/orb/models/subscription_usage.rb +26 -26
- 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/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.rbi +3 -0
- data/rbi/orb/models/subscription_price_intervals_params.rbi +26 -72
- data/rbi/orb/models/subscription_update_trial_params.rbi +14 -3
- data/rbi/orb/resources/subscriptions.rbi +4 -1
- data/sig/orb/internal/page.rbs +2 -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
data/sig/orb/models/coupon.rbs
CHANGED
@@ -4,7 +4,7 @@ module Orb
|
|
4
4
|
{
|
5
5
|
id: String,
|
6
6
|
archived_at: Time?,
|
7
|
-
discount: Orb::Coupon::discount,
|
7
|
+
discount: Orb::Models::Coupon::discount,
|
8
8
|
duration_in_months: Integer?,
|
9
9
|
max_redemptions: Integer?,
|
10
10
|
redemption_code: String,
|
@@ -16,7 +16,7 @@ module Orb
|
|
16
16
|
|
17
17
|
attr_accessor archived_at: Time?
|
18
18
|
|
19
|
-
attr_accessor discount: Orb::Coupon::discount
|
19
|
+
attr_accessor discount: Orb::Models::Coupon::discount
|
20
20
|
|
21
21
|
attr_accessor duration_in_months: Integer?
|
22
22
|
|
@@ -29,19 +29,29 @@ module Orb
|
|
29
29
|
def initialize: (
|
30
30
|
id: String,
|
31
31
|
archived_at: Time?,
|
32
|
-
discount: Orb::Coupon::discount,
|
32
|
+
discount: Orb::Models::Coupon::discount,
|
33
33
|
duration_in_months: Integer?,
|
34
34
|
max_redemptions: Integer?,
|
35
35
|
redemption_code: String,
|
36
36
|
times_redeemed: Integer
|
37
37
|
) -> void
|
38
38
|
|
39
|
+
def to_hash: -> {
|
40
|
+
id: String,
|
41
|
+
archived_at: Time?,
|
42
|
+
discount: Orb::Models::Coupon::discount,
|
43
|
+
duration_in_months: Integer?,
|
44
|
+
max_redemptions: Integer?,
|
45
|
+
redemption_code: String,
|
46
|
+
times_redeemed: Integer
|
47
|
+
}
|
48
|
+
|
39
49
|
type discount = Orb::PercentageDiscount | Orb::AmountDiscount
|
40
50
|
|
41
51
|
module Discount
|
42
52
|
extend Orb::Internal::Type::Union
|
43
53
|
|
44
|
-
def self?.variants: -> ::Array[Orb::Coupon::discount]
|
54
|
+
def self?.variants: -> ::Array[Orb::Models::Coupon::discount]
|
45
55
|
end
|
46
56
|
end
|
47
57
|
end
|
@@ -29,6 +29,14 @@ module Orb
|
|
29
29
|
?request_options: Orb::request_opts
|
30
30
|
) -> void
|
31
31
|
|
32
|
+
def to_hash: -> {
|
33
|
+
discount: Orb::Models::CouponCreateParams::discount,
|
34
|
+
redemption_code: String,
|
35
|
+
duration_in_months: Integer?,
|
36
|
+
max_redemptions: Integer?,
|
37
|
+
request_options: Orb::RequestOptions
|
38
|
+
}
|
39
|
+
|
32
40
|
type discount =
|
33
41
|
Orb::CouponCreateParams::Discount::Percentage
|
34
42
|
| Orb::CouponCreateParams::Discount::Amount
|
@@ -48,6 +56,11 @@ module Orb
|
|
48
56
|
percentage_discount: Float,
|
49
57
|
?discount_type: :percentage
|
50
58
|
) -> void
|
59
|
+
|
60
|
+
def to_hash: -> {
|
61
|
+
discount_type: :percentage,
|
62
|
+
percentage_discount: Float
|
63
|
+
}
|
51
64
|
end
|
52
65
|
|
53
66
|
type amount = { amount_discount: String, discount_type: :amount }
|
@@ -61,6 +74,8 @@ module Orb
|
|
61
74
|
amount_discount: String,
|
62
75
|
?discount_type: :amount
|
63
76
|
) -> void
|
77
|
+
|
78
|
+
def to_hash: -> { amount_discount: String, discount_type: :amount }
|
64
79
|
end
|
65
80
|
|
66
81
|
def self?.variants: -> ::Array[Orb::Models::CouponCreateParams::discount]
|
@@ -30,6 +30,14 @@ module Orb
|
|
30
30
|
?show_archived: bool?,
|
31
31
|
?request_options: Orb::request_opts
|
32
32
|
) -> void
|
33
|
+
|
34
|
+
def to_hash: -> {
|
35
|
+
cursor: String?,
|
36
|
+
limit: Integer,
|
37
|
+
redemption_code: String?,
|
38
|
+
show_archived: bool?,
|
39
|
+
request_options: Orb::RequestOptions
|
40
|
+
}
|
33
41
|
end
|
34
42
|
end
|
35
43
|
end
|
@@ -12,10 +12,10 @@ module Orb
|
|
12
12
|
maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment?,
|
13
13
|
memo: String?,
|
14
14
|
minimum_amount_refunded: String?,
|
15
|
-
reason: Orb::CreditNote::reason?,
|
15
|
+
reason: Orb::Models::CreditNote::reason?,
|
16
16
|
subtotal: String,
|
17
17
|
total: String,
|
18
|
-
type: Orb::CreditNote::type_,
|
18
|
+
type: Orb::Models::CreditNote::type_,
|
19
19
|
voided_at: Time?,
|
20
20
|
discounts: ::Array[Orb::CreditNote::Discount]
|
21
21
|
}
|
@@ -41,13 +41,13 @@ module Orb
|
|
41
41
|
|
42
42
|
attr_accessor minimum_amount_refunded: String?
|
43
43
|
|
44
|
-
attr_accessor reason: Orb::CreditNote::reason?
|
44
|
+
attr_accessor reason: Orb::Models::CreditNote::reason?
|
45
45
|
|
46
46
|
attr_accessor subtotal: String
|
47
47
|
|
48
48
|
attr_accessor total: String
|
49
49
|
|
50
|
-
attr_accessor type: Orb::CreditNote::type_
|
50
|
+
attr_accessor type: Orb::Models::CreditNote::type_
|
51
51
|
|
52
52
|
attr_accessor voided_at: Time?
|
53
53
|
|
@@ -68,14 +68,33 @@ module Orb
|
|
68
68
|
maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment?,
|
69
69
|
memo: String?,
|
70
70
|
minimum_amount_refunded: String?,
|
71
|
-
reason: Orb::CreditNote::reason?,
|
71
|
+
reason: Orb::Models::CreditNote::reason?,
|
72
72
|
subtotal: String,
|
73
73
|
total: String,
|
74
|
-
type: Orb::CreditNote::type_,
|
74
|
+
type: Orb::Models::CreditNote::type_,
|
75
75
|
voided_at: Time?,
|
76
76
|
?discounts: ::Array[Orb::CreditNote::Discount]
|
77
77
|
) -> void
|
78
78
|
|
79
|
+
def to_hash: -> {
|
80
|
+
id: String,
|
81
|
+
created_at: Time,
|
82
|
+
credit_note_number: String,
|
83
|
+
credit_note_pdf: String?,
|
84
|
+
customer: Orb::CreditNote::Customer,
|
85
|
+
invoice_id: String,
|
86
|
+
line_items: ::Array[Orb::CreditNote::LineItem],
|
87
|
+
maximum_amount_adjustment: Orb::CreditNote::MaximumAmountAdjustment?,
|
88
|
+
memo: String?,
|
89
|
+
minimum_amount_refunded: String?,
|
90
|
+
reason: Orb::Models::CreditNote::reason?,
|
91
|
+
subtotal: String,
|
92
|
+
total: String,
|
93
|
+
type: Orb::Models::CreditNote::type_,
|
94
|
+
voided_at: Time?,
|
95
|
+
discounts: ::Array[Orb::CreditNote::Discount]
|
96
|
+
}
|
97
|
+
|
79
98
|
type customer = { id: String, external_customer_id: String? }
|
80
99
|
|
81
100
|
class Customer < Orb::Internal::Type::BaseModel
|
@@ -84,6 +103,8 @@ module Orb
|
|
84
103
|
attr_accessor external_customer_id: String?
|
85
104
|
|
86
105
|
def initialize: (id: String, external_customer_id: String?) -> void
|
106
|
+
|
107
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
87
108
|
end
|
88
109
|
|
89
110
|
type line_item =
|
@@ -130,6 +151,17 @@ module Orb
|
|
130
151
|
?discounts: ::Array[Orb::CreditNote::LineItem::Discount]
|
131
152
|
) -> void
|
132
153
|
|
154
|
+
def to_hash: -> {
|
155
|
+
id: String,
|
156
|
+
amount: String,
|
157
|
+
item_id: String,
|
158
|
+
name: String,
|
159
|
+
quantity: Float?,
|
160
|
+
subtotal: String,
|
161
|
+
tax_amounts: ::Array[Orb::CreditNote::LineItem::TaxAmount],
|
162
|
+
discounts: ::Array[Orb::CreditNote::LineItem::Discount]
|
163
|
+
}
|
164
|
+
|
133
165
|
type tax_amount =
|
134
166
|
{
|
135
167
|
amount: String,
|
@@ -149,6 +181,12 @@ module Orb
|
|
149
181
|
tax_rate_description: String,
|
150
182
|
tax_rate_percentage: String?
|
151
183
|
) -> void
|
184
|
+
|
185
|
+
def to_hash: -> {
|
186
|
+
amount: String,
|
187
|
+
tax_rate_description: String,
|
188
|
+
tax_rate_percentage: String?
|
189
|
+
}
|
152
190
|
end
|
153
191
|
|
154
192
|
type discount =
|
@@ -156,7 +194,7 @@ module Orb
|
|
156
194
|
id: String,
|
157
195
|
amount_applied: String,
|
158
196
|
applies_to_price_ids: ::Array[String],
|
159
|
-
discount_type: Orb::CreditNote::LineItem::Discount::discount_type,
|
197
|
+
discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type,
|
160
198
|
percentage_discount: Float,
|
161
199
|
amount_discount: String?,
|
162
200
|
reason: String?
|
@@ -169,7 +207,7 @@ module Orb
|
|
169
207
|
|
170
208
|
attr_accessor applies_to_price_ids: ::Array[String]
|
171
209
|
|
172
|
-
attr_accessor discount_type: Orb::CreditNote::LineItem::Discount::discount_type
|
210
|
+
attr_accessor discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type
|
173
211
|
|
174
212
|
attr_accessor percentage_discount: Float
|
175
213
|
|
@@ -181,12 +219,22 @@ module Orb
|
|
181
219
|
id: String,
|
182
220
|
amount_applied: String,
|
183
221
|
applies_to_price_ids: ::Array[String],
|
184
|
-
discount_type: Orb::CreditNote::LineItem::Discount::discount_type,
|
222
|
+
discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type,
|
185
223
|
percentage_discount: Float,
|
186
224
|
?amount_discount: String?,
|
187
225
|
?reason: String?
|
188
226
|
) -> void
|
189
227
|
|
228
|
+
def to_hash: -> {
|
229
|
+
id: String,
|
230
|
+
amount_applied: String,
|
231
|
+
applies_to_price_ids: ::Array[String],
|
232
|
+
discount_type: Orb::Models::CreditNote::LineItem::Discount::discount_type,
|
233
|
+
percentage_discount: Float,
|
234
|
+
amount_discount: String?,
|
235
|
+
reason: String?
|
236
|
+
}
|
237
|
+
|
190
238
|
type discount_type = :percentage | :amount
|
191
239
|
|
192
240
|
module DiscountType
|
@@ -195,7 +243,7 @@ module Orb
|
|
195
243
|
PERCENTAGE: :percentage
|
196
244
|
AMOUNT: :amount
|
197
245
|
|
198
|
-
def self?.values: -> ::Array[Orb::CreditNote::LineItem::Discount::discount_type]
|
246
|
+
def self?.values: -> ::Array[Orb::Models::CreditNote::LineItem::Discount::discount_type]
|
199
247
|
end
|
200
248
|
end
|
201
249
|
end
|
@@ -203,7 +251,7 @@ module Orb
|
|
203
251
|
type maximum_amount_adjustment =
|
204
252
|
{
|
205
253
|
amount_applied: String,
|
206
|
-
discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type,
|
254
|
+
discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type,
|
207
255
|
percentage_discount: Float,
|
208
256
|
applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?,
|
209
257
|
reason: String?
|
@@ -212,7 +260,7 @@ module Orb
|
|
212
260
|
class MaximumAmountAdjustment < Orb::Internal::Type::BaseModel
|
213
261
|
attr_accessor amount_applied: String
|
214
262
|
|
215
|
-
attr_accessor discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type
|
263
|
+
attr_accessor discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type
|
216
264
|
|
217
265
|
attr_accessor percentage_discount: Float
|
218
266
|
|
@@ -222,12 +270,20 @@ module Orb
|
|
222
270
|
|
223
271
|
def initialize: (
|
224
272
|
amount_applied: String,
|
225
|
-
discount_type: Orb::CreditNote::MaximumAmountAdjustment::discount_type,
|
273
|
+
discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type,
|
226
274
|
percentage_discount: Float,
|
227
275
|
?applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?,
|
228
276
|
?reason: String?
|
229
277
|
) -> void
|
230
278
|
|
279
|
+
def to_hash: -> {
|
280
|
+
amount_applied: String,
|
281
|
+
discount_type: Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type,
|
282
|
+
percentage_discount: Float,
|
283
|
+
applies_to_prices: ::Array[Orb::CreditNote::MaximumAmountAdjustment::AppliesToPrice]?,
|
284
|
+
reason: String?
|
285
|
+
}
|
286
|
+
|
231
287
|
type discount_type = :percentage
|
232
288
|
|
233
289
|
module DiscountType
|
@@ -235,7 +291,7 @@ module Orb
|
|
235
291
|
|
236
292
|
PERCENTAGE: :percentage
|
237
293
|
|
238
|
-
def self?.values: -> ::Array[Orb::CreditNote::MaximumAmountAdjustment::discount_type]
|
294
|
+
def self?.values: -> ::Array[Orb::Models::CreditNote::MaximumAmountAdjustment::discount_type]
|
239
295
|
end
|
240
296
|
|
241
297
|
type applies_to_price = { id: String, name: String }
|
@@ -246,6 +302,8 @@ module Orb
|
|
246
302
|
attr_accessor name: String
|
247
303
|
|
248
304
|
def initialize: (id: String, name: String) -> void
|
305
|
+
|
306
|
+
def to_hash: -> { id: String, name: String }
|
249
307
|
end
|
250
308
|
end
|
251
309
|
|
@@ -260,7 +318,7 @@ module Orb
|
|
260
318
|
ORDER_CHANGE: :"Order change"
|
261
319
|
PRODUCT_UNSATISFACTORY: :"Product unsatisfactory"
|
262
320
|
|
263
|
-
def self?.values: -> ::Array[Orb::CreditNote::reason]
|
321
|
+
def self?.values: -> ::Array[Orb::Models::CreditNote::reason]
|
264
322
|
end
|
265
323
|
|
266
324
|
type type_ = :refund | :adjustment
|
@@ -271,13 +329,13 @@ module Orb
|
|
271
329
|
REFUND: :refund
|
272
330
|
ADJUSTMENT: :adjustment
|
273
331
|
|
274
|
-
def self?.values: -> ::Array[Orb::CreditNote::type_]
|
332
|
+
def self?.values: -> ::Array[Orb::Models::CreditNote::type_]
|
275
333
|
end
|
276
334
|
|
277
335
|
type discount =
|
278
336
|
{
|
279
337
|
amount_applied: String,
|
280
|
-
discount_type: Orb::CreditNote::Discount::discount_type,
|
338
|
+
discount_type: Orb::Models::CreditNote::Discount::discount_type,
|
281
339
|
percentage_discount: Float,
|
282
340
|
applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]?,
|
283
341
|
reason: String?
|
@@ -286,7 +344,7 @@ module Orb
|
|
286
344
|
class Discount < Orb::Internal::Type::BaseModel
|
287
345
|
attr_accessor amount_applied: String
|
288
346
|
|
289
|
-
attr_accessor discount_type: Orb::CreditNote::Discount::discount_type
|
347
|
+
attr_accessor discount_type: Orb::Models::CreditNote::Discount::discount_type
|
290
348
|
|
291
349
|
attr_accessor percentage_discount: Float
|
292
350
|
|
@@ -296,12 +354,20 @@ module Orb
|
|
296
354
|
|
297
355
|
def initialize: (
|
298
356
|
amount_applied: String,
|
299
|
-
discount_type: Orb::CreditNote::Discount::discount_type,
|
357
|
+
discount_type: Orb::Models::CreditNote::Discount::discount_type,
|
300
358
|
percentage_discount: Float,
|
301
359
|
?applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]?,
|
302
360
|
?reason: String?
|
303
361
|
) -> void
|
304
362
|
|
363
|
+
def to_hash: -> {
|
364
|
+
amount_applied: String,
|
365
|
+
discount_type: Orb::Models::CreditNote::Discount::discount_type,
|
366
|
+
percentage_discount: Float,
|
367
|
+
applies_to_prices: ::Array[Orb::CreditNote::Discount::AppliesToPrice]?,
|
368
|
+
reason: String?
|
369
|
+
}
|
370
|
+
|
305
371
|
type discount_type = :percentage
|
306
372
|
|
307
373
|
module DiscountType
|
@@ -309,7 +375,7 @@ module Orb
|
|
309
375
|
|
310
376
|
PERCENTAGE: :percentage
|
311
377
|
|
312
|
-
def self?.values: -> ::Array[Orb::CreditNote::Discount::discount_type]
|
378
|
+
def self?.values: -> ::Array[Orb::Models::CreditNote::Discount::discount_type]
|
313
379
|
end
|
314
380
|
|
315
381
|
type applies_to_price = { id: String, name: String }
|
@@ -320,6 +386,8 @@ module Orb
|
|
320
386
|
attr_accessor name: String
|
321
387
|
|
322
388
|
def initialize: (id: String, name: String) -> void
|
389
|
+
|
390
|
+
def to_hash: -> { id: String, name: String }
|
323
391
|
end
|
324
392
|
end
|
325
393
|
end
|
@@ -25,6 +25,13 @@ module Orb
|
|
25
25
|
?request_options: Orb::request_opts
|
26
26
|
) -> void
|
27
27
|
|
28
|
+
def to_hash: -> {
|
29
|
+
line_items: ::Array[Orb::CreditNoteCreateParams::LineItem],
|
30
|
+
memo: String?,
|
31
|
+
reason: Orb::Models::CreditNoteCreateParams::reason?,
|
32
|
+
request_options: Orb::RequestOptions
|
33
|
+
}
|
34
|
+
|
28
35
|
type line_item = { amount: String, invoice_line_item_id: String }
|
29
36
|
|
30
37
|
class LineItem < Orb::Internal::Type::BaseModel
|
@@ -33,6 +40,8 @@ module Orb
|
|
33
40
|
attr_accessor invoice_line_item_id: String
|
34
41
|
|
35
42
|
def initialize: (amount: String, invoice_line_item_id: String) -> void
|
43
|
+
|
44
|
+
def to_hash: -> { amount: String, invoice_line_item_id: String }
|
36
45
|
end
|
37
46
|
|
38
47
|
type reason =
|
@@ -38,6 +38,16 @@ module Orb
|
|
38
38
|
?limit: Integer,
|
39
39
|
?request_options: Orb::request_opts
|
40
40
|
) -> void
|
41
|
+
|
42
|
+
def to_hash: -> {
|
43
|
+
created_at_gt: Time?,
|
44
|
+
created_at_gte: Time?,
|
45
|
+
created_at_lt: Time?,
|
46
|
+
created_at_lte: Time?,
|
47
|
+
cursor: String?,
|
48
|
+
limit: Integer,
|
49
|
+
request_options: Orb::RequestOptions
|
50
|
+
}
|
41
51
|
end
|
42
52
|
end
|
43
53
|
end
|
data/sig/orb/models/customer.rbs
CHANGED
@@ -16,7 +16,7 @@ module Orb
|
|
16
16
|
hierarchy: Orb::Customer::Hierarchy,
|
17
17
|
metadata: ::Hash[Symbol, String],
|
18
18
|
name: String,
|
19
|
-
payment_provider: Orb::Customer::payment_provider?,
|
19
|
+
payment_provider: Orb::Models::Customer::payment_provider?,
|
20
20
|
payment_provider_id: String?,
|
21
21
|
portal_url: String?,
|
22
22
|
shipping_address: Orb::Customer::ShippingAddress?,
|
@@ -55,7 +55,7 @@ module Orb
|
|
55
55
|
|
56
56
|
attr_accessor name: String
|
57
57
|
|
58
|
-
attr_accessor payment_provider: Orb::Customer::payment_provider?
|
58
|
+
attr_accessor payment_provider: Orb::Models::Customer::payment_provider?
|
59
59
|
|
60
60
|
attr_accessor payment_provider_id: String?
|
61
61
|
|
@@ -86,7 +86,7 @@ module Orb
|
|
86
86
|
hierarchy: Orb::Customer::Hierarchy,
|
87
87
|
metadata: ::Hash[Symbol, String],
|
88
88
|
name: String,
|
89
|
-
payment_provider: Orb::Customer::payment_provider?,
|
89
|
+
payment_provider: Orb::Models::Customer::payment_provider?,
|
90
90
|
payment_provider_id: String?,
|
91
91
|
portal_url: String?,
|
92
92
|
shipping_address: Orb::Customer::ShippingAddress?,
|
@@ -96,6 +96,31 @@ module Orb
|
|
96
96
|
?reporting_configuration: Orb::Customer::ReportingConfiguration?
|
97
97
|
) -> void
|
98
98
|
|
99
|
+
def to_hash: -> {
|
100
|
+
id: String,
|
101
|
+
additional_emails: ::Array[String],
|
102
|
+
auto_collection: bool,
|
103
|
+
balance: String,
|
104
|
+
billing_address: Orb::Customer::BillingAddress?,
|
105
|
+
created_at: Time,
|
106
|
+
currency: String?,
|
107
|
+
email: String,
|
108
|
+
email_delivery: bool,
|
109
|
+
exempt_from_automated_tax: bool?,
|
110
|
+
external_customer_id: String?,
|
111
|
+
hierarchy: Orb::Customer::Hierarchy,
|
112
|
+
metadata: ::Hash[Symbol, String],
|
113
|
+
name: String,
|
114
|
+
payment_provider: Orb::Models::Customer::payment_provider?,
|
115
|
+
payment_provider_id: String?,
|
116
|
+
portal_url: String?,
|
117
|
+
shipping_address: Orb::Customer::ShippingAddress?,
|
118
|
+
tax_id: Orb::Customer::TaxID?,
|
119
|
+
timezone: String,
|
120
|
+
accounting_sync_configuration: Orb::Customer::AccountingSyncConfiguration?,
|
121
|
+
reporting_configuration: Orb::Customer::ReportingConfiguration?
|
122
|
+
}
|
123
|
+
|
99
124
|
type billing_address =
|
100
125
|
{
|
101
126
|
city: String?,
|
@@ -127,6 +152,15 @@ module Orb
|
|
127
152
|
postal_code: String?,
|
128
153
|
state: String?
|
129
154
|
) -> void
|
155
|
+
|
156
|
+
def to_hash: -> {
|
157
|
+
city: String?,
|
158
|
+
country: String?,
|
159
|
+
:line1 => String?,
|
160
|
+
:line2 => String?,
|
161
|
+
postal_code: String?,
|
162
|
+
state: String?
|
163
|
+
}
|
130
164
|
end
|
131
165
|
|
132
166
|
type hierarchy =
|
@@ -145,6 +179,11 @@ module Orb
|
|
145
179
|
parent: Orb::Customer::Hierarchy::Parent?
|
146
180
|
) -> void
|
147
181
|
|
182
|
+
def to_hash: -> {
|
183
|
+
children: ::Array[Orb::Customer::Hierarchy::Child],
|
184
|
+
parent: Orb::Customer::Hierarchy::Parent?
|
185
|
+
}
|
186
|
+
|
148
187
|
type child = { id: String, external_customer_id: String? }
|
149
188
|
|
150
189
|
class Child < Orb::Internal::Type::BaseModel
|
@@ -153,6 +192,8 @@ module Orb
|
|
153
192
|
attr_accessor external_customer_id: String?
|
154
193
|
|
155
194
|
def initialize: (id: String, external_customer_id: String?) -> void
|
195
|
+
|
196
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
156
197
|
end
|
157
198
|
|
158
199
|
type parent = { id: String, external_customer_id: String? }
|
@@ -163,6 +204,8 @@ module Orb
|
|
163
204
|
attr_accessor external_customer_id: String?
|
164
205
|
|
165
206
|
def initialize: (id: String, external_customer_id: String?) -> void
|
207
|
+
|
208
|
+
def to_hash: -> { id: String, external_customer_id: String? }
|
166
209
|
end
|
167
210
|
end
|
168
211
|
|
@@ -178,7 +221,7 @@ module Orb
|
|
178
221
|
STRIPE_INVOICE: :stripe_invoice
|
179
222
|
NETSUITE: :netsuite
|
180
223
|
|
181
|
-
def self?.values: -> ::Array[Orb::Customer::payment_provider]
|
224
|
+
def self?.values: -> ::Array[Orb::Models::Customer::payment_provider]
|
182
225
|
end
|
183
226
|
|
184
227
|
type shipping_address =
|
@@ -212,28 +255,43 @@ module Orb
|
|
212
255
|
postal_code: String?,
|
213
256
|
state: String?
|
214
257
|
) -> void
|
258
|
+
|
259
|
+
def to_hash: -> {
|
260
|
+
city: String?,
|
261
|
+
country: String?,
|
262
|
+
:line1 => String?,
|
263
|
+
:line2 => String?,
|
264
|
+
postal_code: String?,
|
265
|
+
state: String?
|
266
|
+
}
|
215
267
|
end
|
216
268
|
|
217
269
|
type tax_id =
|
218
270
|
{
|
219
|
-
country: Orb::Customer::TaxID::country,
|
220
|
-
type: Orb::Customer::TaxID::type_,
|
271
|
+
country: Orb::Models::Customer::TaxID::country,
|
272
|
+
type: Orb::Models::Customer::TaxID::type_,
|
221
273
|
value: String
|
222
274
|
}
|
223
275
|
|
224
276
|
class TaxID < Orb::Internal::Type::BaseModel
|
225
|
-
attr_accessor country: Orb::Customer::TaxID::country
|
277
|
+
attr_accessor country: Orb::Models::Customer::TaxID::country
|
226
278
|
|
227
|
-
attr_accessor type: Orb::Customer::TaxID::type_
|
279
|
+
attr_accessor type: Orb::Models::Customer::TaxID::type_
|
228
280
|
|
229
281
|
attr_accessor value: String
|
230
282
|
|
231
283
|
def initialize: (
|
232
|
-
country: Orb::Customer::TaxID::country,
|
233
|
-
type: Orb::Customer::TaxID::type_,
|
284
|
+
country: Orb::Models::Customer::TaxID::country,
|
285
|
+
type: Orb::Models::Customer::TaxID::type_,
|
234
286
|
value: String
|
235
287
|
) -> void
|
236
288
|
|
289
|
+
def to_hash: -> {
|
290
|
+
country: Orb::Models::Customer::TaxID::country,
|
291
|
+
type: Orb::Models::Customer::TaxID::type_,
|
292
|
+
value: String
|
293
|
+
}
|
294
|
+
|
237
295
|
type country =
|
238
296
|
:AD
|
239
297
|
| :AE
|
@@ -396,7 +454,7 @@ module Orb
|
|
396
454
|
VN: :VN
|
397
455
|
ZA: :ZA
|
398
456
|
|
399
|
-
def self?.values: -> ::Array[Orb::Customer::TaxID::country]
|
457
|
+
def self?.values: -> ::Array[Orb::Models::Customer::TaxID::country]
|
400
458
|
end
|
401
459
|
|
402
460
|
type type_ =
|
@@ -547,7 +605,7 @@ module Orb
|
|
547
605
|
VN_TIN: :vn_tin
|
548
606
|
ZA_VAT: :za_vat
|
549
607
|
|
550
|
-
def self?.values: -> ::Array[Orb::Customer::TaxID::type_]
|
608
|
+
def self?.values: -> ::Array[Orb::Models::Customer::TaxID::type_]
|
551
609
|
end
|
552
610
|
end
|
553
611
|
|
@@ -567,22 +625,32 @@ module Orb
|
|
567
625
|
excluded: bool
|
568
626
|
) -> void
|
569
627
|
|
628
|
+
def to_hash: -> {
|
629
|
+
accounting_providers: ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider],
|
630
|
+
excluded: bool
|
631
|
+
}
|
632
|
+
|
570
633
|
type accounting_provider =
|
571
634
|
{
|
572
635
|
external_provider_id: String?,
|
573
|
-
provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
636
|
+
provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
574
637
|
}
|
575
638
|
|
576
639
|
class AccountingProvider < Orb::Internal::Type::BaseModel
|
577
640
|
attr_accessor external_provider_id: String?
|
578
641
|
|
579
|
-
attr_accessor provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
642
|
+
attr_accessor provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
580
643
|
|
581
644
|
def initialize: (
|
582
645
|
external_provider_id: String?,
|
583
|
-
provider_type: Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
646
|
+
provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
584
647
|
) -> void
|
585
648
|
|
649
|
+
def to_hash: -> {
|
650
|
+
external_provider_id: String?,
|
651
|
+
provider_type: Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type
|
652
|
+
}
|
653
|
+
|
586
654
|
type provider_type = :quickbooks | :netsuite
|
587
655
|
|
588
656
|
module ProviderType
|
@@ -591,7 +659,7 @@ module Orb
|
|
591
659
|
QUICKBOOKS: :quickbooks
|
592
660
|
NETSUITE: :netsuite
|
593
661
|
|
594
|
-
def self?.values: -> ::Array[Orb::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type]
|
662
|
+
def self?.values: -> ::Array[Orb::Models::Customer::AccountingSyncConfiguration::AccountingProvider::provider_type]
|
595
663
|
end
|
596
664
|
end
|
597
665
|
end
|
@@ -602,6 +670,8 @@ module Orb
|
|
602
670
|
attr_accessor exempt: bool
|
603
671
|
|
604
672
|
def initialize: (exempt: bool) -> void
|
673
|
+
|
674
|
+
def to_hash: -> { exempt: bool }
|
605
675
|
end
|
606
676
|
end
|
607
677
|
end
|