Вам не нужно указывать типы, если вы используете API DocumentClient вместо API DynamoDB.
DocumentClient - это API, который абстрагирует типы при манипулировании элементами в DynamoDB, что упрощает чтение и запись элементов из него.
Предполагая, что в какой-то момент вы вызываете DynamoDB.putItem(params)
, вам нужно заменить его API-интерфейсом DocumentClient и использовать вместо него метод put
.
Ваш код будет таким простым:
const AWS = require('aws-sdk');
const docClient = new AWS.DynamoDB.DocumentClient();
exports.handler = async (event) => {
await docClient.put({
Item: {
date: Date.now(),
message: JSON.parse(event.body),
ID: 'some-random-id-you-choose',
a: { "id": "123456", "data": [{ "mac": "1231" }] }
},
TableName: 'wifi'
}).promise()
}
. Посмотрите, что я использую async / await , поэтому вам не нужно использовать ни обратный вызов Lambda, ни обратный вызов DynamoDB больше.
Все операции API для DocumentClient доступны в официальных документах
.
I definitely would advise against AllianceACH.com for the time being. They got sued by their bank and we lost a $5000 deposit because they don't have the money to refund it.
I'm pretty sure they are going out of business, although not positive. If they do end up getting their act together, and giving us back our deposit, I would definitely use them again. After they stopped providing ACH services, we switched to FirstAch.com.
FirstACH.com has what you need - however I have to warn you their interface (both API and GUI) are terrible and annoying. Their customers service is inept and they aren't flexible in working with you to provide solutions tailored to your individual needs. Unfortunately they are the best we have found.
We are currently looking into Wells Fargo business solutions as an alternative, however I suspect it won't be nearly as cheap.
Я видел, что люди используют Союз прежде, и я знаю несколько внутренних приложений, которые используют их API ACH, который обрабатывает всю обработку чеков, прямые депозиты и другие транзакции той природы.
Можно использовать ACH Прямо к, делают это. API здесь: https://www.paymentsgateway.net/pdf/agi_integration.pdf и оценка расположены здесь по www.achdirect.com/offer.
Leslie Hendrix
Authorize.NET также имеет eCheck.net: http://www.authorize.net/solutions/merchantsolutions/merchantservices/echeck/
Authorize.NET, как правило, заслуживает доверия, надежен и проще в использовании, чем другие платежные шлюзы для списания средств с кредитных карт. Я подозреваю, что то же самое и с ACH.
Похоже, платеж Payflow ACH тоже доступен, Payflow ACH API Link