| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Issuing/Transaction.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 | ## https://stripe.com/docs/api/issuing/transactions | ||
| 11 | package Net::API::Stripe::Issuing::Transaction; | ||
| 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 amount { return( shift->_set_get_number( 'amount', @_ ) ); } |
|
Subroutine
amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub amount_details { return( shift->_set_get_class( 'amount_details', { |
|
Subroutine
amount_details: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | atm_fee => { type => "number" } | ||
| 32 | }, @_ ) ); } | ||
| 33 | |||
| 34 | 0 | ▶ | sub authorization { return( shift->_set_get_scalar_or_object( 'authorization', 'Net::API::Stripe::Issuing::Authorization', @_ ) ); } |
|
Subroutine
authorization: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub balance_transaction { return( shift->_set_get_scalar_or_object( 'balance_transaction', 'Net::API::Stripe::Balance::Transaction', @_ ) ); } |
|
Subroutine
balance_transaction: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | 0 | ▶ | sub card { return( shift->_set_get_scalar_or_object( 'card', 'Net::API::Stripe::Payment::Card', @_ ) ); } |
|
Subroutine
card: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | |||
| 40 | 0 | ▶ | sub cardholder { return( shift->_set_get_scalar_or_object( 'cardholder', 'Net::API::Stripe::Issuing::Card::Holder', @_ ) ); } |
|
Subroutine
cardholder: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | |||
| 42 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 45 | |||
| 46 | 0 | ▶ | sub dispute { return( shift->_set_get_scalar_or_object( 'dispute', 'Net::API::Stripe::Issuing::Dispute', @_ ) ); } |
|
Subroutine
dispute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 47 | |||
| 48 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 49 | |||
| 50 | 0 | ▶ | sub merchant_amount { return( shift->_set_get_number( 'merchant_amount', @_ ) ); } |
|
Subroutine
merchant_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 51 | |||
| 52 | 0 | ▶ | sub merchant_currency { return( shift->_set_get_scalar( 'merchant_currency', @_ ) ); } |
|
Subroutine
merchant_currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 53 | |||
| 54 | 0 | ▶ | sub merchant_data { return( shift->_set_get_object( 'merchant_data', 'Net::API::Stripe::Issuing::MerchantData', @_ ) ); } |
|
Subroutine
merchant_data: 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 purchase_details { return( shift->_set_get_class( 'purchase_details', |
|
Subroutine
purchase_details: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 59 | { | ||
| 60 | flight => { | ||
| 61 | definition => { | ||
| 62 | departure_at => { type => "number" }, | ||
| 63 | passenger_name => { type => "scalar" }, | ||
| 64 | refundable => { type => "boolean" }, | ||
| 65 | segments => { | ||
| 66 | definition => { | ||
| 67 | arrival_airport_code => { type => "scalar" }, | ||
| 68 | carrier => { type => "scalar" }, | ||
| 69 | departure_airport_code => { type => "scalar" }, | ||
| 70 | flight_number => { type => "scalar" }, | ||
| 71 | service_class => { type => "scalar" }, | ||
| 72 | stopover_allowed => { type => "boolean" }, | ||
| 73 | }, | ||
| 74 | type => "class_array", | ||
| 75 | }, | ||
| 76 | travel_agency => { type => "scalar" }, | ||
| 77 | }, | ||
| 78 | type => "class", | ||
| 79 | }, | ||
| 80 | fuel => { | ||
| 81 | definition => { | ||
| 82 | type => { type => "scalar" }, | ||
| 83 | unit => { type => "scalar" }, | ||
| 84 | unit_cost_decimal => { type => "number" }, | ||
| 85 | volume_decimal => { type => "number" }, | ||
| 86 | }, | ||
| 87 | type => "class", | ||
| 88 | }, | ||
| 89 | lodging => { | ||
| 90 | definition => { check_in_at => { type => "number" }, nights => { type => "number" } }, | ||
| 91 | type => "class", | ||
| 92 | }, | ||
| 93 | receipt => { | ||
| 94 | definition => { | ||
| 95 | description => { type => "scalar" }, | ||
| 96 | quantity => { type => "number" }, | ||
| 97 | total => { type => "number" }, | ||
| 98 | unit_cost => { type => "number" }, | ||
| 99 | }, | ||
| 100 | type => "class_array", | ||
| 101 | }, | ||
| 102 | reference => { type => "scalar" }, | ||
| 103 | }, @_ ) ); } | ||
| 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 wallet { return( shift->_set_get_scalar( 'wallet', @_ ) ); } |
|
Subroutine
wallet: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 108 | |||
| 109 | 2 | 1; | |
| 110 | |||
| 111 | __END__ | ||