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 all 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
5 changes: 5 additions & 0 deletions models/responses/GetEntityClientPreCreateInfoResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: GetEntityClientPreCreateInfoResponse
type: object
properties:
data:
$ref: ../schemas/EntityClientPreCreateInfo.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
7 changes: 7 additions & 0 deletions models/responses/ListPriceListsResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: ListPriceListsResponse
type: object
properties:
data:
type: array
items:
$ref: ../schemas/PriceList.yaml
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/EntityClientPreCreateInfo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
type: object
title: EntityClientPreCreateInfo
properties:
countries_list:
type: array
description: Countries list
nullable: true
items:
type: string
payment_methods_list:
type: array
description: Entity payment methods list
nullable: true
items:
$ref: ./PaymentMethod.yaml
payment_accounts_list:
type: array
description: Entity 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: Entity price lists
nullable: true
items:
$ref: ./PriceList.yaml
limit:
type: number
description: Entity limit
nullable: true
usage:
type: number
description: Entity usage
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
5 changes: 5 additions & 0 deletions models/schemas/IssuedDocumentPreCreateInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ properties:
nullable: true
items:
$ref: ./Language.yaml
price_lists:
type: array
description: Price lists
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 validity start date
nullable: true
valid_to:
type: string
nullable: true
description: Price list validity end 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: PriceListItem
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: PriceListItemsList
type: object
additionalProperties:
type: object
$ref: ./PriceListItem.yaml
Loading