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

WIP Support for generating WC_Subscriptions #161

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

mattallan
Copy link

@mattallan mattallan commented Feb 14, 2025

All Submissions:

Changes proposed in this Pull Request:

This PR adds support for generating subscriptions via wp wc generate subscriptions x

image

I've got this PR set to draft as there's a few more features I want to add:

  • Add missing support for the --billing-interval arg
  • Add missing support the --create-parent-order arg
  • Add support for setting a payment method.
  • Add support for generating a random number of renewals
  • Add support for scheduling next payment dates (not scheduled due to setting the date prop directly)
  • Add documentation to the readme

How to test the changes in this Pull Request:

Support has been added for the following commands:

wp wc generate subscriptions 10
wp wc generate subscriptions 10 --status=cancelled
wp wc generate subscriptions 10 --billing-period=week

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

FOR PR REVIEWER ONLY:

  • I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.

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.

1 participant