Skip to content

Commit 98769f9

Browse files
authored
Releasing v2.58.0 (#102)
1 parent 80c0195 commit 98769f9

10 files changed

Lines changed: 49 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
### v2.58.0 ( 2025-10-28)
2+
* * *
3+
4+
### New Attributes:
5+
* reference_transactions has been added to Invoice.
6+
* payment_attempts[] has been added to PaymentIntent.
7+
* checkout_details has been added to PaymentIntent#PaymentAttempt.
8+
* line_item_id has been added to CreditNoteEstimate#Discount.
9+
* line_item_id has been added to CreditNote#Discount.
10+
* line_item_id has been added to InvoiceEstimate#Discount.
11+
* line_item_id has been added to Invoice#Discount.
12+
* line_item_id has been added to InvoiceEstimate#Discount.
13+
* line_item_id has been added to Quote#Discount.
14+
* line_item_id has been added to QuoteLineGroup#Discount.
15+
16+
### Modified Attributes:
17+
* omnichannel_subscription_item_offers has been made optional attribute from required attribute.
18+
19+
### New Input Parameters:
20+
* discount[line_item_id] has been added to CreditNote#ImportCreditNoteRequest.
21+
* discount[line_item_id] has been added to CreditNote#ImportInvoiceRequest.
22+
23+
### New Enums:
24+
* OMNICHANNEL_TRANSACTION_CREATED has been added to EventTypeEnum.
25+
* DEUTSCHE_BANK has been added to Gateway.
26+
127
### v2.57.0 ( 2025-09-23)
228
* * *
329

chargebee/models/credit_note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LineItemAddress(Model):
2020
fields = ["line_item_id", "first_name", "last_name", "email", "company", "phone", "line1", "line2", "line3", "city", "state_code", "state", "country", "zip", "validation_status"]
2121
pass
2222
class Discount(Model):
23-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
23+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
2424
pass
2525
class Tax(Model):
2626
fields = ["name", "amount", "description"]

chargebee/models/credit_note_estimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LineItemTax(Model):
1717
fields = ["line_item_id", "tax_name", "tax_rate", "date_to", "date_from", "prorated_taxable_amount", "is_partial_tax_applied", "is_non_compliance_tax", "taxable_amount", "tax_amount", "tax_juris_type", "tax_juris_name", "tax_juris_code", "tax_amount_in_local_currency", "local_currency_code"]
1818
pass
1919
class Discount(Model):
20-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
20+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
2121
pass
2222
class Tax(Model):
2323
fields = ["name", "amount", "description"]

chargebee/models/invoice.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LineItemAddress(Model):
2323
fields = ["line_item_id", "first_name", "last_name", "email", "company", "phone", "line1", "line2", "line3", "city", "state_code", "state", "country", "zip", "validation_status"]
2424
pass
2525
class Discount(Model):
26-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
26+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
2727
pass
2828
class Tax(Model):
2929
fields = ["name", "amount", "description"]
@@ -34,6 +34,9 @@ class TaxOrigin(Model):
3434
class LinkedPayment(Model):
3535
fields = ["txn_id", "applied_amount", "applied_at", "txn_status", "txn_date", "txn_amount"]
3636
pass
37+
class ReferenceTransaction(Model):
38+
fields = ["applied_amount", "applied_at", "txn_id", "txn_status", "txn_date", "txn_amount", "txn_type", "amount_capturable", "authorization_reason"]
39+
pass
3740
class DunningAttempt(Model):
3841
fields = ["attempt", "transaction_id", "dunning_type", "created_at", "txn_status", "txn_amount"]
3942
pass
@@ -77,9 +80,10 @@ class SiteDetailsAtCreation(Model):
7780
"term_finalized", "is_gifted", "generated_at", "expected_payment_date", "amount_to_collect", \
7881
"round_off_amount", "line_items", "line_item_tiers", "line_item_discounts", "line_item_taxes", \
7982
"line_item_credits", "line_item_addresses", "discounts", "taxes", "tax_origin", "linked_payments", \
80-
"dunning_attempts", "applied_credits", "adjustment_credit_notes", "issued_credit_notes", "linked_orders", \
81-
"notes", "shipping_address", "billing_address", "statement_descriptor", "einvoice", "void_reason_code", \
82-
"deleted", "tax_category", "vat_number_prefix", "channel", "business_entity_id", "site_details_at_creation"]
83+
"reference_transactions", "dunning_attempts", "applied_credits", "adjustment_credit_notes", \
84+
"issued_credit_notes", "linked_orders", "notes", "shipping_address", "billing_address", "statement_descriptor", \
85+
"einvoice", "void_reason_code", "deleted", "tax_category", "vat_number_prefix", "channel", "business_entity_id", \
86+
"site_details_at_creation"]
8387

