line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Bitcoin/Transaction.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::Bitcoin::Transaction; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
822
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
174
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub amount { return( shift->_set_get_number( 'amount', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub bitcoin_amount { return( shift->_set_get_number( 'bitcoin_amount', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub created { return( shift->_set_get_datetime( 'created', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub receiver { return( shift->_set_get_scalar( 'receiver', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=encoding utf8 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 NAME |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Net::API::Stripe::Bitcoin::Transaction - A Stripe Bitcoin Transaction Object |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
v0.100.0 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
A Bitcoin Transaction module. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
As of 2019-11-01, this is an undocumented object in Stripe api documentation. It was found in L<https://stripe.com/docs/api/customers/object> under the I<sources> property. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=over 4 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Bitcoin::Transaction> object. |
59
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=back |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 METHODS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item B<id> string |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Unique identifier for the object. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item B<object> string, value is "bitcoin_transaction" |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
String representing the objectâs type. Objects of the same type share the same value. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item B<amount> positive integer |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The amount of currency that the transaction was converted to in real-time. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item B<bitcoin_amount> positive integer |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The amount of bitcoin contained in the transaction. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item B<created> timestamp |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Time at which the object was created. Measured in seconds since the Unix epoch. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item B<currency> currency |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Three-letter ISO code for the currency to which this transaction was converted. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item B<receiver> string |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The receiver to which this transaction was sent. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 API SAMPLE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
No API sample provided by Stripe yet. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 HISTORY |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 v0.1 |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Initial version |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head1 AUTHOR |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head1 SEE ALSO |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Stripe API documentation: |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/customers/object> |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
122
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |