Most of the changes are related to the consistency of field, method and class names.
The benefit of having these consistencies allow the users of library to have predictable and consistent usage.
It also allows us to update our library quickly by using code generation in future releases.
The following contain all changes from v3 to v4.
- Rename
ChargeSchedulingandTransferSchedulingtoChargeScheduleandTransferSchedulerespectively.
- Change order of params
-
Card.UpdateRequestBuilder(cardId, customerId)contains wrong order of params (it should beCard.UpdateRequestBuilder(customerId, cardId). -
Document.GetRequestBuilder(documentId, disputeId)toDocument.GetRequestBuilder(disputeId, documentId)
-
Dispute.closedDate->closedAt(closed_atin API)Receipt.issuedDate->issuedOn(issued_onin API)Occurrence.scheduleDate->scheduleOn(scheduled_onin API)Occurrence.retryDate->retryOn(retry_onin API)Schedule.startDate->startOn(start_onin API)Schedule.endDate->endOn(end_onin API)Schedule.nextOccurrencesDates->nextOccurrencesOn(next_occurrences_onin API)
The alteration made in the v3.0.0 of omise-java are breaking changes and would require code changes
from your side if you have already been using this library from previous versions. We have put
together a guide to make this process easier by pointing the changes to you. You can find the complete version 3 migration guide here.