public static class Storefront.SellingPlanAllocationPriceAdjustment extends AbstractResponse<Storefront.SellingPlanAllocationPriceAdjustment>
optimisticData, responseData| Constructor and Description |
|---|
SellingPlanAllocationPriceAdjustment() |
SellingPlanAllocationPriceAdjustment(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.MoneyV2 |
getCompareAtPrice()
The price of the variant when it's purchased without a selling plan for the same number of
deliveries.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.MoneyV2 |
getPerDeliveryPrice()
The effective price for a single delivery.
|
Storefront.MoneyV2 |
getPrice()
The price of the variant when it's purchased with a selling plan For example, for a prepaid
subscription plan that includes 6 deliveries of $10.00 granola, where the customer gets 20% off, the
price is 6 x $10.00 x 0.80 = $48.00.
|
Storefront.MoneyV2 |
getUnitPrice()
The resulting price per unit for the variant associated with the selling plan.
|
Storefront.SellingPlanAllocationPriceAdjustment |
setCompareAtPrice(Storefront.MoneyV2 arg) |
Storefront.SellingPlanAllocationPriceAdjustment |
setPerDeliveryPrice(Storefront.MoneyV2 arg) |
Storefront.SellingPlanAllocationPriceAdjustment |
setPrice(Storefront.MoneyV2 arg) |
Storefront.SellingPlanAllocationPriceAdjustment |
setUnitPrice(Storefront.MoneyV2 arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic SellingPlanAllocationPriceAdjustment()
public SellingPlanAllocationPriceAdjustment(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.MoneyV2 getCompareAtPrice()
public Storefront.SellingPlanAllocationPriceAdjustment setCompareAtPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getPerDeliveryPrice()
public Storefront.SellingPlanAllocationPriceAdjustment setPerDeliveryPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getPrice()
public Storefront.SellingPlanAllocationPriceAdjustment setPrice(Storefront.MoneyV2 arg)
public Storefront.MoneyV2 getUnitPrice()
public Storefront.SellingPlanAllocationPriceAdjustment setUnitPrice(Storefront.MoneyV2 arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.SellingPlanAllocationPriceAdjustment>