@@ -4,42 +4,34 @@ All URIs are relative to *https://penapi.pacnetconnect.com*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
- [ ** createNewContractOnSpecifiedLink ** ] ( ContractsApi.md#createNewContractOnSpecifiedLink ) | ** POST ** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
8
- [ ** getActiveContractByContractID ** ] ( ContractsApi.md#getActiveContractByContractID ) | ** GET ** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
9
- [ ** updateActiveContractByContractID ** ] ( ContractsApi.md#updateActiveContractByContractID ) | ** PUT ** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
7
+ [ ** 100InventoryLinksContractByLinkidAndContractidGet ** ] ( ContractsApi.md#100InventoryLinksContractByLinkidAndContractidGet ) | ** GET ** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Get active Contract by ContractID
8
+ [ ** 100InventoryLinksContractByLinkidAndContractidPut ** ] ( ContractsApi.md#100InventoryLinksContractByLinkidAndContractidPut ) | ** PUT ** /1.0.0/inventory/links/{linkid}/contract/{contractid} | Update active Contract by ContractID
9
+ [ ** 100InventoryLinksContractByLinkidPost ** ] ( ContractsApi.md#100InventoryLinksContractByLinkidPost ) | ** POST ** /1.0.0/inventory/links/{linkid}/contract | Create new Contract on specified link
10
10
11
11
12
- <a name =" createNewContractOnSpecifiedLink " ></a >
13
- # ** createNewContractOnSpecifiedLink **
14
- > Model100InventoryLinksContractResponse36 createNewContractOnSpecifiedLink (linkid, body )
12
+ <a name =" 100InventoryLinksContractByLinkidAndContractidGet " ></a >
13
+ # ** 100InventoryLinksContractByLinkidAndContractidGet **
14
+ > Model100InventoryLinksContractResponse 100InventoryLinksContractByLinkidAndContractidGet (linkid, contractid )
15
15
16
- Create new Contract on specified link
16
+ Get active Contract by ContractID
17
17
18
- Create new Contract on specified link
18
+ Get active Contract by ContractID
19
19
20
20
### Example
21
21
``` java
22
22
// Import classes:
23
- // import invalidPackageName.ApiClient;
24
23
// import invalidPackageName.ApiException;
25
- // import invalidPackageName.Configuration;
26
- // import invalidPackageName.auth.*;
27
24
// import TelstraTPN.ContractsApi;
28
25
29
- ApiClient defaultClient = Configuration . getDefaultApiClient();
30
-
31
- // Configure OAuth2 access token for authorization: auth
32
- OAuth auth = (OAuth ) defaultClient. getAuthentication(" auth" );
33
- auth. setAccessToken(" YOUR ACCESS TOKEN" );
34
26
35
27
ContractsApi apiInstance = new ContractsApi ();
36
28
String linkid = " linkid_example" ; // String | Unique identifier representing a specific link
37
- Model100InventoryLinksContractRequest35 body = new Model100InventoryLinksContractRequest35 () ; // Model100InventoryLinksContractRequest35 |
29
+ String contractid = " contractid_example " ; // String | Unique identifier representing a specific contract
38
30
try {
39
- Model100InventoryLinksContractResponse36 result = apiInstance. createNewContractOnSpecifiedLink (linkid, body );
31
+ Model100InventoryLinksContractResponse result = apiInstance. 100InventoryLinksContractByLinkidAndContractidGet (linkid, contractid );
40
32
System . out. println(result);
41
33
} catch (ApiException e) {
42
- System . err. println(" Exception when calling ContractsApi#createNewContractOnSpecifiedLink " );
34
+ System . err. println(" Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidGet " );
43
35
e. printStackTrace();
44
36
}
45
37
```
@@ -49,52 +41,45 @@ try {
49
41
Name | Type | Description | Notes
50
42
------------- | ------------- | ------------- | -------------
51
43
** linkid** | ** String** | Unique identifier representing a specific link |
52
- ** body ** | [ ** Model100InventoryLinksContractRequest35 ** ] ( Model100InventoryLinksContractRequest35.md ) | | [ optional ]
44
+ ** contractid ** | ** String ** | Unique identifier representing a specific contract |
53
45
54
46
### Return type
55
47
56
- [ ** Model100InventoryLinksContractResponse36 ** ] ( Model100InventoryLinksContractResponse36 .md)
48
+ [ ** Model100InventoryLinksContractResponse ** ] ( Model100InventoryLinksContractResponse .md)
57
49
58
50
### Authorization
59
51
60
- [ auth ] ( ../README.md#auth )
52
+ No authorization required
61
53
62
54
### HTTP request headers
63
55
64
56
- ** Content-Type** : application/json
65
57
- ** Accept** : application/json
66
58
67
- <a name =" getActiveContractByContractID " ></a >
68
- # ** getActiveContractByContractID **
69
- > Model100InventoryLinksContractResponse getActiveContractByContractID (linkid, contractid)
59
+ <a name =" 100InventoryLinksContractByLinkidAndContractidPut " ></a >
60
+ # ** 100InventoryLinksContractByLinkidAndContractidPut **
61
+ > Model100InventoryLinksContractResponse33 100InventoryLinksContractByLinkidAndContractidPut (linkid, contractid, body )
70
62
71
- Get active Contract by ContractID
63
+ Update active Contract by ContractID
72
64
73
- Get active Contract by ContractID
65
+ Update active Contract by ContractID
74
66
75
67
### Example
76
68
``` java
77
69
// Import classes:
78
- // import invalidPackageName.ApiClient;
79
70
// import invalidPackageName.ApiException;
80
- // import invalidPackageName.Configuration;
81
- // import invalidPackageName.auth.*;
82
71
// import TelstraTPN.ContractsApi;
83
72
84
- ApiClient defaultClient = Configuration . getDefaultApiClient();
85
-
86
- // Configure OAuth2 access token for authorization: auth
87
- OAuth auth = (OAuth ) defaultClient. getAuthentication(" auth" );
88
- auth. setAccessToken(" YOUR ACCESS TOKEN" );
89
73
90
74
ContractsApi apiInstance = new ContractsApi ();
91
75
String linkid = " linkid_example" ; // String | Unique identifier representing a specific link
92
76
String contractid = " contractid_example" ; // String | Unique identifier representing a specific contract
77
+ Model100InventoryLinksContractRequest body = new Model100InventoryLinksContractRequest (); // Model100InventoryLinksContractRequest |
93
78
try {
94
- Model100InventoryLinksContractResponse result = apiInstance. getActiveContractByContractID (linkid, contractid);
79
+ Model100InventoryLinksContractResponse33 result = apiInstance. 100InventoryLinksContractByLinkidAndContractidPut (linkid, contractid, body );
95
80
System . out. println(result);
96
81
} catch (ApiException e) {
97
- System . err. println(" Exception when calling ContractsApi#getActiveContractByContractID " );
82
+ System . err. println(" Exception when calling ContractsApi#100InventoryLinksContractByLinkidAndContractidPut " );
98
83
e. printStackTrace();
99
84
}
100
85
```
@@ -105,52 +90,44 @@ Name | Type | Description | Notes
105
90
------------- | ------------- | ------------- | -------------
106
91
** linkid** | ** String** | Unique identifier representing a specific link |
107
92
** contractid** | ** String** | Unique identifier representing a specific contract |
93
+ ** body** | [ ** Model100InventoryLinksContractRequest** ] ( Model100InventoryLinksContractRequest.md ) | | [ optional]
108
94
109
95
### Return type
110
96
111
- [ ** Model100InventoryLinksContractResponse ** ] ( Model100InventoryLinksContractResponse .md)
97
+ [ ** Model100InventoryLinksContractResponse33 ** ] ( Model100InventoryLinksContractResponse33 .md)
112
98
113
99
### Authorization
114
100
115
- [ auth ] ( ../README.md#auth )
101
+ No authorization required
116
102
117
103
### HTTP request headers
118
104
119
105
- ** Content-Type** : application/json
120
106
- ** Accept** : application/json
121
107
122
- <a name =" updateActiveContractByContractID " ></a >
123
- # ** updateActiveContractByContractID **
124
- > Model100InventoryLinksContractResponse31 updateActiveContractByContractID (linkid, contractid , body)
108
+ <a name =" 100InventoryLinksContractByLinkidPost " ></a >
109
+ # ** 100InventoryLinksContractByLinkidPost **
110
+ > Model100InventoryLinksContractResponse38 100InventoryLinksContractByLinkidPost (linkid, body)
125
111
126
- Update active Contract by ContractID
112
+ Create new Contract on specified link
127
113
128
- Update active Contract by ContractID
114
+ Create new Contract on specified link
129
115
130
116
### Example
131
117
``` java
132
118
// Import classes:
133
- // import invalidPackageName.ApiClient;
134
119
// import invalidPackageName.ApiException;
135
- // import invalidPackageName.Configuration;
136
- // import invalidPackageName.auth.*;
137
120
// import TelstraTPN.ContractsApi;
138
121
139
- ApiClient defaultClient = Configuration . getDefaultApiClient();
140
-
141
- // Configure OAuth2 access token for authorization: auth
142
- OAuth auth = (OAuth ) defaultClient. getAuthentication(" auth" );
143
- auth. setAccessToken(" YOUR ACCESS TOKEN" );
144
122
145
123
ContractsApi apiInstance = new ContractsApi ();
146
124
String linkid = " linkid_example" ; // String | Unique identifier representing a specific link
147
- String contractid = " contractid_example" ; // String | Unique identifier representing a specific contract
148
- Model100InventoryLinksContractRequest body = new Model100InventoryLinksContractRequest (); // Model100InventoryLinksContractRequest |
125
+ Model100InventoryLinksContractRequest37 body = new Model100InventoryLinksContractRequest37 (); // Model100InventoryLinksContractRequest37 |
149
126
try {
150
- Model100InventoryLinksContractResponse31 result = apiInstance. updateActiveContractByContractID (linkid, contractid , body);
127
+ Model100InventoryLinksContractResponse38 result = apiInstance. 100InventoryLinksContractByLinkidPost (linkid, body);
151
128
System . out. println(result);
152
129
} catch (ApiException e) {
153
- System . err. println(" Exception when calling ContractsApi#updateActiveContractByContractID " );
130
+ System . err. println(" Exception when calling ContractsApi#100InventoryLinksContractByLinkidPost " );
154
131
e. printStackTrace();
155
132
}
156
133
```
@@ -160,16 +137,15 @@ try {
160
137
Name | Type | Description | Notes
161
138
------------- | ------------- | ------------- | -------------
162
139
** linkid** | ** String** | Unique identifier representing a specific link |
163
- ** contractid** | ** String** | Unique identifier representing a specific contract |
164
- ** body** | [ ** Model100InventoryLinksContractRequest** ] ( Model100InventoryLinksContractRequest.md ) | | [ optional]
140
+ ** body** | [ ** Model100InventoryLinksContractRequest37** ] ( Model100InventoryLinksContractRequest37.md ) | | [ optional]
165
141
166
142
### Return type
167
143
168
- [ ** Model100InventoryLinksContractResponse31 ** ] ( Model100InventoryLinksContractResponse31 .md)
144
+ [ ** Model100InventoryLinksContractResponse38 ** ] ( Model100InventoryLinksContractResponse38 .md)
169
145
170
146
### Authorization
171
147
172
- [ auth ] ( ../README.md#auth )
148
+ No authorization required
173
149
174
150
### HTTP request headers
175
151
0 commit comments