Stripe/Billing/CreditNote.pm

filter: Statementstmt 42.5% 20 / 47 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.5% 7 / 34 Podpod 100% 27 / 27 totaltotal 50.0% 54 / 108 CC 1 SCAR 5.8
CC
1
Cov
43%
id
2.0
object
2.0
amount
2.0
CRAP 1.8
« Stripe/Billing/Invoice/Item.pm ↑ Summary Stripe/Dispute/Evidence.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Billing/CreditNote.pm
3 ## Version v0.201.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/credit_notes
14 package Net::API::Stripe::Billing::CreditNote;
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.201.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 amount { return( shift->_set_get_number( 'amount', @_ ) ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
32  
33 0 ▶sub created { return( shift->_set_get_datetime( 'created', @_ ) ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
34  
35 0 ▶sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
36  
37 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
38  
39 0 ▶sub customer_balance_transaction { return( shift->_set_get_scalar_or_object( 'customer_balance_transaction', 'Net::API::Stripe::Balance::Transaction', @_ ) ); }
Subroutine customer_balance_transaction: not called CC=1 SCAR=6.9
Pod documented
40  
41 0 ▶sub discount_amount { return( shift->_set_get_number( 'discount_amount', @_ ) ); }
Subroutine discount_amount: not called CC=1 SCAR=6.9
Pod documented
42  
43 0 ▶sub discount_amounts { return( shift->_set_get_class_array( 'discount_amounts', {
Subroutine discount_amounts: not called CC=1 SCAR=6.9
Pod documented
44 amount => { type => "number" },
45 discount => { type => "scalar" },
46 }, @_ ) ); }
47  
48 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
49  
50 0 ▶sub lines { return( shift->_set_get_object_array( 'lines', 'Net::API::Stripe::List', @_ ) ); }
Subroutine lines: not called CC=1 SCAR=6.9
Pod documented
51  
52 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
53  
54 0 ▶sub memo { return( shift->_set_get_scalar( 'memo', @_ ) ); }
Subroutine memo: not called CC=1 SCAR=6.9
Pod documented
55  
56 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
57  
58 0 ▶sub number { return( shift->_set_get_number( 'number', @_ ) ); }
Subroutine number: not called CC=1 SCAR=6.9
Pod documented
59  
60 0 ▶sub out_of_band_amount { return( shift->_set_get_number( 'out_of_band_amount', @_ ) ); }
Subroutine out_of_band_amount: not called CC=1 SCAR=6.9
Pod documented
61  
62 0 ▶sub pdf { return( shift->_set_get_scalar( 'pdf', @_ ) ); }
Subroutine pdf: not called CC=1 SCAR=6.9
Pod documented
63  
64 0 ▶sub reason { return( shift->_set_get_scalar( 'reason', @_ ) ); }
Subroutine reason: not called CC=1 SCAR=6.9
Pod documented
65  
66 0 ▶sub refund { return( shift->_set_get_scalar_or_object( 'refund', 'Net::API::Stripe::Refund', @_ ) ); }
Subroutine refund: not called CC=1 SCAR=6.9
Pod documented
67  
68 0 ▶sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
69  
70 0 ▶sub subtotal { return( shift->_set_get_number( 'subtotal', @_ ) ); }
Subroutine subtotal: not called CC=1 SCAR=6.9
Pod documented
71  
72 0 ▶sub subtotal_excluding_tax { return( shift->_set_get_number( 'subtotal_excluding_tax', @_ ) ); }
Subroutine subtotal_excluding_tax: not called CC=1 SCAR=6.9
Pod documented
73  
74 sub tax_amounts
75 0 ▶{
Subroutine tax_amounts: not called CC=1 SCAR=6.9
Pod documented
76 0 return( shift->_set_get_class_array( 'tax_amounts',
77 {
78 amount => { type => 'number' },
79 inclusive => { type => 'boolean' },
80 tax_rate => { type => 'scalar_or_object', class => 'Net::API::Stripe::Tax::Rate' },
81 }, @_ ) );
82 }
83  
84 0 ▶sub total { return( shift->_set_get_number( 'total', @_ ) ); }
Subroutine total: not called CC=1 SCAR=6.9
Pod documented
85  
86 0 ▶sub total_excluding_tax { return( shift->_set_get_number( 'total_excluding_tax', @_ ) ); }
Subroutine total_excluding_tax: not called CC=1 SCAR=6.9
Pod documented
87  
88 0 ▶sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
89  
90 0 ▶sub voided_at { return( shift->_set_get_datetime( 'voided_at', @_ ) ); }
Subroutine voided_at: not called CC=1 SCAR=6.9
Pod documented
91  
92 2 1;
93  
94 __END__
« Stripe/Billing/Invoice/Item.pm ↑ Summary Stripe/Dispute/Evidence.pm »