| 1 | ##---------------------------------------------------------------------------- | ||
| 2 | ## Stripe API - ~/lib/Net/API/Stripe/Customer/TaxId.pm | ||
| 3 | ## Version v0.100.0 | ||
| 4 | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | ||
| 5 | ## Author: Jacques Deguest <@sitael.tokyo.deguest.jp> | ||
| 6 | ## Created 2019/11/02 | ||
| 7 | ## Modified 2020/05/15 | ||
| 8 | ## | ||
| 9 | ##---------------------------------------------------------------------------- | ||
| 10 | package Net::API::Stripe::Customer::TaxId; | ||
| 11 | BEGIN | ||
| 12 | { | ||
| 13 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use parent qw( Net::API::Stripe::Generic ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | our( $VERSION ) = 'v0.100.0'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | }; | ||
| 17 | |||
| 18 | 0 | ▶ | sub id { shift->_set_get_scalar( 'id', @_ ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | |||
| 20 | 0 | ▶ | sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
|
Subroutine
object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 21 | |||
| 22 | 0 | ▶ | sub country { shift->_set_get_scalar( 'country', @_ ); } |
|
Subroutine
country: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | |||
| 24 | 0 | ▶ | sub created { shift->_set_get_datetime( 'created', @_ ); } |
|
Subroutine
created: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | ## Customer id | ||
| 27 | 0 | ▶ | sub customer { shift->_set_get_scalar_or_object( 'customer', 'Net::API::Stripe::Customer', @_ ); } |
|
Subroutine
customer: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 28 | |||
| 29 | 0 | ▶ | sub livemode { shift->_set_get_boolean( 'livemode', @_ ); } |
|
Subroutine
livemode: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | |||
| 31 | ## au_abn, ch_vat, eu_vat, in_gst, no_vat, nz_gst, unknown, or za_vat | ||
| 32 | 0 | ▶ | sub type { shift->_set_get_scalar( 'type', @_ ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub value { shift->_set_get_scalar( 'value', @_ ); } |
|
Subroutine
value: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | # sub verification { shift->_set_get_object( 'verification', 'Net::API::Stripe::Customer::TaxInfoVerification', @_ ); } | ||
| 37 | 0 | ▶ | sub verification { shift->_set_get_object( 'verification', 'Net::API::Stripe::Connect::Account::Verification', @_ ); } |
|
Subroutine
verification: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 38 | |||
| 39 | 1 | 1; | |
| 40 | |||
| 41 | __END__ | ||
| 42 | |||
| 43 | =encoding utf8 | ||
| 44 | |||
| 45 | =head1 NAME | ||
| 46 | |||
| 47 | Net::API::Stripe::Customer::TaxId - A Customer Tax ID object | ||
| 48 | |||
| 49 | =head1 SYNOPSIS | ||
| 50 | |||
| 51 | my $tax_id = $stripe->tax_id({ | ||
| 52 | country => 'jp', | ||
| 53 | customer => $customer_object, | ||
| 54 | type => 'eu_vat', | ||
| 55 | value => 'EU123456789', | ||
| 56 | }); | ||
| 57 | |||
| 58 | See documentation in L<Net::API::Stripe> for example to make api calls to Stripe to create those objects. | ||
| 59 | |||
| 60 | =head1 VERSION | ||
| 61 | |||
| 62 | v0.100.0 | ||
| 63 | |||
| 64 | =head1 DESCRIPTION | ||
| 65 | |||
| 66 | You can add one or multiple tax IDs to a customer (L<Net::API::Stripe::Customer> / L<https://stripe.com/docs/api/customers>). A customer's tax IDs are displayed on invoices and credit notes issued for the customer. | ||
| 67 | |||
| 68 | =head1 CONSTRUCTOR | ||
| 69 | |||
| 70 | =over 4 | ||
| 71 | |||
| 72 | =item B<new>( %ARG ) | ||
| 73 | |||
| 74 | Creates a new L<Net::API::Stripe::Customer::TaxId> object. | ||
| 75 | It may also take an hash like arguments, that also are method of the same name. | ||
| 76 | |||
| 77 | =back | ||
| 78 | |||
| 79 | =head1 METHODS | ||
| 80 | |||
| 81 | =over 4 | ||
| 82 | |||
| 83 | =item B<id> string | ||
| 84 | |||
| 85 | Unique identifier for the object. | ||
| 86 | |||
| 87 | =item B<object> string, value is "tax_id" | ||
| 88 | |||
| 89 | String representing the object’s type. Objects of the same type share the same value. | ||
| 90 | |||
| 91 | =item B<country> string | ||
| 92 | |||
| 93 | Two-letter ISO code representing the country of the tax ID. | ||
| 94 | |||
| 95 | =item B<created> timestamp | ||
| 96 | |||
| 97 | Time at which the object was created. Measured in seconds since the Unix epoch. | ||
| 98 | |||
| 99 | =item B<customer> string (expandable) | ||
| 100 | |||
| 101 | ID of the customer. When expanded, this is a L<Net::API::Stripe::Customer> object. | ||
| 102 | |||
| 103 | =item B<livemode> boolean | ||
| 104 | |||
| 105 | Has the value true if the object exists in live mode or the value false if the object exists in test mode. | ||
| 106 | |||
| 107 | =item B<type> string | ||
| 108 | |||
| 109 | Type of the tax ID, one of au_abn, ch_vat, eu_vat, in_gst, no_vat, nz_gst, unknown, or za_vat | ||
| 110 | |||
| 111 | =item B<value> string | ||
| 112 | |||
| 113 | Value of the tax ID. | ||
| 114 | |||
| 115 | =item B<verification> object | ||
| 116 | |||
| 117 | Tax ID verification information. This is a L<Net::API::Stripe::Customer::TaxInfoVerification> object. | ||
| 118 | |||
| 119 | =back | ||
| 120 | |||
| 121 | =head1 API SAMPLE | ||
| 122 | |||
| 123 | { | ||
| 124 | "id": "txi_fake123456789", | ||
| 125 | "object": "tax_id", | ||
| 126 | "country": "DE", | ||
| 127 | "created": 123456789, | ||
| 128 | "customer": "cus_fake123456789", | ||
| 129 | "livemode": false, | ||
| 130 | "type": "eu_vat", | ||
| 131 | "value": "DE123456789", | ||
| 132 | "verification": { | ||
| 133 | "status": "pending", | ||
| 134 | "verified_address": null, | ||
| 135 | "verified_name": null | ||
| 136 | } | ||
| 137 | } | ||
| 138 | |||
| 139 | =head1 HISTORY | ||
| 140 | |||
| 141 | =head2 v0.1 | ||
| 142 | |||
| 143 | Initial version | ||
| 144 | |||
| 145 | =head1 AUTHOR | ||
| 146 | |||
| 147 | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | ||
| 148 | |||
| 149 | =head1 SEE ALSO | ||
| 150 | |||
| 151 | Stripe API documentation: | ||
| 152 | |||
| 153 | L<https://stripe.com/docs/api/customer_tax_ids>, L<https://stripe.com/docs/billing/taxes/tax-ids>, L<https://en.wikipedia.org/wiki/VAT_identification_number> | ||
| 154 | |||
| 155 | =head1 COPYRIGHT & LICENSE | ||
| 156 | |||
| 157 | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | ||
| 158 | |||
| 159 | You can use, copy, modify and redistribute this package and associated | ||
| 160 | files under the same terms as Perl itself. | ||
| 161 | |||
| 162 | =cut | ||