PaymentLink paymentLink = PaymentLink.creator()
.setName("name")
.setBillingType(BillingType.PIX)
.setChargeType(PaymentLinkChargeType.INSTALLMENT)
.setEndDate(new Date())
.setDueDateLimitDays(10)
.setMaxInstallmentCount(2)
.create();
PaymentLink updated = PaymentLink.updater(paymentLink.getId())
.setName("name")
.setBillingType(BillingType.PIX)
.setChargeType(PaymentLinkChargeType.INSTALLMENT)
.setEndDate(new Date())
.setDueDateLimitDays(10)
.setMaxInstallmentCount(2)
.update();
DeletedResource deletedPaymentLink = PaymentLink
.deleter("725104409743")
.delete();
ResourceSet<PaymentLink> paymentLinkResourceSet = PaymentLink
.reader()
.read();
PaymentLink link = PaymentLink.fetcher("725104409743").fetch();