Skip to content

Commit add18da

Browse files
authored
Merge pull request #12 from messente/travis
release version 3.2.0
2 parents b18b16b + 27fa1d3 commit add18da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+739
-41
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ docs/SyncNumberLookupSuccess.md
6262
docs/Telegram.md
6363
docs/TextStore.md
6464
docs/Viber.md
65+
docs/ViberVideo.md
6566
docs/WhatsApp.md
6667
docs/WhatsAppComponent.md
6768
docs/WhatsAppCurrency.md
@@ -146,6 +147,7 @@ src/com.Messente.Api/Model/SyncNumberLookupSuccess.cs
146147
src/com.Messente.Api/Model/Telegram.cs
147148
src/com.Messente.Api/Model/TextStore.cs
148149
src/com.Messente.Api/Model/Viber.cs
150+
src/com.Messente.Api/Model/ViberVideo.cs
149151
src/com.Messente.Api/Model/WhatsApp.cs
150152
src/com.Messente.Api/Model/WhatsAppComponent.cs
151153
src/com.Messente.Api/Model/WhatsAppCurrency.cs

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- C# package version: 3.1.0
4+
- C# package version: 3.2.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -11,11 +11,11 @@ Install Messente API library via NuGet Package Manager or .NET CLI.
1111

1212
### Package Manager
1313

14-
`Install-Package com.Messente.Api -Version 3.1.0`
14+
`Install-Package com.Messente.Api -Version 3.2.0`
1515

1616
### .NET CLI
1717

18-
`dotnet add package com.Messente.Api --version 3.1.0`
18+
`dotnet add package com.Messente.Api --version 3.2.0`
1919

2020
## Features
2121

api/openapi.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,6 +1980,11 @@ components:
19801980
validity: 360
19811981
text: text
19821982
button_text: button_text
1983+
video:
1984+
duration: 6
1985+
thumbnail: thumbnail
1986+
url: url
1987+
file_size: 0
19831988
ttl: 21600
19841989
- sender: sender
19851990
image_url: image_url
@@ -1988,6 +1993,11 @@ components:
19881993
validity: 360
19891994
text: text
19901995
button_text: button_text
1996+
video:
1997+
duration: 6
1998+
thumbnail: thumbnail
1999+
url: url
2000+
file_size: 0
19912001
ttl: 21600
19922002
to: to
19932003
priority: low
@@ -2052,6 +2062,11 @@ components:
20522062
validity: 360
20532063
text: text
20542064
button_text: button_text
2065+
video:
2066+
duration: 6
2067+
thumbnail: thumbnail
2068+
url: url
2069+
file_size: 0
20552070
ttl: 21600
20562071
properties:
20572072
sender:
@@ -2096,6 +2111,35 @@ components:
20962111
enum:
20972112
- viber
20982113
type: string
2114+
video:
2115+
$ref: '#/components/schemas/ViberVideo'
2116+
type: object
2117+
ViberVideo:
2118+
description: Viber video object
2119+
example:
2120+
duration: 6
2121+
thumbnail: thumbnail
2122+
url: url
2123+
file_size: 0
2124+
properties:
2125+
url:
2126+
description: URL pointing to the video resource.
2127+
type: string
2128+
thumbnail:
2129+
description: URL pointing to the video thumbnail resource.
2130+
type: string
2131+
file_size:
2132+
description: Size of the video file in bytes. Cannot be larger than 200MB.
2133+
type: integer
2134+
duration:
2135+
description: Duration of the video in seconds. Cannot be longer than 600
2136+
seconds.
2137+
type: integer
2138+
required:
2139+
- duration
2140+
- file_size
2141+
- thumbnail
2142+
- url
20992143
type: object
21002144
WhatsApp:
21012145
description: |-
@@ -2573,6 +2617,11 @@ components:
25732617
validity: 360
25742618
text: text
25752619
button_text: button_text
2620+
video:
2621+
duration: 6
2622+
thumbnail: thumbnail
2623+
url: url
2624+
file_size: 0
25762625
ttl: 21600
25772626
- sender: sender
25782627
image_url: image_url
@@ -2581,6 +2630,11 @@ components:
25812630
validity: 360
25822631
text: text
25832632
button_text: button_text
2633+
video:
2634+
duration: 6
2635+
thumbnail: thumbnail
2636+
url: url
2637+
file_size: 0
25842638
ttl: 21600
25852639
to: to
25862640
priority: low
@@ -2595,6 +2649,11 @@ components:
25952649
validity: 360
25962650
text: text
25972651
button_text: button_text
2652+
video:
2653+
duration: 6
2654+
thumbnail: thumbnail
2655+
url: url
2656+
file_size: 0
25982657
ttl: 21600
25992658
- sender: sender
26002659
image_url: image_url
@@ -2603,6 +2662,11 @@ components:
26032662
validity: 360
26042663
text: text
26052664
button_text: button_text
2665+
video:
2666+
duration: 6
2667+
thumbnail: thumbnail
2668+
url: url
2669+
file_size: 0
26062670
ttl: 21600
26072671
to: to
26082672
priority: low

