chargebee 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4787ed44077d2a663b80e96a1f2d77332c842777
4
- data.tar.gz: dfb12685272d9a93fc32f1f30c3f33460c7bca81
3
+ metadata.gz: 327bf86d39bb933f78bc55bc86ced58b4ff71611
4
+ data.tar.gz: 2b234fd3f6599d2f261eddac2af25f70cc7751bd
5
5
  SHA512:
6
- metadata.gz: b99b29b4734154d81d1c9bf48bd95bc7c1cbd403fc7158e001aa210769f588fe0f8879e974d87e43efd20806d8ac1a1aacea1a8895381d6354315ecb015eb3e2
7
- data.tar.gz: f643c47f7f41727f3417f92430b5b6279178991d924adcfb09054c14f303ee6761dca5b3a02b5a6af1b5985cc102e7fb9b816be93d4222fae964520f159372f3
6
+ metadata.gz: b3d2f2bb79e2d98264508ec90a968927093dc703cd22d66062bd20343665d1d1cce3afa4a425846c4887c10cca76bb6de2b4edc6fee514a5d4c8200b9fefd06b
7
+ data.tar.gz: 48662c5fd6fea112b81b9f3dffd90bdd67668f8f69054f2b34c8c95e2ad08a7071fc84878474cefe80282f2d47b98b1847cc1f1ebef8a56c8a12e4ebfd9f6e68
@@ -1,3 +1,25 @@
1
+ ### v1.5.5 (2015-04-14)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+
6
+ Support for Purchase Order(po) number. Create & update subscription, create an invoice, create invoice for charge/addon method APIs now accept "po_number" for the subscription/invoice resource. Read more about purchase order : https://www.chargebee.com/docs/po-number.html
7
+
8
+ The resource attribute for "po_number" is returned as part of Subscription and Invoice resources.
9
+
10
+ Create and Update methods of plan, addon, coupon, customer and subscripiton APIs now accept "invoice_notes" that is added to the invoice raised for a customer. Read more about invoice notes : https://www.chargebee.com/docs/invoice_notes.html
11
+
12
+ A new sub-resource "notes" is returned as part of the Invoice resource attributes.
13
+ See https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
14
+
15
+ A new attribute "amount_due" is returned as part of Invoice resource.
16
+
17
+ Checkout new, checkout existing, update payment method method APIs now accept "redirect_url" & "cancel_url" to which your customer should be redirected.
18
+ See https://apidocs.chargebee.com/docs/api/hosted_pages#checkout_new_subscription
19
+
20
+ Now, event "subscription_renewal_reminder" can be fetched via API.
21
+ See https://apidocs.chargebee.com/docs/api/events#event_types.
22
+
1
23
  ### v1.5.4 (2015-03-30)
2
24
  * * *
3
25
 
@@ -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.5.4'
8
- s.date = '2015-03-31'
7
+ s.version = '1.5.5'
8
+ s.date = '2015-04-14'
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."
@@ -28,7 +28,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
28
28
 
29
29
  module ChargeBee
30
30
 
31
- VERSION = '1.5.4'
31
+ VERSION = '1.5.5'
32
32
 
33
33
  @@default_env = nil
34
34
  @@verify_ca_certs = true
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Addon < Model
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :description, :type, :charge_type, :price, :period,
5
- :period_unit, :unit, :status, :archived_at
5
+ :period_unit, :unit, :status, :archived_at, :invoice_notes
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -4,7 +4,7 @@ module ChargeBee
4
4
  attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
5
5
  :discount_quantity, :duration_type, :duration_month, :valid_till, :max_redemptions, :status,
6
6
  :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint, :created_at, :archived_at,
7
- :plan_ids, :addon_ids, :redemptions
7
+ :plan_ids, :addon_ids, :redemptions, :invoice_notes
8
8
 
9
9
  # OPERATIONS
10
10
  #-----------
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  end
11
11
 
12
12
  attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
13
- :created_at, :created_from_ip, :card_status, :billing_address, :payment_method
13
+ :created_at, :created_from_ip, :card_status, :billing_address, :payment_method, :invoice_notes
14
14
 
15
15
  # OPERATIONS
16
16
  #-----------
@@ -21,6 +21,10 @@ module ChargeBee
21
21
  attr_accessor :id, :status, :reference_id, :fulfillment_status, :batch_id, :created_at
22
22
  end
23
23
 
24
+ class Note < Model
25
+ attr_accessor :entity_type, :note, :entity_id
26
+ end
27
+
24
28
  class ShippingAddress < Model
25
29
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
26
30
  end
@@ -29,9 +33,9 @@ module ChargeBee
29
33
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
30
34
  end
31
35
 
32
- attr_accessor :id, :customer_id, :subscription_id, :recurring, :status, :vat_number, :start_date,
33
- :end_date, :amount, :paid_on, :next_retry, :sub_total, :tax, :line_items, :discounts, :taxes,
34
- :linked_transactions, :linked_orders, :shipping_address, :billing_address
36
+ attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
37
+ :start_date, :end_date, :amount, :amount_due, :paid_on, :next_retry, :sub_total, :tax, :line_items,
38
+ :discounts, :taxes, :linked_transactions, :linked_orders, :notes, :shipping_address, :billing_address
35
39
 
36
40
  # OPERATIONS
37
41
  #-----------
@@ -3,7 +3,7 @@ module ChargeBee
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :description, :price, :period, :period_unit, :trial_period,
5
5
  :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty, :status,
6
- :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages
6
+ :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :invoice_notes
7
7
 
8
8
  # OPERATIONS
9
9
  #-----------
@@ -14,9 +14,10 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  attr_accessor :id, :plan_id, :plan_quantity, :status, :start_date, :trial_start, :trial_end,
17
- :current_term_start, :current_term_end, :remaining_billing_cycles, :created_at, :started_at,
18
- :activated_at, :cancelled_at, :cancel_reason, :affiliate_token, :created_from_ip, :due_invoices_count,
19
- :due_since, :total_dues, :addons, :coupon, :coupons, :shipping_address, :has_scheduled_changes
17
+ :current_term_start, :current_term_end, :remaining_billing_cycles, :po_number, :created_at,
18
+ :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token, :created_from_ip,
19
+ :due_invoices_count, :due_since, :total_dues, :addons, :coupon, :coupons, :shipping_address,
20
+ :has_scheduled_changes, :invoice_notes
20
21
 
21
22
  # OPERATIONS
22
23
  #-----------
@@ -21,7 +21,7 @@ module ChargeBee
21
21
 
22
22
  def invoice()
23
23
  get(:invoice, Invoice,
24
- {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :invoice_transactions => Invoice::LinkedTransaction, :orders => Invoice::LinkedOrder, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
24
+ {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :taxes => Invoice::Tax, :invoice_transactions => Invoice::LinkedTransaction, :orders => Invoice::LinkedOrder, :invoice_notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
25
25
  end
26
26
 
27
27
  def order()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-31 00:00:00.000000000 Z
12
+ date: 2015-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure