Stripe/Payment/Source.pm

filter: Statementstmt 20.0% 20 / 100 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 8.0% 7 / 87 Podpod 100% 80 / 80 totaltotal 40.0% 107 / 267 CC 1 SCAR 6.5
CC
1
Cov
20%
id
2.0
object
2.0
ach_credit_transfer
2.0
CRAP 1.9
« Stripe/Billing/Invoice.pm ↑ Summary Stripe/Connect/ExternalAccount/Card.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Payment/Source.pm
3 ## Version v0.100.0
4 ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2019/11/02
7 ## Modified 2020/05/15
8 ##
9 ##----------------------------------------------------------------------------
10 ## https://stripe.com/docs/api/sources/object
11 package Net::API::Stripe::Payment::Source;
12 BEGIN
13 2 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 2 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
17 2 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 our( $VERSION ) = 'v0.100.0';
19 };
20  
21 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub object { return( shift->_set_get_scalar( 'object', @_ ) ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub ach_credit_transfer { return( shift->_set_get_object( 'ach_credit_transfer', 'Net::API::Stripe::Payment::Source::ACHCreditTransfer', @_ ) ); }
Subroutine ach_credit_transfer: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub ach_debit { return( shift->_set_get_object( 'ach_debit', 'Net::API::Stripe::Payment::Source::ACHDebit', @_ ) ); }
Subroutine ach_debit: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub account { return( shift->_set_get_scalar_or_object( 'account', 'Net::API::Stripe::Connect::Account', @_ ) ); }
Subroutine account: not called CC=1 SCAR=6.9
Pod documented
33  
34 0 ▶sub account_holder_name { return( shift->_set_get_scalar( 'account_holder_name', @_ ) ); }
Subroutine account_holder_name: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub account_holder_type { return( shift->_set_get_scalar( 'account_holder_type', @_ ) ); }
Subroutine account_holder_type: not called CC=1 SCAR=6.9
Pod documented
37  
38 0 ▶sub active { return( shift->_set_get_scalar( 'active', @_ ) ); }
Subroutine active: not called CC=1 SCAR=6.9
Pod documented
39  
40 0 ▶sub address { return( shift->_address_populate( @_ ) ); }
Subroutine address: not called CC=1 SCAR=6.9
Pod documented
41  
42 0 ▶sub address_city { return( shift->_set_get_scalar( 'address_city', @_ ) ); }
Subroutine address_city: not called CC=1 SCAR=6.9
Pod documented
43  
44 0 ▶sub address_country { return( shift->_set_get_scalar( 'address_country', @_ ) ); }
Subroutine address_country: not called CC=1 SCAR=6.9
Pod documented
45  
46 0 ▶sub address_line1 { return( shift->_set_get_scalar( 'address_line1', @_ ) ); }
Subroutine address_line1: not called CC=1 SCAR=6.9
Pod documented
47  
48 0 ▶sub address_line1_check { return( shift->_set_get_scalar( 'address_line1_check', @_ ) ); }
Subroutine address_line1_check: not called CC=1 SCAR=6.9
Pod documented
49  
50 0 ▶sub address_line2 { return( shift->_set_get_scalar( 'address_line2', @_ ) ); }
Subroutine address_line2: not called CC=1 SCAR=6.9
Pod documented
51  
52 0 ▶sub address_state { return( shift->_set_get_scalar( 'address_state', @_ ) ); }
Subroutine address_state: not called CC=1 SCAR=6.9
Pod documented
53  
54 0 ▶sub address_zip { return( shift->_set_get_scalar( 'address_zip', @_ ) ); }
Subroutine address_zip: not called CC=1 SCAR=6.9
Pod documented
55  
56 0 ▶sub address_zip_check { return( shift->_set_get_scalar( 'address_zip_check', @_ ) ); }
Subroutine address_zip_check: not called CC=1 SCAR=6.9
Pod documented
57  
58 0 ▶sub alipay { return( shift->_set_get_hash_as_object( 'alipay', 'Net::API::Stripe::Payment::Method::Details::Alipay', @_ ) ); }
Subroutine alipay: not called CC=1 SCAR=6.9
Pod documented
59  
60 0 ▶sub amount { return( shift->_set_get_number( 'amount', @_ ) ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
61  
62 0 ▶sub amount_received { return( shift->_set_get_number( 'amount_received', @_ ) ); }
Subroutine amount_received: not called CC=1 SCAR=6.9
Pod documented
63  
64 0 ▶sub available_payout_methods { return( shift->_set_get_array( 'available_payout_methods', @_ ) ); }
Subroutine available_payout_methods: not called CC=1 SCAR=6.9
Pod documented
65  
66 0 ▶sub bancontact { return( shift->_set_get_hash_as_object( 'bancontact', 'Net::API::Stripe::Payment::Method::Details::BanContact', @_ ) ); }
Subroutine bancontact: not called CC=1 SCAR=6.9
Pod documented
67  
68 0 ▶sub bank_name { return( shift->_set_get_scalar( 'bank_name', @_ ) ); }
Subroutine bank_name: not called CC=1 SCAR=6.9
Pod documented
69  
70 0 ▶sub bitcoin_amount { return( shift->_set_get_number( 'bitcoin_amount', @_ ) ); }
Subroutine bitcoin_amount: not called CC=1 SCAR=6.9
Pod documented
71  
72 0 ▶sub bitcoin_amount_received { return( shift->_set_get_number( 'bitcoin_amount_received', @_ ) ); }
Subroutine bitcoin_amount_received: not called CC=1 SCAR=6.9
Pod documented
73  
74 0 ▶sub bitcoin_uri { return( shift->_set_get_uri( 'bitcoin_uri', @_ ) ); }
Subroutine bitcoin_uri: not called CC=1 SCAR=6.9
Pod documented
75  
76 0 ▶sub brand { return( shift->_set_get_scalar( 'brand', @_ ) ); }
Subroutine brand: not called CC=1 SCAR=6.9
Pod documented
77  
78 ## If type is set to "card"
79 0 ▶sub card { return( shift->_set_get_object( 'card', 'Net::API::Stripe::Connect::ExternalAccount::Card', @_ ) ); }
Subroutine card: not called CC=1 SCAR=6.9
Pod documented
80  
81 0 ▶sub card_present { return( shift->_set_get_hash_as_object( 'card_present', 'Net::API::Stripe::Payment::Method::Details::CardPresent', @_ ) ); }
Subroutine card_present: not called CC=1 SCAR=6.9
Pod documented
82  
83 0 ▶sub client_secret { return( shift->_set_get_scalar( 'client_secret', @_ ) ); }
Subroutine client_secret: not called CC=1 SCAR=6.9
Pod documented
84  
85 0 ▶sub code_verification { return( shift->_set_get_object( 'code_verification', 'Net::API::Stripe::Payment::Source::CodeVerification', @_ ) ); }
Subroutine code_verification: not called CC=1 SCAR=6.9
Pod documented
86  
87 0 ▶sub country { return( shift->_set_get_scalar( 'country', @_ ) ); }
Subroutine country: not called CC=1 SCAR=6.9
Pod documented
88  
89 0 ▶sub created { return( shift->_set_get_datetime( 'created', @_ ) ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
90  
91 0 ▶sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
92  
93 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
94  
95 0 ▶sub cvc_check { return( shift->_set_get_scalar( 'cvc_check', @_ ) ); }
Subroutine cvc_check: not called CC=1 SCAR=6.9
Pod documented
96  
97 0 ▶sub description { return( shift->_set_get_scalar( 'description', @_ ) ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
98  
99 0 ▶sub dynamic_last4 { return( shift->_set_get_scalar( 'dynamic_last4', @_ ) ); }
Subroutine dynamic_last4: not called CC=1 SCAR=6.9
Pod documented
100  
101 0 ▶sub email { return( shift->_set_get_scalar( 'email', @_ ) ); }
Subroutine email: not called CC=1 SCAR=6.9
Pod documented
102  
103 0 ▶sub eps { return( shift->_set_get_hash_as_object( 'eps', 'Net::API::Stripe::Payment::Method::Details::EPS', @_ ) ); }
Subroutine eps: not called CC=1 SCAR=6.9
Pod documented
104  
105 0 ▶sub exp_month { return( shift->_set_get_number( 'exp_month', @_ ) ); }
Subroutine exp_month: not called CC=1 SCAR=6.9
Pod documented
106  
107 0 ▶sub exp_year { return( shift->_set_get_number( 'exp_year', @_ ) ); }
Subroutine exp_year: not called CC=1 SCAR=6.9
Pod documented
108  
109 0 ▶sub filled { return( shift->_set_get_scalar( 'filled', @_ ) ); }
Subroutine filled: not called CC=1 SCAR=6.9
Pod documented
110  
111 0 ▶sub fingerprint { return( shift->_set_get_scalar( 'fingerprint', @_ ) ); }
Subroutine fingerprint: not called CC=1 SCAR=6.9
Pod documented
112  
113 0 ▶sub flow { return( shift->_set_get_scalar( 'flow', @_ ) ); }
Subroutine flow: not called CC=1 SCAR=6.9
Pod documented
114  
115 0 ▶sub funding { return( shift->_set_get_scalar( 'funding', @_ ) ); }
Subroutine funding: not called CC=1 SCAR=6.9
Pod documented
116  
117 0 ▶sub giropay { return( shift->_set_get_hash_as_object( 'giropay', 'Net::API::Stripe::Payment::Method::Details::Giropay', @_ ) ); }
Subroutine giropay: not called CC=1 SCAR=6.9
Pod documented
118  
119 0 ▶sub ideal { return( shift->_set_get_hash_as_object( 'ideal', 'Net::API::Stripe::Payment::Method::Details::Ideal', @_ ) ); }
Subroutine ideal: not called CC=1 SCAR=6.9
Pod documented
120  
121 0 ▶sub inbound_address { return( shift->_set_get_scalar( 'inbound_address', @_ ) ); }
Subroutine inbound_address: not called CC=1 SCAR=6.9
Pod documented
122  
123 0 ▶sub klarna { return( shift->_set_get_hash_as_object( 'klarna', 'Net::API::Stripe::Payment::Method::Details::Klarna', @_ ) ); }
Subroutine klarna: not called CC=1 SCAR=6.9
Pod documented
124  
125 0 ▶sub last4 { return( shift->_set_get_scalar( 'last4', @_ ) ); }
Subroutine last4: not called CC=1 SCAR=6.9
Pod documented
126  
127 0 ▶sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); }
Subroutine livemode: not called CC=1 SCAR=6.9
Pod documented
128  
129 0 ▶sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
130  
131 0 ▶sub multibanco { return( shift->_set_get_hash_as_object( 'multibanco', 'Net::API::Stripe::Payment::Method::Details::MultiBanco', @_ ) ); }
Subroutine multibanco: not called CC=1 SCAR=6.9
Pod documented
132  
133 0 ▶sub name { return( shift->_set_get_scalar( 'name', @_ ) ); }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
134  
135 0 ▶sub owner { return( shift->_set_get_object( 'owner', 'Net::API::Stripe::Payment::Source::Owner', @_ ) ); }
Subroutine owner: not called CC=1 SCAR=6.9
Pod documented
136  
137 0 ▶sub p24 { return( shift->_set_get_hash_as_object( 'p24', 'Net::API::Stripe::Payment::Method::Details::P24', @_ ) ); }
Subroutine p24: not called CC=1 SCAR=6.9
Pod documented
138  
139 0 ▶sub payment { return( shift->_set_get_scalar( 'payment', @_ ) ); }
Subroutine payment: not called CC=1 SCAR=6.9
Pod documented
140  
141 0 ▶sub payment_amount { return( shift->_set_get_number( 'payment_amount', @_ ) ); }
Subroutine payment_amount: not called CC=1 SCAR=6.9
Pod documented
142  
143 0 ▶sub payment_currency { return( shift->_set_get_scalar( 'payment_currency', @_ ) ); }
Subroutine payment_currency: not called CC=1 SCAR=6.9
Pod documented
144  
145 ## "Information related to the receiver flow. Present if the source is a receiver (flow is receiver)."
146 0 ▶sub receiver { return( shift->_set_get_object( 'receiver', 'Net::API::Stripe::Payment::Source::Receiver', @_ ) ); }
Subroutine receiver: not called CC=1 SCAR=6.9
Pod documented
147  
148 0 ▶sub redirect { return( shift->_set_get_object( 'redirect', 'Net::API::Stripe::Payment::Source::Redirect', @_ ) ); }
Subroutine redirect: not called CC=1 SCAR=6.9
Pod documented
149  
150 0 ▶sub refund_address { return( shift->_set_get_scalar( 'refund_address', @_ ) ); }
Subroutine refund_address: not called CC=1 SCAR=6.9
Pod documented
151  
152 0 ▶sub recipient { return( shift->_set_get_scalar_or_object( 'recipient', 'Net::API::Stripe::Customer', @_ ) ); }
Subroutine recipient: not called CC=1 SCAR=6.9
Pod documented
153  
154 0 ▶sub routing_number { return( shift->_set_get_scalar( 'routing_number', @_ ) ); }
Subroutine routing_number: not called CC=1 SCAR=6.9
Pod documented
155  
156 0 ▶sub reusable { return( shift->_set_get_scalar( 'reusable', @_ ) ); }
Subroutine reusable: not called CC=1 SCAR=6.9
Pod documented
157  
158 0 ▶sub sofort { return( shift->_set_get_hash_as_object( 'sofort', 'Net::API::Stripe::Payment::Method::Details::Sofort', @_ ) ); }
Subroutine sofort: not called CC=1 SCAR=6.9
Pod documented
159  
160 0 ▶sub source_order { return( shift->_set_get_object( 'source_order', 'Net::API::Stripe::Order', @_ ) ); }
Subroutine source_order: not called CC=1 SCAR=6.9
Pod documented
161  
162 0 ▶sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); }
Subroutine statement_descriptor: not called CC=1 SCAR=6.9
Pod documented
163  
164 0 ▶sub status { return( shift->_set_get_scalar( 'status', @_ ) ); }
Subroutine status: not called CC=1 SCAR=6.9
Pod documented
165  
166 0 ▶sub stripe_account { return( shift->_set_get_hash_as_object( 'stripe_account', 'Net::API::Stripe::Payment::Method::Details::StripeAccount', @_ ) ); }
Subroutine stripe_account: not called CC=1 SCAR=6.9
Pod documented
167  
168 0 ▶sub tokenization_method { return( shift->_set_get_scalar( 'tokenization_method', @_ ) ); }
Subroutine tokenization_method: not called CC=1 SCAR=6.9
Pod documented
169  
170 0 ▶sub transactions { return( shift->_set_get_object( 'transactions', 'Net::API::Stripe::List', @_ ) ); }
Subroutine transactions: not called CC=1 SCAR=6.9
Pod documented
171  
172 0 ▶sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
173  
174 0 ▶sub uncaptured_funds { return( shift->_set_get_scalar( 'uncaptured_funds', @_ ) ); }
Subroutine uncaptured_funds: not called CC=1 SCAR=6.9
Pod documented
175  
176 0 ▶sub usage { return( shift->_set_get_scalar( 'usage', @_ ) ); }
Subroutine usage: not called CC=1 SCAR=6.9
Pod documented
177  
178 0 ▶sub used { return( shift->_set_get_scalar( 'used', @_ ) ); }
Subroutine used: not called CC=1 SCAR=6.9
Pod documented
179  
180 0 ▶sub used_for_payment { return( shift->_set_get_scalar( 'used_for_payment', @_ ) ); }
Subroutine used_for_payment: not called CC=1 SCAR=6.9
Pod documented
181  
182 0 ▶sub username { return( shift->_set_get_scalar( 'username', @_ ) ); }
Subroutine username: not called CC=1 SCAR=6.9
Pod documented
183  
184 0 ▶sub wechat { return( shift->_set_get_hash_as_object( 'wechat', 'Net::API::Stripe::Payment::Method::Details::WeChat', @_ ) ); }
Subroutine wechat: not called CC=1 SCAR=6.9
Pod documented
185  
186 2 1;
187  
188 __END__
« Stripe/Billing/Invoice.pm ↑ Summary Stripe/Connect/ExternalAccount/Card.pm »