Class: CyberSource::Ptsv2paymentsidcapturesInstallmentInformation
- Inherits:
-
Object
- Object
- CyberSource::Ptsv2paymentsidcapturesInstallmentInformation
- Defined in:
- lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb
Instance Attribute Summary collapse
-
#additional_costs ⇒ Object
Additional costs charged by the issuer to fund the installment payments.
-
#additional_costs_percentage ⇒ Object
Additional costs divided by the amount funded.
-
#amount_funded ⇒ Object
Amount funded.
-
#amount_requested_percentage ⇒ Object
Amount requested divided by the amount funded.
-
#annual_financing_cost ⇒ Object
Annual cost of financing the installment payments.
-
#annual_interest_rate ⇒ Object
Annual interest rate.
-
#expenses ⇒ Object
Expenses charged by the issuer to fund the installment payments.
-
#expenses_percentage ⇒ Object
Expenses divided by the amount funded.
-
#fees ⇒ Object
Fees charged by the issuer to fund the installment payments.
-
#fees_percentage ⇒ Object
Fees divided by the amount funded.
-
#first_installment_date ⇒ Object
Date of the first installment payment.
-
#insurance ⇒ Object
Insurance charged by the issuer to fund the installment payments.
-
#insurance_percentage ⇒ Object
Insurance costs divided by the amount funded.
-
#invoice_data ⇒ Object
Invoice information that you want to provide to the issuer.
-
#monthly_interest_rate ⇒ Object
Monthly interest rate.
-
#payment_type ⇒ Object
Payment plan for the installments.
-
#taxes ⇒ Object
Taxes collected by the issuer to fund the installment payments.
-
#taxes_percentage ⇒ Object
Taxes divided by the amount funded.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Ptsv2paymentsidcapturesInstallmentInformation
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Ptsv2paymentsidcapturesInstallmentInformation
Initializes the object
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 121 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'firstInstallmentDate') self.first_installment_date = attributes[:'firstInstallmentDate'] end if attributes.has_key?(:'invoiceData') self.invoice_data = attributes[:'invoiceData'] end if attributes.has_key?(:'paymentType') self.payment_type = attributes[:'paymentType'] end if attributes.has_key?(:'additionalCosts') self.additional_costs = attributes[:'additionalCosts'] end if attributes.has_key?(:'additionalCostsPercentage') self.additional_costs_percentage = attributes[:'additionalCostsPercentage'] end if attributes.has_key?(:'amountFunded') self.amount_funded = attributes[:'amountFunded'] end if attributes.has_key?(:'amountRequestedPercentage') self.amount_requested_percentage = attributes[:'amountRequestedPercentage'] end if attributes.has_key?(:'annualFinancingCost') self.annual_financing_cost = attributes[:'annualFinancingCost'] end if attributes.has_key?(:'annualInterestRate') self.annual_interest_rate = attributes[:'annualInterestRate'] end if attributes.has_key?(:'expenses') self.expenses = attributes[:'expenses'] end if attributes.has_key?(:'expensesPercentage') self.expenses_percentage = attributes[:'expensesPercentage'] end if attributes.has_key?(:'fees') self.fees = attributes[:'fees'] end if attributes.has_key?(:'feesPercentage') self.fees_percentage = attributes[:'feesPercentage'] end if attributes.has_key?(:'insurance') self.insurance = attributes[:'insurance'] end if attributes.has_key?(:'insurancePercentage') self.insurance_percentage = attributes[:'insurancePercentage'] end if attributes.has_key?(:'monthlyInterestRate') self.monthly_interest_rate = attributes[:'monthlyInterestRate'] end if attributes.has_key?(:'taxes') self.taxes = attributes[:'taxes'] end if attributes.has_key?(:'taxesPercentage') self.taxes_percentage = attributes[:'taxesPercentage'] end end |
Instance Attribute Details
#additional_costs ⇒ Object
Additional costs charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 128-139 - Field: Total Other Costs
27 28 29 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 27 def additional_costs @additional_costs end |
#additional_costs_percentage ⇒ Object
Additional costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in [Credit Card Services Using the SCMP API.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 140-143 - Field: Percent of Total Other Costs
30 31 32 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 30 def additional_costs_percentage @additional_costs_percentage end |
#amount_funded ⇒ Object
Amount funded. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in [Credit Card Services Using the SCMP API.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 48-59 - Field: Total Amount Funded
33 34 35 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 33 def amount_funded @amount_funded end |
#amount_requested_percentage ⇒ Object
Amount requested divided by the amount funded. For example: - A value of 90.0 specifies 90%. - A value of 93.7 specifies 93.7%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 60-63 - Field: Percent of Amount Requested
36 37 38 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 36 def amount_requested_percentage @amount_requested_percentage end |
#annual_financing_cost ⇒ Object
Annual cost of financing the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 158-164 - Field: Annual Total Cost of Financing
39 40 41 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 39 def annual_financing_cost @annual_financing_cost end |
#annual_interest_rate ⇒ Object
Annual interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 151-157 - Field: Annual Interest Rate
42 43 44 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 42 def annual_interest_rate @annual_interest_rate end |
#expenses ⇒ Object
Expenses charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 64-75 - Field: Total Expenses
45 46 47 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 45 def expenses @expenses end |
#expenses_percentage ⇒ Object
Expenses divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 76-79 - Field: Percent of Total Expenses
48 49 50 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 48 def expenses_percentage @expenses_percentage end |
#fees ⇒ Object
Fees charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 80-91 - Field: Total Fees
51 52 53 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 51 def fees @fees end |
#fees_percentage ⇒ Object
Fees divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 92-95 - Field: Percent of Total Fees
54 55 56 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 54 def fees_percentage @fees_percentage end |
#first_installment_date ⇒ Object
Date of the first installment payment. Format: YYMMDD. When you do not include this field, CyberSource sends a string of six zeros (000000) to the processor. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR9 - Position: 42-47 - Field: Date of First Installment
18 19 20 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 18 def first_installment_date @first_installment_date end |
#insurance ⇒ Object
Insurance charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 112-123 - Field: Total Insurance
57 58 59 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 57 def insurance @insurance end |
#insurance_percentage ⇒ Object
Insurance costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 124-127 - Field: Percent Of Total Insurance
60 61 62 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 60 def insurance_percentage @insurance_percentage end |
#invoice_data ⇒ Object
Invoice information that you want to provide to the issuer. This value is similar to a tracking number and is the same for all installment payments for one purchase. This field is supported only for installment payments with Mastercard on CyberSource through VisaNet in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR4 - Position: 51-70 - Field: Purchase Identification
21 22 23 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 21 def invoice_data @invoice_data end |
#monthly_interest_rate ⇒ Object
Monthly interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 144-150 - Field: Monthly Interest Rate
63 64 65 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 63 def monthly_interest_rate @monthly_interest_rate end |
#payment_type ⇒ Object
Payment plan for the installments. Possible values: - 0 (default): Regular installment. This value is not allowed for airline transactions. - 1: Installment payment with down payment. - 2: Installment payment without down payment. This value is supported only for airline transactions. - 3: Installment payment; down payment and boarding fee will follow. This value is supported only for airline transactions. - 4: Down payment only; regular installment payment will follow. - 5: Boarding fee only. This value is supported only for airline transactions. This field is supported only for installment payments with Visa on CyberSource through VisaNet in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR1 - Position: 9 - Field: Merchant Installment Supporting Information
24 25 26 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 24 def payment_type @payment_type end |
#taxes ⇒ Object
Taxes collected by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 96-107 - Field: Total Taxes
66 67 68 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 66 def taxes @taxes end |
#taxes_percentage ⇒ Object
Taxes divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder’s request for Crediario installment payments in Brazil. For details, see "Installment Payments on CyberSource through VisaNet" in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) This field is supported only for Crediario installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 108-111 - Field: Percent of Total Taxes
69 70 71 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 69 def taxes_percentage @taxes_percentage end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 72 def self.attribute_map { :'first_installment_date' => :'firstInstallmentDate', :'invoice_data' => :'invoiceData', :'payment_type' => :'paymentType', :'additional_costs' => :'additionalCosts', :'additional_costs_percentage' => :'additionalCostsPercentage', :'amount_funded' => :'amountFunded', :'amount_requested_percentage' => :'amountRequestedPercentage', :'annual_financing_cost' => :'annualFinancingCost', :'annual_interest_rate' => :'annualInterestRate', :'expenses' => :'expenses', :'expenses_percentage' => :'expensesPercentage', :'fees' => :'fees', :'fees_percentage' => :'feesPercentage', :'insurance' => :'insurance', :'insurance_percentage' => :'insurancePercentage', :'monthly_interest_rate' => :'monthlyInterestRate', :'taxes' => :'taxes', :'taxes_percentage' => :'taxesPercentage' } end |
.swagger_types ⇒ Object
Attribute type mapping.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 96 def self.swagger_types { :'first_installment_date' => :'String', :'invoice_data' => :'String', :'payment_type' => :'String', :'additional_costs' => :'String', :'additional_costs_percentage' => :'String', :'amount_funded' => :'String', :'amount_requested_percentage' => :'String', :'annual_financing_cost' => :'String', :'annual_interest_rate' => :'String', :'expenses' => :'String', :'expenses_percentage' => :'String', :'fees' => :'String', :'fees_percentage' => :'String', :'insurance' => :'String', :'insurance_percentage' => :'String', :'monthly_interest_rate' => :'String', :'taxes' => :'String', :'taxes_percentage' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 215 def ==(o) return true if self.equal?(o) self.class == o.class && first_installment_date == o.first_installment_date && invoice_data == o.invoice_data && payment_type == o.payment_type && additional_costs == o.additional_costs && additional_costs_percentage == o.additional_costs_percentage && amount_funded == o.amount_funded && amount_requested_percentage == o.amount_requested_percentage && annual_financing_cost == o.annual_financing_cost && annual_interest_rate == o.annual_interest_rate && expenses == o.expenses && expenses_percentage == o.expenses_percentage && fees == o.fees && fees_percentage == o.fees_percentage && insurance == o.insurance && insurance_percentage == o.insurance_percentage && monthly_interest_rate == o.monthly_interest_rate && taxes == o.taxes && taxes_percentage == o.taxes_percentage end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 274 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CyberSource.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 340 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 253 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
240 241 242 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 240 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
246 247 248 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 246 def hash [first_installment_date, invoice_data, payment_type, additional_costs, additional_costs_percentage, amount_funded, amount_requested_percentage, annual_financing_cost, annual_interest_rate, expenses, expenses_percentage, fees, fees_percentage, insurance, insurance_percentage, monthly_interest_rate, taxes, taxes_percentage].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
202 203 204 205 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 202 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
320 321 322 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 320 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
326 327 328 329 330 331 332 333 334 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 326 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
314 315 316 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 314 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
209 210 211 |
# File 'lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb', line 209 def valid? true end |