Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 2.58 KB

File metadata and controls

36 lines (27 loc) · 2.58 KB

LinkByCalculationRequest

Properties

Name Type Description Notes
calculation_options List[PendingByCalculationRequestCalculationOptionsInner] An Array of Calculation Options. See the full list of supported options here.
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]
fractional_digits int Normally, the calculation results are rounded to the nearest whole number. Specify here how many decimal places you would like to receive in addition. This only applies to calculation results, compensations are always made in whole kilograms [optional] [default to 2]
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_calculation_request import LinkByCalculationRequest

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

# convert the object into a dict
link_by_calculation_request_dict = link_by_calculation_request_instance.to_dict()
# create an instance of LinkByCalculationRequest from a dict
link_by_calculation_request_from_dict = LinkByCalculationRequest.from_dict(link_by_calculation_request_dict)

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