| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Price.pm | ||
| 3 | ## Version v0.2.0 | ||
| 4 | ## Copyright(c) 2020 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2020/05/15 | ||
| 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::Price; | ||
| 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.2.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 billing_scheme { return( shift->_set_get_scalar( 'billing_scheme', @_ ) ); } |
|
Subroutine
billing_scheme: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub currency_options { return( shift->_set_get_object( 'currency_options', 'Net::API::Stripe::Price', @_ ) ); } |
|
Subroutine
currency_options: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | 0 | ▶ | sub custom_unit_amount { return( shift->_set_get_class( 'custom_unit_amount', |
|
Subroutine
custom_unit_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | { | ||
| 40 | maximum => { type => "number" }, | ||
| 41 | minimum => { type => "number" }, | ||
| 42 | preset => { type => "number" }, | ||
| 43 | }, @_ ) ); } | ||
| 44 | |||
| 45 | 0 | ▶ | sub deleted { return( shift->_set_get_boolean( 'deleted', @_ ) ); } |
|
Subroutine
deleted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | |||
| 47 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | |||
| 49 | 0 | ▶ | sub lookup_key { return( shift->_set_get_scalar( 'lookup_key', @_ ) ); } |
|
Subroutine
lookup_key: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | |||
| 53 | 0 | ▶ | sub nickname { return( shift->_set_get_scalar( 'nickname', @_ ) ); } |
|
Subroutine
nickname: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | |||
| 55 | 0 | ▶ | sub product { return( shift->_set_get_scalar_or_object( 'prodduct', @_ ) ); } |
|
Subroutine
product: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 56 | |||
| 57 | 0 | ▶ | sub product_data { return( shift->_set_get_object( 'product_data', @_ ) ); } |
|
Subroutine
product_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 58 | |||
| 59 | 0 | ▶ | sub recurring { return( shift->_set_get_class( 'recurring', |
|
Subroutine
recurring: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 60 | { | ||
| 61 | aggregate_usage => { type => 'string' }, | ||
| 62 | interval => { type => 'string' }, | ||
| 63 | interval_count => { type => 'number' }, | ||
| 64 | trial_period_days => { type => 'number' }, | ||
| 65 | usage_type => { type => 'string' }, | ||
| 66 | }) ); } | ||
| 67 | |||
| 68 | 0 | ▶ | sub tax_behavior { return( shift->_set_get_scalar( 'tax_behavior', @_ ) ); } |
|
Subroutine
tax_behavior: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 69 | |||
| 70 | 0 | ▶ | sub tiers { return( shift->_set_get_class_array( 'tiers', |
|
Subroutine
tiers: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 71 | { | ||
| 72 | flat_amount => { type => 'number' }, | ||
| 73 | flat_amount_decimal => { type => 'number' }, | ||
| 74 | unit_amount => { type => 'number' }, | ||
| 75 | unit_amount_decimal => { type => 'number' }, | ||
| 76 | up_to => { type => 'number' }, | ||
| 77 | }, @_ ) ); } | ||
| 78 | |||
| 79 | 0 | ▶ | sub tiers_mode { return( shift->_set_get_scalar( 'tiers_mode', @_ ) ); } |
|
Subroutine
tiers_mode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 80 | |||
| 81 | 0 | ▶ | sub transform_quantity { return( shift->_set_get_class( 'transform_quantity', |
|
Subroutine
transform_quantity: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 82 | { | ||
| 83 | divide_by => { type => 'number' }, | ||
| 84 | round => { type => 'string' }, | ||
| 85 | }, @_ ) ); } | ||
| 86 | |||
| 87 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 88 | |||
| 89 | 0 | ▶ | sub unit_amount { return( shift->_set_get_number( 'unit_amount', @_ ) ); } |
|
Subroutine
unit_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 90 | |||
| 91 | 0 | ▶ | sub unit_amount_decimal { return( shift->_set_get_number( 'unit_amount_decimal', @_ ) ); } |
|
Subroutine
unit_amount_decimal: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 92 | |||
| 93 | 2 | 1; | |
| 94 | |||
| 95 | __END__ | ||