schematichq 1.5.7 → 1.5.8

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.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -4
  3. data/.fern/replay.lock +7 -1
  4. data/lib/schematic/accesstokens/client.rb +1 -1
  5. data/lib/schematic/accounts/client.rb +15 -15
  6. data/lib/schematic/billing/client.rb +432 -37
  7. data/lib/schematic/billing/types/charge_native_invoice_response.rb +15 -0
  8. data/lib/schematic/billing/types/create_billing_subscription_request_body.rb +4 -0
  9. data/lib/schematic/billing/types/delete_contract_document_response.rb +15 -0
  10. data/lib/schematic/billing/types/get_company_contract_response.rb +15 -0
  11. data/lib/schematic/billing/types/get_company_upcoming_invoices_response.rb +15 -0
  12. data/lib/schematic/billing/types/move_to_default_plan_response.rb +15 -0
  13. data/lib/schematic/billing/types/reissue_native_invoice_link_response.rb +15 -0
  14. data/lib/schematic/billing/types/revoke_native_invoice_link_response.rb +15 -0
  15. data/lib/schematic/billing/types/update_billing_settings_request_body.rb +4 -0
  16. data/lib/schematic/billing/types/update_company_billing_profile_request_body.rb +6 -0
  17. data/lib/schematic/billing/types/upload_contract_document_request.rb +11 -0
  18. data/lib/schematic/billing/types/upload_contract_document_response.rb +15 -0
  19. data/lib/schematic/catalogs/client.rb +16 -16
  20. data/lib/schematic/catalogs/types/update_catalog_configuration_request_body.rb +2 -0
  21. data/lib/schematic/checkout/client.rb +98 -9
  22. data/lib/schematic/checkout/types/pause_subscription_request.rb +15 -0
  23. data/lib/schematic/checkout/types/pause_subscription_response.rb +15 -0
  24. data/lib/schematic/checkout/types/resume_subscription_request.rb +13 -0
  25. data/lib/schematic/checkout/types/resume_subscription_response.rb +15 -0
  26. data/lib/schematic/client.rb +7 -196
  27. data/lib/schematic/companies/client.rb +140 -44
  28. data/lib/schematic/companies/types/get_billing_entity_settings_response.rb +15 -0
  29. data/lib/schematic/companies/types/list_users_params.rb +4 -0
  30. data/lib/schematic/companies/types/list_users_request.rb +4 -0
  31. data/lib/schematic/companies/types/update_billing_entity_settings_request_body.rb +13 -0
  32. data/lib/schematic/companies/types/update_billing_entity_settings_response.rb +15 -0
  33. data/lib/schematic/components/client.rb +8 -8
  34. data/lib/schematic/componentspublic/client.rb +1 -1
  35. data/lib/schematic/credits/client.rb +41 -41
  36. data/lib/schematic/customplangrouprollouts/client.rb +258 -0
  37. data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_request_body.rb +15 -0
  38. data/lib/schematic/customplangrouprollouts/types/copy_custom_plan_response.rb +15 -0
  39. data/lib/schematic/customplangrouprollouts/types/get_group_rollout_response.rb +15 -0
  40. data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_params.rb +14 -0
  41. data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_request.rb +11 -0
  42. data/lib/schematic/customplangrouprollouts/types/list_group_rollouts_response.rb +15 -0
  43. data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_params.rb +16 -0
  44. data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_request.rb +15 -0
  45. data/lib/schematic/customplangrouprollouts/types/preview_group_rollout_response.rb +15 -0
  46. data/lib/schematic/customplangrouprollouts/types/start_group_rollout_request_body.rb +17 -0
  47. data/lib/schematic/customplangrouprollouts/types/start_group_rollout_response.rb +15 -0
  48. data/lib/schematic/dataexports/client.rb +4 -4
  49. data/lib/schematic/entitlements/client.rb +28 -28
  50. data/lib/schematic/entitlements/types/create_billing_linked_plan_entitlement_request_body.rb +2 -0
  51. data/lib/schematic/entitlements/types/create_company_override_request_body.rb +2 -0
  52. data/lib/schematic/entitlements/types/create_plan_entitlement_request_body.rb +2 -0
  53. data/lib/schematic/entitlements/types/update_company_override_request_body.rb +2 -0
  54. data/lib/schematic/entitlements/types/update_plan_entitlement_request_body.rb +2 -0
  55. data/lib/schematic/errors/response_error.rb +4 -2
  56. data/lib/schematic/events/client.rb +213 -9
  57. data/lib/schematic/events/types/create_account_inference_cost_rate_request_body.rb +19 -0
  58. data/lib/schematic/events/types/create_account_inference_cost_rate_response.rb +15 -0
  59. data/lib/schematic/events/types/delete_account_inference_cost_rate_response.rb +15 -0
  60. data/lib/schematic/events/types/list_account_inference_cost_rates_params.rb +20 -0
  61. data/lib/schematic/events/types/list_account_inference_cost_rates_request.rb +17 -0
  62. data/lib/schematic/events/types/list_account_inference_cost_rates_response.rb +15 -0
  63. data/lib/schematic/events/types/update_account_inference_cost_rate_request_body.rb +13 -0
  64. data/lib/schematic/events/types/update_account_inference_cost_rate_response.rb +15 -0
  65. data/lib/schematic/features/client.rb +18 -18
  66. data/lib/schematic/insights/client.rb +6 -6
  67. data/lib/schematic/integrationsapi/client.rb +14 -14
  68. data/lib/schematic/internal/http/raw_client.rb +1 -1
  69. data/lib/schematic/licenses/client.rb +3 -3
  70. data/lib/schematic/planbundle/client.rb +3 -3
  71. data/lib/schematic/plangroups/client.rb +3 -3
  72. data/lib/schematic/planmigrations/client.rb +11 -11
  73. data/lib/schematic/plans/client.rb +20 -20
  74. data/lib/schematic/scheduledcheckout/client.rb +4 -4
  75. data/lib/schematic/types/account_inference_cost_rate_response_data.rb +29 -0
  76. data/lib/schematic/types/billing_invoice_billing_details_response_data.rb +2 -0
  77. data/lib/schematic/types/billing_invoice_detail_response_data.rb +2 -0
  78. data/lib/schematic/types/billing_moved_to_default_plan_response_data.rb +15 -0
  79. data/lib/schematic/types/billing_settings_response_data.rb +4 -0
  80. data/lib/schematic/types/billing_subscription_pause_behavior.rb +15 -0
  81. data/lib/schematic/types/billing_subscription_response_data.rb +6 -0
  82. data/lib/schematic/types/billing_subscription_view.rb +6 -0
  83. data/lib/schematic/types/billing_upcoming_invoice_response_data.rb +43 -0
  84. data/lib/schematic/types/billing_upcoming_invoices_response_data.rb +13 -0
  85. data/lib/schematic/types/catalog_configuration_response_data.rb +2 -0
  86. data/lib/schematic/types/catalog_plan_response_data.rb +4 -0
  87. data/lib/schematic/types/catalog_response_data.rb +2 -0
  88. data/lib/schematic/types/checkout_subscription.rb +6 -0
  89. data/lib/schematic/types/company_billing_entity_settings_response_data.rb +15 -0
  90. data/lib/schematic/types/company_billing_entity_subscription_response_data.rb +10 -0
  91. data/lib/schematic/types/company_billing_profile_contract_response_data.rb +55 -0
  92. data/lib/schematic/types/company_billing_profile_document_response_data.rb +15 -0
  93. data/lib/schematic/types/company_override_response_data.rb +2 -0
  94. data/lib/schematic/types/company_subscription_response_data.rb +10 -0
  95. data/lib/schematic/types/contract_billing_details_request_body.rb +19 -0
  96. data/lib/schematic/types/contract_postpaid_credit_response_data.rb +23 -0
  97. data/lib/schematic/types/contract_postpaid_response_data.rb +15 -0
  98. data/lib/schematic/types/create_entitlement_in_bundle_request_body.rb +2 -0
  99. data/lib/schematic/types/create_entitlement_req_common.rb +2 -0
  100. data/lib/schematic/types/credit_burn_breakdown_line.rb +4 -0
  101. data/lib/schematic/types/credit_model_rate.rb +17 -0
  102. data/lib/schematic/types/custom_plan_billing_response_data.rb +2 -0
  103. data/lib/schematic/types/group_rollout_change_response_data.rb +13 -0
  104. data/lib/schematic/types/group_rollout_changes_response_data.rb +23 -0
  105. data/lib/schematic/types/group_rollout_company_response_data.rb +15 -0
  106. data/lib/schematic/types/group_rollout_company_result_response_data.rb +19 -0
  107. data/lib/schematic/types/group_rollout_preview_response_data.rb +19 -0
  108. data/lib/schematic/types/group_rollout_response_data.rb +25 -0
  109. data/lib/schematic/types/group_rollout_versions_request_body.rb +13 -0
  110. data/lib/schematic/types/manage_plan_request.rb +2 -0
  111. data/lib/schematic/types/plan_change_action.rb +1 -0
  112. data/lib/schematic/types/plan_entitlement_response_data.rb +2 -0
  113. data/lib/schematic/types/publish_plan_version_request_body.rb +4 -0
  114. data/lib/schematic/types/publish_preview_response_data.rb +4 -0
  115. data/lib/schematic/types/stripe_integration_config.rb +2 -0
  116. data/lib/schematic/types/update_entitlement_req_common.rb +2 -0
  117. data/lib/schematic/version.rb +1 -1
  118. data/lib/schematic/webhooks/client.rb +10 -10
  119. data/lib/schematic.rb +66 -5
  120. data/reference.md +2146 -1054
  121. metadata +57 -2
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class BillingUpcomingInvoiceResponseData < Internal::Types::Model
8
+ field :amount_due, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :at, -> { String }, optional: false, nullable: false
11
+
12
+ field :change_id, -> { String }, optional: true, nullable: false
13
+
14
+ field :currency, -> { Schematic::Types::Currency }, optional: false, nullable: false
15
+
16
+ field :discount, -> { Integer }, optional: false, nullable: false
17
+
18
+ field :due_at, -> { String }, optional: true, nullable: false
19
+
20
+ field :ending_balance, -> { Integer }, optional: false, nullable: false
21
+
22
+ field :lines, -> { Internal::Types::Array[Schematic::Types::BillingStatementLineResponseData] }, optional: false, nullable: false
23
+
24
+ field :period_end, -> { String }, optional: false, nullable: false
25
+
26
+ field :period_start, -> { String }, optional: false, nullable: false
27
+
28
+ field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
29
+
30
+ field :starting_balance, -> { Integer }, optional: false, nullable: false
31
+
32
+ field :subscription_external_id, -> { String }, optional: true, nullable: false
33
+
34
+ field :subscription_id, -> { String }, optional: true, nullable: false
35
+
36
+ field :subtotal, -> { Integer }, optional: false, nullable: false
37
+
38
+ field :tax, -> { Integer }, optional: false, nullable: false
39
+
40
+ field :total, -> { Integer }, optional: false, nullable: false
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class BillingUpcomingInvoicesResponseData < Internal::Types::Model
8
+ field :company_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :invoices, -> { Internal::Types::Array[Schematic::Types::BillingUpcomingInvoiceResponseData] }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -11,6 +11,8 @@ module Schematic
11
11
 
