Add subscription support + license extension on renewal

This commit is contained in:
Krystie
2026-08-19 12:45:06 -07:00
parent 14d0eaa2b3
commit ff722aa4d8
2075 changed files with 357707 additions and 63 deletions
+84
View File
@@ -0,0 +1,84 @@
import { StripeResource } from '../../StripeResource.js';
import { PaginationParams, OtherString } from '../../shared.js';
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
export declare class SupplierResource extends StripeResource {
/**
* Lists all available Climate supplier objects.
*/
list(params?: Climate.SupplierListParams, options?: RequestOptions): ApiListPromise<Supplier>;
/**
* Retrieves a Climate supplier object.
*/
retrieve(id: string, params?: Climate.SupplierRetrieveParams, options?: RequestOptions): Promise<Response<Supplier>>;
}
export interface Supplier {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'climate.supplier';
/**
* Link to a webpage to learn more about the supplier.
*/
info_url: string;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
/**
* The locations in which this supplier operates.
*/
locations: Array<Supplier.Location>;
/**
* Name of this carbon removal supplier.
*/
name: string;
/**
* The scientific pathway used for carbon removal.
*/
removal_pathway: Supplier.RemovalPathway;
}
export declare namespace Supplier {
interface Location {
/**
* The city where the supplier is located.
*/
city: string | null;
/**
* Two-letter ISO code representing the country where the supplier is located.
*/
country: string;
/**
* The geographic latitude where the supplier is located.
*/
latitude: number | null;
/**
* The geographic longitude where the supplier is located.
*/
longitude: number | null;
/**
* The state/county/province/region where the supplier is located.
*/
region: string | null;
}
type RemovalPathway = 'biomass_carbon_removal_and_storage' | 'direct_air_capture' | 'enhanced_weathering' | 'marine_carbon_removal' | OtherString;
}
export declare namespace Climate {
interface SupplierRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
export declare namespace Climate {
interface SupplierListParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}