docs/OmnimessageMessagesInner.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**ButtonUrl** | **string** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1313
**ButtonText** | **string** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1414
**Channel** | **string** | The channel used to deliver the message | [optional] [default to ChannelEnum.Telegram]
15+
**Video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1516
**Autoconvert** | **string** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
1617
**Udh** | **string** | hex-encoded string containing SMS UDH | [optional]
1718
**Template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional]

docs/Viber.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**ButtonUrl** | **string** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
1414
**ButtonText** | **string** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
1515
**Channel** | **string** | The channel used to deliver the message | [optional] [default to ChannelEnum.Viber]
16+
**Video** | [**ViberVideo**](ViberVideo.md) | | [optional]
1617

1718
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1819

docs/ViberVideo.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# com.Messente.Api.Model.ViberVideo
2+
Viber video object
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Url** | **string** | URL pointing to the video resource. |
9+
**Thumbnail** | **string** | URL pointing to the video thumbnail resource. |
10+
**FileSize** | **int** | Size of the video file in bytes. Cannot be larger than 200MB. |
11+
**Duration** | **int** | Duration of the video in seconds. Cannot be longer than 600 seconds. |
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+

src/com.Messente.Api/Client/Configuration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
3434
/// Version of the package.
3535
/// </summary>
3636
/// <value>Version of the package.</value>
37-
public const string Version = "3.1.0";
37+
public const string Version = "3.2.0";
3838

3939
/// <summary>
4040
/// Identifier for ISO 8601 DateTime Format
@@ -118,7 +118,7 @@ public class Configuration : IReadableConfiguration
118118
public Configuration()
119119
{
120120
Proxy = null;
121-
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.1.0/csharp");
121+
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.2.0/csharp");
122122
BasePath = "https://api.messente.com/v1";
123123
DefaultHeaders = new ConcurrentDictionary<string, string>();
124124
ApiKey = new ConcurrentDictionary<string, string>();
@@ -541,7 +541,7 @@ public static string ToDebugReport()
541541
report += " OS: " + System.Environment.OSVersion + "\n";
542542
report += " .NET Framework Version: " + System.Environment.Version + "\n";
543543
report += " Version of the API: 2.0.0\n";
544-
report += " SDK Package Version: 3.1.0\n";
544+
report += " SDK Package Version: 3.2.0\n";
545545

546546
return report;
547547
}

