Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Service.
Shipping service.
Generated from protobuf message google.shopping.merchant.accounts.v1.Service
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1Methods
__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
Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
↳ delivery_time
↳ rate_groups
array< 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
Optional. Type of locations this service ships orders to.
↳ minimum_order_value
Google\Shopping\Type\Price
Optional. 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
MinimumOrderValueTable
Optional. Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value
.
↳ store_config
Service\StoreConfig
A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
↳ loyalty_programs
array< 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
Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
string
hasCurrencyCode
clearCurrencyCode
setCurrencyCode
Required. 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
Optional. Type of locations this service ships orders to.
int
hasShipmentType
clearShipmentType
setShipmentType
Optional. Type of locations this service ships orders to.
var
int
$this
getMinimumOrderValue
Optional. 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
.
hasMinimumOrderValue
clearMinimumOrderValue
setMinimumOrderValue
Optional. 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
.
$this
getMinimumOrderValueTable
Optional. Table of per store minimum order values for the pickup
fulfillment type. Cannot be set together with minimum_order_value
.
hasMinimumOrderValueTable
clearMinimumOrderValueTable
setMinimumOrderValueTable
Optional. 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