12
12
  field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
13
13
 
14
+ field :custom_plan_id, -> { String }, optional: true, nullable: false
15
+
14
16
  field :custom_plan_price_text, -> { String }, optional: true, nullable: false
15
17
 
16
18
  field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -15,6 +15,10 @@ module Schematic
15
15
 
16
16
  field :currency_prices, -> { Internal::Types::Array[Schematic::Types::CatalogCurrencyPricesResponseData] }, optional: false, nullable: false
17
17
 
18
+ field :custom, -> { Internal::Types::Boolean }, optional: false, nullable: false
19
+
20
+ field :custom_plan_cta, -> { Schematic::Types::CatalogCustomPlanCtaResponseData }, optional: true, nullable: false
21
+
18
22
  field :description, -> { String }, optional: false, nullable: false
19
23
 
20
24
  field :entitlements, -> { Internal::Types::Array[Schematic::Types::CatalogPlanEntitlementResponseData] }, optional: false, nullable: false
@@ -13,6 +13,8 @@ module Schematic
13
13
 
14
14
  field :custom_plan_cta_url, -> { String }, optional: true, nullable: false
15
15
 
16
+ field :custom_plan_id, -> { String }, optional: true, nullable: false
17
+
16
18
  field :custom_plan_price_text, -> { String }, optional: true, nullable: false
