#pavan-subscriptions
1 messages · Page 1 of 1 (latest)
seems vaguely correct to me(but I have no idea what getEdgeCalls is )
what exactly did you see and how did it differ from what you expected to see?
It is failing since subscription_items.id is not allowed to pass
how to pass child params inside subscription_items
oh right
well invoiceParams.put("subscription_items.id" , "sub_item_id"); is not correct at all no
InvoiceUpcomingParams params = InvoiceUpcomingParams.builder()
.addSubscriptionItem(InvoiceUpcomingParams.SubscriptionItem.builder()
.setId("si-xxxx")
.setQuantity(47L)
.build())
.build();
invoice = Invoice.upcoming(params);
you want something more like that
(highly suggest you use the typed Builder classes instead of raw HashMaps and put() , and also you need to account for subscription_items being an array)
Thanks, got it.
Invoice invoice = Invoice.upcoming(invoiceParams);
List<InvoiceLineItem> invoiceData = invoice.getLines().getData();
How about retrieving those ?
@azure lily what's blocking you? Can you ask a detailed question, with exact code and exact error/problem you're asking?