Skip to content
Merged

LEM v4 #1197

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Adyen.Test/LegalEntityManagementTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void GetTermsOfServiceStatus()
var service = new TermsOfServiceService(client);
var response = service.GetTermsOfServiceInformationForLegalEntity("id123");
ClientInterfaceSubstitute.Received().RequestAsync(
"https://kyc-test.adyen.com/lem/v3/legalEntities/id123/termsOfServiceAcceptanceInfos",
"https://kyc-test.adyen.com/lem/v4/legalEntities/id123/termsOfServiceAcceptanceInfos",
null,
null,
new HttpMethod("GET"), default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -114,7 +114,7 @@ public enum TypeEnum
/// <param name="acceptedBy">The unique identifier of the user that accepted the Terms of Service..</param>
/// <param name="id">The unique identifier of the Terms of Service acceptance..</param>
/// <param name="ipAddress">The IP address of the user that accepted the Terms of Service..</param>
/// <param name="language">The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English..</param>
/// <param name="language">The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information..</param>
/// <param name="termsOfServiceDocumentId">The unique identifier of the Terms of Service document..</param>
/// <param name="type">The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard** * **kycOnInvite** .</param>
public AcceptTermsOfServiceResponse(string acceptedBy = default(string), string id = default(string), string ipAddress = default(string), string language = default(string), string termsOfServiceDocumentId = default(string), TypeEnum? type = default(TypeEnum?))
Expand Down Expand Up @@ -149,9 +149,9 @@ public enum TypeEnum
public string IpAddress { get; set; }

/// <summary>
/// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.
/// The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information.
/// </summary>
/// <value>The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.</value>
/// <value>The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information.</value>
[DataMember(Name = "language", EmitDefaultValue = false)]
public string Language { get; set; }

Expand Down
31 changes: 16 additions & 15 deletions Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -40,31 +40,32 @@ public partial class AdditionalBankIdentification : IEquatable<AdditionalBankIde
public enum TypeEnum
{
/// <summary>
/// Enum GbSortCode for value: gbSortCode
/// Enum AuBsbCode for value: auBsbCode
/// </summary>
[EnumMember(Value = "gbSortCode")]
GbSortCode = 1,
[EnumMember(Value = "auBsbCode")]
AuBsbCode = 1,

/// <summary>
/// Enum UsRoutingNumber for value: usRoutingNumber
/// Enum CaRoutingNumber for value: caRoutingNumber
/// </summary>
[EnumMember(Value = "usRoutingNumber")]
UsRoutingNumber = 2,
[EnumMember(Value = "caRoutingNumber")]
CaRoutingNumber = 2,

/// <summary>
/// Enum AuBsbCode for value: auBsbCode
/// Enum GbSortCode for value: gbSortCode
/// </summary>
[EnumMember(Value = "auBsbCode")]
AuBsbCode = 3,
[EnumMember(Value = "gbSortCode")]
GbSortCode = 3,

/// <summary>
/// Enum CaRoutingNumber for value: caRoutingNumber
/// Enum UsRoutingNumber for value: usRoutingNumber
/// </summary>
[EnumMember(Value = "caRoutingNumber")]
CaRoutingNumber = 4
[EnumMember(Value = "usRoutingNumber")]
UsRoutingNumber = 4

}
Comment on lines 42 to 66

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The underlying integer values of TypeEnum have been reordered, which is a source-breaking change for consumers who might cast these enum values to integers. For example, GbSortCode was 1 and is now 3. While the library's README warns against relying on enum integer values, this change should be explicitly documented in the pull request description as a breaking change to alert consumers.



/// <summary>
/// The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.
/// </summary>
Expand Down
8 changes: 4 additions & 4 deletions Adyen/Model/LegalEntityManagement/Address.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -43,7 +43,7 @@ protected Address() { }
/// <param name="city">The name of the city. Required if &#x60;stateOrProvince&#x60; is provided. If you specify the city, you must also send &#x60;postalCode&#x60; and &#x60;street&#x60;..</param>
/// <param name="country">The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. (required).</param>
/// <param name="postalCode">The postal code. Required if &#x60;stateOrProvince&#x60; and/or &#x60;city&#x60; is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA..</param>
/// <param name="stateOrProvince">The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;..</param>
/// <param name="stateOrProvince">The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;..</param>
/// <param name="street">The name of the street, and the house or building number. Required if &#x60;stateOrProvince&#x60; and/or &#x60;city&#x60; is provided..</param>
/// <param name="street2">The apartment, unit, or suite number..</param>
public Address(string city = default(string), string country = default(string), string postalCode = default(string), string stateOrProvince = default(string), string street = default(string), string street2 = default(string))
Expand Down Expand Up @@ -78,9 +78,9 @@ protected Address() { }
public string PostalCode { get; set; }

/// <summary>
/// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;.
/// The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;.
/// </summary>
/// <value>The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;.</value>
/// <value>The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. Required for Australia and New Zealand. If you specify the state or province, you must also send &#x60;city&#x60;, &#x60;postalCode&#x60;, and &#x60;street&#x60;.</value>
[DataMember(Name = "stateOrProvince", EmitDefaultValue = false)]
public string StateOrProvince { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/LegalEntityManagement/Amount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
8 changes: 4 additions & 4 deletions Adyen/Model/LegalEntityManagement/Attachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -44,7 +44,7 @@ protected Attachment() { }
/// <param name="contentType">The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. .</param>
/// <param name="filename">The name of the file including the file extension..</param>
/// <param name="pageName">The name of the file including the file extension..</param>
/// <param name="pageType">Specifies which side of the ID card is uploaded. * When &#x60;type&#x60; is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments..</param>
/// <param name="pageType">Specifies which side of the ID card is uploaded. * If the &#x60;type&#x60; is **driversLicense** or **identityCard**, you must set this to **front** or **back** and include both sides in the same API request. * For any other types, when this is omitted, we infer the page number based on the order of attachments..</param>
public Attachment(byte[] content = default(byte[]), string contentType = default(string), string filename = default(string), string pageName = default(string), string pageType = default(string))
{
this.Content = content;
Expand Down Expand Up @@ -85,9 +85,9 @@ protected Attachment() { }
public string PageName { get; set; }

/// <summary>
/// Specifies which side of the ID card is uploaded. * When &#x60;type&#x60; is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.
/// Specifies which side of the ID card is uploaded. * If the &#x60;type&#x60; is **driversLicense** or **identityCard**, you must set this to **front** or **back** and include both sides in the same API request. * For any other types, when this is omitted, we infer the page number based on the order of attachments.
/// </summary>
/// <value>Specifies which side of the ID card is uploaded. * When &#x60;type&#x60; is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.</value>
/// <value>Specifies which side of the ID card is uploaded. * If the &#x60;type&#x60; is **driversLicense** or **identityCard**, you must set this to **front** or **back** and include both sides in the same API request. * For any other types, when this is omitted, we infer the page number based on the order of attachments.</value>
[DataMember(Name = "pageType", EmitDefaultValue = false)]
public string PageType { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/LegalEntityManagement/BankAccountInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion Adyen/Model/LegalEntityManagement/BirthData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Legal Entity Management API
*
*
* The version of the OpenAPI document: 3
* The version of the OpenAPI document: 4
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Loading
Loading