Skip to content

Commit 10e3d14

Browse files
authored
Releasing v3.14.0 (#104)
1 parent b2c31c9 commit 10e3d14

21 files changed

Lines changed: 191 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
### v3.14.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
### v3.13.0 (2025-10-28)
242
* * *
343

chargebee/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def __init__(
6161
self.DifferentialPrice = chargebee.DifferentialPrice(self.env)
6262
self.Discount = chargebee.Discount(self.env)
6363
self.Download = chargebee.Download(self.env)
64+
self.Einvoice = chargebee.Einvoice(self.env)
6465
self.Entitlement = chargebee.Entitlement(self.env)
6566
self.EntitlementOverride = chargebee.EntitlementOverride(self.env)
6667
self.Estimate = chargebee.Estimate(self.env)
@@ -118,6 +119,7 @@ def __init__(
118119
self.Quote = chargebee.Quote(self.env)
119120
self.QuoteLineGroup = chargebee.QuoteLineGroup(self.env)
120121
self.QuotedCharge = chargebee.QuotedCharge(self.env)
122+
self.QuotedDeltaRamp = chargebee.QuotedDeltaRamp(self.env)
121123
self.QuotedRamp = chargebee.QuotedRamp(self.env)
122124
self.QuotedSubscription = chargebee.QuotedSubscription(self.env)
123125
self.Ramp = chargebee.Ramp(self.env)

chargebee/models/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136

137137
from chargebee.models.download.operations import Download
138138

139+
from chargebee.models.einvoice.operations import Einvoice
140+
139141
from chargebee.models.entitlement.operations import Entitlement
140142

141143
from chargebee.models.entitlement_override.operations import EntitlementOverride
@@ -246,6 +248,8 @@
246248

247249
from chargebee.models.quoted_charge.operations import QuotedCharge
248250

251+
from chargebee.models.quoted_delta_ramp.operations import QuotedDeltaRamp
252+
249253
from chargebee.models.quoted_ramp.operations import QuotedRamp
250254

251255
from chargebee.models.quoted_subscription.operations import QuotedSubscription

chargebee/models/credit_note/operations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ class CreateParams(TypedDict):
386386

387387
class RetrieveParams(TypedDict):
388388
line_item: NotRequired["CreditNote.RetrieveLineItemParams"]
389+
line_items_limit: NotRequired[int]
390+
line_items_offset: NotRequired[str]
389391

390392
class PdfParams(TypedDict):
391393
disposition_type: NotRequired[enums.DispositionType]

chargebee/models/credit_note/responses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from chargebee.model import Model
33
from typing import Dict, List, Any
44
from chargebee.response import Response
5-
from chargebee.models import invoice, transaction, transaction, invoice, download
5+
from chargebee.models import invoice, transaction, transaction, download, invoice
66

77

88
@dataclass
@@ -229,6 +229,7 @@ class CreditNoteResponse(Model):
229229
resource_version: int = None
230230
updated_at: int = None
231231
channel: str = None
232+
line_items_next_offset: str = None
232233
sub_total: int = None
233234
sub_total_in_local_currency: int = None
234235
total_in_local_currency: int = None
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .operations import Einvoice
2+
from .responses import EinvoiceResponse
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from .responses import *
2+
from chargebee import request, environment
3+
from typing import TypedDict, Required, NotRequired, Dict, List, Any, cast
4+
from enum import Enum
5+
6+
7+
@dataclass
8+
class Einvoice:
9+
env: environment.Environment
10+
11+
class Status(Enum):
12+
SCHEDULED = "scheduled"
13+
SKIPPED = "skipped"
14+
IN_PROGRESS = "in_progress"
15+
SUCCESS = "success"
16+
FAILED = "failed"
17+
REGISTERED = "registered"
18+
19+
def __str__(self):
20+
return self.value
21+
22+
pass
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from dataclasses import dataclass
2+
from chargebee.model import Model
3+
from typing import Dict, List, Any
4+
5+
6+
@dataclass
7+
class EinvoiceResponse(Model):
8+
raw_data: Dict[Any, Any] = None
9+
id: str = None
10+
reference_number: str = None
11+
status: str = None
12+
message: str = None

chargebee/models/enums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ class EntityType(Enum):
390390
OMNICHANNEL_ONE_TIME_ORDER = "omnichannel_one_time_order"
391391
OMNICHANNEL_ONE_TIME_ORDER_ITEM = "omnichannel_one_time_order_item"
392392
USAGE_FILE = "usage_file"
393+
BUSINESS_RULE = "business_rule"
394+
RULESET = "ruleset"
393395

394396
def __str__(self):
395397
return self.value
@@ -743,6 +745,7 @@ class Gateway(Enum):
743745
PAYSTACK = "paystack"
744746
JP_MORGAN = "jp_morgan"
745747
DEUTSCHE_BANK = "deutsche_bank"
748+
EZIDEBIT = "ezidebit"
746749
GOCARDLESS = "gocardless"
747750
NOT_APPLICABLE = "not_applicable"
748751

chargebee/models/estimate/operations.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,17 @@ class GiftSubscriptionForItemsSubscriptionItemParams(TypedDict):
607607
item_price_id: NotRequired[str]
608608
quantity: NotRequired[int]
609609
quantity_in_decimal: NotRequired[str]
610+
unit_price: NotRequired[int]
611+
unit_price_in_decimal: NotRequired[str]
612+
613+
class GiftSubscriptionForItemsItemTierParams(TypedDict):
614+
item_price_id: NotRequired[str]
615+
starting_unit: NotRequired[int]
616+
ending_unit: NotRequired[int]
617+
price: NotRequired[int]
618+
starting_unit_in_decimal: NotRequired[str]
619+
ending_unit_in_decimal: NotRequired[str]
620+
price_in_decimal: NotRequired[str]
610621

611622
class CreateInvoiceInvoiceParams(TypedDict):
612623
customer_id: NotRequired[str]
@@ -1017,6 +1028,7 @@ class GiftSubscriptionForItemsParams(TypedDict):
10171028
subscription_items: NotRequired[
10181029
List["Estimate.GiftSubscriptionForItemsSubscriptionItemParams"]
10191030
]
1031+
item_tiers: NotRequired[List["Estimate.GiftSubscriptionForItemsItemTierParams"]]
10201032

10211033
class CreateInvoiceParams(TypedDict):
10221034
invoice: NotRequired["Estimate.CreateInvoiceInvoiceParams"]

0 commit comments

Comments
 (0)