Skip to content

Instantly share code, notes, and snippets.

View ajiehatajie's full-sized avatar

Ajie Hatajie ajiehatajie

  • JAKARTA
View GitHub Profile
@ajiehatajie
ajiehatajie / reducer.js
Created October 22, 2021 06:56
Redux persistor
import {combineReducers} from 'redux';
import {persistReducer} from 'redux-persist';
import AsyncStorage from '@react-native-community/async-storage';
import FSStorage from 'redux-persist-fs-storage';
import createSensitiveStorage from 'redux-persist-sensitive-storage';
import {reducer as WorkOrderReducer} from '../modules/WorkOrder/WorkOrderReducer';
import {reducer as AuthReducer} from '../modules/Auth/AuthReducer';
import {reducer as CustomerReducer} from '../modules/Customer/CustomerReducer';
import {reducer as ServiceVehicleReducer} from '../modules/ServiceVehicle/ServiceVehicleReducer';
import {reducer as NetworkReducer} from '../modules/Network/NetworkReducer';
This file has been truncated, but you can view the full file.
{"msgId":"9ff66e2f-a7f3-424f-9769-287cd3edbeee","operation":"createClaim","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUZXN0LnB1bHNlMUB5b3BtYWlsLmNvbSIsImlzcyI6InBydWRlbnRpYWwiLCJwZXJtaXNzaW9ucyI6WyJhcHBVc2VyIl0sImlhdCI6MTU3NDUwNTAzOCwiZXhwIjoxNTc0NTkxNDM4fQ.GaTiSDMCN84WfRaDHiKHmyOA0jr4s28xG35vzet-ms4","event":"initiateRequestOTP","body":{"admission":{"admissionDate":"2019-11-01","dischargeDate":"2019-11-02"},"treatmentType":"INPATIENT","bankAccount":{"bankCode":"ANZ","accountNo":"1508963288","accountName":"Jend Sudirman"},"policy":{"id":"LA::Pru::Policy::19123709"},"coverage":{"id":"LA::Pru::ProductComponentOption::19123709_01_01_01"},"lifeAssured":{"id":"LA::Pru::Customer::61232940"},"consentAccepted":true,"documents":[{"type":"CLAIMLOOSEMAIL","contentType":"application/pdf","content":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/w
{"msgId":"0db8e82a-b5f0-4a7f-8ff9-066348c85c6c","operation":"createClaim","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUZXN0LnB1bHNlMUB5b3BtYWlsLmNvbSIsImlzcyI6InBydWRlbnRpYWwiLCJwZXJtaXNzaW9ucyI6WyJhcHBVc2VyIl0sImlhdCI6MTU3NDIzMjkxMiwiZXhwIjoxNTc0MzE5MzEyfQ.jhPd0YEwDhBeF0mSzkiY7E48AxdxjAOW7W6Gs--f9-g","event":"initiateRequestOTP","body":{"admission":{"admissionDate":"2019-11-01","dischargeDate":"2019-11-02"},"treatmentType":"INPATIENT","bankAccount":{"bankCode":"ANZ","accountNo":"1508963288","accountName":"Jend Sudirman"},"policy":{"id":"LA::Pru::Policy::19123709"},"coverage":{"id":"LA::Pru::ProductComponentOption::19123709_01_01_02"},"lifeAssured":{"id":"LA::Pru::Customer::61232940"},"consentAccepted":true,"documents":[{"type":"CLAIMLOOSEMAIL","contentType":"application/pdf","content":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/w
@ajiehatajie
ajiehatajie / payload example 1 image
Created November 15, 2019 06:40
payload examle
{"msgId":"f96f8967-1414-4888-a31c-ec1a202f8233","operation":"createClaim","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJIYXphaW4uYWhhZHlAZ21haWwuY29tIiwiaXNzIjoicHJ1ZGVudGlhbCIsInBlcm1pc3Npb25zIjpbImFwcFVzZXIiXSwiaWF0IjoxNTczNzM5MzY5LCJleHAiOjE1NzM4MjU3Njl9.MMwudXcCH3H86bsuysWw4EGxK2Hpm9VkjiWYWMlwK04","event":"initiateRequestOTP","body":{"admission":{"admissionDate":"2019-11-01","dischargeDate":"2019-11-02"},"treatmentType":"INPATIENT","bankAccount":{"bankCode":"CITI01","accountNo":"41198706","accountName":"Iwak"},"policy":{"id":"LA::Pru::Policy::19884906"},"coverage":{"tempCoverage":[{"id":"LA::Pru::ProductComponentOption::19884906_1_1_2"}]},"lifeAssured":{"tempLifeAssured":[{"id":"LA::Pru::Customer::61171392"}]},"consentAccepted":true,"documents":[{"type":"CLAIMLOOSEMAIL","contentType":"application/pdf","content":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleReceiving.Repository.Object
{
public class SuratJalanRequestDto
{
public string taskName { get; set; } = "GR Unit Batching";
@ajiehatajie
ajiehatajie / Order.Model
Created July 24, 2019 04:16
Generate ode
public class BiayaItem
{
public string biayaType { get; set; }
public int biayaValue { get; set; }
}
public class OrderDTO
{
public string createdDate { get; set; }
@ajiehatajie
ajiehatajie / controller-swagger.js
Created October 12, 2018 10:38
controller adonisjs dengan swagger
'use strict'
const Ktp = use('App/Models/Ktp')
const Database = use('Database')
const { validate } = use('Validator')
class KtpController {
/**
* @swagger
@ajiehatajie
ajiehatajie / ubuntu setup.txt
Last active July 23, 2018 07:56
setting react native ubuntu 18.04
cd ~
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
install watchman
sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool pkg-config
git clone https://github.com/facebook/watchman.git
cd watchman/
@ajiehatajie
ajiehatajie / home.js
Created July 17, 2018 09:24
scan barcode
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
TouchableOpacity,
Linking,Text
} from 'react-native';
import { Container, Header, Title, Left, Icon, Right, Button, Body, Content, Card, CardItem } from "native-base";
@ajiehatajie
ajiehatajie / app.js
Created April 17, 2018 09:21
router root
import React, { Component } from 'react';
import { Text, StyleSheet,BackHandler,Alert,View,AsyncStorage,ActivityIndicator } from 'react-native';
import {
Scene,
Router,
Actions,
Reducer,
ActionConst,
Overlay,
Tabs,