#Osiris

1 messages · Page 1 of 1 (latest)

raw ridgeBOT
ruby oar
#

Can't re-open but we can continue the conversation here.

remote pawn
#

Threshold is changing the bill instead of just pre-charging. Without threshold user will be charged for 51 units which is max in period. Whereas with threshold, user is being charged for 51+50=101 units

#

How i expect this to work is, substract pre-charged bill from cycle end bill thats it. Not change the amount itself.

raw ridgeBOT
ruby oar
#

Okay but when you add usage, since you have a billing threshold, this increments the usage. And your threshold is set to not reset the billing cycle anchor.

#

So let's back up one second

#

What is the exact behavior you want?

#

Do you want an invoice to be cut when a threshold is eclipsed?

#

Or do you want to only invoice at the end of the billing cylce?

remote pawn
#

Okay but when you add usage, since you have a billing threshold, this increments the usage.
Usages aren't supposed to be incremented in max aggregate type. Stripe is supposed to take max of all reported usages

ruby oar
#

The only option is to use increment when using billing thresholds

remote pawn
#

set and increment are for a particular timestamp not entire period

ruby oar
#

You are right. My bad.

#

Okay let me take another look here

ruby oar
#

@remote pawn to me this seems like simply a conflict between using a threshold and setting a max aggregate. You want the behavior here to be that you are able to adjust from 51 --> 50 without recharging, even if both are over the threshold?

remote pawn
#

yup

ruby oar
#

So yeah this simply isn't really possible since you can't overwrite usage here with billing thresholds.

remote pawn
#

so for max settings adding threshold changes the meaning completely

ruby oar
#

Yeah pretty much

#

It basically becomes "max if below threshold"

#

But those two don't really play nicely together for what you want

remote pawn
#

cool then. Thats why it feels wrong. I just wanted to confirm if I am doing anything wrong.

ruby oar
#

Yeah sorry I misunderstood what you were trying to do initially