Skip to content

Commit 2e868a9

Browse files
author
evgeny.ivanov
committed
SDK regenerated by CI server [ci skip]
1 parent a735e88 commit 2e868a9

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

Sources/AsposeWordsCloud/Api/WordsAPI.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10964,7 +10964,7 @@ public class WordsAPI {
1096410964
}
1096510965

1096610966
// Async representation of saveAsOnline method
10967-
// Converts a document in cloud storage to the specified format.
10967+
// Converts a document to the specified format.
1096810968
public func saveAsOnline(request : SaveAsOnlineRequest, callback : @escaping (_ response : SaveAsOnlineResponse?, _ error : Error?) -> ()) {
1096910969
do {
1097010970
apiInvoker.invoke(
@@ -10990,7 +10990,7 @@ public class WordsAPI {
1099010990
}
1099110991

1099210992
// Sync representation of saveAsOnline method
10993-
// Converts a document in cloud storage to the specified format.
10993+
// Converts a document to the specified format.
1099410994
public func saveAsOnline(request : SaveAsOnlineRequest) throws -> SaveAsOnlineResponse {
1099510995
let semaphore = DispatchSemaphore(value: 0);
1099610996
var responseObject : SaveAsOnlineResponse? = nil;
@@ -11148,7 +11148,7 @@ public class WordsAPI {
1114811148
}
1114911149

1115011150
// Async representation of saveAsTiffOnline method
11151-
// Converts a document in cloud storage to TIFF format using detailed conversion settings.
11151+
// Converts a document to TIFF format using detailed conversion settings.
1115211152
public func saveAsTiffOnline(request : SaveAsTiffOnlineRequest, callback : @escaping (_ response : SaveAsTiffOnlineResponse?, _ error : Error?) -> ()) {
1115311153
do {
1115411154
apiInvoker.invoke(
@@ -11174,7 +11174,7 @@ public class WordsAPI {
1117411174
}
1117511175

1117611176
// Sync representation of saveAsTiffOnline method
11177-
// Converts a document in cloud storage to TIFF format using detailed conversion settings.
11177+
// Converts a document to TIFF format using detailed conversion settings.
1117811178
public func saveAsTiffOnline(request : SaveAsTiffOnlineRequest) throws -> SaveAsTiffOnlineResponse {
1117911179
let semaphore = DispatchSemaphore(value: 0);
1118011180
var responseObject : SaveAsTiffOnlineResponse? = nil;

Sources/AsposeWordsCloud/Model/Requests/AppendDocumentOnlineRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class AppendDocumentOnlineRequest : WordsApiRequest {
5959
self.revisionDateTime = revisionDateTime;
6060
}
6161

62-
// The document.
62+
// Original document.
6363
public func getDocument() -> InputStream {
6464
return self.document;
6565
}

Sources/AsposeWordsCloud/Model/Requests/GetDocumentFieldNamesOnlineRequest.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@ import Foundation
2929

3030
// Request model for getDocumentFieldNamesOnline operation.
3131
public class GetDocumentFieldNamesOnlineRequest : WordsApiRequest {
32-
private let document : InputStream;
32+
private let template : InputStream;
3333
private let loadEncoding : String?;
3434
private let password : String?;
3535
private let useNonMergeFields : Bool?;
3636

3737
private enum CodingKeys: String, CodingKey {
38-
case document;
38+
case template;
3939
case loadEncoding;
4040
case password;
4141
case useNonMergeFields;
4242
case invalidCodingKey;
4343
}
4444

4545
// Initializes a new instance of the GetDocumentFieldNamesOnlineRequest class.
46-
public init(document : InputStream, loadEncoding : String? = nil, password : String? = nil, useNonMergeFields : Bool? = nil) {
47-
self.document = document;
46+
public init(template : InputStream, loadEncoding : String? = nil, password : String? = nil, useNonMergeFields : Bool? = nil) {
47+
self.template = template;
4848
self.loadEncoding = loadEncoding;
4949
self.password = password;
5050
self.useNonMergeFields = useNonMergeFields;
5151
}
5252

53-
// The document.
54-
public func getDocument() -> InputStream {
55-
return self.document;
53+
// The template document.
54+
public func getTemplate() -> InputStream {
55+
return self.template;
5656
}
5757

5858
// Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
@@ -94,7 +94,7 @@ public class GetDocumentFieldNamesOnlineRequest : WordsApiRequest {
9494
urlBuilder.queryItems = queryItems;
9595
}
9696
var formParams : [RequestFormParam] = [];
97-
formParams.append(RequestFormParam(name: "document", body: try ObjectSerializer.serializeFile(value: self.getDocument()), contentType: "application/octet-stream"));
97+
formParams.append(RequestFormParam(name: "template", body: try ObjectSerializer.serializeFile(value: self.getTemplate()), contentType: "application/octet-stream"));
9898

9999

100100
var result = WordsApiRequestData(url: urlBuilder.url!, method: "PUT");

Tests/AsposeWordsCloudTests/MailMergeFiledsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MailMergeFiledsTests: BaseTestContext {
4242
func testGetDocumentFieldNamesOnline() throws {
4343
let localDocumentFile = "SampleExecuteTemplate.docx";
4444

45-
let request = GetDocumentFieldNamesOnlineRequest(document: InputStream(url: self.getLocalTestDataFolder().appendingPathComponent(mailMergeFolder + "/" + localDocumentFile, isDirectory: false))!, useNonMergeFields: true);
45+
let request = GetDocumentFieldNamesOnlineRequest(template: InputStream(url: self.getLocalTestDataFolder().appendingPathComponent(mailMergeFolder + "/" + localDocumentFile, isDirectory: false))!, useNonMergeFields: true);
4646
let actual = try super.getApi().getDocumentFieldNamesOnline(request: request);
4747
XCTAssertNotNil(actual.getFieldNames());
4848
XCTAssertNotNil(actual.getFieldNames()!.getNames());

0 commit comments

Comments
 (0)