8488

8589
@staticmethod

chargebee/models/invoice_estimate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LineItemAddress(Model):
2323
fields = ["line_item_id", "first_name", "last_name", "email", "company", "phone", "line1", "line2", "line3", "city", "state_code", "state", "country", "zip", "validation_status"]
2424
pass
2525
class Discount(Model):
26-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
26+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
2727
pass
2828
class Tax(Model):
2929
fields = ["name", "amount", "description"]

chargebee/models/payment_intent.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55

66
class PaymentIntent(Model):
77
class PaymentAttempt(Model):
8-
fields = ["id", "status", "payment_method_type", "id_at_gateway", "error_code", "error_text", "created_at", "modified_at", "error_detail"]
8+
fields = ["id", "status", "payment_method_type", "id_at_gateway", "error_code", "error_text", "checkout_details", "created_at", "modified_at", "error_detail"]
9+
pass
10+
class PaymentAttempt(Model):
11+
fields = ["id", "status", "payment_method_type", "id_at_gateway", "error_code", "error_text", "checkout_details", "created_at", "modified_at", "error_detail"]
912
pass
1013

1114
fields = ["id", "status", "currency_code", "amount", "gateway_account_id", "expires_at", \
1215
"reference_id", "payment_method_type", "success_url", "failure_url", "created_at", "modified_at", \
13-
"resource_version", "updated_at", "customer_id", "gateway", "active_payment_attempt", "business_entity_id"]
16+
"resource_version", "updated_at", "customer_id", "gateway", "active_payment_attempt", "payment_attempts", \
17+
"business_entity_id"]
1418

1519

1620
@staticmethod

chargebee/models/quote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LineItemTax(Model):
1717
fields = ["line_item_id", "tax_name", "tax_rate", "date_to", "date_from", "prorated_taxable_amount", "is_partial_tax_applied", "is_non_compliance_tax", "taxable_amount", "tax_amount", "tax_juris_type", "tax_juris_name", "tax_juris_code", "tax_amount_in_local_currency", "local_currency_code"]
1818
pass
1919
class Discount(Model):
20-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
20+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
2121
pass
2222
class Tax(Model):
2323
fields = ["name", "amount", "description"]

chargebee/models/quote_line_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LineItemTax(Model):
1414
fields = ["line_item_id", "tax_name", "tax_rate", "date_to", "date_from", "prorated_taxable_amount", "is_partial_tax_applied", "is_non_compliance_tax", "taxable_amount", "tax_amount", "tax_juris_type", "tax_juris_name", "tax_juris_code", "tax_amount_in_local_currency", "local_currency_code"]
1515
pass
1616
class Discount(Model):
17-
fields = ["amount", "description", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
17+
fields = ["amount", "description", "line_item_id", "entity_type", "discount_type", "entity_id", "coupon_set_code"]
1818
pass
1919
class Tax(Model):
2020
fields = ["name", "amount", "description"]

chargebee/result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def promotional_credit(self):
105105
@property
106106
def invoice(self):
107107
invoice = self._get('invoice', Invoice,
108-
{'line_items' : Invoice.LineItem, 'line_item_tiers' : Invoice.LineItemTier, 'line_item_discounts' : Invoice.LineItemDiscount, 'line_item_taxes' : Invoice.LineItemTax, 'line_item_credits' : Invoice.LineItemCredit, 'line_item_addresses' : Invoice.LineItemAddress, 'discounts' : Invoice.Discount, 'taxes' : Invoice.Tax, 'tax_origin' : Invoice.TaxOrigin, 'linked_payments' : Invoice.LinkedPayment, 'dunning_attempts' : Invoice.DunningAttempt, 'applied_credits' : Invoice.AppliedCredit, 'adjustment_credit_notes' : Invoice.AdjustmentCreditNote, 'issued_credit_notes' : Invoice.IssuedCreditNote, 'linked_orders' : Invoice.LinkedOrder, 'notes' : Invoice.Note, 'shipping_address' : Invoice.ShippingAddress, 'billing_address' : Invoice.BillingAddress, 'statement_descriptor' : Invoice.StatementDescriptor, 'einvoice' : Invoice.Einvoice, 'site_details_at_creation' : Invoice.SiteDetailsAtCreation});
108+
{'line_items' : Invoice.LineItem, 'line_item_tiers' : Invoice.LineItemTier, 'line_item_discounts' : Invoice.LineItemDiscount, 'line_item_taxes' : Invoice.LineItemTax, 'line_item_credits' : Invoice.LineItemCredit, 'line_item_addresses' : Invoice.LineItemAddress, 'discounts' : Invoice.Discount, 'taxes' : Invoice.Tax, 'tax_origin' : Invoice.TaxOrigin, 'linked_payments' : Invoice.LinkedPayment, 'reference_transactions' : Invoice.ReferenceTransaction, 'dunning_attempts' : Invoice.DunningAttempt, 'applied_credits' : Invoice.AppliedCredit, 'adjustment_credit_notes' : Invoice.AdjustmentCreditNote, 'issued_credit_notes' : Invoice.IssuedCreditNote, 'linked_orders' : Invoice.LinkedOrder, 'notes' : Invoice.Note, 'shipping_address' : Invoice.ShippingAddress, 'billing_address' : Invoice.BillingAddress, 'statement_descriptor' : Invoice.StatementDescriptor, 'einvoice' : Invoice.Einvoice, 'site_details_at_creation' : Invoice.SiteDetailsAtCreation});
109109
return invoice;
110110

