| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Product.pm | ||
| 3 | ## Version v0.101.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2022/10/29 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | ## "A list of up to 5 attributes that each SKU can provide values for (e.g., ["color", "size"]). Only applicable to products of type=good." | ||
| 11 | package Net::API::Stripe::Product; | ||
| 12 | BEGIN | ||
| 13 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | our( $VERSION ) = 'v0.101.0'; | |
| 19 | }; | ||
| 20 | |||
| 21 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | ▶ | sub active { return( shift->_set_get_boolean( 'active', @_ ) ); } |
|
Subroutine
active: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub attributes { return( shift->_set_get_array( 'attributes', @_ ) ); } |
|
Subroutine
attributes: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub caption { return( shift->_set_get_scalar( 'caption', @_ ) ); } |
|
Subroutine
caption: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub deactivate_on { return( shift->_set_get_array( 'deactivate_on', @_ ) ); } |
|
Subroutine
deactivate_on: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | 0 | ▶ | sub default_price { return( shift->_set_get_scalar_or_object( 'default_price', 'Net::API::Stripe::Price', @_ ) ); } |
|
Subroutine
default_price: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | |||
| 40 | 0 | ▶ | sub deleted { return( shift->_set_get_boolean( 'deleted', @_ ) ); } |
|
Subroutine
deleted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | |||
| 42 | 0 | ▶ | sub description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | 0 | ▶ | sub images { return( shift->_set_get_array( 'images', @_ ) ); } |
|
Subroutine
images: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 45 | |||
| 46 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 47 | |||
| 48 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 49 | |||
| 50 | 0 | ▶ | sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 51 | |||
| 52 | 0 | ▶ | sub package_dimensions { return( shift->_set_get_object( 'package_dimensions', 'Net::API::Stripe::Product::PackageDimension', @_ ) ); } |
|
Subroutine
package_dimensions: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | |||
| 54 | 0 | ▶ | sub shippable { return( shift->_set_get_scalar( 'shippable', @_ ) ); } |
|
Subroutine
shippable: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 55 | |||
| 56 | ## List of Net::API::Stripe::Order::SKU objects | ||
| 57 | |||
| 58 | 0 | ▶ | sub skus { return( shift->_set_get_object( 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
skus: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 59 | |||
| 60 | 0 | ▶ | sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); } |
|
Subroutine
statement_descriptor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 61 | |||
| 62 | 0 | ▶ | sub tax_code { return( shift->_set_get_scalar_or_object( 'tax_code', 'Net::API::Stripe::Product::TaxCode', @_ ) ); } |
|
Subroutine
tax_code: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 63 | |||
| 64 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 65 | |||
| 66 | 0 | ▶ | sub unit_label { return( shift->_set_get_scalar( 'unit_label', @_ ) ); } |
|
Subroutine
unit_label: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 67 | |||
| 68 | 0 | ▶ | sub updated { return( shift->_set_get_datetime( 'updated', @_ ) ); } |
|
Subroutine
updated: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 69 | |||
| 70 | 0 | ▶ | sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 71 | |||
| 72 | 2 | 1; | |
| 73 | |||
| 74 | __END__ | ||