17
19
 
18
20
  field :custom_plans_visible, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -39,6 +39,12 @@ module Schematic
39
39
 
40
40
  field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
41
41
 
42
+ field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
43
+
44
+ field :pause_resumes_at, -> { Integer }, optional: true, nullable: false
45
+
46
+ field :paused_at, -> { String }, optional: true, nullable: false
47
+
42
48
  field :period_end, -> { Integer }, optional: false, nullable: false
43
49
 
44
50
  field :period_start, -> { Integer }, optional: false, nullable: false
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class CompanyBillingEntitySettingsResponseData < Internal::Types::Model
8
+ field :billing_date, -> { String }, optional: true, nullable: false
9
+
10
+ field :children_may_change_plan, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
+
12
+ field :company_id, -> { String }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -25,8 +25,18 @@ module Schematic
25
25
 
26
26
  field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
27
27
 
28
+ field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
29
+
30
+ field :pause_resumes_at, -> { String }, optional: true, nullable: false
31
+
32
+ field :paused_at, -> { String }, optional: true, nullable: false
33
+
28
34
  field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
29
35
 
36
+ field :period_end, -> { String }, optional: true, nullable: false
37
+
38
+ field :period_start, -> { String }, optional: true, nullable: false
39
+
30
40
  field :plan_name, -> { String }, optional: false, nullable: false
