Skip to content

Instantly share code, notes, and snippets.

@zalun
Last active April 21, 2022 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zalun/c321610a86dc1f68f5fb6877c6028a0e to your computer and use it in GitHub Desktop.
Save zalun/c321610a86dc1f68f5fb6877c6028a0e to your computer and use it in GitHub Desktop.
{
action: 'afterUpdate',
model: {
singularName: 'transaction',
uid: 'plugin::payu.transaction',
tableName: 'transactions',
attributes: {
id: [Object],
uid: [Object],
configurationMode: [Object],
customerIp: [Object],
description: [Object],
currencyCode: [Object],
totalAmount: [Object],
buyer: [Object],
products: [Object],
status: [Object],
redirectUri: [Object],
orderId: [Object],
payMethod: [Object],
properties: [Object],
createdAt: [Object],
updatedAt: [Object],
createdBy: [Object],
updatedBy: [Object]
},
lifecycles: {},
columnToAttribute: {
id: 'id',
uid: 'uid',
configuration_mode: 'configurationMode',
customer_ip: 'customerIp',
description: 'description',
currency_code: 'currencyCode',
total_amount: 'totalAmount',
buyer: 'buyer',
products: 'products',
status: 'status',
redirect_uri: 'redirectUri',
order_id: 'orderId',
pay_method: 'payMethod',
properties: 'properties',
created_at: 'createdAt',
updated_at: 'updatedAt',
createdBy: 'createdBy',
updatedBy: 'updatedBy'
}
},
params: {
where: { id: 68 },
data: {
redirectUri: 'https://merch-prod.snd.payu.com/pay/?orderId=ZTBPCN9QS4220421GUEST000P01&token=eyJhbGciOiJIUzI1NiJ9.eyJvcmRlcklkIjoiWlRCUENOOVFTNDIyMDQyMUdVRVNUMDAwUDAxIiwicG9zSWQiOiJvZzVIeTU5ZSIsImF1dGhvcml0aWVzIjpbIlJPTEVfQ0xJRU5UIl0sImV4cCI6MTY1MDY0NTA2MCwiaXNzIjoiUEFZVSIsImF1ZCI6ImFwaS1nYXRld2F5Iiwic3ViIjoiUGF5VSBzdWJqZWN0IiwianRpIjoiMzUzNWViMGMtYzZhMy00OTMxLTkyY2UtZDE4ZmI0MzEwZDkzIn0.Gp98M0Y7U6p1Wn3QcNCbj7wImbjntCThr2_4eKZpgP0',
orderId: 'ZTBPCN9QS4220421GUEST000P01',
status: 'NEW',
updatedAt: 2022-04-21T16:31:00.804Z
}
},
result: {
id: 68,
customerIp: '127.0.0.1',
description: 'test',
currencyCode: 'PLN',
totalAmount: '1000',
buyer: null,
products: [ [Object] ],
status: 'NEW',
redirectUri: 'https://merch-prod.snd.payu.com/pay/?orderId=ZTBPCN9QS4220421GUEST000P01&token=eyJhbGciOiJIUzI1NiJ9.eyJvcmRlcklkIjoiWlRCUENOOVFTNDIyMDQyMUdVRVNUMDAwUDAxIiwicG9zSWQiOiJvZzVIeTU5ZSIsImF1dGhvcml0aWVzIjpbIlJPTEVfQ0xJRU5UIl0sImV4cCI6MTY1MDY0NTA2MCwiaXNzIjoiUEFZVSIsImF1ZCI6ImFwaS1nYXRld2F5Iiwic3ViIjoiUGF5VSBzdWJqZWN0IiwianRpIjoiMzUzNWViMGMtYzZhMy00OTMxLTkyY2UtZDE4ZmI0MzEwZDkzIn0.Gp98M0Y7U6p1Wn3QcNCbj7wImbjntCThr2_4eKZpgP0',
orderId: 'ZTBPCN9QS4220421GUEST000P01',
createdAt: '2022-04-21T16:31:00.483Z',
updatedAt: '2022-04-21T16:31:00.804Z',
configurationMode: 'sandbox',
uid: 'ddb68d8b-786a-4883-83c9-9e7e40d661f5',
payMethod: null,
properties: null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment