Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (PaymentTokenInterface $paymentToken=null, Address $shippingAddress=null, Address $billingAddress=null, ShippingMethodInterface $shippingMethod=null) | |
isAvailable () | |
getPaymentToken () | |
getShippingAddress () | |
getBillingAddress () | |
getShippingMethod () | |
Option to make instant purchase.
@api
Definition at line 21 of file InstantPurchaseOption.php.
__construct | ( | PaymentTokenInterface | $paymentToken = null , |
Address | $shippingAddress = null , |
||
Address | $billingAddress = null , |
||
ShippingMethodInterface | $shippingMethod = null |
||
) |
InstantPurchaseOption constructor.
PaymentTokenInterface | null | $paymentToken | |
Address | null | $shippingAddress | |
Address | null | $billingAddress | |
ShippingMethodInterface | null | $shippingMethod |
InvalidArgumentException | if invalid data provided (implementation error) |
@SuppressWarnings(Magento.TypeDuplication) Type duplication verified. This is not a service class and should not be instantiated directly through Object Manager. Use InstantPurchaseOptionFactory instead.
Definition at line 56 of file InstantPurchaseOption.php.
getBillingAddress | ( | ) |
Returns billing address for instant purchase.
LocalizedException | if billing address is not defined |
Definition at line 137 of file InstantPurchaseOption.php.
getPaymentToken | ( | ) |
Returns payment token for instant purchase.
LocalizedException | if payment token is not defined |
Definition at line 105 of file InstantPurchaseOption.php.
getShippingAddress | ( | ) |
Returns shipping address for instant purchase.
LocalizedException | if shipping address is not defined |
Definition at line 122 of file InstantPurchaseOption.php.
getShippingMethod | ( | ) |
Returns shipping method for instant purchase.
LocalizedException | if shipping method is not defined |
Definition at line 152 of file InstantPurchaseOption.php.
isAvailable | ( | ) |
Checks if option available
Definition at line 88 of file InstantPurchaseOption.php.