chargebee 2.5.6 → 2.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/chargebee.gemspec +4 -2
- data/lib/.DS_Store +0 -0
- data/lib/chargebee/.DS_Store +0 -0
- data/lib/chargebee/models/addon.rb +2 -2
- data/lib/chargebee/models/customer.rb +7 -6
- data/lib/chargebee/models/export.rb +32 -0
- data/lib/chargebee/models/invoice.rb +1 -1
- data/lib/chargebee/models/order.rb +48 -2
- data/lib/chargebee/models/plan.rb +3 -2
- data/lib/chargebee/result.rb +2 -1
- data/lib/chargebee.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 281d2a2471741462a258d50ecc87959892bcde1a
|
4
|
+
data.tar.gz: 984326d0200eeb984c9eb84ed69d5e1c4a973497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a2a569268adc08ac9c53dc099b4ad35de741e7962e6d99d414dcb38da6450734945e0dec2acc6db85b0eb294277ad210bfe5a90472fcbdee255e39a0fd126a8
|
7
|
+
data.tar.gz: 2b788d64639fe1e65fbecbdb332f664b8809dd3365ed6a050531cc19224a01de98e48d36c97f6bbbd83cc0455437296a9e9285a996305a2cc3e5147ddf6a6370
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
### v2.5.7 (2018-10-03)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
* The attributes `is_shippable`, `shipping_frequency_period` and`shipping_frequency_period_unit` has been added in Plan and Addon resource.
|
5
|
+
* The input parameters `is_shippable`, `shipping_frequency_period` and`shipping_frequency_period_unit` has been added in Create plan , Update plan , Create addonand Update addon APIs.
|
6
|
+
* The attributes `vat_number_validated_time`, `vat_number_status` and `is_location_valid`has been added in Customer resource.
|
7
|
+
* The event types `order_created`, `order_updated`, `order_cancelled`, `order_delivered`and `order_returned` has been added.
|
8
|
+
* New order status `queued`, `awaiting_shipment`, `on_hold`, `delivered`, `shipped`,`partially_delivered` and `returned` has been added.
|
9
|
+
* New endpoints Export plans , Export addons , Export coupons , Export customers , Export subscriptions , Export invoices , Export creditnotes and Export transactions has been added to Exportst API.
|
10
|
+
* The input parameter `subscription_affiliate_token` has been added to Checkout New Hosted Pages API.
|
11
|
+
* The attributes `document_number` and `order_type` has been added to Invoice resource.
|
12
|
+
* The attributes `document_number`, `customer_id`, `subscription_id`,`cancellation_reason`, `payment_status`, `order_type`, `price_type`, `order_date`,`shipping_date`, `shipment_carrier`, `invoice_round_off_amount`, `tax`, `amount_paid`,`amount_adjusted`, `refundable_credits_issued`, `refundable_credits`,`rounding_adjustement`, `paid_on`, `shipping_cut_off_date`, `delivered_at`,`shipped_at`, `resource_verison`, `updated_at`, `cancelled_at`, `order_line_items`,`shipping_address`, `billing_address`, `discount`, `sub_total`, `total`,`line_item_taxes`, `line_item_discounts`, `linked_credit_notes`, `deleted` and`currency_code` has been added in Order resource.
|
13
|
+
* The input parameters `shipping_date`, `order_date`, `cancelled_at`,`cancellation_reason`, `shipped_at`, `delivered_at`, `shipment_carrier`,`shipping_address`, `order_line_item` has been added in Update order API.
|
14
|
+
* The filters `include_deleted`, `shipping_date`, `order_date`, `paid_on` and `updated_at` has been added in List Orders API.
|
15
|
+
* New endpoints Assign order number , Cancel an order , Create a refundable credit note and Reopen a cancelled order has been added to Orders API.
|
16
|
+
|
1
17
|
### v2.5.6 (2018-09-12)
|
2
18
|
* * *
|
3
19
|
* The attributes addon_applicability, applicable_addons, attached_addons and event_based_addons has been added to Plan resource.
|
data/chargebee.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
s.required_ruby_version = '>= 1.9.3'
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '2.5.
|
8
|
-
s.date = '2018-
|
7
|
+
s.version = '2.5.7'
|
8
|
+
s.date = '2018-10-03'
|
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."
|
@@ -33,7 +33,9 @@ Gem::Specification.new do |s|
|
|
33
33
|
README.rdoc
|
34
34
|
Rakefile
|
35
35
|
chargebee.gemspec
|
36
|
+
lib/.DS_Store
|
36
37
|
lib/chargebee.rb
|
38
|
+
lib/chargebee/.DS_Store
|
37
39
|
lib/chargebee/environment.rb
|
38
40
|
lib/chargebee/errors.rb
|
39
41
|
lib/chargebee/list_result.rb
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -3,8 +3,8 @@ module ChargeBee
|
|
3
3
|
|
4
4
|
attr_accessor :id, :name, :invoice_name, :description, :type, :charge_type, :price, :currency_code,
|
5
5
|
:period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal, :tax_code, :sku, :accounting_code,
|
6
|
-
:accounting_category1, :accounting_category2, :
|
7
|
-
:taxable, :tax_profile_id, :meta_data
|
6
|
+
:accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
|
7
|
+
:resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
|
8
8
|
|
9
9
|
# OPERATIONS
|
10
10
|
#-----------
|
@@ -22,12 +22,13 @@ module ChargeBee
|
|
22
22
|
end
|
23
23
|
|
24
24
|
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
|
25
|
-
:net_term_days, :
|
26
|
-
:
|
27
|
-
:
|
28
|
-
:
|
29
|
-
:
|
30
|
-
:
|
25
|
+
:net_term_days, :vat_number_validated_time, :vat_number_status, :allow_direct_debit, :is_location_valid,
|
26
|
+
:created_at, :created_from_ip, :taxability, :entity_code, :exempt_number, :resource_version,
|
27
|
+
:updated_at, :locale, :consolidated_invoicing, :billing_date, :billing_date_mode, :billing_day_of_week,
|
28
|
+
:billing_day_of_week_mode, :pii_cleared, :card_status, :fraud_flag, :primary_payment_source_id,
|
29
|
+
:backup_payment_source_id, :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes,
|
30
|
+
:preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
|
31
|
+
:balances, :meta_data, :deleted, :registered_for_gst
|
31
32
|
|
32
33
|
# OPERATIONS
|
33
34
|
#-----------
|
@@ -47,5 +47,37 @@ end
|
|
47
47
|
Request.send('post', uri_path("exports","deferred_revenue"), params, env, headers)
|
48
48
|
end
|
49
49
|
|
50
|
+
def self.plans(params={}, env=nil, headers={})
|
51
|
+
Request.send('post', uri_path("exports","plans"), params, env, headers)
|
52
|
+
end
|
53
|
+
|
54
|
+
def self.addons(params={}, env=nil, headers={})
|
55
|
+
Request.send('post', uri_path("exports","addons"), params, env, headers)
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.coupons(params={}, env=nil, headers={})
|
59
|
+
Request.send('post', uri_path("exports","coupons"), params, env, headers)
|
60
|
+
end
|
61
|
+
|
62
|
+
def self.customers(params={}, env=nil, headers={})
|
63
|
+
Request.send('post', uri_path("exports","customers"), params, env, headers)
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.subscriptions(params={}, env=nil, headers={})
|
67
|
+
Request.send('post', uri_path("exports","subscriptions"), params, env, headers)
|
68
|
+
end
|
69
|
+
|
70
|
+
def self.invoices(params={}, env=nil, headers={})
|
71
|
+
Request.send('post', uri_path("exports","invoices"), params, env, headers)
|
72
|
+
end
|
73
|
+
|
74
|
+
def self.credit_notes(params={}, env=nil, headers={})
|
75
|
+
Request.send('post', uri_path("exports","credit_notes"), params, env, headers)
|
76
|
+
end
|
77
|
+
|
78
|
+
def self.transactions(params={}, env=nil, headers={})
|
79
|
+
Request.send('post', uri_path("exports","transactions"), params, env, headers)
|
80
|
+
end
|
81
|
+
|
50
82
|
end # ~Export
|
51
83
|
end # ~ChargeBee
|
@@ -38,7 +38,7 @@ module ChargeBee
|
|
38
38
|
end
|
39
39
|
|
40
40
|
class LinkedOrder < Model
|
41
|
-
attr_accessor :id, :status, :reference_id, :fulfillment_status, :batch_id, :created_at
|
41
|
+
attr_accessor :id, :document_number, :status, :order_type, :reference_id, :fulfillment_status, :batch_id, :created_at
|
42
42
|
end
|
43
43
|
|
44
44
|
class Note < Model
|
@@ -1,8 +1,38 @@
|
|
1
1
|
module ChargeBee
|
2
2
|
class Order < Model
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
class OrderLineItem < Model
|
5
|
+
attr_accessor :id, :invoice_id, :invoice_line_item_id, :unit_price, :description, :amount, :fulfillment_quantity, :fulfillment_amount, :tax_amount, :amount_paid, :amount_adjusted, :refundable_credits_issued, :refundable_credits, :is_shippable, :status, :entity_type, :item_level_discount_amount, :discount_amount, :entity_id
|
6
|
+
end
|
7
|
+
|
8
|
+
class ShippingAddress < Model
|
9
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
10
|
+
end
|
11
|
+
|
12
|
+
class BillingAddress < Model
|
13
|
+
attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
|
14
|
+
end
|
15
|
+
|
16
|
+
class LineItemTax < Model
|
17
|
+
attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
|
18
|
+
end
|
19
|
+
|
20
|
+
class LineItemDiscount < Model
|
21
|
+
attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
|
22
|
+
end
|
23
|
+
|
24
|
+
class LinkedCreditNote < Model
|
25
|
+
attr_accessor :amount, :type, :id, :status, :amount_adjusted, :amount_refunded
|
26
|
+
end
|
27
|
+
|
28
|
+
attr_accessor :id, :document_number, :invoice_id, :subscription_id, :customer_id, :status, :cancellation_reason,
|
29
|
+
:payment_status, :order_type, :price_type, :reference_id, :fulfillment_status, :order_date,
|
30
|
+
:shipping_date, :note, :tracking_id, :batch_id, :created_by, :shipment_carrier, :invoice_round_off_amount,
|
31
|
+
:tax, :amount_paid, :amount_adjusted, :refundable_credits_issued, :refundable_credits, :rounding_adjustement,
|
32
|
+
:paid_on, :shipping_cut_off_date, :created_at, :status_update_at, :delivered_at, :shipped_at,
|
33
|
+
:resource_version, :updated_at, :cancelled_at, :order_line_items, :shipping_address, :billing_address,
|
34
|
+
:discount, :sub_total, :total, :line_item_taxes, :line_item_discounts, :linked_credit_notes,
|
35
|
+
:deleted, :currency_code
|
6
36
|
|
7
37
|
# OPERATIONS
|
8
38
|
#-----------
|
@@ -15,6 +45,22 @@ module ChargeBee
|
|
15
45
|
Request.send('post', uri_path("orders",id.to_s), params, env, headers)
|
16
46
|
end
|
17
47
|
|
48
|
+
def self.assign_order_number(id, env=nil, headers={})
|
49
|
+
Request.send('post', uri_path("orders",id.to_s,"assign_order_number"), {}, env, headers)
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.cancel(id, params, env=nil, headers={})
|
53
|
+
Request.send('post', uri_path("orders",id.to_s,"cancel"), params, env, headers)
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.create_refundable_credit_note(id, params, env=nil, headers={})
|
57
|
+
Request.send('post', uri_path("orders",id.to_s,"create_refundable_credit_note"), params, env, headers)
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.reopen(id, params={}, env=nil, headers={})
|
61
|
+
Request.send('post', uri_path("orders",id.to_s,"reopen"), params, env, headers)
|
62
|
+
end
|
63
|
+
|
18
64
|
def self.retrieve(id, env=nil, headers={})
|
19
65
|
Request.send('get', uri_path("orders",id.to_s), {}, env, headers)
|
20
66
|
end
|
@@ -17,8 +17,9 @@ module ChargeBee
|
|
17
17
|
:trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty,
|
18
18
|
:status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
|
19
19
|
:addon_applicability, :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2,
|
20
|
-
:
|
21
|
-
:
|
20
|
+
:is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit, :resource_version,
|
21
|
+
:updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :applicable_addons, :attached_addons,
|
22
|
+
:event_based_addons
|
22
23
|
|
23
24
|
# OPERATIONS
|
24
25
|
#-----------
|
data/lib/chargebee/result.rb
CHANGED
@@ -66,7 +66,8 @@ module ChargeBee
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def order()
|
69
|
-
order = get(:order, Order
|
69
|
+
order = get(:order, Order,
|
70
|
+
{:order_line_items => Order::OrderLineItem, :shipping_address => Order::ShippingAddress, :billing_address => Order::BillingAddress, :line_item_taxes => Order::LineItemTax, :line_item_discounts => Order::LineItemDiscount, :linked_credit_notes => Order::LinkedCreditNote});
|
70
71
|
return order;
|
71
72
|
end
|
72
73
|
|
data/lib/chargebee.rb
CHANGED
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: 2.5.
|
4
|
+
version: 2.5.7
|
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: 2018-
|
12
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -88,7 +88,9 @@ files:
|
|
88
88
|
- README.rdoc
|
89
89
|
- Rakefile
|
90
90
|
- chargebee.gemspec
|
91
|
+
- lib/.DS_Store
|
91
92
|
- lib/chargebee.rb
|
93
|
+
- lib/chargebee/.DS_Store
|
92
94
|
- lib/chargebee/environment.rb
|
93
95
|
- lib/chargebee/errors.rb
|
94
96
|
- lib/chargebee/list_result.rb
|