| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Payment/Link.pm | ||
| 3 | ## Version v0.2.0 | ||
| 4 | ## Copyright(c) 2022 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2022/01/28 | ||
| 7 | ## Modified 2022/10/29 | ||
| 8 | ## All rights reserved | ||
| 9 | ## | ||
| 10 | ## This program is free software; you can redistribute it and/or modify it | ||
| 11 | ## under the same terms as Perl itself. | ||
| 12 | ##---------------------------------------------------------------------------- | ||
| 13 | package Net::API::Stripe::Payment::Link; | ||
| 14 | BEGIN | ||
| 15 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | our $VERSION = 'v0.2.0'; | |
| 21 | }; | ||
| 22 | |||
| 23 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub active { return( shift->_set_get_boolean( 'active', @_ ) ); } |
|
Subroutine
active: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub after_completion { return( shift->_set_get_class( 'after_completion', |
|
Subroutine
after_completion: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | { | ||
| 34 | hosted_confirmation => { type => 'class', definition => | ||
| 35 | { | ||
| 36 | custom_message => { type => 'scalar' } | ||
| 37 | } }, | ||
| 38 | redirect => { type => 'class', definition => | ||
| 39 | { | ||
| 40 | url => { type => 'uri' }, | ||
| 41 | } }, | ||
| 42 | type => { type => 'scalar' }, | ||
| 43 | }, @_ ) ); } | ||
| 44 | |||
| 45 | 0 | ▶ | sub allow_promotion_codes { return( shift->_set_get_boolean( 'allow_promotion_codes', @_ ) ); } |
|
Subroutine
allow_promotion_codes: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | |||
| 47 | 0 | ▶ | sub application_fee_amount { return( shift->_set_get_number( 'application_fee_amount', @_ ) ); } |
|
Subroutine
application_fee_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 48 | |||
| 49 | 0 | ▶ | sub application_fee_percent { return( shift->_set_get_number( 'application_fee_percent', @_ ) ); } |
|
Subroutine
application_fee_percent: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 50 | |||
| 51 | 0 | ▶ | sub automatic_tax { return( shift->_set_get_class( 'automatic_tax', |
|
Subroutine
automatic_tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | { | ||
| 53 | enabled => { type => 'boolean' }, | ||
| 54 | }, @_ ) ); } | ||
| 55 | |||
| 56 | 0 | ▶ | sub billing_address_collection { return( shift->_set_get_scalar( 'billing_address_collection', @_ ) ); } |
|
Subroutine
billing_address_collection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 57 | |||
| 58 | 0 | ▶ | sub consent_collection { return( shift->_set_get_class( 'promotions', |
|
Subroutine
consent_collection: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 59 | { | ||
| 60 | promotions => { type => 'string' }, | ||
| 61 | }, @_ ) ); } | ||
| 62 | |||
| 63 | 0 | ▶ | sub currency { return( shift->_set_get_number( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 64 | |||
| 65 | 0 | ▶ | sub customer_creation { return( shift->_set_get_scalar( 'customer_creation', @_ ) ); } |
|
Subroutine
customer_creation: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 66 | |||
| 67 | 0 | ▶ | sub line_items { return( shift->_set_get_object( 'line_items', 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
line_items: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 68 | |||
| 69 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 70 | |||
| 71 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 72 | |||
| 73 | 0 | ▶ | sub on_behalf_of { return( shift->_set_get_scalar_or_object( 'on_behalf_of', @_ ) ); } |
|
Subroutine
on_behalf_of: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 74 | |||
| 75 | 0 | ▶ | sub payment_intent_data { return( shift->_set_get_class( 'payment_intent_data', |
|
Subroutine
payment_intent_data: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 76 | { | ||
| 77 | capture_method => { type => 'string' }, | ||
| 78 | setup_future_usage => { type => 'string' }, | ||
| 79 | }, @_ ) ); } | ||
| 80 | |||
| 81 | 0 | ▶ | sub payment_method_collection { return( shift->_set_get_scalar( 'payment_method_collection', @_ ) ); } |
|
Subroutine
payment_method_collection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 82 | |||
| 83 | 0 | ▶ | sub payment_method_types { return( shift->_set_get_array( 'payment_method_types', @_ ) ); } |
|
Subroutine
payment_method_types: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 84 | |||
| 85 | 0 | ▶ | sub phone_number_collection { return( shift->_set_get_class( 'phone_number_collection', |
|
Subroutine
phone_number_collection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 86 | { | ||
| 87 | enabled => { type => 'boolean' }, | ||
| 88 | }, @_ ) ); } | ||
| 89 | |||
| 90 | 0 | ▶ | sub shipping_address_collection { return( shift->_set_get_class( 'shipping_address_collection', |
|
Subroutine
shipping_address_collection: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 91 | { | ||
| 92 | allowed_countries => { type => 'string' }, | ||
| 93 | }, @_ ) ); } | ||
| 94 | |||
| 95 | 0 | ▶ | sub shipping_options { return( shift->_set_get_class( 'shipping_options', |
|
Subroutine
shipping_options: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 96 | { | ||
| 97 | shipping_amount => { type => 'integer' }, | ||
| 98 | shipping_rate => { type => 'scalar_or_object', class => 'Net::API::Stripe::Tax::Rate' }, | ||
| 99 | }, @_ ) ); } | ||
| 100 | |||
| 101 | 0 | ▶ | sub submit_type { return( shift->_set_get_scalar( 'submit_type', @_ ) ); } |
|
Subroutine
submit_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 102 | |||
| 103 | 0 | ▶ | sub subscription_data { return( shift->_set_get_object( 'subscription_data', 'Net::API::Stripe::Billing::Subscription', @_ ) ); } |
|
Subroutine
subscription_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 104 | |||
| 105 | 0 | ▶ | sub tax_id_collection { return( shift->_set_get_class( 'tax_id_collection', |
|
Subroutine
tax_id_collection: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 106 | { | ||
| 107 | enabled => { type => 'boolean' }, | ||
| 108 | }, @_ ) ); } | ||
| 109 | |||
| 110 | 0 | ▶ | sub transfer_data { return( shift->_set_get_class( 'transfer_data', |
|
Subroutine
transfer_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 111 | { | ||
| 112 | amount => { type => 'integer' }, | ||
| 113 | destination => { type => 'scalar_or_object', class => 'Net::API::Stripe::Connect::Account' }, | ||
| 114 | }, @_ ) ); } | ||
| 115 | |||
| 116 | 0 | ▶ | sub url { return( shift->_set_get_uri( 'url', @_ ) ); } |
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 117 | |||
| 118 | 2 | 1; | |
| 119 | |||
| 120 | __END__ | ||