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