| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | ##---------------------------------------------------------------------------- | 
| 2 |  |  |  |  |  |  | ## Stripe API - ~/lib/Net/API/Stripe/Issuing/Authorization/VerificationData.pm | 
| 3 |  |  |  |  |  |  | ## Version v0.100.0 | 
| 4 |  |  |  |  |  |  | ## Copyright(c) 2019 DEGUEST Pte. Ltd. | 
| 5 |  |  |  |  |  |  | ## Author: Jacques Deguest <jack@deguest.jp> | 
| 6 |  |  |  |  |  |  | ## Created 2019/11/02 | 
| 7 |  |  |  |  |  |  | ## Modified 2020/05/15 | 
| 8 |  |  |  |  |  |  | ## | 
| 9 |  |  |  |  |  |  | ##---------------------------------------------------------------------------- | 
| 10 |  |  |  |  |  |  | package Net::API::Stripe::Issuing::Authorization::VerificationData; | 
| 11 |  |  |  |  |  |  | BEGIN | 
| 12 |  |  |  |  |  |  | { | 
| 13 | 2 |  |  | 2 |  | 21202461 | use strict; | 
|  | 2 |  |  |  |  | 13 |  | 
|  | 2 |  |  |  |  | 66 |  | 
| 14 | 2 |  |  | 2 |  | 10 | use warnings; | 
|  | 2 |  |  |  |  | 7 |  | 
|  | 2 |  |  |  |  | 74 |  | 
| 15 | 2 |  |  | 2 |  | 11 | use parent qw( Net::API::Stripe::Generic ); | 
|  | 2 |  |  |  |  | 8 |  | 
|  | 2 |  |  |  |  | 10 |  | 
| 16 | 2 |  |  | 2 |  | 156 | use vars qw( $VERSION ); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 118 |  | 
| 17 | 2 |  |  | 2 |  | 39 | our( $VERSION ) = 'v0.100.0'; | 
| 18 |  |  |  |  |  |  | }; | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 2 |  |  | 2 |  | 10 | use strict; | 
|  | 2 |  |  |  |  | 10 |  | 
|  | 2 |  |  |  |  | 42 |  | 
| 21 | 2 |  |  | 2 |  | 14 | use warnings; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 352 |  | 
| 22 |  |  |  |  |  |  |  | 
| 23 | 0 |  |  | 0 | 1 |  | sub address_line1_check { return( shift->_set_get_scalar( 'address_line1_check', @_ ) ); } | 
| 24 |  |  |  |  |  |  |  | 
| 25 | 0 |  |  | 0 | 1 |  | sub address_postal_code_check { return( shift->_set_get_scalar( 'address_postal_code_check', @_ ) ); } | 
| 26 |  |  |  |  |  |  |  | 
| 27 | 0 |  |  | 0 | 1 |  | sub address_zip_check { return( shift->_set_get_scalar( 'address_zip_check', @_ ) ); } | 
| 28 |  |  |  |  |  |  |  | 
| 29 | 0 |  |  | 0 | 1 |  | sub authentication { return( shift->_set_get_scalar( 'authentication', @_ ) ); } | 
| 30 |  |  |  |  |  |  |  | 
| 31 | 0 |  |  | 0 | 1 |  | sub cvc_check { return( shift->_set_get_scalar( 'cvc_check', @_ ) ); } | 
| 32 |  |  |  |  |  |  |  | 
| 33 | 0 |  |  | 0 | 1 |  | sub expiry_check { return( shift->_set_get_scalar( 'expiry_check', @_ ) ); } | 
| 34 |  |  |  |  |  |  |  | 
| 35 | 0 |  |  | 0 | 1 |  | sub three_d_secure { return( shift->_set_get_hash( 'three_d_secure', @_ ) ); } | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | 1; | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | __END__ | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | =encoding utf8 | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =head1 NAME | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | Net::API::Stripe::Issuing::Authorization::VerificationData - A Stripe Authorization Verification Date Object | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  | my $data = $stripe->authorization->verification_data({ | 
| 50 |  |  |  |  |  |  | address_line1_check => 'match', | 
| 51 |  |  |  |  |  |  | address_postal_code_check => 'match', | 
| 52 |  |  |  |  |  |  | address_zip_check => 'match', | 
| 53 |  |  |  |  |  |  | authentication => 'success', | 
| 54 |  |  |  |  |  |  | cvc_check => 'match', | 
| 55 |  |  |  |  |  |  | expiry_check => 'match', | 
| 56 |  |  |  |  |  |  | three_d_secure => { result => 'authenticated' }, | 
| 57 |  |  |  |  |  |  | }); | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | =head1 VERSION | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  | v0.100.0 | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | Verification data used by method B<verification_data> in module L<Net::API::Stripe::Issuing::Authorization> | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =head1 CONSTRUCTOR | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | =head2 new( %ARG ) | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | Creates a new L<Net::API::Stripe::Issuing::Authorization::VerificationData> object. | 
| 72 |  |  |  |  |  |  | It may also take an hash like arguments, that also are method of the same name. | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | =head1 METHODS | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | =head2 address_line1_check string | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | One of match, mismatch, or not_provided. | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | =head2 address_postal_code_check | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | Whether the cardholder provided a postal code and if it matched the cardholder’s billing.address.postal_code. | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | Possible enum values | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | =over 4 | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  | =item I<match> | 
| 89 |  |  |  |  |  |  |  | 
| 90 |  |  |  |  |  |  | Verification succeeded, values matched. | 
| 91 |  |  |  |  |  |  |  | 
| 92 |  |  |  |  |  |  | =item I<mismatch> | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | Verification failed, values didn’t match. | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | =item I<not_provided> | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | Verification was not performed because no value was provided. | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | =back | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | =head2 address_zip_check string | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | One of match, mismatch, or not_provided. | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | =head2 authentication string | 
| 107 |  |  |  |  |  |  |  | 
| 108 |  |  |  |  |  |  | One of success, failure, exempt, or none. | 
| 109 |  |  |  |  |  |  |  | 
| 110 |  |  |  |  |  |  | =head2 cvc_check string | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | One of match, mismatch, or not_provided. | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | =head2 expiry_check | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | Whether the cardholder provided an expiry date and if it matched Stripe’s record. | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | Possible enum values | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | =over 4 | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | =item I<match> | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | Verification succeeded, values matched. | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | =item I<mismatch> | 
| 127 |  |  |  |  |  |  |  | 
| 128 |  |  |  |  |  |  | Verification failed, values didn’t match. | 
| 129 |  |  |  |  |  |  |  | 
| 130 |  |  |  |  |  |  | =item I<not_provided> | 
| 131 |  |  |  |  |  |  |  | 
| 132 |  |  |  |  |  |  | Verification was not performed because no value was provided. | 
| 133 |  |  |  |  |  |  |  | 
| 134 |  |  |  |  |  |  | =back | 
| 135 |  |  |  |  |  |  |  | 
| 136 |  |  |  |  |  |  | =head2 three_d_secure hash | 
| 137 |  |  |  |  |  |  |  | 
| 138 |  |  |  |  |  |  | 3D Secure details on this authorization. | 
| 139 |  |  |  |  |  |  |  | 
| 140 |  |  |  |  |  |  | It has the one following property | 
| 141 |  |  |  |  |  |  |  | 
| 142 |  |  |  |  |  |  | =over 4 | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | =item I<result> | 
| 145 |  |  |  |  |  |  |  | 
| 146 |  |  |  |  |  |  | With following possible enum values | 
| 147 |  |  |  |  |  |  |  | 
| 148 |  |  |  |  |  |  | =over 8 | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | =item I<authenticated> | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | Authentication successful. | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | =item I<failed> | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | Authentication failed. | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | =item I<attempt_acknowledged> | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | The merchant attempted to authenticate the authorization, but the cardholder is not enrolled or was unable to reach Stripe. | 
| 161 |  |  |  |  |  |  |  | 
| 162 |  |  |  |  |  |  | =back | 
| 163 |  |  |  |  |  |  |  | 
| 164 |  |  |  |  |  |  | =back | 
| 165 |  |  |  |  |  |  |  | 
| 166 |  |  |  |  |  |  | =head1 API SAMPLE | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | { | 
| 169 |  |  |  |  |  |  | "id": "iauth_fake123456789", | 
| 170 |  |  |  |  |  |  | "object": "issuing.authorization", | 
| 171 |  |  |  |  |  |  | "approved": true, | 
| 172 |  |  |  |  |  |  | "authorization_method": "online", | 
| 173 |  |  |  |  |  |  | "authorized_amount": 500, | 
| 174 |  |  |  |  |  |  | "authorized_currency": "usd", | 
| 175 |  |  |  |  |  |  | "balance_transactions": [], | 
| 176 |  |  |  |  |  |  | "card": null, | 
| 177 |  |  |  |  |  |  | "cardholder": null, | 
| 178 |  |  |  |  |  |  | "created": 1540642827, | 
| 179 |  |  |  |  |  |  | "held_amount": 0, | 
| 180 |  |  |  |  |  |  | "held_currency": "usd", | 
| 181 |  |  |  |  |  |  | "is_held_amount_controllable": false, | 
| 182 |  |  |  |  |  |  | "livemode": false, | 
| 183 |  |  |  |  |  |  | "merchant_data": { | 
| 184 |  |  |  |  |  |  | "category": "taxicabs_limousines", | 
| 185 |  |  |  |  |  |  | "city": "San Francisco", | 
| 186 |  |  |  |  |  |  | "country": "US", | 
| 187 |  |  |  |  |  |  | "name": "Rocket Rides", | 
| 188 |  |  |  |  |  |  | "network_id": "1234567890", | 
| 189 |  |  |  |  |  |  | "postal_code": "94107", | 
| 190 |  |  |  |  |  |  | "state": "CA", | 
| 191 |  |  |  |  |  |  | "url": null | 
| 192 |  |  |  |  |  |  | }, | 
| 193 |  |  |  |  |  |  | "metadata": {}, | 
| 194 |  |  |  |  |  |  | "pending_authorized_amount": 0, | 
| 195 |  |  |  |  |  |  | "pending_held_amount": 0, | 
| 196 |  |  |  |  |  |  | "request_history": [], | 
| 197 |  |  |  |  |  |  | "status": "reversed", | 
| 198 |  |  |  |  |  |  | "transactions": [ | 
| 199 |  |  |  |  |  |  | { | 
| 200 |  |  |  |  |  |  | "id": "ipi_fake123456789", | 
| 201 |  |  |  |  |  |  | "object": "issuing.transaction", | 
| 202 |  |  |  |  |  |  | "amount": -100, | 
| 203 |  |  |  |  |  |  | "authorization": "iauth_fake123456789", | 
| 204 |  |  |  |  |  |  | "balance_transaction": null, | 
| 205 |  |  |  |  |  |  | "card": "ic_fake123456789", | 
| 206 |  |  |  |  |  |  | "cardholder": null, | 
| 207 |  |  |  |  |  |  | "created": 1540642827, | 
| 208 |  |  |  |  |  |  | "currency": "usd", | 
| 209 |  |  |  |  |  |  | "dispute": null, | 
| 210 |  |  |  |  |  |  | "livemode": false, | 
| 211 |  |  |  |  |  |  | "merchant_amount": null, | 
| 212 |  |  |  |  |  |  | "merchant_currency": null, | 
| 213 |  |  |  |  |  |  | "merchant_data": { | 
| 214 |  |  |  |  |  |  | "category": "taxicabs_limousines", | 
| 215 |  |  |  |  |  |  | "city": "San Francisco", | 
| 216 |  |  |  |  |  |  | "country": "US", | 
| 217 |  |  |  |  |  |  | "name": "Rocket Rides", | 
| 218 |  |  |  |  |  |  | "network_id": "1234567890", | 
| 219 |  |  |  |  |  |  | "postal_code": "94107", | 
| 220 |  |  |  |  |  |  | "state": "CA", | 
| 221 |  |  |  |  |  |  | "url": null | 
| 222 |  |  |  |  |  |  | }, | 
| 223 |  |  |  |  |  |  | "metadata": {}, | 
| 224 |  |  |  |  |  |  | "type": "capture" | 
| 225 |  |  |  |  |  |  | }, | 
| 226 |  |  |  |  |  |  | { | 
| 227 |  |  |  |  |  |  | "id": "ipi_fake123456789", | 
| 228 |  |  |  |  |  |  | "object": "issuing.transaction", | 
| 229 |  |  |  |  |  |  | "amount": -100, | 
| 230 |  |  |  |  |  |  | "authorization": "iauth_fake123456789", | 
| 231 |  |  |  |  |  |  | "balance_transaction": null, | 
| 232 |  |  |  |  |  |  | "card": "ic_fake123456789", | 
| 233 |  |  |  |  |  |  | "cardholder": null, | 
| 234 |  |  |  |  |  |  | "created": 1540642827, | 
| 235 |  |  |  |  |  |  | "currency": "usd", | 
| 236 |  |  |  |  |  |  | "dispute": null, | 
| 237 |  |  |  |  |  |  | "livemode": false, | 
| 238 |  |  |  |  |  |  | "merchant_amount": null, | 
| 239 |  |  |  |  |  |  | "merchant_currency": null, | 
| 240 |  |  |  |  |  |  | "merchant_data": { | 
| 241 |  |  |  |  |  |  | "category": "taxicabs_limousines", | 
| 242 |  |  |  |  |  |  | "city": "San Francisco", | 
| 243 |  |  |  |  |  |  | "country": "US", | 
| 244 |  |  |  |  |  |  | "name": "Rocket Rides", | 
| 245 |  |  |  |  |  |  | "network_id": "1234567890", | 
| 246 |  |  |  |  |  |  | "postal_code": "94107", | 
| 247 |  |  |  |  |  |  | "state": "CA", | 
| 248 |  |  |  |  |  |  | "url": null | 
| 249 |  |  |  |  |  |  | }, | 
| 250 |  |  |  |  |  |  | "metadata": {}, | 
| 251 |  |  |  |  |  |  | "type": "capture" | 
| 252 |  |  |  |  |  |  | } | 
| 253 |  |  |  |  |  |  | ], | 
| 254 |  |  |  |  |  |  | "verification_data": { | 
| 255 |  |  |  |  |  |  | "address_line1_check": "not_provided", | 
| 256 |  |  |  |  |  |  | "address_zip_check": "match", | 
| 257 |  |  |  |  |  |  | "authentication": "none", | 
| 258 |  |  |  |  |  |  | "cvc_check": "match" | 
| 259 |  |  |  |  |  |  | }, | 
| 260 |  |  |  |  |  |  | "wallet_provider": null | 
| 261 |  |  |  |  |  |  | } | 
| 262 |  |  |  |  |  |  |  | 
| 263 |  |  |  |  |  |  | =head1 HISTORY | 
| 264 |  |  |  |  |  |  |  | 
| 265 |  |  |  |  |  |  | =head2 v0.1 | 
| 266 |  |  |  |  |  |  |  | 
| 267 |  |  |  |  |  |  | Initial version | 
| 268 |  |  |  |  |  |  |  | 
| 269 |  |  |  |  |  |  | =head1 AUTHOR | 
| 270 |  |  |  |  |  |  |  | 
| 271 |  |  |  |  |  |  | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | 
| 272 |  |  |  |  |  |  |  | 
| 273 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 274 |  |  |  |  |  |  |  | 
| 275 |  |  |  |  |  |  | Stripe API documentation: | 
| 276 |  |  |  |  |  |  |  | 
| 277 |  |  |  |  |  |  | L<https://stripe.com/docs/api/issuing/authorizations/object> | 
| 278 |  |  |  |  |  |  |  | 
| 279 |  |  |  |  |  |  | =head1 COPYRIGHT & LICENSE | 
| 280 |  |  |  |  |  |  |  | 
| 281 |  |  |  |  |  |  | Copyright (c) 2019-2020 DEGUEST Pte. Ltd. | 
| 282 |  |  |  |  |  |  |  | 
| 283 |  |  |  |  |  |  | You can use, copy, modify and redistribute this package and associated | 
| 284 |  |  |  |  |  |  | files under the same terms as Perl itself. | 
| 285 |  |  |  |  |  |  |  | 
| 286 |  |  |  |  |  |  | =cut |