#Eranga

1 messages · Page 1 of 1 (latest)

vernal topazBOT
green estuary
#

hello! i'm not sure i understand the question, why do you need to validate this parameter?

cinder summit
#

Hello @green estuary 😄, I am trying to rely on this value to calculate the amount of credit used for a transaction

#

For an example, when a user is modifying the quantity of a subscription, I would like to show them the amount of credit that will be gained, or consumed by the change they make

#

This is prior to updating the subscription hence the upcoming invoice

#

I tested this and I see this value not being null in the upcoming invoice. But before I write my code, I would like to make sure

green estuary
#

based on what i read, it shouldn't be null if the invoice has been finalized. But you should still test it in all the applicable scenarios for your implementation

cinder summit
#

Since I am looking at the upcoming invoice, the invoice will never be finalized.

#

I tested the scenarios that could happen, but I wanted to make sure whether there is a scenario that could be null for the upcoming invoice. Because in the future we might have a scenario that I didn't test today

green estuary
#

if I don't know what the scenario is, i wouldn't be able to guarantee that it's not going to be null. Ultimately the upcoming invoice simulates the finalized invoice and so the customer balance shouldn't be null for the upcoming invoice.

cinder summit
#

Ultimately the upcoming invoice simulates the finalized invoice and so the customer balance shouldn't be null for the upcoming invoice.

#

This is what I hoped as well