@rangka-os/create 0.0.0-stage → 0.5.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +137 -0
- package/package.json +29 -4
- package/template/base/README.md +32 -0
- package/template/base/_gitignore +3 -0
- package/template/base/_vscode/settings.json +4 -0
- package/template/base/apps/crm/app.rk +44 -0
- package/template/base/apps/crm/dashboards/crm_overview.rk +88 -0
- package/template/base/apps/crm/dashboards/sales_overview.rk +66 -0
- package/template/base/apps/crm/processes/lead_to_cash.rk +8 -0
- package/template/base/apps/dapur/app.rk +35 -0
- package/template/base/apps/dapur/dashboards/dapur_hari_ini.rk +26 -0
- package/template/base/apps/faktur_piutang/app.rk +31 -0
- package/template/base/apps/faktur_piutang/dashboards/piutang_ringkas.rk +88 -0
- package/template/base/apps/fnb_cabang/app.rk +46 -0
- package/template/base/apps/fnb_cabang/dashboards/fnb_overview.rk +104 -0
- package/template/base/apps/fnb_cabang/dashboards/outlet_harian.rk +36 -0
- package/template/base/apps/fnb_cabang/dashboards/stock_recap.rk +132 -0
- package/template/base/apps/grosir_distribusi/app.rk +56 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_ar.rk +62 -0
- package/template/base/apps/grosir_distribusi/dashboards/grosir_overview.rk +87 -0
- package/template/base/apps/jasa_proyek/app.rk +64 -0
- package/template/base/apps/jasa_proyek/dashboards/absen_saya.rk +15 -0
- package/template/base/apps/jasa_proyek/dashboards/ar_aging.rk +88 -0
- package/template/base/apps/jasa_proyek/dashboards/jasa_overview.rk +148 -0
- package/template/base/apps/jasa_proyek/dashboards/project_margin.rk +94 -0
- package/template/base/apps/jasa_proyek/dashboards/rekap_absen.rk +18 -0
- package/template/base/apps/jasa_proyek/processes/quote_to_cash.rk +10 -0
- package/template/base/apps/kasir/app.rk +38 -0
- package/template/base/apps/kasir/dashboards/kasir_ringkas.rk +20 -0
- package/template/base/apps/kasir/skills/rangka-app-kasir/SKILL.md +64 -0
- package/template/base/apps/kelas_kursus/app.rk +29 -0
- package/template/base/apps/kelas_kursus/dashboards/kelas_saya.rk +41 -0
- package/template/base/apps/kelas_kursus/dashboards/kursus_ringkas.rk +67 -0
- package/template/base/apps/langganan_jasa/app.rk +32 -0
- package/template/base/apps/langganan_jasa/dashboards/langganan_ringkas.rk +167 -0
- package/template/base/apps/langganan_jasa/dashboards/penagihan_saya.rk +54 -0
- package/template/base/apps/mutasi_bank/app.rk +22 -0
- package/template/base/apps/pajak/app.rk +25 -0
- package/template/base/apps/pembelian_pemasok/app.rk +23 -0
- package/template/base/apps/pembukuan/app.rk +19 -0
- package/template/base/apps/penjualan_harian/app.rk +34 -0
- package/template/base/apps/penjualan_harian/dashboards/penjualan_ringkas.rk +87 -0
- package/template/base/apps/produksi_pabrik/app.rk +54 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_overview.rk +101 -0
- package/template/base/apps/produksi_pabrik/dashboards/produksi_upah.rk +39 -0
- package/template/base/apps/ritel_cabang/app.rk +58 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_overview.rk +137 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_stock.rk +147 -0
- package/template/base/apps/ritel_cabang/dashboards/ritel_tax.rk +76 -0
- package/template/base/apps/sewa_alat/app.rk +31 -0
- package/template/base/apps/sewa_alat/dashboards/alat_hari_ini.rk +90 -0
- package/template/base/apps/sewa_alat/dashboards/sewa_ringkas.rk +86 -0
- package/template/base/apps/stok_outlet/app.rk +34 -0
- package/template/base/apps/stok_outlet/dashboards/outlet_hari_ini.rk +33 -0
- package/template/base/apps/stok_outlet/dashboards/stok_ringkas.rk +50 -0
- package/template/base/connectors/biteship/connector.rk +246 -0
- package/template/base/connectors/biteship/fixtures/cancel_order.json +1 -0
- package/template/base/connectors/biteship/fixtures/create_order.json +8 -0
- package/template/base/connectors/biteship/fixtures/expect.json +9 -0
- package/template/base/connectors/biteship/fixtures/get_order.json +2 -0
- package/template/base/connectors/biteship/fixtures/get_rates.json +7 -0
- package/template/base/connectors/biteship/fixtures/get_tracking.json +7 -0
- package/template/base/connectors/biteship/fixtures/order_price.json +11 -0
- package/template/base/connectors/biteship/fixtures/order_status.json +15 -0
- package/template/base/connectors/biteship/fixtures/order_status_cancelled.json +15 -0
- package/template/base/connectors/biteship/fixtures/order_waybill.json +7 -0
- package/template/base/connectors/biteship/fixtures/search_areas.json +1 -0
- package/template/base/connectors/doku/connector.rk +128 -0
- package/template/base/connectors/doku/fixtures/create_checkout.json +6 -0
- package/template/base/connectors/doku/fixtures/expect.json +38 -0
- package/template/base/connectors/doku/fixtures/payment_notified.json +5 -0
- package/template/base/connectors/doku/fixtures/payment_notified_failed.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_no_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_null_type.json +3 -0
- package/template/base/connectors/doku/fixtures/payment_notified_refund.json +3 -0
- package/template/base/connectors/doku/mock/doku_mock.py +206 -0
- package/template/base/connectors/loyverse/connector.rk +98 -0
- package/template/base/connectors/moka/connector.rk +120 -0
- package/template/base/connectors/moka/fixtures/expect.json +44 -0
- package/template/base/connectors/moka/fixtures/latest_transactions.json +79 -0
- package/template/base/connectors/moka/fixtures/list_items.json +4 -0
- package/template/base/connectors/moka/fixtures/list_outlets.json +4 -0
- package/template/base/connectors/moka/fixtures/transaction_created.json +44 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund.json +39 -0
- package/template/base/connectors/moka/fixtures/transaction_created_refund_later.json +51 -0
- package/template/base/connectors/whatsapp_business/connector.rk +89 -0
- package/template/base/connectors/whatsapp_business/templates.md +32 -0
- package/template/base/connectors/xendit/connector.rk +184 -0
- package/template/base/docker-compose.yml +16 -0
- package/template/base/env.example +12 -0
- package/template/base/modules/accounting/flows/financial_report_compute.rk +47 -0
- package/template/base/modules/accounting/flows/financial_report_recompute.rk +47 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_post.rk +37 -0
- package/template/base/modules/accounting/flows/gl_delivery_note_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_post.rk +41 -0
- package/template/base/modules/accounting/flows/gl_goods_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_post.rk +132 -0
- package/template/base/modules/accounting/flows/gl_opening_balance_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_outlet_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_outlet_sales_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_post.rk +71 -0
- package/template/base/modules/accounting/flows/gl_outlet_takings_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payment_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_payment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_post.rk +89 -0
- package/template/base/modules/accounting/flows/gl_payroll_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_pos_sale_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_post.rk +59 -0
- package/template/base/modules/accounting/flows/gl_pos_shift_close_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_production_batch_post.rk +62 -0
- package/template/base/modules/accounting/flows/gl_production_batch_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_project_expense_post.rk +64 -0
- package/template/base/modules/accounting/flows/gl_project_expense_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_rental_booking_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_rental_return_post.rk +47 -0
- package/template/base/modules/accounting/flows/gl_rental_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_post.rk +95 -0
- package/template/base/modules/accounting/flows/gl_sales_invoice_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_sales_return_post.rk +40 -0
- package/template/base/modules/accounting/flows/gl_sales_return_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_adjustment_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_count_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_count_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_post.rk +38 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_receipt_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_stock_transfer_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_timesheet_post.rk +35 -0
- package/template/base/modules/accounting/flows/gl_timesheet_reverse.rk +194 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_post.rk +63 -0
- package/template/base/modules/accounting/flows/gl_vendor_bill_reverse.rk +194 -0
- package/template/base/modules/accounting/imports/opening_balance_sheet.rk +22 -0
- package/template/base/modules/accounting/models/financial_report.rk +85 -0
- package/template/base/modules/accounting/models/gl_entry.rk +161 -0
- package/template/base/modules/accounting/models/opening_balance.rk +48 -0
- package/template/base/modules/accounting/models/period_close.rk +33 -0
- package/template/base/modules/accounting/module.rk +16 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_claim.rk +19 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_confirm.rk +43 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_link_locked.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_matched.rk +13 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_release.rk +11 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_suggest.rk +31 -0
- package/template/base/modules/bank_statement/flows/bank_transaction_unmatched.rk +11 -0
- package/template/base/modules/bank_statement/imports/bank_statement_csv.rk +25 -0
- package/template/base/modules/bank_statement/models/bank_transaction.rk +124 -0
- package/template/base/modules/bank_statement/models/bank_transaction_claim.rk +49 -0
- package/template/base/modules/bank_statement/module.rk +12 -0
- package/template/base/modules/catalogue/imports/item_list.rk +20 -0
- package/template/base/modules/catalogue/imports/item_master.rk +25 -0
- package/template/base/modules/catalogue/models/item.rk +129 -0
- package/template/base/modules/catalogue/models/item_category.rk +27 -0
- package/template/base/modules/catalogue/models/price_list.rk +34 -0
- package/template/base/modules/catalogue/models/price_list_item.rk +21 -0
- package/template/base/modules/catalogue/models/uom.rk +34 -0
- package/template/base/modules/catalogue/models/uom_conversion.rk +44 -0
- package/template/base/modules/catalogue/module.rk +11 -0
- package/template/base/modules/consignment/flows/consignment_bill.rk +39 -0
- package/template/base/modules/consignment/flows/consignment_bill_cancelled.rk +14 -0
- package/template/base/modules/consignment/models/consignment_settlement.rk +111 -0
- package/template/base/modules/consignment/models/consignment_settlement_item.rk +37 -0
- package/template/base/modules/consignment/module.rk +15 -0
- package/template/base/modules/contacts/imports/customer_list.rk +17 -0
- package/template/base/modules/contacts/imports/vendor_list.rk +16 -0
- package/template/base/modules/contacts/models/contact_person.rk +21 -0
- package/template/base/modules/contacts/models/credit_guard.rk +40 -0
- package/template/base/modules/contacts/models/customer.rk +180 -0
- package/template/base/modules/contacts/models/vendor.rk +104 -0
- package/template/base/modules/contacts/module.rk +10 -0
- package/template/base/modules/coretax/models/tax_period.rk +89 -0
- package/template/base/modules/coretax/module.rk +13 -0
- package/template/base/modules/coretax/print/coretax_bupot.rk +26 -0
- package/template/base/modules/coretax/print/coretax_bupot.xml +28 -0
- package/template/base/modules/coretax/print/coretax_faktur.rk +34 -0
- package/template/base/modules/coretax/print/coretax_faktur.xml +58 -0
- package/template/base/modules/courses/flows/charge_cancel_guard.rk +23 -0
- package/template/base/modules/courses/flows/charge_invoice_on_submit.rk +56 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_create.rk +15 -0
- package/template/base/modules/courses/flows/enrollment_seats_on_update.rk +35 -0
- package/template/base/modules/courses/flows/invoice_course_once.rk +22 -0
- package/template/base/modules/courses/flows/invoice_course_tag_lock.rk +16 -0
- package/template/base/modules/courses/flows/session_fill_attendance.rk +16 -0
- package/template/base/modules/courses/flows/student_billing_on_create.rk +25 -0
- package/template/base/modules/courses/models/course_attendance.rk +22 -0
- package/template/base/modules/courses/models/course_batch.rk +119 -0
- package/template/base/modules/courses/models/course_batch_slot.rk +18 -0
- package/template/base/modules/courses/models/course_charge.rk +125 -0
- package/template/base/modules/courses/models/course_guard.rk +50 -0
- package/template/base/modules/courses/models/course_program.rk +101 -0
- package/template/base/modules/courses/models/course_session.rk +93 -0
- package/template/base/modules/courses/models/enrollment.rk +136 -0
- package/template/base/modules/courses/models/student.rk +68 -0
- package/template/base/modules/courses/module.rk +14 -0
- package/template/base/modules/courses/roles/instructor.rk +7 -0
- package/template/base/modules/currency/models/currency.rk +34 -0
- package/template/base/modules/currency/models/exchange_rate.rk +39 -0
- package/template/base/modules/currency/module.rk +10 -0
- package/template/base/modules/delivery/flows/delivery_cancel_guard.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_cancelled.rk +21 -0
- package/template/base/modules/delivery/flows/fulfilment_on_delivery_submitted.rk +28 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_cancelled.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_invoice_submitted.rk +22 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_created.rk +18 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_order_updated.rk +19 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_cancelled.rk +16 -0
- package/template/base/modules/delivery/flows/fulfilment_on_return_submitted.rk +16 -0
- package/template/base/modules/delivery/flows/invoice_qty_from_deliveries.rk +20 -0
- package/template/base/modules/delivery/flows/order_cancel_guard.rk +10 -0
- package/template/base/modules/delivery/flows/return_cancel_guard.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_payment_submitted.rk +21 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_cancelled.rk +11 -0
- package/template/base/modules/delivery/flows/return_credit_on_return_submitted.rk +10 -0
- package/template/base/modules/delivery/models/delivery_guard.rk +48 -0
- package/template/base/modules/delivery/models/delivery_note.rk +101 -0
- package/template/base/modules/delivery/models/delivery_note_item.rk +11 -0
- package/template/base/modules/delivery/models/order_fulfilment.rk +27 -0
- package/template/base/modules/delivery/models/order_fulfilment_item.rk +10 -0
- package/template/base/modules/delivery/models/return_credit.rk +23 -0
- package/template/base/modules/delivery/models/sales_return.rk +87 -0
- package/template/base/modules/delivery/models/sales_return_item.rk +16 -0
- package/template/base/modules/delivery/module.rk +16 -0
- package/template/base/modules/delivery/print/delivery_note.html +96 -0
- package/template/base/modules/delivery/print/delivery_note.rk +9 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_invoice_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_order_submitted.rk +25 -0
- package/template/base/modules/distribution/flows/credit_on_payment_cancelled.rk +17 -0
- package/template/base/modules/distribution/flows/credit_on_payment_submitted.rk +17 -0
- package/template/base/modules/distribution/flows/giro_bounced.rk +20 -0
- package/template/base/modules/distribution/flows/giro_from_payment.rk +21 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_created.rk +17 -0
- package/template/base/modules/distribution/flows/order_tier_pricing_updated.rk +17 -0
- package/template/base/modules/distribution/models/giro.rk +79 -0
- package/template/base/modules/distribution/module.rk +14 -0
- package/template/base/modules/invoicing/flows/invoice_due_digest.rk +12 -0
- package/template/base/modules/invoicing/flows/milestone_invoiced.rk +23 -0
- package/template/base/modules/invoicing/flows/milestone_reopened.rk +19 -0
- package/template/base/modules/invoicing/flows/payment_instruction_on_submit.rk +25 -0
- package/template/base/modules/invoicing/flows/project_billed_on_cancel.rk +16 -0
- package/template/base/modules/invoicing/flows/project_billed_on_submit.rk +16 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_cancel.rk +22 -0
- package/template/base/modules/invoicing/flows/project_revenue_on_submit.rk +17 -0
- package/template/base/modules/invoicing/flows/sales_invoice_credit_recheck.rk +18 -0
- package/template/base/modules/invoicing/models/bank_account.rk +134 -0
- package/template/base/modules/invoicing/models/invoice_reminder.rk +83 -0
- package/template/base/modules/invoicing/models/payment_instruction.rk +72 -0
- package/template/base/modules/invoicing/models/sales_invoice.rk +480 -0
- package/template/base/modules/invoicing/models/sales_invoice_item.rk +53 -0
- package/template/base/modules/invoicing/module.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice.html +163 -0
- package/template/base/modules/invoicing/print/sales_invoice.rk +14 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.html +71 -0
- package/template/base/modules/invoicing/print/sales_invoice_nota.rk +13 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.html +45 -0
- package/template/base/modules/invoicing/print/sales_invoice_whatsapp.rk +15 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_sale.rk +29 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_update.rk +26 -0
- package/template/base/modules/kitchen/flows/kitchen_ticket_on_void.rk +15 -0
- package/template/base/modules/kitchen/models/kitchen_guard.rk +35 -0
- package/template/base/modules/kitchen/models/kitchen_route.rk +26 -0
- package/template/base/modules/kitchen/models/kitchen_station.rk +40 -0
- package/template/base/modules/kitchen/models/kitchen_ticket.rk +78 -0
- package/template/base/modules/kitchen/models/kitchen_ticket_item.rk +10 -0
- package/template/base/modules/kitchen/module.rk +18 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.html +29 -0
- package/template/base/modules/kitchen/print/kitchen_ticket.rk +9 -0
- package/template/base/modules/kitchen/roles/kitchen.rk +6 -0
- package/template/base/modules/kitchen/screens/dapur.rk +22 -0
- package/template/base/modules/orders/models/customer_order.rk +186 -0
- package/template/base/modules/orders/models/customer_order_item.rk +49 -0
- package/template/base/modules/orders/module.rk +14 -0
- package/template/base/modules/outlet_sales/flows/moka_daily_sales.rk +57 -0
- package/template/base/modules/outlet_sales/flows/moka_legacy_key_overlap.rk +22 -0
- package/template/base/modules/outlet_sales/flows/moka_line_mapped.rk +14 -0
- package/template/base/modules/outlet_sales/flows/moka_transaction_staged.rk +90 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_cancelled.rk +15 -0
- package/template/base/modules/outlet_sales/flows/refund_on_return_submitted.rk +26 -0
- package/template/base/modules/outlet_sales/flows/refund_on_sales_submitted.rk +14 -0
- package/template/base/modules/outlet_sales/flows/sales_cancel_guard.rk +14 -0
- package/template/base/modules/outlet_sales/imports/daily_form.rk +22 -0
- package/template/base/modules/outlet_sales/imports/loyverse_receipts.rk +28 -0
- package/template/base/modules/outlet_sales/imports/moka_item_details.rk +34 -0
- package/template/base/modules/outlet_sales/imports/pos_sales_file.rk +28 -0
- package/template/base/modules/outlet_sales/imports/takings_file.rk +23 -0
- package/template/base/modules/outlet_sales/models/moka_sale_line.rk +53 -0
- package/template/base/modules/outlet_sales/models/moka_transaction.rk +26 -0
- package/template/base/modules/outlet_sales/models/outlet_return.rk +66 -0
- package/template/base/modules/outlet_sales/models/outlet_return_item.rk +7 -0
- package/template/base/modules/outlet_sales/models/outlet_sales.rk +176 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_guard.rk +35 -0
- package/template/base/modules/outlet_sales/models/outlet_sales_line.rk +40 -0
- package/template/base/modules/outlet_sales/models/outlet_takings.rk +85 -0
- package/template/base/modules/outlet_sales/models/outlet_takings_line.rk +37 -0
- package/template/base/modules/outlet_sales/models/pos_refund.rk +33 -0
- package/template/base/modules/outlet_sales/models/pos_refund_item.rk +9 -0
- package/template/base/modules/outlet_sales/module.rk +12 -0
- package/template/base/modules/outlets/models/outlet.rk +84 -0
- package/template/base/modules/outlets/module.rk +10 -0
- package/template/base/modules/payments/flows/payment_from_doku.rk +73 -0
- package/template/base/modules/payments/flows/payment_from_xendit_invoice.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_qr.rk +59 -0
- package/template/base/modules/payments/flows/payment_from_xendit_va.rk +59 -0
- package/template/base/modules/payments/flows/payment_gateway_claim_created.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_claim_submitted.rk +19 -0
- package/template/base/modules/payments/flows/payment_gateway_release.rk +12 -0
- package/template/base/modules/payments/models/gateway_ref_claim.rk +42 -0
- package/template/base/modules/payments/models/payment.rk +215 -0
- package/template/base/modules/payments/models/payment_allocation.rk +35 -0
- package/template/base/modules/payments/models/withholding.rk +76 -0
- package/template/base/modules/payments/module.rk +13 -0
- package/template/base/modules/payments/print/statement.html +55 -0
- package/template/base/modules/payments/print/statement.rk +13 -0
- package/template/base/modules/payroll/flows/invoice_payroll_once.rk +20 -0
- package/template/base/modules/payroll/flows/invoice_payroll_tag_lock.rk +13 -0
- package/template/base/modules/payroll/flows/payroll_close_on_cancel.rk +35 -0
- package/template/base/modules/payroll/flows/payroll_close_on_submit.rk +66 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_created.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_run_overlap_guard_updated.rk +14 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_cancel.rk +29 -0
- package/template/base/modules/payroll/flows/payroll_totals_on_payslip_submit.rk +29 -0
- package/template/base/modules/payroll/flows/payslip_cancel_guard.rk +14 -0
- package/template/base/modules/payroll/flows/payslip_from_recap.rk +47 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_created.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_month_guard_submitted.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_cancelled.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_order_guard_submitted.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_pay_overlap_guard.rk +15 -0
- package/template/base/modules/payroll/flows/payslip_ytd_guard.rk +16 -0
- package/template/base/modules/payroll/flows/payslip_ytd_on_create.rk +20 -0
- package/template/base/modules/payroll/flows/recap_cancel_guard.rk +15 -0
- package/template/base/modules/payroll/models/payroll_close.rk +80 -0
- package/template/base/modules/payroll/models/payroll_guard.rk +74 -0
- package/template/base/modules/payroll/models/payroll_profile.rk +136 -0
- package/template/base/modules/payroll/models/payroll_run.rk +220 -0
- package/template/base/modules/payroll/models/payslip.rk +293 -0
- package/template/base/modules/payroll/module.rk +13 -0
- package/template/base/modules/payroll/print/payslip.html +53 -0
- package/template/base/modules/payroll/print/payslip.rk +7 -0
- package/template/base/modules/pipeline/flows/morning_follow_up.rk +10 -0
- package/template/base/modules/pipeline/flows/whatsapp_to_lead.rk +24 -0
- package/template/base/modules/pipeline/models/activity.rk +83 -0
- package/template/base/modules/pipeline/models/deal.rk +139 -0
- package/template/base/modules/pipeline/models/lead.rk +119 -0
- package/template/base/modules/pipeline/module.rk +12 -0
- package/template/base/modules/pos/flows/pos_daily_form_guard.rk +18 -0
- package/template/base/modules/pos/flows/pos_sale_on_cancel.rk +33 -0
- package/template/base/modules/pos/flows/pos_sale_on_submit.rk +46 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_cancel.rk +26 -0
- package/template/base/modules/pos/flows/pos_shift_close_on_submit.rk +23 -0
- package/template/base/modules/pos/flows/pos_shift_on_create.rk +21 -0
- package/template/base/modules/pos/flows/pos_shift_on_update.rk +10 -0
- package/template/base/modules/pos/flows/pos_takings_guard.rk +28 -0
- package/template/base/modules/pos/models/pos_guard.rk +76 -0
- package/template/base/modules/pos/models/pos_payment.rk +17 -0
- package/template/base/modules/pos/models/pos_sale.rk +222 -0
- package/template/base/modules/pos/models/pos_sale_item.rk +43 -0
- package/template/base/modules/pos/models/pos_shift.rk +92 -0
- package/template/base/modules/pos/models/pos_shift_close.rk +77 -0
- package/template/base/modules/pos/module.rk +22 -0
- package/template/base/modules/pos/print/pos_receipt.html +50 -0
- package/template/base/modules/pos/print/pos_receipt.rk +9 -0
- package/template/base/modules/pos/screens/kasir.rk +41 -0
- package/template/base/modules/procurement/flows/project_vendor_cost_on_cancel.rk +22 -0
- package/template/base/modules/procurement/flows/project_vendor_cost_on_submit.rk +17 -0
- package/template/base/modules/procurement/imports/opening_stock.rk +25 -0
- package/template/base/modules/procurement/models/goods_receipt.rk +85 -0
- package/template/base/modules/procurement/models/goods_receipt_item.rk +42 -0
- package/template/base/modules/procurement/models/purchase_order.rk +156 -0
- package/template/base/modules/procurement/models/purchase_order_item.rk +46 -0
- package/template/base/modules/procurement/models/purchase_request.rk +91 -0
- package/template/base/modules/procurement/models/purchase_request_item.rk +35 -0
- package/template/base/modules/procurement/models/vendor_bill.rk +272 -0
- package/template/base/modules/procurement/models/vendor_bill_item.rk +33 -0
- package/template/base/modules/procurement/module.rk +14 -0
- package/template/base/modules/procurement/print/purchase_order.html +120 -0
- package/template/base/modules/procurement/print/purchase_order.rk +7 -0
- package/template/base/modules/production/flows/batch_cancel_guard.rk +12 -0
- package/template/base/modules/production/flows/batch_from_bom.rk +19 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_cancelled.rk +14 -0
- package/template/base/modules/production/flows/wage_sheet_on_batch_submitted.rk +12 -0
- package/template/base/modules/production/flows/work_order_materials_created.rk +20 -0
- package/template/base/modules/production/flows/work_order_materials_updated.rk +20 -0
- package/template/base/modules/production/models/bom.rk +67 -0
- package/template/base/modules/production/models/bom_byproduct.rk +7 -0
- package/template/base/modules/production/models/bom_line.rk +11 -0
- package/template/base/modules/production/models/production_batch.rk +149 -0
- package/template/base/modules/production/models/production_guard.rk +23 -0
- package/template/base/modules/production/models/production_labour.rk +10 -0
- package/template/base/modules/production/models/production_material.rk +8 -0
- package/template/base/modules/production/models/production_output.rk +8 -0
- package/template/base/modules/production/models/production_stage.rk +19 -0
- package/template/base/modules/production/models/wage_line.rk +15 -0
- package/template/base/modules/production/models/wage_sheet.rk +28 -0
- package/template/base/modules/production/models/work_order.rk +63 -0
- package/template/base/modules/production/models/work_order_material.rk +8 -0
- package/template/base/modules/production/module.rk +17 -0
- package/template/base/modules/production/print/wage_sheet.html +75 -0
- package/template/base/modules/production/print/wage_sheet.rk +9 -0
- package/template/base/modules/projects/flows/attendance_close_cancel_guard.rk +15 -0
- package/template/base/modules/projects/flows/attendance_close_on_submit.rk +64 -0
- package/template/base/modules/projects/flows/attendance_log_cancel_guard.rk +14 -0
- package/template/base/modules/projects/flows/attendance_log_guard_created.rk +15 -0
- package/template/base/modules/projects/flows/attendance_log_guard_submitted.rk +34 -0
- package/template/base/modules/projects/flows/attendance_log_guard_updated.rk +14 -0
- package/template/base/modules/projects/flows/milestone_back_on_acceptance_cancel.rk +15 -0
- package/template/base/modules/projects/flows/milestone_lock_on_update.rk +16 -0
- package/template/base/modules/projects/flows/milestone_ready_on_acceptance.rk +40 -0
- package/template/base/modules/projects/flows/milestone_scheduled_on_create.rk +14 -0
- package/template/base/modules/projects/flows/milestone_scheduled_on_update.rk +27 -0
- package/template/base/modules/projects/flows/project_expense_on_cancel.rk +21 -0
- package/template/base/modules/projects/flows/project_expense_on_submit.rk +16 -0
- package/template/base/modules/projects/flows/project_labor_on_cancel.rk +22 -0
- package/template/base/modules/projects/flows/project_labor_on_submit.rk +17 -0
- package/template/base/modules/projects/flows/project_terms_lock.rk +26 -0
- package/template/base/modules/projects/flows/timesheet_assignment_on_create.rk +28 -0
- package/template/base/modules/projects/flows/timesheet_attendance_overlap_guard.rk +20 -0
- package/template/base/modules/projects/flows/vendor_bill_cancel_guard.rk +15 -0
- package/template/base/modules/projects/imports/attendance_recap.rk +23 -0
- package/template/base/modules/projects/imports/billing_milestone.rk +20 -0
- package/template/base/modules/projects/models/acceptance.rk +68 -0
- package/template/base/modules/projects/models/assignment.rk +116 -0
- package/template/base/modules/projects/models/attendance_close.rk +63 -0
- package/template/base/modules/projects/models/attendance_guard.rk +57 -0
- package/template/base/modules/projects/models/attendance_log.rk +266 -0
- package/template/base/modules/projects/models/billing_milestone.rk +217 -0
- package/template/base/modules/projects/models/project.rk +155 -0
- package/template/base/modules/projects/models/project_expense.rk +121 -0
- package/template/base/modules/projects/models/project_guard.rk +27 -0
- package/template/base/modules/projects/models/project_ledger.rk +146 -0
- package/template/base/modules/projects/models/timesheet.rk +167 -0
- package/template/base/modules/projects/models/work_site.rk +73 -0
- package/template/base/modules/projects/module.rk +11 -0
- package/template/base/modules/projects/roles/field_worker.rk +7 -0
- package/template/base/modules/projects/roles/site_supervisor.rk +7 -0
- package/template/base/modules/quotation/models/quotation.rk +201 -0
- package/template/base/modules/quotation/models/quotation_item.rk +37 -0
- package/template/base/modules/quotation/module.rk +14 -0
- package/template/base/modules/quotation/print/quotation.html +65 -0
- package/template/base/modules/quotation/print/quotation.rk +7 -0
- package/template/base/modules/rental/flows/rental_booking_on_cancel.rk +19 -0
- package/template/base/modules/rental/flows/rental_booking_on_submit.rk +45 -0
- package/template/base/modules/rental/flows/rental_checkout_on_cancel.rk +24 -0
- package/template/base/modules/rental/flows/rental_checkout_on_submit.rk +33 -0
- package/template/base/modules/rental/flows/rental_invoice_once.rk +20 -0
- package/template/base/modules/rental/flows/rental_invoice_tag_lock.rk +12 -0
- package/template/base/modules/rental/flows/rental_return_on_cancel.rk +26 -0
- package/template/base/modules/rental/flows/rental_return_on_submit.rk +45 -0
- package/template/base/modules/rental/models/rental_booking.rk +124 -0
- package/template/base/modules/rental/models/rental_checkout.rk +96 -0
- package/template/base/modules/rental/models/rental_checkout_unit.rk +22 -0
- package/template/base/modules/rental/models/rental_guard.rk +93 -0
- package/template/base/modules/rental/models/rental_item.rk +83 -0
- package/template/base/modules/rental/models/rental_return.rk +142 -0
- package/template/base/modules/rental/models/rental_return_unit.rk +29 -0
- package/template/base/modules/rental/models/rental_schedule.rk +51 -0
- package/template/base/modules/rental/models/rental_unit.rk +73 -0
- package/template/base/modules/rental/module.rk +25 -0
- package/template/base/modules/rental/print/rental_bast_in.html +107 -0
- package/template/base/modules/rental/print/rental_bast_in.rk +9 -0
- package/template/base/modules/rental/print/rental_bast_out.html +98 -0
- package/template/base/modules/rental/print/rental_bast_out.rk +11 -0
- package/template/base/modules/rental/roles/rental_staff.rk +7 -0
- package/template/base/modules/stock/flows/adjustment_value_backfill.rk +95 -0
- package/template/base/modules/stock/flows/adjustment_value_on_cancel.rk +19 -0
- package/template/base/modules/stock/flows/adjustment_value_on_submit.rk +17 -0
- package/template/base/modules/stock/flows/stock_negative_alert.rk +15 -0
- package/template/base/modules/stock/models/recipe.rk +68 -0
- package/template/base/modules/stock/models/recipe_line.rk +24 -0
- package/template/base/modules/stock/models/stock_adjustment.rk +62 -0
- package/template/base/modules/stock/models/stock_adjustment_item.rk +32 -0
- package/template/base/modules/stock/models/stock_adjustment_value.rk +79 -0
- package/template/base/modules/stock/models/stock_balance.rk +27 -0
- package/template/base/modules/stock/models/stock_count.rk +54 -0
- package/template/base/modules/stock/models/stock_count_item.rk +33 -0
- package/template/base/modules/stock/models/stock_move.rk +53 -0
- package/template/base/modules/stock/models/stock_transfer.rk +70 -0
- package/template/base/modules/stock/models/stock_transfer_item.rk +34 -0
- package/template/base/modules/stock/models/stock_transfer_receipt.rk +57 -0
- package/template/base/modules/stock/models/stock_transfer_receipt_item.rk +18 -0
- package/template/base/modules/stock/module.rk +13 -0
- package/template/base/modules/subscriptions/flows/collector_deposit_on_submit.rk +57 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_kept.rk +17 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_cancelled.rk +14 -0
- package/template/base/modules/subscriptions/flows/deposit_payment_not_deleted.rk +14 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_created.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_cap_updated.rk +24 -0
- package/template/base/modules/subscriptions/flows/field_collection_locked.rk +12 -0
- package/template/base/modules/subscriptions/flows/field_collection_not_deleted.rk +10 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_kept.rk +19 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_once.rk +34 -0
- package/template/base/modules/subscriptions/flows/invoice_subscription_tag_lock.rk +13 -0
- package/template/base/modules/subscriptions/flows/service_area_collector.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_billing.rk +79 -0
- package/template/base/modules/subscriptions/flows/subscription_dunning.rk +81 -0
- package/template/base/modules/subscriptions/flows/subscription_extra_locked.rk +14 -0
- package/template/base/modules/subscriptions/flows/subscription_status_on_payment.rk +48 -0
- package/template/base/modules/subscriptions/models/collector_deposit.rk +36 -0
- package/template/base/modules/subscriptions/models/field_collection.rk +42 -0
- package/template/base/modules/subscriptions/models/service_area.rk +19 -0
- package/template/base/modules/subscriptions/models/subscription.rk +233 -0
- package/template/base/modules/subscriptions/models/subscription_bill.rk +48 -0
- package/template/base/modules/subscriptions/models/subscription_extra.rk +50 -0
- package/template/base/modules/subscriptions/models/subscription_guard.rk +65 -0
- package/template/base/modules/subscriptions/models/subscription_month.rk +29 -0
- package/template/base/modules/subscriptions/models/subscription_plan.rk +75 -0
- package/template/base/modules/subscriptions/models/subscription_status_log.rk +27 -0
- package/template/base/modules/subscriptions/module.rk +18 -0
- package/template/base/modules/subscriptions/roles/collector.rk +7 -0
- package/template/base/modules/tax_id/models/tax_code.rk +49 -0
- package/template/base/modules/tax_id/module.rk +10 -0
- package/template/base/modules/users/models/user.rk +29 -0
- package/template/base/modules/users/module.rk +10 -0
- package/template/base/modules/users/roles/cashier.rk +8 -0
- package/template/base/modules/users/roles/course_admin.rk +4 -0
- package/template/base/modules/users/roles/field_sales.rk +7 -0
- package/template/base/modules/users/roles/finance_manager.rk +4 -0
- package/template/base/modules/users/roles/head_office.rk +4 -0
- package/template/base/modules/users/roles/outlet_staff.rk +6 -0
- package/template/base/modules/users/roles/project_admin.rk +4 -0
- package/template/base/modules/users/roles/purchasing_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_manager.rk +4 -0
- package/template/base/modules/users/roles/sales_rep.rk +4 -0
- package/template/base/modules/workforce/imports/worker_list.rk +21 -0
- package/template/base/modules/workforce/models/certification.rk +25 -0
- package/template/base/modules/workforce/models/worker.rk +94 -0
- package/template/base/modules/workforce/module.rk +10 -0
- package/template/base/package.json +17 -0
- package/template/blank/fixtures/start.rk +5 -0
- package/template/blank/site/config.rk +13 -0
- package/template/blank/site/custom/README.md +2 -0
- package/template/blank/site/features.rk +13 -0
- package/template/blank/site/layouts/main.rk +14 -0
- package/template/blank/site/system.rk +20 -0
- package/template/blank/site/themes/main.rk +8 -0
- package/template/demo/fixtures/crm_demo.rk +168 -0
- package/template/demo/fixtures/demo.rk +417 -0
- package/template/demo/site/config.rk +13 -0
- package/template/demo/site/features.rk +13 -0
- package/template/demo/site/layouts/crm_first.rk +23 -0
- package/template/demo/site/system.rk +26 -0
- package/template/demo/site/themes/kopi_senja.rk +10 -0
- package/README.md +0 -3
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/connector.json
|
|
2
|
+
# Biteship (Indonesia): one shipping aggregator for many couriers (JNE, J&T, SiCepat, AnterAja, GoSend, Grab Express,
|
|
3
|
+
# Paxel and more): area search, courier rates, shipping orders (pickup or drop off, COD, insurance), tracking and
|
|
4
|
+
# status webhooks. Every request sends the API key in the Authorization header (as is or as Bearer; both accepted).
|
|
5
|
+
# Test mode: a key starting with biteship_test. talks to the same URLs; test orders are simulated from the dashboard
|
|
6
|
+
# (to delivered or cancelled) and send the same webhooks. Live keys start with biteship_live.
|
|
7
|
+
# Status: spec, no flow calls it yet. The kernel does not run connectors (contract 0002). Fields follow Biteship's public
|
|
8
|
+
# API reference (biteship.com/docs/api: rates/retrieve, orders/create, orders/delete, trackings/retrieve,
|
|
9
|
+
# webhook/overview) and have not been checked against a live account; the query parameters of maps/areas are to confirm.
|
|
10
|
+
# Synthetic payloads of every webhook and answer are in fixtures/ (tests/check_fixtures.py checks the emits against them).
|
|
11
|
+
# Webhooks: the owner adds one webhook per event in the dashboard (Integrations > Webhook) with the URL of the trigger
|
|
12
|
+
# and a Headers Signature Key / Secret. Biteship sends that pair as an HTTP header on every request; the key must be
|
|
13
|
+
# x-biteship-secret (the header verify below reads; the name is ours, chosen in the dashboard, not fixed by Biteship;
|
|
14
|
+
# the header pairing is from help.biteship.com, to confirm on a test account), the secret is auth.webhook_secret. Deliveries can repeat: a flow
|
|
15
|
+
# keys its work on shipment_ref + status (order.status), shipment_ref + price (order.price) or shipment_ref + waybill.
|
|
16
|
+
name: biteship
|
|
17
|
+
label: {id: Biteship}
|
|
18
|
+
summary:
|
|
19
|
+
id: Kirim paket lewat banyak kurir seperti JNE, J&T dan SiCepat, cek ongkir dan lacak resi.
|
|
20
|
+
en: Ship through many couriers such as JNE, J&T and SiCepat, with rates and tracking.
|
|
21
|
+
category: operations
|
|
22
|
+
icon: truck-line
|
|
23
|
+
version: 0.1.0
|
|
24
|
+
vendor: Biteship
|
|
25
|
+
docs: https://biteship.com/docs/api
|
|
26
|
+
auth:
|
|
27
|
+
type: token
|
|
28
|
+
fields:
|
|
29
|
+
- name: api_key
|
|
30
|
+
label: {id: API key}
|
|
31
|
+
secret: true
|
|
32
|
+
help: {id: 'Dashboard Biteship > Integrasi > API Key. Kunci biteship_test. untuk mode test.'}
|
|
33
|
+
- name: webhook_secret
|
|
34
|
+
label: {id: Headers signature secret}
|
|
35
|
+
secret: true
|
|
36
|
+
generate: true
|
|
37
|
+
help: {id: 'Isi di Dashboard Biteship > Integrasi > Webhook: Headers Signature Key x-biteship-secret, Secret nilai ini'}
|
|
38
|
+
settings:
|
|
39
|
+
- name: couriers
|
|
40
|
+
label: {id: Kurir yang ditawarkan}
|
|
41
|
+
default: "'jne,jnt,sicepat,anteraja,gojek,grab'"
|
|
42
|
+
help: {id: 'Kode kurir Biteship, dipisah koma'}
|
|
43
|
+
- name: origin_area_id
|
|
44
|
+
label: {id: Area asal (gudang)}
|
|
45
|
+
help: {id: 'ID area Biteship gudang pengirim, dari aksi Cari area'}
|
|
46
|
+
triggers:
|
|
47
|
+
# order.status: every change of a shipment's status, with the courier and (instant couriers) the driver
|
|
48
|
+
- name: order_status
|
|
49
|
+
label: {id: Status pengiriman berubah}
|
|
50
|
+
via: webhook
|
|
51
|
+
verify:
|
|
52
|
+
header: x-biteship-secret
|
|
53
|
+
equals: auth.webhook_secret
|
|
54
|
+
emit:
|
|
55
|
+
event: event
|
|
56
|
+
shipment_ref: order_id
|
|
57
|
+
tracking_id: courier_tracking_id
|
|
58
|
+
waybill: courier_waybill_id
|
|
59
|
+
courier: courier_company
|
|
60
|
+
service: courier_type
|
|
61
|
+
status: status
|
|
62
|
+
price: order_price
|
|
63
|
+
driver_name: courier_driver_name
|
|
64
|
+
driver_phone: courier_driver_phone
|
|
65
|
+
driver_plate: courier_driver_plate_number
|
|
66
|
+
link: courier_link
|
|
67
|
+
# what a flow acts on without knowing Biteship's status list (help.biteship.com shipping statuses, not in the API
|
|
68
|
+
# reference; to confirm on a test account: confirmed, scheduled, allocated,
|
|
69
|
+
# picking_up, picked, dropping_off, delivered, on_hold, courier_not_found, cancelled, return_in_transit, returned)
|
|
70
|
+
delivered: status == 'delivered'
|
|
71
|
+
failed: status == 'cancelled' || status == 'courier_not_found' || status == 'return_in_transit' || status == 'returned'
|
|
72
|
+
on_the_way: status == 'picked' || status == 'dropping_off'
|
|
73
|
+
# order.price: the courier re-weighed the parcel; the shipping cost the business pays changed
|
|
74
|
+
- name: order_price
|
|
75
|
+
label: {id: Ongkir berubah}
|
|
76
|
+
via: webhook
|
|
77
|
+
verify:
|
|
78
|
+
header: x-biteship-secret
|
|
79
|
+
equals: auth.webhook_secret
|
|
80
|
+
emit:
|
|
81
|
+
event: event
|
|
82
|
+
shipment_ref: order_id
|
|
83
|
+
tracking_id: courier_tracking_id
|
|
84
|
+
waybill: courier_waybill_id
|
|
85
|
+
status: status
|
|
86
|
+
price: price
|
|
87
|
+
shipping_fee: shippment_fee # sic: Biteship's field name
|
|
88
|
+
cod_fee: cash_on_delivery_fee
|
|
89
|
+
pod_fee: proof_of_delivery_fee
|
|
90
|
+
# order.waybill_id: the courier issued or changed the airway bill (resi), usually after pickup
|
|
91
|
+
- name: order_waybill
|
|
92
|
+
label: {id: Nomor resi terbit}
|
|
93
|
+
via: webhook
|
|
94
|
+
verify:
|
|
95
|
+
header: x-biteship-secret
|
|
96
|
+
equals: auth.webhook_secret
|
|
97
|
+
emit:
|
|
98
|
+
event: event
|
|
99
|
+
shipment_ref: order_id
|
|
100
|
+
tracking_id: courier_tracking_id
|
|
101
|
+
waybill: courier_waybill_id
|
|
102
|
+
status: status
|
|
103
|
+
actions:
|
|
104
|
+
- name: search_areas
|
|
105
|
+
label: {id: Cari area}
|
|
106
|
+
request:
|
|
107
|
+
method: GET
|
|
108
|
+
url: https://api.biteship.com/v1/maps/areas
|
|
109
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
110
|
+
query: {countries: ID, input: '{input.query}', type: single}
|
|
111
|
+
input:
|
|
112
|
+
- {name: query, type: data, required: true, help: {id: 'Nama kecamatan, kota atau kode pos'}}
|
|
113
|
+
output: {areas: areas}
|
|
114
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
115
|
+
- name: get_rates
|
|
116
|
+
label: {id: Cek ongkir}
|
|
117
|
+
request:
|
|
118
|
+
method: POST
|
|
119
|
+
url: https://api.biteship.com/v1/rates/couriers
|
|
120
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
121
|
+
body:
|
|
122
|
+
origin_area_id: '{input.origin_area_id}'
|
|
123
|
+
destination_area_id: '{input.destination_area_id}'
|
|
124
|
+
destination_postal_code: '{input.destination_postal_code}'
|
|
125
|
+
couriers: '{input.couriers}'
|
|
126
|
+
destination_cash_on_delivery: '{input.cod_amount}'
|
|
127
|
+
destination_cash_on_delivery_type: '{input.cod_type}'
|
|
128
|
+
courier_insurance: '{input.insured_value}'
|
|
129
|
+
items: '{input.items}'
|
|
130
|
+
input:
|
|
131
|
+
- {name: origin_area_id, type: data, default: settings.origin_area_id}
|
|
132
|
+
- {name: destination_area_id, type: data}
|
|
133
|
+
- {name: destination_postal_code, type: int, help: {id: 'Dipakai kalau area tujuan kosong'}}
|
|
134
|
+
- {name: couriers, type: data, default: settings.couriers}
|
|
135
|
+
- {name: cod_amount, type: currency, help: {id: 'Nilai COD, maksimal Rp 15.000.000'}}
|
|
136
|
+
- {name: cod_type, type: data, help: {id: '3_days, 5_days atau 7_days; wajib kalau ada COD'}}
|
|
137
|
+
- {name: insured_value, type: currency}
|
|
138
|
+
- {name: items, type: json, required: true, help: {id: 'Daftar barang: name, value, quantity, weight (gram), length/width/height (cm)'}}
|
|
139
|
+
# one row per courier service: courier_code, courier_service_code, price (final, with insurance and COD fees),
|
|
140
|
+
# shipment_duration_range + shipment_duration_unit, available_for_cash_on_delivery
|
|
141
|
+
output: {pricing: pricing}
|
|
142
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
143
|
+
- name: create_order
|
|
144
|
+
label: {id: Buat pengiriman}
|
|
145
|
+
request:
|
|
146
|
+
method: POST
|
|
147
|
+
url: https://api.biteship.com/v1/orders
|
|
148
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
149
|
+
body:
|
|
150
|
+
reference_id: '{input.reference}'
|
|
151
|
+
shipper_contact_name: '{input.shipper_name}'
|
|
152
|
+
shipper_contact_phone: '{input.shipper_phone}'
|
|
153
|
+
shipper_organization: '{input.shipper_organization}'
|
|
154
|
+
origin_contact_name: '{input.origin_contact_name}'
|
|
155
|
+
origin_contact_phone: '{input.origin_contact_phone}'
|
|
156
|
+
origin_address: '{input.origin_address}'
|
|
157
|
+
origin_area_id: '{input.origin_area_id}'
|
|
158
|
+
origin_collection_method: '{input.collection_method}'
|
|
159
|
+
destination_contact_name: '{input.destination_contact_name}'
|
|
160
|
+
destination_contact_phone: '{input.destination_contact_phone}'
|
|
161
|
+
destination_address: '{input.destination_address}'
|
|
162
|
+
destination_area_id: '{input.destination_area_id}'
|
|
163
|
+
destination_postal_code: '{input.destination_postal_code}'
|
|
164
|
+
destination_note: '{input.destination_note}'
|
|
165
|
+
destination_cash_on_delivery: '{input.cod_amount}'
|
|
166
|
+
destination_cash_on_delivery_type: '{input.cod_type}'
|
|
167
|
+
courier_company: '{input.courier_company}'
|
|
168
|
+
courier_type: '{input.courier_type}'
|
|
169
|
+
courier_insurance: '{input.insured_value}'
|
|
170
|
+
delivery_type: '{input.delivery_type}'
|
|
171
|
+
order_note: '{input.note}'
|
|
172
|
+
items: '{input.items}'
|
|
173
|
+
input:
|
|
174
|
+
- {name: reference, type: data, required: true, help: {id: 'Nomor surat jalan atau faktur; Biteship menolak reference_id yang sudah dipakai'}}
|
|
175
|
+
- {name: shipper_name, type: data}
|
|
176
|
+
- {name: shipper_phone, type: data}
|
|
177
|
+
- {name: shipper_organization, type: data}
|
|
178
|
+
- {name: origin_contact_name, type: data, required: true}
|
|
179
|
+
- {name: origin_contact_phone, type: data, required: true}
|
|
180
|
+
- {name: origin_address, type: text, required: true}
|
|
181
|
+
- {name: origin_area_id, type: data, default: settings.origin_area_id}
|
|
182
|
+
- {name: collection_method, type: data, default: "'pickup'", help: {id: 'pickup (kurir menjemput) atau drop_off'}}
|
|
183
|
+
- {name: destination_contact_name, type: data, required: true}
|
|
184
|
+
- {name: destination_contact_phone, type: data, required: true}
|
|
185
|
+
- {name: destination_address, type: text, required: true}
|
|
186
|
+
- {name: destination_area_id, type: data}
|
|
187
|
+
- {name: destination_postal_code, type: int}
|
|
188
|
+
- {name: destination_note, type: data}
|
|
189
|
+
- {name: cod_amount, type: currency}
|
|
190
|
+
- {name: cod_type, type: data}
|
|
191
|
+
- {name: courier_company, type: data, required: true, help: {id: 'courier_code dari Cek ongkir, misalnya jne'}}
|
|
192
|
+
- {name: courier_type, type: data, required: true, help: {id: 'courier_service_code dari Cek ongkir, misalnya reg'}}
|
|
193
|
+
- {name: insured_value, type: currency}
|
|
194
|
+
- {name: delivery_type, type: data, default: "'now'", help: {id: 'now atau scheduled'}}
|
|
195
|
+
- {name: note, type: data}
|
|
196
|
+
- {name: items, type: json, required: true}
|
|
197
|
+
output:
|
|
198
|
+
shipment_ref: id
|
|
199
|
+
tracking_id: courier.tracking_id
|
|
200
|
+
waybill: courier.waybill_id
|
|
201
|
+
courier: courier.company
|
|
202
|
+
service: courier.type
|
|
203
|
+
price: price
|
|
204
|
+
status: status
|
|
205
|
+
reference: reference_id
|
|
206
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
207
|
+
# Biteship refuses a second order with the same reference_id, so a retried call cannot ship twice
|
|
208
|
+
idempotency: input.reference
|
|
209
|
+
- name: get_order
|
|
210
|
+
label: {id: Ambil data pengiriman}
|
|
211
|
+
request:
|
|
212
|
+
method: GET
|
|
213
|
+
url: https://api.biteship.com/v1/orders/{input.shipment_ref}
|
|
214
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
215
|
+
input:
|
|
216
|
+
- {name: shipment_ref, type: data, required: true}
|
|
217
|
+
output: {status: status, price: price, waybill: courier.waybill_id, tracking_id: courier.tracking_id}
|
|
218
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
219
|
+
- name: cancel_order
|
|
220
|
+
label: {id: Batalkan pengiriman}
|
|
221
|
+
request:
|
|
222
|
+
method: POST
|
|
223
|
+
url: https://api.biteship.com/v1/orders/{input.shipment_ref}/cancel
|
|
224
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
225
|
+
body:
|
|
226
|
+
cancellation_reason_code: '{input.reason_code}'
|
|
227
|
+
cancellation_reason: '{input.reason}'
|
|
228
|
+
input:
|
|
229
|
+
- {name: shipment_ref, type: data, required: true}
|
|
230
|
+
- {name: reason_code, type: data, default: "'others'", help: {id: 'change_courier, pickup_delay, change_address atau others'}}
|
|
231
|
+
- {name: reason, type: data}
|
|
232
|
+
output: {status: status, reason_code: cancellation_reason_code}
|
|
233
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
234
|
+
idempotency: "'cancel:' + input.shipment_ref"
|
|
235
|
+
- name: get_tracking
|
|
236
|
+
label: {id: Lacak paket}
|
|
237
|
+
request:
|
|
238
|
+
method: GET
|
|
239
|
+
url: https://api.biteship.com/v1/trackings/{input.tracking_id}
|
|
240
|
+
headers: {Authorization: '{auth.api_key}'}
|
|
241
|
+
input:
|
|
242
|
+
- {name: tracking_id, type: data, required: true}
|
|
243
|
+
output: {status: status, waybill: waybill_id, courier: courier.company, history: history, link: link}
|
|
244
|
+
retry: {max: 3, backoff: exponential, on: [429, 500, 502, 503]}
|
|
245
|
+
limits:
|
|
246
|
+
note: {id: 'Order test (kunci biteship_test.) tidak dikirim kurir dan tidak ditagih; statusnya disimulasikan dari dashboard'}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"success": true, "message": "Order successfully deleted", "object": "order", "id": "ord-contoh-0002", "status": "cancelled", "cancellation_reason_code": "others", "cancellation_reason": "Salah alamat"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{"success": true, "message": "Order successfully created", "object": "order", "id": "ord-contoh-0001", "draft_order_id": null,
|
|
2
|
+
"shipper": {"name": "Toko Contoh", "phone": "081100000000", "organization": "Toko Contoh"},
|
|
3
|
+
"origin": {"contact_name": "Gudang Contoh", "contact_phone": "081100000000", "address": "Jl. Contoh No. 1, Bandung", "area_id": "IDNP9IDNC23IDND0001", "postal_code": 40132},
|
|
4
|
+
"destination": {"contact_name": "Pelanggan Contoh", "contact_phone": "081300000000", "address": "Jl. Tujuan No. 2, Bandung", "area_id": "IDNP9IDNC23IDND0002", "postal_code": 40617},
|
|
5
|
+
"courier": {"tracking_id": "trk-contoh-0001", "waybill_id": "WYB-CONTOH-0001", "company": "jne", "type": "reg", "insurance": {"amount": 0, "fee": 0}, "routing_code": null},
|
|
6
|
+
"delivery": {"datetime": "2026-11-07T10:00+07:00", "type": "now"},
|
|
7
|
+
"reference_id": "SJ-2026-00001", "items": [{"name": "Mi goreng (dus)", "value": 110000, "quantity": 2, "weight": 4000}],
|
|
8
|
+
"currency": "IDR", "tax_lines": [], "price": 18000, "metadata": {}, "note": "", "status": "confirmed"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"order_status.json": {"shipment_ref": "ord-contoh-0001", "waybill": "WYB-CONTOH-0001", "status": "delivered", "price": 18000, "delivered": true, "failed": false, "on_the_way": false},
|
|
3
|
+
"order_status_cancelled.json": {"shipment_ref": "ord-contoh-0002", "waybill": null, "delivered": false, "failed": true},
|
|
4
|
+
"order_price.json": {"price": 27000, "shipping_fee": 27000, "status": "picked"},
|
|
5
|
+
"order_waybill.json": {"waybill": "WYB-CONTOH-0001", "tracking_id": "trk-contoh-0001"},
|
|
6
|
+
"create_order.json": {"shipment_ref": "ord-contoh-0001", "tracking_id": "trk-contoh-0001", "waybill": "WYB-CONTOH-0001", "price": 18000, "status": "confirmed", "reference": "SJ-2026-00001"},
|
|
7
|
+
"cancel_order.json": {"status": "cancelled"},
|
|
8
|
+
"get_tracking.json": {"status": "delivered", "courier": "jne"}
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{"success": true, "object": "courier_pricing", "message": "Success to retrieve courier pricing", "code": 20001003,
|
|
2
|
+
"origin": {"area_id": "IDNP9IDNC23IDND0001", "postal_code": 40132},
|
|
3
|
+
"destination": {"area_id": "IDNP9IDNC23IDND0002", "postal_code": 40617},
|
|
4
|
+
"pricing": [
|
|
5
|
+
{"company": "jne", "courier_name": "JNE", "courier_code": "jne", "courier_service_name": "Reguler", "courier_service_code": "reg", "type": "reg", "service_type": "standard", "shipping_type": "parcel", "description": "Layanan reguler", "duration": "1 - 2 days", "shipment_duration_range": "1 - 2", "shipment_duration_unit": "days", "available_for_cash_on_delivery": true, "available_for_proof_of_delivery": false, "available_for_instant_waybill_id": true, "available_for_insurance": true, "available_collection_method": ["pickup", "drop_off"], "currency": "IDR", "shipping_fee": 18000, "insurance_fee": 0, "cash_on_delivery_fee": 0, "price": 18000, "tax_lines": []},
|
|
6
|
+
{"company": "sicepat", "courier_name": "SiCepat", "courier_code": "sicepat", "courier_service_name": "Reguler", "courier_service_code": "reg", "type": "reg", "service_type": "standard", "shipping_type": "parcel", "description": "Layanan reguler", "duration": "1 - 2 days", "shipment_duration_range": "1 - 2", "shipment_duration_unit": "days", "available_for_cash_on_delivery": true, "available_for_proof_of_delivery": false, "available_for_instant_waybill_id": true, "available_for_insurance": true, "available_collection_method": ["pickup"], "currency": "IDR", "shipping_fee": 15000, "insurance_fee": 0, "cash_on_delivery_fee": 0, "price": 15000, "tax_lines": []}
|
|
7
|
+
]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{"success": true, "message": "Successfully get tracking info", "object": "tracking", "id": "trk-contoh-0001", "waybill_id": "WYB-CONTOH-0001",
|
|
2
|
+
"courier": {"company": "jne", "driver_name": null, "driver_phone": null, "driver_photo_url": null, "driver_plate_number": null},
|
|
3
|
+
"origin": {"contact_name": "Gudang Contoh", "address": "Jl. Contoh No. 1, Bandung"},
|
|
4
|
+
"destination": {"contact_name": "Pelanggan Contoh", "address": "Jl. Tujuan No. 2, Bandung"},
|
|
5
|
+
"history": [{"note": "Paket dijemput kurir", "status": "picked", "updated_at": "2026-11-07T11:00:00+07:00", "service_type": "reg"},
|
|
6
|
+
{"note": "Paket diterima", "status": "delivered", "updated_at": "2026-11-08T14:00:00+07:00", "service_type": "reg"}],
|
|
7
|
+
"link": "https://track.example.test/WYB-CONTOH-0001", "order_id": "ord-contoh-0001", "status": "delivered"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"event": "order.price",
|
|
3
|
+
"order_id": "ord-contoh-0001",
|
|
4
|
+
"courier_tracking_id": "trk-contoh-0001",
|
|
5
|
+
"courier_waybill_id": "WYB-CONTOH-0001",
|
|
6
|
+
"status": "picked",
|
|
7
|
+
"price": 27000,
|
|
8
|
+
"shippment_fee": 27000,
|
|
9
|
+
"cash_on_delivery_fee": 0,
|
|
10
|
+
"proof_of_delivery_fee": 0
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"event": "order.status",
|
|
3
|
+
"courier_tracking_id": "trk-contoh-0001",
|
|
4
|
+
"courier_waybill_id": "WYB-CONTOH-0001",
|
|
5
|
+
"courier_company": "jne",
|
|
6
|
+
"courier_type": "reg",
|
|
7
|
+
"courier_driver_name": "Kurir Contoh",
|
|
8
|
+
"courier_driver_phone": "081200000000",
|
|
9
|
+
"courier_driver_photo_url": "",
|
|
10
|
+
"courier_driver_plate_number": "D 0000 XX",
|
|
11
|
+
"courier_link": "https://track.example.test/WYB-CONTOH-0001",
|
|
12
|
+
"order_id": "ord-contoh-0001",
|
|
13
|
+
"order_price": 18000,
|
|
14
|
+
"status": "delivered"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"event": "order.status",
|
|
3
|
+
"courier_tracking_id": "trk-contoh-0002",
|
|
4
|
+
"courier_waybill_id": null,
|
|
5
|
+
"courier_company": "sicepat",
|
|
6
|
+
"courier_type": "reg",
|
|
7
|
+
"courier_driver_name": null,
|
|
8
|
+
"courier_driver_phone": null,
|
|
9
|
+
"courier_driver_photo_url": null,
|
|
10
|
+
"courier_driver_plate_number": null,
|
|
11
|
+
"courier_link": null,
|
|
12
|
+
"order_id": "ord-contoh-0002",
|
|
13
|
+
"order_price": 15000,
|
|
14
|
+
"status": "courier_not_found"
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"success": true, "areas": [{"id": "IDNP9IDNC23IDND0001", "name": "Coblong, Bandung, Jawa Barat. 40132", "country_name": "Indonesia", "country_code": "ID", "administrative_division_level_1_name": "Jawa Barat", "administrative_division_level_2_name": "Bandung", "administrative_division_level_3_name": "Coblong", "postal_code": 40132}]}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://rangka-os.github.io/rangka-os/schema/0.5/connector.json
|
|
2
|
+
# DOKU (Indonesia), Non-SNAP API: DOKU Checkout makes a payment page for an invoice or a cashier sale, with QRIS (and
|
|
3
|
+
# other channels DOKU enables on the account); DOKU sends an HTTP notification when it is paid.
|
|
4
|
+
# Why Non-SNAP Checkout: one endpoint and one signature scheme for QRIS and payment links; SNAP QRIS (qr-mpm-generate)
|
|
5
|
+
# needs a B2B token with RSA and is the next step when the cashier must show the QR itself. Research and sources:
|
|
6
|
+
# rangka (Juragan) reports/keputusan-riset/doku-connector.md.
|
|
7
|
+
# Signature (both ways): HMACSHA256= + base64(HMAC-SHA256(secret key, lines)), lines Client-Id, Request-Id,
|
|
8
|
+
# Request-Timestamp, Request-Target (the path) and Digest (base64 SHA-256 of the body; no Digest line for a GET).
|
|
9
|
+
# The kernel signs calls with auth.sign and checks notifications with verify.signature.lines (rangka-os contract 0002,
|
|
10
|
+
# refinement of 11 Nov 2026). The notification URL registered in DOKU Back Office is the hook's full path
|
|
11
|
+
# (https://<site>/hooks/<org>/doku/payment_notified); a proxy must not rewrite the path, it is signed.
|
|
12
|
+
# Every notification emits gateway_ref (DOKU's original request id of the payment), external_id (our invoice number)
|
|
13
|
+
# and paid (true only for transaction.status SUCCESS of a SALE, or of a notification without a type, with a null or
|
|
14
|
+
# an empty one, which DOKU's examples never send but a channel might; a REFUND notification is never paid): a flow that records money starts with `if: event.paid` and
|
|
15
|
+
# uses gateway_ref as idempotency key, as with xendit.
|
|
16
|
+
# Test mode: api_host api-sandbox.doku.com with sandbox keys from DOKU; the sandbox simulator pays and notifies. Until a
|
|
17
|
+
# sandbox account exists, doku/mock/doku_mock.py answers Checkout and sends signed notifications locally.
|
|
18
|
+
name: doku
|
|
19
|
+
label: {id: DOKU}
|
|
20
|
+
summary:
|
|
21
|
+
id: Terima pembayaran QRIS dan link bayar lewat DOKU Checkout.
|
|
22
|
+
en: Take QRIS and payment-link payments through DOKU Checkout.
|
|
23
|
+
category: payments
|
|
24
|
+
icon: secure-payment-line
|
|
25
|
+
version: 0.1.0
|
|
26
|
+
vendor: DOKU
|
|
27
|
+
docs: https://developers.doku.com/accept-payments/doku-checkout
|
|
28
|
+
hosts: [api-sandbox.doku.com, api.doku.com]
|
|
29
|
+
auth:
|
|
30
|
+
type: hmac
|
|
31
|
+
fields:
|
|
32
|
+
- name: client_id
|
|
33
|
+
label: {id: Client ID}
|
|
34
|
+
required: true
|
|
35
|
+
help: {id: 'DOKU Back Office > Integration > API Keys (diawali BRN-)'}
|
|
36
|
+
- name: secret_key
|
|
37
|
+
label: {id: Secret key}
|
|
38
|
+
secret: true
|
|
39
|
+
required: true
|
|
40
|
+
help: {id: 'DOKU Back Office > Integration > API Keys. Kunci sandbox untuk uji'}
|
|
41
|
+
- name: api_host
|
|
42
|
+
label: {id: Server DOKU}
|
|
43
|
+
required: true
|
|
44
|
+
help: {id: 'api-sandbox.doku.com untuk uji, api.doku.com untuk transaksi nyata'}
|
|
45
|
+
sign:
|
|
46
|
+
alg: hmac-sha256
|
|
47
|
+
key: secret_key
|
|
48
|
+
encoding: base64
|
|
49
|
+
header: Signature
|
|
50
|
+
prefix: HMACSHA256=
|
|
51
|
+
headers: {Client-Id: '{auth.client_id}', Request-Id: '{request.id}', Request-Timestamp: '{request.timestamp}'}
|
|
52
|
+
lines:
|
|
53
|
+
- 'Client-Id:{auth.client_id}'
|
|
54
|
+
- 'Request-Id:{request.id}'
|
|
55
|
+
- 'Request-Timestamp:{request.timestamp}'
|
|
56
|
+
- 'Request-Target:{request.target}'
|
|
57
|
+
- 'Digest:{request.digest}'
|
|
58
|
+
triggers:
|
|
59
|
+
- name: payment_notified
|
|
60
|
+
label: {id: Pembayaran DOKU masuk}
|
|
61
|
+
via: webhook
|
|
62
|
+
verify:
|
|
63
|
+
signature:
|
|
64
|
+
header: Signature
|
|
65
|
+
prefix: HMACSHA256=
|
|
66
|
+
alg: hmac-sha256
|
|
67
|
+
key: secret_key
|
|
68
|
+
encoding: base64
|
|
69
|
+
lines:
|
|
70
|
+
- 'Client-Id:{auth.client_id}'
|
|
71
|
+
- 'Request-Id:{header.Request-Id}'
|
|
72
|
+
- 'Request-Timestamp:{header.Request-Timestamp}'
|
|
73
|
+
- 'Request-Target:{request.target}'
|
|
74
|
+
- 'Digest:{request.digest}'
|
|
75
|
+
emit:
|
|
76
|
+
gateway_ref: transaction.original_request_id
|
|
77
|
+
external_id: order.invoice_number
|
|
78
|
+
paid_amount: order.amount
|
|
79
|
+
paid_at: transaction.date
|
|
80
|
+
status: transaction.status
|
|
81
|
+
# DOKU's transaction type: SALE for a payment; a REFUND (or anything but a sale) of status SUCCESS is not money in
|
|
82
|
+
type: transaction.type
|
|
83
|
+
# a notification without transaction.type counts as a sale (paid true), never as null: a null paid would be
|
|
84
|
+
# skipped by the flows without telling anyone
|
|
85
|
+
paid: "transaction.status == 'SUCCESS' && (!('type' in transaction) || transaction.type == null || transaction.type == 'SALE' || transaction.type == '')"
|
|
86
|
+
# DOKU's channel (QRIS, VIRTUAL_ACCOUNT_BCA, ...) and service (QRIS, VIRTUAL_ACCOUNT, ...); flows map them to
|
|
87
|
+
# payment.method
|
|
88
|
+
channel: channel.id
|
|
89
|
+
service: service.id
|
|
90
|
+
actions:
|
|
91
|
+
- name: create_checkout
|
|
92
|
+
label: {id: Buat halaman bayar DOKU}
|
|
93
|
+
request:
|
|
94
|
+
method: POST
|
|
95
|
+
url: https://{auth.api_host}/checkout/v1/payment
|
|
96
|
+
body:
|
|
97
|
+
order:
|
|
98
|
+
amount: '{input.amount}'
|
|
99
|
+
invoice_number: '{input.external_id}'
|
|
100
|
+
currency: IDR
|
|
101
|
+
callback_url: '{input.return_url}'
|
|
102
|
+
payment:
|
|
103
|
+
payment_due_date: '{input.due_minutes}'
|
|
104
|
+
payment_method_types: '{input.methods}'
|
|
105
|
+
customer:
|
|
106
|
+
name: '{input.customer_name}'
|
|
107
|
+
phone: '{input.customer_phone}'
|
|
108
|
+
input:
|
|
109
|
+
- {name: external_id, type: data, required: true, help: {id: 'Nomor faktur penjualan (maks 64 karakter), kembali sebagai external_id. Bayar dicatat ke faktur saja, bukan struk kasir'}}
|
|
110
|
+
- {name: amount, type: currency, required: true, help: {id: Rupiah utuh}}
|
|
111
|
+
- {name: methods, type: json, default: "['QRIS']", help: {id: 'Saluran yang ditawarkan, misalnya QRIS'}}
|
|
112
|
+
- {name: due_minutes, type: int, default: '60'}
|
|
113
|
+
- {name: return_url, type: data}
|
|
114
|
+
- {name: customer_name, type: data}
|
|
115
|
+
- {name: customer_phone, type: data}
|
|
116
|
+
# a payment page expires (due_minutes): a new page for the same invoice and amount is a new attempt, so it is not
|
|
117
|
+
# taken for a repeat of the first call
|
|
118
|
+
- {name: attempt, type: int, default: '1', help: {id: 'Naikkan untuk membuat halaman bayar baru setelah yang lama kedaluwarsa'}}
|
|
119
|
+
output:
|
|
120
|
+
payment_url: response.payment.url
|
|
121
|
+
token_id: response.payment.token_id
|
|
122
|
+
expires_at: response.payment.expired_date
|
|
123
|
+
external_id: response.order.invoice_number
|
|
124
|
+
retry: {max: 5, backoff: exponential, on: [429, 500, 502, 503]}
|
|
125
|
+
idempotency: input.external_id + ':' + string(input.amount) + ':' + string(input.attempt)
|
|
126
|
+
limits:
|
|
127
|
+
rate: per DOKU account
|
|
128
|
+
note: {id: 'Akun DOKU dan aktivasi QRIS lewat DOKU (KTP/NPWP). MDR QRIS mengikuti BI'}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{"message": ["SUCCESS"],
|
|
2
|
+
"response": {
|
|
3
|
+
"order": {"amount": "750000", "invoice_number": "INV/TC/26/0007", "currency": "IDR", "session_id": "sess-contoh-0007"},
|
|
4
|
+
"payment": {"payment_method_types": ["QRIS"], "payment_due_date": 60, "token_id": "tok-contoh-0007",
|
|
5
|
+
"url": "https://sandbox.doku.com/checkout-link-v2/tok-contoh-0007", "expired_date": "20261111131240"},
|
|
6
|
+
"uuid": 1234567890, "headers": {"request_id": "11111111-2222-4333-8444-555555555555", "signature": "HMACSHA256=..."}}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"payment_notified.json": {
|
|
3
|
+
"gateway_ref": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f",
|
|
4
|
+
"external_id": "INV/TC/26/0007",
|
|
5
|
+
"paid_amount": 750000,
|
|
6
|
+
"status": "SUCCESS",
|
|
7
|
+
"paid": true,
|
|
8
|
+
"channel": "QRIS",
|
|
9
|
+
"service": "QRIS",
|
|
10
|
+
"type": "SALE"
|
|
11
|
+
},
|
|
12
|
+
"payment_notified_failed.json": {
|
|
13
|
+
"external_id": "INV/TC/26/0008",
|
|
14
|
+
"paid": false,
|
|
15
|
+
"channel": "VIRTUAL_ACCOUNT_BCA"
|
|
16
|
+
},
|
|
17
|
+
"create_checkout.json": {
|
|
18
|
+
"payment_url": "https://sandbox.doku.com/checkout-link-v2/tok-contoh-0007",
|
|
19
|
+
"token_id": "tok-contoh-0007",
|
|
20
|
+
"external_id": "INV/TC/26/0007"
|
|
21
|
+
},
|
|
22
|
+
"payment_notified_refund.json": {
|
|
23
|
+
"type": "REFUND",
|
|
24
|
+
"status": "SUCCESS",
|
|
25
|
+
"paid": false
|
|
26
|
+
},
|
|
27
|
+
"payment_notified_no_type.json": {
|
|
28
|
+
"external_id": "INV/TC/26/0009",
|
|
29
|
+
"status": "SUCCESS",
|
|
30
|
+
"type": null,
|
|
31
|
+
"paid": true
|
|
32
|
+
},
|
|
33
|
+
"payment_notified_null_type.json": {
|
|
34
|
+
"external_id": "INV/TC/26/0010",
|
|
35
|
+
"type": null,
|
|
36
|
+
"paid": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0007", "amount": 750000},
|
|
2
|
+
"customer": {"name": "Pelanggan Contoh", "email": "pelanggan@contoh.test"},
|
|
3
|
+
"transaction": {"type": "SALE", "status": "SUCCESS", "date": "2026-11-11T05:12:40Z", "original_request_id": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f"},
|
|
4
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"},
|
|
5
|
+
"additional_info": {"origin": {"product": "CHECKOUT"}}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0008", "amount": 120000},
|
|
2
|
+
"transaction": {"type": "SALE", "status": "FAILED", "date": "2026-11-11T05:20:00Z", "original_request_id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"},
|
|
3
|
+
"service": {"id": "VIRTUAL_ACCOUNT"}, "acquirer": {"id": "BCA"}, "channel": {"id": "VIRTUAL_ACCOUNT_BCA"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0009", "amount": 250000},
|
|
2
|
+
"transaction": {"status": "SUCCESS", "date": "2026-11-12T04:10:00Z", "original_request_id": "8d0c1b2a-3e4f-4a5b-8c6d-7e8f9a0b1c2d"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0010", "amount": 125000},
|
|
2
|
+
"transaction": {"type": null, "status": "SUCCESS", "date": "2026-11-12T05:00:00Z", "original_request_id": "1b2c3d4e-5f60-4718-8a9b-0c1d2e3f4a5b"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"order": {"invoice_number": "INV/TC/26/0007", "amount": 750000},
|
|
2
|
+
"transaction": {"type": "REFUND", "status": "SUCCESS", "date": "2026-11-12T03:00:00Z", "original_request_id": "3f2b8c1e-7d4a-4b9e-9c21-0a1b2c3d4e5f"},
|
|
3
|
+
"service": {"id": "QRIS"}, "acquirer": {"id": "QRIS"}, "channel": {"id": "QRIS"}}
|