Package com.onslip360
Class API.Receipt
- java.lang.Object
-
- com.onslip360.Onslip360Object<API.Receipt>
-
- com.onslip360.API.Receipt
-
- All Implemented Interfaces:
Cloneable
,Comparable<Onslip360Object<API.Receipt>>
- Enclosing class:
- API
public static class API.Receipt extends Onslip360Object<API.Receipt>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
API.Receipt.Type
-
Constructor Summary
Constructors Constructor Description Receipt(Double change, String id, API.Item[] items, API.Payment[] payments, Double rounding, Double totalAmount, Double totalVatAmount, API.Receipt.Type type, API.VATSummary[] vatSummaries)
-
Method Summary
-
Methods inherited from class com.onslip360.Onslip360Object
clone, compareTo, equals, fromJson, fromJson, fromJsonArray, fromJsonArray, fromList, fromMap, fromObject, getExtended, hashCode, setExtended, setExtended, toJson, toJson, toJson, toJson, toList, toMap, toString
-
-
-
-
Constructor Detail
-
Receipt
public Receipt(Double change, String id, API.Item[] items, API.Payment[] payments, Double rounding, Double totalAmount, Double totalVatAmount, API.Receipt.Type type, API.VATSummary[] vatSummaries)
-
-
Method Detail
-
change
@Nonnull public Double change()
-
customer
@Nonnull public Optional<API.Customer> customer()
-
id
@Nonnull public String id()
-
items
@Nonnull public API.Item[] items()
-
payments
@Nonnull public API.Payment[] payments()
-
rounding
@Nonnull public Double rounding()
-
totalAmount
@Nonnull public Double totalAmount()
-
totalVatAmount
@Nonnull public Double totalVatAmount()
-
type
@Nonnull public API.Receipt.Type type()
-
vatSummaries
@Nonnull public API.VATSummary[] vatSummaries()
-
change
@Nonnull public API.Receipt change(Double change)
-
customer
@Nonnull public API.Receipt customer(@Nullable API.Customer customer)
-
id
@Nonnull public API.Receipt id(String id)
-
items
@Nonnull public API.Receipt items(API.Item[] items)
-
order
@Nonnull public API.Receipt order(@Nullable Long order)
-
ourReference
@Nonnull public API.Receipt ourReference(@Nullable String ourReference)
-
payments
@Nonnull public API.Receipt payments(API.Payment[] payments)
-
reference
@Nonnull public API.Receipt reference(@Nullable String reference)
-
rounding
@Nonnull public API.Receipt rounding(Double rounding)
-
tab
@Nonnull public API.Receipt tab(@Nullable Long tab)
-
totalAmount
@Nonnull public API.Receipt totalAmount(Double totalAmount)
-
totalSalesAmount
@Nonnull public API.Receipt totalSalesAmount(@Nullable Double totalSalesAmount)
-
totalSalesVatAmount
@Nonnull public API.Receipt totalSalesVatAmount(@Nullable Double totalSalesVatAmount)
-
totalVatAmount
@Nonnull public API.Receipt totalVatAmount(Double totalVatAmount)
-
type
@Nonnull public API.Receipt type(API.Receipt.Type type)
-
vatSummaries
@Nonnull public API.Receipt vatSummaries(API.VATSummary[] vatSummaries)
-
-