Comments (4)
Hello @glennsdavis, thanks for creating this issue.
It is not well documented, but the First()
method will specify the limit
parameter to the value 1
. As such, it should not be used when specifying ids
.
public T First()
{
Dictionary<string, object> firstParams = new Dictionary<string, object>(QueryParams);
firstParams["limit"] = 1;
var pager = RecurlyClient.MakeRequest<Pager<T>>(Method.GET, Url, null, firstParams, Options);
return pager.Data.FirstOrDefault();
}
If you're operating with a known list of ids
then I would suggest using the get_subscription and get_invoice operations if you're only interested in a single subscription/invoice. Otherwise, you should just iterate over the Pager
results.
from recurly-client-dotnet.
from recurly-client-dotnet.
Ah okay, glad to share the info then!
As far as braintree is concerned, I think that Recurly support would be better equipped to answer those types of questions.
from recurly-client-dotnet.
Close this issue.
from recurly-client-dotnet.
Related Issues (20)
- Feature Request - Add methods Purchase Authorize, Purchase Capture and Cancel Purchase HOT 2
- Release Summary for 4.0.0
- Release Summary For 4.1.0
- Constants.PaymentMethod missing Braintree HOT 2
- Implement ListUsers method HOT 2
- Pager<T>.Count() throws NullReferenceException HOT 12
- Change the MakeRequest<T> and MakeRequestAsync<T> methods in the BaseClient class to virtual? HOT 1
- Can we get an IPager<T> interface written for Pager<T> class? HOT 1
- Utils.StrictMode is not null safe when RECURLY_STRICT_MODE env var is not set HOT 1
- CreateSubscriptionChange - validation error crashes client HOT 1
- Error parsing error response from CreateSubscriptionChangeAsync HOT 1
- Add Hipercard and ELO as valid cards
- ListAccountInvoices passing in a limit into ListAccountInvoicesParams doesn't seem to work HOT 1
- How to use the Pager.Next property through the Client.
- CancelSubscription does not pass in `body` for SubscriptionCancel for the request HOT 2
- Data at the root level is invalid. Line 1, position 1. HOT 1
- SSL connection in async execution
- RestSharp >106.15.0
- RestSharp.Newtonsoft.Json package has been deprecated and contains vulnerabilities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recurly-client-dotnet.