2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: invoice
|
|
|
|
description: Goods invoice
|
2018-04-04 19:52:48 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
2018-04-05 01:19:57 +02:00
|
|
|
# Constructor: invoice
|
2018-04-01 13:19:25 +02:00
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goods invoice
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|currency|[string](../types/string.md) | Yes|ISO 4217 currency code|
|
|
|
|
|prices|Array of [labeledPrice](../constructors/labeledPrice.md) | Yes|List of objects used to calculate total price|
|
|
|
|
|is\_test|[Bool](../types/Bool.md) | Yes|True, if payment is test|
|
|
|
|
|need\_name|[Bool](../types/Bool.md) | Yes|True, if user's name is needed for payment|
|
|
|
|
|need\_phone\_number|[Bool](../types/Bool.md) | Yes|True, if user's phone number is needed for payment|
|
|
|
|
|need\_email|[Bool](../types/Bool.md) | Yes|True, if user's email is needed for payment|
|
|
|
|
|need\_shipping\_address|[Bool](../types/Bool.md) | Yes|True, if user's shipping address is needed for payment|
|
|
|
|
|is\_flexible|[Bool](../types/Bool.md) | Yes|True, if total price depends on shipping method|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Invoice](../types/Invoice.md)
|
|
|
|
|
|
|
|
|