31
41
 
32
42
  field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class CompanyBillingProfileContractResponseData < Internal::Types::Model
8
+ field :account_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :billing_customer_id, -> { String }, optional: true, nullable: false
11
+
12
+ field :billing_details, -> { Schematic::Types::BillingInvoiceBillingDetailsResponseData }, optional: true, nullable: false
13
+
14
+ field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: false, nullable: false
15
+
16
+ field :collector, -> { Schematic::Types::Collector }, optional: true, nullable: false
17
+
18
+ field :company_id, -> { String }, optional: false, nullable: false
19
+
20
+ field :contract_document, -> { Schematic::Types::CompanyBillingProfileDocumentResponseData }, optional: true, nullable: false
21
+
22
+ field :created_at, -> { String }, optional: false, nullable: false
23
+
24
+ field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
25
+
26
+ field :days_until_due, -> { Integer }, optional: true, nullable: false
27
+
28
+ field :environment_id, -> { String }, optional: false, nullable: false
29
+
30
+ field :gating_days, -> { Integer }, optional: false, nullable: false
31
+
32
+ field :id, -> { String }, optional: false, nullable: false
33
+
34
+ field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false
35
+
36
+ field :name, -> { String }, optional: true, nullable: false
37
+
38
+ field :overdraft_limit, -> { Integer }, optional: true, nullable: false
39
+
40
+ field :payment_gating, -> { Schematic::Types::PaymentGating }, optional: false, nullable: false
41
+
42
+ field :payment_method_id, -> { String }, optional: true, nullable: false
43
+
44
+ field :postpaid, -> { Schematic::Types::ContractPostpaidResponseData }, optional: true, nullable: false
45
+
46
+ field :proration_behavior, -> { Schematic::Types::ProrationBehavior }, optional: true, nullable: false
47
+
48
+ field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
49
+
50
+ field :purchase_order, -> { String }, optional: true, nullable: false
51
+
52
+ field :updated_at, -> { String }, optional: false, nullable: false
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class CompanyBillingProfileDocumentResponseData < Internal::Types::Model
8
+ field :name, -> { String }, optional: false, nullable: false
9
+
10
+ field :size, -> { Integer }, optional: false, nullable: false
11
+
12
+ field :uploaded_at, -> { String }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -27,6 +27,8 @@ module Schematic
27
27
 
