-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
744 lines (738 loc) · 36.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>microzeny API | API Reference</title>
<link rel="stylesheet" href="stylesheets/foundation.min.css" />
<link rel="stylesheet" href="stylesheets/spectacle.min.css" />
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<!-- <script src="javascripts/foundation.js"></script> -->
<script src="javascripts/spectacle.min.js"></script>
</head>
<body id="spectacle">
<div id="page" class="drawer-layout drawer-slide-right-large">
<div id="sidebar">
<button class="close-button" aria-label="Close menu" type="button" data-drawer-close>
<span aria-hidden="true">×</span>
</button>
<nav id="nav" role="navigation">
<h5>Topics</h5>
<a href="#introduction">Introduction</a>
<a href="#authentication">Authentication</a>
<h5>Operations</h5>
<section>
<a href="#tag-Account">Account</a>
<ul>
<li>
<a href="#operation--accounts-get"> microzenyアカウントの情報を取得 </a>
</li>
</ul>
</section>
<section>
<a href="#tag-ChargePayment">ChargePayment</a>
<ul>
<li>
<a href="#operation--balance-get"> 現在の残高を取得 </a>
</li>
<li>
<a href="#operation--charges-post"> サービス用のウォレットに対してチャージを行うURLを作成 </a>
</li>
<li>
<a href="#operation--charges--charge_id--get"> IDを指定してチャージの情報を取得 </a>
</li>
</ul>
</section>
<section>
<a href="#tag-DirectPayment">DirectPayment</a>
<ul> </ul>
</section>
<h5>Schema Definitions</h5>
<a href="#definition-Account"> Account </a>
<a href="#definition-Balance"> Balance </a>
<a href="#definition-Charge"> Charge </a>
</nav>
</div>
<div id="docs" class="row collapse expanded drawer" data-drawer>
<button class="floating-menu-icon" type="button" data-drawer-slide="right">
<span class="hamburger"></span>
</button>
<div class="example-box doc-content"></div>
<article>
<h1 class="doc-title">microzeny API
<span>API Reference</span>
</h1>
<div id="introduction" data-traverse-target="introduction">
<div class="doc-row">
<div class="doc-copy">
<p>microzeny APIを利用すると、microzenyアカウントを使ってBitZenyの支払いや受け取りを行うことができます。microzenyは仮想通貨の実体ではなく権利のみを移動するオフチェーンサービスのため、支払い・受け取りはAPIリクエスト後すぐに完了します。</p>
<p>支払いは、最初にmicrozenyのウォレットからサービスに対してチャージを行いそのチャージ残高を使ってAPIから自由に支払いが行える
<strong>ChargePayment</strong>、microzenyのウォレットから毎回確認を取りながら直接支払いを行う
<strong>DirectPayment</strong> の2種類の方式があります。 ChargePaymentは、faucetのような特定のアカウントのチャージを複数ユーザに支払う仕組みや、ゲームプレイ料やAPI利用料のように何度も支払いを行うようなユースケースを想定しており、DirectPaymentはECサイトのようにまとまった金額をユーザが明示的に支払うようなサービスを想定しています。</p>
<p>microzeny APIの OpenAPI 定義ファイルは
<a href="https://microzeny.github.io/openapi-spec/swagger.yaml">OpenAPI Spec File</a> にて公開しています。</p>
</div>
<div class="doc-examples">
<section>
<h5>API Endpoint</h5>
<!-- <div class="hljs"> --><pre><code>https://api.microzeny.com/v1</code></pre>
<!-- </div> -->
<h5>Request Content-Types:
<span>application/x-www-form-urlencoded</span>
</h5>
<h5>Response Content-Types:
<span>application/json</span>
</h5>
<h5>Schemes:
<span>https</span>
</h5>
<h5>Version:
<span>0.0.1</span>
</h5>
</section>
</div>
</div>
</div>
<!-- <h1 id="security" data-traverse-target="security">Security</h1> -->
<h1 id="authentication" data-traverse-target="authentication">Authentication</h1>
<div id="security-definition-microzeny_oauth" class="panel">
<div class="doc-row">
<div class="doc-copy">
<h3 class="security-definition-title">
<span class="security-name">microzeny_oauth</span>
<span class="swagger-security-definition-oauth2"></span>
</h3>
<section class="swagger-security-definition-properties">
<div class="prop-row security-definition-property">
<div class="prop-name">
<div class="prop-title security-definition-property-name">type</div>
</div>
<div class="prop-value security-definition-property-type"> oauth2 </div>
</div>
<div class="prop-row security-definition-property">
<div class="prop-name">
<div class="prop-title security-definition-property-name">flow</div>
</div>
<div class="prop-value security-definition-property-type"> accessCode </div>
</div>
<div class="prop-row security-definition-property">
<div class="prop-name">
<div class="prop-title security-definition-property-name">authorizationUrl</div>
</div>
<div class="prop-value security-definition-property-type"> https://microzeny.com/oauth/authorize </div>
</div>
<div class="prop-row security-definition-property">
<div class="prop-name">
<div class="prop-title security-definition-property-name">tokenUrl</div>
</div>
<div class="prop-value security-definition-property-type"> https://api.microzeny.com/oauth/token </div>
</div>
<div class="prop-row security-definition-property">
<div class="prop-name">
<div class="prop-title security-definition-property-name">scopes</div>
</div>
<div class="prop-value security-definition-property-type">
<span id="security-definition-scope-accounts">accounts</span>
<p class="security-definition-scope-description">認可したmicrozenyアカウントの情報を取得します</p>
<span id="security-definition-scope-charge_payment">charge_payment</span>
<p class="security-definition-scope-description">サービスにチャージを行ってから支払うChargePayment方式の支払いを行います</p>
</div>
</div>
</section>
</div>
</div>
</div>
<h1 id="tag-Account" class="swagger-summary-tag" data-traverse-target="tag-Account">Account</h1>
<div class="tag-description doc-row">
<div class="doc-copy">
<p>microzenyアカウントの情報</p>
</div>
</div>
<div id="operation--accounts-get" class="operation panel" data-traverse-target="operation--accounts-get">
<!-- <section class="operation-tags row"> -->
<!-- <div class="doc-copy"> -->
<div class="operation-tags">
<a class="label" href="#tag-Account">Account</a>
<!---->
</div>
<!-- </div> -->
<!-- </section> -->
<h2 class="operation-title">
<span class="operation-summary">microzenyアカウントの情報を取得</span>
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-path">
<span class="operation-method">GET</span>
<span class="operation-path">/accounts</span>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-description">
<p>microzenyアカウントの識別ID、名前、プロフィール、プロフィール画像URLを取得します。</p>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy"> </div>
<div class="doc-examples"></div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-responses">
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">200 OK</div>
<div class="prop-ref">
<span class="">
<a class="json-schema-ref" href="#/definitions/Account">Account</a>
</span>
</div>
<!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->
</div>
<div class="prop-value">
<p>Success.</p>
</div>
</div>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"acc_xxxxxxxxxx"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"@microzeny"</span>,
<span class="hljs-attr">"profile"</span>: <span class="hljs-string">"microzenyは仮想通貨BitZenyのための決済ポータルサービスです。たくさんのfaucetや誰でも簡単にfaucetを開設できる機能を提供しています。"</span>,
<span class="hljs-attr">"profile_image_url"</span>: <span class="hljs-string">"https://pbs.twimg.com/profile_images/968861259843031041/BuA1G1WV.jpg"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-request-security">
<table class="table">
<thead>
<tr>
<th class="swagger-request-security-schema"></th>
<th class="swagger-request-security-scopes"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#security-definition-microzeny_oauth">microzeny_oauth</a>
</td>
<td>
<a href="#security-definition-scope-accounts">accounts</a>
</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<h1 id="tag-ChargePayment" class="swagger-summary-tag" data-traverse-target="tag-ChargePayment">ChargePayment</h1>
<div class="tag-description doc-row">
<div class="doc-copy">
<p>最初にサービスに対してチャージを行ってから支払う方法</p>
</div>
</div>
<div id="operation--balance-get" class="operation panel" data-traverse-target="operation--balance-get">
<!-- <section class="operation-tags row"> -->
<!-- <div class="doc-copy"> -->
<div class="operation-tags">
<a class="label" href="#tag-ChargePayment">ChargePayment</a>
<!---->
</div>
<!-- </div> -->
<!-- </section> -->
<h2 class="operation-title">
<span class="operation-summary">現在の残高を取得</span>
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-path">
<span class="operation-method">GET</span>
<span class="operation-path">/balance</span>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-description">
<p>サービス用ウォレットの残高を取得します。</p>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy"> </div>
<div class="doc-examples"></div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-responses">
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">200 OK</div>
<div class="prop-ref">
<span class="">
<a class="json-schema-ref" href="#/definitions/Balance">Balance</a>
</span>
</div>
<!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->
</div>
<div class="prop-value">
<p>Success.</p>
</div>
</div>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"balance"</span>: <span class="hljs-string">"100000000"</span>,
<span class="hljs-attr">"balance_bitzeny"</span>: <span class="hljs-string">"1.00000000"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-request-security">
<table class="table">
<thead>
<tr>
<th class="swagger-request-security-schema"></th>
<th class="swagger-request-security-scopes"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#security-definition-microzeny_oauth">microzeny_oauth</a>
</td>
<td>
<a href="#security-definition-scope-charge_payment">charge_payment</a>
</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<div id="operation--charges-post" class="operation panel" data-traverse-target="operation--charges-post">
<!-- <section class="operation-tags row"> -->
<!-- <div class="doc-copy"> -->
<div class="operation-tags">
<a class="label" href="#tag-ChargePayment">ChargePayment</a>
<!---->
</div>
<!-- </div> -->
<!-- </section> -->
<h2 class="operation-title">
<span class="operation-summary">サービス用のウォレットに対してチャージを行うURLを作成</span>
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-path">
<span class="operation-method">POST</span>
<span class="operation-path">/charges</span>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-description">
<p>サービス用のウォレットに対してチャージを行うためのワンタイムのURLを取得します。</p>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy"> </div>
<div class="doc-examples"></div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-responses">
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">200 OK</div>
<div class="prop-ref">
<span class="">
<a class="json-schema-ref" href="#/definitions/Charge">Charge</a>
</span>
</div>
<!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->
</div>
<div class="prop-value">
<p>Success.</p>
</div>
</div>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"cha_xxxxxxxx"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"https://microzeny.com/charges/cha_xxxxxxxx"</span>,
<span class="hljs-attr">"expired_at"</span>: <span class="hljs-string">"2018-07-01 00:00:00"</span>,
<span class="hljs-attr">"status"</span>: <span class="hljs-string">"waiting"</span>,
<span class="hljs-attr">"amount"</span>: <span class="hljs-string">"1.00000000"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-request-security">
<table class="table">
<thead>
<tr>
<th class="swagger-request-security-schema"></th>
<th class="swagger-request-security-scopes"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#security-definition-microzeny_oauth">microzeny_oauth</a>
</td>
<td>
<a href="#security-definition-scope-charge_payment">charge_payment</a>
</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<div id="operation--charges--charge_id--get" class="operation panel" data-traverse-target="operation--charges--charge_id--get">
<!-- <section class="operation-tags row"> -->
<!-- <div class="doc-copy"> -->
<div class="operation-tags">
<a class="label" href="#tag-ChargePayment">ChargePayment</a>
<!---->
</div>
<!-- </div> -->
<!-- </section> -->
<h2 class="operation-title">
<span class="operation-summary">IDを指定してチャージの情報を取得</span>
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-path">
<span class="operation-method">GET</span>
<span class="operation-path">/charges/{charge_id}</span>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-operation-description">
<p>IDを指定してチャージの情報を取得します。ユーザがチャージURLからコールバックして来た時にチャージの結果を取得するなどに利用します。</p>
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-request-params">
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">charge_id</div>
<span class="json-property-required"></span>
<div class="prop-subtitle"> in path </div>
<div class="prop-subtitle">
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</div>
</div>
<div class="prop-value">
<p class="no-description">(no description)</p>
</div>
</div>
</section>
</div>
<div class="doc-examples"></div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-responses">
<div class="prop-row prop-group">
<div class="prop-name">
<div class="prop-title">200 OK</div>
<div class="prop-ref">
<span class="">
<a class="json-schema-ref" href="#/definitions/Charge">Charge</a>
</span>
</div>
<!-- <span class="swagger-global"></span> <span class="json-schema-reference"><a href=""></a></span> -->
</div>
<div class="prop-value">
<p>Success.</p>
</div>
</div>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Response Example
<span>(200 OK)</span>
</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"cha_xxxxxxxx"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"https://microzeny.com/charges/cha_xxxxxxxx"</span>,
<span class="hljs-attr">"expired_at"</span>: <span class="hljs-string">"2018-07-01 00:00:00"</span>,
<span class="hljs-attr">"status"</span>: <span class="hljs-string">"waiting"</span>,
<span class="hljs-attr">"amount"</span>: <span class="hljs-string">"1.00000000"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
<div class="doc-row">
<div class="doc-copy">
<section class="swagger-request-security">
<table class="table">
<thead>
<tr>
<th class="swagger-request-security-schema"></th>
<th class="swagger-request-security-scopes"></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#security-definition-microzeny_oauth">microzeny_oauth</a>
</td>
<td>
<a href="#security-definition-scope-charge_payment">charge_payment</a>
</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
</div>
<h1 id="tag-DirectPayment" class="swagger-summary-tag" data-traverse-target="tag-DirectPayment">DirectPayment</h1>
<div class="tag-description doc-row">
<div class="doc-copy">
<p>microzenyのデフォルトのウォレットから直接支払う方法</p>
</div>
</div>
<h1>Schema Definitions</h1>
<div id="definition-Account" class="definition panel" data-traverse-target="definition-Account">
<h2 class="panel-title">
<a name="/definitions/Account"></a>Account: object
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
</span> -->
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="json-schema-properties">
<dl>
<dt data-property-name="id" class="has-description">
<span class="json-property-name">id:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>アカウントのID</p>
</dd>
<dt data-property-name="name" class="has-description">
<span class="json-property-name">name:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>アカウントの名前</p>
</dd>
<dt data-property-name="profile" class="has-description">
<span class="json-property-name">profile:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>プロフィール文</p>
</dd>
<dt data-property-name="profile_image_url" class="has-description">
<span class="json-property-name">profile_image_url:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>プロフィール画像のURL</p>
</dd>
</dl>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"acc_xxxxxxxxxx"</span>,
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"@microzeny"</span>,
<span class="hljs-attr">"profile"</span>: <span class="hljs-string">"microzenyは仮想通貨BitZenyのための決済ポータルサービスです。たくさんのfaucetや誰でも簡単にfaucetを開設できる機能を提供しています。"</span>,
<span class="hljs-attr">"profile_image_url"</span>: <span class="hljs-string">"https://pbs.twimg.com/profile_images/968861259843031041/BuA1G1WV.jpg"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div id="definition-Balance" class="definition panel" data-traverse-target="definition-Balance">
<h2 class="panel-title">
<a name="/definitions/Balance"></a>Balance: object
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
</span> -->
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="json-schema-properties">
<dl>
<dt data-property-name="balance" class="has-description">
<span class="json-property-name">balance:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>残高の1/100μZNY表記。必ず整数。</p>
</dd>
<dt data-property-name="balance_bitzeny" class="has-description">
<span class="json-property-name">balance_bitzeny:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>残高のZNY表記。小数点以下は最長で8桁。計算を行う際はDecimalとして取り扱う必要があります。</p>
</dd>
</dl>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"balance"</span>: <span class="hljs-string">"100000000"</span>,
<span class="hljs-attr">"balance_bitzeny"</span>: <span class="hljs-string">"1.00000000"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div id="definition-Charge" class="definition panel" data-traverse-target="definition-Charge">
<h2 class="panel-title">
<a name="/definitions/Charge"></a>Charge: object
<!-- <span class="json-property-type"><span class="json-property-type">object</span>
<span class="json-property-range" title="Value limits"></span>
</span> -->
</h2>
<div class="doc-row">
<div class="doc-copy">
<section class="json-schema-properties">
<dl>
<dt data-property-name="id" class="has-description">
<span class="json-property-name">id:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>チャージのID</p>
</dd>
<dt data-property-name="url" class="has-description">
<span class="json-property-name">url:</span>
<span class="json-property-type">string</span>
<span class="json-property-format">(url)</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>チャージを行うためのURL</p>
</dd>
<dt data-property-name="expired_at" class="has-description">
<span class="json-property-name">expired_at:</span>
<span class="json-property-type">string</span>
<span class="json-property-format">(datetime)</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>チャージ可能な期限</p>
</dd>
<dt data-property-name="status" class="has-description">
<span class="json-property-name">status:</span>
<span class="json-property-type">string</span>
<span class="json-property-enum" title="Possible values">
<span class="json-property-enum-item">waiting</span>,
<span class="json-property-enum-item">charged</span>,
<span class="json-property-enum-item">canceled</span>,
<span class="json-property-enum-item">expired</span>
</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>チャージの状態</p>
</dd>
<dt data-property-name="amount" class="has-description">
<span class="json-property-name">amount:</span>
<span class="json-property-type">string</span>
<span class="json-property-range" title="Value limits"></span>
</dt>
<dd>
<p>チャージ金額。単位はZNYで小数点以下は最長で8桁。計算を行う際はDecimalとして取り扱う必要があります。</p>
</dd>
</dl>
</section>
</div>
<div class="doc-examples">
<section>
<h5>Example</h5>
<!-- <div class="hljs"> --><pre><code class="hljs lang-json">{
<span class="hljs-attr">"id"</span>: <span class="hljs-string">"cha_xxxxxxxx"</span>,
<span class="hljs-attr">"url"</span>: <span class="hljs-string">"https://microzeny.com/charges/cha_xxxxxxxx"</span>,
<span class="hljs-attr">"expired_at"</span>: <span class="hljs-string">"2018-07-01 00:00:00"</span>,
<span class="hljs-attr">"status"</span>: <span class="hljs-string">"waiting"</span>,
<span class="hljs-attr">"amount"</span>: <span class="hljs-string">"1.00000000"</span>
}
</code></pre>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div class="doc-row no-margin">
<div class="doc-copy doc-separator">
<a class="powered-by" href="https://sourcey.com/spectacle">Documentation by
<span>Spectacle</span>
</a>
</div>
</div>
</article>
</div>
</div>
</body>
</html>