#dida-java-nested
1 messages · Page 1 of 1 (latest)
dida-java-nested
@jaunty kelp can you share your exact code? I'll show you how to add what you need
Well, Im trying the request on POSTMAN as of now.
Requirement : Extract list of payments from the start date to the end date.
So far, Im using the https://api.stripe.com/v1/payment_intents?XXXX
I'd like to further filter this within a given date range
ah with postman you want created[gt] not created.gt
Stripe.apiKey = env.getProperty("stripe.key");
Map<String, Object> params = new HashMap<> ();
params.put ("starting_after", env.getProperty("stripe.starting.after"));
params.put("limit", 3);
PaymentIntentCollection paymentIntents = new PaymentIntentCollection ();
params.put ("gt", <Timestamp>));
Map<String, Object> params = new HashMap<> ();
params.put ("starting_after", env.getProperty("stripe.starting.after"));
params.put ("created", paramsCreated);
params.put("limit", 3);
PaymentIntentCollection paymentIntents = new PaymentIntentCollection ();```
Gotcha! Thank you!!
you can also use typed parameters which is way better, let me show you an example (will take a few minutes, I need to write it first)
PaymentIntentListParams params = PaymentIntentListParams.builder()
.setLimit(10L)
.setCreated(
PaymentIntentListParams.Created.builder()
.setGte(1663657200L)
.build())
.build();
like this is cleaner