@@ -5973,7 +5973,7 @@ <h1>Accounting API</h1>
5973
5973
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
5974
5974
<div class="app-desc">Version: 1.0.0</div>
5975
5975
<!--
5976
- <div class="app-desc">Version: 2.2.2 </div>
5976
+ <div class="app-desc">Version: 2.2.4 </div>
5977
5977
<hr>
5978
5978
<div id="app-description" class="app-desc">
5979
5979
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -15034,7 +15034,7 @@ <h3>Usage and SDK Samples</h3>
15034
15034
15035
15035
<div class="tab-content">
15036
15036
<div class="tab-pane active" id="examples-Accounting-createCreditNoteAllocation-0-curl">
15037
- <pre class="prettyprint"><code class="language-bsh">curl -X "https://api.xero.com/api.xro/2.0/CreditNotes/{CreditNoteID}/Allocations"</code></pre>
15037
+ <pre class="prettyprint"><code class="language-bsh">curl -X "https://api.xero.com/api.xro/2.0/CreditNotes/{CreditNoteID}/Allocations?summarizeErrors=true "</code></pre>
15038
15038
</div>
15039
15039
<div class="tab-pane" id="examples-Accounting-createCreditNoteAllocation-0-java">
15040
15040
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
@@ -15058,8 +15058,9 @@ <h3>Usage and SDK Samples</h3>
15058
15058
String xeroTenantId = YOUR_XERO_TENANT_ID; // String | Xero identifier for Tenant
15059
15059
UUID creditNoteID = 00000000-0000-0000-000-000000000000; // UUID | Unique identifier for a Credit Note
15060
15060
Allocations allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] }; // Allocations |
15061
+ Boolean summarizeErrors = true; // Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors
15061
15062
try {
15062
- Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations);
15063
+ Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors );
15063
15064
System.out.println(result);
15064
15065
} catch (ApiException e) {
15065
15066
System.err.println("Exception when calling AccountingApi#createCreditNoteAllocation");
@@ -15079,8 +15080,9 @@ <h3>Usage and SDK Samples</h3>
15079
15080
String xeroTenantId = YOUR_XERO_TENANT_ID; // String | Xero identifier for Tenant
15080
15081
UUID creditNoteID = 00000000-0000-0000-000-000000000000; // UUID | Unique identifier for a Credit Note
15081
15082
Allocations allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] }; // Allocations |
15083
+ Boolean summarizeErrors = true; // Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors
15082
15084
try {
15083
- Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations);
15085
+ Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors );
15084
15086
System.out.println(result);
15085
15087
} catch (ApiException e) {
15086
15088
System.err.println("Exception when calling AccountingApi#createCreditNoteAllocation");
@@ -15102,13 +15104,15 @@ <h3>Usage and SDK Samples</h3>
15102
15104
String *xeroTenantId = YOUR_XERO_TENANT_ID; // Xero identifier for Tenant (default to null)
15103
15105
UUID *creditNoteID = 00000000-0000-0000-000-000000000000; // Unique identifier for a Credit Note (default to null)
15104
15106
Allocations *allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] }; //
15107
+ Boolean *summarizeErrors = true; // If false return 200 OK and mix of successfully created obejcts and any with validation errors (optional) (default to false)
15105
15108
15106
15109
AccountingApi *apiInstance = [[AccountingApi alloc] init];
15107
15110
15108
15111
// Allows you to create Allocation on CreditNote
15109
15112
[apiInstance createCreditNoteAllocationWith:xeroTenantId
15110
15113
creditNoteID:creditNoteID
15111
15114
allocations:allocations
15115
+ summarizeErrors:summarizeErrors
15112
15116
completionHandler: ^(Allocations output, NSError* error) {
15113
15117
if (output) {
15114
15118
NSLog(@"%@", output);
@@ -15134,8 +15138,10 @@ <h3>Usage and SDK Samples</h3>
15134
15138
const xeroTenantId = "YOUR_XERO_TENANT_ID"; // {String} Xero identifier for Tenant
15135
15139
const creditNoteID = "00000000-0000-0000-000-000000000000"; // {UUID} Unique identifier for a Credit Note
15136
15140
const allocations:Allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] }; // {Allocations}
15141
+ const summarizeErrors = true; // {Boolean} If false return 200 OK and mix of successfully created obejcts and any with validation errors
15142
+
15137
15143
try {
15138
- const response: any = await xero.accountingApi.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations);
15144
+ const response: any = await xero.accountingApi.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors );
15139
15145
console.log(response.body || response.response.statusCode)
15140
15146
} catch (err) {
15141
15147
console.log(`There was an ERROR! \n Status Code: ${err.response.statusCode}.`);
@@ -15158,7 +15164,7 @@ <h3>Usage and SDK Samples</h3>
15158
15164
console.log('API called successfully. Returned data: ' + data);
15159
15165
}
15160
15166
};
15161
- api.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, callback);
15167
+ api.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, opts, callback);
15162
15168
--></code></pre>
15163
15169
</div>
15164
15170
@@ -15186,11 +15192,12 @@ <h3>Usage and SDK Samples</h3>
15186
15192
var xeroTenantId = YOUR_XERO_TENANT_ID; // String | Xero identifier for Tenant (default to null)
15187
15193
var creditNoteID = new UUID(); // UUID | Unique identifier for a Credit Note (default to null)
15188
15194
var allocations = new Allocations(); // Allocations |
15195
+ var summarizeErrors = true; // Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors (optional) (default to false)
15189
15196
15190
15197
try
15191
15198
{
15192
15199
// Allows you to create Allocation on CreditNote
15193
- Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations);
15200
+ Allocations result = apiInstance.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors );
15194
15201
Debug.WriteLine(result);
15195
15202
}
15196
15203
catch (Exception e)
@@ -15238,9 +15245,10 @@ <h3>Usage and SDK Samples</h3>
15238
15245
my $xeroTenantId = YOUR_XERO_TENANT_ID; # String | Xero identifier for Tenant
15239
15246
my $creditNoteID = 00000000-0000-0000-000-000000000000; # UUID | Unique identifier for a Credit Note
15240
15247
my $allocations = ::Object::Allocations->new(); # Allocations |
15248
+ my $summarizeErrors = true; # Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors
15241
15249
15242
15250
eval {
15243
- my $result = $api_instance->createCreditNoteAllocation(xeroTenantId => $xeroTenantId, creditNoteID => $creditNoteID, allocations => $allocations);
15251
+ my $result = $api_instance->createCreditNoteAllocation(xeroTenantId => $xeroTenantId, creditNoteID => $creditNoteID, allocations => $allocations, summarizeErrors => $summarizeErrors );
15244
15252
print Dumper($result);
15245
15253
};
15246
15254
if ($@) {
@@ -15263,10 +15271,11 @@ <h3>Usage and SDK Samples</h3>
15263
15271
xeroTenantId = YOUR_XERO_TENANT_ID # String | Xero identifier for Tenant (default to null)
15264
15272
creditNoteID = 00000000-0000-0000-000-000000000000 # UUID | Unique identifier for a Credit Note (default to null)
15265
15273
allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] } # Allocations |
15274
+ summarizeErrors = true # Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors (optional) (default to false)
15266
15275
15267
15276
try:
15268
15277
# Allows you to create Allocation on CreditNote
15269
- api_response = api_instance.create_credit_note_allocation(xeroTenantId, creditNoteID, allocations)
15278
+ api_response = api_instance.create_credit_note_allocation(xeroTenantId, creditNoteID, allocations, summarizeErrors=summarizeErrors )
15270
15279
pprint(api_response)
15271
15280
except ApiException as e:
15272
15281
print("Exception when calling AccountingApi->createCreditNoteAllocation: %s\n" % e)</code></pre>
@@ -15279,9 +15288,10 @@ <h3>Usage and SDK Samples</h3>
15279
15288
let xeroTenantId = YOUR_XERO_TENANT_ID; // String
15280
15289
let creditNoteID = 00000000-0000-0000-000-000000000000; // UUID
15281
15290
let allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] }; // Allocations
15291
+ let summarizeErrors = true; // Boolean
15282
15292
15283
15293
let mut context = AccountingApi::Context::default();
15284
- let result = client.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, &context).wait();
15294
+ let result = client.createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors, &context).wait();
15285
15295
println!("{:?}", result);
15286
15296
15287
15297
}
@@ -15415,6 +15425,33 @@ <h2>Parameters</h2>
15415
15425
</table>
15416
15426
15417
15427
15428
+ <div class="methodsubtabletitle">Query parameters</div>
15429
+ <table id="methodsubtable">
15430
+ <tr>
15431
+ <th width="150px">Name</th>
15432
+ <th>Description</th>
15433
+ </tr>
15434
+ <tr><td style="width:150px;">summarizeErrors</td>
15435
+ <td>
15436
+
15437
+
15438
+ <div id="d2e199_createCreditNoteAllocation_summarizeErrors">
15439
+ <div class="json-schema-view">
15440
+ <div class="primitive">
15441
+ <span class="type">
15442
+ Boolean
15443
+ </span>
15444
+
15445
+ <div class="inner description marked">
15446
+ If false return 200 OK and mix of successfully created obejcts and any with validation errors
15447
+ </div>
15448
+ </div>
15449
+ </div>
15450
+ </div>
15451
+ </td>
15452
+ </tr>
15453
+
15454
+ </table>
15418
15455
<!--
15419
15456
<h2>Responses</h2>
15420
15457
<h3 id="examples-Accounting-createCreditNoteAllocation-title-200"></h3>
0 commit comments