schematichq 1.5.2 → 1.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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +8 -338
  4. data/.fernignore +6 -0
  5. data/README.md +141 -0
  6. data/custom.gemspec.rb +6 -0
  7. data/lib/schematic/accounts/types/update_environment_request_body.rb +2 -0
  8. data/lib/schematic/client.rb +1 -1
  9. data/lib/schematic/credits/client.rb +50 -6
  10. data/lib/schematic/credits/leases/check.rb +477 -0
  11. data/lib/schematic/credits/leases/lease_manager.rb +565 -0
  12. data/lib/schematic/credits/leases/lease_store.rb +240 -0
  13. data/lib/schematic/credits/leases/redis_lease_store.rb +358 -0
  14. data/lib/schematic/credits/leases/redis_reservation_store.rb +326 -0
  15. data/lib/schematic/credits/leases/reservation_store.rb +161 -0
  16. data/lib/schematic/credits/leases/server_check.rb +237 -0
  17. data/lib/schematic/credits/leases/track.rb +66 -0
  18. data/lib/schematic/credits/leases/types.rb +329 -0
  19. data/lib/schematic/credits/leases/wire_client.rb +83 -0
  20. data/lib/schematic/credits/types/acquire_credit_lease_request_body.rb +2 -0
  21. data/lib/schematic/credits/types/create_credit_spend_policy_request_body.rb +5 -1
  22. data/lib/schematic/credits/types/extend_credit_lease_request_body.rb +2 -0
  23. data/lib/schematic/credits/types/get_credit_spend_policy_usage_params.rb +16 -0
  24. data/lib/schematic/credits/types/get_credit_spend_policy_usage_request.rb +15 -0
  25. data/lib/schematic/credits/types/get_credit_spend_policy_usage_response.rb +13 -0
  26. data/lib/schematic/credits/types/update_credit_spend_policy_request_body.rb +4 -0
  27. data/lib/schematic/datastream/client.rb +32 -2
  28. data/lib/schematic/entitlements/client.rb +165 -0
  29. data/lib/schematic/entitlements/types/count_company_user_usage_params.rb +24 -0
  30. data/lib/schematic/entitlements/types/count_company_user_usage_request.rb +23 -0
  31. data/lib/schematic/entitlements/types/count_company_user_usage_response.rb +13 -0
  32. data/lib/schematic/entitlements/types/get_company_user_usage_metrics_params.rb +16 -0
  33. data/lib/schematic/entitlements/types/get_company_user_usage_metrics_request.rb +15 -0
  34. data/lib/schematic/entitlements/types/get_company_user_usage_metrics_response.rb +13 -0
  35. data/lib/schematic/entitlements/types/list_company_user_usage_params.rb +24 -0
  36. data/lib/schematic/entitlements/types/list_company_user_usage_request.rb +23 -0
  37. data/lib/schematic/entitlements/types/list_company_user_usage_response.rb +13 -0
  38. data/lib/schematic/plangroups/client.rb +2 -0
  39. data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +2 -0
  40. data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +2 -0
  41. data/lib/schematic/planmigrations/client.rb +6 -0
  42. data/lib/schematic/planmigrations/types/count_migrations_params.rb +2 -0
  43. data/lib/schematic/planmigrations/types/count_migrations_request.rb +2 -0
  44. data/lib/schematic/planmigrations/types/create_migration_input.rb +2 -0
  45. data/lib/schematic/planmigrations/types/list_migrations_params.rb +2 -0
  46. data/lib/schematic/planmigrations/types/list_migrations_request.rb +2 -0
  47. data/lib/schematic/plans/types/publish_plan_version_request_body.rb +4 -0
  48. data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +2 -0
  49. data/lib/schematic/rules_engine.rb +37 -0
  50. data/lib/schematic/schematic_client.rb +830 -33
  51. data/lib/schematic/types/capture_raw_event.rb +4 -0
  52. data/lib/schematic/types/check_flags_response_data.rb +2 -0
  53. data/lib/schematic/types/company_detail_response_data.rb +2 -0
  54. data/lib/schematic/types/company_plan_detail_response_data.rb +2 -0
  55. data/lib/schematic/types/company_user_usage_metrics_response_data.rb +15 -0
  56. data/lib/schematic/types/company_user_usage_response_data.rb +19 -0
  57. data/lib/schematic/types/company_user_usage_row_response_data.rb +17 -0
  58. data/lib/schematic/types/component_display_settings.rb +2 -0
  59. data/lib/schematic/types/component_settings_response_data.rb +2 -0
  60. data/lib/schematic/types/credit_event_ledger_response_data.rb +5 -1
  61. data/lib/schematic/types/credit_event_type.rb +3 -0
  62. data/lib/schematic/types/credit_ledger_entry_kind.rb +17 -0
  63. data/lib/schematic/types/credit_spend_policy.rb +25 -0
  64. data/lib/schematic/types/credit_spend_policy_response_data.rb +12 -0
  65. data/lib/schematic/types/credit_spend_window.rb +11 -0
  66. data/lib/schematic/types/credit_spend_window_unit.rb +13 -0
  67. data/lib/schematic/types/custom_plan_billing_response_data.rb +2 -0
  68. data/lib/schematic/types/environment_detail_response_data.rb +2 -0
  69. data/lib/schematic/types/environment_response_data.rb +2 -0
  70. data/lib/schematic/types/estimated_plan_total.rb +13 -0
  71. data/lib/schematic/types/pending_migration_response_data.rb +6 -0
  72. data/lib/schematic/types/plan_version_migration_response_data.rb +2 -0
  73. data/lib/schematic/types/plan_version_migration_strategy.rb +1 -0
  74. data/lib/schematic/types/rules_engine_schema_version.rb +1 -1
  75. data/lib/schematic/types/rulesengine_company.rb +2 -0
  76. data/lib/schematic/types/rulesengine_credit_spend_policy.rb +25 -0
  77. data/lib/schematic/types/rulesengine_credit_spend_policy_scope.rb +13 -0
  78. data/lib/schematic/types/rulesengine_credit_spend_window.rb +11 -0
  79. data/lib/schematic/types/rulesengine_user.rb +2 -0
  80. data/lib/schematic/types/user_usage_metric.rb +12 -0
  81. data/lib/schematic/version.rb +1 -1
  82. data/lib/schematic.rb +26 -2
  83. data/lib/schematichq.rb +10 -0
  84. data/reference.md +474 -9
  85. metadata +36 -2
