chargebee 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'chargebee'
7
- s.version = '1.1.1'
8
- s.date = '2012-10-19'
7
+ s.version = '1.1.2'
8
+ s.date = '2012-12-08'
9
9
 
10
10
  s.summary = "Ruby client for Chargebee API."
11
11
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
data/lib/chargebee.rb CHANGED
@@ -23,7 +23,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon'
23
23
 
24
24
  module ChargeBee
25
25
 
26
- VERSION = '1.1.1'
26
+ VERSION = '1.1.2'
27
27
 
28
28
  @@default_env = nil
29
29
  @@verify_ca_certs = true
@@ -11,7 +11,7 @@ module ChargeBee
11
11
  if($CHARGEBEE_DOMAIN == nil)
12
12
  @api_endpoint = "https://#{@site}.chargebee.com/api/v1"
13
13
  else
14
- @api_endpoint = "http://#{@site}.#{$CHARGEBEE_DOMAIN}:8080/api/v1"
14
+ @api_endpoint = "http://#{@site}.#{$CHARGEBEE_DOMAIN}/api/v1"
15
15
  end
16
16
  end
17
17
 
@@ -2,8 +2,8 @@ module ChargeBee
2
2
  class Coupon < Model
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
5
- :duration_type, :duration_month, :max_redemptions, :status, :redemptions, :apply_discount_on,
6
- :created_at, :archived_at, :valid_till
5
+ :discount_quantity, :duration_type, :duration_month, :max_redemptions, :status, :redemptions,
6
+ :apply_discount_on, :created_at, :archived_at, :valid_till
7
7
 
8
8
  # OPERATIONS
9
9
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Plan < Model
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :price, :period, :period_unit, :trial_period, :trial_period_unit,
5
- :free_quantity, :setup_cost, :status, :archived_at, :billing_cycles, :redirect_url
5
+ :free_quantity, :setup_cost, :downgrade_penality, :status, :archived_at, :billing_cycles, :redirect_url
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -5,9 +5,13 @@ module ChargeBee
5
5
  attr_accessor :id, :quantity
6
6
  end
7
7
 
8
+ class Coupon < Model
9
+ attr_accessor :coupon_id, :apply_till, :applied_count
10
+ end
11
+
8
12
  attr_accessor :id, :plan_id, :plan_quantity, :status, :trial_start, :trial_end, :current_term_start,
9
13
  :current_term_end, :remaining_billing_cycles, :created_at, :activated_at, :cancelled_at, :cancel_reason,
10
- :due_invoices_count, :due_since, :total_dues, :addons, :coupon
14
+ :due_invoices_count, :due_since, :total_dues, :addons, :coupon, :coupons
11
15
 
12
16
  # OPERATIONS
13
17
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Transaction < Model
3
3
 
4
4
  attr_accessor :id, :subscription_id, :gateway, :description, :type, :date, :amount, :id_at_gateway,
5
- :masked_card_number, :error_code, :error_text, :refunded_tx_id, :voided_at, :status
5
+ :error_code, :error_text, :refunded_tx_id, :voided_at, :status, :masked_card_number
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.1
5
+ version: 1.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rajaraman S
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-10-19 00:00:00 Z
14
+ date: 2012-12-08 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json_pure