Skip to content

Commit

Permalink
Merge pull request #300 from mvicrob/billing
Browse files Browse the repository at this point in the history
feat: improve billing datamodel
  • Loading branch information
mvicrob authored Dec 25, 2021
2 parents 688a7d2 + 91f5770 commit a54ac70
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
4 changes: 2 additions & 2 deletions models/PartnerBill.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Facture inter-partenaires.",
"properties": {
"partner_from": {
"$ref": "./ActivePartner.v1.json"
"$ref": "./Partner.v1.json"
},
"partner_to": {
"$ref": "./ActivePartner.v1.json"
"$ref": "./Partner.v1.json"
},
"due_date": {
"description": "Date d'échéance.",
Expand Down
27 changes: 16 additions & 11 deletions models/PartnerBillingParametersByIds.v1.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "PartnerBillingParametersByIds",
"description": "Paramètres permettant de générer une facture à destination d'un partenaire.",
"description": "Ids des paramètres permettant de générer une facture à destination d'un partenaire.",
"type": "object",
"properties": {
"type": {
Expand All @@ -10,27 +10,32 @@
],
"description": "Type de paramètres de faturation."
},
"simulation": {
"simulation_id": {
"type": "string",
"description": "Id de la simulation parente."
"description": "Id de la simulation."
},
"case": {
"plan_id": {
"type": "string",
"description": "Id du dossier parent"
"description": "Id des paramètres du plan."
},
"partner_from": {
"case_id": {
"type": "string",
"description": "Id du dossier."
},
"partner_from_id": {
"type": "string",
"description": "Id du partenaire emettant la facture (courtier en général)."
},
"partner_to": {
"partner_to_id": {
"type": "string",
"description": "Id du partenaire recevant la facture."
}
},
"required": [
"simulation",
"case",
"partner_from",
"partner_to"
"simulation_id",
"plan_id",
"case_id",
"partner_from_id",
"partner_to_id"
]
}
3 changes: 3 additions & 0 deletions reference/toaztr.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@ paths:
description: 'Génère une facture, depuis les objets dossier, simulation et partners ou leurs IDs.'
tags:
- billing
security:
- toaztr_auth:
- bills/write
/v1/transfers:
parameters: []
post:
Expand Down

0 comments on commit a54ac70

Please sign in to comment.