getProtectionEligibility() 공개 메소드

The level of seller protection in force for the transaction. Only supported when the payment_method is set to paypal. Allowed values:
ELIGIBLE- Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received.
PARTIALLY_ELIGIBLE- Merchant is protected by PayPal's Seller Protection Policy for Item Not Received or Unauthorized Payments. Refer to protection_eligibility_type for specifics.
INELIGIBLE- Merchant is not protected under the Seller Protection Policy.
public getProtectionEligibility ( ) : string
리턴 string
예제 #1
0
 /**
  * @depends testSerializationDeserialization
  * @param Authorization $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getPaymentMode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReasonCode(), "TestSample");
     $this->assertEquals($obj->getPendingReason(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibility(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibilityType(), "TestSample");
     $this->assertEquals($obj->getFmfDetails(), FmfDetailsTest::getObject());
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getValidUntil(), "TestSample");
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }