Sha256: db743315d7eb0d382793c8a51d9327c3e65868dcc3b6e703c79c2d5d0b72c30f

Contents?: true

Size: 987 Bytes

Versions: 2

Compression:

Stored size: 987 Bytes

Contents

module ChargeBee
  class OmnichannelSubscription < Model

    class OmnichannelSubscriptionItem < Model
      attr_accessor :id, :id_at_source, :status, :current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason
    end

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

  # 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.47.0.beta.1 lib/chargebee/models/omnichannel_subscription.rb
chargebee-2.46.0 lib/chargebee/models/omnichannel_subscription.rb