question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing "flat amount" in Plan.Tier object

See original GitHub issue

Hi, I am using Stripe Java library (V 7.2.0) and I don’t have available"flat amount" in the object Tier when I retrieve a Plan. I tried using curl command and the value flat_amount is correctly populated in the JSON response from the server exactly how documentation says (https://stripe.com/docs/api/plans/object). The problem is: flat_amount is missing in inner class Plan.Tier (https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/model/Plan.java) so I cannot access it in my Java application.

public static class Tier extends StripeObject { Long unitAmount; Long upTo; /** * The {@code amount} attribute. * * @return the {@code amount} attribute * @deprecated Prefer using the {@code unitAmount} attribute instead. * @see <a href="https://stripe.com/docs/upgrades#2018-08-23">API version 2018-08-23</a> */ @Deprecated Long amount; }

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
marco-aquilanticommented, Nov 8, 2018

Thank you @remi-stripe. Really impressed by the quick answer I got.

0reactions
remi-stripecommented, Nov 7, 2018

Correction, this will ship in 7.3.0 soon. 4.11.0 was a mixup and that version is removed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update a price – curl - Stripe API reference
A brief description of the price, hidden from customers. ... The flat billing amount for an entire tier, regardless of the number of...
Read more >
Patreon Creator Plans
Patreon always suggests which tiers should receive merch based on the cost of your merch items and the price of shipping (which is...
Read more >
Export a Data-tier Application - SQL Server | Microsoft Learn
Exporting a deployed data-tier application (DAC) or database creates an export file that includes both the definitions of the objects in the ...
Read more >
TierOne Real Estate LLC - Move out checklist and charges
ANY MISSING REMOTES PLUS THE COST TO REPROGRAM THE OPENER! The attached Move-Out charge list is used to identify additional charges for repairs...
Read more >
Discount Schedules - Salesforce Help
Slab: Units within a certain bound receive discounts equal to their tier's discount value. Let's say you ordered 30 products under the discount...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found