billingaccounttmfwebservices API

BillingAccount

createBillingAccount

Creates a BillingAccount

This operation creates a BillingAccount entity.


/billingAccount

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/xml,application/json"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/billingAccount"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountApi;

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

public class BillingAccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountApi apiInstance = new BillingAccountApi();
        BillingAccount body = ; // BillingAccount | 
        try {
            BillingAccount result = apiInstance.createBillingAccount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#createBillingAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountApi;

public class BillingAccountApiExample {

    public static void main(String[] args) {
        BillingAccountApi apiInstance = new BillingAccountApi();
        BillingAccount body = ; // BillingAccount | 
        try {
            BillingAccount result = apiInstance.createBillingAccount(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#createBillingAccount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BillingAccount *body = ; // 

BillingAccountApi *apiInstance = [[BillingAccountApi alloc] init];

// Creates a BillingAccount
[apiInstance createBillingAccountWith:body
              completionHandler: ^(BillingAccount output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountApi()
var body = ; // {{BillingAccount}} 

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountApi();
            var body = new BillingAccount(); // BillingAccount | 

            try
            {
                // Creates a BillingAccount
                BillingAccount result = apiInstance.createBillingAccount(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountApi.createBillingAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountApi();
$body = ; // BillingAccount | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountApi->new();
my $body = WWW::SwaggerClient::Object::BillingAccount->new(); # BillingAccount | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountApi()
body =  # BillingAccount | 

try: 
    # Creates a BillingAccount
    api_response = api_instance.create_billing_account(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountApi->createBillingAccount: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


deleteBillingAccount

Deletes a BillingAccount

This operation deletes a BillingAccount entity.


/billingAccount/{id}

Usage and SDK Samples

curl -X DELETE\
\
\
-H "Accept: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/billingAccount/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountApi;

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

public class BillingAccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountApi apiInstance = new BillingAccountApi();
        String id = id_example; // String | Identifier of the BillingAccount
        try {
            apiInstance.deleteBillingAccount(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#deleteBillingAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountApi;

public class BillingAccountApiExample {

    public static void main(String[] args) {
        BillingAccountApi apiInstance = new BillingAccountApi();
        String id = id_example; // String | Identifier of the BillingAccount
        try {
            apiInstance.deleteBillingAccount(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#deleteBillingAccount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // Identifier of the BillingAccount

BillingAccountApi *apiInstance = [[BillingAccountApi alloc] init];

// Deletes a BillingAccount
[apiInstance deleteBillingAccountWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountApi()
var id = id_example; // {{String}} Identifier of the BillingAccount

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteBillingAccount(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountApi();
            var id = id_example;  // String | Identifier of the BillingAccount

            try
            {
                // Deletes a BillingAccount
                apiInstance.deleteBillingAccount(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountApi.deleteBillingAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountApi();
$id = id_example; // String | Identifier of the BillingAccount

try {
    $api_instance->deleteBillingAccount($id);
} catch (Exception $e) {
    echo 'Exception when calling BillingAccountApi->deleteBillingAccount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BillingAccountApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountApi->new();
my $id = id_example; # String | Identifier of the BillingAccount

eval { 
    $api_instance->deleteBillingAccount(id => $id);
};
if ($@) {
    warn "Exception when calling BillingAccountApi->deleteBillingAccount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountApi()
id = id_example # String | Identifier of the BillingAccount

try: 
    # Deletes a BillingAccount
    api_instance.delete_billing_account(id)
except ApiException as e:
    print("Exception when calling BillingAccountApi->deleteBillingAccount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the BillingAccount
Required

Responses

Status: 204 - Deleted

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listBillingAccount

List or find BillingAccount objects

This operation list or find BillingAccount entities


/billingAccount

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/billingAccount?fields=&limit=&offset=&paymentStatus="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountApi;

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

public class BillingAccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountApi apiInstance = new BillingAccountApi();
        String fields = fields_example; // String | Comma-separated properties to be provided in response
        Integer limit = 56; // Integer | Requested number of resources to be provided in response
        Integer offset = 56; // Integer | Requested index for start of resources to be provided in response
        String paymentStatus = paymentStatus_example; // String | Payment Status value
        try {
            array[BillingAccount] result = apiInstance.listBillingAccount(fields, limit, offset, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#listBillingAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountApi;

public class BillingAccountApiExample {

    public static void main(String[] args) {
        BillingAccountApi apiInstance = new BillingAccountApi();
        String fields = fields_example; // String | Comma-separated properties to be provided in response
        Integer limit = 56; // Integer | Requested number of resources to be provided in response
        Integer offset = 56; // Integer | Requested index for start of resources to be provided in response
        String paymentStatus = paymentStatus_example; // String | Payment Status value
        try {
            array[BillingAccount] result = apiInstance.listBillingAccount(fields, limit, offset, paymentStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#listBillingAccount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *fields = fields_example; // Comma-separated properties to be provided in response (optional)
Integer *limit = 56; // Requested number of resources to be provided in response (optional)
Integer *offset = 56; // Requested index for start of resources to be provided in response (optional)
String *paymentStatus = paymentStatus_example; // Payment Status value (optional)

BillingAccountApi *apiInstance = [[BillingAccountApi alloc] init];

// List or find BillingAccount objects
[apiInstance listBillingAccountWith:fields
    limit:limit
    offset:offset
    paymentStatus:paymentStatus
              completionHandler: ^(array[BillingAccount] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountApi()
var opts = { 
  'fields': fields_example, // {{String}} Comma-separated properties to be provided in response
  'limit': 56, // {{Integer}} Requested number of resources to be provided in response
  'offset': 56, // {{Integer}} Requested index for start of resources to be provided in response
  'paymentStatus': paymentStatus_example // {{String}} Payment Status value
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listBillingAccount(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountApi();
            var fields = fields_example;  // String | Comma-separated properties to be provided in response (optional) 
            var limit = 56;  // Integer | Requested number of resources to be provided in response (optional) 
            var offset = 56;  // Integer | Requested index for start of resources to be provided in response (optional) 
            var paymentStatus = paymentStatus_example;  // String | Payment Status value (optional) 

            try
            {
                // List or find BillingAccount objects
                array[BillingAccount] result = apiInstance.listBillingAccount(fields, limit, offset, paymentStatus);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountApi.listBillingAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountApi();
$fields = fields_example; // String | Comma-separated properties to be provided in response
$limit = 56; // Integer | Requested number of resources to be provided in response
$offset = 56; // Integer | Requested index for start of resources to be provided in response
$paymentStatus = paymentStatus_example; // String | Payment Status value

try {
    $result = $api_instance->listBillingAccount($fields, $limit, $offset, $paymentStatus);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingAccountApi->listBillingAccount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BillingAccountApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountApi->new();
my $fields = fields_example; # String | Comma-separated properties to be provided in response
my $limit = 56; # Integer | Requested number of resources to be provided in response
my $offset = 56; # Integer | Requested index for start of resources to be provided in response
my $paymentStatus = paymentStatus_example; # String | Payment Status value

eval { 
    my $result = $api_instance->listBillingAccount(fields => $fields, limit => $limit, offset => $offset, paymentStatus => $paymentStatus);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingAccountApi->listBillingAccount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountApi()
fields = fields_example # String | Comma-separated properties to be provided in response (optional)
limit = 56 # Integer | Requested number of resources to be provided in response (optional)
offset = 56 # Integer | Requested index for start of resources to be provided in response (optional)
paymentStatus = paymentStatus_example # String | Payment Status value (optional)

try: 
    # List or find BillingAccount objects
    api_response = api_instance.list_billing_account(fields=fields, limit=limit, offset=offset, paymentStatus=paymentStatus)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountApi->listBillingAccount: %s\n" % e)

Parameters

Query parameters
Name Description
fields
String
Comma-separated properties to be provided in response
limit
Integer (int32)
Requested number of resources to be provided in response
offset
Integer (int32)
Requested index for start of resources to be provided in response
paymentStatus
String
Payment Status value

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


patchBillingAccount

Updates partially a BillingAccount

This operation updates partially a BillingAccount entity.


/billingAccount/{id}

Usage and SDK Samples

curl -X PATCH\
\
\
-H "Accept: application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/billingAccount/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountApi;

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

public class BillingAccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountApi apiInstance = new BillingAccountApi();
        BillingAccount body = ; // BillingAccount | 
        String id = id_example; // String | Identifier of the BillingAccount
        try {
            BillingAccount result = apiInstance.patchBillingAccount(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#patchBillingAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountApi;

public class BillingAccountApiExample {

    public static void main(String[] args) {
        BillingAccountApi apiInstance = new BillingAccountApi();
        BillingAccount body = ; // BillingAccount | 
        String id = id_example; // String | Identifier of the BillingAccount
        try {
            BillingAccount result = apiInstance.patchBillingAccount(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#patchBillingAccount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BillingAccount *body = ; // 
String *id = id_example; // Identifier of the BillingAccount

BillingAccountApi *apiInstance = [[BillingAccountApi alloc] init];

// Updates partially a BillingAccount
[apiInstance patchBillingAccountWith:body
    id:id
              completionHandler: ^(BillingAccount output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountApi()
var body = ; // {{BillingAccount}} 
var id = id_example; // {{String}} Identifier of the BillingAccount

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountApi();
            var body = new BillingAccount(); // BillingAccount | 
            var id = id_example;  // String | Identifier of the BillingAccount

            try
            {
                // Updates partially a BillingAccount
                BillingAccount result = apiInstance.patchBillingAccount(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountApi.patchBillingAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountApi();
$body = ; // BillingAccount | 
$id = id_example; // String | Identifier of the BillingAccount

try {
    $result = $api_instance->patchBillingAccount($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingAccountApi->patchBillingAccount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BillingAccountApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountApi->new();
my $body = WWW::SwaggerClient::Object::BillingAccount->new(); # BillingAccount | 
my $id = id_example; # String | Identifier of the BillingAccount

eval { 
    my $result = $api_instance->patchBillingAccount(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingAccountApi->patchBillingAccount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountApi()
body =  # BillingAccount | 
id = id_example # String | Identifier of the BillingAccount

try: 
    # Updates partially a BillingAccount
    api_response = api_instance.patch_billing_account(body, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountApi->patchBillingAccount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the BillingAccount
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Updated

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


retrieveBillingAccount

Retrieves a BillingAccount by ID

This operation retrieves a BillingAccount entity. Attribute selection is enabled for all first level attributes.


/billingAccount/{id}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/billingAccount/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountApi;

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

public class BillingAccountApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountApi apiInstance = new BillingAccountApi();
        String id = id_example; // String | Identifier of the BillingAccount
        String fields = fields_example; // String | Comma-separated properties to provide in response
        try {
            BillingAccount result = apiInstance.retrieveBillingAccount(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#retrieveBillingAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountApi;

public class BillingAccountApiExample {

    public static void main(String[] args) {
        BillingAccountApi apiInstance = new BillingAccountApi();
        String id = id_example; // String | Identifier of the BillingAccount
        String fields = fields_example; // String | Comma-separated properties to provide in response
        try {
            BillingAccount result = apiInstance.retrieveBillingAccount(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountApi#retrieveBillingAccount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *id = id_example; // Identifier of the BillingAccount
String *fields = fields_example; // Comma-separated properties to provide in response (optional)

BillingAccountApi *apiInstance = [[BillingAccountApi alloc] init];

// Retrieves a BillingAccount by ID
[apiInstance retrieveBillingAccountWith:id
    fields:fields
              completionHandler: ^(BillingAccount output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountApi()
var id = id_example; // {{String}} Identifier of the BillingAccount
var opts = { 
  'fields': fields_example // {{String}} Comma-separated properties to provide in response
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.retrieveBillingAccount(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountApi();
            var id = id_example;  // String | Identifier of the BillingAccount
            var fields = fields_example;  // String | Comma-separated properties to provide in response (optional) 

            try
            {
                // Retrieves a BillingAccount by ID
                BillingAccount result = apiInstance.retrieveBillingAccount(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountApi.retrieveBillingAccount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountApi();
$id = id_example; // String | Identifier of the BillingAccount
$fields = fields_example; // String | Comma-separated properties to provide in response

try {
    $result = $api_instance->retrieveBillingAccount($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingAccountApi->retrieveBillingAccount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BillingAccountApi;

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountApi->new();
my $id = id_example; # String | Identifier of the BillingAccount
my $fields = fields_example; # String | Comma-separated properties to provide in response

eval { 
    my $result = $api_instance->retrieveBillingAccount(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingAccountApi->retrieveBillingAccount: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountApi()
id = id_example # String | Identifier of the BillingAccount
fields = fields_example # String | Comma-separated properties to provide in response (optional)

try: 
    # Retrieves a BillingAccount by ID
    api_response = api_instance.retrieve_billing_account(id, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountApi->retrieveBillingAccount: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Identifier of the BillingAccount
Required
Query parameters
Name Description
fields
String
Comma-separated properties to provide in response

Responses

Status: 200 - Success

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


BillingAccountNotificationListeners

listenToBillingAccountAttributeValueChangeEvent

Client listener for entity BillingAccountAttributeValueChangeEvent

Example of a client listener for receiving the notification BillingAccountAttributeValueChangeEvent


/listener/billingAccountAttributeValueChangeEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/listener/billingAccountAttributeValueChangeEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountNotificationListenersApi;

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

public class BillingAccountNotificationListenersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountNotificationListenersApi apiInstance = new BillingAccountNotificationListenersApi();
        BillingAccountAttributeValueChangeEvent body = ; // BillingAccountAttributeValueChangeEvent | 
        try {
            'String' result = apiInstance.listenToBillingAccountAttributeValueChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountNotificationListenersApi#listenToBillingAccountAttributeValueChangeEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountNotificationListenersApi;

public class BillingAccountNotificationListenersApiExample {

    public static void main(String[] args) {
        BillingAccountNotificationListenersApi apiInstance = new BillingAccountNotificationListenersApi();
        BillingAccountAttributeValueChangeEvent body = ; // BillingAccountAttributeValueChangeEvent | 
        try {
            'String' result = apiInstance.listenToBillingAccountAttributeValueChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountNotificationListenersApi#listenToBillingAccountAttributeValueChangeEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BillingAccountAttributeValueChangeEvent *body = ; // 

BillingAccountNotificationListenersApi *apiInstance = [[BillingAccountNotificationListenersApi alloc] init];

// Client listener for entity BillingAccountAttributeValueChangeEvent
[apiInstance listenToBillingAccountAttributeValueChangeEventWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountNotificationListenersApi()
var body = ; // {{BillingAccountAttributeValueChangeEvent}} 

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountNotificationListenersApi();
            var body = new BillingAccountAttributeValueChangeEvent(); // BillingAccountAttributeValueChangeEvent | 

            try
            {
                // Client listener for entity BillingAccountAttributeValueChangeEvent
                'String' result = apiInstance.listenToBillingAccountAttributeValueChangeEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountNotificationListenersApi.listenToBillingAccountAttributeValueChangeEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountNotificationListenersApi();
$body = ; // BillingAccountAttributeValueChangeEvent | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::BillingAccountAttributeValueChangeEvent->new(); # BillingAccountAttributeValueChangeEvent | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountNotificationListenersApi()
body =  # BillingAccountAttributeValueChangeEvent | 

try: 
    # Client listener for entity BillingAccountAttributeValueChangeEvent
    api_response = api_instance.listen_to_billing_account_attribute_value_change_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountNotificationListenersApi->listenToBillingAccountAttributeValueChangeEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Notified

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error


listenToBillingAccountStateChangeEvent

Client listener for entity BillingAccountStateChangeEvent

Example of a client listener for receiving the notification BillingAccountStateChangeEvent


/listener/billingAccountStateChangeEvent

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json;charset=utf-8,application/json;charset=utf-8"\
-H "Content-Type: application/json;charset=utf-8"\
"http://localhost:9001/billingaccounttmfwebservices/v1/listener/billingAccountStateChangeEvent"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BillingAccountNotificationListenersApi;

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

public class BillingAccountNotificationListenersApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: oauth2_Password
        OAuth oauth2_Password = (OAuth) defaultClient.getAuthentication("oauth2_Password");
        oauth2_Password.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: oauth2_client_credentials
        OAuth oauth2_client_credentials = (OAuth) defaultClient.getAuthentication("oauth2_client_credentials");
        oauth2_client_credentials.setAccessToken("YOUR ACCESS TOKEN");

        BillingAccountNotificationListenersApi apiInstance = new BillingAccountNotificationListenersApi();
        BillingAccountStateChangeEvent body = ; // BillingAccountStateChangeEvent | 
        try {
            'String' result = apiInstance.listenToBillingAccountStateChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountNotificationListenersApi#listenToBillingAccountStateChangeEvent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BillingAccountNotificationListenersApi;

public class BillingAccountNotificationListenersApiExample {

    public static void main(String[] args) {
        BillingAccountNotificationListenersApi apiInstance = new BillingAccountNotificationListenersApi();
        BillingAccountStateChangeEvent body = ; // BillingAccountStateChangeEvent | 
        try {
            'String' result = apiInstance.listenToBillingAccountStateChangeEvent(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingAccountNotificationListenersApi#listenToBillingAccountStateChangeEvent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_Password)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2_client_credentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
BillingAccountStateChangeEvent *body = ; // 

BillingAccountNotificationListenersApi *apiInstance = [[BillingAccountNotificationListenersApi alloc] init];

// Client listener for entity BillingAccountStateChangeEvent
[apiInstance listenToBillingAccountStateChangeEventWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BillingaccounttmfwebservicesApi = require('billingaccounttmfwebservices_api');
var defaultClient = BillingaccounttmfwebservicesApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_Password
var oauth2_Password = defaultClient.authentications['oauth2_Password'];
oauth2_Password.accessToken = "YOUR ACCESS TOKEN"

// Configure OAuth2 access token for authorization: oauth2_client_credentials
var oauth2_client_credentials = defaultClient.authentications['oauth2_client_credentials'];
oauth2_client_credentials.accessToken = "YOUR ACCESS TOKEN"

var api = new BillingaccounttmfwebservicesApi.BillingAccountNotificationListenersApi()
var body = ; // {{BillingAccountStateChangeEvent}} 

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

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

            // Configure OAuth2 access token for authorization: oauth2_Password
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: oauth2_client_credentials
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new BillingAccountNotificationListenersApi();
            var body = new BillingAccountStateChangeEvent(); // BillingAccountStateChangeEvent | 

            try
            {
                // Client listener for entity BillingAccountStateChangeEvent
                'String' result = apiInstance.listenToBillingAccountStateChangeEvent(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BillingAccountNotificationListenersApi.listenToBillingAccountStateChangeEvent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2_Password
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: oauth2_client_credentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiBillingAccountNotificationListenersApi();
$body = ; // BillingAccountStateChangeEvent | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: oauth2_client_credentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::BillingAccountNotificationListenersApi->new();
my $body = WWW::SwaggerClient::Object::BillingAccountStateChangeEvent->new(); # BillingAccountStateChangeEvent | 

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

# Configure OAuth2 access token for authorization: oauth2_Password
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: oauth2_client_credentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.BillingAccountNotificationListenersApi()
body =  # BillingAccountStateChangeEvent | 

try: 
    # Client listener for entity BillingAccountStateChangeEvent
    api_response = api_instance.listen_to_billing_account_state_change_event(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingAccountNotificationListenersApi->listenToBillingAccountStateChangeEvent: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - Notified

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 403 - Forbidden

Status: 404 - Not Found

Status: 405 - Method Not allowed

Status: 409 - Conflict

Status: 500 - Internal Server Error