Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Price list additions #1032

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions models/enums/PriceListPricesType.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: PriceListPricesType
type: string
enum:
- net
- gross
description: Price list prices type
6 changes: 6 additions & 0 deletions models/enums/PriceListType.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
title: PriceListType
type: string
enum:
- sell
- purchase
description: Price list types
1 change: 1 addition & 0 deletions models/enums/VatKind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ enum:
- I
- D
- S
x-internal: false
5 changes: 5 additions & 0 deletions models/responses/GetEntitiesClientsInfoResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: GetEntitiesClientsInfoResponse
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tutti le chiamate di info per creazione si chiamano ReceiptPreCreateInfo IssuedDocumentPreCreateInfo e così via

type: object
properties:
data:
$ref: ../schemas/EntitiesClientsInfo.yaml
1 change: 0 additions & 1 deletion models/responses/GetIssuedDocumentResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ type: object
properties:
data:
$ref: ../schemas/IssuedDocument.yaml
nullable: true
5 changes: 5 additions & 0 deletions models/responses/GetPriceListItemsResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: GetPriceListItemsResponse
type: object
properties:
data:
$ref: ../schemas/PriceListItemsList.yaml
13 changes: 13 additions & 0 deletions models/responses/ListPriceListsResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: ListPriceListsResponse
x-stoplight:
id: g3kx1zutlyruc
type: object
properties:
data:
type: array
x-stoplight:
id: j36y7n30stkpb
items:
$ref: ../schemas/PriceList.yaml
x-stoplight:
id: wnforzbhkwki9
12 changes: 8 additions & 4 deletions models/schemas/Client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ properties:
type: boolean
description: Use e-invoices for this entity
nullable: true
discount_highlight:
type: boolean
description: Highlight Discount
nullable: true
ei_code:
type: string
description: |
Client e-invoice code
nullable: true
discount_highlight:
type: boolean
description: Highlight Discount
nullable: true
default_discount:
type: number
description: Client default discount
Expand All @@ -152,6 +152,10 @@ properties:
format: date
description: Client intent declaration protocol date
nullable: true
price_list_id:
type: string
description: Price list id
nullable: true
created_at:
type: string
nullable: true
Expand Down
41 changes: 41 additions & 0 deletions models/schemas/EntitiesClientsInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
type: object
title: EntitiesClientInfo
properties:
countries_list:
type: array
description: Countries list
nullable: true
items:
type: string
payment_methods_list:
type: array
description: Payment methods list
nullable: true
items:
$ref: ./PaymentMethod.yaml
payment_accounts_list:
type: array
description: Payment accounts list
nullable: true
items:
$ref: ./PaymentAccount.yaml
vat_types_list:
type: array
description: Vat types list
nullable: true
items:
$ref: ./VatType.yaml
price_lists:
type: array
description: Price lists
nullable: true
items:
$ref: ./PriceList.yaml
limit:
type: number
description: Limit
nullable: true
usage:
type: number
description: usage
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sistemare descrizioni

tutte

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prendere spunto daglli altir modelli

nullable: true
4 changes: 4 additions & 0 deletions models/schemas/IssuedDocument.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ properties:
- manual_accepted
- manual_rejected
nullable: true
price_list_id:
type: string
description: Price list id
nullable: true
locked:
type: boolean
nullable: true
Expand Down
4 changes: 4 additions & 0 deletions models/schemas/IssuedDocumentPreCreateInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,7 @@ properties:
nullable: true
items:
$ref: ./Language.yaml
price_lists:
type: array
items:
$ref: ./PriceList.yaml
1 change: 1 addition & 0 deletions models/schemas/PaymentMethod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ properties:
type: string
description: E-invoice payment method
nullable: true
description: ''
28 changes: 28 additions & 0 deletions models/schemas/PriceList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
type: object
title: PriceList
properties:
id:
type: string
description: Price list id
nullable: true
name:
type: string
example: '123'
description: Price list name
nullable: true
prices_type:
$ref: ../enums/PriceListPricesType.yaml
is_default:
type: boolean
description: This entity is default
nullable: true
valid_from:
type: string
description: Price list start validity date
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...validity start date

nullable: true
valid_to:
type: string
nullable: true
description: Price list end validity date
type:
$ref: ../enums/PriceListType.yaml
5 changes: 5 additions & 0 deletions models/schemas/PriceListItem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: NumerationItem
type: object
properties:
price:
type: number
5 changes: 5 additions & 0 deletions models/schemas/PriceListItemsList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: NumerationItem
type: object
additionalProperties:
type: object
$ref: ./PriceListItem.yaml
Loading
Loading