Skip to content

Commit 453c2c5

Browse files
authored
Merge pull request #461 from immutable/feat/update-zkevm-api-2025-05-07-10-05-54
feat: update immutable zkEVM API package
2 parents 2fd515b + c994636 commit 453c2c5

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

src/Packages/ZkEvmApi/Documentation~/PhoneNumberOTPRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Phone number OTP request
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**PhoneNumber** | **string** | Phone number |
9+
**Channel** | **string** | | [optional]
910

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

src/Packages/ZkEvmApi/Runtime/Model/PhoneNumberOTPRequest.cs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,32 @@ namespace Immutable.Api.ZkEvm.Model
3131
[DataContract(Name = "PhoneNumberOTPRequest")]
3232
public partial class PhoneNumberOTPRequest
3333
{
34+
/// <summary>
35+
/// Defines Channel
36+
/// </summary>
37+
[JsonConverter(typeof(StringEnumConverter))]
38+
public enum ChannelEnum
39+
{
40+
/// <summary>
41+
/// Enum Sms for value: sms
42+
/// </summary>
43+
[EnumMember(Value = "sms")]
44+
Sms = 1,
45+
46+
/// <summary>
47+
/// Enum Whatsapp for value: whatsapp
48+
/// </summary>
49+
[EnumMember(Value = "whatsapp")]
50+
Whatsapp = 2
51+
}
52+
53+
54+
/// <summary>
55+
/// Gets or Sets Channel
56+
/// </summary>
57+
/// <example>sms</example>
58+
[DataMember(Name = "channel", EmitDefaultValue = false)]
59+
public ChannelEnum? Channel { get; set; }
3460
/// <summary>
3561
/// Initializes a new instance of the <see cref="PhoneNumberOTPRequest" /> class.
3662
/// </summary>
@@ -40,14 +66,16 @@ protected PhoneNumberOTPRequest() { }
4066
/// Initializes a new instance of the <see cref="PhoneNumberOTPRequest" /> class.
4167
/// </summary>
4268
/// <param name="phoneNumber">Phone number (required).</param>
43-
public PhoneNumberOTPRequest(string phoneNumber = default(string))
69+
/// <param name="channel">channel.</param>
70+
public PhoneNumberOTPRequest(string phoneNumber = default(string), ChannelEnum? channel = default(ChannelEnum?))
4471
{
4572
// to ensure "phoneNumber" is required (not null)
4673
if (phoneNumber == null)
4774
{
4875
throw new ArgumentNullException("phoneNumber is a required property for PhoneNumberOTPRequest and cannot be null");
4976
}
5077
this.PhoneNumber = phoneNumber;
78+
this.Channel = channel;
5179
}
5280

5381
/// <summary>
@@ -67,6 +95,7 @@ public override string ToString()
6795
StringBuilder sb = new StringBuilder();
6896
sb.Append("class PhoneNumberOTPRequest {\n");
6997
sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n");
98+
sb.Append(" Channel: ").Append(Channel).Append("\n");
7099
sb.Append("}\n");
71100
return sb.ToString();
72101
}

src/Packages/ZkEvmApi/api~/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8838,6 +8838,7 @@ components:
88388838
PhoneNumberOTPRequest:
88398839
description: Phone number OTP request
88408840
example:
8841+
channel: sms
88418842
phone_number: "+61412345678"
88428843
properties:
88438844
phone_number:
@@ -8846,6 +8847,12 @@ components:
88468847
maxLength: 50
88478848
minLength: 3
88488849
type: string
8850+
channel:
8851+
enum:
8852+
- sms
8853+
- whatsapp
8854+
example: sms
8855+
type: string
88498856
required:
88508857
- phone_number
88518858
type: object

0 commit comments

Comments
 (0)