cardsTransfer
Transfer credit between two cards
Transfer credit between two rechargeable cards
/cards/transfer
Usage and SDK Samples
curl -X POST \
-H "Content-Type: application/json" \
"https://mxp-import-export-sn.dev.icadsistemi.com/v1/cards/transfer" \
-d ''
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();
CardsTransferRequest cardsTransferRequest = ; // CardsTransferRequest |
try {
apiInstance.cardsTransfer(cardsTransferRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cardsTransfer");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final CardsTransferRequest cardsTransferRequest = new CardsTransferRequest(); // CardsTransferRequest |
try {
final result = await api_instance.cardsTransfer(cardsTransferRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->cardsTransfer: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
CardsTransferRequest cardsTransferRequest = ; // CardsTransferRequest |
try {
apiInstance.cardsTransfer(cardsTransferRequest);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cardsTransfer");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
CardsTransferRequest *cardsTransferRequest = ; // (optional)
// Transfer credit between two cards
[apiInstance cardsTransferWith:cardsTransferRequest
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ImportExportSelfnet = require('import_export_selfnet');
// Create an instance of the API class
var api = new ImportExportSelfnet.DefaultApi()
var opts = {
'cardsTransferRequest': // {CardsTransferRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.cardsTransfer(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class cardsTransferExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var cardsTransferRequest = new CardsTransferRequest(); // CardsTransferRequest | (optional)
try {
// Transfer credit between two cards
apiInstance.cardsTransfer(cardsTransferRequest);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.cardsTransfer: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$cardsTransferRequest = ; // CardsTransferRequest |
try {
$api_instance->cardsTransfer($cardsTransferRequest);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->cardsTransfer: ', $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 $cardsTransferRequest = WWW::OPenAPIClient::Object::CardsTransferRequest->new(); # CardsTransferRequest |
eval {
$api_instance->cardsTransfer(cardsTransferRequest => $cardsTransferRequest);
};
if ($@) {
warn "Exception when calling DefaultApi->cardsTransfer: $@\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()
cardsTransferRequest = # CardsTransferRequest | (optional)
try:
# Transfer credit between two cards
api_instance.cards_transfer(cardsTransferRequest=cardsTransferRequest)
except ApiException as e:
print("Exception when calling DefaultApi->cardsTransfer: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let cardsTransferRequest = ; // CardsTransferRequest
let mut context = DefaultApi::Context::default();
let result = client.cardsTransfer(cardsTransferRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
cardsTransferRequest |