lib/killbill/jresponse/jpayment_response.rb in killbill-1.0.11 vs lib/killbill/jresponse/jpayment_response.rb in killbill-1.0.12
- old
+ new
@@ -12,19 +12,23 @@
attr_reader :amount,
:created_date,
:effective_date,
:status,
:gateway_error,
- :gateway_error_code
+ :gateway_error_code,
+ :first_payment_reference_id,
+ :second_payment_reference_id
def initialize(payment_response)
@amount = JConverter.to_big_decimal(payment_response.amount_in_cents)
@created_date = JConverter.to_joda_date_time(payment_response.created_date)
@effective_date = JConverter.to_joda_date_time(payment_response.effective_date)
@status = JConverter.to_payment_plugin_status(payment_response.status)
@gateway_error = JConverter.to_string(payment_response.gateway_error)
@gateway_error_code = JConverter.to_string(payment_response.gateway_error_code)
+ @first_payment_reference_id = JConverter.to_string(payment_response.first_payment_reference_id)
+ @second_payment_reference_id = JConverter.to_string(payment_response.second_payment_reference_id)
end
java_signature 'java.math.BigDecimal getAmount()'
def get_amount
@amount
@@ -52,8 +56,19 @@
java_signature 'java.lang.String getGatewayErrorCode()'
def get_gateway_error_code
@gateway_error_code
end
+
+ java_signature 'java.lang.String getFirstPaymentReferenceId()'
+ def get_first_payment_reference_id
+ @first_payment_reference_id
+ end
+
+ java_signature 'java.lang.String getSecondPaymentReferenceId()'
+ def get_second_payment_reference_id
+ @second_payment_reference_id
+ end
+
end
end
end
\ No newline at end of file