orb-billing 1.29.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/package.json +5 -1
  3. package/resources/customers/credits/ledger.d.ts +142 -66
  4. package/resources/customers/credits/ledger.d.ts.map +1 -1
  5. package/resources/customers/credits/ledger.js.map +1 -1
  6. package/resources/customers/credits/ledger.mjs.map +1 -1
  7. package/resources/customers/customers.d.ts +13 -5
  8. package/resources/customers/customers.d.ts.map +1 -1
  9. package/resources/customers/customers.js.map +1 -1
  10. package/resources/customers/customers.mjs.map +1 -1
  11. package/resources/invoices.d.ts +46 -4
  12. package/resources/invoices.d.ts.map +1 -1
  13. package/resources/invoices.js.map +1 -1
  14. package/resources/invoices.mjs.map +1 -1
  15. package/resources/metrics.d.ts +15 -7
  16. package/resources/metrics.d.ts.map +1 -1
  17. package/resources/metrics.js.map +1 -1
  18. package/resources/metrics.mjs.map +1 -1
  19. package/resources/plans/external-plan-id.d.ts +3 -1
  20. package/resources/plans/external-plan-id.d.ts.map +1 -1
  21. package/resources/plans/external-plan-id.js.map +1 -1
  22. package/resources/plans/external-plan-id.mjs.map +1 -1
  23. package/resources/plans/plans.d.ts +10 -4
  24. package/resources/plans/plans.d.ts.map +1 -1
  25. package/resources/plans/plans.js.map +1 -1
  26. package/resources/plans/plans.mjs.map +1 -1
  27. package/resources/subscriptions.d.ts +7 -3
  28. package/resources/subscriptions.d.ts.map +1 -1
  29. package/resources/subscriptions.js.map +1 -1
  30. package/resources/subscriptions.mjs.map +1 -1
  31. package/src/resources/customers/credits/ledger.ts +142 -66
  32. package/src/resources/customers/customers.ts +13 -5
  33. package/src/resources/invoices.ts +54 -4
  34. package/src/resources/metrics.ts +15 -7
  35. package/src/resources/plans/external-plan-id.ts +3 -1
  36. package/src/resources/plans/plans.ts +10 -4
  37. package/src/resources/subscriptions.ts +7 -3
  38. package/src/version.ts +1 -1
  39. package/version.d.ts +1 -1
  40. package/version.js +1 -1
  41. package/version.mjs +1 -1
