@stigg/typescript 0.1.0-beta.47 → 0.1.0-beta.48

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 (57) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v1/contracts.d.mts +1618 -0
  4. package/resources/v1/contracts.d.mts.map +1 -0
  5. package/resources/v1/contracts.d.ts +1618 -0
  6. package/resources/v1/contracts.d.ts.map +1 -0
  7. package/resources/v1/contracts.js +108 -0
  8. package/resources/v1/contracts.js.map +1 -0
  9. package/resources/v1/contracts.mjs +104 -0
  10. package/resources/v1/contracts.mjs.map +1 -0
  11. package/resources/v1/customers/customers.d.mts +342 -1
  12. package/resources/v1/customers/customers.d.mts.map +1 -1
  13. package/resources/v1/customers/customers.d.ts +342 -1
  14. package/resources/v1/customers/customers.d.ts.map +1 -1
  15. package/resources/v1/customers/customers.js +41 -0
  16. package/resources/v1/customers/customers.js.map +1 -1
  17. package/resources/v1/customers/customers.mjs +41 -0
  18. package/resources/v1/customers/customers.mjs.map +1 -1
  19. package/resources/v1/customers/index.d.mts +1 -1
  20. package/resources/v1/customers/index.d.mts.map +1 -1
  21. package/resources/v1/customers/index.d.ts +1 -1
  22. package/resources/v1/customers/index.d.ts.map +1 -1
  23. package/resources/v1/customers/index.js.map +1 -1
  24. package/resources/v1/customers/index.mjs.map +1 -1
  25. package/resources/v1/index.d.mts +2 -1
  26. package/resources/v1/index.d.mts.map +1 -1
  27. package/resources/v1/index.d.ts +2 -1
  28. package/resources/v1/index.d.ts.map +1 -1
  29. package/resources/v1/index.js +3 -1
  30. package/resources/v1/index.js.map +1 -1
  31. package/resources/v1/index.mjs +1 -0
  32. package/resources/v1/index.mjs.map +1 -1
  33. package/resources/v1/subscriptions/subscriptions.d.mts +12 -0
  34. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  35. package/resources/v1/subscriptions/subscriptions.d.ts +12 -0
  36. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  37. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  38. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  39. package/resources/v1/v1.d.mts +6 -2
  40. package/resources/v1/v1.d.mts.map +1 -1
  41. package/resources/v1/v1.d.ts +6 -2
  42. package/resources/v1/v1.d.ts.map +1 -1
  43. package/resources/v1/v1.js +4 -0
  44. package/resources/v1/v1.js.map +1 -1
  45. package/resources/v1/v1.mjs +4 -0
  46. package/resources/v1/v1.mjs.map +1 -1
  47. package/src/resources/v1/contracts.ts +3228 -0
  48. package/src/resources/v1/customers/customers.ts +573 -0
  49. package/src/resources/v1/customers/index.ts +5 -0
  50. package/src/resources/v1/index.ts +19 -0
  51. package/src/resources/v1/subscriptions/subscriptions.ts +15 -0
  52. package/src/resources/v1/v1.ts +42 -0
  53. package/src/version.ts +1 -1
  54. package/version.d.mts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
@@ -169,6 +169,61 @@ export class Customers extends APIResource {
169
169
  });
170
170
  }
171
171
 
