| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Billing/Plan/PortalConfiguration.pm | ||
| 3 | ## Version v0.2.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 | package Net::API::Stripe::Billing::PortalConfiguration; | ||
| 11 | BEGIN | ||
| 12 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | our( $VERSION ) = 'v0.2.0'; | |
| 18 | }; | ||
| 19 | |||
| 20 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | |||
| 25 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | |||
| 27 | 0 | ▶ | sub active { return( shift->_set_get_boolean( 'active', @_ ) ); } |
|
Subroutine
active: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub application { return( shift->_set_get_scalar_or_object( 'application', 'Net::API::Stripe::Connect::Account', @_ ) ); } |
|
Subroutine
application: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | |||
| 31 | 0 | ▶ | sub business_profile { return( shift->_set_get_class( 'business_profile', |
|
Subroutine
business_profile: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 32 | { | ||
| 33 | headline => { type => 'scalar' }, | ||
| 34 | privacy_policy_url => { type => 'uri' }, | ||
| 35 | terms_of_service_url => { type => 'uri' }, | ||
| 36 | }, @_ ) ); } | ||
| 37 | |||
| 38 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | |||
| 40 | 0 | ▶ | sub default_return_url { return( shift->_set_get_uri( 'default_return_url', @_ ) ); } |
|
Subroutine
default_return_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | |||
| 42 | 0 | ▶ | sub features { return( shift->_set_get_class( 'features', |
|
Subroutine
features: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | { | ||
| 44 | customer_update => { | ||
| 45 | definition => { | ||
| 46 | allowed_updates => { type => "array" }, | ||
| 47 | enabled => { type => "boolean" }, | ||
| 48 | }, | ||
| 49 | type => "class", | ||
| 50 | }, | ||
| 51 | invoice_history => { | ||
| 52 | package => "Net::API::Stripe::Payment::Installment", | ||
| 53 | type => "object", | ||
| 54 | }, | ||
| 55 | payment_method_update => { | ||
| 56 | package => "Net::API::Stripe::Payment::Installment", | ||
| 57 | type => "object", | ||
| 58 | }, | ||
| 59 | subscription_cancel => { | ||
| 60 | definition => { | ||
| 61 | cancellation_reason => { | ||
| 62 | definition => { enabled => { type => "boolean" }, options => { type => "array" } }, | ||
| 63 | type => "class", | ||
| 64 | }, | ||
| 65 | enabled => { type => "boolean" }, | ||
| 66 | mode => { type => "scalar" }, | ||
| 67 | proration_behavior => { type => "scalar" }, | ||
| 68 | }, | ||
| 69 | type => "class", | ||
| 70 | }, | ||
| 71 | subscription_pause => { | ||
| 72 | package => "Net::API::Stripe::Payment::Installment", | ||
| 73 | type => "object", | ||
| 74 | }, | ||
| 75 | subscription_update => { | ||
| 76 | definition => { | ||
| 77 | default_allowed_updates => { type => "array" }, | ||
| 78 | enabled => { type => "boolean" }, | ||
| 79 | products => { | ||
| 80 | definition => { prices => { type => "array" }, product => { type => "scalar" } }, | ||
| 81 | type => "class_array", | ||
| 82 | }, | ||
| 83 | proration_behavior => { type => "scalar" }, | ||
| 84 | }, | ||
| 85 | type => "class", | ||
| 86 | }, | ||
| 87 | }, @_ ) ); } | ||
| 88 | |||
| 89 | 0 | ▶ | sub is_default { return( shift->_set_get_boolean( 'is_default', @_ ) ); } |
|
Subroutine
is_default: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 90 | |||
| 91 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 92 | |||
| 93 | 0 | ▶ | sub login_page { return( shift->_set_get_class( 'login_page', |
|
Subroutine
login_page: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 94 | { enabled => { type => "boolean" }, url => { type => "uri" } }, @_ ) ); } | ||
| 95 | |||
| 96 | 0 | ▶ | sub metadata { return( shift->_set_get_hash_as_mix_object( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 97 | |||
| 98 | 0 | ▶ | sub updated { return( shift->_set_get_datetime( 'updated', @_ ) ); } |
|
Subroutine
updated: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 99 | |||
| 100 | 2 | 1; | |
| 101 | |||
| 102 | __END__ | ||