1.25.1 • Published 6 months ago

@kofile/react-order-receipt v1.25.1

Weekly downloads
14
License
MIT
Repository
github
Last release
6 months ago

React Order Receipt

A reusable, configurable React component

Cosmos - Developer Sandbox

Usage:

  • Run cosmos
  • Visit http://localhost:8989/
  • Experiment with different input props by creating or modifying the __fixtures__.
  • Make changes to src/? yarn build to see your changes.
  • Cosmos docs for more details.

Props

Root Level

NameTypeRequiredDescription
countyCounty⭕️County info
refundInfoRefundInfo⭕️For display above receipt table
purchasedBystringFull name of user who requested refund
orderDateDateDate order was placed
orderIdstringID of order
lineItemsLineItemdescription
subtotalnumberSum price of each line item
convenienceFeenumberConvenience fee amount
totalPricenumberGrand total = subtotal + fees
subtotalRefundednumber⭕️Sum price of each refunded item (without fees)
feesRefundednumber⭕️Sum of all refunded fees
totalRefundAmountnumberTotal amount refunded = subtotalRefunded + feesRefunded
nonInteractivebooleanAre checkboxes and actions available?
convenienceFeeTypeConvenienceFeeTypesAre fees calculated "per-order" or "per-document"
showRefundDescriptionbooleanShould refund description be shown in each line item?
showSimpleRefundStatusbooleanShould "completed-" prefix be omitted?
showRefundStatusbooleanShould refund status column be displayed?
zipLinkILink⭕️Download link for zip file

County

NameTypeRequiredDescription
name?:string⭕️County name, e.g. "Grayson"
sealUrl?:string⭕️URL for county seal image
clerkName?:string⭕️Full name of clerk
addressLine1?:string⭕️Street Address
addressLine2?:string⭕️City, State

RefundInfo

NameTypeRequiredDescription
requestedBystringFull name of user who requested refund
amountnumberTotal amount being refunded
numItemsnumberDocuments being refunded
descriptionstringReason for refund

ILink

NameTypeRequiredDescription
errorstringdescription of error
linkstringURI for download
isLoadingbooleanIs this component waiting for data?

LineItem

NameTypeRequiredDescription
idnumberItem ID
instrumentNumberstringInstrument number
documentTypestringDocument type, e.g. "FORECLOSURE NOTICE"
typestringItem type, e.g. "docimage"
pagesPurchasedstringPage range, e.g. "all" or "1-2, 4"
totalPagesInDocumentnumberTotal number of pages in document
downloadLinkILink⭕️Link to download document
priceCentsnumberPrice in cents
refundStatusRefundStatuses⭕️The refund status for this item
refundDescriptionstring⭕️Reason refund was requested
refundRequestedBystring⭕️Full name of person requesting refund

ConvenienceFeeTypes

EnumType
"per-order"string
"per-document"string

RefundStatuses

EnumType
"approved"string
"rejected"string
"submitted"string
"completed-approved"string
"completed-rejected"string
"none"string
1.25.0

7 months ago

1.25.1

6 months ago

1.24.1

7 months ago

1.23.3

2 years ago

1.23.2

3 years ago

1.23.0

3 years ago

1.23.1

3 years ago

1.22.0

3 years ago

1.21.0

3 years ago

1.21.1

3 years ago

1.21.2

3 years ago

1.19.0

3 years ago

1.20.0

3 years ago

1.18.0

3 years ago

1.17.3

4 years ago

1.17.2

5 years ago

1.17.1

5 years ago

1.17.0

5 years ago

1.16.2

5 years ago

1.16.1

5 years ago

1.16.0

5 years ago

1.15.3

5 years ago

1.15.2

5 years ago

1.15.1

5 years ago

1.15.0

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.1

5 years ago

1.11.0

5 years ago

1.10.0

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago