-
Couldn't load subscription status.
- Fork 7
Rb cash tax Cash deposits and tax forms schema changes #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stymoshchuk
wants to merge
7
commits into
unit-finance:main
Choose a base branch
from
stymoshchuk:RB-cash-tax
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d359bfd
RB-cash-tax add tax forms and cash deposits schemas
stymoshchuk 37f5661
RB-cash-tax Update schema
stymoshchuk e0999fb
RB-cash-tax Adding some changes
stymoshchuk 767eb3b
RB-cash-tax merge
stymoshchuk 21d7eab
RB-cash-tax upd generate.rb
stymoshchuk 11ff613
RB-cash-tax upd openapi.json
stymoshchuk 50925dc
RB-cash-tax upd openapi.json
stymoshchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| { | ||
| "definitions": { | ||
| "cashDepositRelationships": { | ||
| "type": "object", | ||
| "title": "cashDepositRelationships", | ||
| "properties": { | ||
| "account": { | ||
| "type": "object", | ||
| "properties": { | ||
| "data": { | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "account", | ||
| "depositAccount", | ||
| "batchAccount" | ||
| ] | ||
| }, | ||
| "id": { | ||
| "$ref": "types.json#/definitions/identifier" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "type", | ||
| "id" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "required": [ | ||
| "data" | ||
| ], | ||
| "additionalProperties": false | ||
| }, | ||
| "customer": { | ||
| "type": "object", | ||
| "properties": { | ||
| "data": { | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "businessCustomer", | ||
| "individualCustomer", | ||
| "customer" | ||
| ] | ||
| }, | ||
| "id": { | ||
| "$ref": "types.json#/definitions/identifier" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "type", | ||
| "id" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "required": [ | ||
| "data" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "required": [ | ||
| "account", | ||
| "customer" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "title": "CashDepositBarcodeResource", | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "enum": ["cashDepositBarcode"] | ||
| }, | ||
| "id": { | ||
| "$ref": "types.json#/definitions/identifier" | ||
| }, | ||
| "attributes": { | ||
| "type": "object", | ||
| "properties": { | ||
| "barcodeNumber": { | ||
| "type": "string" | ||
| }, | ||
| "expiration": { | ||
| "type": "string", | ||
| "format": "date-time"}, | ||
| "storeId": { | ||
| "type": "string" | ||
| }, | ||
| "retailerName": { | ||
| "type": "string"} | ||
| }, | ||
| "required": ["barcodeNumber", "expiration", "storeId", "retailerName"] | ||
| }, | ||
| "relationships": { | ||
| "$ref": "#/definitions/cashDepositRelationships" | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": ["type", "attributes", "relationships"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| { | ||
| "cash_deposits": { | ||
| "get": { | ||
| "tags": [ | ||
| "Get List Store Locations" | ||
| ], | ||
| "operationId": "execute", | ||
| "summary": "Get List Cash Deposits", | ||
| "description": "Get List Cash Deposits from API ", | ||
| "parameters": [ | ||
| { | ||
| "name": "page", | ||
| "in": "query", | ||
| "style": "deepObject", | ||
| "allowReserved": true, | ||
| "schema": { | ||
| "$ref": "types.json#/definitions/listPageParametersObject" | ||
| } | ||
| }, | ||
| { | ||
| "name": "filter", | ||
| "in": "query", | ||
| "style": "deepObject", | ||
| "allowReserved": true, | ||
| "schema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "coordinates": { | ||
| "$ref": "types.json#/definitions/coordinates" | ||
| }, | ||
| "postalCode": { | ||
| "type": "string" | ||
| }, | ||
| "serviceType": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Successful Response", | ||
| "content": { | ||
| "application/vnd.api+json; charset=utf-8": { | ||
| "schema": { | ||
| "type": "array", | ||
| "title": "UnitCashDepositsListResponse", | ||
| "items": { | ||
| "$ref": "store_location.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "cash_deposit_barcode": { | ||
| "get": { | ||
| "tags": [ | ||
| "Retrieve Barcode Image" | ||
| ], | ||
| "operationId": "execute", | ||
| "description": "Retrieves a cash deposit barcode image using the unique barcode number provided by the Generate Barcode endpoint.", | ||
| "parameters": [ | ||
| { | ||
| "schema": { | ||
| "type": "string" | ||
| }, | ||
| "name": "barcodeNumber", | ||
| "in": "path", | ||
| "description": "The unique identifier of a barcode, obtained from Generate Barcode endpoint.", | ||
| "required": true | ||
| } | ||
| ], | ||
| "summary": "Get Barcode Image", | ||
| "responses": { | ||
| "200": { | ||
| "description": "Successful Response", | ||
| "content": { | ||
| "application/pdf": { | ||
| "schema": { | ||
| "type": "string", | ||
| "format": "binary" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "generate_cash_deposit_barcode": { | ||
| "post": { | ||
| "tags": [ | ||
| "Generate Barcode" | ||
| ], | ||
| "operationId": "execute", | ||
| "summary": "Create Check Deposit", | ||
| "description": "Create a Check Deposit via API ", | ||
| "requestBody": { | ||
| "description": "Create Check Deposit Request", | ||
| "required": true, | ||
| "content": { | ||
| "application/vnd.api+json": { | ||
| "schema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "data": { | ||
| "$ref": "generateBarcode.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "description": "Successful Response", | ||
| "content": { | ||
| "application/vnd.api+json; charset=utf-8": { | ||
| "schema": { | ||
| "type": "object", | ||
| "title": "UnitCashDepositResponse", | ||
| "properties": { | ||
| "data": { | ||
| "$ref": "cash_deposit_barcode.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "definitions": { | ||
| "createCashDepositRelationships": { | ||
| "type": "object", | ||
| "properties": { | ||
| "account": { | ||
| "$ref": "types.json#/definitions/Relationship" | ||
| }, | ||
| "customer": { | ||
| "$ref": "types.json#/definitions/customersRelationship" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "account", | ||
| "customer" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "title": "Cash Deposit Barcode", | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "default": "cashDepositBarcode", | ||
| "enum": [ | ||
| "cashDepositBarcode" | ||
| ] | ||
axshani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| "attributes": { | ||
| "type": "object", | ||
| "properties": { | ||
| "storeId": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "storeId" | ||
| ], | ||
| "additionalProperties": false | ||
| }, | ||
| "relationships": { | ||
| "$ref": "#/definitions/createCashDepositRelationships" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "type", | ||
| "attributes", | ||
| "relationships" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "title": "Store Location", | ||
| "type": "object", | ||
| "properties": { | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "storeLocation" | ||
| ] | ||
| }, | ||
| "id": { | ||
| "$ref": "types.json#/definitions/identifier" | ||
| }, | ||
| "attributes": { | ||
| "type": "object", | ||
| "properties": { | ||
| "storeId": { | ||
| "type": "string" | ||
| }, | ||
| "retailerName": { | ||
| "type": "string" | ||
| }, | ||
| "phone": { | ||
axshani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "$ref": "types.json#/definitions/phone" | ||
| }, | ||
| "address":{ | ||
| "$ref":"types.json#/definitions/address" | ||
| }, | ||
| "coordinates": { | ||
axshani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "$ref": "types.json#/definitions/coordinates" | ||
| }, | ||
| "distance": { | ||
| "type": "number" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "storeId", | ||
| "retailerName", | ||
| "phone", | ||
| "address", | ||
| "coordinates" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "type", | ||
| "id", | ||
| "attributes" | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.