@@ -502,8 +502,10 @@ export namespace LedgerListResponse {
502
502
  ledger_sequence_number: number;
503
503
 
504
504
  /**
505
- * User specified key-value pairs. If not provided, this defaults to an empty
506
- * dictionary.
505
+ * User specified key-value pairs for the resource. If not present, this defaults
506
+ * to an empty dictionary. Individual keys can be removed by setting the value to
507
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
508
+ * `null`.
507
509
  */
508
510
  metadata: Record<string, string>;
509
511
 
@@ -548,8 +550,10 @@ export namespace LedgerListResponse {
548
550
  ledger_sequence_number: number;
549
551
 
550
552
  /**
551
- * User specified key-value pairs. If not provided, this defaults to an empty
552
- * dictionary.
553
+ * User specified key-value pairs for the resource. If not present, this defaults
554
+ * to an empty dictionary. Individual keys can be removed by setting the value to
555
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
556
+ * `null`.
553
557
  */
554
558
  metadata: Record<string, string>;
555
559
 
@@ -600,8 +604,10 @@ export namespace LedgerListResponse {
600
604
  ledger_sequence_number: number;
601
605
 
602
606
  /**
603
- * User specified key-value pairs. If not provided, this defaults to an empty
604
- * dictionary.
607
+ * User specified key-value pairs for the resource. If not present, this defaults
608
+ * to an empty dictionary. Individual keys can be removed by setting the value to
609
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
610
+ * `null`.
605
611
  */
606
612
  metadata: Record<string, string>;
607
613
 
@@ -648,8 +654,10 @@ export namespace LedgerListResponse {
648
654
  ledger_sequence_number: number;
649
655
 
650
656
  /**
651
- * User specified key-value pairs. If not provided, this defaults to an empty
652
- * dictionary.
657
+ * User specified key-value pairs for the resource. If not present, this defaults
658
+ * to an empty dictionary. Individual keys can be removed by setting the value to
659
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
660
+ * `null`.
653
661
  */
654
662
  metadata: Record<string, string>;
655
663
 
@@ -694,8 +702,10 @@ export namespace LedgerListResponse {
694
702
  ledger_sequence_number: number;
695
703
 
696
704
  /**
697
- * User specified key-value pairs. If not provided, this defaults to an empty
698
- * dictionary.
705
+ * User specified key-value pairs for the resource. If not present, this defaults
706
+ * to an empty dictionary. Individual keys can be removed by setting the value to
707
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
708
+ * `null`.
699
709
  */
700
710
  metadata: Record<string, string>;
701
711
 
@@ -744,8 +754,10 @@ export namespace LedgerListResponse {
744
754
  ledger_sequence_number: number;
745
755
 
746
756
  /**
747
- * User specified key-value pairs. If not provided, this defaults to an empty
748
- * dictionary.
757
+ * User specified key-value pairs for the resource. If not present, this defaults
758
+ * to an empty dictionary. Individual keys can be removed by setting the value to
759
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
760
+ * `null`.
749
761
  */
750
762
  metadata: Record<string, string>;
751
763
 
@@ -796,8 +808,10 @@ export namespace LedgerListResponse {
796
808
  ledger_sequence_number: number;
797
809
 
798
810
  /**
799
- * User specified key-value pairs. If not provided, this defaults to an empty
800
- * dictionary.
811
+ * User specified key-value pairs for the resource. If not present, this defaults
812
+ * to an empty dictionary. Individual keys can be removed by setting the value to
813
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
814
+ * `null`.
801
815
  */
802
816
  metadata: Record<string, string>;
803
817
 
@@ -857,8 +871,10 @@ export namespace LedgerCreateEntryResponse {
857
871
  ledger_sequence_number: number;
858
872
 
859
873
  /**
860
- * User specified key-value pairs. If not provided, this defaults to an empty
861
- * dictionary.
874
+ * User specified key-value pairs for the resource. If not present, this defaults
875
+ * to an empty dictionary. Individual keys can be removed by setting the value to
876
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
877
+ * `null`.
862
878
  */
863
879
  metadata: Record<string, string>;
864
880
 
@@ -903,8 +919,10 @@ export namespace LedgerCreateEntryResponse {
903
919
  ledger_sequence_number: number;
904
920
 
905
921
  /**
906
- * User specified key-value pairs. If not provided, this defaults to an empty
907
- * dictionary.
922
+ * User specified key-value pairs for the resource. If not present, this defaults
923
+ * to an empty dictionary. Individual keys can be removed by setting the value to
924
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
925
+ * `null`.
908
926
  */
909
927
  metadata: Record<string, string>;
910
928
 
@@ -955,8 +973,10 @@ export namespace LedgerCreateEntryResponse {
955
973
  ledger_sequence_number: number;
956
974
 
957
975
  /**
958
- * User specified key-value pairs. If not provided, this defaults to an empty
959
- * dictionary.
976
+ * User specified key-value pairs for the resource. If not present, this defaults
977
+ * to an empty dictionary. Individual keys can be removed by setting the value to
978
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
979
+ * `null`.
960
980
  */
961
981
  metadata: Record<string, string>;
962
982
 
@@ -1003,8 +1023,10 @@ export namespace LedgerCreateEntryResponse {
1003
1023
  ledger_sequence_number: number;
1004
1024
 
1005
1025
  /**
1006
- * User specified key-value pairs. If not provided, this defaults to an empty
1007
- * dictionary.
1026
+ * User specified key-value pairs for the resource. If not present, this defaults
1027
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1028
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1029
+ * `null`.
1008
1030
  */
1009
1031
  metadata: Record<string, string>;
1010
1032
 
@@ -1049,8 +1071,10 @@ export namespace LedgerCreateEntryResponse {
1049
1071
  ledger_sequence_number: number;
1050
1072
 
1051
1073
  /**
1052
- * User specified key-value pairs. If not provided, this defaults to an empty
1053
- * dictionary.
1074
+ * User specified key-value pairs for the resource. If not present, this defaults
1075
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1076
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1077
+ * `null`.
1054
1078
  */
1055
1079
  metadata: Record<string, string>;
1056
1080
 
@@ -1099,8 +1123,10 @@ export namespace LedgerCreateEntryResponse {
1099
1123
  ledger_sequence_number: number;
1100
1124
 
1101
1125
  /**
1102
- * User specified key-value pairs. If not provided, this defaults to an empty
1103
- * dictionary.
1126
+ * User specified key-value pairs for the resource. If not present, this defaults
1127
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1128
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1129
+ * `null`.
1104
1130
  */
1105
1131
  metadata: Record<string, string>;
1106
1132
 
@@ -1151,8 +1177,10 @@ export namespace LedgerCreateEntryResponse {
1151
1177
  ledger_sequence_number: number;
1152
1178
 
1153
1179
  /**
1154
- * User specified key-value pairs. If not provided, this defaults to an empty
1155
- * dictionary.
1180
+ * User specified key-value pairs for the resource. If not present, this defaults
1181
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1182
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1183
+ * `null`.
1156
1184
  */
1157
1185
  metadata: Record<string, string>;
1158
1186
 
@@ -1212,8 +1240,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1212
1240
  ledger_sequence_number: number;
1213
1241
 
1214
1242
  /**
1215
- * User specified key-value pairs. If not provided, this defaults to an empty
1216
- * dictionary.
1243
+ * User specified key-value pairs for the resource. If not present, this defaults
1244
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1245
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1246
+ * `null`.
1217
1247
  */
1218
1248
  metadata: Record<string, string>;
1219
1249
 
@@ -1258,8 +1288,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1258
1288
  ledger_sequence_number: number;
1259
1289
 
1260
1290
  /**
1261
- * User specified key-value pairs. If not provided, this defaults to an empty
1262
- * dictionary.
1291
+ * User specified key-value pairs for the resource. If not present, this defaults
1292
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1293
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1294
+ * `null`.
1263
1295
  */
1264
1296
  metadata: Record<string, string>;
1265
1297
 
@@ -1310,8 +1342,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1310
1342
  ledger_sequence_number: number;
1311
1343
 
1312
1344
  /**
1313
- * User specified key-value pairs. If not provided, this defaults to an empty
1314
- * dictionary.
1345
+ * User specified key-value pairs for the resource. If not present, this defaults
1346
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1347
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1348
+ * `null`.
1315
1349
  */
1316
1350
  metadata: Record<string, string>;
1317
1351
 
@@ -1358,8 +1392,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1358
1392
  ledger_sequence_number: number;
1359
1393
 
1360
1394
  /**
1361
- * User specified key-value pairs. If not provided, this defaults to an empty
1362
- * dictionary.
1395
+ * User specified key-value pairs for the resource. If not present, this defaults
1396
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1397
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1398
+ * `null`.
1363
1399
  */
1364
1400
  metadata: Record<string, string>;
1365
1401
 
@@ -1404,8 +1440,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1404
1440
  ledger_sequence_number: number;
1405
1441
 
1406
1442
  /**
1407
- * User specified key-value pairs. If not provided, this defaults to an empty
1408
- * dictionary.
1443
+ * User specified key-value pairs for the resource. If not present, this defaults
1444
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1445
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1446
+ * `null`.
1409
1447
  */
1410
1448
  metadata: Record<string, string>;
1411
1449
 
@@ -1454,8 +1492,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1454
1492
  ledger_sequence_number: number;
1455
1493
 
1456
1494
  /**
1457
- * User specified key-value pairs. If not provided, this defaults to an empty
1458
- * dictionary.
1495
+ * User specified key-value pairs for the resource. If not present, this defaults
1496
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1497
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1498
+ * `null`.
1459
1499
  */
1460
1500
  metadata: Record<string, string>;
1461
1501
 
@@ -1506,8 +1546,10 @@ export namespace LedgerCreateEntryByExternalIDResponse {
1506
1546
  ledger_sequence_number: number;
1507
1547
 
1508
1548
  /**
1509
- * User specified key-value pairs. If not provided, this defaults to an empty
1510
- * dictionary.
1549
+ * User specified key-value pairs for the resource. If not present, this defaults
1550
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1551
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1552
+ * `null`.
1511
1553
  */
1512
1554
  metadata: Record<string, string>;
1513
1555
 
@@ -1567,8 +1609,10 @@ export namespace LedgerListByExternalIDResponse {
1567
1609
  ledger_sequence_number: number;
1568
1610
 
1569
1611
  /**
1570
- * User specified key-value pairs. If not provided, this defaults to an empty
1571
- * dictionary.
1612
+ * User specified key-value pairs for the resource. If not present, this defaults
1613
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1614
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1615
+ * `null`.
1572
1616
  */
1573
1617
  metadata: Record<string, string>;
1574
1618
 
@@ -1613,8 +1657,10 @@ export namespace LedgerListByExternalIDResponse {
1613
1657
  ledger_sequence_number: number;
1614
1658
 
1615
1659
  /**
1616
- * User specified key-value pairs. If not provided, this defaults to an empty
1617
- * dictionary.
1660
+ * User specified key-value pairs for the resource. If not present, this defaults
1661
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1662
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1663
+ * `null`.
1618
1664
  */
1619
1665
  metadata: Record<string, string>;
1620
1666
 
@@ -1665,8 +1711,10 @@ export namespace LedgerListByExternalIDResponse {
1665
1711
  ledger_sequence_number: number;
1666
1712
 
1667
1713
  /**
1668
- * User specified key-value pairs. If not provided, this defaults to an empty
1669
- * dictionary.
1714
+ * User specified key-value pairs for the resource. If not present, this defaults
1715
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1716
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1717
+ * `null`.
1670
1718
  */
1671
1719
  metadata: Record<string, string>;
1672
1720
 
@@ -1713,8 +1761,10 @@ export namespace LedgerListByExternalIDResponse {
1713
1761
  ledger_sequence_number: number;
1714
1762
 
1715
1763
  /**
1716
- * User specified key-value pairs. If not provided, this defaults to an empty
1717
- * dictionary.
1764
+ * User specified key-value pairs for the resource. If not present, this defaults
1765
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1766
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1767
+ * `null`.
1718
1768
  */
1719
1769
  metadata: Record<string, string>;
1720
1770
 
@@ -1759,8 +1809,10 @@ export namespace LedgerListByExternalIDResponse {
1759
1809
  ledger_sequence_number: number;
1760
1810
 
1761
1811
  /**
1762
- * User specified key-value pairs. If not provided, this defaults to an empty
1763
- * dictionary.
1812
+ * User specified key-value pairs for the resource. If not present, this defaults
1813
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1814
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1815
+ * `null`.
1764
1816
  */
1765
1817
  metadata: Record<string, string>;
1766
1818
 
@@ -1809,8 +1861,10 @@ export namespace LedgerListByExternalIDResponse {
1809
1861
  ledger_sequence_number: number;
1810
1862
 
1811
1863
  /**
1812
- * User specified key-value pairs. If not provided, this defaults to an empty
1813
- * dictionary.
1864
+ * User specified key-value pairs for the resource. If not present, this defaults
1865
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1866
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1867
+ * `null`.
1814
1868
  */
1815
1869
  metadata: Record<string, string>;
1816
1870
 
@@ -1861,8 +1915,10 @@ export namespace LedgerListByExternalIDResponse {
1861
1915
  ledger_sequence_number: number;
1862
1916
 
1863
1917
  /**
1864
- * User specified key-value pairs. If not provided, this defaults to an empty
1865
- * dictionary.
1918
+ * User specified key-value pairs for the resource. If not present, this defaults
1919
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1920
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1921
+ * `null`.
1866
1922
  */
1867
1923
  metadata: Record<string, string>;
1868
1924
 
@@ -1957,7 +2013,9 @@ export namespace LedgerCreateEntryParams {
1957
2013
  invoice_settings?: LedgerCreateEntryParams.AddIncrementCreditLedgerEntryRequestParams.InvoiceSettings | null;
1958
2014
 
1959
2015
  /**
1960
- * User-specified key/value pairs for the resource.
2016
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2017
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2018
+ * by setting `metadata` to `null`.
1961
2019
  */
1962
2020
  metadata?: Record<string, string | null> | null;
1963
2021
 
@@ -2013,7 +2071,9 @@ export namespace LedgerCreateEntryParams {
2013
2071
  description?: string | null;
2014
2072
 
2015
2073
  /**
2016
- * User-specified key/value pairs for the resource.
2074
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2075
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2076
+ * by setting `metadata` to `null`.
2017
2077
  */
2018
2078
  metadata?: Record<string, string | null> | null;
2019
2079
  }
@@ -2054,7 +2114,9 @@ export namespace LedgerCreateEntryParams {
2054
2114
  description?: string | null;
2055
2115
 
2056
2116
  /**
2057
- * User-specified key/value pairs for the resource.
2117
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2118
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2119
+ * by setting `metadata` to `null`.
2058
2120
  */
2059
2121
  metadata?: Record<string, string | null> | null;
2060
2122
  }
@@ -2081,7 +2143,9 @@ export namespace LedgerCreateEntryParams {
2081
2143
  description?: string | null;
2082
2144
 
2083
2145
  /**
2084
- * User-specified key/value pairs for the resource.
2146
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2147
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2148
+ * by setting `metadata` to `null`.
2085
2149
  */
2086
2150
  metadata?: Record<string, string | null> | null;
2087
2151
 
@@ -2113,7 +2177,9 @@ export namespace LedgerCreateEntryParams {
2113
2177
  description?: string | null;
2114
2178
 
2115
2179
  /**
2116
- * User-specified key/value pairs for the resource.
2180
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2181
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2182
+ * by setting `metadata` to `null`.
2117
2183
  */
2118
2184
  metadata?: Record<string, string | null> | null;
2119
2185
  }
@@ -2164,7 +2230,9 @@ export namespace LedgerCreateEntryByExternalIDParams {
2164
2230
  invoice_settings?: LedgerCreateEntryByExternalIDParams.AddIncrementCreditLedgerEntryRequestParams.InvoiceSettings | null;
2165
2231
 
2166
2232
  /**
2167
- * User-specified key/value pairs for the resource.
2233
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2234
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2235
+ * by setting `metadata` to `null`.
2168
2236
  */
2169
2237
  metadata?: Record<string, string | null> | null;
2170
2238
 
@@ -2220,7 +2288,9 @@ export namespace LedgerCreateEntryByExternalIDParams {
2220
2288
  description?: string | null;
2221
2289
 
2222
2290
  /**
2223
- * User-specified key/value pairs for the resource.
2291
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2292
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2293
+ * by setting `metadata` to `null`.
2224
2294
  */
2225
2295
  metadata?: Record<string, string | null> | null;
2226
2296
  }
@@ -2261,7 +2331,9 @@ export namespace LedgerCreateEntryByExternalIDParams {
2261
2331
  description?: string | null;
2262
2332
 
2263
2333
  /**
2264
- * User-specified key/value pairs for the resource.
2334
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2335
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2336
+ * by setting `metadata` to `null`.
2265
2337
  */
2266
2338
  metadata?: Record<string, string | null> | null;
2267
2339
  }
@@ -2288,7 +2360,9 @@ export namespace LedgerCreateEntryByExternalIDParams {
2288
2360
  description?: string | null;
2289
2361
 
2290
2362
  /**
2291
- * User-specified key/value pairs for the resource.
2363
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2364
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2365
+ * by setting `metadata` to `null`.
2292
2366
  */
2293
2367
  metadata?: Record<string, string | null> | null;
2294
2368
 
@@ -2320,7 +2394,9 @@ export namespace LedgerCreateEntryByExternalIDParams {
2320
2394
  description?: string | null;
2321
2395
 
2322
2396
  /**
2323
- * User-specified key/value pairs for the resource.
2397
+ * User-specified key/value pairs for the resource. Individual keys can be removed
2398
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
2399
+ * by setting `metadata` to `null`.
2324
2400
  */
2325
2401
  metadata?: Record<string, string | null> | null;
2326
2402
  }
@@ -206,8 +206,10 @@ export interface Customer {
206
206
  external_customer_id: string | null;
207
207
 
208
208
  /**
209
- * User specified key-value pairs. If not provided, this defaults to an empty
210
- * dictionary.
209
+ * User specified key-value pairs for the resource. If not present, this defaults
210
+ * to an empty dictionary. Individual keys can be removed by setting the value to
211
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
212
+ * `null`.
211
213
  */
212
214
  metadata: Record<string, string>;
213
215
 
@@ -632,7 +634,9 @@ export interface CustomerCreateParams {
632
634
  external_customer_id?: string | null;
633
635
 
634
636
  /**
635
- * User-specified key/value pairs for the resource.
637
+ * User-specified key/value pairs for the resource. Individual keys can be removed
638
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
639
+ * by setting `metadata` to `null`.
636
640
  */
637
641
  metadata?: Record<string, string | null> | null;
638
642
 
@@ -1034,7 +1038,9 @@ export interface CustomerUpdateParams {
1034
1038
  email_delivery?: boolean | null;
1035
1039
 
1036
1040
  /**
1037
- * User-specified key/value pairs for the resource.
1041
+ * User-specified key/value pairs for the resource. Individual keys can be removed
1042
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
1043
+ * by setting `metadata` to `null`.
1038
1044
  */
1039
1045
  metadata?: Record<string, string | null> | null;
1040
1046
 
@@ -1448,7 +1454,9 @@ export interface CustomerUpdateByExternalIDParams {
1448
1454
  email_delivery?: boolean | null;
1449
1455
 
1450
1456
  /**
1451
- * User-specified key/value pairs for the resource.
1457
+ * User-specified key/value pairs for the resource. Individual keys can be removed
1458
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
1459
+ * by setting `metadata` to `null`.
1452
1460
  */
1453
1461
  metadata?: Record<string, string | null> | null;
1454
1462
 
@@ -299,8 +299,10 @@ export interface Invoice {
299
299
  memo: string | null;
300
300
 
301
301
  /**
302
- * User specified key-value pairs. If not provided, this defaults to an empty
303
- * dictionary.
302
+ * User specified key-value pairs for the resource. If not present, this defaults
303
+ * to an empty dictionary. Individual keys can be removed by setting the value to
304
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
305
+ * `null`.
304
306
  */
305
307
  metadata: Record<string, string>;
306
308
 
@@ -327,6 +329,12 @@ export interface Invoice {
327
329
  */
328
330
  payment_started_at: string | null;
329
331
 
332
+ /**
333
+ * The active plan for this invoice's subscription on its invoice date. This field
334
+ * is only populated for invoices generated by subscriptions.
335
+ */
336
+ plan: Invoice.Plan | null;
337
+
330
338
  /**
331
339
  * If the invoice is in draft, this timestamp will reflect when the invoice is
332
340
  * scheduled to be issued.
@@ -1169,6 +1177,23 @@ export namespace Invoice {
1169
1177
  minimum_amount: string;
1170
1178
  }
1171
1179
 
1180
+ /**
1181
+ * The active plan for this invoice's subscription on its invoice date. This field
1182
+ * is only populated for invoices generated by subscriptions.
1183
+ */
1184
+ export interface Plan {
1185
+ id: string | null;
1186
+
1187
+ /**
1188
+ * An optional user-defined ID for this plan resource, used throughout the system
1189
+ * as an alias for this Plan. Use this field to identify a plan by an existing
1190
+ * identifier in your system.
1191
+ */
1192
+ external_plan_id: string | null;
1193
+
1194
+ name: string | null;
1195
+ }
1196
+
1172
1197
  export interface ShippingAddress {
1173
1198
  city: string | null;
1174
1199
 
@@ -1368,8 +1393,10 @@ export interface InvoiceFetchUpcomingResponse {
1368
1393
  memo: string | null;
1369
1394
 
1370
1395
  /**
1371
- * User specified key-value pairs. If not provided, this defaults to an empty
1372
- * dictionary.
1396
+ * User specified key-value pairs for the resource. If not present, this defaults
1397
+ * to an empty dictionary. Individual keys can be removed by setting the value to
1398
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
1399
+ * `null`.
1373
1400
  */
1374
1401
  metadata: Record<string, string>;
1375
1402
 
@@ -1396,6 +1423,12 @@ export interface InvoiceFetchUpcomingResponse {
1396
1423
  */
1397
1424
  payment_started_at: string | null;
1398
1425
 
1426
+ /**
1427
+ * The active plan for this invoice's subscription on its invoice date. This field
1428
+ * is only populated for invoices generated by subscriptions.
1429
+ */
1430
+ plan: InvoiceFetchUpcomingResponse.Plan | null;
1431
+
1399
1432
  /**
1400
1433
  * If the invoice is in draft, this timestamp will reflect when the invoice is
1401
1434
  * scheduled to be issued.
@@ -2243,6 +2276,23 @@ export namespace InvoiceFetchUpcomingResponse {
2243
2276
  minimum_amount: string;
2244
2277
  }
2245
2278
 
2279
+ /**
2280
+ * The active plan for this invoice's subscription on its invoice date. This field
2281
+ * is only populated for invoices generated by subscriptions.
2282
+ */
2283
+ export interface Plan {
2284
+ id: string | null;
2285
+
2286
+ /**
2287
+ * An optional user-defined ID for this plan resource, used throughout the system
2288
+ * as an alias for this Plan. Use this field to identify a plan by an existing
2289
+ * identifier in your system.
2290
+ */
2291
+ external_plan_id: string | null;
2292
+
2293
+ name: string | null;
2294
+ }
2295
+
2246
2296
  export interface ShippingAddress {
2247
2297
  city: string | null;
2248
2298
 
@@ -67,8 +67,10 @@ export interface MetricCreateResponse {
67
67
  item: ItemsAPI.Item;
68
68
 
69
69
  /**
70
- * User specified key-value pairs. If not provided, this defaults to an empty
71
- * dictionary.
70
+ * User specified key-value pairs for the resource. If not present, this defaults
71
+ * to an empty dictionary. Individual keys can be removed by setting the value to
72
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
73
+ * `null`.
72
74
  */
73
75
  metadata: Record<string, string>;
74
76
 
@@ -95,8 +97,10 @@ export interface MetricListResponse {
95
97
  item: ItemsAPI.Item;
96
98
 
97
99
  /**
98
- * User specified key-value pairs. If not provided, this defaults to an empty
99
- * dictionary.
100
+ * User specified key-value pairs for the resource. If not present, this defaults
101
+ * to an empty dictionary. Individual keys can be removed by setting the value to
102
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
103
+ * `null`.
100
104
  */
101
105
  metadata: Record<string, string>;
102
106
 
@@ -123,8 +127,10 @@ export interface MetricFetchResponse {
123
127
  item: ItemsAPI.Item;
124
128
 
125
129
  /**
126
- * User specified key-value pairs. If not provided, this defaults to an empty
127
- * dictionary.
130
+ * User specified key-value pairs for the resource. If not present, this defaults
131
+ * to an empty dictionary. Individual keys can be removed by setting the value to
132
+ * `null`, and the entire metadata mapping can be cleared by setting `metadata` to
133
+ * `null`.
128
134
  */
129
135
  metadata: Record<string, string>;
130
136
 
@@ -155,7 +161,9 @@ export interface MetricCreateParams {
155
161
  sql: string;
156
162
 
157
163
  /**
158
- * User-specified key/value pairs for the resource.
164
+ * User-specified key/value pairs for the resource. Individual keys can be removed
165
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
166
+ * by setting `metadata` to `null`.
159
167
  */
160
168
  metadata?: Record<string, string | null> | null;
161
169
  }
@@ -66,7 +66,9 @@ export interface ExternalPlanIDUpdateParams {
66
66
  external_plan_id?: string | null;
67
67
 
68
68
  /**
69
- * User-specified key/value pairs for the resource.
69
+ * User-specified key/value pairs for the resource. Individual keys can be removed
70
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
71
+ * by setting `metadata` to `null`.
70
72
  */
71
73
  metadata?: Record<string, string | null> | null;
72
74
  }