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

Update recurring charge request args to be uniform #390

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tres
Copy link
Contributor

@tres tres commented Mar 20, 2021

This is a simple modification that allows for arguments passed to the create function of the RecurringApplicationCharge REST module to use the same pattern for calls as other functions use. In those cases, the outer map is added by the request logic, so the caller only needs to pass the map representing the data of the struct itself.

There's some failures noted in the build, but those appear CI issues that are outside of the changes made.

Going to open this up in spite of that to raise visibility into that issue, to make sure I'm not misreading things & to get this simple modification incorporated if everything looks good.

When calling the ShopifyAPI.REST.RecurringApplicationCharge.create
function, there's an expectation that a map with the shape
%{recurring_application_charge: map()} is passed. This is not the same
as other create calls where the outer map is provided by the requesting
logic.

This update preserves the ability to call the logic using the old
pattern as well as adds a new function that provides the ability to
create RecurringApplicationCharge records in Shopify using the same
pattern that other ShopifyAPI create functions use.
@codecov-io
Copy link

codecov-io commented Mar 20, 2021

Codecov Report

Merging #390 (1b8d486) into master (914fa3a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #390   +/-   ##
=======================================
  Coverage   77.11%   77.11%           
=======================================
  Files          33       33           
  Lines         485      485           
=======================================
  Hits          374      374           
  Misses        111      111           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 914fa3a...1b8d486. Read the comment docs.

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