Skip to content

Commit ce268fb

Browse files
committed
may release changes
1 parent 20fa824 commit ce268fb

File tree

70 files changed

+3114
-100
lines changed

Some content is hidden

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

70 files changed

+3114
-100
lines changed

Model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.cs

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ public partial class InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInfo
4040
/// <param name="HeaderStyle">HeaderStyle.</param>
4141
/// <param name="DeliveryLanguage">The language of the email that we send to your customers. Possible values are &#x60;zh-CN&#x60;, &#x60;zh-TW&#x60;, &#x60;en-US&#x60;, &#x60;fr-FR&#x60;, &#x60;de-DE&#x60;, &#x60;ja-JP&#x60;, &#x60;pt-BR&#x60;, &#x60;ru-RU&#x60; and &#x60;es-419&#x60;..</param>
4242
/// <param name="DefaultCurrencyCode">Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (&#x60;reversalInformation&#x60;) or a capture (&#x60;processingOptions.capture&#x60; is set to &#x60;true&#x60;), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. For details, see the &#x60;currency&#x60; field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency. .</param>
43-
/// <param name="PayerAuthentication3DSVersion">The 3D Secure payer authentication version or status for a merchant&#39;s invoice payments. Possible values are: - &#x60;1&#x60; - &#x60;2&#x60; - &#x60;None&#x60; - &#x60;Disabled&#x60; .</param>
44-
public InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation(string MerchantLogo = default(string), string MerchantDisplayName = default(string), string CustomEmailMessage = default(string), bool? EnableReminders = default(bool?), InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle HeaderStyle = default(InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle), string DeliveryLanguage = default(string), string DefaultCurrencyCode = default(string), string PayerAuthentication3DSVersion = default(string))
43+
/// <param name="PayerAuthentication3DSVersion">The 3D Secure payer authentication status for a merchant&#39;s invoice payments. (default to false).</param>
44+
/// <param name="ShowVatNumber">Display VAT number on Invoice. (default to false).</param>
45+
/// <param name="VatRegistrationNumber">Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes. .</param>
46+
public InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation(string MerchantLogo = default(string), string MerchantDisplayName = default(string), string CustomEmailMessage = default(string), bool? EnableReminders = default(bool?), InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle HeaderStyle = default(InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle), string DeliveryLanguage = default(string), string DefaultCurrencyCode = default(string), bool? PayerAuthentication3DSVersion = false, bool? ShowVatNumber = false, string VatRegistrationNumber = default(string))
4547
{
4648
this.MerchantLogo = MerchantLogo;
4749
this.MerchantDisplayName = MerchantDisplayName;
@@ -50,7 +52,25 @@ public partial class InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInfo
5052
this.HeaderStyle = HeaderStyle;
5153
this.DeliveryLanguage = DeliveryLanguage;
5254
this.DefaultCurrencyCode = DefaultCurrencyCode;
53-
this.PayerAuthentication3DSVersion = PayerAuthentication3DSVersion;
55+
// use default value if no "PayerAuthentication3DSVersion" provided
56+
if (PayerAuthentication3DSVersion == null)
57+
{
58+
this.PayerAuthentication3DSVersion = false;
59+
}
60+
else
61+
{
62+
this.PayerAuthentication3DSVersion = PayerAuthentication3DSVersion;
63+
}
64+
// use default value if no "ShowVatNumber" provided
65+
if (ShowVatNumber == null)
66+
{
67+
this.ShowVatNumber = false;
68+
}
69+
else
70+
{
71+
this.ShowVatNumber = ShowVatNumber;
72+
}
73+
this.VatRegistrationNumber = VatRegistrationNumber;
5474
}
5575

5676
/// <summary>
@@ -102,11 +122,25 @@ public partial class InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInfo
102122
public string DefaultCurrencyCode { get; set; }
103123

104124
/// <summary>
105-
/// The 3D Secure payer authentication version or status for a merchant&#39;s invoice payments. Possible values are: - &#x60;1&#x60; - &#x60;2&#x60; - &#x60;None&#x60; - &#x60;Disabled&#x60;
125+
/// The 3D Secure payer authentication status for a merchant&#39;s invoice payments.
106126
/// </summary>
107-
/// <value>The 3D Secure payer authentication version or status for a merchant&#39;s invoice payments. Possible values are: - &#x60;1&#x60; - &#x60;2&#x60; - &#x60;None&#x60; - &#x60;Disabled&#x60; </value>
127+
/// <value>The 3D Secure payer authentication status for a merchant&#39;s invoice payments.</value>
108128
[DataMember(Name="payerAuthentication3DSVersion", EmitDefaultValue=false)]
109-
public string PayerAuthentication3DSVersion { get; set; }
129+
public bool? PayerAuthentication3DSVersion { get; set; }
130+
131+
/// <summary>
132+
/// Display VAT number on Invoice.
133+
/// </summary>
134+
/// <value>Display VAT number on Invoice.</value>
135+
[DataMember(Name="showVatNumber", EmitDefaultValue=false)]
136+
public bool? ShowVatNumber { get; set; }
137+
138+
/// <summary>
139+
/// Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes.
140+
/// </summary>
141+
/// <value>Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes. </value>
142+
[DataMember(Name="vatRegistrationNumber", EmitDefaultValue=false)]
143+
public string VatRegistrationNumber { get; set; }
110144

