orb-billing 0.5.5 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/orb/internal/type/base_model.rb +2 -2
- data/lib/orb/internal/type/union.rb +6 -6
- data/lib/orb/models/alert.rb +33 -1
- data/lib/orb/models/amount_discount.rb +10 -10
- data/lib/orb/models/credit_note_create_params.rb +9 -9
- data/lib/orb/models/customer_create_params.rb +21 -3
- data/lib/orb/models/customer_update_by_external_id_params.rb +21 -3
- data/lib/orb/models/customer_update_params.rb +21 -3
- data/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_create_entry_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_by_external_id_response.rb +9 -1
- data/lib/orb/models/customers/credits/ledger_list_response.rb +9 -1
- data/lib/orb/models/customers/credits/top_up_create_by_external_id_params.rb +1 -1
- data/lib/orb/models/customers/credits/top_up_create_params.rb +1 -1
- data/lib/orb/models/invoice.rb +626 -9
- data/lib/orb/models/invoice_fetch_upcoming_response.rb +624 -9
- data/lib/orb/models/invoice_line_item_create_response.rb +486 -7
- data/lib/orb/models/item.rb +18 -1
- data/lib/orb/models/item_archive_params.rb +14 -0
- data/lib/orb/models/item_create_params.rb +14 -1
- data/lib/orb/models/item_update_params.rb +16 -1
- data/lib/orb/models/percentage_discount.rb +10 -10
- data/lib/orb/models/plan.rb +618 -9
- data/lib/orb/models/plan_create_params.rb +2066 -30
- data/lib/orb/models/plan_set_default_version_params.rb +22 -0
- data/lib/orb/models/plans/external_plan_id/version_create_params.rb +17948 -0
- data/lib/orb/models/plans/external_plan_id/version_create_response.rb +819 -0
- data/lib/orb/models/plans/external_plan_id/version_retrieve_params.rb +24 -0
- data/lib/orb/models/plans/external_plan_id/version_retrieve_response.rb +819 -0
- data/lib/orb/models/plans/external_plan_id_set_default_version_params.rb +24 -0
- data/lib/orb/models/plans/version_create_params.rb +17794 -0
- data/lib/orb/models/plans/version_create_response.rb +814 -0
- data/lib/orb/models/plans/version_retrieve_params.rb +22 -0
- data/lib/orb/models/plans/version_retrieve_response.rb +814 -0
- data/lib/orb/models/price.rb +4124 -70
- data/lib/orb/models/price_create_params.rb +45 -1
- data/lib/orb/models/price_evaluate_params.rb +8529 -21
- data/lib/orb/models/price_evaluate_response.rb +38 -3
- data/lib/orb/models/subscription.rb +730 -54
- data/lib/orb/models/subscription_cancel_response.rb +706 -54
- data/lib/orb/models/subscription_change_apply_response.rb +728 -54
- data/lib/orb/models/subscription_change_cancel_response.rb +728 -54
- data/lib/orb/models/subscription_change_retrieve_response.rb +728 -54
- data/lib/orb/models/subscription_create_params.rb +5992 -1698
- data/lib/orb/models/subscription_create_response.rb +706 -54
- data/lib/orb/models/subscription_fetch_schedule_response.rb +3 -3
- data/lib/orb/models/subscription_price_intervals_params.rb +1392 -76
- data/lib/orb/models/subscription_price_intervals_response.rb +712 -54
- data/lib/orb/models/subscription_schedule_plan_change_params.rb +6005 -1723
- data/lib/orb/models/subscription_schedule_plan_change_response.rb +716 -54
- data/lib/orb/models/subscription_trigger_phase_response.rb +708 -54
- data/lib/orb/models/subscription_unschedule_cancellation_response.rb +720 -54
- data/lib/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rb +728 -54
- data/lib/orb/models/subscription_unschedule_pending_plan_changes_response.rb +728 -54
- data/lib/orb/models/subscription_update_fixed_fee_quantity_params.rb +1 -1
- data/lib/orb/models/subscription_update_fixed_fee_quantity_response.rb +720 -54
- data/lib/orb/models/subscription_update_trial_response.rb +706 -54
- data/lib/orb/models/trial_discount.rb +10 -10
- data/lib/orb/models/usage_discount.rb +10 -10
- data/lib/orb/models.rb +4 -0
- data/lib/orb/resources/credit_notes.rb +3 -3
- data/lib/orb/resources/customers/balance_transactions.rb +0 -7
- data/lib/orb/resources/customers.rb +4 -7
- data/lib/orb/resources/dimensional_price_groups.rb +1 -1
- data/lib/orb/resources/items.rb +34 -2
- data/lib/orb/resources/plans/external_plan_id/versions.rb +88 -0
- data/lib/orb/resources/plans/external_plan_id.rb +32 -1
- data/lib/orb/resources/plans/versions.rb +86 -0
- data/lib/orb/resources/plans.rb +33 -2
- data/lib/orb/resources/prices.rb +23 -17
- data/lib/orb/resources/subscriptions.rb +5 -1
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +13 -0
- data/rbi/orb/models/alert.rbi +50 -3
- data/rbi/orb/models/amount_discount.rbi +8 -8
- data/rbi/orb/models/credit_note_create_params.rbi +8 -8
- data/rbi/orb/models/customer_create_params.rbi +38 -4
- data/rbi/orb/models/customer_update_by_external_id_params.rbi +38 -4
- data/rbi/orb/models/customer_update_params.rbi +38 -4
- data/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_create_entry_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_by_external_id_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/ledger_list_response.rbi +9 -1
- data/rbi/orb/models/customers/credits/top_up_create_by_external_id_params.rbi +2 -2
- data/rbi/orb/models/customers/credits/top_up_create_params.rbi +2 -2
- data/rbi/orb/models/invoice.rbi +1451 -35
- data/rbi/orb/models/invoice_fetch_upcoming_response.rbi +1524 -4
- data/rbi/orb/models/invoice_line_item_create_response.rbi +1184 -2
- data/rbi/orb/models/item.rbi +20 -1
- data/rbi/orb/models/item_archive_params.rbi +25 -0
- data/rbi/orb/models/item_create_params.rbi +18 -1
- data/rbi/orb/models/item_update_params.rbi +17 -1
- data/rbi/orb/models/percentage_discount.rbi +10 -10
- data/rbi/orb/models/plan.rbi +1339 -4
- data/rbi/orb/models/plan_create_params.rbi +3833 -29
- data/rbi/orb/models/plan_set_default_version_params.rbi +40 -0
- data/rbi/orb/models/plans/external_plan_id/version_create_params.rbi +32668 -0
- data/rbi/orb/models/plans/external_plan_id/version_create_response.rbi +1562 -0
- data/rbi/orb/models/plans/external_plan_id/version_retrieve_params.rbi +42 -0
- data/rbi/orb/models/plans/external_plan_id/version_retrieve_response.rbi +1562 -0
- data/rbi/orb/models/plans/external_plan_id_set_default_version_params.rbi +45 -0
- data/rbi/orb/models/plans/version_create_params.rbi +32607 -0
- data/rbi/orb/models/plans/version_create_response.rbi +1556 -0
- data/rbi/orb/models/plans/version_retrieve_params.rbi +37 -0
- data/rbi/orb/models/plans/version_retrieve_response.rbi +1558 -0
- data/rbi/orb/models/price.rbi +9447 -441
- data/rbi/orb/models/price_create_params.rbi +80 -0
- data/rbi/orb/models/price_evaluate_params.rbi +15684 -25
- data/rbi/orb/models/price_evaluate_response.rbi +68 -5
- data/rbi/orb/models/subscription.rbi +1654 -44
- data/rbi/orb/models/subscription_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_apply_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_cancel_response.rbi +1692 -44
- data/rbi/orb/models/subscription_change_retrieve_response.rbi +1692 -44
- data/rbi/orb/models/subscription_create_params.rbi +10400 -2710
- data/rbi/orb/models/subscription_create_response.rbi +1692 -44
- data/rbi/orb/models/subscription_fetch_schedule_response.rbi +13 -4
- data/rbi/orb/models/subscription_price_intervals_params.rbi +2401 -49
- data/rbi/orb/models/subscription_price_intervals_response.rbi +1692 -44
- data/rbi/orb/models/subscription_schedule_plan_change_params.rbi +10423 -2753
- data/rbi/orb/models/subscription_schedule_plan_change_response.rbi +1692 -44
- data/rbi/orb/models/subscription_trigger_phase_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_cancellation_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbi +1692 -44
- data/rbi/orb/models/subscription_unschedule_pending_plan_changes_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_params.rbi +2 -2
- data/rbi/orb/models/subscription_update_fixed_fee_quantity_response.rbi +1692 -44
- data/rbi/orb/models/subscription_update_trial_response.rbi +1692 -44
- data/rbi/orb/models/trial_discount.rbi +8 -8
- data/rbi/orb/models/usage_discount.rbi +10 -10
- data/rbi/orb/models.rbi +4 -0
- data/rbi/orb/resources/credit_notes.rbi +3 -3
- data/rbi/orb/resources/customers/balance_transactions.rbi +0 -7
- data/rbi/orb/resources/customers/credits/top_ups.rbi +2 -2
- data/rbi/orb/resources/customers.rbi +7 -7
- data/rbi/orb/resources/dimensional_price_groups.rbi +1 -1
- data/rbi/orb/resources/items.rbi +20 -0
- data/rbi/orb/resources/plans/external_plan_id/versions.rbi +103 -0
- data/rbi/orb/resources/plans/external_plan_id.rbi +23 -1
- data/rbi/orb/resources/plans/versions.rbi +91 -0
- data/rbi/orb/resources/plans.rbi +27 -2
- data/rbi/orb/resources/prices.rbi +27 -17
- data/rbi/orb/resources/subscriptions.rbi +9 -1
- data/sig/orb/models/alert.rbs +20 -3
- data/sig/orb/models/amount_discount.rbs +5 -5
- data/sig/orb/models/credit_note_create_params.rbs +6 -6
- data/sig/orb/models/customer_create_params.rbs +13 -0
- data/sig/orb/models/customer_update_by_external_id_params.rbs +13 -0
- data/sig/orb/models/customer_update_params.rbs +13 -0
- data/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_create_entry_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_by_external_id_response.rbs +7 -2
- data/sig/orb/models/customers/credits/ledger_list_response.rbs +7 -2
- data/sig/orb/models/invoice.rbs +558 -4
- data/sig/orb/models/invoice_fetch_upcoming_response.rbs +558 -4
- data/sig/orb/models/invoice_line_item_create_response.rbs +414 -2
- data/sig/orb/models/item.rbs +5 -0
- data/sig/orb/models/item_archive_params.rbs +14 -0
- data/sig/orb/models/item_create_params.rbs +10 -2
- data/sig/orb/models/item_update_params.rbs +5 -0
- data/sig/orb/models/percentage_discount.rbs +5 -5
- data/sig/orb/models/plan.rbs +538 -4
- data/sig/orb/models/plan_create_params.rbs +1460 -3
- data/sig/orb/models/plan_set_default_version_params.rbs +20 -0
- data/sig/orb/models/plans/external_plan_id/version_create_params.rbs +12923 -0
- data/sig/orb/models/plans/external_plan_id/version_create_response.rbs +664 -0
- data/sig/orb/models/plans/external_plan_id/version_retrieve_params.rbs +27 -0
- data/sig/orb/models/plans/external_plan_id/version_retrieve_response.rbs +664 -0
- data/sig/orb/models/plans/external_plan_id_set_default_version_params.rbs +25 -0
- data/sig/orb/models/plans/version_create_params.rbs +12898 -0
- data/sig/orb/models/plans/version_create_response.rbs +662 -0
- data/sig/orb/models/plans/version_retrieve_params.rbs +25 -0
- data/sig/orb/models/plans/version_retrieve_response.rbs +662 -0
- data/sig/orb/models/price.rbs +3512 -96
- data/sig/orb/models/price_create_params.rbs +32 -0
- data/sig/orb/models/price_evaluate_params.rbs +6187 -10
- data/sig/orb/models/price_evaluate_response.rbs +41 -4
- data/sig/orb/models/subscription.rbs +609 -29
- data/sig/orb/models/subscription_cancel_response.rbs +609 -29
- data/sig/orb/models/subscription_change_apply_response.rbs +621 -29
- data/sig/orb/models/subscription_change_cancel_response.rbs +621 -29
- data/sig/orb/models/subscription_change_retrieve_response.rbs +621 -29
- data/sig/orb/models/subscription_create_params.rbs +4450 -1466
- data/sig/orb/models/subscription_create_response.rbs +609 -29
- data/sig/orb/models/subscription_fetch_schedule_response.rbs +4 -4
- data/sig/orb/models/subscription_price_intervals_params.rbs +920 -24
- data/sig/orb/models/subscription_price_intervals_response.rbs +609 -29
- data/sig/orb/models/subscription_schedule_plan_change_params.rbs +4440 -1466
- data/sig/orb/models/subscription_schedule_plan_change_response.rbs +609 -29
- data/sig/orb/models/subscription_trigger_phase_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_cancellation_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_fixed_fee_quantity_updates_response.rbs +609 -29
- data/sig/orb/models/subscription_unschedule_pending_plan_changes_response.rbs +609 -29
- data/sig/orb/models/subscription_update_fixed_fee_quantity_response.rbs +609 -29
- data/sig/orb/models/subscription_update_trial_response.rbs +609 -29
- data/sig/orb/models/trial_discount.rbs +5 -5
- data/sig/orb/models/usage_discount.rbs +5 -5
- data/sig/orb/models.rbs +4 -0
- data/sig/orb/resources/credit_notes.rbs +1 -1
- data/sig/orb/resources/items.rbs +7 -0
- data/sig/orb/resources/plans/external_plan_id/versions.rbs +30 -0
- data/sig/orb/resources/plans/external_plan_id.rbs +8 -0
- data/sig/orb/resources/plans/versions.rbs +28 -0
- data/sig/orb/resources/plans.rbs +8 -0
- data/sig/orb/resources/prices.rbs +3 -3
- data/sig/orb/resources/subscriptions.rbs +2 -0
- metadata +40 -1
@@ -278,6 +278,7 @@ module Orb
|
|
278
278
|
),
|
279
279
|
coupon_redemption_code: T.nilable(String),
|
280
280
|
credits_overage_rate: T.nilable(Float),
|
281
|
+
currency: T.nilable(String),
|
281
282
|
customer_id: T.nilable(String),
|
282
283
|
default_invoice_memo: T.nilable(String),
|
283
284
|
end_date: T.nilable(Time),
|
@@ -292,6 +293,7 @@ module Orb
|
|
292
293
|
initial_phase_order: T.nilable(Integer),
|
293
294
|
invoicing_threshold: T.nilable(String),
|
294
295
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
296
|
+
name: T.nilable(String),
|
295
297
|
net_terms: T.nilable(Integer),
|
296
298
|
per_credit_overage_amount: T.nilable(Float),
|
297
299
|
plan_id: T.nilable(String),
|
@@ -338,6 +340,9 @@ module Orb
|
|
338
340
|
# returned and the subscription creation or plan change will not be scheduled.
|
339
341
|
coupon_redemption_code: nil,
|
340
342
|
credits_overage_rate: nil,
|
343
|
+
# The currency to use for the subscription. If not specified, the invoicing
|
344
|
+
# currency for the plan will be used.
|
345
|
+
currency: nil,
|
341
346
|
customer_id: nil,
|
342
347
|
# Determines the default memo on this subscription's invoices. Note that if this
|
343
348
|
# is not provided, it is determined by the plan configuration.
|
@@ -364,6 +369,9 @@ module Orb
|
|
364
369
|
# by setting the value to `null`, and the entire metadata mapping can be cleared
|
365
370
|
# by setting `metadata` to `null`.
|
366
371
|
metadata: nil,
|
372
|
+
# The name to use for the subscription. If not specified, the plan name will be
|
373
|
+
# used.
|
374
|
+
name: nil,
|
367
375
|
# The net terms determines the difference between the invoice date and the issue
|
368
376
|
# date for the invoice. If you intend the invoice to be due on issue, set this
|
369
377
|
# to 0. If not provided, this defaults to the value specified in the plan.
|
@@ -1450,7 +1458,7 @@ module Orb
|
|
1450
1458
|
# `immediate` unless it's explicitly set to `upcoming_invoice`.
|
1451
1459
|
change_option: nil,
|
1452
1460
|
# The date that the quantity change should take effect, localized to the
|
1453
|
-
# customer's timezone.
|
1461
|
+
# customer's timezone. If this parameter is not passed in, the quantity change is
|
1454
1462
|
# effective according to `change_option`.
|
1455
1463
|
effective_date: nil,
|
1456
1464
|
request_options: {}
|
data/sig/orb/models/alert.rbs
CHANGED
@@ -11,7 +11,8 @@ module Orb
|
|
11
11
|
plan: Orb::Alert::Plan?,
|
12
12
|
subscription: Orb::Alert::Subscription?,
|
13
13
|
thresholds: ::Array[Orb::Alert::Threshold]?,
|
14
|
-
type: Orb::Models::Alert::type_
|
14
|
+
type: Orb::Models::Alert::type_,
|
15
|
+
balance_alert_status: ::Array[Orb::Alert::BalanceAlertStatus]?
|
15
16
|
}
|
16
17
|
|
17
18
|
class Alert < Orb::Internal::Type::BaseModel
|
@@ -35,6 +36,8 @@ module Orb
|
|
35
36
|
|
36
37
|
attr_accessor type: Orb::Models::Alert::type_
|
37
38
|
|
39
|
+
attr_accessor balance_alert_status: ::Array[Orb::Alert::BalanceAlertStatus]?
|
40
|
+
|
38
41
|
def initialize: (
|
39
42
|
id: String,
|
40
43
|
created_at: Time,
|
@@ -45,7 +48,8 @@ module Orb
|
|
45
48
|
plan: Orb::Alert::Plan?,
|
46
49
|
subscription: Orb::Alert::Subscription?,
|
47
50
|
thresholds: ::Array[Orb::Alert::Threshold]?,
|
48
|
-
type: Orb::Models::Alert::type_
|
51
|
+
type: Orb::Models::Alert::type_,
|
52
|
+
?balance_alert_status: ::Array[Orb::Alert::BalanceAlertStatus]?
|
49
53
|
) -> void
|
50
54
|
|
51
55
|
def to_hash: -> {
|
@@ -58,7 +62,8 @@ module Orb
|
|
58
62
|
plan: Orb::Alert::Plan?,
|
59
63
|
subscription: Orb::Alert::Subscription?,
|
60
64
|
thresholds: ::Array[Orb::Alert::Threshold]?,
|
61
|
-
type: Orb::Models::Alert::type_
|
65
|
+
type: Orb::Models::Alert::type_,
|
66
|
+
balance_alert_status: ::Array[Orb::Alert::BalanceAlertStatus]?
|
62
67
|
}
|
63
68
|
|
64
69
|
type customer = { id: String, external_customer_id: String? }
|
@@ -153,6 +158,18 @@ module Orb
|
|
153
158
|
|
154
159
|
def self?.values: -> ::Array[Orb::Models::Alert::type_]
|
155
160
|
end
|
161
|
+
|
162
|
+
type balance_alert_status = { in_alert: bool, threshold_value: Float }
|
163
|
+
|
164
|
+
class BalanceAlertStatus < Orb::Internal::Type::BaseModel
|
165
|
+
attr_accessor in_alert: bool
|
166
|
+
|
167
|
+
attr_accessor threshold_value: Float
|
168
|
+
|
169
|
+
def initialize: (in_alert: bool, threshold_value: Float) -> void
|
170
|
+
|
171
|
+
def to_hash: -> { in_alert: bool, threshold_value: Float }
|
172
|
+
end
|
156
173
|
end
|
157
174
|
end
|
158
175
|
end
|
@@ -3,31 +3,31 @@ module Orb
|
|
3
3
|
type amount_discount =
|
4
4
|
{
|
5
5
|
amount_discount: String,
|
6
|
-
applies_to_price_ids: ::Array[String],
|
7
6
|
discount_type: Orb::Models::AmountDiscount::discount_type,
|
7
|
+
applies_to_price_ids: ::Array[String]?,
|
8
8
|
reason: String?
|
9
9
|
}
|
10
10
|
|
11
11
|
class AmountDiscount < Orb::Internal::Type::BaseModel
|
12
12
|
attr_accessor amount_discount: String
|
13
13
|
|
14
|
-
attr_accessor applies_to_price_ids: ::Array[String]
|
15
|
-
|
16
14
|
attr_accessor discount_type: Orb::Models::AmountDiscount::discount_type
|
17
15
|
|
16
|
+
attr_accessor applies_to_price_ids: ::Array[String]?
|
17
|
+
|
18
18
|
attr_accessor reason: String?
|
19
19
|
|
20
20
|
def initialize: (
|
21
21
|
amount_discount: String,
|
22
|
-
applies_to_price_ids: ::Array[String],
|
23
22
|
discount_type: Orb::Models::AmountDiscount::discount_type,
|
23
|
+
?applies_to_price_ids: ::Array[String]?,
|
24
24
|
?reason: String?
|
25
25
|
) -> void
|
26
26
|
|
27
27
|
def to_hash: -> {
|
28
28
|
amount_discount: String,
|
29
|
-
applies_to_price_ids: ::Array[String],
|
30
29
|
discount_type: Orb::Models::AmountDiscount::discount_type,
|
30
|
+
applies_to_price_ids: ::Array[String]?,
|
31
31
|
reason: String?
|
32
32
|
}
|
33
33
|
|
@@ -3,8 +3,8 @@ module Orb
|
|
3
3
|
type credit_note_create_params =
|
4
4
|
{
|
5
5
|
line_items: ::Array[Orb::CreditNoteCreateParams::LineItem],
|
6
|
-
|
7
|
-
|
6
|
+
reason: Orb::Models::CreditNoteCreateParams::reason,
|
7
|
+
memo: String?
|
8
8
|
}
|
9
9
|
& Orb::Internal::Type::request_parameters
|
10
10
|
|
@@ -14,21 +14,21 @@ module Orb
|
|
14
14
|
|
15
15
|
attr_accessor line_items: ::Array[Orb::CreditNoteCreateParams::LineItem]
|
16
16
|
|
17
|
-
attr_accessor
|
17
|
+
attr_accessor reason: Orb::Models::CreditNoteCreateParams::reason
|
18
18
|
|
19
|
-
attr_accessor
|
19
|
+
attr_accessor memo: String?
|
20
20
|
|
21
21
|
def initialize: (
|
22
22
|
line_items: ::Array[Orb::CreditNoteCreateParams::LineItem],
|
23
|
+
reason: Orb::Models::CreditNoteCreateParams::reason,
|
23
24
|
?memo: String?,
|
24
|
-
?reason: Orb::Models::CreditNoteCreateParams::reason?,
|
25
25
|
?request_options: Orb::request_opts
|
26
26
|
) -> void
|
27
27
|
|
28
28
|
def to_hash: -> {
|
29
29
|
line_items: ::Array[Orb::CreditNoteCreateParams::LineItem],
|
30
|
+
reason: Orb::Models::CreditNoteCreateParams::reason,
|
30
31
|
memo: String?,
|
31
|
-
reason: Orb::Models::CreditNoteCreateParams::reason?,
|
32
32
|
request_options: Orb::RequestOptions
|
33
33
|
}
|
34
34
|
|
@@ -281,6 +281,7 @@ module Orb
|
|
281
281
|
type tax_configuration =
|
282
282
|
Orb::CustomerCreateParams::TaxConfiguration::Avalara
|
283
283
|
| Orb::CustomerCreateParams::TaxConfiguration::Taxjar
|
284
|
+
| Orb::CustomerCreateParams::TaxConfiguration::Sphere
|
284
285
|
|
285
286
|
module TaxConfiguration
|
286
287
|
extend Orb::Internal::Type::Union
|
@@ -324,6 +325,18 @@ module Orb
|
|
324
325
|
def to_hash: -> { tax_exempt: bool, tax_provider: :taxjar }
|
325
326
|
end
|
326
327
|
|
328
|
+
type sphere = { tax_exempt: bool, tax_provider: :sphere }
|
329
|
+
|
330
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
331
|
+
attr_accessor tax_exempt: bool
|
332
|
+
|
333
|
+
attr_accessor tax_provider: :sphere
|
334
|
+
|
335
|
+
def initialize: (tax_exempt: bool, ?tax_provider: :sphere) -> void
|
336
|
+
|
337
|
+
def to_hash: -> { tax_exempt: bool, tax_provider: :sphere }
|
338
|
+
end
|
339
|
+
|
327
340
|
def self?.variants: -> ::Array[Orb::Models::CustomerCreateParams::tax_configuration]
|
328
341
|
end
|
329
342
|
|
@@ -276,6 +276,7 @@ module Orb
|
|
276
276
|
type tax_configuration =
|
277
277
|
Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Avalara
|
278
278
|
| Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Taxjar
|
279
|
+
| Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Sphere
|
279
280
|
|
280
281
|
module TaxConfiguration
|
281
282
|
extend Orb::Internal::Type::Union
|
@@ -319,6 +320,18 @@ module Orb
|
|
319
320
|
def to_hash: -> { tax_exempt: bool, tax_provider: :taxjar }
|
320
321
|
end
|
321
322
|
|
323
|
+
type sphere = { tax_exempt: bool, tax_provider: :sphere }
|
324
|
+
|
325
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
326
|
+
attr_accessor tax_exempt: bool
|
327
|
+
|
328
|
+
attr_accessor tax_provider: :sphere
|
329
|
+
|
330
|
+
def initialize: (tax_exempt: bool, ?tax_provider: :sphere) -> void
|
331
|
+
|
332
|
+
def to_hash: -> { tax_exempt: bool, tax_provider: :sphere }
|
333
|
+
end
|
334
|
+
|
322
335
|
def self?.variants: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration]
|
323
336
|
end
|
324
337
|
|
@@ -276,6 +276,7 @@ module Orb
|
|
276
276
|
type tax_configuration =
|
277
277
|
Orb::CustomerUpdateParams::TaxConfiguration::Avalara
|
278
278
|
| Orb::CustomerUpdateParams::TaxConfiguration::Taxjar
|
279
|
+
| Orb::CustomerUpdateParams::TaxConfiguration::Sphere
|
279
280
|
|
280
281
|
module TaxConfiguration
|
281
282
|
extend Orb::Internal::Type::Union
|
@@ -319,6 +320,18 @@ module Orb
|
|
319
320
|
def to_hash: -> { tax_exempt: bool, tax_provider: :taxjar }
|
320
321
|
end
|
321
322
|
|
323
|
+
type sphere = { tax_exempt: bool, tax_provider: :sphere }
|
324
|
+
|
325
|
+
class Sphere < Orb::Internal::Type::BaseModel
|
326
|
+
attr_accessor tax_exempt: bool
|
327
|
+
|
328
|
+
attr_accessor tax_provider: :sphere
|
329
|
+
|
330
|
+
def initialize: (tax_exempt: bool, ?tax_provider: :sphere) -> void
|
331
|
+
|
332
|
+
def to_hash: -> { tax_exempt: bool, tax_provider: :sphere }
|
333
|
+
end
|
334
|
+
|
322
335
|
def self?.variants: -> ::Array[Orb::Models::CustomerUpdateParams::tax_configuration]
|
323
336
|
end
|
324
337
|
|
@@ -28,7 +28,8 @@ module Orb
|
|
28
28
|
entry_type: :increment,
|
29
29
|
ledger_sequence_number: Integer,
|
30
30
|
metadata: ::Hash[Symbol, String],
|
31
|
-
starting_balance: Float
|
31
|
+
starting_balance: Float,
|
32
|
+
created_invoices: ::Array[Orb::Invoice]?
|
32
33
|
}
|
33
34
|
|
34
35
|
class Increment < Orb::Internal::Type::BaseModel
|
@@ -58,6 +59,8 @@ module Orb
|
|
58
59
|
|
59
60
|
attr_accessor starting_balance: Float
|
60
61
|
|
62
|
+
attr_accessor created_invoices: ::Array[Orb::Invoice]?
|
63
|
+
|
61
64
|
def initialize: (
|
62
65
|
id: String,
|
63
66
|
amount: Float,
|
@@ -71,6 +74,7 @@ module Orb
|
|
71
74
|
ledger_sequence_number: Integer,
|
72
75
|
metadata: ::Hash[Symbol, String],
|
73
76
|
starting_balance: Float,
|
77
|
+
?created_invoices: ::Array[Orb::Invoice]?,
|
74
78
|
?entry_type: :increment
|
75
79
|
) -> void
|
76
80
|
|
@@ -87,7 +91,8 @@ module Orb
|
|
87
91
|
entry_type: :increment,
|
88
92
|
ledger_sequence_number: Integer,
|
89
93
|
metadata: ::Hash[Symbol, String],
|
90
|
-
starting_balance: Float
|
94
|
+
starting_balance: Float,
|
95
|
+
created_invoices: ::Array[Orb::Invoice]?
|
91
96
|
}
|
92
97
|
|
93
98
|
type credit_block =
|
@@ -28,7 +28,8 @@ module Orb
|
|
28
28
|
entry_type: :increment,
|
29
29
|
ledger_sequence_number: Integer,
|
30
30
|
metadata: ::Hash[Symbol, String],
|
31
|
-
starting_balance: Float
|
31
|
+
starting_balance: Float,
|
32
|
+
created_invoices: ::Array[Orb::Invoice]?
|
32
33
|
}
|
33
34
|
|
34
35
|
class Increment < Orb::Internal::Type::BaseModel
|
@@ -58,6 +59,8 @@ module Orb
|
|
58
59
|
|
59
60
|
attr_accessor starting_balance: Float
|
60
61
|
|
62
|
+
attr_accessor created_invoices: ::Array[Orb::Invoice]?
|
63
|
+
|
61
64
|
def initialize: (
|
62
65
|
id: String,
|
63
66
|
amount: Float,
|
@@ -71,6 +74,7 @@ module Orb
|
|
71
74
|
ledger_sequence_number: Integer,
|
72
75
|
metadata: ::Hash[Symbol, String],
|
73
76
|
starting_balance: Float,
|
77
|
+
?created_invoices: ::Array[Orb::Invoice]?,
|
74
78
|
?entry_type: :increment
|
75
79
|
) -> void
|
76
80
|
|
@@ -87,7 +91,8 @@ module Orb
|
|
87
91
|
entry_type: :increment,
|
88
92
|
ledger_sequence_number: Integer,
|
89
93
|
metadata: ::Hash[Symbol, String],
|
90
|
-
starting_balance: Float
|
94
|
+
starting_balance: Float,
|
95
|
+
created_invoices: ::Array[Orb::Invoice]?
|
91
96
|
}
|
92
97
|
|
93
98
|
type credit_block =
|
@@ -28,7 +28,8 @@ module Orb
|
|
28
28
|
entry_type: :increment,
|
29
29
|
ledger_sequence_number: Integer,
|
30
30
|
metadata: ::Hash[Symbol, String],
|
31
|
-
starting_balance: Float
|
31
|
+
starting_balance: Float,
|
32
|
+
created_invoices: ::Array[Orb::Invoice]?
|
32
33
|
}
|
33
34
|
|
34
35
|
class Increment < Orb::Internal::Type::BaseModel
|
@@ -58,6 +59,8 @@ module Orb
|
|
58
59
|
|
59
60
|
attr_accessor starting_balance: Float
|
60
61
|
|
62
|
+
attr_accessor created_invoices: ::Array[Orb::Invoice]?
|
63
|
+
|
61
64
|
def initialize: (
|
62
65
|
id: String,
|
63
66
|
amount: Float,
|
@@ -71,6 +74,7 @@ module Orb
|
|
71
74
|
ledger_sequence_number: Integer,
|
72
75
|
metadata: ::Hash[Symbol, String],
|
73
76
|
starting_balance: Float,
|
77
|
+
?created_invoices: ::Array[Orb::Invoice]?,
|
74
78
|
?entry_type: :increment
|
75
79
|
) -> void
|
76
80
|
|
@@ -87,7 +91,8 @@ module Orb
|
|
87
91
|
entry_type: :increment,
|
88
92
|
ledger_sequence_number: Integer,
|
89
93
|
metadata: ::Hash[Symbol, String],
|
90
|
-
starting_balance: Float
|
94
|
+
starting_balance: Float,
|
95
|
+
created_invoices: ::Array[Orb::Invoice]?
|
91
96
|
}
|
92
97
|
|
93
98
|
type credit_block =
|
@@ -28,7 +28,8 @@ module Orb
|
|
28
28
|
entry_type: :increment,
|
29
29
|
ledger_sequence_number: Integer,
|
30
30
|
metadata: ::Hash[Symbol, String],
|
31
|
-
starting_balance: Float
|
31
|
+
starting_balance: Float,
|
32
|
+
created_invoices: ::Array[Orb::Invoice]?
|
32
33
|
}
|
33
34
|
|
34
35
|
class Increment < Orb::Internal::Type::BaseModel
|
@@ -58,6 +59,8 @@ module Orb
|
|
58
59
|
|
59
60
|
attr_accessor starting_balance: Float
|
60
61
|
|
62
|
+
attr_accessor created_invoices: ::Array[Orb::Invoice]?
|
63
|
+
|
61
64
|
def initialize: (
|
62
65
|
id: String,
|
63
66
|
amount: Float,
|
@@ -71,6 +74,7 @@ module Orb
|
|
71
74
|
ledger_sequence_number: Integer,
|
72
75
|
metadata: ::Hash[Symbol, String],
|
73
76
|
starting_balance: Float,
|
77
|
+
?created_invoices: ::Array[Orb::Invoice]?,
|
74
78
|
?entry_type: :increment
|
75
79
|
) -> void
|
76
80
|
|
@@ -87,7 +91,8 @@ module Orb
|
|
87
91
|
entry_type: :increment,
|
88
92
|
ledger_sequence_number: Integer,
|
89
93
|
metadata: ::Hash[Symbol, String],
|
90
|
-
starting_balance: Float
|
94
|
+
starting_balance: Float,
|
95
|
+
created_invoices: ::Array[Orb::Invoice]?
|
91
96
|
}
|
92
97
|
|
93
98
|
type credit_block =
|