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

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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.