Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class Service.
Shipping service.
Generated from protobuf message google.shopping.merchant.accounts.v1beta.Service
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ service_name
string
Required. Free-form name of the service. Must be unique within target account.
↳ active
bool
Required. A boolean exposing the active status of the shipping service.
↳ delivery_countries
array
Required. The CLDR territory code of the countries to which the service applies.
↳ currency_code
string
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
↳ delivery_time
Google\Shopping\Merchant\Accounts\V1beta\DeliveryTime
Required. Time spent in various aspects from order to the delivery of the product.
↳ rate_groups
array< Google\Shopping\Merchant\Accounts\V1beta\RateGroup
>
Optional. Shipping rate group definitions. Only the last one is allowed to have an empty applicable_shipping_labels
, which means "everything else". The other applicable_shipping_labels
must not overlap.
↳ shipment_type
int
Type of locations this service ships orders to.
↳ minimum_order_value
Google\Shopping\Type\Price
Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.
↳ minimum_order_value_table
Google\Shopping\Merchant\Accounts\V1beta\MinimumOrderValueTable
Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
↳ store_config
Google\Shopping\Merchant\Accounts\V1beta\Service\StoreConfig
A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
↳ loyalty_programs
array< Google\Shopping\Merchant\Accounts\V1beta\Service\LoyaltyProgram
>
Optional. Loyalty programs that this shipping service is limited to.
getServiceName
Required. Free-form name of the service. Must be unique within target account.
string
hasServiceName
clearServiceName
setServiceName
Required. Free-form name of the service. Must be unique within target account.
var
string
$this
getActive
Required. A boolean exposing the active status of the shipping service.
bool
hasActive
clearActive
setActive
Required. A boolean exposing the active status of the shipping service.
var
bool
$this
getDeliveryCountries
Required. The CLDR territory code of the countries to which the service applies.
setDeliveryCountries
Required. The CLDR territory code of the countries to which the service applies.
var
string[]
$this
getCurrencyCode
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
string
hasCurrencyCode
clearCurrencyCode
setCurrencyCode
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
var
string
$this
getDeliveryTime
Required. Time spent in various aspects from order to the delivery of the product.
hasDeliveryTime
clearDeliveryTime
setDeliveryTime
Required. Time spent in various aspects from order to the delivery of the product.
$this
getRateGroups
Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty applicable_shipping_labels
, which means "everything else".
The other applicable_shipping_labels
must not overlap.
setRateGroups
Optional. Shipping rate group definitions. Only the last one is allowed to
have an empty applicable_shipping_labels
, which means "everything else".
The other applicable_shipping_labels
must not overlap.
$this
getShipmentType
Type of locations this service ships orders to.
int
hasShipmentType
clearShipmentType
setShipmentType
Type of locations this service ships orders to.
var
int
$this
getMinimumOrderValue
Minimum order value for this service. If set, indicates that customers will have to spend at least this amount.
All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.
Google\Shopping\Type\Price
|null
hasMinimumOrderValue
clearMinimumOrderValue
setMinimumOrderValue
Minimum order value for this service. If set, indicates that customers will have to spend at least this amount.
All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table.
var
Google\Shopping\Type\Price
$this
getMinimumOrderValueTable
Table of per store minimum order values for the pickup fulfillment type.
Cannot be set together with minimum_order_value.
hasMinimumOrderValueTable
clearMinimumOrderValueTable
setMinimumOrderValueTable
Table of per store minimum order values for the pickup fulfillment type.
Cannot be set together with minimum_order_value.
$this
getStoreConfig
A list of stores your products are delivered from.
This is only valid for the local delivery shipment type.
hasStoreConfig
clearStoreConfig
setStoreConfig
A list of stores your products are delivered from.
This is only valid for the local delivery shipment type.
$this
getLoyaltyPrograms
Optional. Loyalty programs that this shipping service is limited to.
setLoyaltyPrograms
Optional. Loyalty programs that this shipping service is limited to.
$this