line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Order/SKU/PackageDimensions.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::Order::SKU::PackageDimensions; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
2
|
|
|
2
|
|
21046395
|
use strict; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
62
|
|
14
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
58
|
|
15
|
2
|
|
|
2
|
|
12
|
use parent qw( Net::API::Stripe::Product::PackageDimension ); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
12
|
|
16
|
2
|
|
|
2
|
|
126
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
97
|
|
17
|
2
|
|
|
2
|
|
38
|
our( $VERSION ) = 'v0.100.0'; |
18
|
|
|
|
|
|
|
}; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
37
|
|
21
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
73
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=encoding utf8 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 NAME |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
Net::API::Stripe::Order::SKU::PackageDimensions - A Stripe SKU Package Dimensions Object |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# In inches |
36
|
|
|
|
|
|
|
my $pkg = $stripe->sku->package_dimensions({ |
37
|
|
|
|
|
|
|
height => 6, |
38
|
|
|
|
|
|
|
length => 20, |
39
|
|
|
|
|
|
|
# Ounce |
40
|
|
|
|
|
|
|
weight => 21 |
41
|
|
|
|
|
|
|
width => 12 |
42
|
|
|
|
|
|
|
}); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
# Then, because we are in EU |
45
|
|
|
|
|
|
|
$pkg->use_metric( 1 ); |
46
|
|
|
|
|
|
|
my $width = $pkg->width; |
47
|
|
|
|
|
|
|
# returns in centimetres: 30.48 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 VERSION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
v0.100.0 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 DESCRIPTION |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This module inherits completely from L<Net::API::Stripe::Product::PackageDimension>. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 API SAMPLE |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
{ |
60
|
|
|
|
|
|
|
"id": "sku_fake123456789", |
61
|
|
|
|
|
|
|
"object": "sku", |
62
|
|
|
|
|
|
|
"active": true, |
63
|
|
|
|
|
|
|
"attributes": { |
64
|
|
|
|
|
|
|
"size": "Medium", |
65
|
|
|
|
|
|
|
"gender": "Unisex" |
66
|
|
|
|
|
|
|
}, |
67
|
|
|
|
|
|
|
"created": 1571480453, |
68
|
|
|
|
|
|
|
"currency": "jpy", |
69
|
|
|
|
|
|
|
"image": null, |
70
|
|
|
|
|
|
|
"inventory": { |
71
|
|
|
|
|
|
|
"quantity": 50, |
72
|
|
|
|
|
|
|
"type": "finite", |
73
|
|
|
|
|
|
|
"value": null |
74
|
|
|
|
|
|
|
}, |
75
|
|
|
|
|
|
|
"livemode": false, |
76
|
|
|
|
|
|
|
"metadata": {}, |
77
|
|
|
|
|
|
|
"package_dimensions": null, |
78
|
|
|
|
|
|
|
"price": 1500, |
79
|
|
|
|
|
|
|
"product": "prod_fake123456789", |
80
|
|
|
|
|
|
|
"updated": 1571480453 |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 HISTORY |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 v0.1 |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Initial version |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 AUTHOR |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 SEE ALSO |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Stripe API documentation: |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
104
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |
107
|
|
|
|
|
|
|
|