schematichq 1.5.4 → 1.5.5
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/.fern/metadata.json +4 -4
- data/.fern/replay.lock +7 -1
- data/WASM_VERSION +1 -1
- data/lib/schematic/billing/client.rb +423 -0
- data/lib/schematic/billing/types/count_native_invoices_params.rb +20 -0
- data/lib/schematic/billing/types/count_native_invoices_request.rb +19 -0
- data/lib/schematic/billing/types/count_native_invoices_response.rb +13 -0
- data/lib/schematic/billing/types/finalize_native_invoice_response.rb +13 -0
- data/lib/schematic/billing/types/get_company_native_subscription_response.rb +13 -0
- data/lib/schematic/billing/types/get_native_invoice_response.rb +13 -0
- data/lib/schematic/billing/types/list_native_invoices_params.rb +20 -0
- data/lib/schematic/billing/types/list_native_invoices_request.rb +19 -0
- data/lib/schematic/billing/types/list_native_invoices_response.rb +13 -0
- data/lib/schematic/billing/types/mark_invoice_paid_request_body.rb +19 -0
- data/lib/schematic/billing/types/mark_native_invoice_paid_response.rb +13 -0
- data/lib/schematic/billing/types/void_native_invoice_response.rb +13 -0
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/features/client.rb +0 -2
- data/lib/schematic/internal/iterators/cursor_item_iterator.rb +2 -2
- data/lib/schematic/internal/iterators/cursor_page_iterator.rb +11 -2
- data/lib/schematic/internal/iterators/item_iterator.rb +11 -2
- data/lib/schematic/internal/iterators/offset_item_iterator.rb +2 -2
- data/lib/schematic/internal/iterators/offset_page_iterator.rb +15 -6
- data/lib/schematic/internal/types/model.rb +17 -1
- data/lib/schematic/plans/client.rb +61 -5
- data/lib/schematic/plans/types/list_custom_plan_billings_params.rb +4 -0
- data/lib/schematic/plans/types/list_custom_plan_billings_request.rb +4 -0
- data/lib/schematic/plans/types/preview_publish_plan_version_response.rb +13 -0
- data/lib/schematic/types/amendment_proration_lands_on.rb +13 -0
- data/lib/schematic/types/billing_invoice_detail_response_data.rb +49 -0
- data/lib/schematic/types/billing_invoice_line_response_data.rb +27 -0
- data/lib/schematic/types/billing_invoice_response_data.rb +43 -0
- data/lib/schematic/types/billing_invoice_settlement_response_data.rb +17 -0
- data/lib/schematic/types/billing_invoice_terms_response_data.rb +19 -0
- data/lib/schematic/types/billing_native_subscription_change_response_data.rb +15 -0
- data/lib/schematic/types/billing_native_subscription_line_response_data.rb +47 -0
- data/lib/schematic/types/billing_native_subscription_response_data.rb +31 -0
- data/lib/schematic/types/billing_statement_line_response_data.rb +21 -0
- data/lib/schematic/types/billing_statement_response_data.rb +19 -0
- data/lib/schematic/types/charge_timing.rb +12 -0
- data/lib/schematic/types/collector.rb +13 -0
- data/lib/schematic/types/company_billing_profile_response_data.rb +12 -0
- data/lib/schematic/types/company_credit_balance.rb +4 -0
- data/lib/schematic/types/create_flag_request_body.rb +1 -1
- data/lib/schematic/types/create_or_update_flag_request_body.rb +1 -1
- data/lib/schematic/types/credit_spend_policy.rb +2 -0
- data/lib/schematic/types/event_body_inference.rb +4 -0
- data/lib/schematic/types/flag_detail_response_data.rb +1 -1
- data/lib/schematic/types/flag_in_plan_response_data.rb +1 -1
- data/lib/schematic/types/flag_response_data.rb +1 -1
- data/lib/schematic/types/invoice_collection_state.rb +17 -0
- data/lib/schematic/types/invoice_document_state.rb +14 -0
- data/lib/schematic/types/invoice_line_kind.rb +15 -0
- data/lib/schematic/types/line_kind.rb +13 -0
- data/lib/schematic/types/payment_gating.rb +12 -0
- data/lib/schematic/types/preflight_event_quantities_request_body.rb +13 -0
- data/lib/schematic/types/preflight_request_body.rb +2 -0
- data/lib/schematic/types/publish_plan_version_request_body.rb +43 -0
- data/lib/schematic/types/publish_preview_pay_in_advance_response_data.rb +15 -0
- data/lib/schematic/types/publish_preview_payment_method_response_data.rb +15 -0
- data/lib/schematic/types/publish_preview_proration_line_response_data.rb +19 -0
- data/lib/schematic/types/publish_preview_response_data.rb +53 -0
- data/lib/schematic/types/rulesengine_credit_spend_policy.rb +2 -0
- data/lib/schematic/types/subscription_change_action.rb +14 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic.rb +42 -5
- data/reference.md +586 -103
- metadata +40 -3
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +0 -47
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class BillingStatementLineResponseData < Internal::Types::Model
|
|
6
|
+
field :amount, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :kind, -> { Schematic::Types::InvoiceLineKind }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :period_end, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :period_start, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :quantity, -> { Integer }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :subscription_line_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :unit_amount, -> { Integer }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class BillingStatementResponseData < Internal::Types::Model
|
|
6
|
+
field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :lines, -> { Internal::Types::Array[Schematic::Types::BillingStatementLineResponseData] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :period_end, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :period_start, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :subtotal, -> { Integer }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -9,26 +9,38 @@ module Schematic
|
|
|
9
9
|
|
|
10
10
|
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
+
field :collector, -> { Schematic::Types::Collector }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :company_id, -> { String }, optional: false, nullable: false
|
|
13
15
|
|
|
14
16
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
15
17
|
|
|
18
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
19
|
+
|
|
16
20
|
field :days_until_due, -> { Integer }, optional: true, nullable: false
|
|
17
21
|
|
|
18
22
|
field :environment_id, -> { String }, optional: false, nullable: false
|
|
19
23
|
|
|
24
|
+
field :gating_days, -> { Integer }, optional: false, nullable: false
|
|
25
|
+
|
|
20
26
|
field :id, -> { String }, optional: false, nullable: false
|
|
21
27
|
|
|
22
28
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
23
29
|
|
|
24
30
|
field :name, -> { String }, optional: true, nullable: false
|
|
25
31
|
|
|
32
|
+
field :overdraft_limit, -> { Integer }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :payment_gating, -> { Schematic::Types::PaymentGating }, optional: false, nullable: false
|
|
35
|
+
|
|
26
36
|
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
27
37
|
|
|
28
38
|
field :proration_behavior, -> { Schematic::Types::ProrationBehavior }, optional: true, nullable: false
|
|
29
39
|
|
|
30
40
|
field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
|
|
31
41
|
|
|
42
|
+
field :purchase_order, -> { String }, optional: true, nullable: false
|
|
43
|
+
|
|
32
44
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
33
45
|
end
|
|
34
46
|
end
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CompanyCreditBalance < Internal::Types::Model
|
|
6
|
+
field :overdraft_limit, -> { Float }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :postpaid, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
9
|
+
|
|
6
10
|
field :remaining, -> { Float }, optional: false, nullable: false
|
|
7
11
|
|
|
8
12
|
field :reserved, -> { Float }, optional: false, nullable: false
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CreateFlagRequestBody < Internal::Types::Model
|
|
6
|
-
field :default_value, -> { Internal::Types::Boolean }, optional:
|
|
6
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :description, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CreateOrUpdateFlagRequestBody < Internal::Types::Model
|
|
6
|
-
field :default_value, -> { Internal::Types::Boolean }, optional:
|
|
6
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
7
7
|
|
|
8
8
|
field :description, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class CreditSpendPolicy < Internal::Types::Model
|
|
6
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :consumed, -> { Float }, optional: true, nullable: false
|
|
7
9
|
|
|
8
10
|
field :credit_id, -> { String }, optional: false, nullable: false
|
|
@@ -17,6 +17,8 @@ module Schematic
|
|
|
17
17
|
|
|
18
18
|
field :input_tokens, -> { Integer }, optional: false, nullable: false
|
|
19
19
|
|
|
20
|
+
field :lease_id, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :operation, -> { String }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :output_tokens, -> { Integer }, optional: false, nullable: false
|
|
@@ -29,6 +31,8 @@ module Schematic
|
|
|
29
31
|
|
|
30
32
|
field :requests, -> { Integer }, optional: true, nullable: false
|
|
31
33
|
|
|
34
|
+
field :reservation_id, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
32
36
|
field :response_model, -> { String }, optional: false, nullable: false
|
|
33
37
|
|
|
34
38
|
field :user, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class FlagDetailResponseData < Internal::Types::Model
|
|
6
6
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :default_value, -> { Internal::Types::Boolean }, optional:
|
|
8
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class FlagInPlanResponseData < Internal::Types::Model
|
|
6
6
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :default_value, -> { Internal::Types::Boolean }, optional:
|
|
8
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ module Schematic
|
|
|
5
5
|
class FlagResponseData < Internal::Types::Model
|
|
6
6
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
7
7
|
|
|
8
|
-
field :default_value, -> { Internal::Types::Boolean }, optional:
|
|
8
|
+
field :default_value, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
9
9
|
|
|
10
10
|
field :description, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module InvoiceCollectionState
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
EXPORTED = "exported"
|
|
9
|
+
PAID = "paid"
|
|
10
|
+
PARTIALLY_PAID = "partially_paid"
|
|
11
|
+
PAST_DUE = "past_due"
|
|
12
|
+
PAYMENT_FAILED = "payment_failed"
|
|
13
|
+
QUEUED = "queued"
|
|
14
|
+
SENT = "sent"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
module InvoiceLineKind
|
|
6
|
+
extend Schematic::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
ADJUSTMENT = "adjustment"
|
|
9
|
+
PURCHASE = "purchase"
|
|
10
|
+
RECONCILIATION = "reconciliation"
|
|
11
|
+
SUBSCRIPTION = "subscription"
|
|
12
|
+
TRUE_UP = "true_up"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PreflightEventQuantitiesRequestBody < Internal::Types::Model
|
|
6
|
+
field :event_subtype, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :quantities, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :quantity, -> { Float }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -5,6 +5,8 @@ module Schematic
|
|
|
5
5
|
class PreflightRequestBody < Internal::Types::Model
|
|
6
6
|
field :credit_cost, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
|
|
7
7
|
|
|
8
|
+
field :event_quantities, -> { Schematic::Types::PreflightEventQuantitiesRequestBody }, optional: true, nullable: false
|
|
9
|
+
|
|
8
10
|
field :event_usage, -> { Schematic::Types::PreflightEventUsageRequestBody }, optional: true, nullable: false
|
|
9
11
|
|
|
10
12
|
field :usage, -> { Integer }, optional: true, nullable: false
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PublishPlanVersionRequestBody < Internal::Types::Model
|
|
6
|
+
field :activation_strategy, -> { Schematic::Types::CustomPlanActivationStrategy }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :billing_start_date, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :coupon_external_id, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :custom_field_values, -> { Internal::Types::Array[Schematic::Types::CheckoutFieldValue] }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :customer_email, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :days_until_due, -> { Integer }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :excluded_company_ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
25
|
+
|
|
26
|
+
field :migration_strategy, -> { Schematic::Types::PlanVersionMigrationStrategy }, optional: false, nullable: false
|
|
27
|
+
|
|
28
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :prorate_first_period, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :proration_behavior, -> { Schematic::Types::MigrationProrationBehavior }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :require_no_migration, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :scheduled_at, -> { String }, optional: true, nullable: false
|
|
37
|
+
|
|
38
|
+
field :send_invoice, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
39
|
+
|
|
40
|
+
field :tax_id, -> { Schematic::Types::TaxIdInput }, optional: true, nullable: false
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PublishPreviewPayInAdvanceResponseData < Internal::Types::Model
|
|
6
|
+
field :committed_quantity, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :current_quantity, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :effective_quantity, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :feature_id, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PublishPreviewPaymentMethodResponseData < Internal::Types::Model
|
|
6
|
+
field :card_brand, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :card_last_4, -> { String }, optional: true, nullable: false, api_name: "card_last4"
|
|
9
|
+
|
|
10
|
+
field :has_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :payment_method_type, -> { String }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PublishPreviewProrationLineResponseData < Internal::Types::Model
|
|
6
|
+
field :amount, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :description, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :period_end, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :period_start, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :price_external_id, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :quantity, -> { Integer }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Schematic
|
|
4
|
+
module Types
|
|
5
|
+
class PublishPreviewResponseData < Internal::Types::Model
|
|
6
|
+
field :billing_email, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
8
|
+
field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :current_period_end, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :current_period_start, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :default_collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :default_days_until_due, -> { Integer }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :default_send_invoice, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
19
|
+
|
|
20
|
+
field :effective_at, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :has_billing_changes, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
23
|
+
|
|
24
|
+
field :immediate_invoice_amount, -> { Integer }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :lands_on, -> { Schematic::Types::AmendmentProrationLandsOn }, optional: false, nullable: false
|
|
27
|
+
|
|
28
|
+
field :new_recurring_amount, -> { Integer }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :next_invoice_amount, -> { Integer }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :next_invoice_at, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :note, -> { String }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :pay_in_advance, -> { Internal::Types::Array[Schematic::Types::PublishPreviewPayInAdvanceResponseData] }, optional: false, nullable: false
|
|
37
|
+
|
|
38
|
+
field :payment_method, -> { Schematic::Types::PublishPreviewPaymentMethodResponseData }, optional: false, nullable: false
|
|
39
|
+
|
|
40
|
+
field :proration_charge, -> { Integer }, optional: false, nullable: false
|
|
41
|
+
|
|
42
|
+
field :proration_credit, -> { Integer }, optional: false, nullable: false
|
|
43
|
+
|
|
44
|
+
field :proration_lines, -> { Internal::Types::Array[Schematic::Types::PublishPreviewProrationLineResponseData] }, optional: false, nullable: false
|
|
45
|
+
|
|
46
|
+
field :proration_total, -> { Integer }, optional: false, nullable: false
|
|
47
|
+
|
|
48
|
+
field :will_update_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
49
|
+
|
|
50
|
+
field :would_fail, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module Schematic
|
|
4
4
|
module Types
|
|
5
5
|
class RulesengineCreditSpendPolicy < Internal::Types::Model
|
|
6
|
+
field :company_id, -> { String }, optional: true, nullable: false
|
|
7
|
+
|
|
6
8
|
field :consumed, -> { Float }, optional: true, nullable: false
|
|
7
9
|
|
|
8
10
|
field :credit_id, -> { String }, optional: false, nullable: false
|
data/lib/schematic/version.rb
CHANGED
|
Binary file
|
data/lib/schematic.rb
CHANGED
|
@@ -149,6 +149,8 @@ require_relative "schematic/billing/types/count_billing_products_params"
|
|
|
149
149
|
require_relative "schematic/billing/types/count_billing_products_response"
|
|
150
150
|
require_relative "schematic/billing/types/list_company_billing_profiles_params"
|
|
151
151
|
require_relative "schematic/types/billing_collection_method"
|
|
152
|
+
require_relative "schematic/types/collector"
|
|
153
|
+
require_relative "schematic/types/payment_gating"
|
|
152
154
|
require_relative "schematic/types/proration_behavior"
|
|
153
155
|
require_relative "schematic/types/company_billing_profile_response_data"
|
|
154
156
|
require_relative "schematic/billing/types/list_company_billing_profiles_response"
|
|
@@ -159,6 +161,33 @@ require_relative "schematic/billing/types/update_billing_settings_response"
|
|
|
159
161
|
require_relative "schematic/types/billing_subscription_trial_end_setting"
|
|
160
162
|
require_relative "schematic/types/billing_subscription_response_data"
|
|
161
163
|
require_relative "schematic/billing/types/upsert_billing_subscription_response"
|
|
164
|
+
require_relative "schematic/types/billing_invoice_terms_response_data"
|
|
165
|
+
require_relative "schematic/types/charge_timing"
|
|
166
|
+
require_relative "schematic/types/line_kind"
|
|
167
|
+
require_relative "schematic/types/plan_type"
|
|
168
|
+
require_relative "schematic/types/billing_native_subscription_line_response_data"
|
|
169
|
+
require_relative "schematic/types/subscription_change_action"
|
|
170
|
+
require_relative "schematic/types/billing_native_subscription_change_response_data"
|
|
171
|
+
require_relative "schematic/types/invoice_line_kind"
|
|
172
|
+
require_relative "schematic/types/billing_statement_line_response_data"
|
|
173
|
+
require_relative "schematic/types/billing_statement_response_data"
|
|
174
|
+
require_relative "schematic/types/subscription_status"
|
|
175
|
+
require_relative "schematic/types/billing_native_subscription_response_data"
|
|
176
|
+
require_relative "schematic/billing/types/get_company_native_subscription_response"
|
|
177
|
+
require_relative "schematic/types/invoice_document_state"
|
|
178
|
+
require_relative "schematic/billing/types/list_native_invoices_params"
|
|
179
|
+
require_relative "schematic/types/invoice_collection_state"
|
|
180
|
+
require_relative "schematic/types/billing_invoice_response_data"
|
|
181
|
+
require_relative "schematic/billing/types/list_native_invoices_response"
|
|
182
|
+
require_relative "schematic/types/billing_invoice_line_response_data"
|
|
183
|
+
require_relative "schematic/types/billing_invoice_settlement_response_data"
|
|
184
|
+
require_relative "schematic/types/billing_invoice_detail_response_data"
|
|
185
|
+
require_relative "schematic/billing/types/get_native_invoice_response"
|
|
186
|
+
require_relative "schematic/billing/types/finalize_native_invoice_response"
|
|
187
|
+
require_relative "schematic/billing/types/mark_native_invoice_paid_response"
|
|
188
|
+
require_relative "schematic/billing/types/void_native_invoice_response"
|
|
189
|
+
require_relative "schematic/billing/types/count_native_invoices_params"
|
|
190
|
+
require_relative "schematic/billing/types/count_native_invoices_response"
|
|
162
191
|
require_relative "schematic/credits/types/list_billing_credits_params"
|
|
163
192
|
require_relative "schematic/types/billing_credit_burn_strategy"
|
|
164
193
|
require_relative "schematic/types/billing_credit_expiry_unit"
|
|
@@ -307,7 +336,6 @@ require_relative "schematic/types/feature_in_plan_response_data"
|
|
|
307
336
|
require_relative "schematic/types/plan_catalog_membership_response_data"
|
|
308
337
|
require_relative "schematic/types/plan_currency_prices_response_data"
|
|
309
338
|
require_relative "schematic/types/plan_icon"
|
|
310
|
-
require_relative "schematic/types/plan_type"
|
|
311
339
|
require_relative "schematic/types/plan_response_data"
|
|
312
340
|
require_relative "schematic/types/warning_tier_response_data"
|
|
313
341
|
require_relative "schematic/types/plan_entitlement_response_data"
|
|
@@ -389,7 +417,6 @@ require_relative "schematic/types/manage_plan_preview_response_response_data"
|
|
|
389
417
|
require_relative "schematic/checkout/types/preview_manage_plan_response"
|
|
390
418
|
require_relative "schematic/checkout/types/cancel_subscription_response"
|
|
391
419
|
require_relative "schematic/checkout/types/update_customer_subscription_trial_end_response"
|
|
392
|
-
require_relative "schematic/types/subscription_status"
|
|
393
420
|
require_relative "schematic/types/subscription_type"
|
|
394
421
|
require_relative "schematic/companies/types/list_companies_params"
|
|
395
422
|
require_relative "schematic/companies/types/list_companies_response"
|
|
@@ -581,6 +608,12 @@ require_relative "schematic/types/plan_version_price_change_response_data"
|
|
|
581
608
|
require_relative "schematic/types/plan_version_diff_response_data"
|
|
582
609
|
require_relative "schematic/plans/types/get_plan_version_diff_response"
|
|
583
610
|
require_relative "schematic/plans/types/publish_plan_version_response"
|
|
611
|
+
require_relative "schematic/types/amendment_proration_lands_on"
|
|
612
|
+
require_relative "schematic/types/publish_preview_pay_in_advance_response_data"
|
|
613
|
+
require_relative "schematic/types/publish_preview_payment_method_response_data"
|
|
614
|
+
require_relative "schematic/types/publish_preview_proration_line_response_data"
|
|
615
|
+
require_relative "schematic/types/publish_preview_response_data"
|
|
616
|
+
require_relative "schematic/plans/types/preview_publish_plan_version_response"
|
|
584
617
|
require_relative "schematic/components/types/list_components_params"
|
|
585
618
|
require_relative "schematic/types/component_entity_type"
|
|
586
619
|
require_relative "schematic/types/component_state"
|
|
@@ -837,6 +870,7 @@ require_relative "schematic/types/update_credit_bundle_request_body"
|
|
|
837
870
|
require_relative "schematic/types/update_pay_in_advance_request_body"
|
|
838
871
|
require_relative "schematic/types/change_subscription_internal_request_body"
|
|
839
872
|
require_relative "schematic/types/change_subscription_request_body"
|
|
873
|
+
require_relative "schematic/types/preflight_event_quantities_request_body"
|
|
840
874
|
require_relative "schematic/types/preflight_event_usage_request_body"
|
|
841
875
|
require_relative "schematic/types/preflight_request_body"
|
|
842
876
|
require_relative "schematic/types/check_flag_request_body"
|
|
@@ -906,6 +940,9 @@ require_relative "schematic/types/update_billing_plan_credit_grant_request_body"
|
|
|
906
940
|
require_relative "schematic/types/plan_bundle_credit_grant_request_body"
|
|
907
941
|
require_relative "schematic/types/plan_bundle_entitlement_request_body"
|
|
908
942
|
require_relative "schematic/types/plan_currency_price_request_body"
|
|
943
|
+
require_relative "schematic/types/tax_id_type"
|
|
944
|
+
require_relative "schematic/types/tax_id_input"
|
|
945
|
+
require_relative "schematic/types/publish_plan_version_request_body"
|
|
909
946
|
require_relative "schematic/types/rule_condition_group_response_data"
|
|
910
947
|
require_relative "schematic/types/rule_condition_response_data"
|
|
911
948
|
require_relative "schematic/types/rule_response_data"
|
|
@@ -936,8 +973,6 @@ require_relative "schematic/types/rulesengine_company"
|
|
|
936
973
|
require_relative "schematic/types/rulesengine_flag"
|
|
937
974
|
require_relative "schematic/types/rulesengine_user"
|
|
938
975
|
require_relative "schematic/types/scheduled_downgrade_config_behavior"
|
|
939
|
-
require_relative "schematic/types/tax_id_type"
|
|
940
|
-
require_relative "schematic/types/tax_id_input"
|
|
941
976
|
require_relative "schematic/types/temporary_access_token_response_data"
|
|
942
977
|
require_relative "schematic/types/update_entitlement_req_common"
|
|
943
978
|
require_relative "schematic/types/update_plan_request_body"
|
|
@@ -989,6 +1024,9 @@ require_relative "schematic/billing/types/list_company_billing_profiles_request"
|
|
|
989
1024
|
require_relative "schematic/billing/types/update_company_billing_profile_request_body"
|
|
990
1025
|
require_relative "schematic/billing/types/update_billing_settings_request_body"
|
|
991
1026
|
require_relative "schematic/billing/types/create_billing_subscription_request_body"
|
|
1027
|
+
require_relative "schematic/billing/types/list_native_invoices_request"
|
|
1028
|
+
require_relative "schematic/billing/types/mark_invoice_paid_request_body"
|
|
1029
|
+
require_relative "schematic/billing/types/count_native_invoices_request"
|
|
992
1030
|
require_relative "schematic/credits/client"
|
|
993
1031
|
require_relative "schematic/credits/types/list_billing_credits_request"
|
|
994
1032
|
require_relative "schematic/credits/types/create_billing_credit_request_body"
|
|
@@ -1094,7 +1132,6 @@ require_relative "schematic/plans/types/count_plans_request"
|
|
|
1094
1132
|
require_relative "schematic/plans/types/list_plan_issues_request"
|
|
1095
1133
|
require_relative "schematic/plans/types/delete_plan_version_request"
|
|
1096
1134
|
require_relative "schematic/plans/types/get_plan_version_diff_request"
|
|
1097
|
-
require_relative "schematic/plans/types/publish_plan_version_request_body"
|
|
1098
1135
|
require_relative "schematic/components/client"
|
|
1099
1136
|
require_relative "schematic/components/types/list_components_request"
|
|
1100
1137
|
require_relative "schematic/components/types/create_component_request_body"
|