data/reference.md CHANGED
@@ -1145,6 +1145,14 @@ client.accounts.update_environment(environment_id: "environment_id")
1145
1145
  <dl>
1146
1146
  <dd>
1147
1147
 
1148
+ **require_context_signature:** `Internal::Types::Boolean`
1149
+
1150
+ </dd>
1151
+ </dl>
1152
+
1153
+ <dl>
1154
+ <dd>
1155
+
1148
1156
  **request_options:** `Schematic::Accounts::RequestOptions`
1149
1157
 
1150
1158
  </dd>
@@ -5999,6 +6007,14 @@ client.credits.acquire_credit_lease(
5999
6007
  <dl>
6000
6008
  <dd>
6001
6009
 
6010
+ **user_id:** `String` — The user drawing the hold, so a user-scope spend policy applies to it
6011
+
6012
+ </dd>
6013
+ </dl>
6014
+
6015
+ <dl>
6016
+ <dd>
6017
+
6002
6018
  **request_options:** `Schematic::Credits::RequestOptions`
6003
6019
 
6004
6020
  </dd>
@@ -6074,6 +6090,14 @@ client.credits.extend_credit_lease(
6074
6090
  <dl>
6075
6091
  <dd>
6076
6092
 
6093
+ **user_id:** `String` — The user drawing the top-up, so a user-scope spend policy applies to it
6094
+
6095
+ </dd>
6096
+ </dl>
6097
+
6098
+ <dl>
6099
+ <dd>
6100
+
6077
6101
  **request_options:** `Schematic::Credits::RequestOptions`
6078
6102
 
6079
6103
  </dd>
@@ -6830,10 +6854,7 @@ client.credits.list_credit_spend_policies(
6830
6854
  <dd>
6831
6855
 
6832
6856
  ```ruby
6833
- client.credits.create_credit_spend_policy(
6834
- billing_credit_id: "billing_credit_id",
6835
- max_per_draw: 1.1
6836
- )
6857
+ client.credits.create_credit_spend_policy(billing_credit_id: "billing_credit_id")
6837
6858
  ```
6838
6859
  </dd>
6839
6860
  </dl>
@@ -6872,7 +6893,7 @@ client.credits.create_credit_spend_policy(
6872
6893
  <dl>
6873
6894
  <dd>
6874
6895
 
6875
- **max_per_draw:** `Integer` — The largest number of credits a single draw may spend.
6896
+ **max_per_draw:** `Integer` — The largest number of credits a single draw may spend. Set either this or window_amount.
6876
6897
 
6877
6898
  </dd>
6878
6899
  </dl>
@@ -6888,6 +6909,22 @@ client.credits.create_credit_spend_policy(
6888
6909
  <dl>
6889
6910
  <dd>
6890
6911
 
6912
+ **window_amount:** `Integer` — The number of credits the company or user may spend in one window. Set either this or max_per_draw.
6913
+
6914
+ </dd>
6915
+ </dl>
6916
+
6917
+ <dl>
6918
+ <dd>
6919
+
6920
+ **window_unit:** `Schematic::Types::CreditSpendWindowUnit` — The window that window_amount applies to: one UTC hour or one UTC day. Required with window_amount.
6921
+
6922
+ </dd>
6923
+ </dl>
6924
+
6925
+ <dl>
6926
+ <dd>
6927
+
6891
6928
  **request_options:** `Schematic::Credits::RequestOptions`
6892
6929
 
6893
6930
  </dd>
@@ -7000,6 +7037,22 @@ client.credits.update_credit_spend_policy(spend_policy_id: "spend_policy_id")
7000
7037
  <dl>
7001
7038
  <dd>
7002
7039
 
7040
+ **window_amount:** `Integer`
7041
+
7042
+ </dd>
7043
+ </dl>
7044
+
7045
+ <dl>
7046
+ <dd>
7047
+
7048
+ **window_unit:** `Schematic::Types::CreditSpendWindowUnit`
7049
+
7050
+ </dd>
7051
+ </dl>
7052
+
7053
+ <dl>
7054
+ <dd>
7055
+
7003
7056
  **request_options:** `Schematic::Credits::RequestOptions`
7004
7057
 
7005
7058
  </dd>
@@ -7160,6 +7213,74 @@ client.credits.count_credit_spend_policies(
7160
7213
  </dl>
7161
7214
 
7162
7215
 
7216
+ </dd>
7217
+ </dl>
7218
+ </details>
7219
+
7220
+ <details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">get_credit_spend_policy_usage</a>() -> Schematic::Credits::Types::GetCreditSpendPolicyUsageResponse</code></summary>
7221
+ <dl>
7222
+ <dd>
7223
+
7224
+ #### 🔌 Usage
7225
+
7226
+ <dl>
7227
+ <dd>
7228
+
7229
+ <dl>
7230
+ <dd>
7231
+
7232
+ ```ruby
7233
+ client.credits.get_credit_spend_policy_usage(
7234
+ billing_credit_id: "billing_credit_id",
7235
+ company_id: "company_id",
7236
+ user_ids: ["user_ids"]
7237
+ )
7238
+ ```
7239
+ </dd>
7240
+ </dl>
7241
+ </dd>
7242
+ </dl>
7243
+
7244
+ #### ⚙️ Parameters
7245
+
7246
+ <dl>
7247
+ <dd>
7248
+
7249
+ <dl>
7250
+ <dd>
7251
+
7252
+ **billing_credit_id:** `String`
7253
+
7254
+ </dd>
7255
+ </dl>
7256
+
7257
+ <dl>
7258
+ <dd>
7259
+
7260
+ **company_id:** `String`
7261
+
7262
+ </dd>
7263
+ </dl>
7264
+
7265
+ <dl>
7266
+ <dd>
7267
+
7268
+ **user_ids:** `String`
7269
+
7270
+ </dd>
7271
+ </dl>
7272
+
7273
+ <dl>
7274
+ <dd>
7275
+
7276
+ **request_options:** `Schematic::Credits::RequestOptions`
7277
+
7278
+ </dd>
7279
+ </dl>
7280
+ </dd>
7281
+ </dl>
7282
+
7283
+
7163
7284
  </dd>
7164
7285
  </dl>
7165
7286
  </details>
@@ -7181,7 +7302,7 @@ client.credits.list_credit_event_ledger(
7181
7302
  billing_credit_id: "billing_credit_id",
7182
7303
  company_id: "company_id",
7183
7304
  end_time: "end_time",
7184
- event_type: "grant",
7305
+ event_type: "adjustment",
7185
7306
  feature_id: "feature_id",
7186
7307
  start_time: "start_time",
7187
7308
  limit: 1000000,
@@ -7294,7 +7415,7 @@ client.credits.count_credit_event_ledger(
7294
7415
  billing_credit_id: "billing_credit_id",
7295
7416
  company_id: "company_id",
7296
7417
  end_time: "end_time",
7297
- event_type: "grant",
7418
+ event_type: "adjustment",
7298
7419
  feature_id: "feature_id",
7299
7420
  start_time: "start_time",
7300
7421
  limit: 1000000,
@@ -14890,6 +15011,282 @@ client.entitlements.get_user_usage_by_company(
14890
15011
  </dl>
14891
15012
 
14892
15013
 
15014
+ </dd>
15015
+ </dl>
15016
+ </details>
15017
+
15018
+ <details><summary><code>client.entitlements.<a href="/lib/schematic/entitlements/client.rb">get_company_user_usage_metrics</a>() -> Schematic::Entitlements::Types::GetCompanyUserUsageMetricsResponse</code></summary>
15019
+ <dl>
15020
+ <dd>
15021
+
15022
+ #### 🔌 Usage
15023
+
15024
+ <dl>
15025
+ <dd>
15026
+
15027
+ <dl>
15028
+ <dd>
15029
+
15030
+ ```ruby
15031
+ client.entitlements.get_company_user_usage_metrics(
15032
+ company_id: "company_id",
15033
+ end_time: "2024-01-15T09:30:00Z",
15034
+ start_time: "2024-01-15T09:30:00Z"
15035
+ )
15036
+ ```
15037
+ </dd>
15038
+ </dl>
15039
+ </dd>
15040
+ </dl>
15041
+
15042
+ #### ⚙️ Parameters
15043
+
15044
+ <dl>
15045
+ <dd>
15046
+
15047
+ <dl>
15048
+ <dd>
15049
+
15050
+ **company_id:** `String` — Company to list available metrics for
15051
+
15052
+ </dd>
15053
+ </dl>
15054
+
15055
+ <dl>
15056
+ <dd>
15057
+
15058
+ **end_time:** `String` — End of the usage window (exclusive); defaults to now
15059
+
15060
+ </dd>
15061
+ </dl>
15062
+
15063
+ <dl>
15064
+ <dd>
15065
+
15066
+ **start_time:** `String` — Start of the usage window; defaults to 30 days before the end
15067
+
15068
+ </dd>
15069
+ </dl>
15070
+
15071
+ <dl>
15072
+ <dd>
15073
+
15074
+ **request_options:** `Schematic::Entitlements::RequestOptions`
15075
+
15076
+ </dd>
15077
+ </dl>
15078
+ </dd>
15079
+ </dl>
15080
+
15081
+
15082
+ </dd>
15083
+ </dl>
15084
+ </details>
15085
+
15086
+ <details><summary><code>client.entitlements.<a href="/lib/schematic/entitlements/client.rb">list_company_user_usage</a>() -> Schematic::Entitlements::Types::ListCompanyUserUsageResponse</code></summary>
15087
+ <dl>
15088
+ <dd>
15089
+
15090
+ #### 🔌 Usage
15091
+
15092
+ <dl>
15093
+ <dd>
15094
+
15095
+ <dl>
15096
+ <dd>
15097
+
15098
+ ```ruby
15099
+ client.entitlements.list_company_user_usage(
15100
+ company_id: "company_id",
15101
+ end_time: "2024-01-15T09:30:00Z",
15102
+ feature_id: "feature_id",
15103
+ metric: "credits",
15104
+ limit: 1000000,
15105
+ offset: 1000000,
15106
+ start_time: "2024-01-15T09:30:00Z"
15107
+ )
15108
+ ```
15109
+ </dd>
15110
+ </dl>
15111
+ </dd>
15112
+ </dl>
15113
+
15114
+ #### ⚙️ Parameters
15115
+
15116
+ <dl>
15117
+ <dd>
15118
+
15119
+ <dl>
15120
+ <dd>
15121
+
15122
+ **company_id:** `String` — Company to break usage down for
15123
+
15124
+ </dd>
15125
+ </dl>
15126
+
15127
+ <dl>
15128
+ <dd>
15129
+
15130
+ **end_time:** `String` — End of the usage window (exclusive); defaults to now
15131
+
15132
+ </dd>
15133
+ </dl>
15134
+
15135
+ <dl>
15136
+ <dd>
15137
+
15138
+ **feature_id:** `String` — The event-based feature to break down; required when metric is feature
15139
+
15140
+ </dd>
15141
+ </dl>
15142
+
15143
+ <dl>
15144
+ <dd>
15145
+
15146
+ **metric:** `Schematic::Types::UserUsageMetric` — Which metric to break usage down by
15147
+
15148
+ </dd>
15149
+ </dl>
15150
+
15151
+ <dl>
15152
+ <dd>
15153
+
15154
+ **limit:** `Integer` — Page limit (default 100)
15155
+
15156
+ </dd>
15157
+ </dl>
15158
+
15159
+ <dl>
15160
+ <dd>
15161
+
15162
+ **offset:** `Integer` — Page offset (default 0)
15163
+
15164
+ </dd>
15165
+ </dl>
15166
+
15167
+ <dl>
15168
+ <dd>
15169
+
15170
+ **start_time:** `String` — Start of the usage window; defaults to 30 days before the end
15171
+
15172
+ </dd>
15173
+ </dl>
15174
+
15175
+ <dl>
15176
+ <dd>
15177
+
15178
+ **request_options:** `Schematic::Entitlements::RequestOptions`
15179
+
15180
+ </dd>
15181
+ </dl>
15182
+ </dd>
15183
+ </dl>
15184
+
15185
+
15186
+ </dd>
15187
+ </dl>
15188
+ </details>
15189
+
15190
+ <details><summary><code>client.entitlements.<a href="/lib/schematic/entitlements/client.rb">count_company_user_usage</a>() -> Schematic::Entitlements::Types::CountCompanyUserUsageResponse</code></summary>
15191
+ <dl>
15192
+ <dd>
15193
+
15194
+ #### 🔌 Usage
15195
+
15196
+ <dl>
15197
+ <dd>
15198
+
15199
+ <dl>
15200
+ <dd>
15201
+
15202
+ ```ruby
15203
+ client.entitlements.count_company_user_usage(
15204
+ company_id: "company_id",
15205
+ end_time: "2024-01-15T09:30:00Z",
15206
+ feature_id: "feature_id",
15207
+ metric: "credits",
15208
+ limit: 1000000,
15209
+ offset: 1000000,
15210
+ start_time: "2024-01-15T09:30:00Z"
15211
+ )
15212
+ ```
15213
+ </dd>
15214
+ </dl>
15215
+ </dd>
15216
+ </dl>
15217
+
15218
+ #### ⚙️ Parameters
15219
+
15220
+ <dl>
15221
+ <dd>
15222
+
15223
+ <dl>
15224
+ <dd>
15225
+
15226
+ **company_id:** `String` — Company to break usage down for
15227
+
15228
+ </dd>
15229
+ </dl>
15230
+
15231
+ <dl>
15232
+ <dd>
15233
+
15234
+ **end_time:** `String` — End of the usage window (exclusive); defaults to now
15235
+
15236
+ </dd>
15237
+ </dl>
15238
+
15239
+ <dl>
15240
+ <dd>
15241
+
15242
+ **feature_id:** `String` — The event-based feature to break down; required when metric is feature
15243
+
15244
+ </dd>
15245
+ </dl>
15246
+
15247
+ <dl>
15248
+ <dd>
15249
+
15250
+ **metric:** `Schematic::Types::UserUsageMetric` — Which metric to break usage down by
15251
+
15252
+ </dd>
15253
+ </dl>
15254
+
15255
+ <dl>
15256
+ <dd>
15257
+
15258
+ **limit:** `Integer` — Page limit (default 100)
15259
+
15260
+ </dd>
15261
+ </dl>
15262
+
15263
+ <dl>
15264
+ <dd>
15265
+
15266
+ **offset:** `Integer` — Page offset (default 0)
15267
+
15268
+ </dd>
15269
+ </dl>
15270
+
15271
+ <dl>
15272
+ <dd>
15273
+
15274
+ **start_time:** `String` — Start of the usage window; defaults to 30 days before the end
15275
+
15276
+ </dd>
15277
+ </dl>
15278
+
15279
+ <dl>
15280
+ <dd>
15281
+
15282
+ **request_options:** `Schematic::Entitlements::RequestOptions`
15283
+
15284
+ </dd>
15285
+ </dl>
15286
+ </dd>
15287
+ </dl>
15288
+
15289
+
14893
15290
  </dd>
14894
15291
  </dl>
14895
15292
  </details>
@@ -15259,6 +15656,14 @@ client.plans.retry_custom_plan_billing(
15259
15656
  <dl>
15260
15657
  <dd>
15261
15658
 
15659
+ **billing_start_date:** `String` — The date the contract term starts. A past date backdates the subscription so the first invoice covers the term from this date to the renewal date. Requires billing_cycle_anchor. When both are omitted, the term pinned at finalize is reissued. Only honored when the retry creates a subscription.
15660
+
15661
+ </dd>
15662
+ </dl>
15663
+
15664
+ <dl>
15665
+ <dd>
15666
+
15262
15667
  **customer_email:** `String`
15263
15668
 
15264
15669
  </dd>
@@ -16550,6 +16955,14 @@ client.plans.publish_plan_version(
16550
16955
  <dl>
16551
16956
  <dd>
16552
16957
 
16958
+ **billing_start_date:** `String` — The date the contract term starts. A past date backdates the subscription so the first invoice covers the term from this date to the renewal date. Requires billing_cycle_anchor. Only honored on a first publish that starts a subscription.
16959
+
16960
+ </dd>
16961
+ </dl>
16962
+
16963
+ <dl>
16964
+ <dd>
16965
+
16553
16966
  **coupon_external_id:** `String`
16554
16967
 
16555
16968
  </dd>
@@ -16614,7 +17027,7 @@ client.plans.publish_plan_version(
16614
17027
  <dl>
16615
17028
  <dd>
16616
17029
 
16617
- **proration_behavior:** `Schematic::Types::MigrationProrationBehavior`
17030
+ **proration_behavior:** `Schematic::Types::MigrationProrationBehavior` — How Stripe handles the price difference when companies are migrated. With migration_strategy immediate, omitted means create_prorations. With end_of_billing_period only none is accepted and means the same as omitting it: the change lands on the renewal boundary, so there is nothing to prorate. With scheduled any value is accepted and omitted means none. Not accepted with leave.
16618
17031
 
16619
17032
  </dd>
16620
17033
  </dl>
@@ -16630,6 +17043,14 @@ client.plans.publish_plan_version(
16630
17043
  <dl>
16631
17044
  <dd>
16632
17045
 
17046
+ **scheduled_at:** `String` — When every company moves, for migration_strategy scheduled. Must be in the future; the migration runs within about a minute of this time. Not accepted with other strategies.
17047
+
17048
+ </dd>
17049
+ </dl>
17050
+
17051
+ <dl>
17052
+ <dd>
17053
+
16633
17054
  **send_invoice:** `Internal::Types::Boolean` — Whether Stripe emails the invoice when it is finalized. Defaults to true.
16634
17055
 
16635
17056
  </dd>
@@ -21078,6 +21499,7 @@ client.plangroups.create_plan_group(
21078
21499
  proration_behavior: "create_prorations",
21079
21500
  show_as_monthly_prices: true,
21080
21501
  show_credits: true,
21502
+ show_estimated_total: true,
21081
21503
  show_feature_description: true,
21082
21504
  show_hard_limit: true,
21083
21505
  show_period_toggle: true,
@@ -21330,6 +21752,14 @@ client.plangroups.create_plan_group(
21330
21752
  <dl>
21331
21753
  <dd>
21332
21754
 
21755
+ **show_estimated_total:** `Internal::Types::Boolean`
21756
+
21757
+ </dd>
21758
+ </dl>
21759
+
21760
+ <dl>
21761
+ <dd>
21762
+
21333
21763
  **show_feature_description:** `Internal::Types::Boolean`
21334
21764
 
21335
21765
  </dd>
@@ -21458,6 +21888,7 @@ client.plangroups.update_plan_group(
21458
21888
  proration_behavior: "create_prorations",
21459
21889
  show_as_monthly_prices: true,
21460
21890
  show_credits: true,
21891
+ show_estimated_total: true,
21461
21892
  show_feature_description: true,
21462
21893
  show_hard_limit: true,
21463
21894
  show_period_toggle: true,
@@ -21718,6 +22149,14 @@ client.plangroups.update_plan_group(
21718
22149
  <dl>
21719
22150
  <dd>
21720
22151
 
22152
+ **show_estimated_total:** `Internal::Types::Boolean`
22153
+
22154
+ </dd>
22155
+ </dl>
22156
+
22157
+ <dl>
22158
+ <dd>
22159
+
21721
22160
  **show_feature_description:** `Internal::Types::Boolean`
21722
22161
 
21723
22162
  </dd>
@@ -22046,6 +22485,7 @@ client.planmigrations.count_company_migrations(
22046
22485
  ```ruby
22047
22486
  client.planmigrations.list_migrations(
22048
22487
  feature_id: "feature_id",
22488
+ feature_plan_rollout_id: "feature_plan_rollout_id",
22049
22489
  plan_version_id: "plan_version_id",
22050
22490
  status: "cancelled",
22051
22491
  limit: 1000000,
@@ -22073,6 +22513,14 @@ client.planmigrations.list_migrations(
22073
22513
  <dl>
22074
22514
  <dd>
22075
22515
 
22516
+ **feature_plan_rollout_id:** `String`
22517
+
22518
+ </dd>
22519
+ </dl>
22520
+
22521
+ <dl>
22522
+ <dd>
22523
+
22076
22524
  **plan_version_id:** `String`
22077
22525
 
22078
22526
  </dd>
@@ -22190,7 +22638,15 @@ client.planmigrations.create_migration(
22190
22638
  <dl>
22191
22639
  <dd>
22192
22640
 
22193
- **proration_behavior:** `Schematic::Types::MigrationProrationBehavior`
22641
+ **proration_behavior:** `Schematic::Types::MigrationProrationBehavior` — How Stripe handles the price difference when companies are migrated. With strategy immediate, omitted means create_prorations. With end_of_billing_period only none is accepted and means the same as omitting it: the change lands on the renewal boundary, so there is nothing to prorate. With scheduled any value is accepted and omitted means none.
22642
+
22643
+ </dd>
22644
+ </dl>
22645
+
22646
+ <dl>
22647
+ <dd>
22648
+
22649
+ **scheduled_at:** `String` — When every company moves, for strategy scheduled. Must be in the future; the migration runs within about a minute of this time. Not accepted with other strategies.
22194
22650
 
22195
22651
  </dd>
22196
22652
  </dl>
@@ -22452,6 +22908,7 @@ client.planmigrations.retry_migration(
22452
22908
  ```ruby
22453
22909
  client.planmigrations.count_migrations(
22454
22910
  feature_id: "feature_id",
22911
+ feature_plan_rollout_id: "feature_plan_rollout_id",
22455
22912
  plan_version_id: "plan_version_id",
22456
22913
  status: "cancelled",
22457
22914
  limit: 1000000,
@@ -22479,6 +22936,14 @@ client.planmigrations.count_migrations(
22479
22936
  <dl>
22480
22937
  <dd>
22481
22938
 
22939
+ **feature_plan_rollout_id:** `String`
22940
+
22941
+ </dd>
22942
+ </dl>
22943
+
22944
+ <dl>
22945
+ <dd>
22946
+
22482
22947
  **plan_version_id:** `String`
22483
22948
 
22484
22949
  </dd>