Sha256: cf1526a9442362f1601529a5068658c31db4eead02cdda1da130f644234eb0c5

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

module Recurly
  module Resources
    class AccountAcquisition < Resource

      # @!attribute account
      #   @return [Account]
      define_attribute :account, :Account

      # @!attribute campaign
      #   @return [String] An arbitrary identifier for the marketing campaign that led to the acquisition of this account.
      define_attribute :campaign, String

      # @!attribute channel
      #   @return [String] The channel through which the account was acquired.
      define_attribute :channel, String, {:enum => ["referral", "social_media", "email", "paid_search", "organic_search", "direct_traffic", "marketing_content", "blog", "events", "outbound_sales", "advertising", "public_relations", "other"]}

      # @!attribute cost
      #   @return [Hash] Account balance
      define_attribute :cost, Hash

      # @!attribute [r] created_at
      #   @return [DateTime] When the account acquisition data was created.
      define_attribute :created_at, DateTime, {:read_only => true}

      # @!attribute [r] id
      #   @return [String]
      define_attribute :id, String, {:read_only => true}

      # @!attribute [r] object
      #   @return [String] Object type
      define_attribute :object, String, {:read_only => true}

      # @!attribute subchannel
      #   @return [String] An arbitrary subchannel string representing a distinction/subcategory within a broader channel.
      define_attribute :subchannel, String

      # @!attribute [r] updated_at
      #   @return [DateTime] When the account acquisition data was last changed.
      define_attribute :updated_at, DateTime, {:read_only => true}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
recurly-3.0.0.beta.2 lib/recurly/resources/account_acquisition.rb