saudslm / recharge-api-node

Recharge API bindings for Node.js
14 stars 7 forks source link

Create address function is not working #2

Closed umarjavedse closed 4 years ago

umarjavedse commented 4 years ago

Hi, I'm using this library in my project and I found issue in create address function. Create address endpoint in not according to Recharge API. Endpoint should be "/customers//addresses" but currently used endpoint is "/addresses". Please have a look on it. Thanks in Advance

saudslm commented 4 years ago

@umarjavedse Thanks for the feedback. I have fixed this issue in the latest patch.

I ended up removing create function from address and moved it under CustomerAddress. I've updated in the documentation.

umarjavedse commented 4 years ago

@saudslm Great! It seems like work fine. I'll let you know if any other issue raise. By the way, bundle of thanks for your quick fix.