Class CreditNoteCreateParams.CreditNoteCreateBuilder
java.lang.Object
com.chargebee.v4.models.creditNote.params.CreditNoteCreateParams.CreditNoteCreateBuilder
- Enclosing class:
- CreditNoteCreateParams
-
Method Summary
Modifier and TypeMethodDescriptionbuild()createReasonCode(String value) currencyCode(String value) customerId(String value) customerNotes(String value) customField(String fieldName, String value) Add a custom field to the request.customFields(Map<String, String> customFields) Add multiple custom fields to the request.referenceInvoiceId(String value) type(CreditNoteCreateParams.Type value)
-
Method Details
-
referenceInvoiceId
-
customerId
-
total
-
type
-
reasonCode
public CreditNoteCreateParams.CreditNoteCreateBuilder reasonCode(CreditNoteCreateParams.ReasonCode value) -
createReasonCode
-
date
-
customerNotes
-
currencyCode
-
comment
-
lineItems
public CreditNoteCreateParams.CreditNoteCreateBuilder lineItems(List<CreditNoteCreateParams.LineItemsParams> value) -
customField
Add a custom field to the request. Custom fields must start with "cf_".- Parameters:
fieldName- the name of the custom field (e.g., "cf_custom_field_name")value- the value of the custom field- Returns:
- this builder
- Throws:
IllegalArgumentException- if fieldName doesn't start with "cf_"
-
customFields
Add multiple custom fields to the request. All field names must start with "cf_".- Parameters:
customFields- map of custom field names to values- Returns:
- this builder
- Throws:
IllegalArgumentException- if any field name doesn't start with "cf_"
-
build
-