Remove relay subscription item column

This commit is contained in:
Jon Staab
2026-05-20 11:16:02 -07:00
parent a654096f25
commit 6d267ed339
10 changed files with 11 additions and 96 deletions
+4 -8
View File
@@ -211,10 +211,9 @@ impl Stripe {
subscription_id: &str,
price_id: &str,
quantity: i64,
) -> Result<String> {
) -> Result<()> {
let quantity = quantity.to_string();
let body = self
.post("/subscription_items")
self.post("/subscription_items")
.header(
"Idempotency-Key",
self.idempotency_key(&["create_subscription_item", subscription_id, price_id]),
@@ -224,12 +223,9 @@ impl Stripe {
("price", price_id),
("quantity", quantity.as_str()),
])
.send_json()
.send_ok()
.await?;
body["id"]
.as_str()
.map(str::to_string)
.ok_or_else(|| anyhow!("missing subscription item id"))
Ok(())
}
pub async fn set_subscription_item_quantity(&self, item_id: &str, quantity: i64) -> Result<()> {