Skip to content

Commit

Permalink
feat: add type in bills
Browse files Browse the repository at this point in the history
  • Loading branch information
mvicrob authored and Coleim committed Jan 5, 2022
1 parent b1907dd commit 6a9ba38
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
12 changes: 9 additions & 3 deletions models/CustomerBill.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"type": "object",
"description": "Facture vers un client.",
"properties": {
"type": {
"type": "string",
"enum": [
"CUSTOMER_BILL"
],
"description": "Type de facture: partenaire."
},
"partner": {
"$ref": "./Partner.v1.json"
},
Expand All @@ -23,10 +30,9 @@
}
},
"required": [
"type",
"partner",
"due_date",
"amount",
"rib",
"case_summary"
"amount"
]
}
1 change: 1 addition & 0 deletions models/CustomerBillingParameters.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}
},
"required": [
"type",
"funding_results",
"case",
"partner"
Expand Down
1 change: 1 addition & 0 deletions models/CustomerBillingParametersByIds.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
}
},
"required": [
"type",
"simulation_id",
"plan_id",
"case_id",
Expand Down
8 changes: 8 additions & 0 deletions models/PartnerBill.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"type": "object",
"description": "Facture inter-partenaires.",
"properties": {
"type": {
"type": "string",
"enum": [
"PARTNER_BILL"
],
"description": "Type de facture: partenaire."
},
"partner_from": {
"$ref": "./Partner.v1.json"
},
Expand All @@ -26,6 +33,7 @@
}
},
"required": [
"type",
"partner_from",
"partner_to",
"due_date",
Expand Down
1 change: 1 addition & 0 deletions models/PartnerBillingParameters.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
}
},
"required": [
"type",
"funding_results",
"case",
"partner_from",
Expand Down
1 change: 1 addition & 0 deletions models/PartnerBillingParametersByIds.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}
},
"required": [
"type",
"simulation_id",
"plan_id",
"case_id",
Expand Down

0 comments on commit 6a9ba38

Please sign in to comment.