src/com.Messente.Api/Model/BulkOmniMessageCreateSuccessResponse.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public partial class BulkOmniMessageCreateSuccessResponse : IValidatableObject
3636
/// Initializes a new instance of the <see cref="BulkOmniMessageCreateSuccessResponse" /> class.
3737
/// </summary>
3838
[JsonConstructorAttribute]
39-
protected BulkOmniMessageCreateSuccessResponse() { }
39+
protected BulkOmniMessageCreateSuccessResponse()
40+
{
41+
this.AdditionalProperties = new Dictionary<string, object>();
42+
}
4043
/// <summary>
4144
/// Initializes a new instance of the <see cref="BulkOmniMessageCreateSuccessResponse" /> class.
4245
/// </summary>
@@ -49,6 +52,7 @@ protected BulkOmniMessageCreateSuccessResponse() { }
4952
throw new ArgumentNullException("messages is a required property for BulkOmniMessageCreateSuccessResponse and cannot be null");
5053
}
5154
this.Messages = messages;
55+
this.AdditionalProperties = new Dictionary<string, object>();
5256
}
5357

5458
/// <summary>
@@ -58,6 +62,12 @@ protected BulkOmniMessageCreateSuccessResponse() { }
5862
[DataMember(Name = "messages", IsRequired = true, EmitDefaultValue = true)]
5963
public List<BulkOmniMessageCreateSuccessResponseMessagesInner> Messages { get; set; }
6064

65+
/// <summary>
66+
/// Gets or Sets additional properties
67+
/// </summary>
68+
[JsonExtensionData]
69+
public IDictionary<string, object> AdditionalProperties { get; set; }
70+
6171
/// <summary>
6272
/// Returns the string presentation of the object
6373
/// </summary>
@@ -67,6 +77,7 @@ public override string ToString()
6777
StringBuilder sb = new StringBuilder();
6878
sb.Append("class BulkOmniMessageCreateSuccessResponse {\n");
6979
sb.Append(" Messages: ").Append(Messages).Append("\n");
80+
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
7081
sb.Append("}\n");
7182
return sb.ToString();
7283
}

src/com.Messente.Api/Model/BulkOmnimessage.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public partial class BulkOmnimessage : IValidatableObject
3636
/// Initializes a new instance of the <see cref="BulkOmnimessage" /> class.
3737
/// </summary>
3838
[JsonConstructorAttribute]
39-
protected BulkOmnimessage() { }
39+
protected BulkOmnimessage()
40+
{
41+
this.AdditionalProperties = new Dictionary<string, object>();
42+
}
4043
/// <summary>
4144
/// Initializes a new instance of the <see cref="BulkOmnimessage" /> class.
4245
/// </summary>
@@ -49,6 +52,7 @@ protected BulkOmnimessage() { }
4952
throw new ArgumentNullException("messages is a required property for BulkOmnimessage and cannot be null");
5053
}
5154
this.Messages = messages;
55+
this.AdditionalProperties = new Dictionary<string, object>();
5256
}
5357

5458
/// <summary>
@@ -58,6 +62,12 @@ protected BulkOmnimessage() { }
5862
[DataMember(Name = "messages", IsRequired = true, EmitDefaultValue = true)]
5963
public List<Omnimessage> Messages { get; set; }
6064

65+
/// <summary>
66+
/// Gets or Sets additional properties
67+
/// </summary>
68+
[JsonExtensionData]
69+
public IDictionary<string, object> AdditionalProperties { get; set; }
70+
6171
/// <summary>
6272
/// Returns the string presentation of the object
6373
/// </summary>
@@ -67,6 +77,7 @@ public override string ToString()
6777
StringBuilder sb = new StringBuilder();
6878
sb.Append("class BulkOmnimessage {\n");
6979
sb.Append(" Messages: ").Append(Messages).Append("\n");
80+
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
7081
sb.Append("}\n");
7182
return sb.ToString();
7283
}

src/com.Messente.Api/Model/ContactEnvelope.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class ContactEnvelope : IValidatableObject
3939
public ContactEnvelope(ContactResponseFields contact = default(ContactResponseFields))
4040
{
4141
this.Contact = contact;
42+
this.AdditionalProperties = new Dictionary<string, object>();
4243
}
4344

