@@ -488,6 +488,9 @@ discard block |
||
488 | 488 | return $invoice->get_description(); |
489 | 489 | } |
490 | 490 | |
491 | +/** |
|
492 | + * @return string |
|
493 | + */ |
|
491 | 494 | function wpinv_get_invoice_currency_code( $invoice_id = 0 ) { |
492 | 495 | $invoice = new WPInv_Invoice( $invoice_id ); |
493 | 496 | return $invoice->get_currency(); |
@@ -521,6 +524,9 @@ discard block |
||
521 | 524 | return $invoice->get_gateway_title(); |
522 | 525 | } |
523 | 526 | |
527 | +/** |
|
528 | + * @return string |
|
529 | + */ |
|
524 | 530 | function wpinv_get_payment_transaction_id( $invoice_id ) { |
525 | 531 | $invoice = new WPInv_Invoice( $invoice_id ); |
526 | 532 | |
@@ -616,6 +622,9 @@ discard block |
||
616 | 622 | return $invoice->get_total( $currency ); |
617 | 623 | } |
618 | 624 | |
625 | +/** |
|
626 | + * @return string |
|
627 | + */ |
|
619 | 628 | function wpinv_get_date_created( $invoice_id = 0, $format = '' ) { |
620 | 629 | $invoice = new WPInv_Invoice( $invoice_id ); |
621 | 630 | |
@@ -626,6 +635,9 @@ discard block |
||
626 | 635 | return $date_created; |
627 | 636 | } |
628 | 637 | |
638 | +/** |
|
639 | + * @return string |
|
640 | + */ |
|
629 | 641 | function wpinv_get_invoice_date( $invoice_id = 0, $format = '', $default = true ) { |
630 | 642 | $invoice = new WPInv_Invoice( $invoice_id ); |
631 | 643 |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * Retrieves the transaction ID from the subscription |
371 | 371 | * |
372 | 372 | * @since 1.0.0 |
373 | - * @return bool |
|
373 | + * @return string |
|
374 | 374 | */ |
375 | 375 | public function get_transaction_id() { |
376 | 376 | |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * Stores the transaction ID for the subscription purchase |
393 | 393 | * |
394 | 394 | * @since 1.0.0.4 |
395 | - * @return bool |
|
395 | + * @return boolean|null |
|
396 | 396 | */ |
397 | 397 | public function set_transaction_id( $txn_id = '' ) { |
398 | 398 | $this->update( array( 'transaction_id' => $txn_id ) ); |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * Renews a subscription |
404 | 404 | * |
405 | 405 | * @since 1.0.0 |
406 | - * @return bool |
|
406 | + * @return boolean|null |
|
407 | 407 | */ |
408 | 408 | public function renew() { |
409 | 409 | |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | * |
493 | 493 | * @since 1.0.0 |
494 | 494 | * @param $check_expiration bool True if expiration date should be checked with merchant processor before expiring |
495 | - * @return void |
|
495 | + * @return false|null |
|
496 | 496 | */ |
497 | 497 | public function expire( $check_expiration = false ) { |
498 | 498 | |
@@ -744,7 +744,7 @@ discard block |
||
744 | 744 | * Retrieves the subscription status |
745 | 745 | * |
746 | 746 | * @since 1.0.0 |
747 | - * @return int |
|
747 | + * @return string |
|
748 | 748 | */ |
749 | 749 | public function get_status() { |
750 | 750 |
@@ -648,6 +648,9 @@ |
||
648 | 648 | } |
649 | 649 | add_filter( 'wpinv_enabled_payment_gateways', 'wpinv_check_authorizenet_currency_support', 10, 1 ); |
650 | 650 | |
651 | +/** |
|
652 | + * @param WPInv_Invoice $invoice |
|
653 | + */ |
|
651 | 654 | function wpinv_authorizenet_link_transaction_id( $transaction_id, $invoice_id, $invoice ) { |
652 | 655 | if ( $transaction_id == $invoice_id ) { |
653 | 656 | $link = $transaction_id; |
@@ -757,6 +757,9 @@ |
||
757 | 757 | } |
758 | 758 | add_filter( 'wpinv_payment_get_transaction_id-paypal', 'wpinv_paypal_get_transaction_id', 10, 1 ); |
759 | 759 | |
760 | +/** |
|
761 | + * @param WPInv_Invoice $invoice |
|
762 | + */ |
|
760 | 763 | function wpinv_paypal_link_transaction_id( $transaction_id, $invoice_id, $invoice ) { |
761 | 764 | if ( $transaction_id == $invoice_id ) { |
762 | 765 | $transaction_link = $transaction_id; |