orb-billing 4.52.0 → 4.54.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.
- package/CHANGELOG.md +26 -0
- package/package.json +1 -1
- package/resources/customers/credits/ledger.d.ts +2 -2
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/invoice-line-items.d.ts +169 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +339 -1
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +195 -7
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +545 -76
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +193 -7
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/customers/credits/ledger.ts +2 -2
- package/src/resources/invoice-line-items.ts +215 -0
- package/src/resources/invoices.ts +431 -1
- package/src/resources/plans/plans.ts +235 -7
- package/src/resources/prices/prices.ts +766 -102
- package/src/resources/subscriptions.ts +233 -7
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -846,11 +846,33 @@ export namespace Invoice {
|
|
|
846
846
|
*/
|
|
847
847
|
id: string;
|
|
848
848
|
|
|
849
|
+
/**
|
|
850
|
+
* The line amount after any adjustments, before overage conversion, credits and
|
|
851
|
+
* partial invoicing.
|
|
852
|
+
*/
|
|
853
|
+
adjusted_subtotal: string;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* All adjustments applied to the line item.
|
|
857
|
+
*/
|
|
858
|
+
adjustments: Array<
|
|
859
|
+
| LineItem.AmountDiscountAdjustment
|
|
860
|
+
| LineItem.PercentageDiscountAdjustment
|
|
861
|
+
| LineItem.UsageDiscountAdjustment
|
|
862
|
+
| LineItem.MinimumAdjustment
|
|
863
|
+
| LineItem.MaximumAdjustment
|
|
864
|
+
>;
|
|
865
|
+
|
|
849
866
|
/**
|
|
850
867
|
* The final amount after any discounts or minimums.
|
|
851
868
|
*/
|
|
852
869
|
amount: string;
|
|
853
870
|
|
|
871
|
+
/**
|
|
872
|
+
* The number of credits used
|
|
873
|
+
*/
|
|
874
|
+
credits_applied: string;
|
|
875
|
+
|
|
854
876
|
discount: Shared.Discount | null;
|
|
855
877
|
|
|
856
878
|
/**
|
|
@@ -865,12 +887,24 @@ export namespace Invoice {
|
|
|
865
887
|
*/
|
|
866
888
|
grouping: string | null;
|
|
867
889
|
|
|
890
|
+
/**
|
|
891
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
892
|
+
*/
|
|
868
893
|
maximum: LineItem.Maximum | null;
|
|
869
894
|
|
|
895
|
+
/**
|
|
896
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
897
|
+
*/
|
|
870
898
|
maximum_amount: string | null;
|
|
871
899
|
|
|
900
|
+
/**
|
|
901
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
902
|
+
*/
|
|
872
903
|
minimum: LineItem.Minimum | null;
|
|
873
904
|
|
|
905
|
+
/**
|
|
906
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
907
|
+
*/
|
|
874
908
|
minimum_amount: string | null;
|
|
875
909
|
|
|
876
910
|
/**
|
|
@@ -878,6 +912,11 @@ export namespace Invoice {
|
|
|
878
912
|
*/
|
|
879
913
|
name: string;
|
|
880
914
|
|
|
915
|
+
/**
|
|
916
|
+
* Any amount applied from a partial invoice
|
|
917
|
+
*/
|
|
918
|
+
partially_invoiced_amount: string;
|
|
919
|
+
|
|
881
920
|
/**
|
|
882
921
|
* The Price resource represents a price that can be billed on a subscription,
|
|
883
922
|
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
@@ -918,6 +957,179 @@ export namespace Invoice {
|
|
|
918
957
|
}
|
|
919
958
|
|
|
920
959
|
export namespace LineItem {
|
|
960
|
+
export interface AmountDiscountAdjustment {
|
|
961
|
+
id: string;
|
|
962
|
+
|
|
963
|
+
adjustment_type: 'amount_discount';
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* The amount by which to discount the prices this adjustment applies to in a given
|
|
967
|
+
* billing period.
|
|
968
|
+
*/
|
|
969
|
+
amount_discount: string;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* The price IDs that this adjustment applies to.
|
|
973
|
+
*/
|
|
974
|
+
applies_to_price_ids: Array<string>;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
978
|
+
* that apply to only one price.
|
|
979
|
+
*/
|
|
980
|
+
is_invoice_level: boolean;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* The plan phase in which this adjustment is active.
|
|
984
|
+
*/
|
|
985
|
+
plan_phase_order: number | null;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* The reason for the adjustment.
|
|
989
|
+
*/
|
|
990
|
+
reason: string | null;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export interface PercentageDiscountAdjustment {
|
|
994
|
+
id: string;
|
|
995
|
+
|
|
996
|
+
adjustment_type: 'percentage_discount';
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* The price IDs that this adjustment applies to.
|
|
1000
|
+
*/
|
|
1001
|
+
applies_to_price_ids: Array<string>;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1005
|
+
* that apply to only one price.
|
|
1006
|
+
*/
|
|
1007
|
+
is_invoice_level: boolean;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* The percentage (as a value between 0 and 1) by which to discount the price
|
|
1011
|
+
* intervals this adjustment applies to in a given billing period.
|
|
1012
|
+
*/
|
|
1013
|
+
percentage_discount: number;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The plan phase in which this adjustment is active.
|
|
1017
|
+
*/
|
|
1018
|
+
plan_phase_order: number | null;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* The reason for the adjustment.
|
|
1022
|
+
*/
|
|
1023
|
+
reason: string | null;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export interface UsageDiscountAdjustment {
|
|
1027
|
+
id: string;
|
|
1028
|
+
|
|
1029
|
+
adjustment_type: 'usage_discount';
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* The price IDs that this adjustment applies to.
|
|
1033
|
+
*/
|
|
1034
|
+
applies_to_price_ids: Array<string>;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1038
|
+
* that apply to only one price.
|
|
1039
|
+
*/
|
|
1040
|
+
is_invoice_level: boolean;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* The plan phase in which this adjustment is active.
|
|
1044
|
+
*/
|
|
1045
|
+
plan_phase_order: number | null;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* The reason for the adjustment.
|
|
1049
|
+
*/
|
|
1050
|
+
reason: string | null;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* The number of usage units by which to discount the price this adjustment applies
|
|
1054
|
+
* to in a given billing period.
|
|
1055
|
+
*/
|
|
1056
|
+
usage_discount: number;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
export interface MinimumAdjustment {
|
|
1060
|
+
id: string;
|
|
1061
|
+
|
|
1062
|
+
adjustment_type: 'minimum';
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* The price IDs that this adjustment applies to.
|
|
1066
|
+
*/
|
|
1067
|
+
applies_to_price_ids: Array<string>;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1071
|
+
* that apply to only one price.
|
|
1072
|
+
*/
|
|
1073
|
+
is_invoice_level: boolean;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* The item ID that revenue from this minimum will be attributed to.
|
|
1077
|
+
*/
|
|
1078
|
+
item_id: string;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* The minimum amount to charge in a given billing period for the prices this
|
|
1082
|
+
* adjustment applies to.
|
|
1083
|
+
*/
|
|
1084
|
+
minimum_amount: string;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* The plan phase in which this adjustment is active.
|
|
1088
|
+
*/
|
|
1089
|
+
plan_phase_order: number | null;
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* The reason for the adjustment.
|
|
1093
|
+
*/
|
|
1094
|
+
reason: string | null;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export interface MaximumAdjustment {
|
|
1098
|
+
id: string;
|
|
1099
|
+
|
|
1100
|
+
adjustment_type: 'maximum';
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* The price IDs that this adjustment applies to.
|
|
1104
|
+
*/
|
|
1105
|
+
applies_to_price_ids: Array<string>;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1109
|
+
* that apply to only one price.
|
|
1110
|
+
*/
|
|
1111
|
+
is_invoice_level: boolean;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* The maximum amount to charge in a given billing period for the prices this
|
|
1115
|
+
* adjustment applies to.
|
|
1116
|
+
*/
|
|
1117
|
+
maximum_amount: string;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* The plan phase in which this adjustment is active.
|
|
1121
|
+
*/
|
|
1122
|
+
plan_phase_order: number | null;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* The reason for the adjustment.
|
|
1126
|
+
*/
|
|
1127
|
+
reason: string | null;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1132
|
+
*/
|
|
921
1133
|
export interface Maximum {
|
|
922
1134
|
/**
|
|
923
1135
|
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
@@ -931,6 +1143,9 @@ export namespace Invoice {
|
|
|
931
1143
|
maximum_amount: string;
|
|
932
1144
|
}
|
|
933
1145
|
|
|
1146
|
+
/**
|
|
1147
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1148
|
+
*/
|
|
934
1149
|
export interface Minimum {
|
|
935
1150
|
/**
|
|
936
1151
|
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
@@ -1837,11 +2052,33 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
1837
2052
|
*/
|
|
1838
2053
|
id: string;
|
|
1839
2054
|
|
|
2055
|
+
/**
|
|
2056
|
+
* The line amount after any adjustments, before overage conversion, credits and
|
|
2057
|
+
* partial invoicing.
|
|
2058
|
+
*/
|
|
2059
|
+
adjusted_subtotal: string;
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* All adjustments applied to the line item.
|
|
2063
|
+
*/
|
|
2064
|
+
adjustments: Array<
|
|
2065
|
+
| LineItem.AmountDiscountAdjustment
|
|
2066
|
+
| LineItem.PercentageDiscountAdjustment
|
|
2067
|
+
| LineItem.UsageDiscountAdjustment
|
|
2068
|
+
| LineItem.MinimumAdjustment
|
|
2069
|
+
| LineItem.MaximumAdjustment
|
|
2070
|
+
>;
|
|
2071
|
+
|
|
1840
2072
|
/**
|
|
1841
2073
|
* The final amount after any discounts or minimums.
|
|
1842
2074
|
*/
|
|
1843
2075
|
amount: string;
|
|
1844
2076
|
|
|
2077
|
+
/**
|
|
2078
|
+
* The number of credits used
|
|
2079
|
+
*/
|
|
2080
|
+
credits_applied: string;
|
|
2081
|
+
|
|
1845
2082
|
discount: Shared.Discount | null;
|
|
1846
2083
|
|
|
1847
2084
|
/**
|
|
@@ -1856,12 +2093,24 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
1856
2093
|
*/
|
|
1857
2094
|
grouping: string | null;
|
|
1858
2095
|
|
|
2096
|
+
/**
|
|
2097
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2098
|
+
*/
|
|
1859
2099
|
maximum: LineItem.Maximum | null;
|
|
1860
2100
|
|
|
2101
|
+
/**
|
|
2102
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2103
|
+
*/
|
|
1861
2104
|
maximum_amount: string | null;
|
|
1862
2105
|
|
|
2106
|
+
/**
|
|
2107
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2108
|
+
*/
|
|
1863
2109
|
minimum: LineItem.Minimum | null;
|
|
1864
2110
|
|
|
2111
|
+
/**
|
|
2112
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2113
|
+
*/
|
|
1865
2114
|
minimum_amount: string | null;
|
|
1866
2115
|
|
|
1867
2116
|
/**
|
|
@@ -1869,6 +2118,11 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
1869
2118
|
*/
|
|
1870
2119
|
name: string;
|
|
1871
2120
|
|
|
2121
|
+
/**
|
|
2122
|
+
* Any amount applied from a partial invoice
|
|
2123
|
+
*/
|
|
2124
|
+
partially_invoiced_amount: string;
|
|
2125
|
+
|
|
1872
2126
|
/**
|
|
1873
2127
|
* The Price resource represents a price that can be billed on a subscription,
|
|
1874
2128
|
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
@@ -1909,6 +2163,179 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
1909
2163
|
}
|
|
1910
2164
|
|
|
1911
2165
|
export namespace LineItem {
|
|
2166
|
+
export interface AmountDiscountAdjustment {
|
|
2167
|
+
id: string;
|
|
2168
|
+
|
|
2169
|
+
adjustment_type: 'amount_discount';
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* The amount by which to discount the prices this adjustment applies to in a given
|
|
2173
|
+
* billing period.
|
|
2174
|
+
*/
|
|
2175
|
+
amount_discount: string;
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* The price IDs that this adjustment applies to.
|
|
2179
|
+
*/
|
|
2180
|
+
applies_to_price_ids: Array<string>;
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2184
|
+
* that apply to only one price.
|
|
2185
|
+
*/
|
|
2186
|
+
is_invoice_level: boolean;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* The plan phase in which this adjustment is active.
|
|
2190
|
+
*/
|
|
2191
|
+
plan_phase_order: number | null;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* The reason for the adjustment.
|
|
2195
|
+
*/
|
|
2196
|
+
reason: string | null;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
export interface PercentageDiscountAdjustment {
|
|
2200
|
+
id: string;
|
|
2201
|
+
|
|
2202
|
+
adjustment_type: 'percentage_discount';
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* The price IDs that this adjustment applies to.
|
|
2206
|
+
*/
|
|
2207
|
+
applies_to_price_ids: Array<string>;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2211
|
+
* that apply to only one price.
|
|
2212
|
+
*/
|
|
2213
|
+
is_invoice_level: boolean;
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* The percentage (as a value between 0 and 1) by which to discount the price
|
|
2217
|
+
* intervals this adjustment applies to in a given billing period.
|
|
2218
|
+
*/
|
|
2219
|
+
percentage_discount: number;
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* The plan phase in which this adjustment is active.
|
|
2223
|
+
*/
|
|
2224
|
+
plan_phase_order: number | null;
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* The reason for the adjustment.
|
|
2228
|
+
*/
|
|
2229
|
+
reason: string | null;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
export interface UsageDiscountAdjustment {
|
|
2233
|
+
id: string;
|
|
2234
|
+
|
|
2235
|
+
adjustment_type: 'usage_discount';
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* The price IDs that this adjustment applies to.
|
|
2239
|
+
*/
|
|
2240
|
+
applies_to_price_ids: Array<string>;
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2244
|
+
* that apply to only one price.
|
|
2245
|
+
*/
|
|
2246
|
+
is_invoice_level: boolean;
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* The plan phase in which this adjustment is active.
|
|
2250
|
+
*/
|
|
2251
|
+
plan_phase_order: number | null;
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* The reason for the adjustment.
|
|
2255
|
+
*/
|
|
2256
|
+
reason: string | null;
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* The number of usage units by which to discount the price this adjustment applies
|
|
2260
|
+
* to in a given billing period.
|
|
2261
|
+
*/
|
|
2262
|
+
usage_discount: number;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
export interface MinimumAdjustment {
|
|
2266
|
+
id: string;
|
|
2267
|
+
|
|
2268
|
+
adjustment_type: 'minimum';
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* The price IDs that this adjustment applies to.
|
|
2272
|
+
*/
|
|
2273
|
+
applies_to_price_ids: Array<string>;
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2277
|
+
* that apply to only one price.
|
|
2278
|
+
*/
|
|
2279
|
+
is_invoice_level: boolean;
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* The item ID that revenue from this minimum will be attributed to.
|
|
2283
|
+
*/
|
|
2284
|
+
item_id: string;
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* The minimum amount to charge in a given billing period for the prices this
|
|
2288
|
+
* adjustment applies to.
|
|
2289
|
+
*/
|
|
2290
|
+
minimum_amount: string;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* The plan phase in which this adjustment is active.
|
|
2294
|
+
*/
|
|
2295
|
+
plan_phase_order: number | null;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* The reason for the adjustment.
|
|
2299
|
+
*/
|
|
2300
|
+
reason: string | null;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
export interface MaximumAdjustment {
|
|
2304
|
+
id: string;
|
|
2305
|
+
|
|
2306
|
+
adjustment_type: 'maximum';
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* The price IDs that this adjustment applies to.
|
|
2310
|
+
*/
|
|
2311
|
+
applies_to_price_ids: Array<string>;
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2315
|
+
* that apply to only one price.
|
|
2316
|
+
*/
|
|
2317
|
+
is_invoice_level: boolean;
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* The maximum amount to charge in a given billing period for the prices this
|
|
2321
|
+
* adjustment applies to.
|
|
2322
|
+
*/
|
|
2323
|
+
maximum_amount: string;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* The plan phase in which this adjustment is active.
|
|
2327
|
+
*/
|
|
2328
|
+
plan_phase_order: number | null;
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* The reason for the adjustment.
|
|
2332
|
+
*/
|
|
2333
|
+
reason: string | null;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2338
|
+
*/
|
|
1912
2339
|
export interface Maximum {
|
|
1913
2340
|
/**
|
|
1914
2341
|
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
@@ -1922,6 +2349,9 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
1922
2349
|
maximum_amount: string;
|
|
1923
2350
|
}
|
|
1924
2351
|
|
|
2352
|
+
/**
|
|
2353
|
+
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2354
|
+
*/
|
|
1925
2355
|
export interface Minimum {
|
|
1926
2356
|
/**
|
|
1927
2357
|
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
@@ -2284,7 +2714,7 @@ export interface InvoiceIssueParams {
|
|
|
2284
2714
|
/**
|
|
2285
2715
|
* If true, the invoice will be issued synchronously. If false, the invoice will be
|
|
2286
2716
|
* issued asynchronously. The synchronous option is only available for invoices
|
|
2287
|
-
*
|
|
2717
|
+
* that have no usage fees. If the invoice is configured to sync to an external
|
|
2288
2718
|
* provider, a successful response from this endpoint guarantees the invoice is
|
|
2289
2719
|
* present in the provider.
|
|
2290
2720
|
*/
|