forked from shift4developer/shift4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michal Schielmann
committed
Aug 19, 2024
1 parent
eb1bbff
commit db7e7d4
Showing
10 changed files
with
143 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
class RequestOptions: | ||
__idempotency_key = None | ||
|
||
def __init__(self, options): | ||
if options is not None: | ||
self.__dict__.update(options) | ||
|
||
def set_idempotency_key(self, idempotency_key): | ||
self.__dict__.update({"idempotency_key", idempotency_key}) | ||
|
||
def has_idempotency_key(self): | ||
return True if "idempotency_key" in self.__dict__ else False | ||
|
||
def get_idempotency_key(self): | ||
return self.__dict__["idempotency_key"] if "idempotency_key" in self.__dict__ else None |
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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
Oops, something went wrong.