NAME

Net::API::Stripe::File::Link - A Stripe File Link Object

SYNOPSIS

VERSION

0.1

DESCRIPTION

This is a Stripe File Link object.

To share the contents of a File object with non-Stripe users, you can create a FileLink. FileLinks contain a URL that can be used to retrieve the contents of the file without authentication.

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 "file_link"

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

created timestamp

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

expired boolean

Whether this link is already expired.

expires_at timestamp

Time at which the link expires.

file string (expandable)

The file object this link points to.

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

livemode boolean

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

metadata hash

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

url string

The publicly accessible URL to download the file.

API SAMPLE

{
  "id": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
  "object": "file",
  "created": 1540111053,
  "filename": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
  "links": {
	"object": "list",
	"data": [
	  {
		"id": "link_1FUBkBCeyNCl6fY2qHYSz07c",
		"object": "file_link",
		"created": 1571229407,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_hz1kCVcA56eXrmtn7NefMLnz"
	  },
	  {
		"id": "link_1FUAcFCeyNCl6fY271oD9exG",
		"object": "file_link",
		"created": 1571225071,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_8NLJYB8cW3mTdt8HGI4qWyPY"
	  },
	  {
		"id": "link_1FUACkCeyNCl6fY2O4OY3lGf",
		"object": "file_link",
		"created": 1571223490,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_fw15hmJNq7mdGjVXDnCSGa1k"
	  },
	  {
		"id": "link_1FUA14CeyNCl6fY2s3gFUjmP",
		"object": "file_link",
		"created": 1571222766,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_CFGUdKzOySQmE7nnu90OJvFA"
	  },
	  {
		"id": "link_1FU3MDCeyNCl6fY2AO4G1dEB",
		"object": "file_link",
		"created": 1571197169,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_ihRJaSmdENz7UrUYj4n15sxD"
	  },
	  {
		"id": "link_1FTxyCCeyNCl6fY2r4TebpGF",
		"object": "file_link",
		"created": 1571176460,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_HoVMKjGfUBiMD2OS7aDZivWJ"
	  },
	  {
		"id": "link_1FTe4wCeyNCl6fY2aoPS0DOo",
		"object": "file_link",
		"created": 1571099998,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_mGNgt9DXqHEgDtB436aPMo0s"
	  },
	  {
		"id": "link_1E9RjaCeyNCl6fY2WTBMmC1P",
		"object": "file_link",
		"created": 1551509650,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_KjRaNp9SHHgHV1crZbmXNFPS"
	  },
	  {
		"id": "link_1E9RcVCeyNCl6fY2ENfBjqlt",
		"object": "file_link",
		"created": 1551509211,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_hYLTeLBZuBzWgpN9jCkltoMq"
	  },
	  {
		"id": "link_1Dss88CeyNCl6fY21fJ0EdbR",
		"object": "file_link",
		"created": 1547559540,
		"expired": false,
		"expires_at": null,
		"file": "file_1DNcRFCeyNCl6fY2DkDq3nUd",
		"livemode": false,
		"metadata": {},
		"url": "https://files.stripe.com/links/fl_test_EgTRoBg3u2NXbACJp3ZmJhQP"
	  }
	],
	"has_more": true,
	"url": "/v1/file_links?file=file_1DNcRFCeyNCl6fY2DkDq3nUd"
  },
  "purpose": "dispute_evidence",
  "size": 9863,
  "title": null,
  "type": "png",
  "url": "https://files.stripe.com/v1/files/file_1DNcRFCeyNCl6fY2DkDq3nUd/contents"
}

HISTORY

v0.1

Initial version

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Stripe API documentation:

https://stripe.com/docs/api/files/object, https://stripe.com/docs/api/file_links/object

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 83:

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