Skip to content

Commit 620b46a

Browse files
authored
Releasing v2.59.0 (#103)
1 parent 98769f9 commit 620b46a

10 files changed

Lines changed: 93 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
### v2.59.0 (2025-11-26)
2+
* * *
3+
4+
### New Resources:
5+
* Einvoice has been added.
6+
* QuotedDeltaRamp has been added.
7+
8+
### New Attributes:
9+
* line_items_next_offset has been added to CreditNote.
10+
* line_items_next_offset has been added to Invoice.
11+
* credit_lines has been added to SalesOrder.
12+
* billable_unit_price has been added to SalesOrder#LineItem.
13+
* billable_quantity has been added to SalesOrder#LineItem.
14+
* billable_amount has been added to SalesOrder#LineItem.
15+
16+
### New Endpoint:
17+
* move has been added to ItemPrice.
18+
19+
### New Parameters:
20+
* line_items_limit has been added to CreditNote#RetrieveRequest.
21+
* line_items_offset has been added to CreditNote#RetrieveRequest.
22+
* line_items_limit has been added to Invoice#RetrieveRequest.
23+
* line_items_offset has been added to Invoice#RetrieveRequest.
24+
* item_tiers has been added to Estimate#GiftSubscriptionForItemsRequest.
25+
* unit_price has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
26+
* unit_price_in_decimal has been added to Estimate#SubscriptionItems#GiftSubscriptionForItemsRequest.
27+
* item_tiers has been added to Gift#CreateForItemsRequest.
28+
* meta_data has been added to Gift#CreateForItemsRequest.
29+
* unit_price has been added to Gift#SubscriptionItems#CreateForItemsRequest.
30+
* unit_price_in_decimal has been added to Gift#SubscriptionItems#CreateForItemsRequest.
31+
* item_tiers has been added to HostedPage#CheckoutGiftForItemsRequest.
32+
* unit_price has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
33+
* unit_price_in_decimal has been added to HostedPage#SubscriptionItems#CheckoutGiftForItemsRequest.
34+
* auto_select_local_currency has been added to PricingPageSession#CreateForNewSubscriptionRequest.
35+
36+
### New Enums:
37+
* EZIDEBIT has been added to GatewayEnum.
38+
* BUSINESS_RULE has been added to EntityTypeEnum.
39+
* RULESET has been added to EntityTypeEnum.
40+
141
### v2.58.0 ( 2025-10-28)
242
* * *
343

chargebee/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from chargebee.models.differential_price import DifferentialPrice
2424
from chargebee.models.discount import Discount
2525
from chargebee.models.download import Download
26+
from chargebee.models.einvoice import Einvoice
2627
from chargebee.models.entitlement import Entitlement
2728
from chargebee.models.entitlement_override import EntitlementOverride
2829
from chargebee.models.estimate import Estimate
@@ -73,6 +74,7 @@
7374
from chargebee.models.quote import Quote
7475
from chargebee.models.quote_line_group import QuoteLineGroup
7576
from chargebee.models.quoted_charge import QuotedCharge
77+
from chargebee.models.quoted_delta_ramp import QuotedDeltaRamp
7678
from chargebee.models.quoted_ramp import QuotedRamp
7779
from chargebee.models.quoted_subscription import QuotedSubscription
7880
from chargebee.models.ramp import Ramp

chargebee/models/credit_note.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ class SiteDetailsAtCreation(Model):
5050
fields = ["id", "customer_id", "subscription_id", "reference_invoice_id", "type", "reason_code", \
5151
"status", "vat_number", "date", "price_type", "currency_code", "total", "amount_allocated", \
5252
"amount_refunded", "amount_available", "refunded_at", "voided_at", "generated_at", "resource_version", \
53-
"updated_at", "channel", "sub_total", "sub_total_in_local_currency", "total_in_local_currency", \
54-
"local_currency_code", "round_off_amount", "fractional_correction", "line_items", "line_item_tiers", \
55-
"line_item_discounts", "line_item_taxes", "line_item_addresses", "discounts", "taxes", "tax_origin", \
56-
"linked_refunds", "allocations", "deleted", "tax_category", "local_currency_exchange_rate", \
57-
"create_reason_code", "vat_number_prefix", "business_entity_id", "shipping_address", "billing_address", \
58-
"einvoice", "site_details_at_creation"]
53+
"updated_at", "channel", "line_items_next_offset", "sub_total", "sub_total_in_local_currency", \
54+
"total_in_local_currency", "local_currency_code", "round_off_amount", "fractional_correction", \
55+
"line_items", "line_item_tiers", "line_item_discounts", "line_item_taxes", "line_item_addresses", \
56+
"discounts", "taxes", "tax_origin", "linked_refunds", "allocations", "deleted", "tax_category", \
57+
"local_currency_exchange_rate", "create_reason_code", "vat_number_prefix", "business_entity_id", \
58+
"shipping_address", "billing_address", "einvoice", "site_details_at_creation"]
5959

