Stripe/Payment/Intent.pm

filter: Statementstmt 31.7% 20 / 63 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 14.0% 7 / 50 Podpod 90.7% 39 / 43 totaltotal 42.3% 66 / 156 CC 1 SCAR 6.2
CC
1
Cov
32%
id
2.0
object
2.0
allowed_source_types
2.0
CRAP 1.9
« Stripe/Treasury/InboundTransfer.pm ↑ Summary Stripe/Treasury/OutboundTransfer.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Payment/Intent.pm
3 ## Version v0.102.0
4 ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/11/02
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 ## https://stripe.com/docs/api/payment_intents
14 package Net::API::Stripe::Payment::Intent;
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.102.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 ## 2019-02-11
32 ## Stripe: allowed_source_types has been renamed to payment_method_types.
33 ## sub allowed_source_types { return( shift->_set_get_scalar( 'allowed_source_types', @_ ) ); }
34  
35 0 ▶sub allowed_source_types { return( shift->payment_method_types( @_ ) ); }
Subroutine allowed_source_types: not called CC=1 SCAR=6.9
Pod undocumented
36  
37 0 ▶sub amount { return( shift->_set_get_number( 'amount', @_ ) ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
38  
39 0 ▶sub amount_capturable { return( shift->_set_get_number( 'amount_capturable', @_ ) ); }
Subroutine amount_capturable: not called CC=1 SCAR=6.9
Pod documented
40  
41 0 ▶sub amount_details { return( shift->_set_get_class( 'amount_details',
Subroutine amount_details: not called CC=1 SCAR=6.9
Pod documented
42 {
43 tip => {
44 package => "Net::API::Stripe::Balance::ConnectReserved",
45 type => "object",
46 },
47 }, @_ ) ); }
48  
49 0 ▶sub amount_received { return( shift->_set_get_number( 'amount_received', @_ ) ); }
Subroutine amount_received: not called CC=1 SCAR=6.9
Pod documented
50  
51 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
52  
53 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
54  
55 ## 2019-02-11
56 ## Stripe: authorize_with_url within has been renamed to redirect_to_url.
57  
58 0 ▶sub authorize_with_url { return( shift->redirect_to_url( @_ ) ); }
Subroutine authorize_with_url: not called CC=1 SCAR=6.9
Pod undocumented
59  
60 0 ▶sub automatic_payment_methods { return( shift->_set_get_object( 'automatic_payment_methods', 'Net::API::Stripe::Payment::Installment', @_ ) ); }
Subroutine automatic_payment_methods: not called CC=1 SCAR=6.9
Pod documented
61  
62 0 ▶sub canceled_at { return( shift->_set_get_datetime( 'canceled_at', @_ ) ); }
Subroutine canceled_at: not called CC=1 SCAR=6.9
Pod documented
63  
64 0 ▶sub cancellation_reason { return( shift->_set_get_scalar( 'cancellation_reason', @_ ) ); }
Subroutine cancellation_reason: not called CC=1 SCAR=6.9
Pod documented
65  
66 0 ▶sub capture_method { return( shift->_set_get_scalar( 'capture_method', @_ ) ); }
Subroutine capture_method: not called CC=1 SCAR=6.9
Pod documented
67  
68 0 ▶sub charges { return( shift->_set_get_object( 'charges', 'Net::API::Stripe::Payment::Intent::Charges', @_ ) ); }
Subroutine charges: not called CC=1 SCAR=6.9
Pod documented
69  
70 0 ▶sub client_secret { return( shift->_set_get_scalar( 'client_secret', @_ ) ); }
Subroutine client_secret: not called CC=1 SCAR=6.9
Pod documented
71  
72 0 ▶sub confirmation_method { return( shift->_set_get_scalar( 'confirmation_method', @_ ) ); }
Subroutine confirmation_method: not called CC=1 SCAR=6.9
Pod documented
73  
74 0 ▶sub created { return( shift->_set_get_datetime( 'created', @_ ) ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
75  
76 0 ▶sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
77  
78 0 ▶sub customer { return( shift->_set_get_scalar_or_object( 'customer', 'Net::API::Stripe::Customer', @_ ) ); }
Subroutine customer: not called CC=1 SCAR=6.9
Pod documented
79  
80 0 ▶sub description { return( shift->_set_get_scalar( 'description', @_ ) ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
81  
82 0 ▶sub invoice { return( shift->_set_get_scalar_or_object( 'invoice', 'Net::API::Stripe::Billing::Invoice', @_ ) ); }
Subroutine invoice: not called CC=1 SCAR=6.9
Pod documented
83  
84 0 ▶sub last_payment_error { return( shift->_set_get_object( 'last_payment_error', 'Net::API::Stripe::Error', @_ ) ); }
Subroutine last_payment_error: not called CC=1 SCAR=6.9
Pod documented
85  
86 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
87  
88 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
89  
90 0 ▶sub next_action { return( shift->_set_get_object( 'next_action', 'Net::API::Stripe::Payment::Intent::NextAction', @_ ) ); }
Subroutine next_action: not called CC=1 SCAR=6.9
Pod documented
91  
92 # 2019-02-11
93 # Stripe: The next_source_action property on PaymentIntent has been renamed to next_action
94 # sub next_source_action { shift->_set_get_scalar( 'next_source_action', @_ ); }
95  
96 0 ▶sub next_source_action { return( shift->next_action( @_ ) ); }
Subroutine next_source_action: not called CC=1 SCAR=6.9
Pod undocumented
97  
98 0 ▶sub on_behalf_of { return( shift->_set_get_scalar_or_object( 'on_behalf_of', 'Net::API::Stripe::Connect::Account', @_ ) ); }
Subroutine on_behalf_of: not called CC=1 SCAR=6.9
Pod documented
99  
100 0 ▶sub payment_method { return( shift->_set_get_scalar_or_object( 'payment_method', 'Net::API::Stripe::Payment::Method', @_ ) ); }
Subroutine payment_method: not called CC=1 SCAR=6.9
Pod documented
101  
102 0 ▶sub payment_method_options { return( shift->_set_get_object( 'payment_method_options', 'Net::API::Stripe::Payment::Method::Options', @_ ) ); }
Subroutine payment_method_options: not called CC=1 SCAR=6.9
Pod documented
103  
104 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
105  
106 0 ▶sub processing { return( shift->_set_get_object( 'processing', 'Net::API::Stripe::Issuing::Authorization::Transaction', @_ ) ); }
Subroutine processing: not called CC=1 SCAR=6.9
Pod documented
107  
108 0 ▶sub receipt_email { return( shift->_set_get_scalar( 'receipt_email', @_ ) ); }
Subroutine receipt_email: not called CC=1 SCAR=6.9
Pod documented
109  
110 0 ▶sub return_url { return( shift->_set_get_uri( 'return_url', @_ ) ); }
Subroutine return_url: not called CC=1 SCAR=6.9
Pod undocumented
111  
112 0 ▶sub review { return( shift->_set_get_scalar_or_object( 'review', 'Net::API::Stripe::Fraud::Review', @_ ) ); }
Subroutine review: not called CC=1 SCAR=6.9
Pod documented
113  
114 0 ▶sub setup_future_usage { return( shift->_set_get_scalar( 'setup_future_usage', @_ ) ); }
Subroutine setup_future_usage: not called CC=1 SCAR=6.9
Pod documented
115  
116 0 ▶sub shipping { return( shift->_set_get_object( 'shipping', 'Net::API::Stripe::Shipping', @_ ) ); }
Subroutine shipping: not called CC=1 SCAR=6.9
Pod documented
117  
118 0 ▶sub source { return( shift->_set_get_scalar_or_object( 'source', 'Net::API::Stripe::Payment::Source', @_ ) ); }
Subroutine source: not called CC=1 SCAR=6.9
Pod documented
119  
120 0 ▶sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); }
Subroutine statement_descriptor: not called CC=1 SCAR=6.9
Pod documented
121  
122 0 ▶sub statement_descriptor_suffix { return( shift->_set_get_scalar( 'statement_descriptor_suffix', @_ ) ); }
Subroutine statement_descriptor_suffix: not called CC=1 SCAR=6.9
Pod documented
123  
124 0 ▶sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
125  
126 0 ▶sub transfer_data { return( shift->_set_get_object( 'transfer_data', 'Net::API::Stripe::Connect::Transfer', @_ ) ); }
Subroutine transfer_data: not called CC=1 SCAR=6.9
Pod documented
127  
128 0 ▶sub transfer_group { return( shift->_set_get_scalar( 'transfer_group', @_ ) ); }
Subroutine transfer_group: not called CC=1 SCAR=6.9
Pod documented
129  
130 2 1;
131  
132 __END__
« Stripe/Treasury/InboundTransfer.pm ↑ Summary Stripe/Treasury/OutboundTransfer.pm »