Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/public_html/vendor/razorpay/razorpay/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/public_html/vendor/razorpay/razorpay/src/Stakeholder.php
<?php

namespace Razorpay\Api;

class Stakeholder extends Entity
{
    public function create($attributes = array())
    {
        $url = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl();     
        
        return $this->request('POST', $url, $attributes, 'v2');
    }

    public function fetch($id)
    {
        $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id;

        return $this->request('GET', $entityUrl, null, 'v2');
    }

    public function all($options = array())
    {
        $relativeUrl = 'accounts/'.$this->account_id.'/'.$this->getEntityUrl();

        return $this->request('GET', $relativeUrl, $options, 'v2');
    }

    public function edit($id, $attributes = array())
    {
        $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id;

        return $this->request('PATCH', $entityUrl, $attributes, 'v2');
    }

    public function uploadStakeholderDoc($id, $attributes = array())
    {
      $attributes = $this->setFile($attributes);

      $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id.'/documents';
      
      return $this->request('POST', $entityUrl, $attributes, 'v2');
    }

    public function fetchStakeholderDoc($id)
    {
        $entityUrl = 'accounts/'.$this->account_id .'/'.$this->getEntityUrl().'/'.$id.'/documents';

        return $this->request('GET', $entityUrl, null, 'v2');
    }
}

Spamworldpro Mini