| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Billing/Invoice.pm | ||
| 3 | ## Version v0.101.1 | ||
| 4 | ## Copyright(c) 2020 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2020/11/20 | ||
| 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/invoices/object | ||
| 14 | package Net::API::Stripe::Billing::Invoice; | ||
| 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 | 2 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | our( $VERSION ) = 'v0.101.1'; | |
| 22 | }; | ||
| 23 | |||
| 24 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 25 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | |||
| 27 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | |||
| 31 | 0 | ▶ | sub account_country { return( shift->_set_get_scalar( 'account_country', @_ ) ); } |
|
Subroutine
account_country: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 32 | |||
| 33 | 0 | ▶ | sub account_name { return( shift->_set_get_scalar( 'account_name', @_ ) ); } |
|
Subroutine
account_name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | 0 | ▶ | sub account_tax_ids { return( shift->_set_get_object_array( 'account_tax_ids', 'Net::API::Stripe::Billing::TaxID', @_ ) ); } |
|
Subroutine
account_tax_ids: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 36 | |||
| 37 | 0 | ▶ | sub amount_due { return( shift->_set_get_number( 'amount_due', @_ ) ); } |
|
Subroutine
amount_due: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | |||
| 39 | 0 | ▶ | sub amount_paid { return( shift->_set_get_number( 'amount_paid', @_ ) ); } |
|
Subroutine
amount_paid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 40 | |||
| 41 | 0 | ▶ | sub amount_remaining { return( shift->_set_get_number( 'amount_remaining', @_ ) ); } |
|
Subroutine
amount_remaining: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 42 | |||
| 43 | 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
documented
| |||
| 44 | |||
| 45 | ## 2019-03-14: Stripe renamed this to application_fee | ||
| 46 | # sub application_fee { return( shift->_set_get_number( 'application_fee', @_ ) ); } | ||
| 47 | 0 | ▶ | sub application_fee { return( shift->application_fee_amount( @_ ) ); } |
|
Subroutine
application_fee: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 48 | |||
| 49 | 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
| |||
| 50 | |||
| 51 | 0 | ▶ | sub attempt_count { return( shift->_set_get_scalar( 'attempt_count', @_ ) ); } |
|
Subroutine
attempt_count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 52 | |||
| 53 | 0 | ▶ | sub attempted { return( shift->_set_get_boolean( 'attempted', @_ ) ); } |
|
Subroutine
attempted: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 54 | |||
| 55 | 0 | ▶ | sub auto_advance { return( shift->_set_get_boolean( 'auto_advance', @_ ) ); } |
|
Subroutine
auto_advance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 56 | |||
| 57 | 0 | ▶ | sub automatic_tax { return( shift->_set_get_class( 'automatic_tax', |
|
Subroutine
automatic_tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 58 | { | ||
| 59 | enabled => { type => 'boolean' }, | ||
| 60 | status => { type => 'string' }, | ||
| 61 | }, @_ ) ); } | ||
| 62 | |||
| 63 | 0 | ▶ | sub billing { return( shift->_set_get_scalar( 'billing', @_ ) ); } |
|
Subroutine
billing: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 64 | |||
| 65 | 0 | ▶ | sub billing_reason { return( shift->_set_get_scalar( 'billing_reason', @_ ) ); } |
|
Subroutine
billing_reason: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 66 | |||
| 67 | 0 | ▶ | sub charge { return( shift->_set_get_scalar_or_object( 'charge', 'Net::API::Stripe::Charge', @_ ) ); } |
|
Subroutine
charge: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 68 | |||
| 69 | 0 | ▶ | sub closed { return( shift->_set_get_scalar( 'closed', @_ ) ); } |
|
Subroutine
closed: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 70 | |||
| 71 | 0 | ▶ | sub collection_method { return( shift->_set_get_scalar( 'collection_method', @_ ) ); } |
|
Subroutine
collection_method: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 72 | |||
| 73 | 0 | ▶ | sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 74 | |||
| 75 | 0 | ▶ | sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
Subroutine
currency: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 76 | |||
| 77 | 0 | ▶ | sub custom_fields { return( shift->_set_get_object_array( 'custom_fields', 'Net::API::Stripe::CustomField', @_ ) ); } |
|
Subroutine
custom_fields: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 78 | |||
| 79 | 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
| |||
| 80 | |||
| 81 | 0 | ▶ | sub customer_address { return( shift->_set_get_object( 'customer_address', 'Net::API::Stripe::Address', @_ ) ); } |
|
Subroutine
customer_address: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 82 | |||
| 83 | 0 | ▶ | sub customer_email { return( shift->_set_get_scalar( 'customer_email', @_ ) ); } |
|
Subroutine
customer_email: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 84 | |||
| 85 | 0 | ▶ | sub customer_name { return( shift->_set_get_scalar( 'customer_name', @_ ) ); } |
|
Subroutine
customer_name: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 86 | |||
| 87 | 0 | ▶ | sub customer_phone { return( shift->_set_get_scalar( 'customer_phone', @_ ) ); } |
|
Subroutine
customer_phone: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 88 | |||
| 89 | 0 | ▶ | sub customer_shipping { return( shift->_set_get_object( 'customer_shipping', 'Net::API::Stripe::Shipping', @_ ) ); } |
|
Subroutine
customer_shipping: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 90 | |||
| 91 | 0 | ▶ | sub customer_tax_exempt { return( shift->_set_get_scalar( 'customer_tax_exempt', @_ ) ); } |
|
Subroutine
customer_tax_exempt: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 92 | |||
| 93 | 0 | ▶ | sub customer_tax_ids { return( shift->_set_get_object_array( 'customer_tax_ids', 'Net::API::Stripe::Customer::TaxId', @_ ) ); } |
|
Subroutine
customer_tax_ids: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 94 | |||
| 95 | 0 | ▶ | sub date { return( shift->_set_get_datetime( 'date', @_ ) ); } |
|
Subroutine
date: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 96 | |||
| 97 | 0 | ▶ | sub default_payment_method { return( shift->_set_get_scalar_or_object( 'default_payment_method', 'Net::API::Stripe::Payment::Method', @_ ) ); } |
|
Subroutine
default_payment_method: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 98 | |||
| 99 | 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
| |||
| 100 | |||
| 101 | 0 | ▶ | sub default_tax_rates { return( shift->_set_get_object_array( 'default_tax_rates', 'Net::API::Stripe::Tax::Rate', @_ ) ); } |
|
Subroutine
default_tax_rates: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 102 | |||
| 103 | 0 | ▶ | sub description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 104 | |||
| 105 | 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
| |||
| 106 | |||
| 107 | 0 | ▶ | sub discounts { return( shift->_set_get_scalar_or_object_array( 'discounts', 'Net::API::Stripe::Billing::Discount', @_ ) ); } |
|
Subroutine
discounts: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 108 | |||
| 109 | 0 | ▶ | sub due_date { return( shift->_set_get_datetime( 'due_date', @_ ) ); } |
|
Subroutine
due_date: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 110 | |||
| 111 | 0 | ▶ | sub ending_balance { return( shift->_set_get_number( 'ending_balance', @_ ) ); } |
|
Subroutine
ending_balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 112 | |||
| 113 | 0 | ▶ | sub footer { return( shift->_set_get_scalar( 'footer', @_ ) ); } |
|
Subroutine
footer: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 114 | |||
| 115 | 0 | ▶ | sub forgiven { return( shift->_set_get_boolean( 'forgiven', @_ ) ); } |
|
Subroutine
forgiven: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 116 | |||
| 117 | ## Not used anymore? It's not on the API documentation | ||
| 118 | 0 | ▶ | sub hosted_invoice_payment_pending { return( shift->_set_get_scalar( 'hosted_invoice_payment_pending', @_ ) ); } |
|
Subroutine
hosted_invoice_payment_pending: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 119 | |||
| 120 | 0 | ▶ | sub hosted_invoice_url { return( shift->_set_get_uri( 'hosted_invoice_url', @_ ) ); } |
|
Subroutine
hosted_invoice_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 121 | |||
| 122 | 0 | ▶ | sub invoice_pdf { return( shift->_set_get_uri( 'invoice_pdf', @_ ) ); } |
|
Subroutine
invoice_pdf: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 123 | |||
| 124 | 0 | ▶ | sub last_finalization_error { return( shift->_set_get_class( 'last_finalization_error', |
|
Subroutine
last_finalization_error: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 125 | { | ||
| 126 | code => { type => "scalar" }, | ||
| 127 | doc_url => { type => "scalar" }, | ||
| 128 | message => { type => "scalar" }, | ||
| 129 | param => { type => "scalar" }, | ||
| 130 | payment_method_type => { type => "scalar" }, | ||
| 131 | type => { type => "scalar" }, | ||
| 132 | }, @_ ) ); } | ||
| 133 | |||
| 134 | 0 | ▶ | sub lines { return( shift->_set_get_object( 'lines', 'Net::API::Stripe::Billing::Invoice::Lines', @_ ) ); } |
|
Subroutine
lines: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 135 | |||
| 136 | 0 | ▶ | sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 137 | |||
| 138 | 0 | ▶ | sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
|
Subroutine
metadata: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 139 | |||
| 140 | 0 | ▶ | sub next_payment_attempt { return( shift->_set_get_datetime( 'next_payment_attempt', @_ ) ); } |
|
Subroutine
next_payment_attempt: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 141 | |||
| 142 | 0 | ▶ | sub number { return( shift->_set_get_scalar( 'number', @_ ) ); } |
|
Subroutine
number: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 143 | |||
| 144 | 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
| |||
| 145 | |||
| 146 | 0 | ▶ | sub paid { return( shift->_set_get_boolean( 'paid', @_ ) ); } |
|
Subroutine
paid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 147 | |||
| 148 | 0 | ▶ | sub paid_out_of_band { return( shift->_set_get_boolean( 'paid_out_of_band', @_ ) ); } |
|
Subroutine
paid_out_of_band: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 149 | |||
| 150 | 0 | ▶ | sub payment_intent { return( shift->_set_get_scalar_or_object( 'payment_intent', 'Net::API::Stripe::Payment::Intent', @_ ) ); } |
|
Subroutine
payment_intent: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 151 | |||
| 152 | 0 | ▶ | sub payment_settings { return( shift->_set_get_object( 'payment_settings', 'Net::API::Stripe::Payment::Settings', @_ ) ); } |
|
Subroutine
payment_settings: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 153 | |||
| 154 | 0 | ▶ | sub period_end { return( shift->_set_get_datetime( 'period_end', @_ ) ); } |
|
Subroutine
period_end: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 155 | |||
| 156 | 0 | ▶ | sub period_start { return( shift->_set_get_datetime( 'period_start', @_ ) ); } |
|
Subroutine
period_start: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 157 | |||
| 158 | 0 | ▶ | sub post_payment_credit_notes_amount { return( shift->_set_get_number( 'post_payment_credit_notes_amount', @_ ) ); } |
|
Subroutine
post_payment_credit_notes_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 159 | |||
| 160 | 0 | ▶ | sub pre_payment_credit_notes_amount { return( shift->_set_get_number( ' pre_payment_credit_notes_amount', @_ ) ); } |
|
Subroutine
pre_payment_credit_notes_amount: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 161 | |||
| 162 | 0 | ▶ | sub quote { return( shift->_set_get_scalar_or_object( 'quote', 'Net::API::Stripe::Billing::Quote', @_ ) ); } |
|
Subroutine
quote: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 163 | |||
| 164 | 0 | ▶ | sub receipt_number { return( shift->_set_get_scalar( 'receipt_number', @_ ) ); } |
|
Subroutine
receipt_number: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 165 | |||
| 166 | 0 | ▶ | sub rendering_options { return( shift->_set_get_class( 'rendering_options', |
|
Subroutine
rendering_options: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 167 | { | ||
| 168 | amount_tax_display => { type => 'string' }, | ||
| 169 | }, @_ ) ); } | ||
| 170 | |||
| 171 | 0 | ▶ | sub starting_balance { return( shift->_set_get_number( 'starting_balance', @_ ) ); } |
|
Subroutine
starting_balance: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 172 | |||
| 173 | 0 | ▶ | sub statement_descriptor { return( shift->_set_get_scalar( 'statement_descriptor', @_ ) ); } |
|
Subroutine
statement_descriptor: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 174 | |||
| 175 | 0 | ▶ | sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
|
Subroutine
status: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 176 | |||
| 177 | 0 | ▶ | sub status_transitions { return( shift->_set_get_object( 'status_transitions', 'Net::API::Stripe::Billing::Invoice::StatusTransition', @_ ) ); } |
|
Subroutine
status_transitions: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 178 | |||
| 179 | 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
| |||
| 180 | |||
| 181 | 0 | ▶ | sub subscription_proration_date { return( shift->_set_get_scalar( 'subscription_proration_date', @_ ) ); } |
|
Subroutine
subscription_proration_date: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 182 | |||
| 183 | 0 | ▶ | sub subtotal { return( shift->_set_get_number( 'subtotal', @_ ) ); } |
|
Subroutine
subtotal: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 184 | |||
| 185 | 0 | ▶ | sub subtotal_excluding_tax { return( shift->_set_get_number( 'subtotal_excluding_tax', @_ ) ); } |
|
Subroutine
subtotal_excluding_tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 186 | |||
| 187 | 0 | ▶ | sub tax { return( shift->_set_get_number( 'tax', @_ ) ); } |
|
Subroutine
tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 188 | |||
| 189 | # Does not seem to exist anymore in the API documentation... | ||
| 190 | 0 | ▶ | sub tax_percent { return( shift->_set_get_number( 'tax_percent', @_ ) ); } |
|
Subroutine
tax_percent: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 191 | |||
| 192 | 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
documented
| |||
| 193 | |||
| 194 | 0 | ▶ | sub threshold_reason { return( shift->_set_get_hash( 'threshold_reason', @_ ) ); } |
|
Subroutine
threshold_reason: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 195 | |||
| 196 | 0 | ▶ | sub total { return( shift->_set_get_number( 'total', @_ ) ); } |
|
Subroutine
total: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 197 | |||
| 198 | sub total_discount_amounts | ||
| 199 | 0 | ▶ | { |
|
Subroutine
total_discount_amounts: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 200 | 0 | return( shift->_set_get_class_array( 'total_discount_amounts', | |
| 201 | { | ||
| 202 | amount => { type => 'number' }, | ||
| 203 | discount => { type => 'object', class => 'Net::API::Stripe::Billing::Discount' }, | ||
| 204 | }, @_ ) ); | ||
| 205 | } | ||
| 206 | |||
| 207 | 0 | ▶ | sub total_excluding_tax { return( shift->_set_get_number( 'total_excluding_tax', @_ ) ); } |
|
Subroutine
total_excluding_tax: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 208 | |||
| 209 | 0 | ▶ | sub total_tax_amounts { return( shift->_set_get_object_array( 'total_tax_amounts', 'Net::API::Stripe::Billing::Invoice::TaxAmount', @_ ) ); } |
|
Subroutine
total_tax_amounts: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 210 | |||
| 211 | 0 | ▶ | sub transfer_data { return( shift->_set_get_class( 'transfer_data', { |
|
Subroutine
transfer_data: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 212 | amount => { type => "number" }, | ||
| 213 | destination => { type => "scalar" }, | ||
| 214 | }, @_ ) ); } | ||
| 215 | |||
| 216 | 0 | ▶ | sub webhooks_delivered_at { return( shift->_set_get_datetime( 'webhooks_delivered_at', @_ ) ); } |
|
Subroutine
webhooks_delivered_at: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 217 | |||
| 218 | 2 | 1; | |
| 219 | |||
| 220 | __END__ | ||