28
28
  field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
29
29
 
30
+ field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
31
+
30
32
  field :notes, -> { Internal::Types::Array[Schematic::Types::CompanyOverrideNoteResponseData] }, optional: false, nullable: false
31
33
 
32
34
  field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
@@ -23,8 +23,18 @@ module Schematic
23
23
 
24
24
  field :latest_invoice, -> { Schematic::Types::InvoiceResponseData }, optional: true, nullable: false
25
25
 
26
+ field :pause_behavior, -> { Schematic::Types::BillingSubscriptionPauseBehavior }, optional: true, nullable: false
27
+
28
+ field :pause_resumes_at, -> { String }, optional: true, nullable: false
29
+
30
+ field :paused_at, -> { String }, optional: true, nullable: false
31
+
26
32
  field :payment_method, -> { Schematic::Types::PaymentMethodResponseData }, optional: true, nullable: false
27
33
 
34
+ field :period_end, -> { String }, optional: true, nullable: false
35
+
36
+ field :period_start, -> { String }, optional: true, nullable: false
37
+
28
38
  field :products, -> { Internal::Types::Array[Schematic::Types::BillingProductForSubscriptionResponseData] }, optional: false, nullable: false
29
39
 
30
40
  field :provider_type, -> { Schematic::Types::BillingProviderType }, optional: false, nullable: false
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class ContractBillingDetailsRequestBody < Internal::Types::Model
8
+ field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
9
+
10
+ field :email, -> { String }, optional: true, nullable: false
11
+
12
+ field :legal_name, -> { String }, optional: true, nullable: false
13
+
14
+ field :phone, -> { String }, optional: true, nullable: false
15
+
16
+ field :tax_ids, -> { Internal::Types::Array[Schematic::Types::TaxIdInput] }, optional: false, nullable: false
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class ContractPostpaidCreditResponseData < Internal::Types::Model
8
+ field :counts_toward_limit, -> { Internal::Types::Boolean }, optional: false, nullable: false
9
+
10
+ field :credit_id, -> { String }, optional: false, nullable: false
11
+
12
+ field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
13
+
14
+ field :debt, -> { Float }, optional: false, nullable: false
15
+
16
+ field :grant_cap, -> { Float }, optional: true, nullable: false
17
+
18
+ field :owed, -> { Integer }, optional: true, nullable: false
19
+
20
+ field :rate_per_unit, -> { String }, optional: true, nullable: false
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class ContractPostpaidResponseData < Internal::Types::Model
8
+ field :credits, -> { Internal::Types::Array[Schematic::Types::ContractPostpaidCreditResponseData] }, optional: false, nullable: false
9
+
10
+ field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
11
+
12
+ field :owed, -> { Integer }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -21,6 +21,8 @@ module Schematic
21
21
 
22
22
  field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
23
23
 
24
+ field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
25
+
24
26
  field :monthly_metered_price_id, -> { String }, optional: true, nullable: false
25
27
 
26
28
  field :monthly_price_tiers, -> { Internal::Types::Array[Schematic::Types::CreatePriceTierRequestBody] }, optional: true, nullable: false
@@ -13,6 +13,8 @@ module Schematic
13
13
 
14
14
  field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
15
15
 
16
+ field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
17
+
16
18
  field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
17
19
 
