diff --git a/ramp/src/types.rs b/ramp/src/types.rs index caf4bd2..fcac467 100644 --- a/ramp/src/types.rs +++ b/ramp/src/types.rs @@ -7204,7 +7204,8 @@ pub struct Bill { #[serde(default, skip_serializing_if = "Option::is_none")] pub memo: Option, #[doc = "Payment information of the bill."] - pub payment: ApiBillPayment, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub payment: Option, #[doc = "An ID that identifies the bill on client's side."] #[serde(default, skip_serializing_if = "Option::is_none")] pub remote_id: Option, @@ -7278,7 +7279,11 @@ impl tabled::Tabled for Bill { } else { String::new().into() }, - format!("{:?}", self.payment).into(), + if let Some(payment) = &self.payment { + format!("{:?}", payment).into() + } else { + String::new().into() + }, if let Some(remote_id) = &self.remote_id { format!("{:?}", remote_id).into() } else { diff --git a/specs/ramp.json b/specs/ramp.json index cc9a324..7d0c786 100644 --- a/specs/ramp.json +++ b/specs/ramp.json @@ -8198,7 +8198,8 @@ "$ref": "#/components/schemas/ApiBillPayment" } ], - "description": "Payment information of the bill." + "description": "Payment information of the bill.", + "nullable": true }, "remote_id": { "description": "An ID that identifies the bill on client's side.", @@ -8217,7 +8218,7 @@ "description": "Vendor information of the bill." } }, - "required": ["amount", "created_at", "due_at", "id", "issued_at", "payment", "status", "vendor"], + "required": ["amount", "created_at", "due_at", "id", "issued_at", "status", "vendor"], "type": "object" }, "Business": {