| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | ##---------------------------------------------------------------------------- | 
| 2 |  |  |  |  |  |  | ## Stripe API - ~/lib/Net/API/Stripe/Treasury/InboundTransfer.pm | 
| 3 |  |  |  |  |  |  | ## Version v0.1.0 | 
| 4 |  |  |  |  |  |  | ## Copyright(c) 2022 DEGUEST Pte. Ltd. | 
| 5 |  |  |  |  |  |  | ## Author: Jacques Deguest <jack@deguest.jp> | 
| 6 |  |  |  |  |  |  | ## Created 2022/10/29 | 
| 7 |  |  |  |  |  |  | ## Modified 2022/10/29 | 
| 8 |  |  |  |  |  |  | ## | 
| 9 |  |  |  |  |  |  | ##---------------------------------------------------------------------------- | 
| 10 |  |  |  |  |  |  | BEGIN | 
| 11 |  |  |  |  |  |  | { | 
| 12 |  |  |  |  |  |  | use strict; | 
| 13 | 2 |  |  | 2 |  | 24271721 | use parent qw( Net::API::Stripe::Generic ); | 
|  | 2 |  |  |  |  | 14 |  | 
|  | 2 |  |  |  |  | 75 |  | 
| 14 | 2 |  |  | 2 |  | 12 | our( $VERSION ) = 'v0.1.0'; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 15 |  | 
| 15 | 2 |  |  | 2 |  | 1130 | }; | 
| 16 |  |  |  |  |  |  |  | 
| 17 |  |  |  |  |  |  |  | 
| 18 | 0 |  |  | 0 | 1 |  |  | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 0 |  |  | 0 | 1 |  |  | 
| 21 |  |  |  |  |  |  |  | 
| 22 | 0 |  |  | 0 | 1 |  |  | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 0 |  |  | 0 | 1 |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 | 0 |  |  | 0 | 1 |  |  | 
| 27 |  |  |  |  |  |  | { received_debit => { type => "scalar" } }, @_ ) ); } | 
| 28 | 0 |  |  | 0 | 1 |  |  | 
| 29 |  |  |  |  |  |  |  | 
| 30 | 0 |  |  | 0 | 1 |  |  | 
| 31 |  |  |  |  |  |  |  | 
| 32 | 0 |  |  | 0 | 1 |  |  | 
| 33 |  |  |  |  |  |  |  | 
| 34 | 0 |  |  | 0 | 1 |  |  | 
| 35 |  |  |  |  |  |  |  | 
| 36 | 0 |  |  | 0 | 1 |  | { | 
| 37 |  |  |  |  |  |  | failed_at    => { type => "datetime" }, | 
| 38 | 0 |  |  | 0 | 1 |  | succeeded_at => { type => "datetime" }, | 
| 39 |  |  |  |  |  |  | }, @_ ) ); } | 
| 40 |  |  |  |  |  |  |  | 
| 41 | 0 |  |  | 0 | 1 |  |  | 
| 42 |  |  |  |  |  |  | 1; | 
| 43 | 0 |  |  | 0 | 1 |  | # NOTE: POD | 
| 44 |  |  |  |  |  |  |  | 
| 45 | 0 |  |  | 0 | 1 |  | =encoding utf8 | 
| 46 |  |  |  |  |  |  |  | 
| 47 | 0 |  |  | 0 | 1 |  | =head1 NAME | 
| 48 |  |  |  |  |  |  |  | 
| 49 | 0 |  |  | 0 | 1 |  | Net::API::Stripe::Treasury::InboundTransfer - The InboundTransfer object | 
| 50 |  |  |  |  |  |  |  | 
| 51 | 0 |  |  | 0 | 1 |  | =head1 SYNOPSIS | 
| 52 |  |  |  |  |  |  |  | 
| 53 | 0 |  |  | 0 | 1 |  | =head1 VERSION | 
| 54 |  |  |  |  |  |  |  | 
| 55 | 0 |  |  | 0 | 1 |  | v0.1.0 | 
| 56 |  |  |  |  |  |  |  | 
| 57 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | Use L<InboundTransfers|https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers> to add funds to your L<FinancialAccount|https://stripe.com/docs/api/treasury/financial_accounts> via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. | 
| 60 |  |  |  |  |  |  |  | 
| 61 | 0 |  |  | 0 | 1 |  | =head1 METHODS | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =head2 id string | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | Unique identifier for the object. | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =head2 object string | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | String representing the object's type. Objects of the same type share the same value. | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =head2 amount integer | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | Amount (in cents) transferred. | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | =head2 cancelable boolean | 
| 76 |  |  |  |  |  |  |  | 
| 77 |  |  |  |  |  |  | Returns C<true> if the InboundTransfer is able to be canceled. | 
| 78 |  |  |  |  |  |  |  | 
| 79 |  |  |  |  |  |  | =head2 created timestamp | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | Time at which the object was created. Measured in seconds since the Unix epoch. | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | =head2 currency currency | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | Three-letter L<ISO currency code|https://www.iso.org/iso-4217-currency-codes.html>, in lowercase. Must be a L<supported currency|https://stripe.com/docs/currencies>. | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | =head2 description string | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | An arbitrary string attached to the object. Often useful for displaying to users. | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | =head2 failure_details object | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | Details about this InboundTransfer's failure. Only set when status is C<failed>. | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Error> object. | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | =head2 financial_account string | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | The FinancialAccount that received the funds. | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =head2 hosted_regulatory_receipt_url string | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | A L<hosted transaction receipt|https://stripe.com/docs/treasury/moving-money/regulatory-receipts> URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. | 
| 104 |  |  |  |  |  |  |  | 
| 105 |  |  |  |  |  |  | =head2 linked_flows hash | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | Other flows linked to a InboundTransfer. | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | It has the following properties: | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | =over 4 | 
| 112 |  |  |  |  |  |  |  | 
| 113 |  |  |  |  |  |  | =item C<received_debit> string | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | If funds for this flow were returned after the flow went to the C<succeeded> state, this field contains a reference to the ReceivedDebit return. | 
| 116 |  |  |  |  |  |  |  | 
| 117 |  |  |  |  |  |  | =back | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | =head2 livemode boolean | 
| 120 |  |  |  |  |  |  |  | 
| 121 |  |  |  |  |  |  | Has the value C<true> if the object exists in live mode or the value C<false> if the object exists in test mode. | 
| 122 |  |  |  |  |  |  |  | 
| 123 |  |  |  |  |  |  | =head2 metadata hash | 
| 124 |  |  |  |  |  |  |  | 
| 125 |  |  |  |  |  |  | Set of L<key-value pairs|https://stripe.com/docs/api/metadata> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | =head2 origin_payment_method string | 
| 128 |  |  |  |  |  |  |  | 
| 129 |  |  |  |  |  |  | The origin payment method to be debited for an InboundTransfer. | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | =head2 origin_payment_method_details object | 
| 132 |  |  |  |  |  |  |  | 
| 133 |  |  |  |  |  |  | Details about the PaymentMethod for an InboundTransfer. | 
| 134 |  |  |  |  |  |  |  | 
| 135 |  |  |  |  |  |  | This is a L<Net::API::Stripe::Payment::Method> object. | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | =head2 returned boolean | 
| 138 |  |  |  |  |  |  |  | 
| 139 |  |  |  |  |  |  | Returns C<true> if the funds for an InboundTransfer were returned after the InboundTransfer went to the C<succeeded> state. | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  | =head2 statement_descriptor string | 
| 142 |  |  |  |  |  |  |  | 
| 143 |  |  |  |  |  |  | Statement descriptor shown when funds are debited from the source. Not all payment networks support C<statement_descriptor>. | 
| 144 |  |  |  |  |  |  |  | 
| 145 |  |  |  |  |  |  | =head2 status string | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  | Status of the InboundTransfer: C<processing>, C<succeeded>, C<failed>, and C<canceled>. An InboundTransfer is C<processing> if it is created and pending. The status changes to C<succeeded> once the funds have been "confirmed" and a C<transaction> is created and posted. The status changes to C<failed> if the transfer fails. | 
| 148 |  |  |  |  |  |  |  | 
| 149 |  |  |  |  |  |  | =head2 status_transitions hash | 
| 150 |  |  |  |  |  |  |  | 
| 151 |  |  |  |  |  |  | Hash containing timestamps of when the object transitioned to a particular C<status>. | 
| 152 |  |  |  |  |  |  |  | 
| 153 |  |  |  |  |  |  | It has the following properties: | 
| 154 |  |  |  |  |  |  |  | 
| 155 |  |  |  |  |  |  | =over 4 | 
| 156 |  |  |  |  |  |  |  | 
| 157 |  |  |  |  |  |  | =item C<failed_at> timestamp | 
| 158 |  |  |  |  |  |  |  | 
| 159 |  |  |  |  |  |  | Timestamp describing when an InboundTransfer changed status to C<failed>. | 
| 160 |  |  |  |  |  |  |  | 
| 161 |  |  |  |  |  |  | =item C<succeeded_at> timestamp | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | Timestamp describing when an InboundTransfer changed status to C<succeeded>. | 
| 164 |  |  |  |  |  |  |  | 
| 165 |  |  |  |  |  |  | =back | 
| 166 |  |  |  |  |  |  |  | 
| 167 |  |  |  |  |  |  | =head2 transaction expandable | 
| 168 |  |  |  |  |  |  |  | 
| 169 |  |  |  |  |  |  | The Transaction associated with this object. | 
| 170 |  |  |  |  |  |  |  | 
| 171 |  |  |  |  |  |  | When expanded this is an L<Net::API::Stripe::Treasury::Transaction> object. | 
| 172 |  |  |  |  |  |  |  | 
| 173 |  |  |  |  |  |  | =head1 API SAMPLE | 
| 174 |  |  |  |  |  |  |  | 
| 175 |  |  |  |  |  |  | [ | 
| 176 |  |  |  |  |  |  | { | 
| 177 |  |  |  |  |  |  | "amount" : "10000", | 
| 178 |  |  |  |  |  |  | "cancelable" : 1, | 
| 179 |  |  |  |  |  |  | "created" : "1662261086", | 
| 180 |  |  |  |  |  |  | "currency" : "usd", | 
| 181 |  |  |  |  |  |  | "description" : "InboundTransfer from my external bank account", | 
| 182 |  |  |  |  |  |  | "failure_details" : null, | 
| 183 |  |  |  |  |  |  | "financial_account" : "fa_1Le9F32eZvKYlo2CjbQcDQUE", | 
| 184 |  |  |  |  |  |  | "hosted_regulatory_receipt_url" : "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKN6u0JgGMgYX_o2noYA6NpN4jXrpZ4wHFa5zF22DiASaNO0VqFyFqmmxq76HgJ6U3fMErijpEIwaJZheg_11U9lfHZvHaQ", | 
| 185 |  |  |  |  |  |  | "id" : "ibt_1Le9F42eZvKYlo2CxDLDB04R", | 
| 186 |  |  |  |  |  |  | "linked_flows" : { | 
| 187 |  |  |  |  |  |  | "received_debit" : null | 
| 188 |  |  |  |  |  |  | }, | 
| 189 |  |  |  |  |  |  | "livemode" : 0, | 
| 190 |  |  |  |  |  |  | "metadata" : {}, | 
| 191 |  |  |  |  |  |  | "object" : "treasury.inbound_transfer", | 
| 192 |  |  |  |  |  |  | "origin_payment_method" : "pm_1Le9F32eZvKYlo2CpHGQxg2C", | 
| 193 |  |  |  |  |  |  | "origin_payment_method_details" : { | 
| 194 |  |  |  |  |  |  | "billing_details" : { | 
| 195 |  |  |  |  |  |  | "address" : { | 
| 196 |  |  |  |  |  |  | "city" : "San Francisco", | 
| 197 |  |  |  |  |  |  | "country" : "US", | 
| 198 |  |  |  |  |  |  | "line1" : "1234 Fake Street", | 
| 199 |  |  |  |  |  |  | "line2" : null, | 
| 200 |  |  |  |  |  |  | "postal_code" : "94102", | 
| 201 |  |  |  |  |  |  | "state" : "CA" | 
| 202 |  |  |  |  |  |  | }, | 
| 203 |  |  |  |  |  |  | "email" : null, | 
| 204 |  |  |  |  |  |  | "name" : "Jane Austen" | 
| 205 |  |  |  |  |  |  | }, | 
| 206 |  |  |  |  |  |  | "type" : "us_bank_account", | 
| 207 |  |  |  |  |  |  | "us_bank_account" : { | 
| 208 |  |  |  |  |  |  | "account_holder_type" : "company", | 
| 209 |  |  |  |  |  |  | "account_type" : "checking", | 
| 210 |  |  |  |  |  |  | "bank_name" : "STRIPE TEST BANK", | 
| 211 |  |  |  |  |  |  | "fingerprint" : "1JWtPxqbdX5Gamtc", | 
| 212 |  |  |  |  |  |  | "last4" : "6789", | 
| 213 |  |  |  |  |  |  | "network" : "ach", | 
| 214 |  |  |  |  |  |  | "routing_number" : "110000000" | 
| 215 |  |  |  |  |  |  | } | 
| 216 |  |  |  |  |  |  | }, | 
| 217 |  |  |  |  |  |  | "returned" : 0, | 
| 218 |  |  |  |  |  |  | "statement_descriptor" : "transfer", | 
| 219 |  |  |  |  |  |  | "status" : "processing", | 
| 220 |  |  |  |  |  |  | "status_transitions" : { | 
| 221 |  |  |  |  |  |  | "failed_at" : null, | 
| 222 |  |  |  |  |  |  | "succeeded_at" : null | 
| 223 |  |  |  |  |  |  | }, | 
| 224 |  |  |  |  |  |  | "transaction" : "trxn_1Le9F32eZvKYlo2C2dtkse82" | 
| 225 |  |  |  |  |  |  | } | 
| 226 |  |  |  |  |  |  | ] | 
| 227 |  |  |  |  |  |  |  | 
| 228 |  |  |  |  |  |  | =head1 HISTORY | 
| 229 |  |  |  |  |  |  |  | 
| 230 |  |  |  |  |  |  | =head2 v0.1.0 | 
| 231 |  |  |  |  |  |  |  | 
| 232 |  |  |  |  |  |  | Initial version | 
| 233 |  |  |  |  |  |  |  | 
| 234 |  |  |  |  |  |  | =head1 AUTHOR | 
| 235 |  |  |  |  |  |  |  | 
| 236 |  |  |  |  |  |  | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | 
| 237 |  |  |  |  |  |  |  | 
| 238 |  |  |  |  |  |  | =head1 SEE ALSO | 
| 239 |  |  |  |  |  |  |  | 
| 240 |  |  |  |  |  |  | L<Stripe API documentation|https://stripe.com/docs/api/treasury/inbound_transfers> | 
| 241 |  |  |  |  |  |  |  | 
| 242 |  |  |  |  |  |  | =head1 COPYRIGHT & LICENSE | 
| 243 |  |  |  |  |  |  |  | 
| 244 |  |  |  |  |  |  | Copyright (c) 2019-2022 DEGUEST Pte. Ltd. | 
| 245 |  |  |  |  |  |  |  | 
| 246 |  |  |  |  |  |  | You can use, copy, modify and redistribute this package and associated | 
| 247 |  |  |  |  |  |  | files under the same terms as Perl itself. | 
| 248 |  |  |  |  |  |  |  | 
| 249 |  |  |  |  |  |  | =cut |