Sha256: dfdafa3b4a83bf5acb3333220b319173720241be949e1f64a214c77c42827b52

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

module ChargeBee
  class OmnichannelSubscription < Model

    class OmnichannelTransaction < Model
      attr_accessor :id, :id_at_source, :app_id, :price_currency, :price_units, :price_nanos, :type, :transacted_at, :created_at, :resource_version
    end

  attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :resource_version,
  :omnichannel_subscription_items, :initial_purchase_transaction

  # OPERATIONS
  #-----------

  def self.retrieve(id, env=nil, headers={})
    Request.send('get', uri_path("omnichannel_subscriptions",id.to_s), {}, env, headers)
  end

  def self.list(params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("omnichannel_subscriptions"), params, env, headers)
  end

  def self.omnichannel_transactions_for_omnichannel_subscription(id, params={}, env=nil, headers={})
    Request.send('get', uri_path("omnichannel_subscriptions",id.to_s,"omnichannel_transactions"), params, env, headers)
  end

  end # ~OmnichannelSubscription
end # ~ChargeBee

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chargebee-2.49.0 lib/chargebee/models/omnichannel_subscription.rb
chargebee-2.48.0 lib/chargebee/models/omnichannel_subscription.rb