@hobenakicoffee/libraries 8.3.0 → 8.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "types": "src/index.ts",
@@ -2360,6 +2360,11 @@ export type Database = {
2360
2360
  Row: {
2361
2361
  amount: number;
2362
2362
  created_at: string;
2363
+ gateway_confirmed_at: string | null;
2364
+ gateway_initiated_at: string | null;
2365
+ gateway_refund_ref_id: string | null;
2366
+ gateway_response: Json | null;
2367
+ gateway_status: Database["public"]["Enums"]["refund_gateway_status_enum"];
2363
2368
  id: string;
2364
2369
  platform_fee_refunded: number;
2365
2370
  processed_at: string | null;
@@ -2373,6 +2378,11 @@ export type Database = {
2373
2378
  Insert: {
2374
2379
  amount: number;
2375
2380
  created_at?: string;
2381
+ gateway_confirmed_at?: string | null;
2382
+ gateway_initiated_at?: string | null;
2383
+ gateway_refund_ref_id?: string | null;
2384
+ gateway_response?: Json | null;
2385
+ gateway_status?: Database["public"]["Enums"]["refund_gateway_status_enum"];
2376
2386
  id?: string;
2377
2387
  platform_fee_refunded?: number;
2378
2388
  processed_at?: string | null;
@@ -2386,6 +2396,11 @@ export type Database = {
2386
2396
  Update: {
2387
2397
  amount?: number;
2388
2398
  created_at?: string;
2399
+ gateway_confirmed_at?: string | null;
2400
+ gateway_initiated_at?: string | null;
2401
+ gateway_refund_ref_id?: string | null;
2402
+ gateway_response?: Json | null;
2403
+ gateway_status?: Database["public"]["Enums"]["refund_gateway_status_enum"];
2389
2404
  id?: string;
2390
2405
  platform_fee_refunded?: number;
2391
2406
  processed_at?: string | null;
@@ -4154,6 +4169,16 @@ export type Database = {
4154
4169
  };
4155
4170
  Returns: Json;
4156
4171
  };
4172
+ admin_record_gateway_refund_result: {
4173
+ Args: {
4174
+ p_gateway_refund_ref_id?: string;
4175
+ p_gateway_response?: Json;
4176
+ p_gateway_status: Database["public"]["Enums"]["refund_gateway_status_enum"];
4177
+ p_platform_fee_refunded?: number;
4178
+ p_refund_id: string;
4179
+ };
4180
+ Returns: Json;
4181
+ };
4157
4182
  admin_reject_kyc: {
4158
4183
  Args: {
4159
4184
  p_admin_notes?: string;
@@ -4272,6 +4297,10 @@ export type Database = {
4272
4297
  dismiss_activity: { Args: { p_activity_id: string }; Returns: undefined };
4273
4298
  dismiss_all_activities: { Args: never; Returns: undefined };
4274
4299
  dispatch_pending_email_notifications: { Args: never; Returns: undefined };
4300
+ dispatch_pending_refund_reconciliation: {
4301
+ Args: never;
4302
+ Returns: undefined;
4303
+ };
4275
4304
  drop_old_partitions: { Args: never; Returns: undefined };
4276
4305
  expire_stale_payment_sessions: { Args: never; Returns: number };
4277
4306
  flag_transaction_disputed: {
@@ -4661,6 +4690,10 @@ export type Database = {
4661
4690
  Args: { p_featured_limit?: number; p_username: string };
4662
4691
  Returns: Json;
4663
4692
  };
4693
+ get_shop_order_for_payment: {
4694
+ Args: { p_order_id: string };
4695
+ Returns: Json;
4696
+ };
4664
4697
  get_shop_overview: { Args: never; Returns: Json };
4665
4698
  get_shop_policies: { Args: { p_username: string }; Returns: Json };
4666
4699
  get_shop_products: {
@@ -4827,7 +4860,11 @@ export type Database = {
4827
4860
  Returns: string;
4828
4861
  };
4829
4862
  handle_shop_payment_success: {
4830
- Args: { p_order_id: string; p_transaction_reference_id: string };
4863
+ Args: {
4864
+ p_amount: number;
4865
+ p_order_id: string;
4866
+ p_transaction_reference_id: string;
4867
+ };
4831
4868
  Returns: Json;
4832
4869
  };
4833
4870
  handle_successful_payment: {
@@ -5358,6 +5395,12 @@ export type Database = {
5358
5395
  | "withdraw_release"
5359
5396
  | "withdraw_complete"
5360
5397
  | "manual_adjustment";
5398
+ refund_gateway_status_enum:
5399
+ | "not_applicable"
5400
+ | "pending"
5401
+ | "processing"
5402
+ | "refunded"
5403
+ | "failed";
5361
5404
  refund_status_enum: "requested" | "approved" | "rejected" | "completed";
5362
5405
  report_category:
5363
5406
  | "bullying_or_harassment"
@@ -5663,6 +5706,13 @@ export const Constants = {
5663
5706
  "withdraw_complete",
5664
5707
  "manual_adjustment",
5665
5708
  ],
5709
+ refund_gateway_status_enum: [
5710
+ "not_applicable",
5711
+ "pending",
5712
+ "processing",
5713
+ "refunded",
5714
+ "failed",
5715
+ ],
5666
5716
  refund_status_enum: ["requested", "approved", "rejected", "completed"],
5667
5717
  report_category: [
5668
5718
  "bullying_or_harassment",