Skip to content

Add cancelAutoOrderItemByReferenceOrderId samples across all languages#5

Open
ucjonathan wants to merge 1 commit intomasterfrom
cancel-auto-order-item-by-reference-order-id
Open

Add cancelAutoOrderItemByReferenceOrderId samples across all languages#5
ucjonathan wants to merge 1 commit intomasterfrom
cancel-auto-order-item-by-reference-order-id

Conversation

@ucjonathan
Copy link
Copy Markdown
Contributor

Summary

  • Bumps every language's SDK pin to 4.1.74 (Ruby, JavaScript, TypeScript, PHP, Python, Java, C#)
  • Adds one sample per language under each <lang>/auto_order/ directory demonstrating the new cancelAutoOrderItemByReferenceOrderId method on AutoOrderApi
  • Adds SDK_PUBLISHING_ISSUES.md documenting that the Java SDK is stuck at 4.1.13 on Maven Central and the C# SDK is stuck at 4.1.66 on NuGet — both need a new publish before their samples can build

Notes

  • The new method takes reference_order_id + original_item_id and cancels a single item on the matching auto order — useful when you know the original UltraCart order id but not the auto_order_oid.
  • All 7 samples follow the conventions of the existing pauseAutoOrder sample in each language (helper-based client init, placeholder IDs, single API call, print response).
  • Java and C# samples are authored against inferred signatures since the SDKs aren't published yet; each file carries a one-line comment calling that out.

Test plan

  • Ruby: ruby -c — syntax OK
  • JavaScript: node --check — OK
  • TypeScript: tsc --noEmit against real 4.1.74 SDK types — OK (confirms method signature matches)
  • PHP: php -l — OK
  • Python: py_compile — OK
  • Java: post-publish mvn package smoke test once rest-sdk 4.1.74 lands on Maven Central
  • C#: post-publish nuget restore + MSBuild smoke test once com.ultracart.admin.v2 4.1.74 lands on NuGet
  • No live API calls made — samples use placeholder IDs (DEMO-12345678, ITEM001) consistent with other samples in the repo

🤖 Generated with Claude Code

Bumps SDK pins repo-wide to 4.1.74 and adds one sample per language
demonstrating the new AutoOrderApi.cancelAutoOrderItemByReferenceOrderId
method, which cancels a single item on an auto order identified by the
reference (original) order id and the original merchant item id.

Java and C# are authored against inferred signatures — their SDKs are
not yet published at 4.1.74 (Maven Central tops out at 4.1.13, NuGet at
4.1.66). See SDK_PUBLISHING_ISSUES.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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