Invoice

Invoice is a React Component for displaying the invoice section on the orders sideview

Source:

Extends

Members

(inner) Invoice propTypes :propTypes

Source:
Properties:
Name Type Description
invoice Object

An object representing an invoice

order Object

An object representing an order

discounts Bool

A boolean indicating whether discounts are enabled

refunds Array

An array/list of refunds

paymentCaptured Bool

A boolean indicating whether payment has been captured

canMakeAdjustments Bool

A boolean indicating whether adjustments could be made on total payment

hasRefundingEnabled Bool

A boolean indicating whether payment supports refunds

isFetching Bool

A boolean indicating whether refund list is being loaded

Type:
  • propTypes

Methods

(inner) formatDate()(context, block) → {String}

Formats dates

Source:
Parameters:
Name Type Description
context Number

the date to be formatted

block String

the preferred format

Returns:

formatted date

Type
String

(inner) handleClick()(event) → {null}

Handle clicking the add discount link

Source:
Parameters:
Name Type Description
event Event

the event that fired

Returns:

null

Type
null

(inner) renderConditionalDisplay()() → {null}

Displays either refunds info or the total payment form

Source:
Returns:

null

Type
null

(inner) renderDiscountForm()() → {null}

Displays the discount form

Source:
Returns:

null

Type
null

(inner) renderInvoice()() → {null}

Displays the invoice form with broken down payment info

Source:
Returns:

null

Type
null

(inner) renderRefundsInfo()() → {null}

Displays the refund information after the order payment breakdown on the invoice

Source:
Returns:

null

Type
null

(inner) renderTotal()() → {null}

Displays the total payment form

Source:
Returns:

null

Type
null