PayPal\Api\ItemList::getShippingMethod PHP Méthode

getShippingMethod() public méthode

Shipping method used for this payment like USPSParcel etc.
public getShippingMethod ( ) : string
Résultat string
    public function getShippingMethod()
    {
        return $this->shipping_method;
    }

Usage Example

Exemple #1
0
 /**
  * @depends testSerializationDeserialization
  * @param ItemList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getItems(), ItemTest::getObject());
     $this->assertEquals($obj->getShippingAddress(), ShippingAddressTest::getObject());
     $this->assertEquals($obj->getShippingMethod(), "TestSample");
     $this->assertEquals($obj->getShippingPhoneNumber(), "TestSample");
 }