Stripe/Cash/Transaction.pm

filter: Statementstmt 60.6% 20 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 35.0% 7 / 20 Podpod 100% 13 / 13 totaltotal 60.6% 40 / 66 CC 1 SCAR 5.0
CC
1
Cov
61%
id
2.0
object
2.0
applied_to_payment
2.0
CRAP 1.6
« Stripe/Billing/PortalConfiguration.pm ↑ Summary Stripe/Customer/BalanceTransaction.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Cash/Transaction.pm
3 ## Version v0.1.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/07/06
7 ## Modified 2022/07/06
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::Cash::Transaction;
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.1.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 sub applied_to_payment
31 0 ▶{
Subroutine applied_to_payment: not called CC=1 SCAR=6.9
Pod documented
32 0 return( shift->_set_get_class( 'settings',
33 {
34 payment_intent => { type => 'scalar_or_object', package => 'Net::API::Stripe::Payment::Intent' },
35 }, @_ ) );
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 currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
41  
42 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
43  
44 0 ▶sub ending_balance { return( shift->_set_get_number( 'ending_balance', @_ ) ); }
Subroutine ending_balance: not called CC=1 SCAR=6.9
Pod documented
45  
46 sub funded
47 0 ▶{
Subroutine funded: not called CC=1 SCAR=6.9
Pod documented
48 0 return( shift->_set_get_class( 'funded',
49 {
50 bank_transfer => { type => 'class', definition =>
51 {
52 eu_bank_transfer => { type => 'class', definition =>
53 {
54 bic => { type => 'string' },
55 iban_last4 => { type => 'string' },
56 sender_name => { type => 'string' },
57 }},
58 reference => { type => 'string' },
59 type => { type => 'string' },
60 }},
61 }, @_ ) );
62 }
63  
64 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
65  
66 0 ▶sub net_amount { return( shift->_set_get_number( 'net_amount', @_ ) ); }
Subroutine net_amount: not called CC=1 SCAR=6.9
Pod documented
67  
68 sub refunded_from_payment
69 0 ▶{
Subroutine refunded_from_payment: not called CC=1 SCAR=6.9
Pod documented
70 0 return( shift->_set_get_class( 'refunded_from_payment',
71 {
72 refund => { type => 'scalar_or_object', package => 'Net::API::Stripe::Refund' },
73 }, @_ ) );
74 }
75  
76 0 ▶sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
77  
78 sub unapplied_from_payment
79 0 ▶{
Subroutine unapplied_from_payment: not called CC=1 SCAR=6.9
Pod documented
80 0 return( shift->_set_get_class( 'unapplied_from_payment',
81 {
82 payment_intent => { type => 'scalar_or_object', package => 'Net::API::Stripe::Payment::Intent' },
83 }, @_ ) );
84 }
85  
86 2 1;
87 # NOTE: POD
88 __END__
« Stripe/Billing/PortalConfiguration.pm ↑ Summary Stripe/Customer/BalanceTransaction.pm »