| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Billing/Plan.pm | ||
| 3 | ## Version v0.100.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2020/05/15 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | ## The product in Billing is the same as the core Product class. | ||
| 11 | ## https://stripe.com/docs/api/service_products/object | ||
| 12 | |||
| 13 | ## For product objects, see Net::API::Stripe::Product | ||
| 14 | package Net::API::Stripe::Billing::Plan; | ||
| 15 | BEGIN | ||
| 16 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | our( $VERSION ) = 'v0.100.0'; | |
| 22 | }; | ||
| 23 | |||
| 24 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | |||
| 31 | 0 | ▶ | sub active { return( shift->_set_get_boolean( 'active', @_ ) ); } |
|
Subroutine
active: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 32 | |||
| 33 | 0 | ▶ | sub aggregate_usage { return( shift->_set_get_scalar( 'aggregate_usage', @_ ) ); } |
|
Subroutine
aggregate_usage: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | 0 | ▶ | sub amount { return( shift->_set_get_number( 'amount', @_ ) ); } |
|
Subroutine
amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 36 | |||
| 37 | 0 | ▶ | sub amount_decimal { return( shift->_set_get_number( 'amount_decimal', @_ ) ); } |
|
Subroutine
amount_decimal: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | |||
| 39 | 0 | ▶ | sub billing_scheme { return( shift->_set_get_scalar( 'billing_scheme', @_ ) ); } |
|
Subroutine
billing_scheme: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 40 | |||
| 41 | ## Not part of the official api documentation, but found in sub object data like in here | ||
| 42 | ## https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-installments | ||
| 43 | 0 | ▶ | sub count { return( shift->_set_get_number( 'count', @_ ) ); } |
|
Subroutine
count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | |||
| 45 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | |||
| 47 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | |||
| 49 | 0 | ▶ | sub deleted { return( shift->_set_get_boolean( 'deleted', @_ ) ); } |
|
Subroutine
deleted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | 0 | ▶ | sub interval { return( shift->_set_get_scalar( 'interval', @_ ) ); } |
|
Subroutine
interval: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | |||
| 53 | 0 | ▶ | sub interval_count { return( shift->_set_get_scalar( 'interval_count', @_ ) ); } |
|
Subroutine
interval_count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | |||
| 55 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 56 | |||
| 57 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 58 | |||
| 59 | 0 | ▶ | sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 60 | |||
| 61 | 0 | ▶ | sub nickname { return( shift->_set_get_scalar( 'nickname', @_ ) ); } |
|
Subroutine
nickname: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 62 | |||
| 63 | 0 | ▶ | sub product { return( shift->_set_get_scalar_or_object( 'product', 'Net::API::Stripe::Product', @_ ) ); } |
|
Subroutine
product: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 64 | |||
| 65 | 0 | ▶ | sub statement_description { return( shift->_set_get_scalar( 'statement_description', @_ ) ); } |
|
Subroutine
statement_description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 66 | |||
| 67 | 0 | ▶ | sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); } |
|
Subroutine
statement_descriptor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 68 | |||
| 69 | 0 | ▶ | sub tiers { return( shift->_set_get_object( 'tiers', 'Net::API::Stripe::Billing::Plan::Tiers', @_ ) ); } |
|
Subroutine
tiers: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 70 | |||
| 71 | 0 | ▶ | sub tiers_mode { return( shift->_set_get_scalar( 'tiers_mode', @_ ) ); } |
|
Subroutine
tiers_mode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 72 | |||
| 73 | 0 | ▶ | sub transform_usage { return( shift->_set_get_object( 'transform_usage', 'Net::API::Stripe::Billing::Plan::TransformUsage', @_ ) ); } |
|
Subroutine
transform_usage: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 74 | |||
| 75 | 0 | ▶ | sub trial_period_days { return( shift->_set_get_number( 'trial_period_days', @_ ) ); } |
|
Subroutine
trial_period_days: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 76 | |||
| 77 | ## Not part of the official api documentation, but found in sub object data like in here | ||
| 78 | ## https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-installments | ||
| 79 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 80 | |||
| 81 | 0 | ▶ | sub usage_type { return( shift->_set_get_scalar( 'usage_type', @_ ) ); } |
|
Subroutine
usage_type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 82 | |||
| 83 | 2 | 1; | |
| 84 | |||
| 85 | __END__ | ||