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

Adjustment type and VND currency #87

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Adjustment type and VND currency #87

merged 6 commits into from
Dec 16, 2024

Conversation

danbillson
Copy link
Contributor

@danbillson danbillson commented Dec 13, 2024

Changes:

  • Adds VND as a supported currency value

  • Introduces the optional type to adjustments which can be partial or full if this value is not provided it will be treated as partial with the use of items but now you can also provide full to omit the items

  • The AdjustmentType type already existed but referred to the item type which has now been renamed to AdjustmentItemType to make space for the new AdjustmentType

Usage:

  const adjustment = await paddle.adjustments.create({
    action: "refund",
    reason: "Customer requested a refund",
    transactionId,
    type: "full",
  });

@danbillson danbillson requested a review from a team as a code owner December 13, 2024 10:06
@danbillson danbillson self-assigned this Dec 13, 2024
@danbillson danbillson merged commit 0bdda08 into main Dec 16, 2024
6 checks passed
@danbillson danbillson deleted the vnd-and-adjustment branch December 16, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants