Net::API::Stripe::Order::Return - A Stripe Order Return Object
my $return = $stripe->return({ amount => 2000, currency => 'jpy', items => [ $item_object1, $item_object2 ], order => $order_object, refund => undef, });
See documentation in Net::API::Stripe for example to make api calls to Stripe to create those objects.
v0.100.0
A return represents the full or partial return of a number of order items (https://stripe.com/docs/api/order_returns#order_items). Returns always belong to an order, and may optionally contain a refund.
Creates a new Net::API::Stripe::Order::Return object.
Unique identifier for the object.
String representing the object’s type. Objects of the same type share the same value.
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.
Time at which the object was created. Measured in seconds since the Unix epoch.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
The items included in this order return.
This is an array of Net::API::Stripe::Order::Item objects.
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
The order that this return includes items from.
When expanded, this is a Net::API::Stripe::Order object.
The ID of the refund issued for this return.
When expanded, this is a Net::API::Stripe::Refund object.
{ "id": "orret_fake123456789", "object": "order_return", "amount": 1500, "created": 1571480456, "currency": "jpy", "items": [ { "object": "order_item", "amount": 1500, "currency": "jpy", "description": "Provider, Inc investor yearly membership", "parent": "sk_fake123456789", "quantity": null, "type": "sku" } ], "livemode": false, "order": "or_fake123456789", "refund": "re_fake123456789" }
Initial version
Jacques Deguest <jack@deguest.jp>
Stripe API documentation:
https://stripe.com/docs/api/order_returns
Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Net::API::Stripe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Stripe
CPAN shell
perl -MCPAN -e shell install Net::API::Stripe
For more information on module installation, please visit the detailed CPAN module installation guide.