| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Customer.pm | ||
| 3 | ## Version v0.101.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2022/10/29 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | package Net::API::Stripe::Customer; | ||
| 11 | ## https://stripe.com/docs/api/customers/object | ||
| 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.101.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 account_balance { return( shift->_set_get_number( 'account_balance', @_ ) ); } |
|
Subroutine
account_balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | # sub address { return( shift->_set_get_scalar( 'address', @_ ) ); } | ||
| 31 | |||
| 32 | 0 | ▶ | sub address { return( shift->_set_get_object( 'address', 'Net::API::Stripe::Address', @_ ) ); } |
|
Subroutine
address: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub balance { return( shift->_set_get_scalar( 'balance', @_ ) ); } |
|
Subroutine
balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub cards { return( shift->_set_get_object( 'cards', 'Net::API::Stripe::Customer::Sources', @_ ) ); } |
|
Subroutine
cards: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | ## Used when creating a customer object | ||
| 39 | |||
| 40 | 0 | ▶ | sub cash_balance { return( shift->_set_get_object( 'cash_balance', 'Net::API::Stripe::Cash::Balance', @_ ) ); } |
|
Subroutine
cash_balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | |||
| 42 | 0 | ▶ | sub coupon { return( shift->_set_get_scalar( 'coupon', @_ ) ); } |
|
Subroutine
coupon: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 45 | |||
| 46 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 47 | |||
| 48 | 0 | ▶ | sub default_card { return( shift->_set_get_scalar( 'default_card', @_ ) ); } |
|
Subroutine
default_card: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 49 | |||
| 50 | 0 | ▶ | sub default_currency { return( shift->_set_get_scalar( 'default_currency', @_ ) ); } |
|
Subroutine
default_currency: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 51 | |||
| 52 | 0 | ▶ | sub default_source { return( shift->_set_get_scalar_or_object( 'default_source', 'Net::API::Stripe::Payment::Source', @_ ) ); } |
|
Subroutine
default_source: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | |||
| 54 | 0 | ▶ | sub deleted { return( shift->_set_get_scalar( 'deleted', @_ ) ); } |
|
Subroutine
deleted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 55 | |||
| 56 | 0 | ▶ | sub delinquent { return( shift->_set_get_boolean( 'delinquent', @_ ) ); } |
|
Subroutine
delinquent: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 57 | |||
| 58 | 0 | ▶ | sub description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 59 | |||
| 60 | 0 | ▶ | sub discount { return( shift->_set_get_object( 'discount', 'Net::API::Stripe::Billing::Discount', @_ ) ); } |
|
Subroutine
discount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 61 | |||
| 62 | 0 | ▶ | sub email { return( shift->_set_get_scalar( 'email', @_ ) ); } |
|
Subroutine
email: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 63 | |||
| 64 | 0 | ▶ | sub invoice_credit_balance { return( shift->_set_get_hash( 'invoice_credit_balance', @_ ) ); } |
|
Subroutine
invoice_credit_balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 65 | |||
| 66 | 0 | ▶ | sub invoice_prefix { return( shift->_set_get_scalar( 'invoice_prefix', @_ ) ); } |
|
Subroutine
invoice_prefix: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 67 | |||
| 68 | # sub invoice_settings { return( shift->_set_get_hash( 'invoice_settings', @_ ) ); } | ||
| 69 | |||
| 70 | 0 | ▶ | sub invoice_settings { return( shift->_set_get_object( 'invoice_settings', 'Net::API::Stripe::Billing::Invoice::Settings', @_ ) ); } |
|
Subroutine
invoice_settings: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 71 | |||
| 72 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 73 | |||
| 74 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 75 | |||
| 76 | 0 | ▶ | sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 77 | |||
| 78 | 0 | ▶ | sub next_invoice_sequence { return( shift->_set_get_scalar( 'next_invoice_sequence', @_ ) ); } |
|
Subroutine
next_invoice_sequence: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 79 | |||
| 80 | 0 | ▶ | sub payment_method { return( shift->_set_get_scalar( 'payment_method', @_ ) ); } |
|
Subroutine
payment_method: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 81 | |||
| 82 | 0 | ▶ | sub phone { return( shift->_set_get_scalar( 'phone', @_ ) ); } |
|
Subroutine
phone: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 83 | |||
| 84 | 0 | ▶ | sub preferred_locales { return( shift->_set_get_array( 'preferred_locales', @_ ) ); } |
|
Subroutine
preferred_locales: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 85 | |||
| 86 | 0 | ▶ | sub shipping { return( shift->_set_get_object( 'shipping', 'Net::API::Stripe::Shipping', @_ ) ); } |
|
Subroutine
shipping: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 87 | |||
| 88 | 0 | ▶ | sub source { return( shift->_set_get_scalar( 'source', @_ ) ); } |
|
Subroutine
source: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 89 | |||
| 90 | 0 | ▶ | sub sources { return( shift->_set_get_object( 'sources', 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
sources: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 91 | |||
| 92 | 0 | ▶ | sub subscriptions { return( shift->_set_get_object( 'subscriptions', 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
subscriptions: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 93 | |||
| 94 | 0 | ▶ | sub tax { return( shift->_set_get_object( 'tax', 'Net::API::Stripe::Terminal::Reader', @_ ) ); } |
|
Subroutine
tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 95 | |||
| 96 | 0 | ▶ | sub tax_exempt { return( shift->_set_get_scalar( 'tax_exempt', @_ ) ); } |
|
Subroutine
tax_exempt: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 97 | |||
| 98 | 0 | ▶ | sub tax_id_data { return( shift->_set_get_object_array( 'tax_id_data', 'Net::API::Stripe::Customer::TaxId', @_ ) ); } |
|
Subroutine
tax_id_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 99 | |||
| 100 | 0 | ▶ | sub tax_ids { return( shift->_set_get_object( 'tax_ids', 'Net::API::Stripe::Customer::TaxIds', @_ ) ); } |
|
Subroutine
tax_ids: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 101 | |||
| 102 | 0 | ▶ | sub tax_info { return( shift->_set_get_object( 'tax_info', 'Net::API::Stripe::Customer::TaxInfo', @_ ) ); } |
|
Subroutine
tax_info: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 103 | |||
| 104 | # sub tax_info_verification { return( shift->_set_get_object( 'tax_info_verification', 'Net::API::Stripe::Customer::TaxInfoVerification', @_ ) ); } | ||
| 105 | |||
| 106 | 0 | ▶ | sub tax_info_verification { return( shift->_set_get_object( 'tax_info_verification', 'Net::API::Stripe::Connect::Account::Verification', @_ ) ); } |
|
Subroutine
tax_info_verification: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 107 | |||
| 108 | 0 | ▶ | sub test_clock { return( shift->_set_get_scalar_or_object( 'test_clock', 'Net::API::Stripe::Billing::TestHelpersTestClock', @_ ) ); } |
|
Subroutine
test_clock: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 109 | |||
| 110 | 2 | 1; | |
| 111 | |||
| 112 | __END__ | ||