172
+ /**
173
+ * Retrieves a customer's contracts, fetched live from the connected billing
174
+ * provider, each enriched with a preview of its upcoming (next) invoice when
175
+ * available. Returns an empty list when no billing provider is connected or the
176
+ * customer is not synced.
177
+ */
178
+ listContracts(
179
+ id: string,
180
+ params: CustomerListContractsParams | null | undefined = {},
181
+ options?: RequestOptions,
182
+ ): APIPromise<CustomerListContractsResponse> {
183
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
184
+ return this._client.get(path`/api/v1/customers/${id}/contracts`, {
185
+ ...options,
186
+ headers: buildHeaders([
187
+ {
188
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
189
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
190
+ },
191
+ options?.headers,
192
+ ]),
193
+ });
194
+ }
195
+
196
+ /**
197
+ * Retrieves a cursor-paginated list of a customer's invoices, fetched live from
198
+ * the connected billing provider. Ordered by issue date ascending by default;
199
+ * override with orderBy (issueDate | dueDate | total) and orderDir (ASC | DESC).
200
+ * Optionally narrowed to one contract, an issue-date range, and/or a set of
201
+ * invoice states. Returns an empty list when no billing provider is connected or
202
+ * the customer is not synced.
203
+ */
204
+ listInvoices(
205
+ id: string,
206
+ params: CustomerListInvoicesParams | null | undefined = {},
207
+ options?: RequestOptions,
208
+ ): PagePromise<CustomerListInvoicesResponsesMyCursorIDPage, CustomerListInvoicesResponse> {
209
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
210
+ return this._client.getAPIList(
211
+ path`/api/v1/customers/${id}/invoices`,
212
+ MyCursorIDPage<CustomerListInvoicesResponse>,
213
+ {
214
+ query,
215
+ ...options,
216
+ headers: buildHeaders([
217
+ {
218
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
219
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
220
+ },
221
+ options?.headers,
222
+ ]),
223
+ },
224
+ );
225
+ }
226
+
172
227
  /**
173
228
  * Retrieves a paginated list of resources within the same customer.
174
229
  */
