AS Server - API - UserRoles

Default

userRolesGetPaymentBatchSettings

UserRoles_GetPaymentBatchSettings


/UserRoles/paymentbatch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/UserRoles/paymentbatch"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesGetPaymentBatchSettings();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#userRolesGetPaymentBatchSettings");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.userRolesGetPaymentBatchSettings();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->userRolesGetPaymentBatchSettings: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesGetPaymentBatchSettings();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#userRolesGetPaymentBatchSettings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];

// UserRoles_GetPaymentBatchSettings
[apiInstance userRolesGetPaymentBatchSettingsWithCompletionHandler: 
              ^(ActionResults_PaymentBatchSettings_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiUserRoles = require('as_server_api_user_roles');

// Create an instance of the API class
var api = new AsServerApiUserRoles.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userRolesGetPaymentBatchSettings(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userRolesGetPaymentBatchSettingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // UserRoles_GetPaymentBatchSettings
                ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesGetPaymentBatchSettings();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.userRolesGetPaymentBatchSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

try {
    $result = $api_instance->userRolesGetPaymentBatchSettings();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->userRolesGetPaymentBatchSettings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

eval {
    my $result = $api_instance->userRolesGetPaymentBatchSettings();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->userRolesGetPaymentBatchSettings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # UserRoles_GetPaymentBatchSettings
    api_response = api_instance.user_roles_get_payment_batch_settings()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->userRolesGetPaymentBatchSettings: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.userRolesGetPaymentBatchSettings(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


userRolesSavePaymentBatchSettings

UserRoles_SavePaymentBatchSettings


/UserRoles/paymentbatch

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/UserRoles/paymentbatch" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestPaymentBatchSettings actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestPaymentBatchSettings | 

        try {
            ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#userRolesSavePaymentBatchSettings");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ActionRequestPaymentBatchSettings actionRequestPaymentBatchSettings = new ActionRequestPaymentBatchSettings(); // ActionRequestPaymentBatchSettings | 

try {
    final result = await api_instance.userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->userRolesSavePaymentBatchSettings: $e\n');
}

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestPaymentBatchSettings actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestPaymentBatchSettings | 

        try {
            ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#userRolesSavePaymentBatchSettings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestPaymentBatchSettings *actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// UserRoles_SavePaymentBatchSettings
[apiInstance userRolesSavePaymentBatchSettingsWith:actionRequestPaymentBatchSettings
              completionHandler: ^(ActionResults_PaymentBatchSettings_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiUserRoles = require('as_server_api_user_roles');

// Create an instance of the API class
var api = new AsServerApiUserRoles.DefaultApi()
var opts = {
  'actionRequestPaymentBatchSettings': {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestPaymentBatchSettings} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userRolesSavePaymentBatchSettings(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userRolesSavePaymentBatchSettingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var actionRequestPaymentBatchSettings = new ActionRequestPaymentBatchSettings(); // ActionRequestPaymentBatchSettings |  (optional) 

            try {
                // UserRoles_SavePaymentBatchSettings
                ActionResults_PaymentBatchSettings_ result = apiInstance.userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.userRolesSavePaymentBatchSettings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestPaymentBatchSettings | 

try {
    $result = $api_instance->userRolesSavePaymentBatchSettings($actionRequestPaymentBatchSettings);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->userRolesSavePaymentBatchSettings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $actionRequestPaymentBatchSettings = WWW::OPenAPIClient::Object::ActionRequestPaymentBatchSettings->new(); # ActionRequestPaymentBatchSettings | 

eval {
    my $result = $api_instance->userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings => $actionRequestPaymentBatchSettings);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->userRolesSavePaymentBatchSettings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestPaymentBatchSettings |  (optional)

try:
    # UserRoles_SavePaymentBatchSettings
    api_response = api_instance.user_roles_save_payment_batch_settings(actionRequestPaymentBatchSettings=actionRequestPaymentBatchSettings)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->userRolesSavePaymentBatchSettings: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let actionRequestPaymentBatchSettings = {"Value":{"PaymentBatchDailyLimit":0,"JointApproval":{"IsEnabled":true,"IsOnlyJointApproval":true,"LimitAmount":0},"Permissions":[{"UserRoleID":0,"RoleName":"string","RolePermissions":[{"PermissionTypeID":0,"Name":"string","Description":"string","IsActive":true,"LimitAmount":0}]}]},"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestPaymentBatchSettings

    let mut context = DefaultApi::Context::default();
    let result = client.userRolesSavePaymentBatchSettings(actionRequestPaymentBatchSettings, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
actionRequestPaymentBatchSettings

Responses