18
20
  field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -9,6 +9,10 @@ module Schematic
9
9
 
10
10
  field :key, -> { String }, optional: false, nullable: false
11
11
 
12
+ field :model, -> { String }, optional: true, nullable: false
13
+
14
+ field :provider, -> { String }, optional: true, nullable: false
15
+
12
16
  field :quantity, -> { Float }, optional: false, nullable: false
13
17
 
14
18
  field :rate, -> { Float }, optional: false, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class CreditModelRate < Internal::Types::Model
8
+ field :consumption_rate, -> { Float }, optional: false, nullable: false
9
+
10
+ field :model, -> { String }, optional: false, nullable: false
11
+
12
+ field :provider, -> { String }, optional: false, nullable: false
13
+
14
+ field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
15
+ end
16
+ end
17
+ end
@@ -9,6 +9,8 @@ module Schematic
9
9
 
10
10
  field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
11
11
 
12
+ field :billing_entity_id, -> { String }, optional: true, nullable: false
13
+
12
14
  field :billing_start_date, -> { String }, optional: true, nullable: false
13
15
 
14
16
  field :checkout_id, -> { String }, optional: true, nullable: false
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutChangeResponseData < Internal::Types::Model
8
+ field :id, -> { String }, optional: false, nullable: false
9
+
10
+ field :name, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutChangesResponseData < Internal::Types::Model
8
+ field :credit_grants_added, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
9
+
10
+ field :credit_grants_changed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
11
+
12
+ field :credit_grants_removed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
13
+
14
+ field :entitlements_added, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
15
+
16
+ field :entitlements_changed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
17
+
18
+ field :entitlements_removed, -> { Internal::Types::Array[Schematic::Types::GroupRolloutChangeResponseData] }, optional: false, nullable: false
19
+
20
+ field :price_changed, -> { Internal::Types::Boolean }, optional: false, nullable: false
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutCompanyResponseData < Internal::Types::Model
8
+ field :company, -> { Schematic::Types::CompanyResponseData }, optional: true, nullable: false
9
+
10
+ field :plan_id, -> { String }, optional: true, nullable: false
11
+
12
+ field :reason, -> { String }, optional: true, nullable: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutCompanyResultResponseData < Internal::Types::Model
8
+ field :company_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :error, -> { String }, optional: true, nullable: false
11
+
12
+ field :plan_id, -> { String }, optional: true, nullable: false
13
+
14
+ field :plan_version_id, -> { String }, optional: true, nullable: false
15
+
16
+ field :status, -> { String }, optional: false, nullable: false
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutPreviewResponseData < Internal::Types::Model
8
+ field :changes, -> { Schematic::Types::GroupRolloutChangesResponseData }, optional: true, nullable: false
9
+
10
+ field :companies, -> { Internal::Types::Array[Schematic::Types::GroupRolloutCompanyResponseData] }, optional: false, nullable: false
11
+
12
+ field :from_plan_version_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :payer_company_id, -> { String }, optional: false, nullable: false
15
+
16
+ field :to_plan_version_id, -> { String }, optional: false, nullable: false
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutResponseData < Internal::Types::Model
8
+ field :companies, -> { Internal::Types::Array[Schematic::Types::GroupRolloutCompanyResultResponseData] }, optional: false, nullable: false
9
+
10
+ field :created_at, -> { String }, optional: false, nullable: false
11
+
12
+ field :from_plan_version_id, -> { String }, optional: false, nullable: false
13
+
14
+ field :id, -> { String }, optional: false, nullable: false
15
+
16
+ field :payer_company_id, -> { String }, optional: false, nullable: false
17
+
18
+ field :plan_id, -> { String }, optional: false, nullable: false
19
+
20
+ field :to_plan_version_id, -> { String }, optional: false, nullable: false
21
+
22
+ field :updated_at, -> { String }, optional: false, nullable: false
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../schematic"
4
+
5
+ module Schematic
6
+ module Types
7
+ class GroupRolloutVersionsRequestBody < Internal::Types::Model
8
+ field :from_plan_version_id, -> { String }, optional: true, nullable: false
9
+
10
+ field :to_plan_version_id, -> { String }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
@@ -9,6 +9,8 @@ module Schematic
9
9
 
