Google Shopping Merchant Accounts V1beta Client - Class CutoffConfig (0.3.0)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class CutoffConfig.

Configs related to local delivery ends for the day.

Generated from protobuf message google.shopping.merchant.accounts.v1beta.Service.StoreConfig.CutoffConfig

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta \ Service \ StoreConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ local_cutoff_time Google\Shopping\Merchant\Accounts\V1beta\Service\StoreConfig\CutoffConfig\LocalCutoffTime

Time that local delivery ends for the day.

↳ store_close_offset_hours int|string

Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with local_cutoff_time.

↳ no_delivery_post_cutoff bool

Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to true results in the calculated shipping service rate returning NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false results in the calculated shipping time being one day. This is only for local delivery.

getLocalCutoffTime

Time that local delivery ends for the day.

Returns
Type Description
Google\Shopping\Merchant\Accounts\V1beta\Service\StoreConfig\CutoffConfig\LocalCutoffTime|null

hasLocalCutoffTime

clearLocalCutoffTime

setLocalCutoffTime

Time that local delivery ends for the day.

Parameter
Name Description
var Google\Shopping\Merchant\Accounts\V1beta\Service\StoreConfig\CutoffConfig\LocalCutoffTime
Returns
Type Description
$this

getStoreCloseOffsetHours

Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with local_cutoff_time.

Returns
Type Description
int|string

hasStoreCloseOffsetHours

clearStoreCloseOffsetHours

setStoreCloseOffsetHours

Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with local_cutoff_time.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getNoDeliveryPostCutoff

Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to true results in the calculated shipping service rate returning NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false results in the calculated shipping time being one day. This is only for local delivery.

Returns
Type Description
bool

hasNoDeliveryPostCutoff

clearNoDeliveryPostCutoff

setNoDeliveryPostCutoff

Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to true results in the calculated shipping service rate returning NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false results in the calculated shipping time being one day. This is only for local delivery.

Parameter
Name Description
var bool
Returns
Type Description
$this