diff --git a/models/CustomerBill.v1.json b/models/CustomerBill.v1.json index 80f1965..2eb8785 100755 --- a/models/CustomerBill.v1.json +++ b/models/CustomerBill.v1.json @@ -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" }, @@ -23,10 +30,9 @@ } }, "required": [ + "type", "partner", "due_date", - "amount", - "rib", - "case_summary" + "amount" ] } \ No newline at end of file diff --git a/models/CustomerBillingParameters.v1.json b/models/CustomerBillingParameters.v1.json index fa42622..c9782c9 100755 --- a/models/CustomerBillingParameters.v1.json +++ b/models/CustomerBillingParameters.v1.json @@ -21,6 +21,7 @@ } }, "required": [ + "type", "funding_results", "case", "partner" diff --git a/models/CustomerBillingParametersByIds.v1.json b/models/CustomerBillingParametersByIds.v1.json index 205da1a..4ff9124 100755 --- a/models/CustomerBillingParametersByIds.v1.json +++ b/models/CustomerBillingParametersByIds.v1.json @@ -28,6 +28,7 @@ } }, "required": [ + "type", "simulation_id", "plan_id", "case_id", diff --git a/models/PartnerBill.v1.json b/models/PartnerBill.v1.json index f41d6a7..2aa92cf 100755 --- a/models/PartnerBill.v1.json +++ b/models/PartnerBill.v1.json @@ -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" }, @@ -26,6 +33,7 @@ } }, "required": [ + "type", "partner_from", "partner_to", "due_date", diff --git a/models/PartnerBillingParameters.v1.json b/models/PartnerBillingParameters.v1.json index 76f7ffc..2fedd40 100755 --- a/models/PartnerBillingParameters.v1.json +++ b/models/PartnerBillingParameters.v1.json @@ -24,6 +24,7 @@ } }, "required": [ + "type", "funding_results", "case", "partner_from", diff --git a/models/PartnerBillingParametersByIds.v1.json b/models/PartnerBillingParametersByIds.v1.json index 235d9b5..9afb2ae 100755 --- a/models/PartnerBillingParametersByIds.v1.json +++ b/models/PartnerBillingParametersByIds.v1.json @@ -32,6 +32,7 @@ } }, "required": [ + "type", "simulation_id", "plan_id", "case_id",