Skip to content

Commit

Permalink
[DE-932] Fix tests after 5.0.0 SDK changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-nedza committed Aug 19, 2024
1 parent fc58a39 commit 4e46c63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ void shouldReturnListOfCreditNotesWithAdditionalRefundsData() throws IOException
.gatewayTransactionId(null)
.gatewayUsed("bogus")
.gatewayHandle(null)
.achLateReject(false)
.build()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void assertInvoiceInEvent(Invoice eventInvoice, Invoice invoice) {
.ignoringFields("createdAt", "creditAmount", "credits", "discounts", "displaySettings",
"dueAmount", "id", "lineItems", "netTerms", "paidAmount", "paidDate", "payer", "payments",
"previousBalanceData", "publicUrl", "recipientEmails", "refundAmount", "refunds",
"status", "transactionTime", "updatedAt", "additionalProperties")
"status", "transactionTime", "updatedAt", "publicUrlExpiresOn", "additionalProperties")
.isEqualTo(invoice);
assertThat(eventInvoice.getCreatedAt()).isNotNull();
assertThat(eventInvoice.getUpdatedAt()).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ void shouldReadCreditNotes() throws IOException, ApiException, InterruptedExcept
.gatewayTransactionId(null)
.gatewayUsed("bogus")
.gatewayHandle(null)
.achLateReject(false)
.build()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.maxio.advancedbilling.exceptions.ProductPricePointErrorResponseException;
import com.maxio.advancedbilling.models.CreateProductPricePoint;
import com.maxio.advancedbilling.models.CreateProductPricePointRequest;
import com.maxio.advancedbilling.models.ExpirationIntervalUnit;
import com.maxio.advancedbilling.models.IntervalUnit;
import com.maxio.advancedbilling.models.PricePointType;
import com.maxio.advancedbilling.models.Product;
Expand Down Expand Up @@ -57,7 +58,7 @@ void shouldReturn201AndCreatePricePoint() throws IOException, ApiException {
() -> assertThat(productPricePoint.getInitialChargeInCents()).isEqualTo(120000),
() -> assertThat(productPricePoint.getInitialChargeAfterTrial()).isFalse(),
() -> assertThat(productPricePoint.getExpirationInterval()).isEqualTo(12),
() -> assertThat(productPricePoint.getExpirationIntervalUnit()).isEqualTo(IntervalUnit.MONTH),
() -> assertThat(productPricePoint.getExpirationIntervalUnit()).isEqualTo(ExpirationIntervalUnit.MONTH),
() -> assertThat(productPricePoint.getProductId()).isEqualTo(product.getId()),
() -> assertThat(productPricePoint.getArchivedAt()).isNull(),
() -> assertThat(productPricePoint.getCreatedAt()).isNotNull(),
Expand Down

0 comments on commit 4e46c63

Please sign in to comment.