use TelstraTPN::Object::ContractsApi;
All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
inventory_links_contract_by_linkid_and_contractid_get | GET /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID |
inventory_links_contract_by_linkid_and_contractid_put | PUT /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID |
inventory_links_contract_by_linkid_post | POST /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link |
InventoryLinksContractResponse inventory_links_contract_by_linkid_and_contractid_get(linkid => $linkid, contractid => $contractid)
Get active Contract by ContractID
Get active Contract by ContractID
use Data::Dumper;
use TelstraTPN::ContractsApi;
my $api_instance = TelstraTPN::ContractsApi->new(
# Configure OAuth2 access token for authorization: auth
access_token => 'YOUR_ACCESS_TOKEN',
);
my $linkid = 'linkid_example'; # string | Unique identifier representing a specific link
my $contractid = 'contractid_example'; # string | Unique identifier representing a specific contract
eval {
my $result = $api_instance->inventory_links_contract_by_linkid_and_contractid_get(linkid => $linkid, contractid => $contractid);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ContractsApi->inventory_links_contract_by_linkid_and_contractid_get: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
linkid | string | Unique identifier representing a specific link | |
contractid | string | Unique identifier representing a specific contract |
InventoryLinksContractResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InventoryLinksContractResponse33 inventory_links_contract_by_linkid_and_contractid_put(linkid => $linkid, contractid => $contractid, body => $body)
Update active Contract by ContractID
Update active Contract by ContractID
use Data::Dumper;
use TelstraTPN::ContractsApi;
my $api_instance = TelstraTPN::ContractsApi->new(
# Configure OAuth2 access token for authorization: auth
access_token => 'YOUR_ACCESS_TOKEN',
);
my $linkid = 'linkid_example'; # string | Unique identifier representing a specific link
my $contractid = 'contractid_example'; # string | Unique identifier representing a specific contract
my $body = TelstraTPN::Object::InventoryLinksContractRequest->new(); # InventoryLinksContractRequest |
eval {
my $result = $api_instance->inventory_links_contract_by_linkid_and_contractid_put(linkid => $linkid, contractid => $contractid, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ContractsApi->inventory_links_contract_by_linkid_and_contractid_put: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
linkid | string | Unique identifier representing a specific link | |
contractid | string | Unique identifier representing a specific contract | |
body | InventoryLinksContractRequest | [optional] |
InventoryLinksContractResponse33
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ARRAY[InventoryLinksContractResponse38] inventory_links_contract_by_linkid_post(linkid => $linkid, body => $body)
Create new Contract on specified link
Create new Contract on specified link
use Data::Dumper;
use TelstraTPN::ContractsApi;
my $api_instance = TelstraTPN::ContractsApi->new(
# Configure OAuth2 access token for authorization: auth
access_token => 'YOUR_ACCESS_TOKEN',
);
my $linkid = 'linkid_example'; # string | Unique identifier representing a specific link
my $body = TelstraTPN::Object::InventoryLinksContractRequest37->new(); # InventoryLinksContractRequest37 |
eval {
my $result = $api_instance->inventory_links_contract_by_linkid_post(linkid => $linkid, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ContractsApi->inventory_links_contract_by_linkid_post: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
linkid | string | Unique identifier representing a specific link | |
body | InventoryLinksContractRequest37 | [optional] |
ARRAY[InventoryLinksContractResponse38]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]