4445
/// <summary>
@@ -47,6 +48,12 @@ public partial class ContactEnvelope : IValidatableObject
4748
[DataMember(Name = "contact", EmitDefaultValue = false)]
4849
public ContactResponseFields Contact { get; set; }
4950

51+
/// <summary>
52+
/// Gets or Sets additional properties
53+
/// </summary>
54+
[JsonExtensionData]
55+
public IDictionary<string, object> AdditionalProperties { get; set; }
56+
5057
/// <summary>
5158
/// Returns the string presentation of the object
5259
/// </summary>
@@ -56,6 +63,7 @@ public override string ToString()
5663
StringBuilder sb = new StringBuilder();
5764
sb.Append("class ContactEnvelope {\n");
5865
sb.Append(" Contact: ").Append(Contact).Append("\n");
66+
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
5967
sb.Append("}\n");
6068
return sb.ToString();
6169
}

src/com.Messente.Api/Model/ContactFields.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ public partial class ContactFields : IValidatableObject
3636
/// Initializes a new instance of the <see cref="ContactFields" /> class.
3737
/// </summary>
3838
[JsonConstructorAttribute]
39-
protected ContactFields() { }
39+
protected ContactFields()
40+
{
41+
this.AdditionalProperties = new Dictionary<string, object>();
42+
}
4043
/// <summary>
4144
/// Initializes a new instance of the <see cref="ContactFields" /> class.
4245
/// </summary>
@@ -67,6 +70,7 @@ protected ContactFields() { }
6770
this.Custom2 = custom2;
6871
this.Custom3 = custom3;
6972
this.Custom4 = custom4;
73+
this.AdditionalProperties = new Dictionary<string, object>();
7074
}
7175

7276
/// <summary>
@@ -139,6 +143,12 @@ protected ContactFields() { }
139143
[DataMember(Name = "custom4", EmitDefaultValue = true)]
140144
public string Custom4 { get; set; }
141145

146+
/// <summary>
147+
/// Gets or Sets additional properties
148+
/// </summary>
149+
[JsonExtensionData]
150+
public IDictionary<string, object> AdditionalProperties { get; set; }
151+
142152
/// <summary>
143153
/// Returns the string presentation of the object
144154
/// </summary>
@@ -157,6 +167,7 @@ public override string ToString()
157167
sb.Append(" Custom2: ").Append(Custom2).Append("\n");
158168
sb.Append(" Custom3: ").Append(Custom3).Append("\n");
159169
sb.Append(" Custom4: ").Append(Custom4).Append("\n");
170+
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
160171
sb.Append("}\n");
161172
return sb.ToString();
162173
}

src/com.Messente.Api/Model/ContactListEnvelope.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public partial class ContactListEnvelope : IValidatableObject
3939
public ContactListEnvelope(List<ContactResponseFields> contacts = default(List<ContactResponseFields>))
4040
{
4141
this.Contacts = contacts;
42+
this.AdditionalProperties = new Dictionary<string, object>();
4243
}
4344

4445
/// <summary>
@@ -48,6 +49,12 @@ public partial class ContactListEnvelope : IValidatableObject
4849
[DataMember(Name = "contacts", EmitDefaultValue = false)]
4950
public List<ContactResponseFields> Contacts { get; set; }
5051

52+
/// <summary>
53+
/// Gets or Sets additional properties
54+
/// </summary>
55+
[JsonExtensionData]
56+
public IDictionary<string, object> AdditionalProperties { get; set; }
57+
5158
/// <summary>
5259
/// Returns the string presentation of the object
5360
/// </summary>
@@ -57,6 +64,7 @@ public override string ToString()
5764
StringBuilder sb = new StringBuilder();
5865
sb.Append("class ContactListEnvelope {\n");
5966
sb.Append(" Contacts: ").Append(Contacts).Append("\n");
67+
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
6068
sb.Append("}\n");
6169
return sb.ToString();
6270
}

0 commit comments

Comments
 (0)