Giter VIP home page Giter VIP logo

tap-chargebee's People

Contributors

arvindenvoy avatar cb-aravindh avatar cb-svel avatar dmosorast avatar douwem avatar dwallace0723 avatar hg-ramosaj avatar hsyyid avatar irfan-zulfiqar avatar kallan357 avatar keyn4 avatar luandy64 avatar nick-mccoy avatar sehnem avatar vmesel avatar xacadil avatar

Watchers

 avatar

tap-chargebee's Issues

Incorrect version of invoice recorded in `invoices` table.

Hello ๐Ÿ‘‹ . First of all thank you for making a chargebee connector which is compatible with meltano. So much easier to implement!

Unfortunately I've run into an issue where the version of an invoice downloaded by the tap is out of date. The downloaded version is flagged as deleted whereas the latest version is not. This is causing a small discrepancy in our financial reporting but worries me that there are more examples which I'm not aware of.

The good news is that the latest version of the invoices is recorded in the events stream. The following query returns all the versions including the latest...

select 
    content:invoice:id::text as invoice_id, 
    content:invoice:deleted::boolean as deleted,
    content:invoice:updated_at::text as updated_at,
    content:invoice:resource_version::text as resource_version
    
from analytics.chargebee.events where content:invoice:id::text = 'A100'
order by updated_at;

image

But querying the invoices table returns an earlier version (row 2 in the table above)...

select 
    id as invoice_id,  
    deleted,
    updated_at,
    resource_version

from analytics.chargebee.invoices
where id = 'A100';

image

I initially assummed this was a problem with the incremental load for the invoices table but running a --full-refresh using meltano didn't work and even creating a new destination schema and setting a new job id --job_id=chargebee-to-snowflake-test also returned the out of date invoice data :-(.

Interestingly running a load using the original https://github.com/singer-io/tap-chargebee/ tap downloads the correct version. Also querying the chargebee api directly using curl https://birdie-care.chargebee.com/api/v1/invoices/A100 -u .. returns the latest version of the invoice.

Many thanks in advance for your help with this. Please let me know if there's any additional info I can provide to help debug.

p.s. we're using V2 of the chargebee product catalogue.

Add `discounts` in `Subscriptions` schema

Hey,

Thanks for creating a tap for chargebee!

Right now the field discounts is not included in the schema json of Subscriptions at tap_chargebee/schemas/subscriptions.json. It is a jsonb field and is present in the documentation.

I am using the product catalog 2.0

Can we please add that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.