We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 793e700 + 5f744cd commit a2d40cdCopy full SHA for a2d40cd
agent/provider/src/provider_agent.rs
@@ -261,7 +261,10 @@ impl ProviderAgent {
261
262
for preset in presets {
263
let pricing_model: Box<dyn PricingOffer> = match preset.pricing_model.as_str() {
264
- "linear" => Box::new(LinearPricingOffer::default()),
+ "linear" => match std::env::var("DEBIT_NOTE_INTERVAL") {
265
+ Ok(val) => Box::new(LinearPricingOffer::default().interval(val.parse()?)),
266
+ Err(_) => Box::new(LinearPricingOffer::default()),
267
+ },
268
other => return Err(anyhow!("Unsupported pricing model: {}", other)),
269
};
270
let mut offer: OfferTemplate = offer_templates
0 commit comments