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

Syntax Error in Readme Documentation #650

Closed
grjan7 opened this issue Sep 7, 2023 · 3 comments
Closed

Syntax Error in Readme Documentation #650

grjan7 opened this issue Sep 7, 2023 · 3 comments
Assignees

Comments

@grjan7
Copy link

grjan7 commented Sep 7, 2023

Syntax error in the code snippet in the subsection "App Store Subscriptions".

console.log(subscriptionRequest.body)
{
  currentPeriodEnd: 2021-09-02T20:08:58.772Z,
  endDate: null,
  id: '03bc74f2-1237-4477-b782-2dfb1a6d8b21',
  organisationId: '79e8b2e5-c63d-4dce-888f-e0f3e9eac647',
  plans: [
    Plan {
      id: '6abc26f3-9390-4194-8b25-ce8b9942fda9',
      name: 'Small',
      status: 'ACTIVE',
      subscriptionItems: [
        endDate: null,
        id: '834cff4c-b753-4de2-9e7a-3451e14fa17a',
        price: {
          id: '2310de92-c7c0-4bcb-b972-fb7612177bc7',
          amount: 0.1,
          currency: 'NZD'
        },
        product: Product {
          id: '9586421f-7325-4493-bac9-d93be06a6a38',
          name: '',
          type: 'FIXED'
        },      
        startDate: 2021-08-02T20:08:58.772Z,
        testMode: true

      ]
    }
  ],
  startDate: 2021-08-02T20:08:58.772Z,
  status: 'ACTIVE',
  testMode: true
}

This need to be corrected as follows:

console.log(subscriptionRequest.body)
// returns
{
  currentPeriodEnd: '2021-09-02T20:08:58.772Z',
  endDate: null,
  id: '03bc74f2-1237-4477-b782-2dfb1a6d8b21',
  organisationId: '79e8b2e5-c63d-4dce-888f-e0f3e9eac647',
  plans: [
    {
      id: '6abc26f3-9390-4194-8b25-ce8b9942fda9',
      name: 'Small',
      status: 'ACTIVE',
      subscriptionItems: [
        {
          endDate: null,
          id: '834cff4c-b753-4de2-9e7a-3451e14fa17a',
          price: {
            id: '2310de92-c7c0-4bcb-b972-fb7612177bc7',
            amount: 0.1,
            currency: 'NZD'
          },
          product: {
            id: '9586421f-7325-4493-bac9-d93be06a6a38',
            name: ' ',
            type: 'FIXED'
          },      
          startDate: '2021-08-02T20:08:58.772Z',
          testMode: true
       }
      ]
    }
  ],
  startDate: '2021-08-02T20:08:58.772Z',
  status: 'ACTIVE',
  testMode: true
}
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

PETOSS-347

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Thanks for raising an issue, a ticket has been created to track your request

@sangeet-joy-tw
Copy link
Contributor

@grjan7 we have updated the readme file. Please let us know if you have any further issues

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

No branches or pull requests

2 participants