line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Billing/Invoice/StatusTransition.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
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
2
|
|
|
2
|
|
24049841
|
use warnings; |
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
133
|
|
14
|
2
|
|
|
2
|
|
14
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
126
|
|
15
|
2
|
|
|
2
|
|
11
|
use vars qw( $VERSION ); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
16
|
2
|
|
|
2
|
|
144
|
our( $VERSION ) = 'v0.100.0'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
118
|
|
17
|
2
|
|
|
2
|
|
39
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
40
|
|
21
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
237
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
0
|
|
|
0
|
1
|
|
|
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
=encoding utf8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Net::API::Stripe::Billing::Invoice::StatusTransition - An Invoice Status Transition Object |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
my $status_trans = $invoice->status_transitions({ |
38
|
|
|
|
|
|
|
finalized_at => '2020-03-17', |
39
|
|
|
|
|
|
|
# marked_uncollectible_at => '2020-04-12', |
40
|
|
|
|
|
|
|
paid_at => '2020-03-31', |
41
|
|
|
|
|
|
|
# voided_at => '2020-04-15', |
42
|
|
|
|
|
|
|
}); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
v0.100.0 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This is instantiated by method B<status_transitions> in L<Net::API::Stripe::Billing::Invoice> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 new( %ARG ) |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Billing::Invoice::StatusTransition> object. |
57
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 METHODS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 finalized_at timestamp |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
The time that the invoice draft was finalized. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 marked_uncollectible_at timestamp |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The time that the invoice was marked uncollectible. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 paid_at timestamp |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The time that the invoice was paid. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 voided_at timestamp |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
The time that the invoice was voided. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 API SAMPLE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
{ |
80
|
|
|
|
|
|
|
"id": "in_fake123456789", |
81
|
|
|
|
|
|
|
"object": "invoice", |
82
|
|
|
|
|
|
|
"account_country": "JP", |
83
|
|
|
|
|
|
|
"account_name": "Provider, Inc", |
84
|
|
|
|
|
|
|
"amount_due": 8000, |
85
|
|
|
|
|
|
|
"amount_paid": 8000, |
86
|
|
|
|
|
|
|
"amount_remaining": 0, |
87
|
|
|
|
|
|
|
"application_fee_amount": null, |
88
|
|
|
|
|
|
|
"attempt_count": 1, |
89
|
|
|
|
|
|
|
"attempted": true, |
90
|
|
|
|
|
|
|
"auto_advance": false, |
91
|
|
|
|
|
|
|
"billing": "charge_automatically", |
92
|
|
|
|
|
|
|
"billing_reason": "subscription", |
93
|
|
|
|
|
|
|
"charge": "ch_fake123456789", |
94
|
|
|
|
|
|
|
"collection_method": "charge_automatically", |
95
|
|
|
|
|
|
|
"created": 1507273919, |
96
|
|
|
|
|
|
|
"currency": "jpy", |
97
|
|
|
|
|
|
|
"custom_fields": null, |
98
|
|
|
|
|
|
|
"customer": "cus_fake123456789", |
99
|
|
|
|
|
|
|
"customer_address": null, |
100
|
|
|
|
|
|
|
"customer_email": "john.doe@example.com", |
101
|
|
|
|
|
|
|
"customer_name": null, |
102
|
|
|
|
|
|
|
"customer_phone": null, |
103
|
|
|
|
|
|
|
"customer_shipping": null, |
104
|
|
|
|
|
|
|
"customer_tax_exempt": "none", |
105
|
|
|
|
|
|
|
"customer_tax_ids": [], |
106
|
|
|
|
|
|
|
"default_payment_method": null, |
107
|
|
|
|
|
|
|
"default_source": null, |
108
|
|
|
|
|
|
|
"default_tax_rates": [], |
109
|
|
|
|
|
|
|
"description": null, |
110
|
|
|
|
|
|
|
"discount": null, |
111
|
|
|
|
|
|
|
"due_date": null, |
112
|
|
|
|
|
|
|
"ending_balance": 0, |
113
|
|
|
|
|
|
|
"footer": null, |
114
|
|
|
|
|
|
|
"hosted_invoice_url": "https://pay.stripe.com/invoice/invst_fake123456789", |
115
|
|
|
|
|
|
|
"invoice_pdf": "https://pay.stripe.com/invoice/invst_fake123456789/pdf", |
116
|
|
|
|
|
|
|
"lines": { |
117
|
|
|
|
|
|
|
"data": [ |
118
|
|
|
|
|
|
|
{ |
119
|
|
|
|
|
|
|
"id": "sli_fake123456789", |
120
|
|
|
|
|
|
|
"object": "line_item", |
121
|
|
|
|
|
|
|
"amount": 8000, |
122
|
|
|
|
|
|
|
"currency": "jpy", |
123
|
|
|
|
|
|
|
"description": "1 × Provider, Inc professional monthly membership (at ¥8,000 / month)", |
124
|
|
|
|
|
|
|
"discountable": true, |
125
|
|
|
|
|
|
|
"livemode": false, |
126
|
|
|
|
|
|
|
"metadata": {}, |
127
|
|
|
|
|
|
|
"period": { |
128
|
|
|
|
|
|
|
"end": 1559441759, |
129
|
|
|
|
|
|
|
"start": 1556763359 |
130
|
|
|
|
|
|
|
}, |
131
|
|
|
|
|
|
|
"plan": { |
132
|
|
|
|
|
|
|
"id": "professional-monthly-jpy", |
133
|
|
|
|
|
|
|
"object": "plan", |
134
|
|
|
|
|
|
|
"active": true, |
135
|
|
|
|
|
|
|
"aggregate_usage": null, |
136
|
|
|
|
|
|
|
"amount": 8000, |
137
|
|
|
|
|
|
|
"amount_decimal": "8000", |
138
|
|
|
|
|
|
|
"billing_scheme": "per_unit", |
139
|
|
|
|
|
|
|
"created": 1541833564, |
140
|
|
|
|
|
|
|
"currency": "jpy", |
141
|
|
|
|
|
|
|
"interval": "month", |
142
|
|
|
|
|
|
|
"interval_count": 1, |
143
|
|
|
|
|
|
|
"livemode": false, |
144
|
|
|
|
|
|
|
"metadata": {}, |
145
|
|
|
|
|
|
|
"nickname": null, |
146
|
|
|
|
|
|
|
"product": "prod_fake123456789", |
147
|
|
|
|
|
|
|
"tiers": null, |
148
|
|
|
|
|
|
|
"tiers_mode": null, |
149
|
|
|
|
|
|
|
"transform_usage": null, |
150
|
|
|
|
|
|
|
"trial_period_days": null, |
151
|
|
|
|
|
|
|
"usage_type": "licensed" |
152
|
|
|
|
|
|
|
}, |
153
|
|
|
|
|
|
|
"proration": false, |
154
|
|
|
|
|
|
|
"quantity": 1, |
155
|
|
|
|
|
|
|
"subscription": "sub_fake123456789", |
156
|
|
|
|
|
|
|
"subscription_item": "si_fake123456789", |
157
|
|
|
|
|
|
|
"tax_amounts": [], |
158
|
|
|
|
|
|
|
"tax_rates": [], |
159
|
|
|
|
|
|
|
"type": "subscription" |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
], |
162
|
|
|
|
|
|
|
"has_more": false, |
163
|
|
|
|
|
|
|
"object": "list", |
164
|
|
|
|
|
|
|
"url": "/v1/invoices/in_fake123456789/lines" |
165
|
|
|
|
|
|
|
}, |
166
|
|
|
|
|
|
|
"livemode": false, |
167
|
|
|
|
|
|
|
"metadata": {}, |
168
|
|
|
|
|
|
|
"next_payment_attempt": null, |
169
|
|
|
|
|
|
|
"number": "53DB91F-0001", |
170
|
|
|
|
|
|
|
"paid": true, |
171
|
|
|
|
|
|
|
"payment_intent": null, |
172
|
|
|
|
|
|
|
"period_end": 1507273919, |
173
|
|
|
|
|
|
|
"period_start": 1507273919, |
174
|
|
|
|
|
|
|
"post_payment_credit_notes_amount": 0, |
175
|
|
|
|
|
|
|
"pre_payment_credit_notes_amount": 0, |
176
|
|
|
|
|
|
|
"receipt_number": "2066-1929", |
177
|
|
|
|
|
|
|
"starting_balance": 0, |
178
|
|
|
|
|
|
|
"statement_descriptor": null, |
179
|
|
|
|
|
|
|
"status": "paid", |
180
|
|
|
|
|
|
|
"status_transitions": { |
181
|
|
|
|
|
|
|
"finalized_at": 1507273919, |
182
|
|
|
|
|
|
|
"marked_uncollectible_at": null, |
183
|
|
|
|
|
|
|
"paid_at": 1507273919, |
184
|
|
|
|
|
|
|
"voided_at": null |
185
|
|
|
|
|
|
|
}, |
186
|
|
|
|
|
|
|
"subscription": "sub_fake123456789", |
187
|
|
|
|
|
|
|
"subtotal": 8000, |
188
|
|
|
|
|
|
|
"tax": null, |
189
|
|
|
|
|
|
|
"tax_percent": null, |
190
|
|
|
|
|
|
|
"total": 8000, |
191
|
|
|
|
|
|
|
"total_tax_amounts": [], |
192
|
|
|
|
|
|
|
"webhooks_delivered_at": 1507273920 |
193
|
|
|
|
|
|
|
} |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head1 HISTORY |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=head2 v0.1 |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
Initial version |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=head1 AUTHOR |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=head1 SEE ALSO |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
Stripe API documentation: |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/invoices/object> |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
216
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
=cut |