Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Invoices as PDF #60

Merged
merged 2 commits into from
Apr 23, 2019
Merged

Download Invoices as PDF #60

merged 2 commits into from
Apr 23, 2019

Conversation

3wille
Copy link
Contributor

@3wille 3wille commented Apr 16, 2019

Add the invoice_download method to allow downloading an invoice's
PDF document. The method returns, as does the API call, the PDF in plain
text as a String.

Billwerk Documentation: https://developer.billwerk.io/Docs/ApiReference#/Invoices/Invoices_GetDirectDownload

Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)

Add the ``invoice_download`` method to allow downloading an invoice's
PDF document. The method returns, as does the API call, the PDF in plain
text as a ``String``.

Billwerk Documentation: https://developer.billwerk.io/Docs/ApiReference#/Invoices/Invoices_GetDirectDownload
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)

Copy link
Member

@kaipr kaipr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unseren aktuellen Code Styles folgt es leider nicht so, aber Konsistenz ist da denke ich sinnvoller, warum auch immer in den specs Instanzmethoden mit . described werden?

Trotzdem eine Rückfrage zu den specs.

@@ -84,4 +84,32 @@
expect(request).to have_been_made
end
end

describe '.invoice_download' do
it "requests the correct resource" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich finde da die beiden specs exakt das selbe tun könnte das auch gerne einer sein, was meinst du? Wenn man kein and möchte vielleicht returns the pdf as a string after requesting the correct resource (das es eine PDF ist finde ich hier btw so oder so noch interessant zur Dokumentation, auch wenn man das wohl schwer testen kann).

@kaipr kaipr assigned 3wille and unassigned kaipr Apr 23, 2019
Copy link

@houndci-bot houndci-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
.rubocop.yml: Lint/ConditionPosition has the wrong namespace - should be Layout
Error: The `Style/TrailingCommaInLiteral` cop no longer exists. Please use `Style/TrailingCommaInArrayLiteral` and/or `Style/TrailingCommaInHashLiteral` instead.
(obsolete configuration found in .rubocop.yml, please update it)

@3wille 3wille assigned kaipr and unassigned 3wille Apr 23, 2019
Copy link
Member

@kaipr kaipr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge 👍

@kaipr kaipr assigned 3wille and unassigned kaipr Apr 23, 2019
@3wille 3wille merged commit f650ac1 into master Apr 23, 2019
@3wille 3wille deleted the fw-invoice-pdf-download branch April 23, 2019 14:46
sfroehler added a commit that referenced this pull request Apr 30, 2019
* Added
  - download Invoices as PDF (#60)

* Changed
  - new prodcution endpoint (#45)
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.

3 participants