Skip to content

Commit

Permalink
BTA-11168 Add an SDK release workflow (#10)
Browse files Browse the repository at this point in the history
* BTA-11168 Add the initial gem release workflow

* BTA-11168 test auto gem release

* BTA-11168 test auto gem release

* BTA-11168 test auto gem release

* BTA-11168 remove the test branch
  • Loading branch information
CodeBuild committed Oct 31, 2023
1 parent 571201e commit e116c1f
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build transferzero-sdk.gemspec
- gem install ./transferzero-sdk-1.32.0.gem
- gem install ./transferzero-sdk-1.32.1.gem
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0
- Package version: 1.32.0
- Package version: 1.32.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen

For more information, please visit:
Expand All @@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
Then either install the gem locally:

```shell
gem install ./transferzero-sdk-1.32.0.gem
gem install ./transferzero-sdk-1.32.1.gem
```
(for development, run `gem install --dev ./transferzero-sdk-1.32.0.gem` to install the development dependencies)
(for development, run `gem install --dev ./transferzero-sdk-1.32.1.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'transferzero-sdk', '~> 1.32.0'
gem 'transferzero-sdk', '~> 1.32.1'

### Install from Git

Expand Down
4 changes: 3 additions & 1 deletion docs/PayoutMethodDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Name | Type | Description | Notes
**pix_key_type** | [**PayoutMethodPixKeyTypeEnum**](PayoutMethodPixKeyTypeEnum.md) | | [optional]
**pix_key_value** | **String** | | [optional]
**ifsc_code** | **String** | |
**middle_name** | **String** | | [optional]

## Code Sample

Expand Down Expand Up @@ -97,7 +98,8 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
relationship_to_sender: null,
pix_key_type: null,
pix_key_value: null,
ifsc_code: null)
ifsc_code: null,
middle_name: null)
```


2 changes: 2 additions & 0 deletions docs/PayoutMethodDetailsEGPBank.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**first_name** | **String** | |
**middle_name** | **String** | | [optional]
**last_name** | **String** | |
**street** | **String** | |
**phone_number** | **String** | |
Expand All @@ -18,6 +19,7 @@ Name | Type | Description | Notes
require 'TransferZero'

instance = TransferZero::PayoutMethodDetailsEGPBank.new(first_name: null,
middle_name: null,
last_name: null,
street: null,
phone_number: null,
Expand Down
2 changes: 1 addition & 1 deletion lib/transferzero-sdk/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ApiClient
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
def initialize(config = Configuration.default)
@config = config
@user_agent = "TransferZero-SDK/Ruby/1.32.0"
@user_agent = "TransferZero-SDK/Ruby/1.32.1"
@default_headers = {
'Content-Type' => 'application/json',
'User-Agent' => @user_agent
Expand Down
17 changes: 13 additions & 4 deletions lib/transferzero-sdk/models/payout_method_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class PayoutMethodDetails

attr_accessor :ifsc_code

attr_accessor :middle_name

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand Down Expand Up @@ -148,7 +150,8 @@ def self.attribute_map
:'relationship_to_sender' => :'relationship_to_sender',
:'pix_key_type' => :'pix_key_type',
:'pix_key_value' => :'pix_key_value',
:'ifsc_code' => :'ifsc_code'
:'ifsc_code' => :'ifsc_code',
:'middle_name' => :'middle_name'
}
end

Expand Down Expand Up @@ -198,7 +201,8 @@ def self.openapi_types
:'relationship_to_sender' => :'String',
:'pix_key_type' => :'PayoutMethodPixKeyTypeEnum',
:'pix_key_value' => :'String',
:'ifsc_code' => :'String'
:'ifsc_code' => :'String',
:'middle_name' => :'String'
}
end

Expand Down Expand Up @@ -426,6 +430,10 @@ def initialize(attributes = {})
if attributes.key?(:'ifsc_code')
self.ifsc_code = attributes[:'ifsc_code']
end

if attributes.key?(:'middle_name')
self.middle_name = attributes[:'middle_name']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -615,7 +623,8 @@ def ==(o)
relationship_to_sender == o.relationship_to_sender &&
pix_key_type == o.pix_key_type &&
pix_key_value == o.pix_key_value &&
ifsc_code == o.ifsc_code
ifsc_code == o.ifsc_code &&
middle_name == o.middle_name
end

# @see the `==` method
Expand All @@ -627,7 +636,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, narration, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code].hash
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, narration, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, branch_code, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, routing_number, swift_code, relationship_to_sender, pix_key_type, pix_key_value, ifsc_code, middle_name].hash
end

require 'active_support/core_ext/hash'
Expand Down
13 changes: 11 additions & 2 deletions lib/transferzero-sdk/models/payout_method_details_egp_bank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
require 'date'

module TransferZero
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"1 Main Street\", \"phone_number\": \"+201023456789\", \"bank_account\": \"1234567890\", \"bank_code\": \"0030\", \"transfer_reason\": \"personal_account\" } ``` See [EGP Bank](https://docs.transferzero.com/docs/payout-details/#egpbank) documentation for the bank_code list
# ```JSON \"details\": { \"first_name\": \"First\", \"middle_name\": \"Middle\", \"last_name\": \"Last\", \"street\": \"1 Main Street\", \"phone_number\": \"+201023456789\", \"bank_account\": \"1234567890\", \"bank_code\": \"0030\", \"transfer_reason\": \"personal_account\" } ``` See [EGP Bank](https://docs.transferzero.com/docs/payout-details/#egpbank) documentation for the bank_code list
class PayoutMethodDetailsEGPBank
attr_accessor :first_name

attr_accessor :middle_name

attr_accessor :last_name

attr_accessor :street
Expand All @@ -33,6 +35,7 @@ class PayoutMethodDetailsEGPBank
def self.attribute_map
{
:'first_name' => :'first_name',
:'middle_name' => :'middle_name',
:'last_name' => :'last_name',
:'street' => :'street',
:'phone_number' => :'phone_number',
Expand All @@ -46,6 +49,7 @@ def self.attribute_map
def self.openapi_types
{
:'first_name' => :'String',
:'middle_name' => :'String',
:'last_name' => :'String',
:'street' => :'String',
:'phone_number' => :'String',
Expand Down Expand Up @@ -74,6 +78,10 @@ def initialize(attributes = {})
self.first_name = attributes[:'first_name']
end

if attributes.key?(:'middle_name')
self.middle_name = attributes[:'middle_name']
end

if attributes.key?(:'last_name')
self.last_name = attributes[:'last_name']
end
Expand Down Expand Up @@ -153,6 +161,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
first_name == o.first_name &&
middle_name == o.middle_name &&
last_name == o.last_name &&
street == o.street &&
phone_number == o.phone_number &&
Expand All @@ -170,7 +179,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[first_name, last_name, street, phone_number, bank_account, bank_code, transfer_reason].hash
[first_name, middle_name, last_name, street, phone_number, bank_account, bank_code, transfer_reason].hash
end

require 'active_support/core_ext/hash'
Expand Down
2 changes: 1 addition & 1 deletion lib/transferzero-sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module TransferZero
VERSION = '1.32.0'
VERSION = '1.32.1'
end

0 comments on commit e116c1f

Please sign in to comment.