Sha256: 311204e1a94659f89ad1403ffdcb27246ed08d2c58d77e4f4309dafe1d684294

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

module Zoho
  module Subscriptions
    class Subscription < ResourceBase
      resource_attributes :subscription_id,
                          :name,
                          :customer,
                          :contactpersons,
                          :amount,
                          :product_id,
                          :plan,
                          :addons,
                          :coupon,
                          :custom_fields,
                          :trial_starts_at,
                          :trial_ends_at,
                          :activated_at,
                          :reference_id,
                          :currency_code,
                          :currency_symbol,
                          :exchange_rate,
                          :starts_at,
                          :status,
                          :auto_collect,
                          :salesperson_id,
                          :salesperson_name,
                          :card,
                          :child_invoice_id,
                          :interval,
                          :interval_unit,
                          :current_term_starts_at,
                          :current_term_ends_at,
                          :expires_at,
                          :last_billing_at,
                          :next_billing_at,
                          :cancelled_at,
                          :source,
                          :next_retry_at,
                          :notes,
                          :created_time,
                          :updated_time

      custom_action :cancel, http_method: :post, send_params_through: :query
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoho-subscriptions-0.1.0 lib/zoho/subscriptions/subscription.rb