PayPal\Api\TemplateData::getCustom PHP Method

getCustom() public method

The custom amount to apply on an invoice. If you include a label, the amount cannot be empty.
public getCustom ( ) : CustomAmount
return CustomAmount
    public function getCustom()
    {
        return $this->custom;
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param TemplateData $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getMerchantInfo(), MerchantInfoTest::getObject());
     $this->assertEquals($obj->getBillingInfo(), BillingInfoTest::getObject());
     $this->assertEquals($obj->getShippingInfo(), ShippingInfoTest::getObject());
     $this->assertEquals($obj->getItems(), InvoiceItemTest::getObject());
     $this->assertEquals($obj->getPaymentTerm(), PaymentTermTest::getObject());
     $this->assertEquals($obj->getReference(), "TestSample");
     $this->assertEquals($obj->getDiscount(), CostTest::getObject());
     $this->assertEquals($obj->getShippingCost(), ShippingCostTest::getObject());
     $this->assertEquals($obj->getCustom(), CustomAmountTest::getObject());
     $this->assertEquals($obj->getAllowPartialPayment(), true);
     $this->assertEquals($obj->getMinimumAmountDue(), CurrencyTest::getObject());
     $this->assertEquals($obj->getTaxCalculatedAfterDiscount(), true);
     $this->assertEquals($obj->getTaxInclusive(), true);
     $this->assertEquals($obj->getTerms(), "TestSample");
     $this->assertEquals($obj->getNote(), "TestSample");
     $this->assertEquals($obj->getMerchantMemo(), "TestSample");
     $this->assertEquals($obj->getLogoUrl(), "http://www.google.com");
     $this->assertEquals($obj->getTotalAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getAttachments(), FileAttachmentTest::getObject());
 }