1 | <!DOCTYPE html>
|
2 |
|
3 | <html lang="en">
|
4 | <head>
|
5 | <meta charset="utf-8">
|
6 | <meta name="viewport" content="width=device-width">
|
7 | <title>Documentation Namespace: commerce</title>
|
8 |
|
9 | |
10 |
|
11 |
|
12 | <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
|
13 |
|
14 | <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
|
15 |
|
16 | </head>
|
17 |
|
18 | <body>
|
19 |
|
20 | <div class="navbar navbar-default navbar-fixed-top ">
|
21 | <div class="container">
|
22 | <div class="navbar-header">
|
23 | <a class="navbar-brand" href="index.html">Documentation</a>
|
24 | <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
|
25 | <span class="icon-bar"></span>
|
26 | <span class="icon-bar"></span>
|
27 | <span class="icon-bar"></span>
|
28 | </button>
|
29 | </div>
|
30 | <div class="navbar-collapse collapse" id="topNavigation">
|
31 | <ul class="nav navbar-nav">
|
32 |
|
33 | <li class="dropdown">
|
34 | <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
|
35 | <ul class="dropdown-menu ">
|
36 | <li><a href="faker.html">faker</a></li><li><a href="faker.address.html">faker.address</a></li><li><a href="faker.commerce.html">faker.commerce</a></li><li><a href="faker.company.html">faker.company</a></li><li><a href="faker.date.html">faker.date</a></li><li><a href="faker.finance.html">faker.finance</a></li><li><a href="faker.hacker.html">faker.hacker</a></li><li><a href="faker.helpers.html">faker.helpers</a></li><li><a href="faker.image.html">faker.image</a></li><li><a href="faker.internet.html">faker.internet</a></li><li><a href="faker.lorem.html">faker.lorem</a></li><li><a href="faker.name.html">faker.name</a></li><li><a href="faker.phone.html">faker.phone</a></li><li><a href="faker.random.html">faker.random</a></li><li><a href="faker.system.html">faker.system</a></li>
|
37 | </ul>
|
38 | </li>
|
39 |
|
40 | </ul>
|
41 | <div class="col-sm-3 col-md-3">
|
42 | <form class="navbar-form" role="search">
|
43 | <div class="input-group">
|
44 | <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
|
45 | <div class="input-group-btn">
|
46 | <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
|
47 | </div>
|
48 | </div>
|
49 | </form>
|
50 | </div>
|
51 | </div>
|
52 |
|
53 | </div>
|
54 | </div>
|
55 |
|
56 |
|
57 | <div class="container" id="toc-content">
|
58 | <div class="row">
|
59 |
|
60 |
|
61 | <div class="col-md-8">
|
62 |
|
63 | <div id="main">
|
64 |
|
65 |
|
66 | <h1 class="page-title">Namespace: commerce</h1>
|
67 | <section>
|
68 |
|
69 | <header>
|
70 |
|
71 | <h2>
|
72 | <span class="ancestors"><a href="faker.html">faker</a>.</span>
|
73 |
|
74 | commerce
|
75 | </h2>
|
76 |
|
77 |
|
78 | </header>
|
79 |
|
80 |
|
81 | <article>
|
82 | <div class="container-overview">
|
83 |
|
84 |
|
85 |
|
86 |
|
87 | <dl class="details">
|
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 | </dl>
|
124 |
|
125 |
|
126 |
|
127 |
|
128 | </div>
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 | <h3 class="subsection-title">Methods</h3>
|
144 |
|
145 | <dl>
|
146 |
|
147 | <hr>
|
148 | <dt>
|
149 | <h4 class="name" id=".color"><span class="type-signature"><static> </span>color()</h4>
|
150 |
|
151 |
|
152 | </dt>
|
153 | <dd>
|
154 |
|
155 |
|
156 | <div class="description">
|
157 | <p>color</p>
|
158 | </div>
|
159 |
|
160 |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 |
|
166 |
|
167 |
|
168 |
|
169 | <dl class="details">
|
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 | </dl>
|
206 |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 | </dd>
|
222 |
|
223 |
|
224 |
|
225 | <hr>
|
226 | <dt>
|
227 | <h4 class="name" id=".department"><span class="type-signature"><static> </span>department(max, fixedAmount)</h4>
|
228 |
|
229 |
|
230 | </dt>
|
231 | <dd>
|
232 |
|
233 |
|
234 | <div class="description">
|
235 | <p>department</p>
|
236 | </div>
|
237 |
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 | <h5>Parameters:</h5>
|
246 |
|
247 |
|
248 | <table class="params table table-striped">
|
249 | <thead>
|
250 | <tr>
|
251 |
|
252 | <th>Name</th>
|
253 |
|
254 |
|
255 | <th>Type</th>
|
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 | <th class="last">Description</th>
|
262 | </tr>
|
263 | </thead>
|
264 |
|
265 | <tbody>
|
266 |
|
267 |
|
268 | <tr>
|
269 |
|
270 | <td class="name"><code>max</code></td>
|
271 |
|
272 |
|
273 | <td class="type">
|
274 |
|
275 |
|
276 | <span class="param-type">number</span>
|
277 |
|
278 |
|
279 |
|
280 |
|
281 | </td>
|
282 |
|
283 |
|
284 |
|
285 |
|
286 |
|
287 | <td class="description last"></td>
|
288 | </tr>
|
289 |
|
290 |
|
291 |
|
292 | <tr>
|
293 |
|
294 | <td class="name"><code>fixedAmount</code></td>
|
295 |
|
296 |
|
297 | <td class="type">
|
298 |
|
299 |
|
300 | <span class="param-type">number</span>
|
301 |
|
302 |
|
303 |
|
304 |
|
305 | </td>
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 | <td class="description last"></td>
|
312 | </tr>
|
313 |
|
314 |
|
315 | </tbody>
|
316 | </table>
|
317 |
|
318 |
|
319 |
|
320 |
|
321 | <dl class="details">
|
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 | </dl>
|
358 |
|
359 |
|
360 |
|
361 |
|
362 |
|
363 |
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 |
|
372 |
|
373 | </dd>
|
374 |
|
375 |
|
376 |
|
377 | <hr>
|
378 | <dt>
|
379 | <h4 class="name" id=".price"><span class="type-signature"><static> </span>price(min, max, dec, symbol)</h4>
|
380 |
|
381 |
|
382 | </dt>
|
383 | <dd>
|
384 |
|
385 |
|
386 | <div class="description">
|
387 | <p>price</p>
|
388 | </div>
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 |
|
395 |
|
396 |
|
397 | <h5>Parameters:</h5>
|
398 |
|
399 |
|
400 | <table class="params table table-striped">
|
401 | <thead>
|
402 | <tr>
|
403 |
|
404 | <th>Name</th>
|
405 |
|
406 |
|
407 | <th>Type</th>
|
408 |
|
409 |
|
410 |
|
411 |
|
412 |
|
413 | <th class="last">Description</th>
|
414 | </tr>
|
415 | </thead>
|
416 |
|
417 | <tbody>
|
418 |
|
419 |
|
420 | <tr>
|
421 |
|
422 | <td class="name"><code>min</code></td>
|
423 |
|
424 |
|
425 | <td class="type">
|
426 |
|
427 |
|
428 | <span class="param-type">number</span>
|
429 |
|
430 |
|
431 |
|
432 |
|
433 | </td>
|
434 |
|
435 |
|
436 |
|
437 |
|
438 |
|
439 | <td class="description last"></td>
|
440 | </tr>
|
441 |
|
442 |
|
443 |
|
444 | <tr>
|
445 |
|
446 | <td class="name"><code>max</code></td>
|
447 |
|
448 |
|
449 | <td class="type">
|
450 |
|
451 |
|
452 | <span class="param-type">number</span>
|
453 |
|
454 |
|
455 |
|
456 |
|
457 | </td>
|
458 |
|
459 |
|
460 |
|
461 |
|
462 |
|
463 | <td class="description last"></td>
|
464 | </tr>
|
465 |
|
466 |
|
467 |
|
468 | <tr>
|
469 |
|
470 | <td class="name"><code>dec</code></td>
|
471 |
|
472 |
|
473 | <td class="type">
|
474 |
|
475 |
|
476 | <span class="param-type">number</span>
|
477 |
|
478 |
|
479 |
|
480 |
|
481 | </td>
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 | <td class="description last"></td>
|
488 | </tr>
|
489 |
|
490 |
|
491 |
|
492 | <tr>
|
493 |
|
494 | <td class="name"><code>symbol</code></td>
|
495 |
|
496 |
|
497 | <td class="type">
|
498 |
|
499 |
|
500 | <span class="param-type">string</span>
|
501 |
|
502 |
|
503 |
|
504 |
|
505 | </td>
|
506 |
|
507 |
|
508 |
|
509 |
|
510 |
|
511 | <td class="description last"></td>
|
512 | </tr>
|
513 |
|
514 |
|
515 | </tbody>
|
516 | </table>
|
517 |
|
518 |
|
519 |
|
520 |
|
521 | <dl class="details">
|
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 | </dl>
|
558 |
|
559 |
|
560 |
|
561 |
|
562 |
|
563 |
|
564 |
|
565 |
|
566 |
|
567 |
|
568 |
|
569 |
|
570 |
|
571 |
|
572 |
|
573 | </dd>
|
574 |
|
575 |
|
576 |
|
577 | <hr>
|
578 | <dt>
|
579 | <h4 class="name" id=".product"><span class="type-signature"><static> </span>product()</h4>
|
580 |
|
581 |
|
582 | </dt>
|
583 | <dd>
|
584 |
|
585 |
|
586 | <div class="description">
|
587 | <p>product</p>
|
588 | </div>
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |
|
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 | <dl class="details">
|
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 | </dl>
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 |
|
650 |
|
651 | </dd>
|
652 |
|
653 |
|
654 |
|
655 | <hr>
|
656 | <dt>
|
657 | <h4 class="name" id=".productAdjective"><span class="type-signature"><static> </span>productAdjective()</h4>
|
658 |
|
659 |
|
660 | </dt>
|
661 | <dd>
|
662 |
|
663 |
|
664 | <div class="description">
|
665 | <p>productAdjective</p>
|
666 | </div>
|
667 |
|
668 |
|
669 |
|
670 |
|
671 |
|
672 |
|
673 |
|
674 |
|
675 |
|
676 |
|
677 | <dl class="details">
|
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 | </dl>
|
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 |
|
720 |
|
721 |
|
722 |
|
723 |
|
724 |
|
725 |
|
726 |
|
727 |
|
728 |
|
729 | </dd>
|
730 |
|
731 |
|
732 |
|
733 | <hr>
|
734 | <dt>
|
735 | <h4 class="name" id=".productMaterial"><span class="type-signature"><static> </span>productMaterial()</h4>
|
736 |
|
737 |
|
738 | </dt>
|
739 | <dd>
|
740 |
|
741 |
|
742 | <div class="description">
|
743 | <p>productMaterial</p>
|
744 | </div>
|
745 |
|
746 |
|
747 |
|
748 |
|
749 |
|
750 |
|
751 |
|
752 |
|
753 |
|
754 |
|
755 | <dl class="details">
|
756 |
|
757 |
|
758 |
|
759 |
|
760 |
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 |
|
776 |
|
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 |
|
784 |
|
785 |
|
786 |
|
787 |
|
788 |
|
789 |
|
790 |
|
791 | </dl>
|
792 |
|
793 |
|
794 |
|
795 |
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 |
|
807 | </dd>
|
808 |
|
809 |
|
810 |
|
811 | <hr>
|
812 | <dt>
|
813 | <h4 class="name" id=".productName"><span class="type-signature"><static> </span>productName()</h4>
|
814 |
|
815 |
|
816 | </dt>
|
817 | <dd>
|
818 |
|
819 |
|
820 | <div class="description">
|
821 | <p>productName</p>
|
822 | </div>
|
823 |
|
824 |
|
825 |
|
826 |
|
827 |
|
828 |
|
829 |
|
830 |
|
831 |
|
832 |
|
833 | <dl class="details">
|
834 |
|
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 |
|
862 |
|
863 |
|
864 |
|
865 |
|
866 |
|
867 |
|
868 |
|
869 | </dl>
|
870 |
|
871 |
|
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 |
|
883 |
|
884 |
|
885 | </dd>
|
886 |
|
887 | </dl>
|
888 |
|
889 |
|
890 |
|
891 |
|
892 |
|
893 | </article>
|
894 |
|
895 | </section>
|
896 |
|
897 |
|
898 |
|
899 |
|
900 | </div>
|
901 | </div>
|
902 |
|
903 | <div class="clearfix"></div>
|
904 |
|
905 |
|
906 | <div class="col-md-3">
|
907 | <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
|
908 | </div>
|
909 |
|
910 |
|
911 | </div>
|
912 | </div>
|
913 |
|
914 | <div class="modal fade" id="searchResults">
|
915 | <div class="modal-dialog">
|
916 | <div class="modal-content">
|
917 | <div class="modal-header">
|
918 | <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
919 | <h4 class="modal-title">Search results</h4>
|
920 | </div>
|
921 | <div class="modal-body"></div>
|
922 | <div class="modal-footer">
|
923 | <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
924 | </div>
|
925 | </div>
|
926 | </div>
|
927 | </div>
|
928 |
|
929 | <footer>
|
930 |
|
931 |
|
932 | <span class="jsdoc-message">
|
933 | Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
|
934 |
|
935 | on 2016-03-19T23:15:39-04:00
|
936 |
|
937 | using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
|
938 | </span>
|
939 | </footer>
|
940 |
|
941 | <script src="scripts/docstrap.lib.js"></script>
|
942 | <script src="scripts/toc.js"></script>
|
943 | <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
|
944 |
|
945 | <script>
|
946 | $( function () {
|
947 | $( "[id*='$']" ).each( function () {
|
948 | var $this = $( this );
|
949 |
|
950 | $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
|
951 | } );
|
952 |
|
953 | $( ".tutorial-section pre, .readme-section pre" ).each( function () {
|
954 | var $this = $( this );
|
955 |
|
956 | var example = $this.find( "code" );
|
957 | exampleText = example.html();
|
958 | var lang = /{@lang (.*?)}/.exec( exampleText );
|
959 | if ( lang && lang[1] ) {
|
960 | exampleText = exampleText.replace( lang[0], "" );
|
961 | example.html( exampleText );
|
962 | lang = lang[1];
|
963 | } else {
|
964 | var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
|
965 | lang = langClassMatch ? langClassMatch[1] : "javascript";
|
966 | }
|
967 |
|
968 | if ( lang ) {
|
969 |
|
970 | $this
|
971 | .addClass( "sunlight-highlight-" + lang )
|
972 | .addClass( "linenums" )
|
973 | .html( example.html() );
|
974 |
|
975 | }
|
976 | } );
|
977 |
|
978 | Sunlight.highlightAll( {
|
979 | lineNumbers : false,
|
980 | showMenu : true,
|
981 | enableDoclinks : true
|
982 | } );
|
983 |
|
984 | $.catchAnchorLinks( {
|
985 | navbarOffset: 10
|
986 | } );
|
987 | $( "#toc" ).toc( {
|
988 | anchorName : function ( i, heading, prefix ) {
|
989 | var id = $( heading ).attr( "id" );
|
990 | return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
|
991 | },
|
992 | selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
|
993 | showAndHide : false,
|
994 | smoothScrolling: true
|
995 | } );
|
996 |
|
997 | $( "#main span[id^='toc']" ).addClass( "toc-shim" );
|
998 | $( '.dropdown-toggle' ).dropdown();
|
999 |
|
1000 | $( "table" ).each( function () {
|
1001 | var $this = $( this );
|
1002 | $this.addClass('table');
|
1003 | } );
|
1004 |
|
1005 | } );
|
1006 | </script>
|
1007 |
|
1008 |
|
1009 |
|
1010 |
|
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 | <script type="text/javascript">
|
1017 | $(document).ready(function() {
|
1018 | SearcherDisplay.init();
|
1019 | });
|
1020 | </script>
|
1021 |
|
1022 | </body>
|
1023 | </html> |
\ | No newline at end of file |