View Source GoogleApi.Content.V21.Model.ReturnPolicyOnline (google_api_content v0.67.1)

Return policy online object. This is currently used to represent return policies for ads and free listings programs.

Attributes

  • countries (type: list(String.t), default: nil) - The countries of sale where the return policy is applicable. The values must be a valid 2 letter ISO 3166 code, e.g. "US".
  • itemConditions (type: list(String.t), default: nil) - The item conditions that are accepted for returns. This is required to not be empty unless the type of return policy is noReturns.
  • label (type: String.t, default: nil) - The unique user-defined label of the return policy. The same label cannot be used in different return policies for the same country. Policies with the label 'default' will apply to all products, unless a product specifies a return_policy_label attribute.
  • name (type: String.t, default: nil) - The name of the policy as shown in Merchant Center.
  • policy (type: GoogleApi.Content.V21.Model.ReturnPolicyOnlinePolicy.t, default: nil) - The return policy.
  • restockingFee (type: GoogleApi.Content.V21.Model.ReturnPolicyOnlineRestockingFee.t, default: nil) - The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
  • returnMethods (type: list(String.t), default: nil) - The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
  • returnPolicyId (type: String.t, default: nil) - Output only. Return policy ID generated by Google.
  • returnPolicyUri (type: String.t, default: nil) - The return policy uri. This can used by Google to do a sanity check for the policy.
  • returnReasonCategoryInfo (type: list(GoogleApi.Content.V21.Model.ReturnPolicyOnlineReturnReasonCategoryInfo.t), default: nil) - The return reason category information. This required to not be empty unless the type of return policy is noReturns.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.ReturnPolicyOnline{
  countries: [String.t()] | nil,
  itemConditions: [String.t()] | nil,
  label: String.t() | nil,
  name: String.t() | nil,
  policy: GoogleApi.Content.V21.Model.ReturnPolicyOnlinePolicy.t() | nil,
  restockingFee:
    GoogleApi.Content.V21.Model.ReturnPolicyOnlineRestockingFee.t() | nil,
  returnMethods: [String.t()] | nil,
  returnPolicyId: String.t() | nil,
  returnPolicyUri: String.t() | nil,
  returnReasonCategoryInfo:
    [GoogleApi.Content.V21.Model.ReturnPolicyOnlineReturnReasonCategoryInfo.t()]
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.