Sha256: 810af86237ff21a8becc1f97ede9a82ed2cf1e4c2dca3ede71891be866355b5d

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

# encoding: utf-8

module Zuora
  module Models
    class CardHolder
      include DirtyValidAttr

      dirty_valid_attr :card_holder_name,
        type: String,
        required?: true,
        valid?: max_length(50)

      dirty_valid_attr :address_line_1,
        type: String,
        required?: true,
        valid?: max_length(255)

      dirty_valid_attr :address_line_2,
        type: String,
        valid?: max_length(255)

      dirty_valid_attr :city,
        type: String,
        required?: true,
        valid?: max_length(40)

      dirty_valid_attr :state,
        type: String,
        required?: true,
        valid?: one_of(Zuora::STATE_ABBREVIATIONS)

      dirty_valid_attr :zip_code,
        type: String,
        required?: true,
        valid?: max_length(20)

      dirty_valid_attr :country,
        type: String,
        required?: true,
        valid?: max_length(50)

      dirty_valid_attr :phone,
        type: String,
        required?: true,
        valid?: max_length(20)

      dirty_valid_attr :email,
        type: String,
        required?: true

      alias_method :initialize, :initialize_attributes!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zuora-ruby-0.2.0 lib/zuora/models/card_holder.rb