https://github.com/paylike/api-docs#update-a-merchant
@param $merchant_id
@param $args

@return void
485313
public function update($merchant_id, $args)
    {
        $url = 'merchants/' . $merchant_id;

        $this->paylike->client->request('PUT', $url, $args);
    }
1070062
@Override
  public void _LocalPeer_setVendorId(long vendorId) throws MBeanException {
    // validate vendor-id
    try {
      getMutableConfiguration().setLongValue(OwnVendorID.ordinal(), vendorId);
      if (logger.isInfoEnabled()) {
        logger.info("Local Peer Vendor-Id successfully changed to '" + vendorId + "'. Restart to Diameter stack is needed to apply changes.");
      }
    }
    catch (NumberFormatException nfe) {
      throw new MBeanException(nfe);
    }
  }
584776
public function delete($id, $args = [])
    {
        $wpcli_args = buildCLIArgs(
            ['force'],
            $args
        );

        array_unshift($wpcli_args, $id);

        $this->drivers->getDriver()->wpcli('comment', 'delete', $wpcli_args);
    }
208360
public function PaymentOrderDetailByMerchant($merchantOrderId, array $addElements = array())
    {
        $request = new Request();
        $request->setMethod('GET');

        if (null == $merchantOrderId) {
            throw new InvalidArgumentException('merchantOrderId');
        }

        $qs = array(
            'MerchantOrderId' => $merchantOrderId,
            'MerchantId'      => $this->options['merchantId']
        );

        if ($addElements) {
            $qs['AddElements'] = implode(',', $addElements);
        }

        return $this->doRequest('PaymentOrder/Detail', $request, $qs)->getContentJson();
    }
320683
public function delete($merchantId, $datafeedId, $optParams = array())
  {
    $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }
966039
protected function _update( $args, $assoc_args, $callback ) {
		$status = 0;

		if ( empty( $assoc_args ) ) {
			WP_CLI::error( 'Need some fields to update.' );
		}

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( true );
		}

		foreach ( $args as $obj_id ) {
			$params = array_merge( $assoc_args, [ $this->obj_id_key => $obj_id ] );

			$status = $this->success_or_failure(
				$this->wp_error_to_resp(
					$callback( $params ),
					"Updated {$this->obj_type} {$obj_id}."
				)
			);
		}

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( false );
		}

		exit( $status );
	}
265931
public function afterUpdate(array &$args) {
        foreach ($this->_affectedRows as $row) {
            foreach ($this->_newValues as $key => $value) {
                // compare the old and new values
                if ($row->$key != $value) {
                    $this->_deleteFile($row->$key);
                }
            }
        }
    }
1034947
public function afterUpdate(&$args) {
        $model      = $args[0];
        $where      = $args[3];

        $primaryKey = $model->extractPrimaryKey($where);
        $id         = $primaryKey['id'];

        $this->afterSave($model, $id);
    }
143793
public function send_mail( $mail_id, $arguments = [] ) {
		$mailers = WC()->mailer()->get_emails();
		foreach ( $mailers as $mailer ) {
			/* @var \WC_Email $mailer */
			if ( $mail_id == $mailer->id ) {
				if ( $arguments ) {
					call_user_func_array( [ $mailer, 'trigger' ], $arguments );
				} else {
					$mailer->trigger();
				}
			}
		}
	}
925348
private function updateHijriDate($arYear, $arMonth, $arDay)
    {
        $this->arYear = $arYear;
        $this->arMonth = $arMonth;
        $this->arDay = $arDay;
    }
808302
public static function add_section( $id, $args ) {
		$args['id'] = $id;
		if ( ! isset( $args['description'] ) ) {
			$args['description'] = '';
		}
		if ( ! isset( $args['priority'] ) ) {
			$args['priority'] = 10;
		}
		if ( ! isset( $args['type'] ) ) {
			$args['type'] = 'default';
		}
		if ( false === strpos( $args['type'], 'kirki-' ) ) {
			$args['type'] = 'kirki-' . $args['type'];
		}

		self::$sections[ $id ] = $args;
	}
278536
public function beforeUpdate(array &$args) {
        $data = &$args[1];
        $data[$this->_fields['modifiedField']] = date(self::DATE_FORMAT);
    }
894222
public function update(int $merchantId, array $info = [])
    {
        $params = [
            'info' => array_merge(['merchant_id' => $merchantId],
                Arr::only($info, [
                    'brand_name',
                    'logo_url',
                    'protocol',
                    'end_time',
                    'primary_category_id',
                    'secondary_category_id',
                    'agreement_media_id',
                    'operator_media_id',
                    'app_id',
                ])),
        ];

        return $this->httpPostJson('card/submerchant/update', $params);
    }
355431
public function handle(Args $args, IO $io)
    {
        $updateStrategy = new PuliStrategy();
        $updateStrategy->setStability($this->getStability($args));

        // false: disable signed releases, otherwise the updater will look for
        // a *.pubkey file for the PHAR
        $updater = new Updater(null, false);
        $updater->setStrategyObject($updateStrategy);

        if ($updater->update()) {
            $io->writeLine(sprintf(
                'Updated from version %s to version %s.',
                $updater->getOldVersion(),
                $updater->getNewVersion()
            ));

            return 0;
        }

        $io->writeLine(sprintf(
            'Version %s is the latest version. No update required.',
            $updater->getOldVersion()
        ));

        return 0;
    }
1212665
public static function setPayStatus($orderId, $paymentId, $status, $params)
    {
        if (($model = static::findOne(['id' => $orderId])) != null && $status == true) {
            $coin = static::getCoin($model->money, $model->currency);
            coin($model->user_id, 'purchase', $coin);
            return true;
        }
        return false;
    }
1329670
public function updateEmailContent($emailId, $args = array(), $returnRaw = false)
    {
        $args['id'] = $emailId;

        return $this->getResult('updateEmailContent', $args, false, $returnRaw);
    }
1234736
public function update( $args, $assoc_args ) {
		list( $id, $domain ) = $args;

		$defaults   = array(
			'path' => '',
		);
		$assoc_args = wp_parse_args( $assoc_args, $defaults );

		$network_id = update_network( $id, $domain, $assoc_args['path'] );

		if ( is_wp_error( $network_id ) ) {
			WP_CLI::error( $network_id );
		}

		WP_CLI::success( sprintf( 'Updated network %d.', $id ) );
	}