111111
@property
@@ -301,7 +301,7 @@ def export(self):
301301
@property
302302
def payment_intent(self):
303303
payment_intent = self._get('payment_intent', PaymentIntent,
304-
{'payment_attempt' : PaymentIntent.PaymentAttempt});
304+
{'payment_attempt' : PaymentIntent.PaymentAttempt, 'payment_attempts' : PaymentIntent.PaymentAttempt});
305305
return payment_intent;
306306

307307
@property
@@ -581,7 +581,7 @@ def hierarchies(self):
581581
@property
582582
def invoices(self):
583583
invoices = self._get_list('invoices', Invoice,
584-
{'line_items' : Invoice.LineItem, 'line_item_tiers' : Invoice.LineItemTier, 'line_item_discounts' : Invoice.LineItemDiscount, 'line_item_taxes' : Invoice.LineItemTax, 'line_item_credits' : Invoice.LineItemCredit, 'line_item_addresses' : Invoice.LineItemAddress, 'discounts' : Invoice.Discount, 'taxes' : Invoice.Tax, 'tax_origin' : Invoice.TaxOrigin, 'linked_payments' : Invoice.LinkedPayment, 'dunning_attempts' : Invoice.DunningAttempt, 'applied_credits' : Invoice.AppliedCredit, 'adjustment_credit_notes' : Invoice.AdjustmentCreditNote, 'issued_credit_notes' : Invoice.IssuedCreditNote, 'linked_orders' : Invoice.LinkedOrder, 'notes' : Invoice.Note, 'shipping_address' : Invoice.ShippingAddress, 'billing_address' : Invoice.BillingAddress, 'statement_descriptor' : Invoice.StatementDescriptor, 'einvoice' : Invoice.Einvoice, 'site_details_at_creation' : Invoice.SiteDetailsAtCreation});
584+
{'line_items' : Invoice.LineItem, 'line_item_tiers' : Invoice.LineItemTier, 'line_item_discounts' : Invoice.LineItemDiscount, 'line_item_taxes' : Invoice.LineItemTax, 'line_item_credits' : Invoice.LineItemCredit, 'line_item_addresses' : Invoice.LineItemAddress, 'discounts' : Invoice.Discount, 'taxes' : Invoice.Tax, 'tax_origin' : Invoice.TaxOrigin, 'linked_payments' : Invoice.LinkedPayment, 'reference_transactions' : Invoice.ReferenceTransaction, 'dunning_attempts' : Invoice.DunningAttempt, 'applied_credits' : Invoice.AppliedCredit, 'adjustment_credit_notes' : Invoice.AdjustmentCreditNote, 'issued_credit_notes' : Invoice.IssuedCreditNote, 'linked_orders' : Invoice.LinkedOrder, 'notes' : Invoice.Note, 'shipping_address' : Invoice.ShippingAddress, 'billing_address' : Invoice.BillingAddress, 'statement_descriptor' : Invoice.StatementDescriptor, 'einvoice' : Invoice.Einvoice, 'site_details_at_creation' : Invoice.SiteDetailsAtCreation});
585585
return invoices;
586586

587587
@property

chargebee/version.py

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

0 commit comments

Comments
 (0)