chargebee 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +528 -0
- data/LICENSE +24 -0
- data/README.rdoc +34 -0
- data/Rakefile +150 -0
- data/chargebee.gemspec +72 -0
- data/lib/chargebee.rb +59 -0
- data/lib/chargebee/environment.rb +23 -0
- data/lib/chargebee/errors.rb +43 -0
- data/lib/chargebee/list_result.rb +28 -0
- data/lib/chargebee/models/addon.rb +31 -0
- data/lib/chargebee/models/address.rb +19 -0
- data/lib/chargebee/models/card.rb +32 -0
- data/lib/chargebee/models/comment.rb +26 -0
- data/lib/chargebee/models/coupon.rb +25 -0
- data/lib/chargebee/models/coupon_code.rb +18 -0
- data/lib/chargebee/models/customer.rb +77 -0
- data/lib/chargebee/models/download.rb +10 -0
- data/lib/chargebee/models/estimate.rb +36 -0
- data/lib/chargebee/models/event.rb +46 -0
- data/lib/chargebee/models/hosted_page.rb +50 -0
- data/lib/chargebee/models/invoice.rb +114 -0
- data/lib/chargebee/models/model.rb +70 -0
- data/lib/chargebee/models/order.rb +31 -0
- data/lib/chargebee/models/payment_intent.rb +27 -0
- data/lib/chargebee/models/plan.rb +33 -0
- data/lib/chargebee/models/portal_session.rb +31 -0
- data/lib/chargebee/models/subscription.rb +86 -0
- data/lib/chargebee/models/transaction.rb +45 -0
- data/lib/chargebee/request.rb +16 -0
- data/lib/chargebee/rest.rb +90 -0
- data/lib/chargebee/result.rb +100 -0
- data/lib/chargebee/util.rb +56 -0
- data/lib/ssl/ca-certs.crt +3385 -0
- data/spec/chargebee/list_result_spec.rb +53 -0
- data/spec/chargebee_spec.rb +99 -0
- data/spec/sample_response.rb +73 -0
- data/spec/spec_helper.rb +24 -0
- metadata +145 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b9ba24e8e5cf63fe177c8c7ea96057454d359147
|
4
|
+
data.tar.gz: a4de42e4d91836a912102e8ff85c742eb77903b4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 115232e8772fb5893228817da9a6f625ff7c5aa0eb30abebb0ed608172ad3aac99d9cfc1b76b6002494ecad4061b9ba14b60ba7f724984e4af8e44afc2318475
|
7
|
+
data.tar.gz: 6c81be66cbc9645139480b1d69891da8488164ac83c258104d1f619a9691855b5512f1c3e6f72f31f89ca403d7f7ec62663faa0497040178b85a34f16f61d368
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,528 @@
|
|
1
|
+
### v1.7.4(2019-08-14)
|
2
|
+
* * *
|
3
|
+
|
4
|
+
* New resource payment_intent has been added.
|
5
|
+
* New input parameter 'id' in payment_intent sub-param has been added in update_card_for_customer_using_payment_intent, create_a_customer, create_a_subscription, create_subscription_for_customer, update_a_subscription.
|
6
|
+
* New endpoints create_a_payment_intent, update_a_payment_intent and retrieve_a_payment_intent have been added.
|
7
|
+
|
8
|
+
### v1.7.3 (2019-07-22)
|
9
|
+
* * *
|
10
|
+
|
11
|
+
* New enpoint Update card for customer using payment intent has been added.
|
12
|
+
* The attirbute reference_id has been added in card resource.
|
13
|
+
* The input parameters payment_intent with gateway_account_id and gw_token have been added in create a customer, create subscription, create subscription for customer and update subscription API.
|
14
|
+
* The attributes initiator_type and three_d_secure have been added in transaction resource.
|
15
|
+
* New enpoint Update card for customer using payment intent has been added in card resource.
|
16
|
+
* New attribute reference_id has been added in card resource.
|
17
|
+
|
18
|
+
### v1.7.2 (2016-04-06)
|
19
|
+
* * *
|
20
|
+
|
21
|
+
*api_version* attribute is added to the Event resource.
|
22
|
+
|
23
|
+
Chargebee supports multiple [API versions](https://apidocs.chargebee.com/docs/api#versions) now. The *api_version* attribute indicates the API version based on which the event content is structured. More details here:
|
24
|
+
https://apidocs.chargebee.com/docs/api/v1/events
|
25
|
+
|
26
|
+
### v1.7.1 (2016-03-22)
|
27
|
+
* * *
|
28
|
+
|
29
|
+
** APIs updated**:
|
30
|
+
|
31
|
+
Support to specify additional information as "meta_data" in json format for Customer, Subscription, Plan, Addon & Coupon resources.
|
32
|
+
Now, create & update customer, subscription, create subscription for customer, create & update plan, addon and create coupon APIs accept the "meta_data"" parameter in json format. See create customer API here : https://apidocs.chargebee.com/docs/api/v1/customers#create_a_customer
|
33
|
+
|
34
|
+
New attribute for "meta_data" is returned as part of Customer, Subscription, Plan, Addon and Coupon resources. See customer attributes here: https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
35
|
+
|
36
|
+
|
37
|
+
** APIs added**:
|
38
|
+
|
39
|
+
Support to change card gateway for a customer. New api endpoint to switch gateway for a customer is added to Card resources. See: https://apidocs.chargebee.com/docs/api/v1/cards#switch_gateway
|
40
|
+
|
41
|
+
|
42
|
+
** Issue Fixed**:
|
43
|
+
|
44
|
+
Wrong keys in json response is now fixed for 'linked_transactions', 'linked_orders' & 'notes' in Invoice resource and for 'linked_invoices' & 'linked_refunds' in Transaction resource. See: invoice attributes here: https://apidocs.chargebee.com/docs/api/v1/invoices
|
45
|
+
|
46
|
+
### v1.7.0 (2016-03-10)
|
47
|
+
* * *
|
48
|
+
|
49
|
+
** APIs updated**:
|
50
|
+
|
51
|
+
Support to keep the card in gateway while deleting customer. Delete a customer API accepts "delete_payment_method" parameter. See: https://apidocs.chargebee.com/docs/api/v1/customers#delete_a_customer
|
52
|
+
|
53
|
+
Typo fix in chargebee.gemspec file.
|
54
|
+
|
55
|
+
RSpec development dependancy version has been upgraded to 3.0.0
|
56
|
+
|
57
|
+
### v1.6.9 (2016-02-25)
|
58
|
+
* * *
|
59
|
+
|
60
|
+
** APIs added**:
|
61
|
+
|
62
|
+
Support to delete a subscription. See: https://www.chargebee.com/docs/subscriptions.html#deleting-a-subscription
|
63
|
+
New api endpoint to delete 'Subscription' is added to Subscription resources. See delete subscription API here:
|
64
|
+
https://apidocs.chargebee.com/docs/api/v1/subscriptions#delete_a_subscription
|
65
|
+
|
66
|
+
Support to delete a customer. See: https://www.chargebee.com/docs/customers.html#deleting-a-customer
|
67
|
+
New api endpoint to delete 'Customer' is added to Customer resources. See delete customer API here:
|
68
|
+
https://apidocs.chargebee.com/docs/api/v1/customers#delete_a_customer
|
69
|
+
|
70
|
+
|
71
|
+
** APIs updated**:
|
72
|
+
|
73
|
+
Now, events "subscription_deleted" & "customer_deleted" can be fetched via API. See : https://apidocs.chargebee.com/docs/api/v1/events#event_types.
|
74
|
+
|
75
|
+
### v1.6.8 (2016-02-08)
|
76
|
+
* * *
|
77
|
+
|
78
|
+
** APIs added**:
|
79
|
+
|
80
|
+
Support to add additional contact for a customer. See: https://www.chargebee.com/docs/customers.html#add-contact
|
81
|
+
New api endpoints to add, update and delete 'Contact' are added to Customer resource. See add contact API here: https://apidocs.chargebee.com/docs/api/v1/customers#add_contacts_to_a_customer
|
82
|
+
|
83
|
+
** APIs updated**:
|
84
|
+
|
85
|
+
New attribute 'contacts' with list of contacts is returned as part of Customer resource. See: https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
86
|
+
|
87
|
+
Support for partial payment. Collect payment for an invoice API now accepts 'amount' paramater. See: https://apidocs.chargebee.com/docs/api/v1/invoices#collect_payment_for_an_invoice
|
88
|
+
|
89
|
+
New attribute 'refundable_credits' is returned as part of Customer resource.
|
90
|
+
|
91
|
+
New attributes 'amount_paid', 'amount_adjusted' & 'credits_applied' are returned as part of Invoice resource. See: https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
92
|
+
|
93
|
+
New attributes 'credits_applied' & 'amount_due' are returned as part of Estimate resource. See: https://apidocs.chargebee.com/docs/api/v1/estimates#estimate_attributes
|
94
|
+
|
95
|
+
New entity type 'credit_note' is added as part of 'entity_type' attribute of Comment resource.
|
96
|
+
See: https://apidocs.chargebee.com/docs/api/v1/comments#comment_attributes
|
97
|
+
|
98
|
+
### v1.6.7 (2015-12-15)
|
99
|
+
* * *
|
100
|
+
|
101
|
+
** APIs updated**:
|
102
|
+
|
103
|
+
Wrong API invocation issue if empty/null value passed instead of resource id, is fixed.
|
104
|
+
|
105
|
+
### v1.6.6 (2015-11-24)
|
106
|
+
* * *
|
107
|
+
|
108
|
+
** APIs updated**:
|
109
|
+
|
110
|
+
Support to specify accessbility in customer portal for a plan & addon. Create & update methods of Plan & Addon APIs accept "enabled_in_portal" parameter. See create plan API here : https://apidocs.chargebee.com/docs/api/v1/plans#create_a_plan
|
111
|
+
|
112
|
+
New attribute "enabled_in_portal" is returned as part of Plan/Addon resource.
|
113
|
+
See plan attributes here: https://apidocs.chargebee.com/docs/api/v1/plans#plan_attributes
|
114
|
+
|
115
|
+
### v1.6.5 (2015-11-09)
|
116
|
+
* * *
|
117
|
+
|
118
|
+
** APIs updated**:
|
119
|
+
|
120
|
+
Support for excess payments. See : https://www.chargebee.com/docs/customers.html#excess-payments
|
121
|
+
|
122
|
+
New attribute "excess_payments" is returned as part of Customer resource.
|
123
|
+
See: https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
124
|
+
|
125
|
+
New attribute "applied_at" is returned as part of Linked Transaction subresource of Invoice resource.
|
126
|
+
See: https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
127
|
+
|
128
|
+
New transaction type "PAYMENT_REVERSAL" is returned as part of Transaction resource.
|
129
|
+
See: https://apidocs.chargebee.com/docs/api/v1/transactions#transaction_attributes
|
130
|
+
|
131
|
+
New attributes "amount_unused", "reference_transaction_id", "reversal_transaction_id" & "linked_refunds" subresource are returned as part of Transaction resource.
|
132
|
+
|
133
|
+
New attribute "applied_at" is returmed as part of Linked Invoice subresource of Transaction resource.
|
134
|
+
See: https://apidocs.chargebee.com/docs/api/v1/transactions#transaction_attributes
|
135
|
+
|
136
|
+
### v1.6.4 (2015-10-26)
|
137
|
+
* * *
|
138
|
+
|
139
|
+
** APIs updated**:
|
140
|
+
|
141
|
+
Support to specify if a customer can pay via direct debit. Now, create & update customer, create subscription APIs accept the "allow_direct_debit" parameter for Customer resource. See create customer API here : https://apidocs.chargebee.com/docs/api/v1/customers#create_a_customer
|
142
|
+
|
143
|
+
New attribute "allow_direct_debit" is returned as part of Customer resource.
|
144
|
+
See : https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
145
|
+
|
146
|
+
New "price_type" attribute is returned as part of Estimate & Invoice Resource.
|
147
|
+
See : https://apidocs.chargebee.com/docs/api/v1/estimates#estimate_attributes
|
148
|
+
|
149
|
+
Support for address parameters in estimate APIs that is used to calculate tax. Now, create & update subscription estimate APIs accept billing state code, billing zip, shipping country, shipping state code & shipping zip.
|
150
|
+
See : https://apidocs.chargebee.com/docs/api/v1/estimates#create_subscription_estimate
|
151
|
+
|
152
|
+
### v1.6.3 (2015-09-18)
|
153
|
+
* * *
|
154
|
+
|
155
|
+
** APIs updated**:
|
156
|
+
|
157
|
+
Support to specify customer's tax liability. Now, create & update customer, create & update subscription, create & update subscription estimate, checkout new hosted page APIs accept the "taxability" parameter for Customer resource. See create customer API here : https://apidocs.chargebee.com/docs/api/v1/customers#create_a_customer
|
158
|
+
|
159
|
+
Support to specify taxability for a plan & addon. Create & update methods of Plan & Addon APIs accept "taxable" parameter. See create plan API here : https://apidocs.chargebee.com/docs/api/v1/plans#create_a_plan
|
160
|
+
|
161
|
+
The attribute "taxablility" is returned as part of Customer resource.
|
162
|
+
https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
163
|
+
|
164
|
+
The attribute "taxable" is returned as part of Plan resource.
|
165
|
+
See : https://apidocs.chargebee.com/docs/api/v1/plans#plan_attributes
|
166
|
+
|
167
|
+
The attribute "taxable" is returned as part of Addon resource.
|
168
|
+
See : https://apidocs.chargebee.com/docs/api/v1/addons#addon_attributes
|
169
|
+
|
170
|
+
|
171
|
+
The attribute "is_taxed" returned as part of "line_items" subresource of Estimate & Invoice resorces.
|
172
|
+
See attribute of line_items in Estimate here :
|
173
|
+
https://apidocs.chargebee.com/docs/api/v1/estimates#estimate_attributes
|
174
|
+
|
175
|
+
### v1.6.2 (2015-09-07)
|
176
|
+
* * *
|
177
|
+
|
178
|
+
** APIs updated**:
|
179
|
+
|
180
|
+
The attribute for "user" is returned as part of Event resource.
|
181
|
+
See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
182
|
+
|
183
|
+
Support for multiple webhooks. The attribute "webhooks" contains list of Webhook subresource is returned as part of Event API.
|
184
|
+
See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
185
|
+
|
186
|
+
** APIs deprecated**:
|
187
|
+
|
188
|
+
Attributes "webhook_status" & "webhook_failure_reason" of event resource has been deprecated.
|
189
|
+
|
190
|
+
### v1.6.1 (2015-08-25)
|
191
|
+
* * *
|
192
|
+
|
193
|
+
** APIs updated**:
|
194
|
+
|
195
|
+
The attribute for "first_invoice" & "currency_code" is returned as part of Invoice resource.
|
196
|
+
See : https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
197
|
+
|
198
|
+
The attribute for "currency_code" is returned as part of Transaction resource.
|
199
|
+
See : https://apidocs.chargebee.com/docs/api/v1/transactions#transaction_attributes
|
200
|
+
|
201
|
+
A new source type "bulk_operation" is returned as part of "source" attribute of event resource.
|
202
|
+
See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
203
|
+
|
204
|
+
### v1.6.0 (2015-07-20)
|
205
|
+
* * *
|
206
|
+
|
207
|
+
** APIs added**:
|
208
|
+
|
209
|
+
New api endpoint to Stop Dunning for "Payment Due" invoices is added. See : https://apidocs.chargebee.com/docs/api/v1/invoices#stop_dunning_for_invoice
|
210
|
+
|
211
|
+
** APIs updated**:
|
212
|
+
|
213
|
+
The attribute for "dunning_status" is returned as part of Invoice resource.
|
214
|
+
See : https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
215
|
+
|
216
|
+
### v1.5.9 (2015-07-09)
|
217
|
+
* * *
|
218
|
+
|
219
|
+
** APIs added**:
|
220
|
+
|
221
|
+
New api endpoint to Record Offline Refund for an invoice is added. See : https://apidocs.chargebee.com/docs/api/v1/invoices#record_refund_for_an_invoice
|
222
|
+
|
223
|
+
** APIs updated**:
|
224
|
+
|
225
|
+
Support to update payment method stored in gateway vault. Now, update payment method for a customer, create customer, create & update subscription method APIs accept the "gateway" parameter for Payment Method resource along with reference_id. See "Card Payments" section here : https://apidocs.chargebee.com/docs/api/v1/customers#update_payment_method_for_a_customer
|
226
|
+
|
227
|
+
The attribute for "gateway" name is returned as part of Payment Method sub-resource for a customer resource. See : https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
228
|
+
|
229
|
+
A new source type "migration" is returned as part of "source" attribute of event resource. See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
230
|
+
|
231
|
+
A new discount type "account_credits" is added as part of "type" attribute of discounts sub-resource for estimate resource.
|
232
|
+
|
233
|
+
** APIs deprecated**:
|
234
|
+
|
235
|
+
Attributes "description" & "void_description" of transaction resource has been deprecated.
|
236
|
+
|
237
|
+
### v1.5.8 (2015-06-18)
|
238
|
+
* * *
|
239
|
+
|
240
|
+
** APIs added**:
|
241
|
+
|
242
|
+
New api endpoint to Void an invoice is added. See : https://apidocs.chargebee.com/docs/api/v1/invoices#void_an_invoice
|
243
|
+
|
244
|
+
** APIs updated**:
|
245
|
+
|
246
|
+
A new invoice status "voided" is returned as part of "status" attribute in invoice resource. See : https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
247
|
+
|
248
|
+
** APIs deprecated**:
|
249
|
+
|
250
|
+
Update card for hosted page method API has been deprecated. Use "Update payment method" API to update card details. Read more about upadate payment method : https://apidocs.chargebee.com/docs/api/v1/hosted_pages#update_payment_method
|
251
|
+
|
252
|
+
### v1.5.7 (2015-06-12)
|
253
|
+
* * *
|
254
|
+
|
255
|
+
** APIs added**:
|
256
|
+
|
257
|
+
New api endpoints to Add, Deduct & Set the account credit for a customer is added. See the APIs below - https://apidocs.chargebee.com/docs/api/v1/customers#add_account_credits_to_a_customer
|
258
|
+
https://apidocs.chargebee.com/docs/api/v1/customers#deduct_account_credits_for_a_customer
|
259
|
+
https://apidocs.chargebee.com/docs/api/v1/customers#set_account_credits_for_a_customer
|
260
|
+
|
261
|
+
** APIs updated**:
|
262
|
+
|
263
|
+
Now, event "invoice_updated" can be fetched via API. See : https://apidocs.chargebee.com/docs/api/v1/events#event_types.
|
264
|
+
|
265
|
+
A new webkook status "skipped" is returned as part of "webhook_status" attribute of event resource. See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
266
|
+
|
267
|
+
The resource attribute for "account_credits" is returned as part of Customer resource. See : https://apidocs.chargebee.com/docs/api/v1/customers#customer_attributes
|
268
|
+
|
269
|
+
A new discount type "account_credits" is returned as part of "discounts" sub-resource of Invoice resource. See : https://apidocs.chargebee.com/docs/api/v1/events#event_attributes
|
270
|
+
|
271
|
+
** APIs deprecated**:
|
272
|
+
|
273
|
+
Support for "offer_quantity" in "discount_type" attribute deprecated for Create method of Coupon API.
|
274
|
+
|
275
|
+
Support for "specified_items_total" & "each_unit_of_specified_items" in "apply_on" attribute deprecated for Create method of Coupon API.
|
276
|
+
|
277
|
+
The attribute "discount_quantity" deprecated for Create method of Coupon API.
|
278
|
+
|
279
|
+
### v1.5.6 (2015-05-02)
|
280
|
+
* * *
|
281
|
+
|
282
|
+
** APIs added**:
|
283
|
+
|
284
|
+
A new api endpoint for "Update payment method for a customer" is added. This allows you to support PayPal Express Checkout via our API. See https://apidocs.chargebee.com/docs/api/v1/customers#update_payment_method_for_a_customer.
|
285
|
+
|
286
|
+
A new api endpoint for "Collect payment for an invoice" is added. This allows you to manually collect the payment(if a payment method is present for the customer) for an invoice in "payment_due" or "not_paid" state. See https://apidocs.chargebee.com/docs/api/v1/invoices#collect_payment_for_an_invoice.
|
287
|
+
|
288
|
+
** APIs updated**:
|
289
|
+
|
290
|
+
Support for PayPal Express Checkout while calling "Create a subscription", "Update a subscription" and "Create a customer" APIs. These APIs now accept details about the payment method(payment_method) that is being associated with the customer.
|
291
|
+
|
292
|
+
|
293
|
+
### v1.5.5 (2015-04-14)
|
294
|
+
* * *
|
295
|
+
|
296
|
+
** APIs updated**:
|
297
|
+
|
298
|
+
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
|
299
|
+
|
300
|
+
The resource attribute for "po_number" is returned as part of Subscription and Invoice resources.
|
301
|
+
|
302
|
+
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
|
303
|
+
|
304
|
+
A new sub-resource "notes" is returned as part of the Invoice resource attributes.
|
305
|
+
See https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes
|
306
|
+
|
307
|
+
A new attribute "amount_due" is returned as part of Invoice resource.
|
308
|
+
|
309
|
+
Checkout new, checkout existing, update payment method method APIs now accept "redirect_url" & "cancel_url" to which your customer should be redirected.
|
310
|
+
See https://apidocs.chargebee.com/docs/api/v1/hosted_pages#checkout_new_subscription
|
311
|
+
|
312
|
+
Now, event "subscription_renewal_reminder" can be fetched via API.
|
313
|
+
See https://apidocs.chargebee.com/docs/api/v1/events#event_types.
|
314
|
+
|
315
|
+
### v1.5.4 (2015-03-30)
|
316
|
+
* * *
|
317
|
+
|
318
|
+
** APIs added**:
|
319
|
+
|
320
|
+
A new API "Delete an Invoice" added to delete un-paid invoices. This feature was supported through admin console earlier, now it is available via API too.
|
321
|
+
See https://apidocs.chargebee.com/docs/api/v1/invoices#delete_an_invoice.
|
322
|
+
|
323
|
+
** APIs updated**:
|
324
|
+
|
325
|
+
Create subscription/customer, update subscription/payment method APIs now accepts the IP Address of customer for card resource.
|
326
|
+
|
327
|
+
Now, event "invoice_deleted" can be fetched via API.
|
328
|
+
See https://apidocs.chargebee.com/docs/api/v1/events#event_types.
|
329
|
+
|
330
|
+
### v1.5.3 (2015-02-27)
|
331
|
+
* * *
|
332
|
+
|
333
|
+
** APIs added**:
|
334
|
+
|
335
|
+
A new API "Create an Invoice" added to create one-off invoices with multiple 'Non Recurring' addon & ad-hoc charges for a customer. See https://apidocs.chargebee.com/docs/api/v1/invoices#create_an_invoice.
|
336
|
+
|
337
|
+
A new API called Activate a portal session method(Portal session) added to support building your authentication for your website on top of ChargeBee. See https://apidocs.chargebee.com/docs/api/v1/portal_sessions#activate_a_portal_session. Read about "Using ChargeBee authentication to allow access to your website" at https://apidocs.chargebee.com/docs/api/v1/portal_sessions.
|
338
|
+
|
339
|
+
** APIs updated**:
|
340
|
+
|
341
|
+
Shipping and Billing Address are returned as part of Invoice resource attributes. This returns the shiping & billing address that was present at the time of invoice generation.
|
342
|
+
|
343
|
+
Linked Customers as part of Portal session resource attributes.
|
344
|
+
|
345
|
+
### v1.5.2 (2015-02-18)
|
346
|
+
* * *
|
347
|
+
|
348
|
+
** APIs added**:
|
349
|
+
A new API called Remove scheduled cancellation method(Subscription) added to remove the pending cancellation scheduled at end of the subscription term.
|
350
|
+
|
351
|
+
** APIs deprecated**:
|
352
|
+
Reactivate a subscription(Subscription) API is deprecated for subscriptions in Non-Renewing state as an alternate API(see above) is added.
|
353
|
+
|
354
|
+
** APIs updated**:
|
355
|
+
Create subscription/customer, update subscription/customer/payment method/billing info API now accepts the State Code for billing, shipping, subscription and card addresses.
|
356
|
+
|
357
|
+
### v1.5.1 (2015-01-07)
|
358
|
+
* * *
|
359
|
+
|
360
|
+
Support for PayPal & Amazon payment added.
|
361
|
+
|
362
|
+
** APIs added**:
|
363
|
+
A new API called Update payment method(HostedPage) added to support allowing customers to update their payment method with PayPal and Amazon payments. See https://apidocs.chargebee.com/docs/api/v1/hosted_pages#update_payment_method for details.
|
364
|
+
|
365
|
+
** APIs deprecated**:
|
366
|
+
Update card(HostedPage) API is deprecated as an alternate API is added.
|
367
|
+
|
368
|
+
** APIs updated**:
|
369
|
+
Create a customer API now accepts the end user IP.
|
370
|
+
|
371
|
+
### v1.5.0 (2014-12-02)
|
372
|
+
* * *
|
373
|
+
|
374
|
+
**APIs added**:
|
375
|
+
A new resource called Order is introduced. This can be used for integrating ChargeBee with any shipping/order management application (like ShipStation). Orders are not automatically generated or updated by ChargeBee currently. They have to be created/updated either via api or merchant web console (a.k.a admin console). An order can be created against an invoice irrespective of the status of the invoice and an invoice can have multiple orders associated with it.
|
376
|
+
See https://apidocs.chargebee.com/docs/api/v1/orders?lang=ruby for details.
|
377
|
+
|
378
|
+
**API Updates**:
|
379
|
+
Ability to filter Invoices with paid_on_after parameter. See https://apidocs.chargebee.com/docs/api/v1/invoices?lang=ruby#list_invoices.
|
380
|
+
|
381
|
+
### v1.4.9 (2014-11-24)
|
382
|
+
* * *
|
383
|
+
|
384
|
+
* Support for Amazon Payments
|
385
|
+
* Details about customer's payment method is now available as sub resource of Customer.
|
386
|
+
* Bug fixes
|
387
|
+
|
388
|
+
### v1.4.8 (2014-10-20)
|
389
|
+
* * *
|
390
|
+
|
391
|
+
Bug fixes.
|
392
|
+
|
393
|
+
### v1.4.7 (2014-10-12)
|
394
|
+
* * *
|
395
|
+
|
396
|
+
**APIs Updated**:
|
397
|
+
* Set auto colection to on/off via "Update a customer" API. See https://apidocs.chargebee.com/docs/api/v1/customers#update_a_customer.
|
398
|
+
|
399
|
+
### v1.4.6 (2014-09-16)
|
400
|
+
* * *
|
401
|
+
|
402
|
+
**Error Model**:
|
403
|
+
|
404
|
+
New simpler model for error handling has been implemented. Please see below api document for more details
|
405
|
+
|
406
|
+
https://apidocs.chargebee.com/docs/api?lang=ruby#error_handling
|
407
|
+
|
408
|
+
The following attributes in APIError have been deprecated.
|
409
|
+
* error_code (Use api_error_code instead).
|
410
|
+
* http_code (Use http_status_code instead).
|
411
|
+
* http_body
|
412
|
+
|
413
|
+
The changes are backward compatible. Ensure that your error handling code is tested after you upgrade to this version.
|
414
|
+
|
415
|
+
**APIs Updated**:
|
416
|
+
|
417
|
+
Shipping Address support added to *create subscription for a customer* api call.
|
418
|
+
|
419
|
+
### v1.4.5 (2014-08-28)
|
420
|
+
* * *
|
421
|
+
* Customer id can be passed to the checkout new subscription operation.
|
422
|
+
|
423
|
+
* Added support for affiliate integration to accept affiliate token and the ip address from where the subscription was created.
|
424
|
+
|
425
|
+
### v1.4.4 (2014-08-13)
|
426
|
+
* * *
|
427
|
+
Added properties:
|
428
|
+
* Property has_scheduled_changes added to the Subscription resource to indicate whether there are any pending change scheduled for this Subscription
|
429
|
+
|
430
|
+
APIs added:
|
431
|
+
* Retrieve a subscription with scheduled changes applied. See https://apidocs.chargebee.com/docs/api/v1/subscriptions#retrieve_with_scheduled_changes.
|
432
|
+
* Remove schedule changes for a subscription. See https://apidocs.chargebee.com/docs/api/v1/subscriptions#remove_scheduled_changes.
|
433
|
+
|
434
|
+
APIs updated:
|
435
|
+
* Ability to pass description for Plans & Addons while Creating & Updating.
|
436
|
+
|
437
|
+
APIs Removed:
|
438
|
+
* Refund a Transaction - In ChargeBee, the 'refunds' are tracked against the invoice for which they are issued. A payment transaction can be associated with only one invoice now. So Transaction.refund() API is indeed a shortcut for Transaction.associatedInvoice().refund().
|
439
|
+
|
440
|
+
### v1.4.3 (2014-07-29)
|
441
|
+
* * *
|
442
|
+
APIs added:
|
443
|
+
* Add a one time charged to the subscription which will be added to the invoice generated at the end of the current term. See https://apidocs.chargebee.com/docs/api/v1/subscriptions#add_charge_at_term_end.
|
444
|
+
* Add a "non-recurring addon" charge to a subscription which will be added to the invoice generated at the end of the current term. See https://apidocs.chargebee.com/docs/api/v1/subscriptions#charge_addon_at_term_end.
|
445
|
+
*Return an estimate of the amount that will be charged when the subscription renews. See https://apidocs.chargebee.com/docs/api/v1/estimates#subscription_renewal_estimate
|
446
|
+
|
447
|
+
APIs updated:
|
448
|
+
* Now plans supports charge model to specify how the subscription plan charges should be calculated. See https://apidocs.chargebee.com/docs/api/v1/plans#plan_attributes
|
449
|
+
* Include delayed charges while calculating the Estimate.
|
450
|
+
|
451
|
+
### v1.4.2 (2014-06-19)
|
452
|
+
* * *
|
453
|
+
APIs added:
|
454
|
+
* Retrieve invoices for a customer. See https://apidocs.chargebee.com/docs/api/v1/invoices?lang=ruby#list_invoices_for_a_customer.
|
455
|
+
* Retrieve transactions for a customer. See https://apidocs.chargebee.com/docs/api/v1/transactions?lang=ruby#list_transactions_for_a_customer.
|
456
|
+
|
457
|
+
APIs updated:
|
458
|
+
* Now, a customer(without subscription) can be charged(Create invoice for Charge) for one time charges. See https://apidocs.chargebee.com/docs/api/v1/invoices?lang=ruby#create_invoice_for_charge.
|
459
|
+
* Now, a customer(without subscription) can be charged for one time addons(Create invoice for Addon). See https://apidocs.chargebee.com/docs/api/v1/invoices?lang=ruby#create_invoice_for_addon.
|
460
|
+
|
461
|
+
### v1.4.1 (2014-05-28)
|
462
|
+
* * *
|
463
|
+
New API to support Single Sign-on (SSO) to access the customer portal, if you already have your own authentication for your website. See https://apidocs.chargebee.com/docs/api/v1/portal_sessions?lang=ruby.
|
464
|
+
|
465
|
+
### v1.4.0 (2014-05-23)
|
466
|
+
* * *
|
467
|
+
* New API to create customer without subscription. See https://apidocs.chargebee.com/docs/api/v1/customers#create_a_customer
|
468
|
+
|
469
|
+
* New API to fetch invoices for a customer. This helps you fetch the invoices created due to multiple subscriptions present for any customer. See https://apidocs.chargebee.com/docs/api/v1/invoices#list_invoices_for_a_customer
|
470
|
+
|
471
|
+
* Customer id reference is added to the invoice attributes.
|
472
|
+
|
473
|
+
### v1.3.9 (2014-04-22)
|
474
|
+
* * *
|
475
|
+
Support for returning shipping address as part of create/update subscription API.
|
476
|
+
|
477
|
+
### v1.3.8 (2014-03-26)
|
478
|
+
* * *
|
479
|
+
* Now the [Transaction attributes](https://apidocs.chargebee.com/docs/api/v1/transactions#transaction_attributes "Transaction attributes") contains the details about the linked invoices.
|
480
|
+
|
481
|
+
* Now the [Invoice attributes](https://apidocs.chargebee.com/docs/api/v1/invoices#invoice_attributes "Invoice attributes") contains the details about the linked transactions.
|
482
|
+
|
483
|
+
* Support for recording a payment received via offline mode. See our API documentation on [Record Payment for an Invoice](https://apidocs.chargebee.com/docs/api/v1/transactions#record_payment_for_an_invoice "Record Payment for an Invoice")
|
484
|
+
|
485
|
+
### v1.3.7 (2014-03-18)
|
486
|
+
* * *
|
487
|
+
Support for deleting the plans & addons. See our API documentation on [Delete a plan](https://apidocs.chargebee.com/docs/api/v1/plans#delete_a_plan "Delete a plan") & [Delete an addon](https://apidocs.chargebee.com/docs/api/v1/addons#delete_an_addon "Delete an addon").
|
488
|
+
|
489
|
+
### v1.3.6 (2014-03-10)
|
490
|
+
* * *
|
491
|
+
* Support for creating coupons on the fly via API
|
492
|
+
|
493
|
+
* Support for updating the plans & addons.
|
494
|
+
|
495
|
+
* Now our hosted pages can be shown as popup checkout using our javascript API.
|
496
|
+
|
497
|
+
### v1.3.5 (2014-02-19)
|
498
|
+
* * *
|
499
|
+
* Support for passing shipping address for create subscription & update subscription API.
|
500
|
+
|
501
|
+
* Added new attributes for the Address resource.
|
502
|
+
|
503
|
+
### v1.3.4 (2014-02-12)
|
504
|
+
* * *
|
505
|
+
* New resource Download added to expose the URLs from which you can download resources like invoice PDFs.
|
506
|
+
|
507
|
+
* Update card hosted page now support pass_thru_parameter like the checkout pages.
|
508
|
+
|
509
|
+
* Support for downloading invoice as PDF.
|
510
|
+
|
511
|
+
* Transaction resource now exposes the void description for transactions that are voided.
|
512
|
+
|
513
|
+
### v1.3.3 (2014-02-02)
|
514
|
+
* * *
|
515
|
+
Support for refund invoice and transaction.
|
516
|
+
|
517
|
+
### v1.3.2 (2014-01-26)
|
518
|
+
* * *
|
519
|
+
Support for creating plans & addons on the fly via API.
|
520
|
+
|
521
|
+
### v1.3.1 (2014-01-16)
|
522
|
+
* * *
|
523
|
+
* Adding object that represent comments resource. Now comments can be added to the entities - Subscription, Invoice, Transaction, Plan, Addon & Coupon.
|
524
|
+
|
525
|
+
* API to fetch multiple subscriptions of a customer.
|
526
|
+
|
527
|
+
* Added support to get the list of events filtered by event type. Events can be fetched based on the event type eg., payment_succeeded.
|
528
|
+
|