111145
/// <summary>
112146
/// Returns the string presentation of the object
@@ -124,6 +158,8 @@ public override string ToString()
124158
sb.Append(" DeliveryLanguage: ").Append(DeliveryLanguage).Append("\n");
125159
sb.Append(" DefaultCurrencyCode: ").Append(DefaultCurrencyCode).Append("\n");
126160
sb.Append(" PayerAuthentication3DSVersion: ").Append(PayerAuthentication3DSVersion).Append("\n");
161+
sb.Append(" ShowVatNumber: ").Append(ShowVatNumber).Append("\n");
162+
sb.Append(" VatRegistrationNumber: ").Append(VatRegistrationNumber).Append("\n");
127163
sb.Append("}\n");
128164
return sb.ToString();
129165
}
@@ -199,6 +235,16 @@ public bool Equals(InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInform
199235
this.PayerAuthentication3DSVersion == other.PayerAuthentication3DSVersion ||
200236
this.PayerAuthentication3DSVersion != null &&
201237
this.PayerAuthentication3DSVersion.Equals(other.PayerAuthentication3DSVersion)
238+
) &&
239+
(
240+
this.ShowVatNumber == other.ShowVatNumber ||
241+
this.ShowVatNumber != null &&
242+
this.ShowVatNumber.Equals(other.ShowVatNumber)
243+
) &&
244+
(
245+
this.VatRegistrationNumber == other.VatRegistrationNumber ||
246+
this.VatRegistrationNumber != null &&
247+
this.VatRegistrationNumber.Equals(other.VatRegistrationNumber)
202248
);
203249
}
204250

@@ -229,6 +275,10 @@ public override int GetHashCode()
229275
hash = hash * 59 + this.DefaultCurrencyCode.GetHashCode();
230276
if (this.PayerAuthentication3DSVersion != null)
231277
hash = hash * 59 + this.PayerAuthentication3DSVersion.GetHashCode();
278+
if (this.ShowVatNumber != null)
279+
hash = hash * 59 + this.ShowVatNumber.GetHashCode();
280+
if (this.VatRegistrationNumber != null)
281+
hash = hash * 59 + this.VatRegistrationNumber.GetHashCode();
232282
return hash;
233283
}
234284
}

Model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.cs

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public partial class Invoicingv2invoiceSettingsInvoiceSettingsInformation : IEq
4141
/// <param name="DeliveryLanguage">The language of the email that we send to your customers. Possible values are &#x60;zh-CN&#x60;, &#x60;zh-TW&#x60;, &#x60;en-US&#x60;, &#x60;fr-FR&#x60;, &#x60;de-DE&#x60;, &#x60;ja-JP&#x60;, &#x60;pt-BR&#x60;, &#x60;ru-RU&#x60; and &#x60;es-419&#x60;..</param>
4242
/// <param name="DefaultCurrencyCode">Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (&#x60;reversalInformation&#x60;) or a capture (&#x60;processingOptions.capture&#x60; is set to &#x60;true&#x60;), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. For details, see the &#x60;currency&#x60; field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency. .</param>
4343
/// <param name="PayerAuthenticationInInvoicing">For a merchant&#39;s invoice payments, enable 3D Secure payer authentication version 1, update to 3D Secure version 2, or disable 3D Secure. Possible values are: - &#x60;enable&#x60; - &#x60;update&#x60; - &#x60;disable&#x60; .</param>
44-
public Invoicingv2invoiceSettingsInvoiceSettingsInformation(string MerchantLogo = default(string), string MerchantDisplayName = default(string), string CustomEmailMessage = default(string), bool? EnableReminders = default(bool?), InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle HeaderStyle = default(InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle), string DeliveryLanguage = default(string), string DefaultCurrencyCode = default(string), string PayerAuthenticationInInvoicing = default(string))
44+
/// <param name="ShowVatNumber">Display VAT number on Invoice. (default to false).</param>
45+
/// <param name="VatRegistrationNumber">Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes. .</param>
46+
public Invoicingv2invoiceSettingsInvoiceSettingsInformation(string MerchantLogo = default(string), string MerchantDisplayName = default(string), string CustomEmailMessage = default(string), bool? EnableReminders = default(bool?), InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle HeaderStyle = default(InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle), string DeliveryLanguage = default(string), string DefaultCurrencyCode = default(string), string PayerAuthenticationInInvoicing = default(string), bool? ShowVatNumber = false, string VatRegistrationNumber = default(string))
4547
{
4648
this.MerchantLogo = MerchantLogo;
4749
this.MerchantDisplayName = MerchantDisplayName;
@@ -51,6 +53,16 @@ public partial class Invoicingv2invoiceSettingsInvoiceSettingsInformation : IEq
5153
this.DeliveryLanguage = DeliveryLanguage;
5254
this.DefaultCurrencyCode = DefaultCurrencyCode;
5355
this.PayerAuthenticationInInvoicing = PayerAuthenticationInInvoicing;
56+
// use default value if no "ShowVatNumber" provided
57+
if (ShowVatNumber == null)
58+
{
59+
this.ShowVatNumber = false;
60+
}
61+
else
62+
{
63+
this.ShowVatNumber = ShowVatNumber;
64+
}
65+
this.VatRegistrationNumber = VatRegistrationNumber;
5466
}
5567