6060

6161
@staticmethod

chargebee/models/einvoice.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import json
2+
from chargebee.model import Model
3+
from chargebee import request
4+
from chargebee import APIError
5+
6+
class Einvoice(Model):
7+
8+
fields = ["id", "reference_number", "status", "message"]
9+

chargebee/models/gift.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def create(params, env=None, headers=None):
2828
@staticmethod
2929
def create_for_items(params, env=None, headers=None):
3030
json_keys = {
31+
"meta_data": 0,
3132
"additional_information": 1,
3233
}
3334
return request.send('post', request.uri_path("gifts","create_for_items"), params, env, headers, None, False,json_keys)

chargebee/models/invoice.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ class SiteDetailsAtCreation(Model):
7676
"local_currency_exchange_rate", "currency_code", "local_currency_code", "tax", "sub_total", \
7777
"sub_total_in_local_currency", "total", "total_in_local_currency", "amount_due", "amount_adjusted", \
7878
"amount_paid", "paid_at", "write_off_amount", "credits_applied", "dunning_status", "next_retry_at", \
79-
"voided_at", "resource_version", "updated_at", "first_invoice", "new_sales_amount", "has_advance_charges", \
80-
"term_finalized", "is_gifted", "generated_at", "expected_payment_date", "amount_to_collect", \
81-
"round_off_amount", "line_items", "line_item_tiers", "line_item_discounts", "line_item_taxes", \
82-
"line_item_credits", "line_item_addresses", "discounts", "taxes", "tax_origin", "linked_payments", \
83-
"reference_transactions", "dunning_attempts", "applied_credits", "adjustment_credit_notes", \
79+
"voided_at", "resource_version", "updated_at", "line_items_next_offset", "first_invoice", "new_sales_amount", \
80+
"has_advance_charges", "term_finalized", "is_gifted", "generated_at", "expected_payment_date", \
81+
"amount_to_collect", "round_off_amount", "line_items", "line_item_tiers", "line_item_discounts", \
82+
"line_item_taxes", "line_item_credits", "line_item_addresses", "discounts", "taxes", "tax_origin", \
83+
"linked_payments", "reference_transactions", "dunning_attempts", "applied_credits", "adjustment_credit_notes", \
8484
"issued_credit_notes", "linked_orders", "notes", "shipping_address", "billing_address", "statement_descriptor", \
8585
"einvoice", "void_reason_code", "deleted", "tax_category", "vat_number_prefix", "channel", "business_entity_id", \
8686
"site_details_at_creation"]

chargebee/models/item_price.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ def find_applicable_item_prices(id, params=None, env=None, headers=None):
7070
json_keys = {
7171
}
7272
return request.send('get', request.uri_path("item_prices",id,"applicable_item_prices"), params, env, headers, None, False,json_keys)
73+
74+
@staticmethod
75+
def move_item_price(id, params, env=None, headers=None):
76+
json_keys = {
77+
}
78+
return request.send('post', request.uri_path("item_prices",id,"move"), params, env, headers, None, False,json_keys)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import json
2+
from chargebee.model import Model
3+
from chargebee import request
4+
from chargebee import APIError
5+
6+
class QuotedDeltaRamp(Model):
7+
class LineItem(Model):
8+
fields = ["item_level_discount_per_billing_cycle_in_decimal"]
9+
pass
10+
11+
fields = ["line_items"]
12+

chargebee/result.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ def payment_schedule(self):
119119
{'schedule_entries' : PaymentSchedule.ScheduleEntry});
120120
return payment_schedule;
121121

122+
@property
123+
def einvoice(self):
124+
einvoice = self._get('einvoice', Einvoice);
125+
return einvoice;
126+
122127
@property
123128
def tax_withheld(self):
124129
tax_withheld = self._get('tax_withheld', TaxWithheld);
@@ -205,6 +210,12 @@ def quoted_ramp(self):
205210
{'line_items' : QuotedRamp.LineItem, 'discounts' : QuotedRamp.Discount, 'item_tiers' : QuotedRamp.ItemTier, 'coupon_applicability_mappings' : QuotedRamp.CouponApplicabilityMapping});
206211
return quoted_ramp;
207212

213+
@property
214+
def quoted_delta_ramp(self):
215+
quoted_delta_ramp = self._get('quoted_delta_ramp', QuotedDeltaRamp,
216+
{'line_items' : QuotedDeltaRamp.LineItem});
217+
return quoted_delta_ramp;
218+
208219
@property
209220
def billing_configuration(self):
210221
billing_configuration = self._get('billing_configuration', BillingConfiguration,

chargebee/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '2.58.0'
1+
VERSION = '2.59.0'

0 commit comments

Comments
 (0)