| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Payment/Method.pm | ||
| 3 | ## Version v0.3.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_methods | ||
| 14 | package Net::API::Stripe::Payment::Method; | ||
| 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 | # use parent qw( Net::API::Stripe::Generic ); | ||
| 20 | # use Net::API::Stripe::Payment::Method::Options qw( :all ); | ||
| 21 | # We inherit rather than import so overriding does not trigger an error about subroutine being redefined | ||
| 22 | 2 | ▶ | use parent qw( Net::API::Stripe::Payment::Method::Options ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | 2 | our( $VERSION ) = 'v0.3.0'; | |
| 25 | }; | ||
| 26 | |||
| 27 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | |||
| 30 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | # NOTE: alipay is inherited | ||
| 35 | |||
| 36 | # NOTE: au_becs_debit is inherited | ||
| 37 | |||
| 38 | # NOTE: bacs_debit is inherited | ||
| 39 | |||
| 40 | # NOTE: bancontact is inherited | ||
| 41 | |||
| 42 | 0 | ▶ | sub billing_details { return( shift->_set_get_object( 'billing_details', 'Net::API::Stripe::Billing::Details', @_ ) ); } |
|
Subroutine
billing_details: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | # NOTE: blik is inherited | ||
| 45 | |||
| 46 | # NOTE: boleto is inherited | ||
| 47 | |||
| 48 | # NOTE: card is inherited | ||
| 49 | |||
| 50 | # NOTE: card_present is inherited | ||
| 51 | |||
| 52 | 0 | ▶ | sub boleto { return( shift->_set_get_class( 'boleto', |
|
Subroutine
boleto: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | { fingerprint => { type => "scalar" }, tax_id => { type => "scalar" } }, @_ ) ); } | ||
| 54 | |||
| 55 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 56 | |||
| 57 | # Expandable so either we get an id or we get the underlying object | ||
| 58 | |||
| 59 | 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
| |||
| 60 | |||
| 61 | # NOTE: eps is inherited | ||
| 62 | |||
| 63 | # NOTE: fpx is inherited | ||
| 64 | |||
| 65 | # NOTE: giropay is inherited | ||
| 66 | |||
| 67 | # NOTE: grabpay is inherited | ||
| 68 | |||
| 69 | # NOTE: ideal is inherited | ||
| 70 | |||
| 71 | # NOTE: interac_present is inherited | ||
| 72 | |||
| 73 | # NOTE: klarna is inherited | ||
| 74 | |||
| 75 | # NOTE: konbini is inherited | ||
| 76 | |||
| 77 | 0 | ▶ | sub klarna { return( shift->_set_get_object( 'klarna', 'Net::API::Stripe::Connect::Person', @_ ) ); } |
|
Subroutine
klarna: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 78 | |||
| 79 | 0 | ▶ | sub link { return( CORE::shift->_set_get_class( 'link', |
|
Subroutine
link: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 80 | { | ||
| 81 | email => { type => "scalar" }, | ||
| 82 | persistent_token => { type => "scalar" }, | ||
| 83 | }, @_ ) ); } | ||
| 84 | |||
| 85 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 86 | |||
| 87 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 88 | |||
| 89 | # NOTE: multibanco is inherited | ||
| 90 | |||
| 91 | # NOTE: oxxo is inherited | ||
| 92 | |||
| 93 | # NOTE: p24 is inherited | ||
| 94 | |||
| 95 | # NOTE: sepa_debit is inherited | ||
| 96 | |||
| 97 | # NOTE: sofort is inherited | ||
| 98 | |||
| 99 | 0 | ▶ | sub paynow { return( CORE::shift->_set_get_hash( 'paynow', @_ ) ); } |
|
Subroutine
paynow: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 100 | |||
| 101 | 0 | ▶ | sub promptpay { return( CORE::shift->_set_get_hash( 'promptpay', @_ ) ); } |
|
Subroutine
promptpay: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 102 | |||
| 103 | 0 | ▶ | sub radar_options { return( CORE::shift->_set_get_object( 'radar_options', 'Net::API::Stripe::Fraud::Review', @_ ) ); } |
|
Subroutine
radar_options: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 104 | |||
| 105 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 106 | |||
| 107 | 0 | ▶ | sub us_bank_account { return( shift->_set_get_object( 'us_bank_account', 'Net::API::Stripe::Connect::ExternalAccount::Bank', @_ ) ); } |
|
Subroutine
us_bank_account: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 108 | |||
| 109 | 0 | ▶ | sub wechat_pay { return( CORE::shift->_set_get_hash( 'wechat_pay', @_ ) ); } |
|
Subroutine
wechat_pay: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 110 | |||
| 111 | 2 | 1; | |
| 112 | # NOTE: POD | ||
| 113 | __END__ | ||