{"swagger":"2.0","info":{"version":"v1","title":"Automatrix.Tvalue.WebService"},"host":"3.141.2.91","schemes":["http"],"paths":{"/api/amortization/last":{"post":{"tags":["Amortization"],"operationId":"Amortization_Last","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/AmortizationRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/Amortization":{"post":{"tags":["Amortization"],"operationId":"Amortization_Create","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/AmortizationRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/APRZ":{"post":{"tags":["APRZ"],"operationId":"APRZ_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/BHPHAmortizationRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/financeInformation":{"post":{"tags":["Finance"],"operationId":"Finance_FinanceInformation","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/UnknowAmountRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/lhphAmortization":{"post":{"tags":["Finance"],"operationId":"Finance_LhphAmortization","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/LeaseAmortizationUnknowRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/amortizationSchedules":{"post":{"tags":["Finance"],"operationId":"Finance_AmortizationSchedules","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/AmortizationBaseRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}},"/api/RollPayment":{"post":{"tags":["RollPayment"],"operationId":"RollPayment_Create","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"request","in":"body","required":true,"schema":{"$ref":"#/definitions/UnknowAmountRequestDTO"}},{"name":"Authorization","in":"header","description":"API Token","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"type":"object"}}}}}},"definitions":{"AmortizationRequestDTO":{"type":"object","properties":{"anualInterest":{"format":"double","type":"number"},"loanDate":{"format":"date-time","type":"string"},"frequency":{"type":"string"},"paymentAmount":{"format":"double","type":"number"},"terms":{"format":"int32","type":"integer"},"termsWithDecimal":{"format":"double","type":"number"},"dealType":{"type":"string"},"contract":{"$ref":"#/definitions/Contract"},"adjustLastPayment":{"type":"boolean"},"downPayments":{"type":"array","items":{"$ref":"#/definitions/DownPaymentDTO"}}}},"Contract":{"type":"object","properties":{"compoundingDays":{"format":"int32","type":"integer"},"salesTaxDeferred":{"type":"boolean"},"compoundPeriod":{"type":"string"},"computeMethod":{"type":"string"}}},"DownPaymentDTO":{"type":"object","properties":{"downPaymentAmount":{"format":"double","type":"number"},"downPaymentDate":{"format":"date-time","type":"string"}}},"BHPHAmortizationRequestDTO":{"type":"object","properties":{"financeAmount":{"format":"double","type":"number"},"originationFee":{"format":"double","type":"number"},"loanAmountNoTax":{"format":"double","type":"number","readOnly":true},"firstPaymentDate":{"format":"date-time","type":"string"},"discount":{"format":"double","type":"number"},"payment":{"$ref":"#/definitions/BasicPayment"},"anualInterest":{"format":"double","type":"number"},"loanDate":{"format":"date-time","type":"string"},"frequency":{"type":"string"},"paymentAmount":{"format":"double","type":"number"},"terms":{"format":"int32","type":"integer"},"termsWithDecimal":{"format":"double","type":"number"},"dealType":{"type":"string"},"contract":{"$ref":"#/definitions/Contract"},"adjustLastPayment":{"type":"boolean"},"downPayments":{"type":"array","items":{"$ref":"#/definitions/DownPaymentDTO"}}}},"BasicPayment":{"type":"object","properties":{"amount":{"format":"double","type":"number"},"date":{"format":"date-time","type":"string"}}},"UnknowAmountRequestDTO":{"type":"object","properties":{"unkownField":{"type":"string"},"request":{"$ref":"#/definitions/AmortizationRequestDTO"}}},"LeaseAmortizationUnknowRequestDTO":{"type":"object","properties":{"unknownField":{"type":"string"},"request":{"$ref":"#/definitions/LeaseAmortizationRequestDTO"}}},"LeaseAmortizationRequestDTO":{"type":"object","properties":{"adjustedCapCost":{"format":"double","type":"number"},"balanceDue":{"format":"double","type":"number"},"monthlyDepreciation":{"format":"double","type":"number"},"rentalCharge":{"format":"double","type":"number"},"monthlyLeaseTax":{"format":"double","type":"number"},"salesTax":{"format":"double","type":"number"},"residualValue":{"format":"double","type":"number"},"residualInterestBehavior":{"type":"string"},"firstPaymentDate":{"format":"date-time","type":"string"},"anualInterest":{"format":"double","type":"number"},"loanDate":{"format":"date-time","type":"string"},"frequency":{"type":"string"},"paymentAmount":{"format":"double","type":"number"},"terms":{"format":"int32","type":"integer"},"termsWithDecimal":{"format":"double","type":"number"},"dealType":{"type":"string"},"contract":{"$ref":"#/definitions/Contract"},"adjustLastPayment":{"type":"boolean"},"downPayments":{"type":"array","items":{"$ref":"#/definitions/DownPaymentDTO"}}}},"AmortizationBaseRequestDTO":{"type":"object","properties":{"anualInterest":{"format":"double","type":"number"},"loanDate":{"format":"date-time","type":"string"},"frequency":{"type":"string"},"financeAmount":{"format":"double","type":"number"},"firstPaymentDate":{"format":"date-time","type":"string"},"paymentAmount":{"format":"double","type":"number"},"compoundingDays":{"format":"int32","type":"integer"},"terms":{"format":"int32","type":"integer"},"compoundPeriod":{"type":"string"},"computedMethod":{"type":"string"},"adjustLastPayment":{"type":"boolean"},"residualAmount":{"format":"double","type":"number"},"residualInterestBehavior":{"format":"int32","enum":[0,1,2],"type":"integer"},"payment":{"$ref":"#/definitions/BasicPayment"},"isSalesTaxDeferred":{"type":"boolean"}}}}}