@@ -265,6 +320,8 @@ export class Customers extends APIResource {
265
320
 
266
321
  export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResponse>;
267
322
 
323
+ export type CustomerListInvoicesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListInvoicesResponse>;
324
+
268
325
  export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
269
326
 
270
327
  /**
@@ -1758,6 +1815,453 @@ export namespace CustomerImportResponse {
1758
1815
  }
1759
1816
  }
1760
1817
 
1818
+ /**
1819
+ * A list of a customer's contracts
1820
+ */
1821
+ export interface CustomerListContractsResponse {
1822
+ data: Array<CustomerListContractsResponse.Data>;
1823
+ }
1824
+
1825
+ export namespace CustomerListContractsResponse {
1826
+ /**
1827
+ * A billing contract as reported by the connected billing provider.
1828
+ */
1829
+ export interface Data {
1830
+ /**
1831
+ * The persisted Stigg contract id (matches a subscription’s contractId; present
1832
+ * for Stigg-managed contracts)
1833
+ */
1834
+ id: string | null;
1835
+
1836
+ /**
1837
+ * The date the contract activation ends
1838
+ */
1839
+ activationEndDate: string | null;
1840
+
1841
+ /**
1842
+ * The date the contract becomes active
1843
+ */
1844
+ activationStartDate: string | null;
1845
+
1846
+ /**
1847
+ * The billing provider (Received) contract ID; null until the contract has synced
1848
+ * to the billing provider
1849
+ */
1850
+ billingId: string | null;
1851
+
1852
+ /**
1853
+ * The Stigg contract ref ID (the key used to fetch/update/delete this contract)
1854
+ */
1855
+ contractId: string;
1856
+
1857
+ /**
1858
+ * The date the contract was created
1859
+ */
1860
+ createdAt: string | null;
1861
+
1862
+ /**
1863
+ * The external identifier of the customer the contract belongs to
1864
+ */
1865
+ customerExternalId: string | null;
1866
+
1867
+ /**
1868
+ * The external identifier of the contract
1869
+ */
1870
+ externalId: string;
1871
+
1872
+ /**
1873
+ * The most recent non-draft invoice for this contract (open, paid, or canceled),
1874
+ * or null when none exists
1875
+ */
1876
+ latestInvoice: Data.LatestInvoice | null;
1877
+
1878
+ /**
1879
+ * The contract name (the purchase-order number when set, otherwise the
1880
+ * contract/customer name)
1881
+ */
1882
+ name: string | null;
1883
+
1884
+ /**
1885
+ * A preview of the contract's upcoming invoice, or null when none is available
1886
+ */
1887
+ nextInvoice: Data.NextInvoice | null;
1888
+
1889
+ /**
1890
+ * Purchase-order number, when set on the contract
1891
+ */
1892
+ poNumber: string | null;
1893
+
1894
+ /**
1895
+ * The Stigg contract ref ID (present for Stigg-managed contracts; the key used to
1896
+ * update/delete)
1897
+ */
1898
+ refId: string | null;
1899
+
1900
+ /**
1901
+ * The current state of the contract
1902
+ */
1903
+ state: 'DRAFT' | 'ACTIVE' | 'CANCELED' | 'END_BILLING';
1904
+
1905
+ /**
1906
+ * The custom subscriptions attached to this contract (empty when none)
1907
+ */
1908
+ subscriptions: Array<Data.Subscription>;
1909
+ }
1910
+
1911
+ export namespace Data {
1912
+ /**
1913
+ * The most recent non-draft invoice for this contract (open, paid, or canceled),
1914
+ * or null when none exists
1915
+ */
1916
+ export interface LatestInvoice {
1917
+ /**
1918
+ * Invoice billing ID
1919
+ */
1920
+ billingId: string;
1921
+
1922
+ /**
1923
+ * Invoice creation date
1924
+ */
1925
+ createdAt: string;
1926
+
1927
+ /**
1928
+ * Whether payment requires action
1929
+ */
1930
+ requiresAction: boolean;
1931
+
1932
+ /**
1933
+ * Invoice status
1934
+ */
1935
+ status: 'OPEN' | 'CANCELED' | 'PAID';
1936
+
1937
+ /**
1938
+ * Amount due
1939
+ */
1940
+ amountDue?: number | null;
1941
+
1942
+ /**
1943
+ * Billing reason
1944
+ */
1945
+ billingReason?:
1946
+ | 'BILLING_CYCLE'
1947
+ | 'SUBSCRIPTION_CREATION'
1948
+ | 'SUBSCRIPTION_UPDATE'
1949
+ | 'MANUAL'
1950
+ | 'MINIMUM_INVOICE_AMOUNT_EXCEEDED'
1951
+ | 'OTHER'
1952
+ | null;
1953
+
1954
+ /**
1955
+ * Invoice currency
1956
+ */
1957
+ currency?: string | null;
1958
+
1959
+ /**
1960
+ * Invoice PDF URL
1961
+ */
1962
+ pdfUrl?: string | null;
1963
+
1964
+ /**
1965
+ * Total amount
1966
+ */
1967
+ total?: number | null;
1968
+ }
1969
+
1970
+ /**
1971
+ * A preview of the contract's upcoming invoice, or null when none is available
1972
+ */
1973
+ export interface NextInvoice {
1974
+ /**
1975
+ * The total amount of the upcoming invoice
1976
+ */
1977
+ amount: NextInvoice.Amount;
1978
+
1979
+ /**
1980
+ * The date the upcoming invoice is due
1981
+ */
1982
+ dueDate: string | null;
1983
+
1984
+ /**
1985
+ * The end of the billing period the upcoming invoice covers
1986
+ */
1987
+ periodEnd: string | null;
1988
+
1989
+ /**
1990
+ * The start of the billing period the upcoming invoice covers
1991
+ */
1992
+ periodStart: string | null;
1993
+ }
1994
+
1995
+ export namespace NextInvoice {
1996
+ /**
1997
+ * The total amount of the upcoming invoice
1998
+ */
1999
+ export interface Amount {
2000
+ /**
2001
+ * The price amount
2002
+ */
2003
+ amount: number;
2004
+
2005
+ /**
2006
+ * ISO 4217 currency code
2007
+ */
2008
+ currency:
2009
+ | 'usd'
2010
+ | 'aed'
2011
+ | 'all'
2012
+ | 'amd'
2013
+ | 'ang'
2014
+ | 'aud'
2015
+ | 'awg'
2016
+ | 'azn'
2017
+ | 'bam'
2018
+ | 'bbd'
2019
+ | 'bdt'
2020
+ | 'bgn'
2021
+ | 'bif'
2022
+ | 'bmd'
2023
+ | 'bnd'
2024
+ | 'bsd'
2025
+ | 'bwp'
2026
+ | 'byn'
2027
+ | 'bzd'
2028
+ | 'brl'
2029
+ | 'cad'
2030
+ | 'cdf'
2031
+ | 'chf'
2032
+ | 'cny'
2033
+ | 'czk'
2034
+ | 'dkk'
2035
+ | 'dop'
2036
+ | 'dzd'
2037
+ | 'egp'
2038
+ | 'etb'
2039
+ | 'eur'
2040
+ | 'fjd'
2041
+ | 'gbp'
2042
+ | 'gel'
2043
+ | 'gip'
2044
+ | 'gmd'
2045
+ | 'gyd'
2046
+ | 'hkd'
2047
+ | 'hrk'
2048
+ | 'htg'
2049
+ | 'idr'
2050
+ | 'ils'
2051
+ | 'inr'
2052
+ | 'isk'
2053
+ | 'jmd'
2054
+ | 'jpy'
2055
+ | 'kes'
2056
+ | 'kgs'
2057
+ | 'khr'
2058
+ | 'kmf'
2059
+ | 'krw'
2060
+ | 'kyd'
2061
+ | 'kzt'
2062
+ | 'lbp'
2063
+ | 'lkr'
2064
+ | 'lrd'
2065
+ | 'lsl'
2066
+ | 'mad'
2067
+ | 'mdl'
2068
+ | 'mga'
2069
+ | 'mkd'
2070
+ | 'mmk'
2071
+ | 'mnt'
2072
+ | 'mop'
2073
+ | 'mro'
2074
+ | 'mvr'
2075
+ | 'mwk'
2076
+ | 'mxn'
2077
+ | 'myr'
2078
+ | 'mzn'
2079
+ | 'nad'
2080
+ | 'ngn'
2081
+ | 'nok'
2082
+ | 'npr'
2083
+ | 'nzd'
2084
+ | 'pgk'
2085
+ | 'php'
2086
+ | 'pkr'
2087
+ | 'pln'
2088
+ | 'qar'
2089
+ | 'ron'
2090
+ | 'rsd'
2091
+ | 'rub'
2092
+ | 'rwf'
2093
+ | 'sar'
2094
+ | 'sbd'
2095
+ | 'scr'
2096
+ | 'sek'
2097
+ | 'sgd'
2098
+ | 'sle'
2099
+ | 'sll'
2100
+ | 'sos'
2101
+ | 'szl'
2102
+ | 'thb'
2103
+ | 'tjs'
2104
+ | 'top'
2105
+ | 'try'
2106
+ | 'ttd'
2107
+ | 'tzs'
2108
+ | 'uah'
2109
+ | 'uzs'
2110
+ | 'vnd'
2111
+ | 'vuv'
2112
+ | 'wst'
2113
+ | 'xaf'
2114
+ | 'xcd'
2115
+ | 'yer'
2116
+ | 'zar'
2117
+ | 'zmw'
2118
+ | 'clp'
2119
+ | 'djf'
2120
+ | 'gnf'
2121
+ | 'ugx'
2122
+ | 'pyg'
2123
+ | 'xof'
2124
+ | 'xpf';
2125
+ }
2126
+ }
2127
+
2128
+ /**
2129
+ * A custom subscription attached to a contract.
2130
+ */
2131
+ export interface Subscription {
2132
+ /**
2133
+ * Display name of the subscription plan
2134
+ */
2135
+ planDisplayName: string | null;
2136
+
2137
+ /**
2138
+ * Display name of the product the subscription plan belongs to
2139
+ */
2140
+ productDisplayName: string | null;
2141
+
2142
+ /**
2143
+ * The subscription ref ID (use it to deep-link to the subscription)
2144
+ */
2145
+ subscriptionId: string;
2146
+ }
2147
+ }
2148
+ }
2149
+
2150
+ /**
2151
+ * A customer invoice as reported by the connected billing provider.
2152
+ */
2153
+ export interface CustomerListInvoicesResponse {
2154
+ /**
2155
+ * External ID of the contract the invoice belongs to: your contract ref when
2156
+ * mapped, otherwise the Received contract ID
2157
+ */
2158
+ contractExternalId: string | null;
2159
+
2160
+ /**
2161
+ * The ISO-4217 currency code of the invoice
2162
+ */
2163
+ currency: string | null;
2164
+
2165
+ /**
2166
+ * External ID of the customer the invoice belongs to: your customer ref when
2167
+ * mapped, otherwise the Received customer ID
2168
+ */
2169
+ customerExternalId: string | null;
2170
+
2171
+ /**
2172
+ * The total discount amount
2173
+ */
2174
+ discount: number | null;
2175
+
2176
+ /**
2177
+ * The date payment is due
2178
+ */
2179
+ dueDate: string | null;
2180
+
2181
+ /**
2182
+ * External ID for the invoice: the mapped external ID when one exists, otherwise
2183
+ * the invoice ID
2184
+ */
2185
+ invoiceExternalId: string | null;
2186
+
2187
+ /**
2188
+ * The billing provider (Received) invoice ID
2189
+ */
2190
+ invoiceId: string;
2191
+
2192
+ /**
2193
+ * The invoice document number (or draft number while the invoice is unissued)
2194
+ */
2195
+ invoiceNumber: string | null;
2196
+
2197
+ /**
2198
+ * The date the invoice was issued
2199
+ */
2200
+ issueDate: string | null;
2201
+
2202
+ /**
2203
+ * The invoice line items
2204
+ */
2205
+ lineItems: Array<CustomerListInvoicesResponse.LineItem>;
2206
+
2207
+ /**
2208
+ * The date the invoice was reconciled as paid; present once reconciled
2209
+ */
2210
+ paidDate: string | null;
2211
+
2212
+ /**
2213
+ * The invoice status (open, paid, or canceled)
2214
+ */
2215
+ state: 'OPEN' | 'CANCELED' | 'PAID';
2216
+
2217
+ /**
2218
+ * The pre-tax subtotal
2219
+ */
2220
+ subtotal: number | null;
2221
+
2222
+ /**
2223
+ * The total tax amount
2224
+ */
2225
+ tax: number | null;
2226
+
2227
+ /**
2228
+ * The total amount due
2229
+ */
2230
+ total: number | null;
2231
+ }
2232
+
2233
+ export namespace CustomerListInvoicesResponse {
2234
+ /**
2235
+ * A single line item on an invoice.
2236
+ */
2237
+ export interface LineItem {
2238
+ /**
2239
+ * Total amount for this line (unit price × quantity)
2240
+ */
2241
+ amount: number | null;
2242
+
2243
+ /**
2244
+ * Human-readable description of the line item
2245
+ */
2246
+ description: string | null;
2247
+
2248
+ /**
2249
+ * External ID of the product this line item relates to, when one is mapped
2250
+ */
2251
+ productExternalId: string | null;
2252
+
2253
+ /**
2254
+ * Quantity billed on this line
2255
+ */
2256
+ quantity: number | null;
2257
+
2258
+ /**
2259
+ * Price per unit for this line
2260
+ */
2261
+ unitPrice: number | null;
2262
+ }
2263
+ }
2264
+
1761
2265
  /**
1762
2266
  * Resource object that belongs to a customer
1763
2267
  */
@@ -2720,6 +3224,70 @@ export namespace CustomerImportParams {
2720
3224
  }
2721
3225
  }
