From 48626a2575f2d2b775051f074d2e65c32a6609dc Mon Sep 17 00:00:00 2001 From: Andrew Solomon Date: Sun, 23 Apr 2017 14:56:08 +0100 Subject: [PATCH] fix versioning in dist.ini --- README.pod | 200 ++++++++++++++++++++++------------------------------- dist.ini | 2 +- 2 files changed, 83 insertions(+), 119 deletions(-) diff --git a/README.pod b/README.pod index 114bac5..a1ac384 100644 --- a/README.pod +++ b/README.pod @@ -6,7 +6,7 @@ Net::Stripe - API client for Stripe.com =head1 VERSION -version 0.25 +version 0.31 =head1 SYNOPSIS @@ -24,13 +24,13 @@ version 0.25 # look up a charge by id my $same_charge = $stripe->get_charge(charge_id => $charge->id); - # ... and the api mirrors https://stripe.com/docs/api + # ... and the API mirrors https://stripe.com/docs/api # Charges: post_charge() get_charge() refund_charge() get_charges() - # Customer: post_customer() + # Customer: post_customer() =head1 DESCRIPTION -This module is a wrapper around the Stripe.com HTTP API. Methods are +This module is a wrapper around the Stripe.com HTTP API. Methods are generally named after the HTTP method and the object name. This method returns Moose objects for responses from the API. @@ -39,7 +39,7 @@ This method returns Moose objects for responses from the API. =head2 new PARAMHASH -This creates a new stripe api object. The following parameters are accepted: +This creates a new stripe API object. The following parameters are accepted: =over @@ -57,59 +57,11 @@ You can set this to true to see the actual network requests. =back -=head1 ATTRIBUTES - -=head2 api_base - -Reader: api_base - -Type: Str - -Additional documentation: This is the base part of the URL for every request made - -=head2 api_key - -Reader: api_key - -Type: Str - -This attribute is required. - -Additional documentation: You get this from your Stripe Account settings - -=head2 debug - -Reader: debug - -Writer: debug - -Type: Bool - -Additional documentation: The debug flag - -=head2 debug_network - -Reader: debug_network - -Writer: debug_network - -Type: Bool - -Additional documentation: The debug network request flag - -=head2 ua - -Reader: ua - -Type: Object - -Additional documentation: The LWP::UserAgent that is used for requests - =head1 Balance Transaction Methods =head2 get_balance_transaction -Retrieve a balance transaction +Retrieve a balance transaction. L @@ -119,7 +71,7 @@ L =back -Returns a L +Returns a L. $stripe->get_balance_transaction(id => 'id'); @@ -127,7 +79,7 @@ Returns a L =head2 post_charge -Create a new charge +Create a new charge. L @@ -153,7 +105,7 @@ L =back -Returns L +Returns L. $stripe->post_charge(currency => 'USD', amount => 500, customer => 'testcustomer'); @@ -169,15 +121,15 @@ L =back -Returns L +Returns L. $stripe->get_charge(charge_id => 'chargeid'); =head2 refund_charge -Refunds a charge +Refunds a charge. -L +L =over @@ -247,7 +199,7 @@ L =back -Returns a L object +Returns a L object. my $customer = $stripe->post_customer( card => $fake_card, @@ -257,7 +209,7 @@ Returns a L object =head2 list_subscriptions -Returns the subscriptions for a customer +Returns the subscriptions for a customer. L @@ -273,11 +225,11 @@ L =back -Returns a list of L objects +Returns a list of L objects. =head2 get_customer -Retrieve a customer +Retrieve a customer. L @@ -293,7 +245,7 @@ Returns a L object containing L object =head2 delete_customer -Delete a customer +Delete a customer. L @@ -303,7 +255,7 @@ L =back -Returns a L object +Returns a L object. $stripe->delete_customer(customer => $customer); @@ -345,13 +297,13 @@ L =back -Returns a L +Returns a L. $stripe->get_card(customer => 'customer_id', card_id => 'abcdef'); =head2 post_card -Create or update a card +Create or update a card. L @@ -363,19 +315,19 @@ L =back -Returns a L +Returns a L. $stripe->create_card(customer => $customer, card => $card); =head2 get_cards -Returns a list of cards +Returns a list of cards. L =over -=item * customer - L or Str +=item * customer - L or Str =item * ending_before - Str, optional @@ -419,7 +371,7 @@ L =item * customer - L -=item * subscription - L or Str +=item * subscription - L or Str =item * card - L, L, Str or HashRef, default card for the customer, optional @@ -439,13 +391,13 @@ L =back -Returns a L object +Returns a L object. $stripe->post_subscription(customer => $customer, plan => 'testplan'); =head2 get_subscription -Returns a customers subscription +Returns a customer's subscription. =over @@ -453,21 +405,21 @@ Returns a customers subscription =back -Returns a L +Returns a L. $stripe->get_subscription(customer => 'test123'); =head2 delete_subscription -Cancel a customer's subscription +Cancel a customer's subscription. L =over -=item * customer - L or Str +=item * customer - L or Str -=item * subscription - L or Str +=item * subscription - L or Str =item * at_period_end - Bool, optional @@ -481,23 +433,23 @@ Returns a L object. =head2 post_token -Create a new token +Create a new token. L =over -=item card - L or HashRef +=item card - L or HashRef =back -Returns a L +Returns a L. $stripe->post_token(card => $test_card); =head2 get_token -Retreives an existing token. +Retrieves an existing token. L @@ -507,7 +459,7 @@ L =back -Returns a L +Returns a L. $stripe->get_token(token_id => 'testtokenid'); @@ -515,7 +467,7 @@ Returns a L =head2 post_plan -Create a new plan +Create a new plan. L @@ -539,7 +491,7 @@ L =back -Returns a L object +Returns a L object. $stripe->post_plan( id => "free-$future_ymdhms", @@ -559,7 +511,7 @@ Retrieves a plan. =back -Returns a L +Returns a L. $stripe->get_plan(plan_id => 'plan123'); @@ -575,13 +527,13 @@ L =back -Returns a L object +Returns a L object. $stripe->delete_plan(plan_id => $plan); =head2 get_plans -Return a list of Plans +Return a list of plans. L @@ -603,7 +555,7 @@ Returns a L object containing L objects. =head2 post_coupon -Create or update a coupon +Create or update a coupon. L @@ -641,7 +593,7 @@ Returns a L object. =head2 get_coupon -Retreive a coupon +Retrieve a coupon. L @@ -657,7 +609,7 @@ Returns a L object. =head2 delete_coupon -Delete a coupon +Delete a coupon. L @@ -667,7 +619,7 @@ L =back -Returns a L +Returns a L. $stripe->delete_coupon(coupon_id => 'coupon123'); @@ -691,11 +643,11 @@ Returns a L object containing L objects. =head2 post_invoice -Update an invoice +Update an invoice. =over -=item * invoice - L, Str +=item * invoice - L, Str =item * application_fee - Int - optional @@ -707,7 +659,7 @@ Update an invoice =back -Returns a L +Returns a L. $stripe->post_invoice(invoice => $invoice, closed => 'true') @@ -719,7 +671,7 @@ Returns a L =back -Returns a L +Returns a L. $stripe->get_invoice(invoice_id => 'testinvoice'); @@ -731,13 +683,13 @@ Returns a L =back -Returns a L +Returns a L. $stripe->pay_invoice(invoice_id => 'testinvoice'); =head2 get_invoices -Returns a list of invoices +Returns a list of invoices. L @@ -761,13 +713,13 @@ Returns a L object containing L objects =head2 create_invoice -Create a new invoice +Create a new invoice. L =over -=item * customer - L, Str +=item * customer - L, Str =item * application_fee - Int - optional @@ -779,7 +731,7 @@ L =back -Returns a L +Returns a L. $stripe->create_invoice(customer => 'custid', description => 'test'); @@ -791,7 +743,7 @@ Returns a L =back -Returns a L +Returns a L. $stripe->get_invoice(invoice_id => 'test'); @@ -803,7 +755,7 @@ Returns a L =back -Returns a L +Returns a L. $stripe->get_upcominginvoice(customer => $customer); @@ -833,7 +785,7 @@ L =back -Returns a L object +Returns a L object. $stripe->create_invoiceitem(customer => 'test', amount => 500, currency => 'USD'); @@ -855,7 +807,7 @@ L =back -Returns a L +Returns a L. $stripe->post_invoiceitem(invoice_item => 'itemid', amount => 750); @@ -869,13 +821,13 @@ Retrieve an invoice item. =back -Returns a L +Returns a L. $stripe->get_invoiceitem(invoice_item => 'testitemid'); =head2 delete_invoiceitem -Delete an invoice item +Delete an invoice item. =over @@ -883,7 +835,7 @@ Delete an invoice item =back -Returns a L +Returns a L. $stripe->delete_invoiceitem(invoice_item => $invoice_item); @@ -909,7 +861,7 @@ Returns a L object containing L obj =discount_method delete_customer_discount -Deleting a Customer-wide Discount +Deletes a customer-wide discount. L @@ -921,7 +873,7 @@ L $stripe->delete_customer_discount(customer => $customer); -returns hashref of the form +Returns hashref of the form { deleted => @@ -947,21 +899,17 @@ Rusty Conover =head1 CONTRIBUTORS -=for stopwords Andrew Solomon Sachin Sebastian Tom Eliaz Brian Collins Devin M. Certas Dimitar Petrov Dylan Reinhold Hermann Calabria Jonathan "Duke" Leto Luke Closs Olaf Alders Rusty Conover +=for stopwords Andrew Solomon Brian Collins Devin M. Certas Dimitar Petrov Dylan Reinhold Hermann Calabria Jonathan "Duke" Leto Luke Closs Mohammad S Anwar Olaf Alders Paul Cochrane Rusty Conover Sachin Sebastian Tom Eliaz =over 4 =item * -Andrew Solomon - -=item * - -Sachin Sebastian +Andrew Solomon =item * -Tom Eliaz +Andrew Solomon =item * @@ -993,17 +941,33 @@ Luke Closs =item * +Mohammad S Anwar + +=item * + Olaf Alders =item * +Paul Cochrane + +=item * + Rusty Conover +=item * + +Sachin Sebastian + +=item * + +Tom Eliaz + =back =head1 COPYRIGHT AND LICENSE -This software is copyright (c) 2011 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC.. +This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/dist.ini b/dist.ini index 7c8ad23..5a00d76 100644 --- a/dist.ini +++ b/dist.ini @@ -16,7 +16,7 @@ copyright_year = 2015 repo = lukec/stripe-perl [ChangelogFromGit] [Git::NextVersion] -first_version = 0.30 +version_regexp = ^(\d+\.\d+)$ [PodWeaver] [Git::Contributors] [PkgVersion]