Class CustomerBill
java.lang.Object
de.hybris.platform.tuawebservicesresources.v2.dto.CustomerBill
The billing account receives all charges (recurring, one time and usage) of the offers and products assigned to it during order process. Periodically according to billing cycle specifications attached to the billing account or as a result of an event, a customer bill (aka invoice) is produced. This customer bill concerns different related parties which play a role on it : for example, a customer bill is produced by an operator, is sent to a bill receiver and has to be paid by a payer. A payment method could be assigned to the customer bill to build the call of payment. Lettering process enables to assign automatically or manually incoming amount from payments to customer bills (payment items). A tax item is created for each tax rate used in the customer bill. The financial account represents a financial entity which records all customer’s accounting events : payment amount are recorded as credit and invoices amount are recorded as debit. It gives the customer overall balance (account balance). The customer bill is linked to one or more documents that can be downloaded via a provided url.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAppliedPaymentItem(AppliedPayment appliedPaymentItem) addBillDocumentItem(AttachmentRefOrValue billDocumentItem) addRelatedPartyItem(RelatedPartyRef relatedPartyItem) addTaxItemItem(TaxItem taxItemItem) appliedPayment(List<AppliedPayment> appliedPayment) atBaseType(String atBaseType) atSchemaLocation(String atSchemaLocation) billDocument(List<AttachmentRefOrValue> billDocument) billingAccount(BillingAccountRef billingAccount) billingPeriod(TimePeriod billingPeriod) booleanfinancialAccount(FinancialAccountRef financialAccount) @Valid MoneyGet amountDue@Valid List<AppliedPayment>Get appliedPaymentWhen sub-classing, this defines the super-classA URI to a JSON-Schema file that defines additional attributes and relationshipsWhen sub-classing, this defines the sub-class entity name@Valid DateBill date@Valid List<AttachmentRefOrValue>Get billDocument@Valid BillingAccountRefGet billingAccount@Valid TimePeriodGet billingPeriodBill reference known by the customer or the party and displayed on the bill.Category of the bill produced : normal, duplicate, interim, last, trial customer or credit note for example@Valid FinancialAccountRefGet financialAccountgetHref()Bill unique referencegetId()Unique identifier of he bill@Valid DateDate of bill last update@Valid Date).@Valid DateDate at which the amount due should have been paid@Valid PaymentMethodRefGet paymentMethod@Valid List<RelatedPartyRef>Get relatedParty@Valid MoneyGet remainingAmountonCycle (a bill can be created as a result of a cycle run) or offCycle (a bill can be created as a result of other events such as customer request or account close)@Valid StateValuegetState()Get state@Valid MoneyGet taxExcludedAmount@Valid MoneyGet taxIncludedAmountGet taxIteminthashCode()lastUpdate(Date lastUpdate) nextBillDate(Date nextBillDate) paymentDueDate(Date paymentDueDate) paymentMethod(PaymentMethodRef paymentMethod) relatedParty(List<RelatedPartyRef> relatedParty) remainingAmount(Money remainingAmount) voidsetAmountDue(Money amountDue) voidsetAppliedPayment(List<AppliedPayment> appliedPayment) voidsetAtBaseType(String atBaseType) voidsetAtSchemaLocation(String atSchemaLocation) voidvoidsetBillDate(Date billDate) voidsetBillDocument(List<AttachmentRefOrValue> billDocument) voidsetBillingAccount(BillingAccountRef billingAccount) voidsetBillingPeriod(TimePeriod billingPeriod) voidvoidsetCategory(String category) voidsetFinancialAccount(FinancialAccountRef financialAccount) voidvoidvoidsetLastUpdate(Date lastUpdate) voidsetNextBillDate(Date nextBillDate) voidsetPaymentDueDate(Date paymentDueDate) voidsetPaymentMethod(PaymentMethodRef paymentMethod) voidsetRelatedParty(List<RelatedPartyRef> relatedParty) voidsetRemainingAmount(Money remainingAmount) voidsetRunType(String runType) voidsetState(StateValue state) voidsetTaxExcludedAmount(Money taxExcludedAmount) voidsetTaxIncludedAmount(Money taxIncludedAmount) voidsetTaxItem(List<TaxItem> taxItem) state(StateValue state) taxExcludedAmount(Money taxExcludedAmount) taxIncludedAmount(Money taxIncludedAmount) toString()
-
Constructor Details
-
CustomerBill
public CustomerBill()
-
-
Method Details
-
id
-
getId
Unique identifier of he bill- Returns:
- id
-
setId
-
href
-
getHref
Bill unique reference- Returns:
- href
-
setHref
-
billDate
-
getBillDate
Bill date- Returns:
- billDate
-
setBillDate
-
billNo
-
getBillNo
Bill reference known by the customer or the party and displayed on the bill. Could be different from the id- Returns:
- billNo
-
setBillNo
-
category
-
getCategory
Category of the bill produced : normal, duplicate, interim, last, trial customer or credit note for example- Returns:
- category
-
setCategory
-
lastUpdate
-
getLastUpdate
Date of bill last update- Returns:
- lastUpdate
-
setLastUpdate
-
nextBillDate
-
getNextBillDate
). Approximate date of the next bill production given for information (only used for onCycle bill)- Returns:
- nextBillDate
-
setNextBillDate
-
paymentDueDate
-
getPaymentDueDate
Date at which the amount due should have been paid- Returns:
- paymentDueDate
-
setPaymentDueDate
-
runType
-
getRunType
onCycle (a bill can be created as a result of a cycle run) or offCycle (a bill can be created as a result of other events such as customer request or account close)- Returns:
- runType
-
setRunType
-
amountDue
-
getAmountDue
Get amountDue- Returns:
- amountDue
-
setAmountDue
-
appliedPayment
-
addAppliedPaymentItem
-
getAppliedPayment
Get appliedPayment- Returns:
- appliedPayment
-
setAppliedPayment
-
billDocument
-
addBillDocumentItem
-
getBillDocument
Get billDocument- Returns:
- billDocument
-
setBillDocument
-
billingAccount
-
getBillingAccount
Get billingAccount- Returns:
- billingAccount
-
setBillingAccount
-
billingPeriod
-
getBillingPeriod
Get billingPeriod- Returns:
- billingPeriod
-
setBillingPeriod
-
financialAccount
-
getFinancialAccount
Get financialAccount- Returns:
- financialAccount
-
setFinancialAccount
-
paymentMethod
-
getPaymentMethod
Get paymentMethod- Returns:
- paymentMethod
-
setPaymentMethod
-
addRelatedPartyItem
-
getRelatedParty
Get relatedParty- Returns:
- relatedParty
-
setRelatedParty
-
remainingAmount
-
getRemainingAmount
Get remainingAmount- Returns:
- remainingAmount
-
setRemainingAmount
-
state
-
getState
Get state- Returns:
- state
-
setState
-
taxExcludedAmount
-
getTaxExcludedAmount
Get taxExcludedAmount- Returns:
- taxExcludedAmount
-
setTaxExcludedAmount
-
taxIncludedAmount
-
getTaxIncludedAmount
Get taxIncludedAmount- Returns:
- taxIncludedAmount
-
setTaxIncludedAmount
-
taxItem
-
addTaxItemItem
-
getTaxItem
Get taxItem- Returns:
- taxItem
-
setTaxItem
-
atBaseType
-
getAtBaseType
When sub-classing, this defines the super-class- Returns:
- atBaseType
-
setAtBaseType
-
atSchemaLocation
-
getAtSchemaLocation
A URI to a JSON-Schema file that defines additional attributes and relationships- Returns:
- atSchemaLocation
-
setAtSchemaLocation
-
atType
-
getAtType
When sub-classing, this defines the sub-class entity name- Returns:
- atType
-
setAtType
-
equals
-
hashCode
public int hashCode() -
toString
-