github.com/stripe/stripe-go/v76@v76.25.0/climate_supplier.go (about) 1 // 2 // 3 // File generated from our OpenAPI spec 4 // 5 // 6 7 package stripe 8 9 // The scientific pathway used for carbon removal. 10 type ClimateSupplierRemovalPathway string 11 12 // List of values that ClimateSupplierRemovalPathway can take 13 const ( 14 ClimateSupplierRemovalPathwayBiomassCarbonRemovalAndStorage ClimateSupplierRemovalPathway = "biomass_carbon_removal_and_storage" 15 ClimateSupplierRemovalPathwayDirectAirCapture ClimateSupplierRemovalPathway = "direct_air_capture" 16 ClimateSupplierRemovalPathwayEnhancedWeathering ClimateSupplierRemovalPathway = "enhanced_weathering" 17 ClimateSupplierRemovalPathwayVarious ClimateSupplierRemovalPathway = "various" 18 ) 19 20 // Lists all available Climate supplier objects. 21 type ClimateSupplierListParams struct { 22 ListParams `form:"*"` 23 // Specifies which fields in the response should be expanded. 24 Expand []*string `form:"expand"` 25 } 26 27 // AddExpand appends a new field to expand. 28 func (p *ClimateSupplierListParams) AddExpand(f string) { 29 p.Expand = append(p.Expand, &f) 30 } 31 32 // Retrieves a Climate supplier object. 33 type ClimateSupplierParams struct { 34 Params `form:"*"` 35 // Specifies which fields in the response should be expanded. 36 Expand []*string `form:"expand"` 37 } 38 39 // AddExpand appends a new field to expand. 40 func (p *ClimateSupplierParams) AddExpand(f string) { 41 p.Expand = append(p.Expand, &f) 42 } 43 44 // The locations in which this supplier operates. 45 type ClimateSupplierLocation struct { 46 // The city where the supplier is located. 47 City string `json:"city"` 48 // Two-letter ISO code representing the country where the supplier is located. 49 Country string `json:"country"` 50 // The geographic latitude where the supplier is located. 51 Latitude float64 `json:"latitude"` 52 // The geographic longitude where the supplier is located. 53 Longitude float64 `json:"longitude"` 54 // The state/county/province/region where the supplier is located. 55 Region string `json:"region"` 56 } 57 58 // A supplier of carbon removal. 59 type ClimateSupplier struct { 60 APIResource 61 // Unique identifier for the object. 62 ID string `json:"id"` 63 // Link to a webpage to learn more about the supplier. 64 InfoURL string `json:"info_url"` 65 // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. 66 Livemode bool `json:"livemode"` 67 // The locations in which this supplier operates. 68 Locations []*ClimateSupplierLocation `json:"locations"` 69 // Name of this carbon removal supplier. 70 Name string `json:"name"` 71 // String representing the object's type. Objects of the same type share the same value. 72 Object string `json:"object"` 73 // The scientific pathway used for carbon removal. 74 RemovalPathway ClimateSupplierRemovalPathway `json:"removal_pathway"` 75 } 76 77 // ClimateSupplierList is a list of Suppliers as retrieved from a list endpoint. 78 type ClimateSupplierList struct { 79 APIResource 80 ListMeta 81 Data []*ClimateSupplier `json:"data"` 82 }