Skip to content

Releases: lukec/stripe-perl

0.41 Massive update

12 Mar 19:58
Compare
Choose a tag to compare

#201 get_invoiceitems() not passing customer id

  • pass customer id in get_invoiceitems()
  • add failing unit tests

#199 add PaymentMethod and PaymentIntent

  • added PaymentMethod object, methods and unit tests
  • added PaymentIntent object, methods and unit tests

fix oversight in _get_all()

  • _get_all() throws an error attempting to get the next/prev page if the first page of results is empty
  • ensure that we only process the looping code if there are results in the first page

#197 re-add customer to Invoice

  • re-add customer attribute accidentally removed during 30a702b
  • update unit tests to detect this regression

#130 allow API pinning for Net::Stripe object

  • allow users to specify the API version when creating a new Net::Stripe object, per https://stripe.com/docs/api/versioning#versioning
  • add api_version argument and method for Net::Stripe object
  • add force_api_version argument and method for Net::Stripe object

#191 add Product

#192 add _get_all()

  • allow for retrieval of all objects of a given type without local pagination code
  • add unit tests for related utility methods
  • update existing list-retrieval methods

#195 update Invoice

#194 update post_subscription()

  • add 'cancel_at_period_end' to post_subscription()
  • add 'cancel_at_period_end' to form_fields() for Subscription object
  • update unit tests to use 'cancel_at_period_end' for pending cancelations

#193 add balance for Customer

update t/local.t

  • remove temporary naming for static encoding tests, per #189
  • add hashref tests for convert_to_form_fields()
  • label object tests for convert_to_form_fields()

#188 add source for Charge and Customer

  • add Source object, methods and unit tests
  • add backward-compatible source attributes and parameters for Charge and Customer
  • update unit tests to pass 'source' instead of 'card' where the calling form is not germane to the test

#175 remove manual serialization in _get_collections() and _get_with_args()

  • update convert_to_form_fields() to handle objects
  • use convert_to_form_fields() for processing passed data and URI for encoding, elminating _get_collections() and _get_with_args()
  • remove manual serialization in _delete()
  • add unit tests for code path to be deprecated later

move static unit tests to t/local.t

#185 add metadata for Coupon

  • clean up and augment unit tests

#184 add metadata for Plan

  • clean up and augment unit tests

#182 add unit tests for TypeConstraints

#181 default_card not updating in post_customer()

  • add default_card to form_fields()
  • update attribute to 'rw'

#180 remove unnecessary token object creation

  • pass the test token directly where there is no further introspection of $token
  • remove cases where introspection of $token is not germane to the current unit test
  • leave cases where we are expressly testing passing of a token object or where $token is needed for other reasons

#179 capture partial charge

  • update capture_charge() to allow for partial capture
  • add refunds attribute to charge object
  • add unit tests for partial capture

#178 add unit tests for delete_card()

#177 remove duplicate post_charge() tests

#176 update Token attributes

  • add type attribute and add test
  • add client_ip attribute
  • fix typo in token retrieval test

#164 remove card hash handling code in post_card()

  • fix oversight from 5ad870c
  • this conditional is not needed since card no longer accepts HashRef

#161 deprecate direct handling of PANs:

  • Stripe strongly discourages direct handling of PANs (primary account numbers), even in test mode
  • accounts created after October 2017 return an invalid_request_error when passing PANs
  • removed the methods and parameter constraints that allow direct handling of PANs and their associated unit tests
  • updated the unit tests to use test tokens instead of card numbers

fix typo in Net::Stripe::Resource::form_fields_for_hashref()

  • correct incomplete transition of method name after copying code
  • add trivial unit test as a placeholder

create release notes sub-sections in README.pod

#160 consolidate logic for serializing form fields

#159 update unit tests for Charge->status:

update dist.ini:

#153 fix post_customer() arguments:

  • updated Kavorka signature to remove non-functional or illegitimate argument types
  • removed Net::Stripe::Card and disallowed card id for card, as neither form is valid conceptually #138
  • always create a Net::Stripe::Customer object before _post() to take advantage of argument coercion during objectification #148
  • include omitted arguments in object creation
  • clean up and centralize Net::Stripe:Token coercion code, since we always need the token id
  • added unit tests to exercise all allowed argument forms for customer creation and customer update #139

