Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
See: Content API for Shopping Reference for content.shippingsettings.update
.
- type ShippingSettingsUpdateResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("shippingsettings" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ShippingSettings :> Put '[JSON] ShippingSettings)))))))
- shippingSettingsUpdate :: Word64 -> ShippingSettings -> Word64 -> ShippingSettingsUpdate
- data ShippingSettingsUpdate
- ssuMerchantId :: Lens' ShippingSettingsUpdate Word64
- ssuPayload :: Lens' ShippingSettingsUpdate ShippingSettings
- ssuAccountId :: Lens' ShippingSettingsUpdate Word64
- ssuDryRun :: Lens' ShippingSettingsUpdate (Maybe Bool)
REST Resource
type ShippingSettingsUpdateResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("shippingsettings" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ShippingSettings :> Put '[JSON] ShippingSettings))))))) Source #
A resource alias for content.shippingsettings.update
method which the
ShippingSettingsUpdate
request conforms to.
Creating a Request
shippingSettingsUpdate Source #
Creates a value of ShippingSettingsUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ShippingSettingsUpdate Source #
Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
See: shippingSettingsUpdate
smart constructor.
Request Lenses
ssuMerchantId :: Lens' ShippingSettingsUpdate Word64 Source #
The ID of the managing account.
ssuPayload :: Lens' ShippingSettingsUpdate ShippingSettings Source #
Multipart request metadata.
ssuAccountId :: Lens' ShippingSettingsUpdate Word64 Source #
The ID of the account for which to get/update shipping settings.