pOSTerminalShiftAddCashDrop
POSTerminalShift_AddCashDrop
/POSTerminalShift/{shiftID}/activity
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/POSTerminalShift/{shiftID}/activity" \
-d '{
"WebsiteID" : 6,
"TenantID" : 0,
"UserID" : 1,
"Value" : {
"Comment" : "Comment",
"CreatedByUserID" : 1,
"CreatedDateTimeStamp_utc" : "2000-01-23T04:56:07.000+00:00",
"Amount" : 1.0246457001441578,
"ActivityType" : "ActivityType",
"CreatedByUserName" : "CreatedByUserName",
"PaymentMethodFriendlyName" : "PaymentMethodFriendlyName",
"PaymentMethodName" : "PaymentMethodName"
}
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<POSTerminalShiftCashDropRequest>
<null>
<ActivityType>aeiou</ActivityType>
<PaymentMethodName>aeiou</PaymentMethodName>
<PaymentMethodFriendlyName>aeiou</PaymentMethodFriendlyName>
<Amount>3.149</Amount>
<Comment>aeiou</Comment>
<CreatedByUserID>123</CreatedByUserID>
<CreatedByUserName>aeiou</CreatedByUserName>
<CreatedDateTimeStamp_utc>2000-01-23T04:56:07.000Z</CreatedDateTimeStamp_utc>
</null>
<TenantID>123</TenantID>
<WebsiteID>123</WebsiteID>
<UserID>123</UserID>
</POSTerminalShiftCashDropRequest>' \
-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();
Integer shiftID = 56; // Integer | Format - int32.
POSTerminalShiftCashDropRequest pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // POSTerminalShiftCashDropRequest |
try {
ActionResults_POSTerminalShiftDetails_ result = apiInstance.pOSTerminalShiftAddCashDrop(shiftID, pOSTerminalShiftCashDropRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#pOSTerminalShiftAddCashDrop");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Integer shiftID = new Integer(); // Integer | Format - int32.
final POSTerminalShiftCashDropRequest pOSTerminalShiftCashDropRequest = new POSTerminalShiftCashDropRequest(); // POSTerminalShiftCashDropRequest |
try {
final result = await api_instance.pOSTerminalShiftAddCashDrop(shiftID, pOSTerminalShiftCashDropRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->pOSTerminalShiftAddCashDrop: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
Integer shiftID = 56; // Integer | Format - int32.
POSTerminalShiftCashDropRequest pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // POSTerminalShiftCashDropRequest |
try {
ActionResults_POSTerminalShiftDetails_ result = apiInstance.pOSTerminalShiftAddCashDrop(shiftID, pOSTerminalShiftCashDropRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#pOSTerminalShiftAddCashDrop");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
Integer *shiftID = 56; // Format - int32. (default to null)
POSTerminalShiftCashDropRequest *pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // (optional)
// POSTerminalShift_AddCashDrop
[apiInstance pOSTerminalShiftAddCashDropWith:shiftID
pOSTerminalShiftCashDropRequest:pOSTerminalShiftCashDropRequest
completionHandler: ^(ActionResults_POSTerminalShiftDetails_ output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiPosTerminalShift = require('as_server_api_pos_terminal_shift');
// Create an instance of the API class
var api = new AsServerApiPosTerminalShift.DefaultApi()
var shiftID = 56; // {Integer} Format - int32.
var opts = {
'pOSTerminalShiftCashDropRequest': {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} // {POSTerminalShiftCashDropRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.pOSTerminalShiftAddCashDrop(shiftID, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class pOSTerminalShiftAddCashDropExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var shiftID = 56; // Integer | Format - int32. (default to null)
var pOSTerminalShiftCashDropRequest = new POSTerminalShiftCashDropRequest(); // POSTerminalShiftCashDropRequest | (optional)
try {
// POSTerminalShift_AddCashDrop
ActionResults_POSTerminalShiftDetails_ result = apiInstance.pOSTerminalShiftAddCashDrop(shiftID, pOSTerminalShiftCashDropRequest);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.pOSTerminalShiftAddCashDrop: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$shiftID = 56; // Integer | Format - int32.
$pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // POSTerminalShiftCashDropRequest |
try {
$result = $api_instance->pOSTerminalShiftAddCashDrop($shiftID, $pOSTerminalShiftCashDropRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->pOSTerminalShiftAddCashDrop: ', $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 $shiftID = 56; # Integer | Format - int32.
my $pOSTerminalShiftCashDropRequest = WWW::OPenAPIClient::Object::POSTerminalShiftCashDropRequest->new(); # POSTerminalShiftCashDropRequest |
eval {
my $result = $api_instance->pOSTerminalShiftAddCashDrop(shiftID => $shiftID, pOSTerminalShiftCashDropRequest => $pOSTerminalShiftCashDropRequest);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->pOSTerminalShiftAddCashDrop: $@\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()
shiftID = 56 # Integer | Format - int32. (default to null)
pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0} # POSTerminalShiftCashDropRequest | (optional)
try:
# POSTerminalShift_AddCashDrop
api_response = api_instance.p_os_terminal_shift_add_cash_drop(shiftID, pOSTerminalShiftCashDropRequest=pOSTerminalShiftCashDropRequest)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->pOSTerminalShiftAddCashDrop: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let shiftID = 56; // Integer
let pOSTerminalShiftCashDropRequest = {"Value":{"ActivityType":"string","PaymentMethodName":"string","PaymentMethodFriendlyName":"string","Amount":0,"Comment":"string","CreatedByUserID":0,"CreatedByUserName":"string","CreatedDateTimeStamp_utc":"string"},"TenantID":0,"WebsiteID":0,"UserID":0}; // POSTerminalShiftCashDropRequest
let mut context = DefaultApi::Context::default();
let result = client.pOSTerminalShiftAddCashDrop(shiftID, pOSTerminalShiftCashDropRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
| Name | Description |
|---|---|
| shiftID* |
Integer
(int32)
Format - int32.
Required
|
Body parameters
| Name | Description |
|---|---|
| pOSTerminalShiftCashDropRequest |