Browse Source

郵送依頼API変更対応

develop
sosuke.iwabuchi 2 years ago
parent
commit
1878df7dc0
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      src/api/app/receipt-issuing-order.ts
  2. +2
    -1
      src/pages/app/MailOrder.tsx

+ 1
- 1
src/api/app/receipt-issuing-order.ts View File

@@ -38,7 +38,7 @@ export const confirm = async (data: ConfirmRequest) => {


// 領収証郵送依頼 ------------------------------- // 領収証郵送依頼 -------------------------------
export type MailOrderRequest = { export type MailOrderRequest = {
id: string;
access_token: string;
mail_pref_code: string; mail_pref_code: string;
mail_zip_code: string; mail_zip_code: string;
mail_address1: string; mail_address1: string;


+ 2
- 1
src/pages/app/MailOrder.tsx View File

@@ -60,6 +60,7 @@ const Section = ({ title, subtitle, children }: SectionProps) => {
export default function MailOrder() { export default function MailOrder() {
const { const {
tokenResult, tokenResult,
token,
navigateToHome, navigateToHome,
fetch, fetch,
receiptIssuingOrder: order, receiptIssuingOrder: order,
@@ -100,7 +101,7 @@ export default function MailOrder() {
const handleConfirm = () => { const handleConfirm = () => {
if (!order) return; if (!order) return;
requestMailAPI.callAPI({ requestMailAPI.callAPI({
id: order.id,
access_token: token,
timestamp: order.updated_at, timestamp: order.updated_at,
...input.values(), ...input.values(),
}); });


Loading…
Cancel
Save