#151 cleanup post_card():

  • remove invalid argument types from post_card(), per #138
  • remove dead code paths from post_card() and make conditional structure more explicit, per discussion in #133
  • add unit tests for all calling forms, per #139

Update README.pod

  • remove the hyperlink formatting markers from our custom Moose TypeConstraints
  • add capture_charge()
  • update POD oversights from fd8e79e

#150 allow updates to existing cards:

  • add update_card() method to allow updates to card address, expiration, metadata, etc for existing customer cards
  • update convert_to_form_fields() to handle customer card metadata
  • add unit tests to confirm card metdata update
  • correct errant 'rw' on metadata attribute in Net::Stripe::Card

#147 fix post_charge() arguments

  • updated Kavorka signature to remove non-functional argument types
  • removed Net::Stripe::Customer and HashRef for customer, as neither form was being serialized correctly for passing to the API call
  • removed Net::Stripe::Card and Net::Stripe::Token for card, as neither form was being serialized correctly for passing to the API call
  • added in-method validation and unit tests for the different combinations of the allowed argument types
  • updated and reorganized failing unit tests

#143 _defined_arguments() is unnecessary

  • only called in post_customer() for hashref argument to _post()
  • _post() calls convert_to_form_fields() for hashrefs
  • convert_to_form_fields() skips hashref keys with undefined values

#142 remove redundant Token tests

  • tests on $no_amount became redundant when the Token tests were reworked
    Merge pull request from sherrardb/coerce-old-lists

#131 make Net::Stripe compatible with API back to 2011-06-21

  • coerce old-style lists and collections into Net::Stripe::List format

#132 update statement_description to statement_descriptor

  • add failing test to detect ignored attribute statement_descriptor in Net::Stripe::Charge
  • add missing statement_descriptor attribute in Net::Stripe::Charge
  • update statement_description to statement_descriptor Net::Stripe::Plan
  • API docs https://stripe.com/docs/upgrades#2014-12-17 indicate that this change is backwards-compatible

#141 add RELEASE NOTES section to POD

#140 fix POD oversights

  • add encoding declaration to POD to fix unsafe character warning
  • add missing section for Discount methods in weaver.ini
  • remove trailing period from copyright_holder in dist.ini, since it is automatically added by dzil when regenerating README.pod

#122 create abstract methods for handling boolean form fields

#123 encode Net::Stripe::Charge->capture using abstract methods

#124 encode Net::Stripe::Invoice->closed using abstract methods

#125 encode Net::Stripe::Subscription->prorate using abstract methods

0.33: Fix bugs and improve unit tests

11 May 21:55
Compare
Choose a tag to compare

#81 Added status attribute and a deprecation warning for the description attribute of the Net::Stripe::Refund (Florian Heyer)

#67 Fail the unit test if a post_charge on an invalid currency does not report an error (E. Choroba)

0.32: Catching up with Stripe API changes

29 Apr 14:19
Compare
Choose a tag to compare

Bug Fix

Fix the get_cards method reported here #78, #75

0.31: Catching up with Stripe API changes

23 Apr 14:38
Compare
Choose a tag to compare

The last release was just over 2 years ago and in that time there have been changes to the Stripe API. The changes provided by this release are:

Bug Fix

  • Ignore new fields in Stripe responses rather than dying (Andrew Solomon)

Enhancements

  • Replace the SubscriptionList object with a List object containing Subscriptions (Rusty Conover)
  • Improvements to documentation (Mohammad S Anwar, Paul Cochrane)
  • Improvements to Travis CI and Dist::Zilla configuration (Paul Cochrane)

0.13: Merge pull request #24 from rustyconover/master

26 Apr 02:39
Compare
Choose a tag to compare
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.

Fixes a few POD errors.

23 Apr 01:16
Compare
Choose a tag to compare
0.11

A few POD fixes and 0.11 release.

Release 0.10 with fixed docs.

23 Apr 01:09
Compare
Choose a tag to compare
Fix documentation, add abstracts to all modules.

Finish moving to Pod::Weaver.

0.09

22 Apr 20:34
Compare
Choose a tag to compare
Merge pull request #23 from andrewsolomon/master

add $customer->discount->coupon attributes