2722
3226
 
3227
+ export interface CustomerListContractsParams {
3228
+ /**
3229
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
3230
+ * back to the user's first membership. Ignored for API-key auth.
3231
+ */
3232
+ 'X-ACCOUNT-ID'?: string;
3233
+
3234
+ /**
3235
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
3236
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
3237
+ * key).
3238
+ */
3239
+ 'X-ENVIRONMENT-ID'?: string;
3240
+ }
3241
+
3242
+ export interface CustomerListInvoicesParams extends MyCursorIDPageParams {
3243
+ /**
3244
+ * Query param: Filter to invoices for this contract only (contract external ID or
3245
+ * Received contract ID). Omit for all contracts.
3246
+ */
3247
+ contractExternalId?: string;
3248
+
3249
+ /**
3250
+ * Query param: Filter to invoices issued on or after this date, inclusive
3251
+ * (ISO 8601)
3252
+ */
3253
+ issuedAfter?: string;
3254
+
3255
+ /**
3256
+ * Query param: Filter to invoices issued on or before this date, inclusive
3257
+ * (ISO 8601)
3258
+ */
3259
+ issuedBefore?: string;
3260
+
3261
+ /**
3262
+ * Query param: Field to sort by: issueDate (default), dueDate, or total
3263
+ */
3264
+ orderBy?: 'issueDate' | 'dueDate' | 'total';
3265
+
3266
+ /**
3267
+ * Query param: Sort direction: ASC (default) or DESC
3268
+ */
3269
+ orderDir?: 'ASC' | 'DESC';
3270
+
3271
+ /**
3272
+ * Query param: Filter by invoice state. Supports comma-separated values for
3273
+ * multiple states
3274
+ */
3275
+ stateIn?: string;
3276
+
3277
+ /**
3278
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3279
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3280
+ */
3281
+ 'X-ACCOUNT-ID'?: string;
3282
+
3283
+ /**
3284
+ * Header param: Environment ID — required when authenticating with a user JWT
3285
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3286
+ * intrinsic to the key).
3287
+ */
3288
+ 'X-ENVIRONMENT-ID'?: string;
3289
+ }
3290
+
2723
3291
  export interface CustomerListResourcesParams extends MyCursorIDPageParams {
2724
3292
  /**
2725
3293
  * Header param: Account ID — optional when authenticating with a user JWT (Bearer
@@ -3361,9 +3929,12 @@ export declare namespace Customers {
3361
3929
  type CustomerListResponse as CustomerListResponse,
3362
3930
  type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse,
3363
3931
  type CustomerImportResponse as CustomerImportResponse,
3932
+ type CustomerListContractsResponse as CustomerListContractsResponse,
3933
+ type CustomerListInvoicesResponse as CustomerListInvoicesResponse,
3364
3934
  type CustomerListResourcesResponse as CustomerListResourcesResponse,
3365
3935
  type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
3366
3936
  type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
3937
+ type CustomerListInvoicesResponsesMyCursorIDPage as CustomerListInvoicesResponsesMyCursorIDPage,
3367
3938
  type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
3368
3939
  type CustomerRetrieveParams as CustomerRetrieveParams,
3369
3940
  type CustomerUpdateParams as CustomerUpdateParams,
@@ -3371,6 +3942,8 @@ export declare namespace Customers {
3371
3942
  type CustomerArchiveParams as CustomerArchiveParams,
3372
3943
  type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams,
3373
3944
  type CustomerImportParams as CustomerImportParams,
3945
+ type CustomerListContractsParams as CustomerListContractsParams,
3946
+ type CustomerListInvoicesParams as CustomerListInvoicesParams,
3374
3947
  type CustomerListResourcesParams as CustomerListResourcesParams,
3375
3948
  type CustomerProvisionParams as CustomerProvisionParams,
3376
3949
  type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
@@ -7,6 +7,8 @@ export {
7
7
  type CustomerListResponse,
8
8
  type CustomerCheckEntitlementResponse,
9
9
  type CustomerImportResponse,
10
+ type CustomerListContractsResponse,
11
+ type CustomerListInvoicesResponse,
10
12
  type CustomerListResourcesResponse,
11
13
  type CustomerRetrieveEntitlementsResponse,
12
14
  type CustomerRetrieveParams,
@@ -15,11 +17,14 @@ export {
15
17
  type CustomerArchiveParams,
16
18
  type CustomerCheckEntitlementParams,
17
19
  type CustomerImportParams,
20
+ type CustomerListContractsParams,
21
+ type CustomerListInvoicesParams,
18
22
  type CustomerListResourcesParams,
19
23
  type CustomerProvisionParams,
20
24
  type CustomerRetrieveEntitlementsParams,
21
25
  type CustomerUnarchiveParams,
22
26
  type CustomerListResponsesMyCursorIDPage,
27
+ type CustomerListInvoicesResponsesMyCursorIDPage,
23
28
  type CustomerListResourcesResponsesMyCursorIDPage,
24
29
  } from './customers';
25
30
  export {
@@ -19,6 +19,20 @@ export {
19
19
  type AddonListResponsesMyCursorIDPage,
20
20
  type AddonListChargesResponsesMyCursorIDPage,
21
21
  } from './addons/index';
22
+ export {
23
+ Contracts,
24
+ type ContractCreateResponse,
25
+ type ContractRetrieveResponse,
26
+ type ContractUpdateResponse,
27
+ type ContractListResponse,
28
+ type ContractDeleteResponse,
29
+ type ContractCreateParams,
30
+ type ContractRetrieveParams,
31
+ type ContractUpdateParams,
32
+ type ContractListParams,
33
+ type ContractDeleteParams,
34
+ type ContractListResponsesMyCursorIDPage,
35
+ } from './contracts';
22
36
  export {
23
37
  Coupons,
24
38
  type Coupon,
@@ -47,6 +61,8 @@ export {
47
61
  type CustomerListResponse,
48
62
  type CustomerCheckEntitlementResponse,
49
63
  type CustomerImportResponse,
64
+ type CustomerListContractsResponse,
65
+ type CustomerListInvoicesResponse,
50
66
  type CustomerListResourcesResponse,
51
67
  type CustomerRetrieveEntitlementsResponse,
52
68
  type CustomerRetrieveParams,
@@ -55,11 +71,14 @@ export {
55
71
  type CustomerArchiveParams,
56
72
  type CustomerCheckEntitlementParams,
57
73
  type CustomerImportParams,
74
+ type CustomerListContractsParams,
75
+ type CustomerListInvoicesParams,
58
76
  type CustomerListResourcesParams,
59
77
  type CustomerProvisionParams,
60
78
  type CustomerRetrieveEntitlementsParams,
61
79
  type CustomerUnarchiveParams,
62
80
  type CustomerListResponsesMyCursorIDPage,
81
+ type CustomerListInvoicesResponsesMyCursorIDPage,
63
82
  type CustomerListResourcesResponsesMyCursorIDPage,
64
83
  } from './customers/index';
65
84
  export {
@@ -336,6 +336,11 @@ export namespace Subscription {
336
336
  | 'AutoCancellationRule'
337
337
  | null;
338
338
 
339
+ /**
340
+ * The Stigg contract this subscription is linked to, when any
341
+ */
342
+ contractId?: string | null;
343
+
339
344
  /**
340
345
  * Coupons applied to the subscription
341
346
  */
@@ -1392,6 +1397,11 @@ export interface SubscriptionListResponse {
1392
1397
  | 'AutoCancellationRule'
1393
1398
  | null;
1394
1399
 
1400
+ /**
1401
+ * The Stigg contract this subscription is linked to, when any
1402
+ */
1403
+ contractId?: string | null;
1404
+
1395
1405
  /**
1396
1406
  * Coupons applied to the subscription
1397
1407
  */
@@ -3039,6 +3049,11 @@ export namespace SubscriptionProvisionResponse {
3039
3049
  | 'AutoCancellationRule'
3040
3050
  | null;
3041
3051
 
3052
+ /**
3053
+ * The Stigg contract this subscription is linked to, when any
3054
+ */
3055
+ contractId?: string | null;
3056
+
3042
3057
  /**
3043
3058
  * Coupons applied to the subscription
3044
3059
  */