Skip to content
View mervintankw's full-sized avatar

Block or report mervintankw

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. validates that UEN (Unique Entity Nu... validates that UEN (Unique Entity Number) number is valid based on https://www.uen.gov.sg/ueninternet/faces/pages/admin/aboutUEN.jspx
    1
    /**
    2
     * validates UEN of businesses in Singapore
    3
     * https://www.uen.gov.sg/ueninternet/faces/pages/admin/aboutUEN.jspx
    4
     * @param {string} uen
    5
     * @returns {boolean}
  2. Xero-node unable to download receipt... Xero-node unable to download receipt attachments
    1
    //Create a local writestream
    2
    var wstream = fs.createWriteStream(tempFile, { encoding: 'binary' });
    3
    
                  
    4
    //Data has been written successfully
    5
    wstream.on('finish', function() {
  3. Xero API Bank Transaction API Reques... Xero API Bank Transaction API Request with incorrect validation on field Type
    1
    // Got the request and response messages via Xero API History on API calls.
    2
    
                  
    3
    // Request message
    4
    {"BankTransactions":[{"Type":"RECEIVE","Contact":{"ContactID":"fc6cb299-ea76-4bc9-881d-bbd71db9a60f","ContactStatus":"ACTIVE","Name":"First Thai Food","EmailAddress":"","BankAccountDetails":"","Addresses":[{"City":"","Region":"","PostalCode":"","Country":"","AddressType":"STREET"},{"City":"","Region":"","PostalCode":"","Country":"","AddressType":"POBOX"}],"Phones":[{"PhoneNumber":"","PhoneAreaCode":"","PhoneCountryCode":"","PhoneType":"DEFAULT"},{"PhoneNumber":"","PhoneAreaCode":"","PhoneCountryCode":"","PhoneType":"DDI"},{"PhoneNumber":"","PhoneAreaCode":"","PhoneCountryCode":"","PhoneType":"FAX"},{"PhoneNumber":"","PhoneAreaCode":"","PhoneCountryCode":"","PhoneType":"MOBILE"}],"DefaultCurrency":"SGD"},"LineItems":[{"Description":"Employee lunch","Quantity":1,"UnitAmount":32,"AccountCode":"461","TaxType":"INPUT","TaxAmount":2.09,"LineAmount":32}],"BankAccount":{"AccountID":"617b2867-3e64-45ed-a40b-e6dd72106def"},"IsReconciled":true,"Date":"2018-01-29T00:00:00.000Z","Reference":"","CurrencyCode":"SGD","CurrencyRate":"1","Status":"AUTHORISED","LineAmountTypes":"Inclusive","SubTotal":29.91,"TotalTax":2.09,"Total":32,"BankTransactionID":"a8910f79-c870-4dae-85bc-a4d0f9ed12fa","HasAttachments":false}]}
    5