Skip to content

Commit 24a5c25

Browse files
committed
Merge pull request #24 from rustyconover/master
Add documentation, change to named parameters to all functions, update tests and add example code. Changed all functions to use named parameters to follow the Stripe API. This will break some existing code that relied on positional parameters. See the documentation for changes and new examples of calling functions. One example get_invoice() you now must pass get_invoice(invoice_id => $id) where you previously called get_invoice($id). I think named parameters allow more flexibility and expressiveness. Added documentation of each function along with an example call of that function to the POD documentation. Described all method's accepted parameters and types. Changed to using MooseX::Method::Signatures rather than method module to remove some older dependencies and add better type checking to parameters. Reworked live.t to reflect the API changes.
2 parents 9c6dd93 + 89f8ca4 commit 24a5c25

File tree

8 files changed

+1903
-266
lines changed

8 files changed

+1903
-266
lines changed

README.pod

Lines changed: 748 additions & 40 deletions
Large diffs are not rendered by default.

dist.ini

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
name = Net-Stripe
22
abstract = API client for Stripe.com
33
author = Luke Closs
4+
author = Rusty Conover
45
license = Perl_5
5-
copyright_holder = Copyright 2011, Prime Radiant, Inc.
6+
copyright_holder = Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC.
67
copyright_year = 2011
78
[@Basic]
89
[AutoPrereqs]
910
[@GitHub]
1011
repo = lukec/stripe-perl
1112
[ChangelogFromGit]
1213
[Git::NextVersion]
13-
first_version = 0.12
14+
first_version = 0.13
1415
[ContributorsFromGit]
1516
[PodWeaver]
16-
17-
1817
[ReadmeAnyFromPod / pod.root ]
1918
filename = README.pod
2019
type = pod
21-
location = root
20+
location = root

0 commit comments

Comments
 (0)