10
10
  field :add_on_selections, -> { Internal::Types::Array[Schematic::Types::PlanSelection] }, optional: false, nullable: false
11
11
 
12
+ field :align_with_billing_entity, -> { Internal::Types::Boolean }, optional: true, nullable: false
13
+
12
14
  field :base_plan_id, -> { String }, optional: true, nullable: false
13
15
 
14
16
  field :base_plan_price_id, -> { String }, optional: true, nullable: false
@@ -16,6 +16,7 @@ module Schematic
16
16
  INVOICE_PAST_DUE = "invoice_past_due"
17
17
  MANAGE_PLAN = "manage_plan"
18
18
  MIGRATION = "migration"
19
+ PAST_DUE_DEFAULT_PLAN = "past_due_default_plan"
19
20
  PLAN_BILLING_PRODUCT_CHANGED = "plan_billing_product_changed"
20
21
  PLAN_DELETED = "plan_deleted"
21
22
  PLAN_TRAIT_CHANGE = "plan_trait_change"
@@ -33,6 +33,8 @@ module Schematic
33
33
 
34
34
  field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
35
35
 
36
+ field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
37
+
36
38
  field :overage_billing_cadence, -> { Schematic::Types::BillingArrearsCadence }, optional: true, nullable: false
37
39
 
38
40
  field :overage_invoice_anchor, -> { Schematic::Types::BillingArrearsAnchor }, optional: true, nullable: false
@@ -9,8 +9,12 @@ module Schematic
9
9
 
10
10
  field :address, -> { Schematic::Types::CustomerBillingAddress }, optional: true, nullable: false
11
11
 
12
+ field :align_with_billing_entity, -> { Internal::Types::Boolean }, optional: true, nullable: false
13
+
12
14
  field :billing_cycle_anchor, -> { String }, optional: true, nullable: false
13
15
 
16
+ field :billing_entity_id, -> { String }, optional: true, nullable: false
17
+
14
18
  field :billing_start_date, -> { String }, optional: true, nullable: false
15
19
 
16
20
  field :collection_method, -> { Schematic::Types::BillingCollectionMethod }, optional: true, nullable: false
@@ -7,6 +7,10 @@ module Schematic
7
7
  class PublishPreviewResponseData < Internal::Types::Model
8
8
  field :billing_email, -> { String }, optional: true, nullable: false
9
9
 
10
+ field :billing_entity_id, -> { String }, optional: true, nullable: false
11
+
12
+ field :billing_entity_name, -> { String }, optional: true, nullable: false
13
+
10
14
  field :currency, -> { Schematic::Types::Currency }, optional: true, nullable: false
11
15
 
12
16
  field :current_period_end, -> { String }, optional: true, nullable: false
@@ -23,6 +23,8 @@ module Schematic
23
23
 
24
24
  field :onboard_url, -> { String }, optional: true, nullable: false
25
25
 
26
+ field :payments_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
27
+
26
28
  field :return_to, -> { String }, optional: true, nullable: false
27
29
  end
28
30
  end
@@ -11,6 +11,8 @@ module Schematic
11
11
 
12
12
  field :metric_period_month_reset, -> { Schematic::Types::MetricPeriodMonthReset }, optional: true, nullable: false
13
13
 
14
+ field :model_rates, -> { Internal::Types::Array[Schematic::Types::CreditModelRate] }, optional: true, nullable: false
15
+
14
16
  field :quantity_rates, -> { Internal::Types::Hash[String, Float] }, optional: true, nullable: false
15
17
 
16
18
  field :value_bool, -> { Internal::Types::Boolean }, optional: true, nullable: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Schematic
4
- VERSION = "1.5.7"
4
+ VERSION = "1.5.8"
5
5
  end