cybersource_rest_client 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -0
- data/lib/cybersource_rest_client.rb +81 -5
- data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +89 -0
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +154 -0
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +9 -0
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +3 -0
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +79 -0
- data/lib/cybersource_rest_client/api/reports_api.rb +2 -2
- data/lib/cybersource_rest_client/api_client.rb +12 -0
- data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +228 -0
- data/lib/cybersource_rest_client/models/buyer_information.rb +20 -20
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +284 -0
- data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -41
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +27 -2
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier_request.rb +226 -0
- data/lib/cybersource_rest_client/models/{embedded_instrument_identifier.rb → embedded_instrument_identifier_response.rb} +11 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb → instrument_identifier_payment_instruments_link.rb} +1 -1
- data/lib/cybersource_rest_client/models/{instrument_identifier.rb → instrument_identifier_response.rb} +11 -2
- data/lib/cybersource_rest_client/models/issuer.rb +208 -0
- data/lib/cybersource_rest_client/models/links.rb +10 -1
- data/lib/cybersource_rest_client/models/model_409_links.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument.rb +9 -9
- data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -2
- data/lib/cybersource_rest_client/models/payment_instrument_instrument_identifier_request.rb +246 -0
- data/lib/cybersource_rest_client/models/payment_instrument_self_link.rb +183 -0
- data/lib/cybersource_rest_client/models/payment_instruments_links.rb +183 -0
- data/lib/cybersource_rest_client/models/personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +392 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +225 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +60 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +22 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -30
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +23 -4
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +23 -4
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_default_settings.rb +255 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +27 -2
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link.rb +183 -0
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response__link_report_download.rb +192 -0
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_report_search_results.rb +13 -4
- data/lib/cybersource_rest_client/models/request.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_excemptions_post400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_consumer_authentication_information_strong_authentication.rb +269 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +255 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_consumer_authentication_information.rb +183 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response_risk_information.rb +199 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +324 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +294 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +444 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_device_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information.rb +258 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_merchant_information_merchant_descriptor.rb +229 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information.rb +212 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_bill_to.rb +496 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +283 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_ship_to.rb +399 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_card.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_tokenized_card.rb +291 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +524 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +194 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +267 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +298 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +264 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +274 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +208 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +1359 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_ivr.rb +319 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information_strong_authentication.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +430 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information_raw_data.rb +209 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +208 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb → riskv1authentications_merchant_information_merchant_descriptor.rb} +25 -40
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +283 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +396 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +459 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +235 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +262 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +209 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +279 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +206 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +259 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +26 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_address.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +26 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_bank.rb +275 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information_marking_details.rb +275 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_delete409_response__links.rb +1 -1
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb} +11 -2
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__embedded.rb +183 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links.rb +183 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links_self.rb +183 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb +20 -20
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -2
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +9 -9
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links_payment_instruments.rb +183 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_issuer.rb +208 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +226 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +12 -31
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
- data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -41
- data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +42 -0
- metadata +79 -7
@@ -26,7 +26,7 @@ module CyberSource
|
|
26
26
|
# Total charges for any import or export duties included in the order. For processor-specific information, see the duty_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
|
27
27
|
attr_accessor :duty_amount
|
28
28
|
|
29
|
-
# Gratuity or tip amount for restaurants when the card is present. Allowed only when `industryDatatype=restaurant`. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. For
|
29
|
+
# Gratuity or tip amount for restaurants when the card is present. Allowed only when `industryDatatype=restaurant`. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. For details about partial authorizations, see \"Partial Authorizations\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) Restaurant data is supported only on CyberSource through VisaNet.
|
30
30
|
attr_accessor :gratuity_amount
|
31
31
|
|
32
32
|
# Total tax amount for all the items in the order. For processor-specific information, see the total_tax_amount field in [Level II and Level III Processing Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html)
|
@@ -80,7 +80,7 @@ module CyberSource
|
|
80
80
|
# Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) For details, see `original_currency` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) For details about converting a foreign cardholder’s purchase from your local pricing currency to the cardholder’s billing currency, see the [Dynamic Currency Conversion with a Third Party Provider Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm).
|
81
81
|
attr_accessor :original_currency
|
82
82
|
|
83
|
-
# Cashback amount requested by the customer. If a cashback amount is included in the request, it must be included in the orderInformation.amountDetails.totalAmount value.
|
83
|
+
# Cashback amount requested by the customer. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value.
|
84
84
|
attr_accessor :cashback_amount
|
85
85
|
|
86
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -65,6 +65,9 @@ module CyberSource
|
|
65
65
|
# Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_email` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### Invoicing Email address for the customer for sending the invoice. If the invoice is in SENT status and email is updated, the old email customer payment link won't work and you must resend the invoice with the new payment link.
|
66
66
|
attr_accessor :email
|
67
67
|
|
68
|
+
# Email domain of the customer. The domain of the email address comprises all characters that follow the @ symbol, such as mail.example.com. For the Risk Update service, if the email address and the domain are sent in the request, the domain supersedes the email address.
|
69
|
+
attr_accessor :email_domain
|
70
|
+
|
68
71
|
# Customer’s phone number. #### For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks.
|
69
72
|
attr_accessor :phone_number
|
70
73
|
|
@@ -91,6 +94,7 @@ module CyberSource
|
|
91
94
|
:'district' => :'district',
|
92
95
|
:'building_number' => :'buildingNumber',
|
93
96
|
:'email' => :'email',
|
97
|
+
:'email_domain' => :'emailDomain',
|
94
98
|
:'phone_number' => :'phoneNumber',
|
95
99
|
:'phone_type' => :'phoneType'
|
96
100
|
}
|
@@ -116,6 +120,7 @@ module CyberSource
|
|
116
120
|
:'district' => :'String',
|
117
121
|
:'building_number' => :'String',
|
118
122
|
:'email' => :'String',
|
123
|
+
:'email_domain' => :'String',
|
119
124
|
:'phone_number' => :'String',
|
120
125
|
:'phone_type' => :'String'
|
121
126
|
}
|
@@ -197,6 +202,10 @@ module CyberSource
|
|
197
202
|
self.email = attributes[:'email']
|
198
203
|
end
|
199
204
|
|
205
|
+
if attributes.has_key?(:'emailDomain')
|
206
|
+
self.email_domain = attributes[:'emailDomain']
|
207
|
+
end
|
208
|
+
|
200
209
|
if attributes.has_key?(:'phoneNumber')
|
201
210
|
self.phone_number = attributes[:'phoneNumber']
|
202
211
|
end
|
@@ -278,6 +287,10 @@ module CyberSource
|
|
278
287
|
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
|
279
288
|
end
|
280
289
|
|
290
|
+
if !@email_domain.nil? && @email_domain.to_s.length > 100
|
291
|
+
invalid_properties.push('invalid value for "email_domain", the character length must be smaller than or equal to 100.')
|
292
|
+
end
|
293
|
+
|
281
294
|
if !@phone_number.nil? && @phone_number.to_s.length > 15
|
282
295
|
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 15.')
|
283
296
|
end
|
@@ -305,6 +318,7 @@ module CyberSource
|
|
305
318
|
return false if !@district.nil? && @district.to_s.length > 50
|
306
319
|
return false if !@building_number.nil? && @building_number.to_s.length > 256
|
307
320
|
return false if !@email.nil? && @email.to_s.length > 255
|
321
|
+
return false if !@email_domain.nil? && @email_domain.to_s.length > 100
|
308
322
|
return false if !@phone_number.nil? && @phone_number.to_s.length > 15
|
309
323
|
true
|
310
324
|
end
|
@@ -479,6 +493,16 @@ module CyberSource
|
|
479
493
|
@email = email
|
480
494
|
end
|
481
495
|
|
496
|
+
# Custom attribute writer method with validation
|
497
|
+
# @param [Object] email_domain Value to be assigned
|
498
|
+
def email_domain=(email_domain)
|
499
|
+
if !email_domain.nil? && email_domain.to_s.length > 100
|
500
|
+
fail ArgumentError, 'invalid value for "email_domain", the character length must be smaller than or equal to 100.'
|
501
|
+
end
|
502
|
+
|
503
|
+
@email_domain = email_domain
|
504
|
+
end
|
505
|
+
|
482
506
|
# Custom attribute writer method with validation
|
483
507
|
# @param [Object] phone_number Value to be assigned
|
484
508
|
def phone_number=(phone_number)
|
@@ -511,6 +535,7 @@ module CyberSource
|
|
511
535
|
district == o.district &&
|
512
536
|
building_number == o.building_number &&
|
513
537
|
email == o.email &&
|
538
|
+
email_domain == o.email_domain &&
|
514
539
|
phone_number == o.phone_number &&
|
515
540
|
phone_type == o.phone_type
|
516
541
|
end
|
@@ -524,7 +549,7 @@ module CyberSource
|
|
524
549
|
# Calculates hash code according to all attributes.
|
525
550
|
# @return [Fixnum] Hash code
|
526
551
|
def hash
|
527
|
-
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, country, district, building_number, email, phone_number, phone_type].hash
|
552
|
+
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, country, district, building_number, email, email_domain, phone_number, phone_type].hash
|
528
553
|
end
|
529
554
|
|
530
555
|
# Builds the object from hash
|
@@ -76,16 +76,16 @@ module CyberSource
|
|
76
76
|
# Information about the product code used for the line item. Possible values: - `E`: The product code is `electronic_software`. - `P`: The product code is not `electronic_software`. For details, see the `fulfillmentType` field description in [Business Center Reporting User Guide.] (https://apps.cybersource.com/library/documentation/dev_guides/reporting_and_reconciliation/Reporting_User/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
77
77
|
attr_accessor :fulfillment_type
|
78
78
|
|
79
|
-
# Weight of the item.
|
79
|
+
# Weight of the item. For details, see `weight_amount` field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
80
80
|
attr_accessor :weight
|
81
81
|
|
82
|
-
# Type of weight.
|
82
|
+
# Type of weight. Possible values: - B: Billed weight - N: Actual net weight For details, see `weight_identifier` offer-level field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
83
83
|
attr_accessor :weight_identifier
|
84
84
|
|
85
|
-
# Code that specifies the unit of measurement for the weight amount. For example, OZ specifies ounce and LB specifies pound. The possible values are defined by the ANSI Accredited Standards Committee (ASC).
|
85
|
+
# Code that specifies the unit of measurement for the weight amount. For example, `OZ` specifies ounce and `LB` specifies pound. The possible values are defined by the ANSI Accredited Standards Committee (ASC). For details, see `weight_unit_measurement` offer-level field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
86
86
|
attr_accessor :weight_unit
|
87
87
|
|
88
|
-
# Code that identifies the value of the corresponding
|
88
|
+
# Code that identifies the value of the corresponding `orderInformation.lineItems[].referenceDataNumber` field. Possible values: - AN: Client-defined asset code - MG: Manufacturer's part number - PO: Purchase order number - SK: Supplier stock keeping unit number - UP: Universal product code - VC: Supplier catalog number - VP: Vendor part number This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. For details, see `reference_data_#_code` field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
89
89
|
attr_accessor :reference_data_code
|
90
90
|
|
91
91
|
# Reference number. The meaning of this value is identified by the value of the corresponding `referenceDataCode` field. See Numbered Elements. The maximum length for this field depends on the value of the corresponding `referenceDataCode` field: - When the code is `PO`, the maximum length for the reference number is 22. - When the code is `VC`, the maximum length for the reference number is 20. - For all other codes, the maximum length for the reference number is 30. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor.
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsPaymentInformationCard
|
17
|
-
# The customer’s payment card number, also
|
17
|
+
# The customer’s payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. For processor-specific information, see the `customer_cc_number` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
18
18
|
attr_accessor :number
|
19
19
|
|
20
20
|
# Two-digit month in which the payment card expires. Format: `MM`. Valid values: `01` through `12`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (_type_=039), if there is no expiration date on the card, use `12`. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expmo` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# Four-digit year in which the credit card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expyr` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
24
24
|
attr_accessor :expiration_year
|
25
25
|
|
26
|
-
# Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
26
|
+
# Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 036: Cartes Bancaires - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
27
27
|
attr_accessor :type
|
28
28
|
|
29
29
|
# Flag that specifies the type of account associated with the card. The cardholder provides this information during the payment process. #### Cielo and Comercio Latino Possible values: - CREDIT: Credit card - DEBIT: Debit card This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **Note** The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR0 - Position: 51 - Field: Combination Card Transaction Identifier This field is supported only for Mastercard transactions in Brazil on CyberSource through VisaNet.
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# One of two possible meanings: - The four-digit year in which a token expires. - The four-digit year in which a card expires. Format: `YYYY` Possible values: `1900` through `3000` Data type: Non-negative integer **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (1900 through 3000) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (`card_ type=039`), if there is no expiration date on the card, use `2021`. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. #### Samsung Pay and Apple Pay Year in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expyr` or `token_expiration_year` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
24
24
|
attr_accessor :expiration_year
|
25
25
|
|
26
|
-
# Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
26
|
+
# Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 036: Cartes Bancaires - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
27
27
|
attr_accessor :type
|
28
28
|
|
29
29
|
# This field is used internally.
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the `invoiceHeader_businessApplicationID` field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf)
|
24
24
|
attr_accessor :business_application_id
|
25
25
|
|
26
|
-
# Type of transaction. Some payment card companies use this information when determining discount rates. When you omit this field for
|
26
|
+
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Ingenico ePayments Ingenico ePayments was previously called _Global Collect_. When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value listed in \"Commerce Indicators\" section of [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Payouts OCT (Original Credit Transaction) Value for an OCT transaction: - `internet` For details, see the `e_commerce_indicator` field description in [Payouts Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SCMP/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Other Types of Transactions For details, see \"Commerce Indicators\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
27
27
|
attr_accessor :commerce_indicator
|
28
28
|
|
29
29
|
# Type of digital payment solution for the transaction. Possible Values: - `visacheckout`: Visa Checkout. This value is required for Visa Checkout transactions. For details, see `payment_solution` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) - `001`: Apple Pay. - `004`: Cybersource In-App Solution. - `005`: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \"Masterpass\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) - `006`: Android Pay. - `007`: Chase Pay. - `008`: Samsung Pay. - `012`: Google Pay.
|
@@ -44,7 +44,7 @@ module CyberSource
|
|
44
44
|
# Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. For details, see the `vc_order_id` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
45
45
|
attr_accessor :visa_checkout_id
|
46
46
|
|
47
|
-
# Flag that indicates
|
47
|
+
# Flag that indicates whether the transaction includes airline or restaurant data. To send the data in a transaction request to the processor, you must set this field to `airline` or `restaurant`. **Note** If you do not set this field to one of the possible values, CyberSource does not send any data to the processor. Possible Values: - `airline` - `restaurant`
|
48
48
|
attr_accessor :industry_data_type
|
49
49
|
|
50
50
|
attr_accessor :authorization_options
|
@@ -29,7 +29,7 @@ module CyberSource
|
|
29
29
|
# Partial postal code for the sub-merchant’s address. For processor-specific details, see `submerchant_postal_code` request field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file5. #### FDC Compass This value must consist of uppercase characters.
|
30
30
|
attr_accessor :postal_code
|
31
31
|
|
32
|
-
# Sub-merchant’s country. Use the two-character ISO Standard Country Codes. #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file. #### FDC Compass This value must consist of uppercase characters.
|
32
|
+
# Sub-merchant’s country. Use the two-character ISO Standard Country Codes. #### CyberSource through VisaNet The value for this field does not map to the TC 33 capture file. #### FDC Compass This value must consist of uppercase characters. For details, see the `submerchant_country` request-level field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
33
33
|
attr_accessor :country
|
34
34
|
|
35
35
|
# Sub-merchant’s email address. **Maximum length for processors** - American Express Direct: 40 - CyberSource through VisaNet: 40 - FDC Compass: 40 - FDC Nashville Global: 19 #### CyberSource through VisaNet With American Express, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCRB - Position: 25-64 - Field: American Express Seller E-mail Address **Note** The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies.
|
@@ -201,15 +201,285 @@ module CyberSource
|
|
201
201
|
# @return Array for valid properties with the reasons
|
202
202
|
def list_invalid_properties
|
203
203
|
invalid_properties = Array.new
|
204
|
+
if !@first_installment_date.nil? && @first_installment_date.to_s.length > 6
|
205
|
+
invalid_properties.push('invalid value for "first_installment_date", the character length must be smaller than or equal to 6.')
|
206
|
+
end
|
207
|
+
|
208
|
+
if !@invoice_data.nil? && @invoice_data.to_s.length > 20
|
209
|
+
invalid_properties.push('invalid value for "invoice_data", the character length must be smaller than or equal to 20.')
|
210
|
+
end
|
211
|
+
|
212
|
+
if !@payment_type.nil? && @payment_type.to_s.length > 1
|
213
|
+
invalid_properties.push('invalid value for "payment_type", the character length must be smaller than or equal to 1.')
|
214
|
+
end
|
215
|
+
|
216
|
+
if !@additional_costs.nil? && @additional_costs.to_s.length > 12
|
217
|
+
invalid_properties.push('invalid value for "additional_costs", the character length must be smaller than or equal to 12.')
|
218
|
+
end
|
219
|
+
|
220
|
+
if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
|
221
|
+
invalid_properties.push('invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.')
|
222
|
+
end
|
223
|
+
|
224
|
+
if !@amount_funded.nil? && @amount_funded.to_s.length > 12
|
225
|
+
invalid_properties.push('invalid value for "amount_funded", the character length must be smaller than or equal to 12.')
|
226
|
+
end
|
227
|
+
|
228
|
+
if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
|
229
|
+
invalid_properties.push('invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.')
|
230
|
+
end
|
231
|
+
|
232
|
+
if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
|
233
|
+
invalid_properties.push('invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.')
|
234
|
+
end
|
235
|
+
|
236
|
+
if !@annual_interest_rate.nil? && @annual_interest_rate.to_s.length > 7
|
237
|
+
invalid_properties.push('invalid value for "annual_interest_rate", the character length must be smaller than or equal to 7.')
|
238
|
+
end
|
239
|
+
|
240
|
+
if !@expenses.nil? && @expenses.to_s.length > 12
|
241
|
+
invalid_properties.push('invalid value for "expenses", the character length must be smaller than or equal to 12.')
|
242
|
+
end
|
243
|
+
|
244
|
+
if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
|
245
|
+
invalid_properties.push('invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.')
|
246
|
+
end
|
247
|
+
|
248
|
+
if !@fees.nil? && @fees.to_s.length > 12
|
249
|
+
invalid_properties.push('invalid value for "fees", the character length must be smaller than or equal to 12.')
|
250
|
+
end
|
251
|
+
|
252
|
+
if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
|
253
|
+
invalid_properties.push('invalid value for "fees_percentage", the character length must be smaller than or equal to 4.')
|
254
|
+
end
|
255
|
+
|
256
|
+
if !@insurance.nil? && @insurance.to_s.length > 12
|
257
|
+
invalid_properties.push('invalid value for "insurance", the character length must be smaller than or equal to 12.')
|
258
|
+
end
|
259
|
+
|
260
|
+
if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
|
261
|
+
invalid_properties.push('invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.')
|
262
|
+
end
|
263
|
+
|
264
|
+
if !@monthly_interest_rate.nil? && @monthly_interest_rate.to_s.length > 7
|
265
|
+
invalid_properties.push('invalid value for "monthly_interest_rate", the character length must be smaller than or equal to 7.')
|
266
|
+
end
|
267
|
+
|
268
|
+
if !@taxes.nil? && @taxes.to_s.length > 12
|
269
|
+
invalid_properties.push('invalid value for "taxes", the character length must be smaller than or equal to 12.')
|
270
|
+
end
|
271
|
+
|
272
|
+
if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
|
273
|
+
invalid_properties.push('invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.')
|
274
|
+
end
|
275
|
+
|
204
276
|
invalid_properties
|
205
277
|
end
|
206
278
|
|
207
279
|
# Check to see if the all the properties in the model are valid
|
208
280
|
# @return true if the model is valid
|
209
281
|
def valid?
|
282
|
+
return false if !@first_installment_date.nil? && @first_installment_date.to_s.length > 6
|
283
|
+
return false if !@invoice_data.nil? && @invoice_data.to_s.length > 20
|
284
|
+
return false if !@payment_type.nil? && @payment_type.to_s.length > 1
|
285
|
+
return false if !@additional_costs.nil? && @additional_costs.to_s.length > 12
|
286
|
+
return false if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
|
287
|
+
return false if !@amount_funded.nil? && @amount_funded.to_s.length > 12
|
288
|
+
return false if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
|
289
|
+
return false if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
|
290
|
+
return false if !@annual_interest_rate.nil? && @annual_interest_rate.to_s.length > 7
|
291
|
+
return false if !@expenses.nil? && @expenses.to_s.length > 12
|
292
|
+
return false if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
|
293
|
+
return false if !@fees.nil? && @fees.to_s.length > 12
|
294
|
+
return false if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
|
295
|
+
return false if !@insurance.nil? && @insurance.to_s.length > 12
|
296
|
+
return false if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
|
297
|
+
return false if !@monthly_interest_rate.nil? && @monthly_interest_rate.to_s.length > 7
|
298
|
+
return false if !@taxes.nil? && @taxes.to_s.length > 12
|
299
|
+
return false if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
|
210
300
|
true
|
211
301
|
end
|
212
302
|
|
303
|
+
# Custom attribute writer method with validation
|
304
|
+
# @param [Object] first_installment_date Value to be assigned
|
305
|
+
def first_installment_date=(first_installment_date)
|
306
|
+
if !first_installment_date.nil? && first_installment_date.to_s.length > 6
|
307
|
+
fail ArgumentError, 'invalid value for "first_installment_date", the character length must be smaller than or equal to 6.'
|
308
|
+
end
|
309
|
+
|
310
|
+
@first_installment_date = first_installment_date
|
311
|
+
end
|
312
|
+
|
313
|
+
# Custom attribute writer method with validation
|
314
|
+
# @param [Object] invoice_data Value to be assigned
|
315
|
+
def invoice_data=(invoice_data)
|
316
|
+
if !invoice_data.nil? && invoice_data.to_s.length > 20
|
317
|
+
fail ArgumentError, 'invalid value for "invoice_data", the character length must be smaller than or equal to 20.'
|
318
|
+
end
|
319
|
+
|
320
|
+
@invoice_data = invoice_data
|
321
|
+
end
|
322
|
+
|
323
|
+
# Custom attribute writer method with validation
|
324
|
+
# @param [Object] payment_type Value to be assigned
|
325
|
+
def payment_type=(payment_type)
|
326
|
+
if !payment_type.nil? && payment_type.to_s.length > 1
|
327
|
+
fail ArgumentError, 'invalid value for "payment_type", the character length must be smaller than or equal to 1.'
|
328
|
+
end
|
329
|
+
|
330
|
+
@payment_type = payment_type
|
331
|
+
end
|
332
|
+
|
333
|
+
# Custom attribute writer method with validation
|
334
|
+
# @param [Object] additional_costs Value to be assigned
|
335
|
+
def additional_costs=(additional_costs)
|
336
|
+
if !additional_costs.nil? && additional_costs.to_s.length > 12
|
337
|
+
fail ArgumentError, 'invalid value for "additional_costs", the character length must be smaller than or equal to 12.'
|
338
|
+
end
|
339
|
+
|
340
|
+
@additional_costs = additional_costs
|
341
|
+
end
|
342
|
+
|
343
|
+
# Custom attribute writer method with validation
|
344
|
+
# @param [Object] additional_costs_percentage Value to be assigned
|
345
|
+
def additional_costs_percentage=(additional_costs_percentage)
|
346
|
+
if !additional_costs_percentage.nil? && additional_costs_percentage.to_s.length > 4
|
347
|
+
fail ArgumentError, 'invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.'
|
348
|
+
end
|
349
|
+
|
350
|
+
@additional_costs_percentage = additional_costs_percentage
|
351
|
+
end
|
352
|
+
|
353
|
+
# Custom attribute writer method with validation
|
354
|
+
# @param [Object] amount_funded Value to be assigned
|
355
|
+
def amount_funded=(amount_funded)
|
356
|
+
if !amount_funded.nil? && amount_funded.to_s.length > 12
|
357
|
+
fail ArgumentError, 'invalid value for "amount_funded", the character length must be smaller than or equal to 12.'
|
358
|
+
end
|
359
|
+
|
360
|
+
@amount_funded = amount_funded
|
361
|
+
end
|
362
|
+
|
363
|
+
# Custom attribute writer method with validation
|
364
|
+
# @param [Object] amount_requested_percentage Value to be assigned
|
365
|
+
def amount_requested_percentage=(amount_requested_percentage)
|
366
|
+
if !amount_requested_percentage.nil? && amount_requested_percentage.to_s.length > 4
|
367
|
+
fail ArgumentError, 'invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.'
|
368
|
+
end
|
369
|
+
|
370
|
+
@amount_requested_percentage = amount_requested_percentage
|
371
|
+
end
|
372
|
+
|
373
|
+
# Custom attribute writer method with validation
|
374
|
+
# @param [Object] annual_financing_cost Value to be assigned
|
375
|
+
def annual_financing_cost=(annual_financing_cost)
|
376
|
+
if !annual_financing_cost.nil? && annual_financing_cost.to_s.length > 7
|
377
|
+
fail ArgumentError, 'invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.'
|
378
|
+
end
|
379
|
+
|
380
|
+
@annual_financing_cost = annual_financing_cost
|
381
|
+
end
|
382
|
+
|
383
|
+
# Custom attribute writer method with validation
|
384
|
+
# @param [Object] annual_interest_rate Value to be assigned
|
385
|
+
def annual_interest_rate=(annual_interest_rate)
|
386
|
+
if !annual_interest_rate.nil? && annual_interest_rate.to_s.length > 7
|
387
|
+
fail ArgumentError, 'invalid value for "annual_interest_rate", the character length must be smaller than or equal to 7.'
|
388
|
+
end
|
389
|
+
|
390
|
+
@annual_interest_rate = annual_interest_rate
|
391
|
+
end
|
392
|
+
|
393
|
+
# Custom attribute writer method with validation
|
394
|
+
# @param [Object] expenses Value to be assigned
|
395
|
+
def expenses=(expenses)
|
396
|
+
if !expenses.nil? && expenses.to_s.length > 12
|
397
|
+
fail ArgumentError, 'invalid value for "expenses", the character length must be smaller than or equal to 12.'
|
398
|
+
end
|
399
|
+
|
400
|
+
@expenses = expenses
|
401
|
+
end
|
402
|
+
|
403
|
+
# Custom attribute writer method with validation
|
404
|
+
# @param [Object] expenses_percentage Value to be assigned
|
405
|
+
def expenses_percentage=(expenses_percentage)
|
406
|
+
if !expenses_percentage.nil? && expenses_percentage.to_s.length > 4
|
407
|
+
fail ArgumentError, 'invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.'
|
408
|
+
end
|
409
|
+
|
410
|
+
@expenses_percentage = expenses_percentage
|
411
|
+
end
|
412
|
+
|
413
|
+
# Custom attribute writer method with validation
|
414
|
+
# @param [Object] fees Value to be assigned
|
415
|
+
def fees=(fees)
|
416
|
+
if !fees.nil? && fees.to_s.length > 12
|
417
|
+
fail ArgumentError, 'invalid value for "fees", the character length must be smaller than or equal to 12.'
|
418
|
+
end
|
419
|
+
|
420
|
+
@fees = fees
|
421
|
+
end
|
422
|
+
|
423
|
+
# Custom attribute writer method with validation
|
424
|
+
# @param [Object] fees_percentage Value to be assigned
|
425
|
+
def fees_percentage=(fees_percentage)
|
426
|
+
if !fees_percentage.nil? && fees_percentage.to_s.length > 4
|
427
|
+
fail ArgumentError, 'invalid value for "fees_percentage", the character length must be smaller than or equal to 4.'
|
428
|
+
end
|
429
|
+
|
430
|
+
@fees_percentage = fees_percentage
|
431
|
+
end
|
432
|
+
|
433
|
+
# Custom attribute writer method with validation
|
434
|
+
# @param [Object] insurance Value to be assigned
|
435
|
+
def insurance=(insurance)
|
436
|
+
if !insurance.nil? && insurance.to_s.length > 12
|
437
|
+
fail ArgumentError, 'invalid value for "insurance", the character length must be smaller than or equal to 12.'
|
438
|
+
end
|
439
|
+
|
440
|
+
@insurance = insurance
|
441
|
+
end
|
442
|
+
|
443
|
+
# Custom attribute writer method with validation
|
444
|
+
# @param [Object] insurance_percentage Value to be assigned
|
445
|
+
def insurance_percentage=(insurance_percentage)
|
446
|
+
if !insurance_percentage.nil? && insurance_percentage.to_s.length > 4
|
447
|
+
fail ArgumentError, 'invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.'
|
448
|
+
end
|
449
|
+
|
450
|
+
@insurance_percentage = insurance_percentage
|
451
|
+
end
|
452
|
+
|
453
|
+
# Custom attribute writer method with validation
|
454
|
+
# @param [Object] monthly_interest_rate Value to be assigned
|
455
|
+
def monthly_interest_rate=(monthly_interest_rate)
|
456
|
+
if !monthly_interest_rate.nil? && monthly_interest_rate.to_s.length > 7
|
457
|
+
fail ArgumentError, 'invalid value for "monthly_interest_rate", the character length must be smaller than or equal to 7.'
|
458
|
+
end
|
459
|
+
|
460
|
+
@monthly_interest_rate = monthly_interest_rate
|
461
|
+
end
|
462
|
+
|
463
|
+
# Custom attribute writer method with validation
|
464
|
+
# @param [Object] taxes Value to be assigned
|
465
|
+
def taxes=(taxes)
|
466
|
+
if !taxes.nil? && taxes.to_s.length > 12
|
467
|
+
fail ArgumentError, 'invalid value for "taxes", the character length must be smaller than or equal to 12.'
|
468
|
+
end
|
469
|
+
|
470
|
+
@taxes = taxes
|
471
|
+
end
|
472
|
+
|
473
|
+
# Custom attribute writer method with validation
|
474
|
+
# @param [Object] taxes_percentage Value to be assigned
|
475
|
+
def taxes_percentage=(taxes_percentage)
|
476
|
+
if !taxes_percentage.nil? && taxes_percentage.to_s.length > 4
|
477
|
+
fail ArgumentError, 'invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.'
|
478
|
+
end
|
479
|
+
|
480
|
+
@taxes_percentage = taxes_percentage
|
481
|
+
end
|
482
|
+
|
213
483
|
# Checks equality by comparing each attribute.
|
214
484
|
# @param [Object] Object to be compared
|
215
485
|
def ==(o)
|