Skip to content

Commit

Permalink
feat(InvoicePosition)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmakeev committed Jul 18, 2021
1 parent b469e28 commit 072e752
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moysklad-api-model",
"version": "0.2.1",
"version": "0.2.2",
"description": "Объектная модель API МойСклад для TypeScript проектов",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions src/model/InvoicePosition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Position, PositionPatch } from './Position'

export type InvoicePositionFields = {
/**
* НДС
*/
vat: number
}

export type InvoicePosition = Position<'invoiceposition'> &
InvoicePositionFields

export type InvoicePositionPatch = PositionPatch<'invoiceposition'> &
Partial<Pick<InvoicePositionFields, 'vat'>>
3 changes: 2 additions & 1 deletion src/model/MetaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
Group,
InvoiceIn,
InvoiceOut,
InvoicePosition,
Organization,
PaymentIn,
PaymentOut,
Expand Down Expand Up @@ -156,7 +157,7 @@ export type EntityByMetaType = {
inventoryposition: Entity<'inventoryposition'>
invoicein: InvoiceIn
invoiceout: InvoiceOut
invoiceposition: Entity<'invoiceposition'>
invoiceposition: InvoicePosition
loss: Entity<'loss'>
lossposition: Entity<'lossposition'>
move: Entity<'move'>
Expand Down
1 change: 1 addition & 0 deletions src/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export * from './HasUpdated'
export * from './HasVat'
export * from './InvoiceIn'
export * from './InvoiceOut'
export * from './InvoicePosition'
export * from './Legal'
export * from './MediaType'
export * from './Meta'
Expand Down

0 comments on commit 072e752

Please sign in to comment.