schematichq 1.4.4 → 1.4.6
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 +2 -2
- data/.fern/replay.lock +25 -1
- data/WASM_VERSION +1 -1
- data/lib/schematic/billing/client.rb +102 -2
- data/lib/schematic/billing/types/delete_billing_coupon_response.rb +12 -0
- data/lib/schematic/billing/types/delete_billing_customer_response.rb +12 -0
- data/lib/schematic/billing/types/delete_billing_invoice_response.rb +12 -0
- data/lib/schematic/billing/types/list_billing_prices_params.rb +1 -0
- data/lib/schematic/billing/types/list_billing_prices_request.rb +1 -0
- data/lib/schematic/billing/types/list_billing_product_prices_params.rb +1 -0
- data/lib/schematic/billing/types/list_billing_product_prices_request.rb +1 -0
- data/lib/schematic/client.rb +1 -1
- data/lib/schematic/credits/client.rb +0 -104
- data/lib/schematic/datastream/merge.rb +3 -4
- data/lib/schematic/plangroups/types/create_plan_group_request_body.rb +3 -0
- data/lib/schematic/plangroups/types/update_plan_group_request_body.rb +3 -0
- data/lib/schematic/plans/types/publish_plan_version_request_body.rb +0 -1
- data/lib/schematic/plans/types/retry_custom_plan_billing_request_body.rb +0 -1
- data/lib/schematic/types/account_member_permission.rb +0 -1
- data/lib/schematic/types/billing_credit_grant_zeroed_out_reason.rb +1 -0
- data/lib/schematic/types/change_subscription_internal_request_body.rb +1 -0
- data/lib/schematic/types/change_subscription_request_body.rb +1 -0
- data/lib/schematic/types/check_flags_response_data.rb +1 -0
- data/lib/schematic/types/checkout_settings_response_data.rb +3 -0
- data/lib/schematic/types/company_credit_balance.rb +11 -0
- data/lib/schematic/types/company_subscription_response_data.rb +1 -0
- data/lib/schematic/types/feature_entitlement.rb +4 -0
- data/lib/schematic/types/plan_change_response_data.rb +1 -0
- data/lib/schematic/types/preview_subscription_change_response_data.rb +3 -0
- data/lib/schematic/types/rulesengine_feature_entitlement.rb +4 -0
- data/lib/schematic/types/test_webhook_response_data.rb +10 -0
- data/lib/schematic/version.rb +1 -1
- data/lib/schematic/wasm/rulesengine.wasm +0 -0
- data/lib/schematic/webhooks/client.rb +37 -0
- data/lib/schematic/webhooks/types/send_test_webhook_action_response.rb +12 -0
- data/lib/schematic/webhooks/types/test_webhook_request_body.rb +12 -0
- data/lib/schematic.rb +10 -11
- data/reference.md +383 -322
- metadata +9 -10
- data/lib/schematic/credits/types/count_credit_ledger_params.rb +0 -19
- data/lib/schematic/credits/types/count_credit_ledger_request.rb +0 -18
- data/lib/schematic/credits/types/count_credit_ledger_response.rb +0 -12
- data/lib/schematic/credits/types/get_enriched_credit_ledger_params.rb +0 -19
- data/lib/schematic/credits/types/get_enriched_credit_ledger_request.rb +0 -18
- data/lib/schematic/credits/types/get_enriched_credit_ledger_response.rb +0 -12
- data/lib/schematic/types/credit_ledger_enriched_entry_response_data.rb +0 -30
- data/lib/schematic/types/credit_ledger_period.rb +0 -14
data/reference.md
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
# Reference
|
|
2
|
+
<details><summary><code>client.<a href="/lib/schematic/client.rb">get_credit_ledger</a>() -> </code></summary>
|
|
3
|
+
<dl>
|
|
4
|
+
<dd>
|
|
5
|
+
|
|
6
|
+
#### 🔌 Usage
|
|
7
|
+
|
|
8
|
+
<dl>
|
|
9
|
+
<dd>
|
|
10
|
+
|
|
11
|
+
<dl>
|
|
12
|
+
<dd>
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
client.get_credit_ledger
|
|
16
|
+
```
|
|
17
|
+
</dd>
|
|
18
|
+
</dl>
|
|
19
|
+
</dd>
|
|
20
|
+
</dl>
|
|
21
|
+
|
|
22
|
+
#### ⚙️ Parameters
|
|
23
|
+
|
|
24
|
+
<dl>
|
|
25
|
+
<dd>
|
|
26
|
+
|
|
27
|
+
<dl>
|
|
28
|
+
<dd>
|
|
29
|
+
|
|
30
|
+
**request_options:** `Schematic::RequestOptions`
|
|
31
|
+
|
|
32
|
+
</dd>
|
|
33
|
+
</dl>
|
|
34
|
+
</dd>
|
|
35
|
+
</dl>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</dd>
|
|
39
|
+
</dl>
|
|
40
|
+
</details>
|
|
41
|
+
|
|
2
42
|
## accounts
|
|
3
43
|
<details><summary><code>client.accounts.<a href="/lib/schematic/accounts/client.rb">list_account_members</a>() -> Schematic::Accounts::Types::ListAccountMembersResponse</code></summary>
|
|
4
44
|
<dl>
|
|
@@ -1406,6 +1446,102 @@ client.billing.upsert_billing_coupon(
|
|
|
1406
1446
|
</dl>
|
|
1407
1447
|
|
|
1408
1448
|
|
|
1449
|
+
</dd>
|
|
1450
|
+
</dl>
|
|
1451
|
+
</details>
|
|
1452
|
+
|
|
1453
|
+
<details><summary><code>client.billing.<a href="/lib/schematic/billing/client.rb">delete_billing_coupon</a>(billing_id) -> Schematic::Billing::Types::DeleteBillingCouponResponse</code></summary>
|
|
1454
|
+
<dl>
|
|
1455
|
+
<dd>
|
|
1456
|
+
|
|
1457
|
+
#### 🔌 Usage
|
|
1458
|
+
|
|
1459
|
+
<dl>
|
|
1460
|
+
<dd>
|
|
1461
|
+
|
|
1462
|
+
<dl>
|
|
1463
|
+
<dd>
|
|
1464
|
+
|
|
1465
|
+
```ruby
|
|
1466
|
+
client.billing.delete_billing_coupon(billing_id: "billing_id")
|
|
1467
|
+
```
|
|
1468
|
+
</dd>
|
|
1469
|
+
</dl>
|
|
1470
|
+
</dd>
|
|
1471
|
+
</dl>
|
|
1472
|
+
|
|
1473
|
+
#### ⚙️ Parameters
|
|
1474
|
+
|
|
1475
|
+
<dl>
|
|
1476
|
+
<dd>
|
|
1477
|
+
|
|
1478
|
+
<dl>
|
|
1479
|
+
<dd>
|
|
1480
|
+
|
|
1481
|
+
**billing_id:** `String` — billing_id
|
|
1482
|
+
|
|
1483
|
+
</dd>
|
|
1484
|
+
</dl>
|
|
1485
|
+
|
|
1486
|
+
<dl>
|
|
1487
|
+
<dd>
|
|
1488
|
+
|
|
1489
|
+
**request_options:** `Schematic::Billing::RequestOptions`
|
|
1490
|
+
|
|
1491
|
+
</dd>
|
|
1492
|
+
</dl>
|
|
1493
|
+
</dd>
|
|
1494
|
+
</dl>
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
</dd>
|
|
1498
|
+
</dl>
|
|
1499
|
+
</details>
|
|
1500
|
+
|
|
1501
|
+
<details><summary><code>client.billing.<a href="/lib/schematic/billing/client.rb">delete_billing_customer</a>(billing_id) -> Schematic::Billing::Types::DeleteBillingCustomerResponse</code></summary>
|
|
1502
|
+
<dl>
|
|
1503
|
+
<dd>
|
|
1504
|
+
|
|
1505
|
+
#### 🔌 Usage
|
|
1506
|
+
|
|
1507
|
+
<dl>
|
|
1508
|
+
<dd>
|
|
1509
|
+
|
|
1510
|
+
<dl>
|
|
1511
|
+
<dd>
|
|
1512
|
+
|
|
1513
|
+
```ruby
|
|
1514
|
+
client.billing.delete_billing_customer(billing_id: "billing_id")
|
|
1515
|
+
```
|
|
1516
|
+
</dd>
|
|
1517
|
+
</dl>
|
|
1518
|
+
</dd>
|
|
1519
|
+
</dl>
|
|
1520
|
+
|
|
1521
|
+
#### ⚙️ Parameters
|
|
1522
|
+
|
|
1523
|
+
<dl>
|
|
1524
|
+
<dd>
|
|
1525
|
+
|
|
1526
|
+
<dl>
|
|
1527
|
+
<dd>
|
|
1528
|
+
|
|
1529
|
+
**billing_id:** `String` — billing_id
|
|
1530
|
+
|
|
1531
|
+
</dd>
|
|
1532
|
+
</dl>
|
|
1533
|
+
|
|
1534
|
+
<dl>
|
|
1535
|
+
<dd>
|
|
1536
|
+
|
|
1537
|
+
**request_options:** `Schematic::Billing::RequestOptions`
|
|
1538
|
+
|
|
1539
|
+
</dd>
|
|
1540
|
+
</dl>
|
|
1541
|
+
</dd>
|
|
1542
|
+
</dl>
|
|
1543
|
+
|
|
1544
|
+
|
|
1409
1545
|
</dd>
|
|
1410
1546
|
</dl>
|
|
1411
1547
|
</details>
|
|
@@ -1937,6 +2073,54 @@ client.billing.upsert_invoice(
|
|
|
1937
2073
|
</dl>
|
|
1938
2074
|
|
|
1939
2075
|
|
|
2076
|
+
</dd>
|
|
2077
|
+
</dl>
|
|
2078
|
+
</details>
|
|
2079
|
+
|
|
2080
|
+
<details><summary><code>client.billing.<a href="/lib/schematic/billing/client.rb">delete_billing_invoice</a>(billing_id) -> Schematic::Billing::Types::DeleteBillingInvoiceResponse</code></summary>
|
|
2081
|
+
<dl>
|
|
2082
|
+
<dd>
|
|
2083
|
+
|
|
2084
|
+
#### 🔌 Usage
|
|
2085
|
+
|
|
2086
|
+
<dl>
|
|
2087
|
+
<dd>
|
|
2088
|
+
|
|
2089
|
+
<dl>
|
|
2090
|
+
<dd>
|
|
2091
|
+
|
|
2092
|
+
```ruby
|
|
2093
|
+
client.billing.delete_billing_invoice(billing_id: "billing_id")
|
|
2094
|
+
```
|
|
2095
|
+
</dd>
|
|
2096
|
+
</dl>
|
|
2097
|
+
</dd>
|
|
2098
|
+
</dl>
|
|
2099
|
+
|
|
2100
|
+
#### ⚙️ Parameters
|
|
2101
|
+
|
|
2102
|
+
<dl>
|
|
2103
|
+
<dd>
|
|
2104
|
+
|
|
2105
|
+
<dl>
|
|
2106
|
+
<dd>
|
|
2107
|
+
|
|
2108
|
+
**billing_id:** `String` — billing_id
|
|
2109
|
+
|
|
2110
|
+
</dd>
|
|
2111
|
+
</dl>
|
|
2112
|
+
|
|
2113
|
+
<dl>
|
|
2114
|
+
<dd>
|
|
2115
|
+
|
|
2116
|
+
**request_options:** `Schematic::Billing::RequestOptions`
|
|
2117
|
+
|
|
2118
|
+
</dd>
|
|
2119
|
+
</dl>
|
|
2120
|
+
</dd>
|
|
2121
|
+
</dl>
|
|
2122
|
+
|
|
2123
|
+
|
|
1940
2124
|
</dd>
|
|
1941
2125
|
</dl>
|
|
1942
2126
|
</details>
|
|
@@ -2379,6 +2563,7 @@ client.billing.list_billing_prices(
|
|
|
2379
2563
|
ids: ["ids"],
|
|
2380
2564
|
interval: "interval",
|
|
2381
2565
|
is_active: true,
|
|
2566
|
+
plan_version_id: "plan_version_id",
|
|
2382
2567
|
price: 1000000,
|
|
2383
2568
|
product_id: "product_id",
|
|
2384
2569
|
product_ids: ["product_ids"],
|
|
@@ -2452,6 +2637,14 @@ client.billing.list_billing_prices(
|
|
|
2452
2637
|
<dl>
|
|
2453
2638
|
<dd>
|
|
2454
2639
|
|
|
2640
|
+
**plan_version_id:** `String` — Filter for prices belonging to a specific plan version (e.g. the latest published version)
|
|
2641
|
+
|
|
2642
|
+
</dd>
|
|
2643
|
+
</dl>
|
|
2644
|
+
|
|
2645
|
+
<dl>
|
|
2646
|
+
<dd>
|
|
2647
|
+
|
|
2455
2648
|
**price:** `Integer`
|
|
2456
2649
|
|
|
2457
2650
|
</dd>
|
|
@@ -2801,6 +2994,7 @@ client.billing.list_billing_product_prices(
|
|
|
2801
2994
|
ids: ["ids"],
|
|
2802
2995
|
interval: "interval",
|
|
2803
2996
|
is_active: true,
|
|
2997
|
+
plan_version_id: "plan_version_id",
|
|
2804
2998
|
price: 1000000,
|
|
2805
2999
|
product_id: "product_id",
|
|
2806
3000
|
product_ids: ["product_ids"],
|
|
@@ -2874,6 +3068,14 @@ client.billing.list_billing_product_prices(
|
|
|
2874
3068
|
<dl>
|
|
2875
3069
|
<dd>
|
|
2876
3070
|
|
|
3071
|
+
**plan_version_id:** `String` — Filter for prices belonging to a specific plan version (e.g. the latest published version)
|
|
3072
|
+
|
|
3073
|
+
</dd>
|
|
3074
|
+
</dl>
|
|
3075
|
+
|
|
3076
|
+
<dl>
|
|
3077
|
+
<dd>
|
|
3078
|
+
|
|
2877
3079
|
**price:** `Integer`
|
|
2878
3080
|
|
|
2879
3081
|
</dd>
|
|
@@ -5186,232 +5388,12 @@ client.credits.count_billing_credits_grants(
|
|
|
5186
5388
|
**credit_id:** `String`
|
|
5187
5389
|
|
|
5188
5390
|
</dd>
|
|
5189
|
-
</dl>
|
|
5190
|
-
|
|
5191
|
-
<dl>
|
|
5192
|
-
<dd>
|
|
5193
|
-
|
|
5194
|
-
**ids:** `String`
|
|
5195
|
-
|
|
5196
|
-
</dd>
|
|
5197
|
-
</dl>
|
|
5198
|
-
|
|
5199
|
-
<dl>
|
|
5200
|
-
<dd>
|
|
5201
|
-
|
|
5202
|
-
**limit:** `Integer` — Page limit (default 100)
|
|
5203
|
-
|
|
5204
|
-
</dd>
|
|
5205
|
-
</dl>
|
|
5206
|
-
|
|
5207
|
-
<dl>
|
|
5208
|
-
<dd>
|
|
5209
|
-
|
|
5210
|
-
**offset:** `Integer` — Page offset (default 0)
|
|
5211
|
-
|
|
5212
|
-
</dd>
|
|
5213
|
-
</dl>
|
|
5214
|
-
|
|
5215
|
-
<dl>
|
|
5216
|
-
<dd>
|
|
5217
|
-
|
|
5218
|
-
**request_options:** `Schematic::Credits::RequestOptions`
|
|
5219
|
-
|
|
5220
|
-
</dd>
|
|
5221
|
-
</dl>
|
|
5222
|
-
</dd>
|
|
5223
|
-
</dl>
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
</dd>
|
|
5227
|
-
</dl>
|
|
5228
|
-
</details>
|
|
5229
|
-
|
|
5230
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">list_grants_for_credit</a>() -> Schematic::Credits::Types::ListGrantsForCreditResponse</code></summary>
|
|
5231
|
-
<dl>
|
|
5232
|
-
<dd>
|
|
5233
|
-
|
|
5234
|
-
#### 🔌 Usage
|
|
5235
|
-
|
|
5236
|
-
<dl>
|
|
5237
|
-
<dd>
|
|
5238
|
-
|
|
5239
|
-
<dl>
|
|
5240
|
-
<dd>
|
|
5241
|
-
|
|
5242
|
-
```ruby
|
|
5243
|
-
client.credits.list_grants_for_credit(
|
|
5244
|
-
credit_id: "credit_id",
|
|
5245
|
-
ids: ["ids"],
|
|
5246
|
-
limit: 1000000,
|
|
5247
|
-
offset: 1000000
|
|
5248
|
-
)
|
|
5249
|
-
```
|
|
5250
|
-
</dd>
|
|
5251
|
-
</dl>
|
|
5252
|
-
</dd>
|
|
5253
|
-
</dl>
|
|
5254
|
-
|
|
5255
|
-
#### ⚙️ Parameters
|
|
5256
|
-
|
|
5257
|
-
<dl>
|
|
5258
|
-
<dd>
|
|
5259
|
-
|
|
5260
|
-
<dl>
|
|
5261
|
-
<dd>
|
|
5262
|
-
|
|
5263
|
-
**credit_id:** `String`
|
|
5264
|
-
|
|
5265
|
-
</dd>
|
|
5266
|
-
</dl>
|
|
5267
|
-
|
|
5268
|
-
<dl>
|
|
5269
|
-
<dd>
|
|
5270
|
-
|
|
5271
|
-
**ids:** `String`
|
|
5272
|
-
|
|
5273
|
-
</dd>
|
|
5274
|
-
</dl>
|
|
5275
|
-
|
|
5276
|
-
<dl>
|
|
5277
|
-
<dd>
|
|
5278
|
-
|
|
5279
|
-
**limit:** `Integer` — Page limit (default 100)
|
|
5280
|
-
|
|
5281
|
-
</dd>
|
|
5282
|
-
</dl>
|
|
5283
|
-
|
|
5284
|
-
<dl>
|
|
5285
|
-
<dd>
|
|
5286
|
-
|
|
5287
|
-
**offset:** `Integer` — Page offset (default 0)
|
|
5288
|
-
|
|
5289
|
-
</dd>
|
|
5290
|
-
</dl>
|
|
5291
|
-
|
|
5292
|
-
<dl>
|
|
5293
|
-
<dd>
|
|
5294
|
-
|
|
5295
|
-
**request_options:** `Schematic::Credits::RequestOptions`
|
|
5296
|
-
|
|
5297
|
-
</dd>
|
|
5298
|
-
</dl>
|
|
5299
|
-
</dd>
|
|
5300
|
-
</dl>
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
</dd>
|
|
5304
|
-
</dl>
|
|
5305
|
-
</details>
|
|
5306
|
-
|
|
5307
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">acquire_credit_lease</a>(request) -> Schematic::Credits::Types::AcquireCreditLeaseResponse</code></summary>
|
|
5308
|
-
<dl>
|
|
5309
|
-
<dd>
|
|
5310
|
-
|
|
5311
|
-
#### 🔌 Usage
|
|
5312
|
-
|
|
5313
|
-
<dl>
|
|
5314
|
-
<dd>
|
|
5315
|
-
|
|
5316
|
-
<dl>
|
|
5317
|
-
<dd>
|
|
5318
|
-
|
|
5319
|
-
```ruby
|
|
5320
|
-
client.credits.acquire_credit_lease(
|
|
5321
|
-
company_id: "company_id",
|
|
5322
|
-
credit_type_id: "credit_type_id",
|
|
5323
|
-
requested_amount: 1.1
|
|
5324
|
-
)
|
|
5325
|
-
```
|
|
5326
|
-
</dd>
|
|
5327
|
-
</dl>
|
|
5328
|
-
</dd>
|
|
5329
|
-
</dl>
|
|
5330
|
-
|
|
5331
|
-
#### ⚙️ Parameters
|
|
5332
|
-
|
|
5333
|
-
<dl>
|
|
5334
|
-
<dd>
|
|
5335
|
-
|
|
5336
|
-
<dl>
|
|
5337
|
-
<dd>
|
|
5338
|
-
|
|
5339
|
-
**company_id:** `String`
|
|
5340
|
-
|
|
5341
|
-
</dd>
|
|
5342
|
-
</dl>
|
|
5343
|
-
|
|
5344
|
-
<dl>
|
|
5345
|
-
<dd>
|
|
5346
|
-
|
|
5347
|
-
**credit_type_id:** `String`
|
|
5348
|
-
|
|
5349
|
-
</dd>
|
|
5350
|
-
</dl>
|
|
5351
|
-
|
|
5352
|
-
<dl>
|
|
5353
|
-
<dd>
|
|
5354
|
-
|
|
5355
|
-
**expires_at:** `String`
|
|
5356
|
-
|
|
5357
|
-
</dd>
|
|
5358
|
-
</dl>
|
|
5359
|
-
|
|
5360
|
-
<dl>
|
|
5361
|
-
<dd>
|
|
5362
|
-
|
|
5363
|
-
**requested_amount:** `Integer`
|
|
5364
|
-
|
|
5365
|
-
</dd>
|
|
5366
|
-
</dl>
|
|
5367
|
-
|
|
5368
|
-
<dl>
|
|
5369
|
-
<dd>
|
|
5370
|
-
|
|
5371
|
-
**request_options:** `Schematic::Credits::RequestOptions`
|
|
5372
|
-
|
|
5373
|
-
</dd>
|
|
5374
|
-
</dl>
|
|
5375
|
-
</dd>
|
|
5376
|
-
</dl>
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
</dd>
|
|
5380
|
-
</dl>
|
|
5381
|
-
</details>
|
|
5382
|
-
|
|
5383
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">extend_credit_lease</a>(lease_id, request) -> Schematic::Credits::Types::ExtendCreditLeaseResponse</code></summary>
|
|
5384
|
-
<dl>
|
|
5385
|
-
<dd>
|
|
5386
|
-
|
|
5387
|
-
#### 🔌 Usage
|
|
5388
|
-
|
|
5389
|
-
<dl>
|
|
5390
|
-
<dd>
|
|
5391
|
-
|
|
5392
|
-
<dl>
|
|
5393
|
-
<dd>
|
|
5394
|
-
|
|
5395
|
-
```ruby
|
|
5396
|
-
client.credits.extend_credit_lease(
|
|
5397
|
-
lease_id: "lease_id",
|
|
5398
|
-
additional_amount: 1.1
|
|
5399
|
-
)
|
|
5400
|
-
```
|
|
5401
|
-
</dd>
|
|
5402
|
-
</dl>
|
|
5403
|
-
</dd>
|
|
5404
|
-
</dl>
|
|
5405
|
-
|
|
5406
|
-
#### ⚙️ Parameters
|
|
5407
|
-
|
|
5408
|
-
<dl>
|
|
5409
|
-
<dd>
|
|
5391
|
+
</dl>
|
|
5410
5392
|
|
|
5411
5393
|
<dl>
|
|
5412
5394
|
<dd>
|
|
5413
5395
|
|
|
5414
|
-
**
|
|
5396
|
+
**ids:** `String`
|
|
5415
5397
|
|
|
5416
5398
|
</dd>
|
|
5417
5399
|
</dl>
|
|
@@ -5419,7 +5401,7 @@ client.credits.extend_credit_lease(
|
|
|
5419
5401
|
<dl>
|
|
5420
5402
|
<dd>
|
|
5421
5403
|
|
|
5422
|
-
**
|
|
5404
|
+
**limit:** `Integer` — Page limit (default 100)
|
|
5423
5405
|
|
|
5424
5406
|
</dd>
|
|
5425
5407
|
</dl>
|
|
@@ -5427,7 +5409,7 @@ client.credits.extend_credit_lease(
|
|
|
5427
5409
|
<dl>
|
|
5428
5410
|
<dd>
|
|
5429
5411
|
|
|
5430
|
-
**
|
|
5412
|
+
**offset:** `Integer` — Page offset (default 0)
|
|
5431
5413
|
|
|
5432
5414
|
</dd>
|
|
5433
5415
|
</dl>
|
|
@@ -5447,7 +5429,7 @@ client.credits.extend_credit_lease(
|
|
|
5447
5429
|
</dl>
|
|
5448
5430
|
</details>
|
|
5449
5431
|
|
|
5450
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">
|
|
5432
|
+
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">list_grants_for_credit</a>() -> Schematic::Credits::Types::ListGrantsForCreditResponse</code></summary>
|
|
5451
5433
|
<dl>
|
|
5452
5434
|
<dd>
|
|
5453
5435
|
|
|
@@ -5460,9 +5442,11 @@ client.credits.extend_credit_lease(
|
|
|
5460
5442
|
<dd>
|
|
5461
5443
|
|
|
5462
5444
|
```ruby
|
|
5463
|
-
client.credits.
|
|
5464
|
-
|
|
5465
|
-
|
|
5445
|
+
client.credits.list_grants_for_credit(
|
|
5446
|
+
credit_id: "credit_id",
|
|
5447
|
+
ids: ["ids"],
|
|
5448
|
+
limit: 1000000,
|
|
5449
|
+
offset: 1000000
|
|
5466
5450
|
)
|
|
5467
5451
|
```
|
|
5468
5452
|
</dd>
|
|
@@ -5478,7 +5462,7 @@ client.credits.release_credit_lease(
|
|
|
5478
5462
|
<dl>
|
|
5479
5463
|
<dd>
|
|
5480
5464
|
|
|
5481
|
-
**
|
|
5465
|
+
**credit_id:** `String`
|
|
5482
5466
|
|
|
5483
5467
|
</dd>
|
|
5484
5468
|
</dl>
|
|
@@ -5486,7 +5470,23 @@ client.credits.release_credit_lease(
|
|
|
5486
5470
|
<dl>
|
|
5487
5471
|
<dd>
|
|
5488
5472
|
|
|
5489
|
-
**
|
|
5473
|
+
**ids:** `String`
|
|
5474
|
+
|
|
5475
|
+
</dd>
|
|
5476
|
+
</dl>
|
|
5477
|
+
|
|
5478
|
+
<dl>
|
|
5479
|
+
<dd>
|
|
5480
|
+
|
|
5481
|
+
**limit:** `Integer` — Page limit (default 100)
|
|
5482
|
+
|
|
5483
|
+
</dd>
|
|
5484
|
+
</dl>
|
|
5485
|
+
|
|
5486
|
+
<dl>
|
|
5487
|
+
<dd>
|
|
5488
|
+
|
|
5489
|
+
**offset:** `Integer` — Page offset (default 0)
|
|
5490
5490
|
|
|
5491
5491
|
</dd>
|
|
5492
5492
|
</dl>
|
|
@@ -5506,7 +5506,7 @@ client.credits.release_credit_lease(
|
|
|
5506
5506
|
</dl>
|
|
5507
5507
|
</details>
|
|
5508
5508
|
|
|
5509
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">
|
|
5509
|
+
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">acquire_credit_lease</a>(request) -> Schematic::Credits::Types::AcquireCreditLeaseResponse</code></summary>
|
|
5510
5510
|
<dl>
|
|
5511
5511
|
<dd>
|
|
5512
5512
|
|
|
@@ -5519,15 +5519,10 @@ client.credits.release_credit_lease(
|
|
|
5519
5519
|
<dd>
|
|
5520
5520
|
|
|
5521
5521
|
```ruby
|
|
5522
|
-
client.credits.
|
|
5522
|
+
client.credits.acquire_credit_lease(
|
|
5523
5523
|
company_id: "company_id",
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
period: "daily",
|
|
5527
|
-
start_time: "start_time",
|
|
5528
|
-
end_time: "end_time",
|
|
5529
|
-
limit: 1000000,
|
|
5530
|
-
offset: 1000000
|
|
5524
|
+
credit_type_id: "credit_type_id",
|
|
5525
|
+
requested_amount: 1.1
|
|
5531
5526
|
)
|
|
5532
5527
|
```
|
|
5533
5528
|
</dd>
|
|
@@ -5551,39 +5546,7 @@ client.credits.get_enriched_credit_ledger(
|
|
|
5551
5546
|
<dl>
|
|
5552
5547
|
<dd>
|
|
5553
5548
|
|
|
5554
|
-
**
|
|
5555
|
-
|
|
5556
|
-
</dd>
|
|
5557
|
-
</dl>
|
|
5558
|
-
|
|
5559
|
-
<dl>
|
|
5560
|
-
<dd>
|
|
5561
|
-
|
|
5562
|
-
**feature_id:** `String`
|
|
5563
|
-
|
|
5564
|
-
</dd>
|
|
5565
|
-
</dl>
|
|
5566
|
-
|
|
5567
|
-
<dl>
|
|
5568
|
-
<dd>
|
|
5569
|
-
|
|
5570
|
-
**period:** `Schematic::Types::CreditLedgerPeriod`
|
|
5571
|
-
|
|
5572
|
-
</dd>
|
|
5573
|
-
</dl>
|
|
5574
|
-
|
|
5575
|
-
<dl>
|
|
5576
|
-
<dd>
|
|
5577
|
-
|
|
5578
|
-
**start_time:** `String`
|
|
5579
|
-
|
|
5580
|
-
</dd>
|
|
5581
|
-
</dl>
|
|
5582
|
-
|
|
5583
|
-
<dl>
|
|
5584
|
-
<dd>
|
|
5585
|
-
|
|
5586
|
-
**end_time:** `String`
|
|
5549
|
+
**credit_type_id:** `String`
|
|
5587
5550
|
|
|
5588
5551
|
</dd>
|
|
5589
5552
|
</dl>
|
|
@@ -5591,7 +5554,7 @@ client.credits.get_enriched_credit_ledger(
|
|
|
5591
5554
|
<dl>
|
|
5592
5555
|
<dd>
|
|
5593
5556
|
|
|
5594
|
-
**
|
|
5557
|
+
**expires_at:** `String`
|
|
5595
5558
|
|
|
5596
5559
|
</dd>
|
|
5597
5560
|
</dl>
|
|
@@ -5599,7 +5562,7 @@ client.credits.get_enriched_credit_ledger(
|
|
|
5599
5562
|
<dl>
|
|
5600
5563
|
<dd>
|
|
5601
5564
|
|
|
5602
|
-
**
|
|
5565
|
+
**requested_amount:** `Integer`
|
|
5603
5566
|
|
|
5604
5567
|
</dd>
|
|
5605
5568
|
</dl>
|
|
@@ -5619,7 +5582,7 @@ client.credits.get_enriched_credit_ledger(
|
|
|
5619
5582
|
</dl>
|
|
5620
5583
|
</details>
|
|
5621
5584
|
|
|
5622
|
-
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">
|
|
5585
|
+
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">extend_credit_lease</a>(lease_id, request) -> Schematic::Credits::Types::ExtendCreditLeaseResponse</code></summary>
|
|
5623
5586
|
<dl>
|
|
5624
5587
|
<dd>
|
|
5625
5588
|
|
|
@@ -5632,15 +5595,9 @@ client.credits.get_enriched_credit_ledger(
|
|
|
5632
5595
|
<dd>
|
|
5633
5596
|
|
|
5634
5597
|
```ruby
|
|
5635
|
-
client.credits.
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
feature_id: "feature_id",
|
|
5639
|
-
period: "daily",
|
|
5640
|
-
start_time: "start_time",
|
|
5641
|
-
end_time: "end_time",
|
|
5642
|
-
limit: 1000000,
|
|
5643
|
-
offset: 1000000
|
|
5598
|
+
client.credits.extend_credit_lease(
|
|
5599
|
+
lease_id: "lease_id",
|
|
5600
|
+
additional_amount: 1.1
|
|
5644
5601
|
)
|
|
5645
5602
|
```
|
|
5646
5603
|
</dd>
|
|
@@ -5656,7 +5613,7 @@ client.credits.count_credit_ledger(
|
|
|
5656
5613
|
<dl>
|
|
5657
5614
|
<dd>
|
|
5658
5615
|
|
|
5659
|
-
**
|
|
5616
|
+
**lease_id:** `String` — lease_id
|
|
5660
5617
|
|
|
5661
5618
|
</dd>
|
|
5662
5619
|
</dl>
|
|
@@ -5664,7 +5621,7 @@ client.credits.count_credit_ledger(
|
|
|
5664
5621
|
<dl>
|
|
5665
5622
|
<dd>
|
|
5666
5623
|
|
|
5667
|
-
**
|
|
5624
|
+
**additional_amount:** `Integer`
|
|
5668
5625
|
|
|
5669
5626
|
</dd>
|
|
5670
5627
|
</dl>
|
|
@@ -5672,7 +5629,7 @@ client.credits.count_credit_ledger(
|
|
|
5672
5629
|
<dl>
|
|
5673
5630
|
<dd>
|
|
5674
5631
|
|
|
5675
|
-
**
|
|
5632
|
+
**expires_at:** `String`
|
|
5676
5633
|
|
|
5677
5634
|
</dd>
|
|
5678
5635
|
</dl>
|
|
@@ -5680,31 +5637,50 @@ client.credits.count_credit_ledger(
|
|
|
5680
5637
|
<dl>
|
|
5681
5638
|
<dd>
|
|
5682
5639
|
|
|
5683
|
-
**
|
|
5640
|
+
**request_options:** `Schematic::Credits::RequestOptions`
|
|
5684
5641
|
|
|
5685
5642
|
</dd>
|
|
5686
5643
|
</dl>
|
|
5644
|
+
</dd>
|
|
5645
|
+
</dl>
|
|
5687
5646
|
|
|
5688
|
-
<dl>
|
|
5689
|
-
<dd>
|
|
5690
5647
|
|
|
5691
|
-
**start_time:** `String`
|
|
5692
|
-
|
|
5693
5648
|
</dd>
|
|
5694
5649
|
</dl>
|
|
5650
|
+
</details>
|
|
5695
5651
|
|
|
5652
|
+
<details><summary><code>client.credits.<a href="/lib/schematic/credits/client.rb">release_credit_lease</a>(lease_id, request) -> Schematic::Credits::Types::ReleaseCreditLeaseResponse</code></summary>
|
|
5696
5653
|
<dl>
|
|
5697
5654
|
<dd>
|
|
5698
5655
|
|
|
5699
|
-
|
|
5700
|
-
|
|
5656
|
+
#### 🔌 Usage
|
|
5657
|
+
|
|
5658
|
+
<dl>
|
|
5659
|
+
<dd>
|
|
5660
|
+
|
|
5661
|
+
<dl>
|
|
5662
|
+
<dd>
|
|
5663
|
+
|
|
5664
|
+
```ruby
|
|
5665
|
+
client.credits.release_credit_lease(
|
|
5666
|
+
lease_id: "lease_id",
|
|
5667
|
+
request: {}
|
|
5668
|
+
)
|
|
5669
|
+
```
|
|
5670
|
+
</dd>
|
|
5671
|
+
</dl>
|
|
5701
5672
|
</dd>
|
|
5702
5673
|
</dl>
|
|
5703
5674
|
|
|
5675
|
+
#### ⚙️ Parameters
|
|
5676
|
+
|
|
5704
5677
|
<dl>
|
|
5705
5678
|
<dd>
|
|
5706
5679
|
|
|
5707
|
-
|
|
5680
|
+
<dl>
|
|
5681
|
+
<dd>
|
|
5682
|
+
|
|
5683
|
+
**lease_id:** `String` — lease_id
|
|
5708
5684
|
|
|
5709
5685
|
</dd>
|
|
5710
5686
|
</dl>
|
|
@@ -5712,7 +5688,7 @@ client.credits.count_credit_ledger(
|
|
|
5712
5688
|
<dl>
|
|
5713
5689
|
<dd>
|
|
5714
5690
|
|
|
5715
|
-
**
|
|
5691
|
+
**request:** `Internal::Types::Hash[String, Object]`
|
|
5716
5692
|
|
|
5717
5693
|
</dd>
|
|
5718
5694
|
</dl>
|
|
@@ -12490,11 +12466,7 @@ client.plans.mark_custom_plan_billing_paid(
|
|
|
12490
12466
|
```ruby
|
|
12491
12467
|
client.plans.retry_custom_plan_billing(
|
|
12492
12468
|
custom_plan_billing_id: "custom_plan_billing_id",
|
|
12493
|
-
customer_email: "customer_email"
|
|
12494
|
-
pay_in_advance: [{
|
|
12495
|
-
price_id: "price_id",
|
|
12496
|
-
quantity: 1000000
|
|
12497
|
-
}]
|
|
12469
|
+
customer_email: "customer_email"
|
|
12498
12470
|
)
|
|
12499
12471
|
```
|
|
12500
12472
|
</dd>
|
|
@@ -12542,14 +12514,6 @@ client.plans.retry_custom_plan_billing(
|
|
|
12542
12514
|
<dl>
|
|
12543
12515
|
<dd>
|
|
12544
12516
|
|
|
12545
|
-
**pay_in_advance:** `Internal::Types::Array[Schematic::Types::UpdatePayInAdvanceRequestBody]`
|
|
12546
|
-
|
|
12547
|
-
</dd>
|
|
12548
|
-
</dl>
|
|
12549
|
-
|
|
12550
|
-
<dl>
|
|
12551
|
-
<dd>
|
|
12552
|
-
|
|
12553
12517
|
**request_options:** `Schematic::Plans::RequestOptions`
|
|
12554
12518
|
|
|
12555
12519
|
</dd>
|
|
@@ -13702,11 +13666,7 @@ client.plans.delete_plan_version(
|
|
|
13702
13666
|
client.plans.publish_plan_version(
|
|
13703
13667
|
plan_id: "plan_id",
|
|
13704
13668
|
excluded_company_ids: ["excluded_company_ids"],
|
|
13705
|
-
migration_strategy: "immediate"
|
|
13706
|
-
pay_in_advance: [{
|
|
13707
|
-
price_id: "price_id",
|
|
13708
|
-
quantity: 1000000
|
|
13709
|
-
}]
|
|
13669
|
+
migration_strategy: "immediate"
|
|
13710
13670
|
)
|
|
13711
13671
|
```
|
|
13712
13672
|
</dd>
|
|
@@ -13770,14 +13730,6 @@ client.plans.publish_plan_version(
|
|
|
13770
13730
|
<dl>
|
|
13771
13731
|
<dd>
|
|
13772
13732
|
|
|
13773
|
-
**pay_in_advance:** `Internal::Types::Array[Schematic::Types::UpdatePayInAdvanceRequestBody]`
|
|
13774
|
-
|
|
13775
|
-
</dd>
|
|
13776
|
-
</dl>
|
|
13777
|
-
|
|
13778
|
-
<dl>
|
|
13779
|
-
<dd>
|
|
13780
|
-
|
|
13781
13733
|
**request_options:** `Schematic::Plans::RequestOptions`
|
|
13782
13734
|
|
|
13783
13735
|
</dd>
|
|
@@ -17286,6 +17238,7 @@ client.plangroups.create_plan_group(
|
|
|
17286
17238
|
checkout_collect_email: true,
|
|
17287
17239
|
checkout_collect_phone: true,
|
|
17288
17240
|
enable_tax_collection: true,
|
|
17241
|
+
opt_in_enabled: true,
|
|
17289
17242
|
ordered_add_ons: [{
|
|
17290
17243
|
plan_id: "plan_id"
|
|
17291
17244
|
}],
|
|
@@ -17416,6 +17369,30 @@ client.plangroups.create_plan_group(
|
|
|
17416
17369
|
<dl>
|
|
17417
17370
|
<dd>
|
|
17418
17371
|
|
|
17372
|
+
**opt_in_enabled:** `Internal::Types::Boolean`
|
|
17373
|
+
|
|
17374
|
+
</dd>
|
|
17375
|
+
</dl>
|
|
17376
|
+
|
|
17377
|
+
<dl>
|
|
17378
|
+
<dd>
|
|
17379
|
+
|
|
17380
|
+
**opt_in_text:** `String`
|
|
17381
|
+
|
|
17382
|
+
</dd>
|
|
17383
|
+
</dl>
|
|
17384
|
+
|
|
17385
|
+
<dl>
|
|
17386
|
+
<dd>
|
|
17387
|
+
|
|
17388
|
+
**opt_in_title:** `String`
|
|
17389
|
+
|
|
17390
|
+
</dd>
|
|
17391
|
+
</dl>
|
|
17392
|
+
|
|
17393
|
+
<dl>
|
|
17394
|
+
<dd>
|
|
17395
|
+
|
|
17419
17396
|
**ordered_add_ons:** `Internal::Types::Array[Schematic::Types::OrderedPlansInGroup]`
|
|
17420
17397
|
|
|
17421
17398
|
</dd>
|
|
@@ -17616,6 +17593,7 @@ client.plangroups.update_plan_group(
|
|
|
17616
17593
|
checkout_collect_email: true,
|
|
17617
17594
|
checkout_collect_phone: true,
|
|
17618
17595
|
enable_tax_collection: true,
|
|
17596
|
+
opt_in_enabled: true,
|
|
17619
17597
|
ordered_add_ons: [{
|
|
17620
17598
|
plan_id: "plan_id"
|
|
17621
17599
|
}],
|
|
@@ -17754,6 +17732,30 @@ client.plangroups.update_plan_group(
|
|
|
17754
17732
|
<dl>
|
|
17755
17733
|
<dd>
|
|
17756
17734
|
|
|
17735
|
+
**opt_in_enabled:** `Internal::Types::Boolean`
|
|
17736
|
+
|
|
17737
|
+
</dd>
|
|
17738
|
+
</dl>
|
|
17739
|
+
|
|
17740
|
+
<dl>
|
|
17741
|
+
<dd>
|
|
17742
|
+
|
|
17743
|
+
**opt_in_text:** `String`
|
|
17744
|
+
|
|
17745
|
+
</dd>
|
|
17746
|
+
</dl>
|
|
17747
|
+
|
|
17748
|
+
<dl>
|
|
17749
|
+
<dd>
|
|
17750
|
+
|
|
17751
|
+
**opt_in_title:** `String`
|
|
17752
|
+
|
|
17753
|
+
</dd>
|
|
17754
|
+
</dl>
|
|
17755
|
+
|
|
17756
|
+
<dl>
|
|
17757
|
+
<dd>
|
|
17758
|
+
|
|
17757
17759
|
**ordered_add_ons:** `Internal::Types::Array[Schematic::Types::OrderedPlansInGroup]`
|
|
17758
17760
|
|
|
17759
17761
|
</dd>
|
|
@@ -19451,6 +19453,65 @@ client.webhooks.delete_webhook(webhook_id: "webhook_id")
|
|
|
19451
19453
|
</dl>
|
|
19452
19454
|
|
|
19453
19455
|
|
|
19456
|
+
</dd>
|
|
19457
|
+
</dl>
|
|
19458
|
+
</details>
|
|
19459
|
+
|
|
19460
|
+
<details><summary><code>client.webhooks.<a href="/lib/schematic/webhooks/client.rb">send_test_webhook_action</a>(webhook_id, request) -> Schematic::Webhooks::Types::SendTestWebhookActionResponse</code></summary>
|
|
19461
|
+
<dl>
|
|
19462
|
+
<dd>
|
|
19463
|
+
|
|
19464
|
+
#### 🔌 Usage
|
|
19465
|
+
|
|
19466
|
+
<dl>
|
|
19467
|
+
<dd>
|
|
19468
|
+
|
|
19469
|
+
<dl>
|
|
19470
|
+
<dd>
|
|
19471
|
+
|
|
19472
|
+
```ruby
|
|
19473
|
+
client.webhooks.send_test_webhook_action(
|
|
19474
|
+
webhook_id: "webhook_id",
|
|
19475
|
+
request_type: "subscription.trial.ended"
|
|
19476
|
+
)
|
|
19477
|
+
```
|
|
19478
|
+
</dd>
|
|
19479
|
+
</dl>
|
|
19480
|
+
</dd>
|
|
19481
|
+
</dl>
|
|
19482
|
+
|
|
19483
|
+
#### ⚙️ Parameters
|
|
19484
|
+
|
|
19485
|
+
<dl>
|
|
19486
|
+
<dd>
|
|
19487
|
+
|
|
19488
|
+
<dl>
|
|
19489
|
+
<dd>
|
|
19490
|
+
|
|
19491
|
+
**webhook_id:** `String` — webhook_id
|
|
19492
|
+
|
|
19493
|
+
</dd>
|
|
19494
|
+
</dl>
|
|
19495
|
+
|
|
19496
|
+
<dl>
|
|
19497
|
+
<dd>
|
|
19498
|
+
|
|
19499
|
+
**request_type:** `Schematic::Types::WebhookRequestType`
|
|
19500
|
+
|
|
19501
|
+
</dd>
|
|
19502
|
+
</dl>
|
|
19503
|
+
|
|
19504
|
+
<dl>
|
|
19505
|
+
<dd>
|
|
19506
|
+
|
|
19507
|
+
**request_options:** `Schematic::Webhooks::RequestOptions`
|
|
19508
|
+
|
|
19509
|
+
</dd>
|
|
19510
|
+
</dl>
|
|
19511
|
+
</dd>
|
|
19512
|
+
</dl>
|
|
19513
|
+
|
|
19514
|
+
|
|
19454
19515
|
</dd>
|
|
19455
19516
|
</dl>
|
|
19456
19517
|
</details>
|