class Google::Apis::CoordinateV1::CustomFieldDef

Custom field definition.

Attributes

enabled[RW]

Whether the field is enabled. Corresponds to the JSON property `enabled` @return [Boolean]

enabled?[RW]

Whether the field is enabled. Corresponds to the JSON property `enabled` @return [Boolean]

enumitems[RW]

List of enum items for this custom field. Populated only if the field type is enum. Enum fields appear as 'lists' in the Coordinate web and mobile UI. Corresponds to the JSON property `enumitems` @return [Array<Google::Apis::CoordinateV1::EnumItemDef>]

id[RW]

Custom field id. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies this object as a custom field definition. Corresponds to the JSON property `kind` @return [String]

name[RW]

Custom field name. Corresponds to the JSON property `name` @return [String]

required_for_checkout[RW]

Whether the field is required for checkout. Corresponds to the JSON property `requiredForCheckout` @return [Boolean]

required_for_checkout?[RW]

Whether the field is required for checkout. Corresponds to the JSON property `requiredForCheckout` @return [Boolean]

type[RW]

Custom field type. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/coordinate_v1/classes.rb, line 98
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/coordinate_v1/classes.rb, line 103
def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @enumitems = args[:enumitems] if args.key?(:enumitems)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @required_for_checkout = args[:required_for_checkout] if args.key?(:required_for_checkout)
  @type = args[:type] if args.key?(:type)
end