Coder Social home page Coder Social logo

catdance124 / aupaymanager Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.61 MB

生活費を auPayクレジットカード / auPay で決済するにあたって、Google スプレッドシートに利用履歴を記録し、逐次 LINE で通知するツール。

Home Page: https://zenn.dev/catdance124/articles/au-pay-manager-introduction

JavaScript 0.76% TypeScript 98.13% Shell 1.11%
clasp esbuild github-actions google-apps-script jest

aupaymanager's Introduction

auPayManager

生活費を auPayクレジットカード / auPay で決済するにあたって、Google スプレッドシートに利用履歴を記録し、逐次 LINE で通知するツール。

本システムについて

開発者向け

ローカルから指定環境へ手動デプロイ

インストール&テスト

$ git clone [email protected]:catdance124/auPayManager.git ~/auPayManager

$ pwd
~/auPayManager

# 依存パッケージをインストール
$ npm install

# テストを実行
$ npm run test

デプロイ

# デプロイするアカウントでログイン(~/.clasprc.json を作成)
$ clasp login

# デプロイ用の環境変数を準備
$ vi .env
$ cat .env
DEPLOYMENT_ID=******************
SCRIPT_ID=******************
ENV_NAME=Develop

# ビルド&デプロイ
$ npm run deploy
└─ public/appsscript.json
└─ public/main.js
Pushed 2 files.
Created version 600.
- ************ @600.

aupaymanager's People

Contributors

catdance124 avatar

Watchers

 avatar

aupaymanager's Issues

package.json をちゃんと書く

{
"name": "au-pay-manager",
"author": "catdance124",
"devDependencies": {
"@google/clasp": "^2.4.2",
"@types/google-apps-script": "^1.0.78",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"esbuild": "^0.19.8",
"eslint": "^8.55.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
}
}

詳細メールで想定外の入力があった

利用金額が
-xxxx円(返品) のパターン

No.006--------
▼ご利用日
 2024年1月25日
▼ご利用金額
 -1,419円(返品)
▼ご利用先
 UBER * EATS PENDING
▼本会員さまお支払月
 2024年3月

No.002--------
▼ご利用日
 2023年8月28日
▼ご利用金額
 -12,490円(返品)
▼ご利用先
 AMAZON.CO.JP
▼本会員さまお支払月
 2023年10月

postback - fillInText 利用を検討

クイックリプライ押下で発火するpostbackアクションで、fillinTextを利用するとコピペの手間が省ける

ref; https://qiita.com/quwaji/items/b3356ea833b3d739e942

for (let label of this._config.paymentLabelList) {
Array.prototype.push.apply(messages[0].quickReply.items, [
{
type: "action",
action: {
type: "postback",
label: label,
data: `method=updatePaymentLabel&id=${id}&label=${label}`,
},
},
]);
}
this._lineManager.sendReplyMessage(event, messages);
return;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.