NAME
Net::API::Stripe::Billing::CreditNote::LineItem - Stripe API Credit note Line Item Object
SYNOPSIS
VERSION
0.1
DESCRIPTION
CONSTRUCTOR
- new( %arg )
-
Creates a new
Net::API::Stripe::Billing::CreditNote::LineItem
objects. It may also take an hash like arguments, that also are method of the same name.- debug
-
Toggles debug mode on/off
METHODS
- id() string
-
Unique identifier for the object.
- object() string, value is "credit_note_line_item"
-
String representing the object’s type. Objects of the same type share the same value.
- amount() integer
-
The integer amount in JPY representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
- description() string
-
Description of the item being credited.
- discount_amount() integer
-
The integer amount in JPY representing the discount being credited for this line item.
- invoice_line_item() string
-
ID of the invoice line item being credited
- livemode() boolean
-
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
- quantity() integer
-
The number of units of product being credited.
- tax_amounts() array of objects
-
The amount of tax calculated per tax rate for this line item.
This is a dynamic class with the following properties:
- tax_rates() array of
Net::API::Stripe::Tax::Rate
objects -
The tax rates which apply to the line item.
- type() string
-
The type of the credit note line item, one of custom_line_item or invoice_line_item. When the type is invoice_line_item there is an additional invoice_line_item property on the resource the value of which is the id of the credited line item on the invoice.
- unit_amount() integer
-
The cost of each unit of product being credited.
- unit_amount_decimal() decimal string
-
Same as unit_amount, but contains a decimal value with at most 12 decimal places.
API SAMPLE
{
"id": "cnli_1G47bpCeyNCl6fY2uOLkJD9x",
"object": "credit_note_line_item",
"amount": 1000,
"description": "My First Invoice Item (created for API docs)",
"discount_amount": 0,
"invoice_line_item": "il_1G47bpCeyNCl6fY2HsPtoc57",
"livemode": false,
"quantity": 1,
"tax_amounts": [],
"tax_rates": [],
"type": "invoice_line_item",
"unit_amount": null,
"unit_amount_decimal": null
}
HISTORY
v0.1
Initial version
STRIPE HISTORY
2019-12-03
The id field of all invoice line items have changed and are now prefixed with il_. The new id has consistent prefixes across all line items, is globally unique, and can be used for pagination.
You can no longer use the prefix of the id to determine the source of the line item. Instead use the type field for this purpose.
For lines with type=invoiceitem, use the invoice_item field to reference or update the originating Invoice Item object.
The Invoice Line Item object on earlier API versions also have a unique_id field to be used for migrating internal references before upgrading to this version.
When setting a tax rate to individual line items, use the new id. Users on earlier API versions can pass in either a line item id or unique_id.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
COPYRIGHT & LICENSE
Copyright (c) 2020 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 90:
You forgot a '=back' before '=head1'