Skip to main content

CreditNotePut

Version: v5.0.0

Supporting model

A request/response or nested model — not a stored DynamoDB entity.

Overview

CreditNotPut model

Fields

FieldTypeRequiredDefaultDescription
credit_idstr
invoice_idstr
contact_namestr
contact_idstr
sales_personstr
referencestr
notestr
totalfloat
sub_totalfloat
total_taxfloat
restocking_feefloat
reasonstr
issue_datestr
sales_person_idstr
line_amount_tax_typestr
line_itemsList[LineItem]
allocationsList[CreditNoteAllocation]

Embedded models

Models embedded in the fields above — shown inline; they have no separate page.

LineItem — v2.1.0
FieldTypeRequiredDefaultDescription
item_typestr
item_namestr
descriptionstr
unit_pricefloat
tax_typestr
quantityint
accountAccountAccount model
tag_idstr
part_idstr
is_restockedboolFalse
discountfloat
tax_amountfloat
line_amountfloat
line_item_idstr

Change history

  • v2.1.0 · 2025-04-17 · Olaniyi Ajayi · Field line_item_id became optional.; Field line_item_id default changed: None → Field(default_factory=lambda : str(uuid4())). (6db62f7db)
  • v2.0.0 · 2025-04-09 · Cian (shared account) · Field description type changed: Optional[str] → str (breaking).; Field description became required (breaking).; Field item_name type changed: Optional[str] → str (breaking).; Field item_name became required (breaking).; Field item_type type changed: Optional[str] → str (breaking).; Field item_type became required (breaking).; Field line_item_id type changed: Optional[str] → str (breaking).; Field line_item_id became required (breaking). (6c65e2d22)
  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)
Account — v5.0.0
FieldTypeRequiredDefaultDescription
account_codestr
account_idstr
account_namestr

Change history

  • v5.0.0 · 2025-05-26 · Cian (shared account) · Field account_code type changed: str → Optional[str] (breaking).; Field account_code became optional. (509648ddf)
  • v4.0.0 · 2025-05-15 · Cian (shared account) · Field account_code type changed: Optional[str] → str (breaking).; Field account_code became required (breaking). (bdb212c0f)
  • v3.0.0 · 2025-05-09 · Cian (shared account) · Field account_code type changed: str → Optional[str] (breaking).; Field account_code became optional. (3a7865c16)
  • v2.0.0 · 2025-04-09 · Cian (shared account) · Field account_code type changed: Optional[str] → str (breaking).; Field account_code became required (breaking). (6c65e2d22)
  • v1.0.0 · 2025-03-15 · Olaniyi Ajayi · Initial version. (338416124)
CreditNoteAllocation — v2.1.0
FieldTypeRequiredDefaultDescription
invoice_idstr
invoice_display_idstr
amountfloat
datestr
allocation_idstr

Change history

  • v2.1.0 · 2025-09-12 · Olaniyi Ajayi · Field amount became optional.; Field amount default changed: None → Field(..., ge=0). (e2ad92a30)
  • v2.0.0 · 2025-05-15 · Cian (shared account) · Field invoice_display_id type changed: int → str (breaking). (9d75bf4fd)
  • v1.0.0 · 2025-05-14 · Cian (shared account) · Initial version. (02e6bfcc7)

APIs / Triggers

No API or event interacts with this object directly.

Change history

v5.0.0 · 2026-06-02 · Cian (shared account) · 82b67e3db

Restore source files without generated outputs

  • Removed field note (breaking).
v4.1.0 · 2026-05-29 · Olaniyi Ajayi · 424792de4

Invoice: add note to credit note model

  • Added optional field note.
v4.0.1 · 2025-09-12 · Olaniyi Ajayi · e2ad92a30

account unique check

  • Field restocking_fee default changed: None → Field(None, ge=0).
  • Field sub_total default changed: None → Field(None, ge=0).
  • Field total default changed: None → Field(None, ge=0).
  • Field total_tax default changed: None → Field(None, ge=0).
v4.0.0 · 2025-07-28 · Cian (shared account) · 0eb204368

fx

  • Added required field invoice_id.
  • Added optional field sub_total.
  • Added optional field total_tax.
  • Field allocations type changed: List[Allocation] → List[CreditNoteAllocation] (breaking).
v3.0.0 · 2025-07-28 · Cian (shared account) · de984fc8a

fx

  • Removed field invoice_id (breaking).
  • Removed field sub_total (breaking).
  • Removed field total_tax (breaking).
  • Field allocations type changed: List[CreditNoteAllocation] → List[Allocation] (breaking).
v2.0.0 · 2025-07-27 · Olaniyi Ajayi · 34f0c89db

credit note put updated

  • Added required field invoice_id.
  • Added optional field sub_total.
  • Added optional field total_tax.
  • Field allocations type changed: List[Allocation] → List[CreditNoteAllocation] (breaking).
v1.0.0 · 2025-03-16 · Cian (shared account) · feca668a3

models

  • Initial version.

Generated from dismantly-backend/Microservices/Invoice/dependencies/models.py. Do not edit by hand.

Models last synced: 2026-06-23 13:21 UTC