5668
/// <summary>
@@ -108,6 +120,20 @@ public partial class Invoicingv2invoiceSettingsInvoiceSettingsInformation : IEq
108120
[DataMember(Name="payerAuthenticationInInvoicing", EmitDefaultValue=false)]
109121
public string PayerAuthenticationInInvoicing { get; set; }
110122

123+
/// <summary>
124+
/// Display VAT number on Invoice.
125+
/// </summary>
126+
/// <value>Display VAT number on Invoice.</value>
127+
[DataMember(Name="showVatNumber", EmitDefaultValue=false)]
128+
public bool? ShowVatNumber { get; set; }
129+
130+
/// <summary>
131+
/// Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes.
132+
/// </summary>
133+
/// <value>Your government-assigned tax identification number. #### Tax Calculation Required field for value added tax only. Not applicable to U.S. and Canadian taxes. </value>
134+
[DataMember(Name="vatRegistrationNumber", EmitDefaultValue=false)]
135+
public string VatRegistrationNumber { get; set; }
136+
111137
/// <summary>
112138
/// Returns the string presentation of the object
113139
/// </summary>
@@ -124,6 +150,8 @@ public override string ToString()
124150
sb.Append(" DeliveryLanguage: ").Append(DeliveryLanguage).Append("\n");
125151
sb.Append(" DefaultCurrencyCode: ").Append(DefaultCurrencyCode).Append("\n");
126152
sb.Append(" PayerAuthenticationInInvoicing: ").Append(PayerAuthenticationInInvoicing).Append("\n");
153+
sb.Append(" ShowVatNumber: ").Append(ShowVatNumber).Append("\n");
154+
sb.Append(" VatRegistrationNumber: ").Append(VatRegistrationNumber).Append("\n");
127155
sb.Append("}\n");
128156
return sb.ToString();
129157
}
@@ -199,6 +227,16 @@ public bool Equals(Invoicingv2invoiceSettingsInvoiceSettingsInformation other)
199227
this.PayerAuthenticationInInvoicing == other.PayerAuthenticationInInvoicing ||
200228
this.PayerAuthenticationInInvoicing != null &&
201229
this.PayerAuthenticationInInvoicing.Equals(other.PayerAuthenticationInInvoicing)
230+
) &&
231+
(
232+
this.ShowVatNumber == other.ShowVatNumber ||
233+
this.ShowVatNumber != null &&
234+
this.ShowVatNumber.Equals(other.ShowVatNumber)
235+
) &&
236+
(
237+
this.VatRegistrationNumber == other.VatRegistrationNumber ||
238+
this.VatRegistrationNumber != null &&
239+
this.VatRegistrationNumber.Equals(other.VatRegistrationNumber)
202240
);
203241
}
204242

@@ -229,6 +267,10 @@ public override int GetHashCode()
229267
hash = hash * 59 + this.DefaultCurrencyCode.GetHashCode();
230268
if (this.PayerAuthenticationInInvoicing != null)
231269
hash = hash * 59 + this.PayerAuthenticationInInvoicing.GetHashCode();
270+
if (this.ShowVatNumber != null)
271+
hash = hash * 59 + this.ShowVatNumber.GetHashCode();
272+
if (this.VatRegistrationNumber != null)
273+
hash = hash * 59 + this.VatRegistrationNumber.GetHashCode();
232274
return hash;
233275
}
234276
}

0 commit comments

Comments
 (0)