Conditional Methods
Member AbstractOrder::setName (string $name)
create-only
Member CustomCollect::setPosition (int $position)
create-only, the custom collection must be set to sort manually.
Member CustomCollect::setSortValue (int $value)
create-only, the custom collection must be set to sort manually.
Member Customer::getTaxExemptions ()
canada-only
Member Customer::hasTaxExemptions ()
canada-only
Member Customer::setAddresses (Address[] $addresses)
create-only, bulk
Member Customer::setSendEmailInvite (bool $invite)
create-only
Member Customer::setSendEmailWelcome (bool $welcome)
create-only
Member Customer::setState (string $status)
create-only, see the constants
Member DraftOrder::setUseCustomerDefaultAddress (bool $flag)
create-only
Member GiftCard::setCode (string $code)
create-only, write-only
Member GiftCard::setInitialValue (number $value)
create-only
Member Image::setAttachment (string $base64)
create-only
Member Image::setFilename (string $filename)
create-only
Member Image::setSrc (string $url)
create-only
Member InventoryItem::getProvinceCodeOfOrigin ()
canada-only
Member InventoryItem::setProvinceCodeOfOrigin (string $code)
canada-only
Member MarketingEvent::setEventType (string $type)
required, see the type constants.
Member MarketingEvent::setMarketingChannel (string $channel)
required, see the channel constants.
Member MarketingEvent::setPaid (bool $paid)
required
Member MarketingEvent::setStartedAt (string $iso8601)
required
Member Metafield::setKey (string $key)
create-only
Member Metafield::setNamespace (string $ns)
create-only
Member Order::setCancelReason (string $reason)
create-only
Member Order::setDiscountCodes (Discount[] $codes)
create-only
Member Order::setFinancialStatus (string $status)
create-only
Member Order::setFulfillments (string[] $fulfillments)
create-only
Member Order::setFulfillmentStatus (string $status)
create-only
Member Order::setInventoryBehavior (string $behavior)
create-only
Member Order::setLocationId (string $id)
create-only
Member Order::setPresentmentCurrency (string $currency)
create-only
Member Order::setProcessedAt (string $iso8601)
create-only, historical creation date
Member Order::setSendFulfillmentReceipt (bool $receipt)
create-only
Member Order::setSendReceipt (bool $receipt)
create-only
Member Order::setShippingLines (Shipping[] $lines)
create-only
Member Order::setSourceName (string $name)
create-only
Member Order::setSubtotalPriceSet (string $set)
create-only
Member Order::setTaxLines (Tax[] $taxes)
create-only
Member Order::setTest (bool $test)
create-only
Member Order::setTotalDiscounts (string $discounts)
create-only
Member Order::setTotalDiscountsSet (string $set)
create-only
Member Order::setTotalLineItemsPrice (number $price)
create-only
Member Order::setTotalLineItemsPriceSet (string $set)
create-only
Member Order::setTotalPriceSet (string $set)
create-only
Member Order::setTotalTaxSet (string $set)
create-only
Member Order::setTotalTipReceived (string $received)
create-only
Member Order::setTotalWeight (string $weight)
create-only
Member Product::setTitle (string $title)
required
Member Refund::setCurrency (string $currency)
create-only
Member Refund::setDiscrepancyReason (string $reason)
create-only
Member Refund::setFullShipping ()
create-only
Member Refund::setNote (string $note)
create-only
Member Refund::setNotify (bool $notify)
create-only
Member Refund::setProcessedAt (string $iso8601)
create-only
Member Refund::setRefundLineItems (RefundItem[] $items)
create-only
Member Refund::setShippingAmount (string $amount)
create-only
Member Refund::setTransactions (Transaction[] $transactions)
create-only
Member Refund::setUserId (string $id)
create-only
Member Theme::setSrc (string $src)
create-only