mirror of
https://github.com/stoatchat/rust-mollie-sdk.git
synced 2026-07-01 05:09:43 -04:00
25 lines
3.0 KiB
Markdown
25 lines
3.0 KiB
Markdown
# EntityPaymentResponseLinesInner
|
||
|
||
## Properties
|
||
|
||
Name | Type | Description | Notes
|
||
------------ | ------------- | ------------- | -------------
|
||
**r#type** | Option<[**models::PaymentLineTypeResponse**](payment-line-type-response.md)> | | [optional]
|
||
**description** | **String** | A description of the line item. For example *LEGO 4440 Forest Police Station*. |
|
||
**quantity** | **i32** | The number of items. |
|
||
**quantity_unit** | Option<**String**> | The unit for the quantity. For example *pcs*, *kg*, or *cm*. | [optional]
|
||
**unit_price** | [**models::Amount**](amount.md) | The price of a single item including VAT. For example: `{\"currency\":\"EUR\", \"value\":\"89.00\"}` if the box of LEGO costs €89.00 each. For types `discount`, `store_credit`, and `gift_card`, the unit price must be negative. The unit price can be zero in case of free items. |
|
||
**discount_amount** | Option<[**models::Amount**](amount.md)> | Any line-specific discounts, as a positive amount. Not relevant if the line itself is already a discount type. | [optional]
|
||
**total_amount** | [**models::Amount**](amount.md) | The total amount of the line, including VAT and discounts. Should match the following formula: `(unitPrice × quantity) - discountAmount`. The sum of all `totalAmount` values of all order lines should be equal to the full payment amount. |
|
||
**vat_rate** | Option<**String**> | The VAT rate applied to the line, for example `21.00` for 21%. The vatRate should be passed as a string and not as a float, to ensure the correct number of decimals are passed. | [optional]
|
||
**vat_amount** | Option<[**models::Amount**](amount.md)> | The amount of value-added tax on the line. The `totalAmount` field includes VAT, so the `vatAmount` can be calculated with the formula `totalAmount × (vatRate / (100 + vatRate))`. Any deviations from this will result in an error. For example, for a `totalAmount` of SEK 100.00 with a 25.00% VAT rate, we expect a VAT amount of `SEK 100.00 × (25 / 125) = SEK 20.00`. | [optional]
|
||
**sku** | Option<**String**> | The SKU, EAN, ISBN or UPC of the product sold. | [optional]
|
||
**categories** | Option<[**Vec<models::LineCategoriesResponse>**](line-categories-response.md)> | An array with the voucher categories, in case of a line eligible for a voucher. See the [Integrating Vouchers](https://docs.mollie.com/docs/integrating-vouchers/) guide for more information. | [optional]
|
||
**image_url** | Option<**String**> | A link pointing to an image of the product sold. | [optional]
|
||
**product_url** | Option<**String**> | A link pointing to the product page in your web shop of the product sold. | [optional]
|
||
**recurring** | Option<[**models::RecurringLineItem**](recurring-line-item.md)> | The details of subsequent recurring billing cycles. These parameters are used in the Mollie Checkout to inform the shopper of the details for recurring products in the payments. | [optional]
|
||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||
|
||
|