Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 2.01 KB

File metadata and controls

35 lines (26 loc) · 2.01 KB

LinkByCarbonRequest

Properties

Name Type Description Notes
kg_co2e int The amount of kg CO2e the compensation should provide
change_allowed bool Choose if the customer should be allowed to change the amount. [optional] [default to False]
success_url str The URL the customer is redirected to after the successful compensation.
cancel_url str The URL the customer is redirected to after a failed or aborted compensation.
order_count int The amount of pending Orders you want to receive. This is especially useful if you want to offer your customers several different projects for their compensation. [optional] [default to 1]
metadata Dict[str, str] Add additional queryable information to the order as key-value pairs [optional]
payment_type str With default we will automatically provide payment methods based on the customers location, use invoice to enable payment by invoice for the given link. Please note that invoice bank transfer is only available if X-CURRENCY is set to EUR. The invoice can always be paid by card. [optional] [default to 'default']

Example

from klimapi_python.models.link_by_carbon_request import LinkByCarbonRequest

# TODO update the JSON string below
json = "{}"
# create an instance of LinkByCarbonRequest from a JSON string
link_by_carbon_request_instance = LinkByCarbonRequest.from_json(json)
# print the JSON string representation of the object
print(LinkByCarbonRequest.to_json())

# convert the object into a dict
link_by_carbon_request_dict = link_by_carbon_request_instance.to_dict()
# create an instance of LinkByCarbonRequest from a dict
link_by_carbon_request_from_dict = LinkByCarbonRequest.from_dict(link_by_carbon_request_dict)

[Back to Model list] [Back to API list] [Back to README]