Skip to content

Conversation

@paulosouza-stark
Copy link
Contributor

@paulosouza-stark paulosouza-stark commented May 23, 2025

Credit Note

GET Pdf

Request

import java.io.File;
import java.io.InputStream;
import java.nio.file.StandardCopyOption;
import com.starkbank.*;

InputStream pdf = CreditNote.pdf("5646210941583360");

java.nio.file.Files.copy(
    pdf,
    new File("credit-note.pdf").toPath(),
    StandardCopyOption.REPLACE_EXISTING
);

GET Payment

Request

import java.io.File;
import java.io.InputStream;
import java.nio.file.StandardCopyOption;
import com.starkbank.*;

InputStream pdf = CreditNote.payment("5950134772826112");

java.nio.file.Files.copy(
    pdf,
    new File("credit-note-payment.pdf").toPath(),
    StandardCopyOption.REPLACE_EXISTING
);

@paulosouza-stark paulosouza-stark force-pushed the feature/credit-note-pdf branch from 1547863 to 79fa490 Compare May 23, 2025 20:56
@paulosouza-stark paulosouza-stark force-pushed the feature/credit-note-pdf branch 2 times, most recently from 446b763 to 6fa1d41 Compare July 9, 2025 20:23
@paulosouza-stark paulosouza-stark force-pushed the feature/credit-note-pdf branch from 6fa1d41 to 5529fcb Compare July 9, 2025 20:25
@paulosouza-stark paulosouza-stark changed the title Added credit note pdf method Added CreditNote Pdf and Payment methods Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants