@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
43 lines (42 loc) • 1.27 kB
text/typescript
export interface CreateInvoiceItemRequest {
/**
* The amount of the charge or credit. Decimal. Required when `quantity` and `unit_amount` are not provided.
*/
amount?: number;
/**
* Three-letter ISO 4217 code for the currency used in the `amount` and `unit_amount` fields. Uppercase.
*/
currency: string;
/**
* ID of the customer.
*/
customer: string;
/**
* Description of the line item.
*/
description?: string;
/**
* Determines whether this line item is subject to discounts.
*/
discountable?: boolean;
/**
* ID of the invoice that this invoice item is assigned to. Relevant when `subscription` is not set.
*/
invoice?: string;
/**
* A JSON object defined by the client.
*/
metadata?: object;
/**
* Indicates the number of units charged as a single line item. Required when `amount` is not provided
*/
quantity?: number;
/**
* ID of the subscription to assign this invoice item to. By default, the invoice item is assigned to the subscription whose current billing cycle ends first. Relevant when `invoice` is not set.
*/
subscription?: string;
/**
* Per-unit price of the product or service. Required when `amount` is not provided. Decimal.
*/
unit_amount?: number;
};