Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CustomLineItemChargeDetails = CustomLineItemChargeDetails' {}
- newCustomLineItemChargeDetails :: CustomLineItemType -> CustomLineItemChargeDetails
- customLineItemChargeDetails_flat :: Lens' CustomLineItemChargeDetails (Maybe CustomLineItemFlatChargeDetails)
- customLineItemChargeDetails_percentage :: Lens' CustomLineItemChargeDetails (Maybe CustomLineItemPercentageChargeDetails)
- customLineItemChargeDetails_type :: Lens' CustomLineItemChargeDetails CustomLineItemType
Documentation
data CustomLineItemChargeDetails Source #
The charge details of a custom line item. It should contain only one of
Flat
or Percentage
.
See: newCustomLineItemChargeDetails
smart constructor.
CustomLineItemChargeDetails' | |
|
Instances
newCustomLineItemChargeDetails Source #
Create a value of CustomLineItemChargeDetails
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:flat:CustomLineItemChargeDetails'
, customLineItemChargeDetails_flat
- A CustomLineItemFlatChargeDetails
that describes the charge details of
a flat custom line item.
$sel:percentage:CustomLineItemChargeDetails'
, customLineItemChargeDetails_percentage
- A CustomLineItemPercentageChargeDetails
that describes the charge
details of a percentage custom line item.
$sel:type':CustomLineItemChargeDetails'
, customLineItemChargeDetails_type
- The type of the custom line item that indicates whether the charge is a
fee or credit.
customLineItemChargeDetails_flat :: Lens' CustomLineItemChargeDetails (Maybe CustomLineItemFlatChargeDetails) Source #
A CustomLineItemFlatChargeDetails
that describes the charge details of
a flat custom line item.
customLineItemChargeDetails_percentage :: Lens' CustomLineItemChargeDetails (Maybe CustomLineItemPercentageChargeDetails) Source #
A CustomLineItemPercentageChargeDetails
that describes the charge
details of a percentage custom line item.
customLineItemChargeDetails_type :: Lens' CustomLineItemChargeDetails CustomLineItemType Source #
The type of the custom line item that indicates whether the charge is a fee or credit.