Application Charge currency being returned as weird object with each letter as a different value #1345
Closed
5 tasks done
Labels
good first issue
Good for newcomers
Issue summary
Before opening this issue, I have:
@shopify/*
package and version:{ logger: { level: LogSeverity.Debug } }
in my configuration, when applicableDescription
This is really a duplicate of Shopify/shopify-api-js#1325 but applicable to one-time charges (
ApplicationCharge
class).Not sure if this is the right repo, I observe the issue in a Remix app.
Current code:
shopify-app-js/packages/apps/shopify-api/rest/admin/2024-07/application_charge.ts
Line 78 in 64e921b
Previous fix in recurring charges:
Shopify/shopify-api-js@513f9e6#diff-b7fd618aa27ac126617eff6762287fed5dbe2aa82a516a1da587a788fc4bf786
Expected behavior
The charge's currency should be a string (to be consistent with recurring charges), or perhaps a proper currency object.
Actual behavior
currency property is an object like
{ 0: "U", 1: "S", 2: "D" }
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: