Receipt wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (appliedAmount -> Applied_Amount__c)

Method Summary

Modifier and Type Method and Description
Receipt getInstance()
Receipt getInstance(OrderApi__Receipt__c receipt)
List<Receipt> getInstance(List receiptObjs)
List<ReceiptLine> getInstance(List receiptObjs,String className)
void Receipt()
void fromSObject(SObject receiptObj)
void toSObject()

Method Detail

This class supports the following methods:

global static Receipt getInstance()

Get base instance with no initial S0bject.


global static Receipt getInstance(OrderApi__Receipt__c receipt)

Get base instance with an initial SObject.
Parameters

Name Type Description
receipt OrderApi__Receipt__c OrderApi__Receipt__c

global static List<Receipt> getInstance(List<OrderApi__Receipt__c> receiptObjs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
receiptObjs List<OrderApi__Receipt__c> List

global static List<Receipt> getInstance(List<OrderApi__Receipt__c> receiptObjs,String className)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
receiptObjs List<OrderApi__Receipt__c> List
className String undefined

global Receipt()

Receipt Constructor that should not be called directly.


global virtual override void fromSObject(SObject receiptObj)

Parameters

Name Type Description
receiptObj SObject undefined

global virtual override SObject toSObject()

Properties

Name Type Description
actionInformation String
id Id
batch Id
businessGroup Id
contact Id
customer String
calculateBillingDetails Boolean
calculateMemo Boolean
calculateShippingDetails Boolean
name String
entity String
balance Decimal
postedDate Date
receiptDate Date
appliedAmount Decimal
epayment Id
salesOrder Id
paymentMethodDescription String
gatewayTransactionId String
memo String
paymentMethod Id
paymentGateway Id
total Decimal
isRefund Boolean
isPayment Boolean
isPosted Boolean
processRefund Boolean
currencyISOCode String
type String
sourceCode Id
shippingStreet String
paymentType String
shippingState String
shippingPostalCode String
shippingCountry String
shippingContact String
shippingCity String
billingStreet String
billingState String
billingPostalCode String
billingCountry String
billingContact String
billingCity String
refund Boolean
referenceNumber String
receipt Id
depositAccount Id
receiptLines List