The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::API::Stripe::Order::Return - A Stripe Order Return Object

SYNOPSIS

VERSION

    0.1

DESCRIPTION

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.

CONSTRUCTOR

new( %ARG )

Creates a new Net::API::Stripe objects. It may also take an hash like arguments, that also are method of the same name.

verbose

Toggles verbose mode on/off

debug

Toggles debug mode on/off

METHODS

id string

Unique identifier for the object.

object string, value is "order_return"

String representing the object’s type. Objects of the same type share the same value.

amount integer

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.

created timestamp

Time at which the object was created. Measured in seconds since the Unix epoch.

currency currency

Three-letter ISO currency code, in lowercase. Must be a supported currency.

items array of hashes

The items included in this order return.

This is an array of Net::API::Stripe::Order::Item objects.

livemode boolean

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

order string (expandable)

The order that this return includes items from.

When expanded, this is a Net::API::Stripe::Order object.

refund string (expandable)

The ID of the refund issued for this return.

When expanded, this is a Net::API::Stripe::Refund object.

API SAMPLE

        {
          "id": "orret_1FVF3MCeyNCl6fY2aSQGwLie",
          "object": "order_return",
          "amount": 1500,
          "created": 1571480456,
          "currency": "jpy",
          "items": [
                {
                  "object": "order_item",
                  "amount": 1500,
                  "currency": "jpy",
                  "description": "Angels, Inc investor yearly membership",
                  "parent": "sk_1FVF3JCeyNCl6fY2OAx9OZcE",
                  "quantity": null,
                  "type": "sku"
                }
          ],
          "livemode": false,
          "order": "or_1FVF3MCeyNCl6fY234CwgGhd",
          "refund": "re_1FVF3MCeyNCl6fY2uLjiA3z2"
        }

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api/order_returns

COPYRIGHT & LICENSE

Copyright (c) 2018-2019 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 82:

You forgot a '=back' before '=head1'