Skip to content

Commit

Permalink
bump ramo
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Aug 12, 2024
1 parent 82340eb commit 517e658
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions ramp/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7204,7 +7204,8 @@ pub struct Bill {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub memo: Option<String>,
#[doc = "Payment information of the bill."]
pub payment: ApiBillPayment,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub payment: Option<ApiBillPayment>,
#[doc = "An ID that identifies the bill on client's side."]
#[serde(default, skip_serializing_if = "Option::is_none")]
pub remote_id: Option<String>,
Expand Down Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions specs/ramp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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": {
Expand Down

0 comments on commit 517e658

Please sign in to comment.