Class: Iyzipay::Model::InstallmentInfo
- Inherits:
-
IyzipayResource
- Object
- IyzipayResource
- Iyzipay::Model::InstallmentInfo
- Defined in:
- lib/iyzipay/model/installment_info.rb
Constant Summary
Constants inherited from IyzipayResource
IyzipayResource::AUTHORIZATION_HEADER_NAME, IyzipayResource::AUTHORIZATION_HEADER_STRING, IyzipayResource::RANDOM_CHARS, IyzipayResource::RANDOM_HEADER_NAME, IyzipayResource::RANDOM_STRING_SIZE
Instance Method Summary collapse
Methods inherited from IyzipayResource
#calculate_hash, #format_header_string, #get_http_header, #get_plain_http_header, #json_decode, #prepare_authorization_string, #random_string
Instance Method Details
#retrieve(request = {}, options) ⇒ Object
5 6 7 8 |
# File 'lib/iyzipay/model/installment_info.rb', line 5 def retrieve(request = {}, ) pki_string = to_pki_string(request) HttpClient.post("#{.base_url}/payment/iyzipos/installment", get_http_header(pki_string, ), request.to_json) end |
#to_pki_string(request) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/iyzipay/model/installment_info.rb', line 10 def to_pki_string(request) PkiBuilder.new.append_super(super). append(:binNumber, request[:binNumber]). append_price(:price, request[:price]). get_request_string end |