From ac3444a4312f6e6b4133bb46b5a0726ef8ab2787 Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Sat, 6 Jun 2026 21:21:52 +0330 Subject: [PATCH] feat --- Admin/Fulfill Referral Reward.yml | 30 ++++++++++++++++++++++++++++++ Admin/Pending Referral Rewards.yml | 21 +++++++++++++++++++++ Auth/Login.yml | 2 +- Auth/Register.yml | 4 ++++ Info/Get Status V2.yml | 4 ++-- Product/Get Products.yml | 2 +- opencollection.yml | 4 ++-- 7 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 Admin/Fulfill Referral Reward.yml create mode 100644 Admin/Pending Referral Rewards.yml diff --git a/Admin/Fulfill Referral Reward.yml b/Admin/Fulfill Referral Reward.yml new file mode 100644 index 0000000..76e6ff7 --- /dev/null +++ b/Admin/Fulfill Referral Reward.yml @@ -0,0 +1,30 @@ +info: + name: Fulfill Referral Reward + type: http + seq: 12 + +http: + method: POST + url: "{{baseUrl}}/admin/referral-rewards/:user/fulfill" + params: + - name: user + value: "1" + type: path + body: + type: json + data: |- + { + "product_id": 1 + } + auth: inherit + +docs: |- + Admin only. Grants the free month to the user (path param = user id) and + marks it granted so it only happens once. product_id is optional: omit it to + auto-grant the meditation package's monthly product. + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 diff --git a/Admin/Pending Referral Rewards.yml b/Admin/Pending Referral Rewards.yml new file mode 100644 index 0000000..f88d312 --- /dev/null +++ b/Admin/Pending Referral Rewards.yml @@ -0,0 +1,21 @@ +info: + name: Pending Referral Rewards + type: http + seq: 11 + +http: + method: GET + url: "{{baseUrl}}/admin/referral-rewards" + body: + type: none + auth: inherit + +docs: |- + Admin only. Lists users (کد معرف) who reached the successful-invite target + and have not yet been granted their free-month subscription. + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 diff --git a/Auth/Login.yml b/Auth/Login.yml index 2b5554e..5002b3c 100644 --- a/Auth/Login.yml +++ b/Auth/Login.yml @@ -14,7 +14,7 @@ http: value: admin@gmail.com - name: password type: text - value: "96969" + value: "969699" - name: package_name type: text value: com.approagency.meditation diff --git a/Auth/Register.yml b/Auth/Register.yml index 961fe61..2ff164c 100644 --- a/Auth/Register.yml +++ b/Auth/Register.yml @@ -43,6 +43,10 @@ http: type: text value: "" disabled: true + - name: referrer_code + type: text + value: "" + disabled: true runtime: scripts: diff --git a/Info/Get Status V2.yml b/Info/Get Status V2.yml index 9b3b531..9f5d5db 100644 --- a/Info/Get Status V2.yml +++ b/Info/Get Status V2.yml @@ -5,10 +5,10 @@ info: http: method: GET - url: "{{baseUrl}}/status?package_name=com.approagency.ai" + url: "{{baseUrl}}/status?package_name=com.approagency.meditation" params: - name: package_name - value: com.approagency.ai + value: com.approagency.meditation type: query auth: inherit diff --git a/Product/Get Products.yml b/Product/Get Products.yml index 8af5664..afd6d6e 100644 --- a/Product/Get Products.yml +++ b/Product/Get Products.yml @@ -8,7 +8,7 @@ http: url: "{{baseUrl}}/package-names/:name/products" params: - name: name - value: com.approagency.meditation + value: com.approagency.toolbox type: path auth: inherit diff --git a/opencollection.yml b/opencollection.yml index cacc0b5..567f063 100644 --- a/opencollection.yml +++ b/opencollection.yml @@ -21,14 +21,14 @@ request: variables: - name: baseUrl value: http://localhost:8000/api - disabled: true - name: token value: https://api.approagency.ir disabled: true - name: baseUrl value: https://api.approagency.ir/api + disabled: true - name: token - value: "" + value: 8|REv3lOtv8xTiL5Z6BoWiqfsWpc4daSpNfQrhYTEe261e6f9a - name: baseUrl value: "" disabled: true