Skip to content

Commit a9358ba

Browse files
author
Steeven Andrian
committed
update daftar kurir pro
1 parent 9693d1b commit a9358ba

1 file changed

Lines changed: 33 additions & 29 deletions

File tree

src/Rajaongkir.php

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ class Rajaongkir
131131
'first',
132132
'ncs',
133133
'star',
134+
'lion',
135+
'ninja-express',
136+
'idl',
137+
'rex',
134138
],
135139
];
136140

@@ -241,7 +245,7 @@ public function __construct($apiKey = null, $accountType = null)
241245
*
242246
* Set Rajaongkir API Key.
243247
*
244-
* @param string $apiKey Rajaongkir API Key
248+
* @param string $apiKey Rajaongkir API Key
245249
*
246250
* @access public
247251
* @return static
@@ -260,7 +264,7 @@ public function setApiKey($apiKey)
260264
*
261265
* Set Rajaongkir account type.
262266
*
263-
* @param string $accountType RajaOngkir Account Type, can be starter, basic or pro
267+
* @param string $accountType RajaOngkir Account Type, can be starter, basic or pro
264268
*
265269
* @access public
266270
* @return static
@@ -399,7 +403,7 @@ public function getProvinces()
399403
*
400404
* Get detail of single province.
401405
*
402-
* @param int $idProvince Province ID
406+
* @param int $idProvince Province ID
403407
*
404408
* @access public
405409
* @return array|bool Returns FALSE if failed.
@@ -416,7 +420,7 @@ public function getProvince($idProvince)
416420
*
417421
* Get list of province cities.
418422
*
419-
* @param int $idProvince Province ID
423+
* @param int $idProvince Province ID
420424
*
421425
* @access public
422426
* @return array|bool Returns FALSE if failed.
@@ -439,7 +443,7 @@ public function getCities($idProvince = null)
439443
*
440444
* Get detail of single city.
441445
*
442-
* @param int $idCity City ID
446+
* @param int $idCity City ID
443447
*
444448
* @access public
445449
* @return array|bool Returns FALSE if failed.
@@ -456,7 +460,7 @@ public function getCity($idCity)
456460
*
457461
* Get list of city subdisctricts.
458462
*
459-
* @param int $idCity City ID
463+
* @param int $idCity City ID
460464
*
461465
* @access public
462466
* @return array|bool Returns FALSE if failed.
@@ -483,7 +487,7 @@ public function getSubdistricts($idCity)
483487
*
484488
* Get detail of single subdistrict.
485489
*
486-
* @param int $idSubdistrict Subdistrict ID
490+
* @param int $idSubdistrict Subdistrict ID
487491
*
488492
* @access public
489493
* @return array|bool Returns FALSE if failed.
@@ -510,7 +514,7 @@ public function getSubdistrict($idSubdistrict)
510514
*
511515
* Get list of supported international origins.
512516
*
513-
* @param int $idProvince Province ID
517+
* @param int $idProvince Province ID
514518
*
515519
* @access public
516520
* @return array|bool Returns FALSE if failed.
@@ -539,8 +543,8 @@ public function getInternationalOrigins($idProvince = null)
539543
*
540544
* Get list of supported international origins by city and province.
541545
*
542-
* @param int $idCity City ID
543-
* @param int $idProvince Province ID
546+
* @param int $idCity City ID
547+
* @param int $idProvince Province ID
544548
*
545549
* @access public
546550
* @return array|bool Returns FALSE if failed.
@@ -571,7 +575,7 @@ public function getInternationalOrigin($idCity = null, $idProvince = null)
571575
*
572576
* Get list of international destinations.
573577
*
574-
* @param int $id_country Country ID
578+
* @param int $id_country Country ID
575579
*
576580
* @access public
577581
* @return array|bool Returns FALSE if failed.
@@ -594,7 +598,7 @@ public function getInternationalDestinations()
594598
*
595599
* Get International Destination
596600
*
597-
* @param int $idCountry Country ID
601+
* @param int $idCountry Country ID
598602
*
599603
* @access public
600604
* @return array|bool Returns FALSE if failed.
@@ -623,16 +627,6 @@ public function getInternationalDestination($idCountry = null)
623627
*
624628
* Get cost calculation.
625629
*
626-
* @example
627-
* $rajaongkir->getCost(
628-
* ['city' => 1],
629-
* ['subdistrict' => 12],
630-
* ['weight' => 100, 'length' => 100, 'width' => 100, 'height' => 100, 'diameter' => 100],
631-
* 'jne'
632-
* );
633-
*
634-
* @see http://rajaongkir.com/dokumentasi/pro
635-
*
636630
* @param array $origin City, District or Subdistrict Origin
637631
* @param array $destination City, District or Subdistrict Destination
638632
* @param array $metrics Array of Specification
@@ -645,6 +639,16 @@ public function getInternationalDestination($idCountry = null)
645639
*
646640
* @access public
647641
* @return array|bool Returns FALSE if failed.
642+
* @see http://rajaongkir.com/dokumentasi/pro
643+
*
644+
* @example
645+
* $rajaongkir->getCost(
646+
* ['city' => 1],
647+
* ['subdistrict' => 12],
648+
* ['weight' => 100, 'length' => 100, 'width' => 100, 'height' => 100, 'diameter' => 100],
649+
* 'jne'
650+
* );
651+
*
648652
*/
649653
public function getCost(array $origin, array $destination, $metrics, $courier)
650654
{
@@ -770,8 +774,8 @@ public function getCost(array $origin, array $destination, $metrics, $courier)
770774
*
771775
* Get detail of waybill.
772776
*
773-
* @param int $idWaybill Receipt ID
774-
* @param null|string $courier Courier Code
777+
* @param int $idWaybill Receipt ID
778+
* @param null|string $courier Courier Code
775779
*
776780
* @access public
777781
* @return array|bool Returns FALSE if failed.
@@ -823,8 +827,8 @@ public function getCurrency()
823827
*/
824828
public function getSupportedCouriers()
825829
{
826-
if(isset($this->supportedCouriers[$this->accountType])) {
827-
return $this->supportedCouriers[$this->accountType];
830+
if (isset($this->supportedCouriers[ $this->accountType ])) {
831+
return $this->supportedCouriers[ $this->accountType ];
828832
}
829833

830834
return false;
@@ -841,8 +845,8 @@ public function getSupportedCouriers()
841845
*/
842846
public function getSupportedWayBills()
843847
{
844-
if(isset($this->supportedWayBills[$this->accountType])) {
845-
return $this->supportedWayBills[$this->accountType];
848+
if (isset($this->supportedWayBills[ $this->accountType ])) {
849+
return $this->supportedWayBills[ $this->accountType ];
846850
}
847851

848852
return false;
@@ -855,7 +859,7 @@ public function getSupportedWayBills()
855859
*
856860
* Get original response object.
857861
*
858-
* @param string $offset Response Offset Object
862+
* @param string $offset Response Offset Object
859863
*
860864
* @access public
861865
* @return \O2System\Curl\Response|bool Returns FALSE if failed.

0 commit comments

Comments
 (0)