| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Billing/Quote | ||
| 3 | ## Version v0.2.0 | ||
| 4 | ## Copyright(c) 2022 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2022/01/24 | ||
| 7 | ## Modified 2022/10/29 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | package Net::API::Stripe::Billing::Quote; | ||
| 11 | BEGIN | ||
| 12 | 2 | ▶ | { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 2 | our( $VERSION ) = 'v0.2.0'; | |
| 18 | }; | ||
| 19 | |||
| 20 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | |||
| 25 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 26 | |||
| 27 | 0 | ▶ | sub amount_subtotal { return( shift->_set_get_number( 'amount_subtotal', @_ ) ); } |
|
Subroutine
amount_subtotal: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub amount_total { return( shift->_set_get_number( 'amount_total', @_ ) ); } |
|
Subroutine
amount_total: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | |||
| 31 | 0 | ▶ | sub application { return( shift->_set_get_scalar_or_object( 'application', 'Net::API::Stripe::Connect::Account', @_ ) ); } |
|
Subroutine
application: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 32 | |||
| 33 | 0 | ▶ | sub application_fee_amount { return( shift->_set_get_number( 'application_fee_amount', @_ ) ); } |
|
Subroutine
application_fee_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | 0 | ▶ | sub application_fee_percent { return( shift->_set_get_number( 'application_fee_percent', @_ ) ); } |
|
Subroutine
application_fee_percent: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 36 | |||
| 37 | 0 | ▶ | sub automatic_tax { return( shift->_set_get_class( 'automatic_tax', |
|
Subroutine
automatic_tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | { | ||
| 39 | enabled => { type => "boolean" }, | ||
| 40 | status => { type => "scalar" }, | ||
| 41 | }, @_ ) ); } | ||
| 42 | |||
| 43 | 0 | ▶ | sub collection_method { return( shift->_set_get_scalar( 'collection_method', @_ ) ); } |
|
Subroutine
collection_method: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | |||
| 45 | 0 | ▶ | sub computed { return( shift->_set_get_class( 'computed', |
|
Subroutine
computed: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 46 | { | ||
| 47 | recurring => { package => "Net::API::Stripe::Checkout::Session", type => "object" }, | ||
| 48 | upfront => { package => "Net::API::Stripe::Checkout::Session", type => "object" }, | ||
| 49 | }, @_ ) ); } | ||
| 50 | |||
| 51 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | |||
| 53 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | |||
| 55 | 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
| |||
| 56 | |||
| 57 | 0 | ▶ | sub default_tax_rates { return( shift->_set_get_scalar_or_object( 'default_tax_rates', 'Net::API::Stripe::Tax::Rate', @_ ) ); } |
|
Subroutine
default_tax_rates: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 58 | |||
| 59 | 0 | ▶ | sub description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 60 | |||
| 61 | 0 | ▶ | sub discounts { return( shift->_set_get_scalar_or_object( 'discounts', 'Net::API::Stripe::Billing::Discount', @_ ) ); } |
|
Subroutine
discounts: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 62 | |||
| 63 | 0 | ▶ | sub expires_at { return( shift->_set_get_datetime( 'expires_at', @_ ) ); } |
|
Subroutine
expires_at: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 64 | |||
| 65 | 0 | ▶ | sub footer { return( shift->_set_get_scalar( 'footer', @_ ) ); } |
|
Subroutine
footer: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 66 | |||
| 67 | 0 | ▶ | sub from_quote { return( shift->_set_get_class( 'from_quote', |
|
Subroutine
from_quote: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 68 | { | ||
| 69 | is_revision => { type => "boolean" }, | ||
| 70 | quote => { | ||
| 71 | package => "Net::API::Stripe::Billing::Quote", | ||
| 72 | type => "scalar_or_object", | ||
| 73 | }, | ||
| 74 | }, @_ ) ); } | ||
| 75 | |||
| 76 | 0 | ▶ | sub header { return( shift->_set_get_scalar( 'header', @_ ) ); } |
|
Subroutine
header: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 77 | |||
| 78 | 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
| |||
| 79 | |||
| 80 | 0 | ▶ | sub invoice_settings { return( shift->_set_get_object( 'invoice_settings', 'Net::API::Stripe::Billing::Subscription', @_ ) ); } |
|
Subroutine
invoice_settings: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 81 | |||
| 82 | 0 | ▶ | sub line_items { return( shift->_set_get_object( 'line_items', 'Net::API::Stripe::List', @_ ) ); } |
|
Subroutine
line_items: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 83 | |||
| 84 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 85 | |||
| 86 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 87 | |||
| 88 | 0 | ▶ | sub number { return( shift->_set_get_scalar( 'number', @_ ) ); } |
|
Subroutine
number: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 89 | |||
| 90 | 0 | ▶ | sub on_behalf_of { return( shift->_set_get_scalar_or_object( 'on_behalf_of', 'Net::API::Stripe::Connect::Account', @_ ) ); } |
|
Subroutine
on_behalf_of: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 91 | |||
| 92 | 0 | ▶ | sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
|
Subroutine
status: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 93 | |||
| 94 | 0 | ▶ | sub status_transitions { return( shift->_set_get_class( 'status_transitions', |
|
Subroutine
status_transitions: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 95 | { | ||
| 96 | accepted_at => { type => "datetime" }, | ||
| 97 | canceled_at => { type => "datetime" }, | ||
| 98 | finalized_at => { type => "datetime" }, | ||
| 99 | }, @_ ) ); } | ||
| 100 | |||
| 101 | 0 | ▶ | sub subscription { return( shift->_set_get_scalar_or_object( 'subscription', 'Net::API::Stripe::Billing::Subscription', @_ ) ); } |
|
Subroutine
subscription: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 102 | |||
| 103 | 0 | ▶ | sub subscription_data { return( shift->_set_get_object( 'subscription_data', 'Net::API::Stripe::Billing::Subscription', @_ ) ); } |
|
Subroutine
subscription_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 104 | |||
| 105 | 0 | ▶ | sub subscription_schedule { return( shift->_set_get_scalar_or_object( 'subscription_schedule', 'Net::API::Stripe::Billing::Subscription::Schedule', @_ ) ); } |
|
Subroutine
subscription_schedule: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 106 | |||
| 107 | 0 | ▶ | sub test_clock { return( shift->_set_get_scalar_or_object( 'test_clock', 'Net::API::Stripe::Billing::TestClock', @_ ) ); } |
|
Subroutine
test_clock: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 108 | |||
| 109 | 0 | ▶ | sub total_details { return( shift->_set_get_class( 'total_details', |
|
Subroutine
total_details: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 110 | { | ||
| 111 | amount_discount => { type => "number" }, | ||
| 112 | amount_shipping => { type => "number" }, | ||
| 113 | amount_tax => { type => "number" }, | ||
| 114 | breakdown => { | ||
| 115 | definition => { | ||
| 116 | discounts => { | ||
| 117 | definition => | ||
| 118 | { | ||
| 119 | amount => { type => "number" }, | ||
| 120 | discount => { package => "Net::API::Stripe::Billing::Discount", type => "object" } | ||
| 121 | }, | ||
| 122 | type => "class_array", | ||
| 123 | }, | ||
| 124 | taxes => { | ||
| 125 | definition => { | ||
| 126 | amount => { type => "number" }, | ||
| 127 | rate => { package => "Net::API::Stripe::Tax::Rate", type => "object" }, | ||
| 128 | }, | ||
| 129 | type => "class_array", | ||
| 130 | }, | ||
| 131 | }, | ||
| 132 | type => "class", | ||
| 133 | }, | ||
| 134 | }, @_ ) ); } | ||
| 135 | |||
| 136 | 0 | ▶ | sub transfer_data { return( shift->_set_get_object( 'transfer_data', 'Net::API::Stripe::Charge', @_ ) ); } |
|
Subroutine
transfer_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 137 | |||
| 138 | 2 | 1; | |
| 139 | |||
| 140 | __END__ | ||