tier icon indicating copy to clipboard operation
tier copied to clipboard

Getting no data about currency

Open reza-ryte-club opened this issue 2 years ago • 0 comments

What is the issue?

The Pull function is supposed to return a model, which contains a list of Plan. A Plan object is supposed to have a currency. When I call Pull I cannot get any value for currency. Even if I can see in the Stripe dashboard that the plan costs certain USD.

Here is the definition of Plan type.

type Plan struct { 
    Title    string                
    Interval string              
    Currency string           
    Features map[refs.Name]Feature 
}

Steps to reproduce

Use the following signature to pull a valid plan with at least a feature.

func (c *Client) Pull(ctx context.Context) (apitypes.Model, error)

Are there any recent changes that introduced the issue?

No response

OS

Linux, macOS

OS version

No response

Tier version

0.12.0

reza-ryte-club avatar Sep 12 '23 14:09 reza-ryte-club